/* ============================================
   AEROCLUB POLYGONE 67 — CSS CUSTOM GRAV 2.0
   ============================================ */

/* ── IMPORT POLICE ── */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;600;700;900&display=swap');

/* ── VARIABLES DE DESIGN ── */
:root {
  --p67-bleu:          #38a9e3;
  --p67-bleu-fonce:    #1a5f8a;
  --p67-or:            #e9b144;
  --p67-or-hover:      #d49c2e;
  --p67-gris-clair:    #f4f5f7;
  --p67-gris-bordure:  #e0e0e5;
  --p67-texte:         #2d3748;
  --p67-texte-clair:   #424753;
  --p67-blanc:         #ffffff;
  --p67-ombre:         0 4px 20px rgba(0,0,0,0.08);
  --p67-ombre-hover:   0 8px 30px rgba(0,0,0,0.12);
  --p67-radius:        12px;
  --p67-transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Alias formulaires */
  --sky:       #38a9e3;
  --sky-light: #5bbef0;
  --navy:      #1a5f8a;
  --blue:      #2d3748;
  --grey:      #64748b;
  --gold:      #e9b144;
  --border:    #e0e0e5;
  --white:     #ffffff;
  --off-white: #f4f5f7;
  --error:     #dc4848;
  --success:   #2e9e5a;
}

/* ══════════════════════════════════
   TYPOGRAPHIE GLOBALE
   ══════════════════════════════════ */
body {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 2;
  color: #000000;
  background: var(--p67-blanc);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  margin: 0 0 1.5rem 0;
}

h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.85rem; }

h2::before { background: unset; }

a {
  color: var(--p67-or);
  transition: color 0.2s;
}
a:hover {
  color: var(--p67-or-hover);
  text-decoration: underline;
}

body p {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

::selection {
  background: var(--p67-or);
  color: var(--p67-blanc);
}

/* ══════════════════════════════════
   LAYOUT GLOBAL
   ══════════════════════════════════ */

/* Sticky footer */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#grav-site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main,
#content-wrap,
.content-wrap {
  flex: 1 0 auto;
}

/* Conteneur max-width */
.container {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* ══════════════════════════════════
   EN-TÊTE / NAVIGATION
   ══════════════════════════════════ */
#header {
  background: var(--p67-bleu) !important;
  background-image: url('/user/themes/polygone67/images/banner3.jpg') !important;
  color: var(--p67-blanc) !important;
  padding: 0 !important;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  height: 150px;
}

#header .container {
  max-width: 100% !important;
}

.theme-toggle { display: none!important; }

/* Logo */
.navbar-brand img {
  max-height: 120px;
  height: 120px;
  width: auto;
  display: block;
  border: 0;
}

/* Menu */
.dropmenu, .dropmenu ul {
  display: block;
  margin-left: 20px;
}

.desktop-menu {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: unset;
  gap: 1.25rem;
  top: 150px;
  position: absolute;
  left: 0px;
  background-color: var(--p67-bleu);
  width: 100%;
}

/* Navigation principale */
nav,
.navbar,
#navbar,
.site-nav {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
}

/* Items de nav */
nav ul li a,
.navbar ul li a,
nav.navbar-nav li a {
  color: var(--p67-blanc) !important;
  padding: 4px 10px;
  border-radius: 6px;
  transition: var(--p67-transition);
  position: relative;
  line-height: 32px;
  margin-top:5px;
  margin-bottom:5px;
}

nav ul li a:hover,
.navbar ul li a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--p67-blanc) !important;
  text-decoration: none;
}

/* Item actif */
nav ul li.active a,
.navbar ul li.active a,
nav ul li a.active {
  background: var(--p67-or) !important;
  color: var(--p67-blanc) !important;
  border-radius: 6px;
}

/* Soulignement doré au survol */
nav ul li:not(.active) a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--p67-or);
  transition: var(--p67-transition);
  transform: translateX(-50%);
}

nav ul li:not(.active) a:hover::after {
  width: 70%;
}

/* Dropdown */
nav .dropdown-menu,
.navbar .dropdown-menu {
  background: #41ade4;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.25rem;
}

nav .dropdown-menu a,
.navbar .dropdown-menu a {
  color: var(--p67-blanc) !important;
  line-height: normal;
}

nav .dropdown-menu a:hover,
.navbar .dropdown-menu a:hover {
  color: var(--p67-or) !important;
  background: transparent;
}

.mobile-menu { z-index:999; }


/* ══════════════════════════════════
   CONTENU PRINCIPAL
   ══════════════════════════════════ */
#main-content,
.content,
main.main,
#content {
  background: var(--p67-gris-clair);
  padding-top: 0.2rem;
  padding-bottom: 2rem;
}

/* Zone de contenu éditoriale — card blanche */

.content-item {
  margin-bottom: 10px!important;
  padding:10px 50px!important;
  box-shadow: var(--p67-ombre) !important;
}

.content-wrap article,
.page-content,
#main-content .content-inner,
main .content-wrap {
  background: var(--p67-blanc);
  border-radius: var(--p67-radius);
  box-shadow: var(--p67-ombre);
  border: 1px solid var(--border);
  padding: 2rem 2.5rem !important;
  margin: 0 auto;
  animation: p67-fadeInUp 0.5s ease-out;
}

/* Titres dans le contenu */
.content-wrap h2,
main h2,
article h2 {
  color: var(--p67-or) !important;
  font-weight: 700 !important;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.content-wrap h2::after,
main h2::after,
article h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--p67-or);
  border-radius: 2px;
}

.content-wrap h3,
main h3,
article h3 {
  color: var(--p67-texte);
  font-weight: 600;
  font-size: 1.2rem;
}

.content-wrap h4,
main h4,
article h4 {
  color: var(--grey);
  font-weight: 200;
  font-size: 0.8rem;
}

.content-wrap p,
main p,
article p {
  color: var(--p67-texte-clair);
  line-height: 1.78;
  margin-bottom: 1.1rem;
}

/* Liens dans les paragraphes */
.content-wrap p a,
main p a,
article p a {
  color: var(--p67-bleu);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(56,169,227,0.35);
  transition: color var(--p67-transition), border-color var(--p67-transition);
}

.content-wrap p a:hover,
main p a:hover,
article p a:hover {
  color: var(--p67-bleu-fonce);
  border-bottom-color: var(--p67-bleu-fonce);
  text-decoration: none;
}

/* Images dans le contenu */
.content-wrap img,
main article img,
.page-content img {
  max-width: 100%;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.content-wrap img:hover,
main article img:hover {
  transform: scale(1.02);
}

/* Listes */
.content-wrap ul,
main ul {
  color: var(--p67-texte-clair);
  line-height: 1.7;
  padding: 5px;
}

/* --- CARDS --- */
.g-card {
  border: none !important;
  border-radius: var(--p67-radius) !important;
  background: var(--p67-blanc);
  box-shadow: var(--p67-ombre);
  padding: 20px !important;
  margin: 8px !important;
  overflow: hidden;
  transition: var(--p67-transition);
}

.g-card:hover {
  box-shadow: var(--p67-ombre-hover);
  transform: translateY(-3px);
}

/* Images dans les cartes */
.g-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.g-card:hover img {
  transform: scale(1.04);
}

.g-small {
  width: 185px;
  display: inline-block;
  height: 200px;
  text-align: center;
  background-color: #38a9e336;
}


/* ══════════════════════════════════
   BOUTONS
   ══════════════════════════════════ */

.button,
a.button {
  display: inline-block;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 0.8rem !important;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--p67-bleu);
  color: var(--p67-blanc) !important;
  border: 1px solid transparent;
  border-radius: 8px !important;
  padding: 0.9rem 2rem !important;
  min-width: 10rem;
  width: 80%;
  margin-left: 10%;
  text-align: center;
  text-decoration: none;
  transition: var(--p67-transition) !important;
  box-shadow: 0 2px 8px rgba(56,169,227,0.25);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}


.button:hover,
a.button:hover {
  background: var(--p67-bleu-fonce) !important;
  color: var(--p67-blanc) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(56,169,227,0.35) !important;
  text-decoration: none;
}

.button:active {
  transform: translateY(0);
}

/* Variantes de bouton */

.button-primary {
  background: var(--p67-bleu) !important;
}

.button-or {
  background: var(--p67-or) !important;
  color: var(--p67-blanc) !important;
}

.button-or:hover {
  background: var(--p67-or-hover) !important;
}

/* ══════════════════════════════════
   CARDS / TUILES
   ══════════════════════════════════ */

.card-box {
  border: 1px solid var(--p67-gris-bordure) !important;
  border-radius: 0 !important;
  background: var(--p67-blanc);
  box-shadow: unset;
  padding: 1.75rem 2rem;
  margin: 0;
  overflow: hidden;
  transition: var(--p67-transition);
}
.card-box.full { grid-column: 1 / -1; }

/* Card formulaire */
.card-wrap { margin: 1.5rem auto 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.card-body { padding: 1.75rem 2rem; }


/* Small icons */

.clear-w { width: unset! important; height: unset!important; display: inline-block !important; padding-right: 15px; }


/* ══════════════════════════════════
   SECTION INTRO (fond gris)
   ══════════════════════════════════ */
.intro-section,
#intro,
.section-intro {
  background: var(--p67-gris-clair);
  color: var(--p67-texte-clair);
  padding: 3rem 0;
}

/* ══════════════════════════════════
   SECTION UTILITY (fond bleu)
   ══════════════════════════════════ */
.utility-section,
#utility,
.section-utility {
  background: var(--p67-bleu);
  color: var(--p67-blanc);
  padding: 3rem 0;
}



/* ══════════════════════════════════
   FOOTER
   ══════════════════════════════════ */
footer {
  background: linear-gradient(135deg, var(--p67-bleu) 0%, var(--p67-bleu-fonce) 100%) !important;
  color: var(--p67-blanc) !important;
  padding: 1.5rem 0 !important;
  border-top: 3px solid var(--p67-or);
  flex-shrink: 0;
}

footer a {
  color: var(--p67-blanc) !important;
  transition: var(--p67-transition);
}

footer a:hover {
  color: var(--p67-or) !important;
  text-decoration: none;
}

/* Menu footer horizontal */
footer ul,
footer nav ul,
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

footer ul li a,
footer nav ul li a {
  padding: 4px 12px;
  border-radius: 4px;
  transition: var(--p67-transition);
}

footer ul li a:hover,
footer nav ul li a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--p67-or) !important;
}

.g-footer div {
  display: inline-block;
  margin-right: 35px;
}

/* Icônes sociales footer */
footer .social-icons a,
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  margin: 0 4px;
  transition: var(--p67-transition);
  font-size: 1.1rem;
  color: var(--p67-blanc) !important;
}

footer .social-icons a:hover,
.footer-social a:hover {
  background: var(--p67-or) !important;
  transform: translateY(-2px);
}

/* Masquer les liens sociaux sans href */
footer a[href=""],
footer a:not([href]) {
  display: none;
}


/* ══════════════════════════════════
   TABLES
   ══════════════════════════════════ */
table {
  border: 1px solid var(--p67-gris-bordure);
  width: 100%;
}

th {
  background: #eceff3;
  padding: 0.5rem;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
}

td {
  padding: 0.5rem;
  border: 1px solid var(--p67-gris-bordure);
}

/* ══════════════════════════════════
   FORMULAIRES
   ══════════════════════════════════ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="url"],
textarea,
select {
  background-color: var(--p67-blanc);
  border: 1px solid var(--p67-gris-bordure);
  border-radius: 0.25rem;
  font-size: 1rem;
  width: 100%;
  line-height: 2;
  padding: 0.375rem 1.25rem;
  transition: border-color 0.2s;
  font-family: "Roboto", sans-serif;
}

input:hover,
textarea:hover {
  border-color: var(--p67-bleu);
  box-shadow: 0 0 4px rgba(56,169,227,0.5);
}

input:focus,
textarea:focus {
  border-color: var(--p67-bleu);
  box-shadow: 0 0 4px rgba(56,169,227,0.5);
  outline: none;
}

/* ══════════════════════════════════
   SCROLLBAR PERSONNALISÉE
   ══════════════════════════════════ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--p67-gris-clair); }
::-webkit-scrollbar-thumb { background: var(--p67-bleu); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--p67-bleu-fonce); }

/* ══════════════════════════════════
   FOCUS ACCESSIBLE
   ══════════════════════════════════ */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--p67-or);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ══════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════ */
@keyframes p67-fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════
   QUARK 2 — OVERRIDES SPÉCIFIQUES
   Cibles directes du thème Quark 2
   ══════════════════════════════════ */

/* Header Quark 2 */
#site-header .navbar,
header nav.site-nav,
.site-header nav {
  background: var(--p67-bleu) !important;
}

/* Logo Quark 2 */
#site-header .site-title,
.site-header .logo,
.navbar-brand {
  color: var(--p67-blanc) !important;
}

/* Liens de nav Quark 2 */
.site-nav a,
.site-nav .nav-link {
  color: var(--p67-blanc) !important;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav .nav-link:hover {
  background: rgba(255,255,255,0.12);
  color: var(--p67-blanc) !important;
  text-decoration: none;
}

.site-nav .active > a,
.site-nav a.active {
  background: var(--p67-or) !important;
  color: var(--p67-blanc) !important;
}

/* Contenu principal Quark 2 */
#page-wrapper,
.page-wrapper,
main#content {
  background: var(--p67-gris-clair) !important;
}

/* Titre de page Quark 2 */
.page-header h1,
#page-title,
.page-title {
  color: var(--p67-texte) !important;
}

/* Footer Quark 2 */
footer#footer,
footer.site-footer,
#grav-footer {
  background: linear-gradient(135deg, var(--p67-bleu) 0%, var(--p67-bleu-fonce) 100%) !important;
  color: var(--p67-blanc) !important;
  border-top: 3px solid var(--p67-or);
}

/* Switcher dark/light mode Quark2 — discret */
.theme-switcher,
[data-theme-toggle] {
  opacity: 0.7;
}

/* ══════════════════════════════════
   COMPOSANTS APP (pages membres/commande)
   Repris à l'identique depuis p67-2026.css
   ══════════════════════════════════ */

/* App wrapper */
#app .page-header {
  background: linear-gradient(135deg, var(--p67-bleu) 0%, var(--p67-bleu-fonce) 100%);
  color: var(--p67-blanc);
  text-align: center;
  padding: 2rem 1.5rem 2.5rem;
  margin: -1rem -1rem 0;
  border-radius: var(--p67-radius) var(--p67-radius) 0 0;
  position: relative;
  overflow: hidden;
}

#app .page-header::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 260px; height: 260px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

#app .page-header .header-icon { font-size: 2.2rem; display: block; margin-bottom: 0.5rem; }
#app .page-header h1 { font-size: 1.6rem; font-weight: 700; margin: 0 0 0.3rem; color: var(--p67-blanc); }
#app .page-header p  { font-size: 0.85rem; opacity: 0.8; margin: 0; color: var(--p67-blanc); }

#app label { font-size: 1rem; font-weight: 500; color: var(--p67-texte); }
#app label .req { color: var(--p67-bleu); margin-left: 2px; }

#app input,
#app textarea {
  font-size: 0.95rem;
  color: var(--p67-texte);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  outline: none;
}

#app input:focus,
#app textarea:focus {
  border-color: var(--p67-bleu);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(56,169,227,0.12);
}

#app input.error { border-color: var(--error); }

#app textarea { resize: vertical; min-height: 90px; }

/* Stepper */
.stepper { display: flex; justify-content: center; max-width: 320px; margin: -1.25rem auto 0; position: relative; z-index: 2; padding: 0 1.25rem; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; position: relative; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 16px; left: 50%; width: 100%; height: 2px; background: var(--border); z-index: -1; transition: background 0.3s; }
.step.done:not(:last-child)::after { background: var(--p67-bleu); }
.step-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--white); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: var(--grey); transition: all 0.3s; }
.step.step-active .step-dot { border-color: var(--p67-bleu); color: var(--p67-bleu); box-shadow: 0 0 0 4px rgba(56,169,227,0.15); }
.step.done .step-dot { background: var(--p67-bleu); border-color: var(--p67-bleu); color: white; }
.step-label { font-size: 0.72rem; color: var(--grey); font-weight: 500; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.04em; }
.step.step-active .step-label, .step.done .step-label { color: var(--p67-bleu); }

.section-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--p67-or); margin-bottom: 1.25rem; padding-bottom: 0.5rem; border-bottom: 2px solid rgba(233,177,68,0.2); }

/* Champs */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-bottom: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }
.error-msg { font-size: 0.75rem; color: var(--error); }

/* Boutons formulaire */
.btn-row { display: flex; gap: 0.75rem; }
.btn-back { padding: 1rem 1.25rem; border: 1.5px solid var(--border); border-radius: 10px; background: transparent; font-size: 0.95rem; color: var(--grey); cursor: pointer; transition: all 0.2s; }
.btn-back:hover { border-color: var(--p67-bleu); color: var(--p67-bleu); }
.btn-submit { flex: 1; padding: 1rem; background: linear-gradient(135deg, var(--p67-bleu) 0%, var(--p67-bleu-fonce) 100%); color: var(--white); border: none; border-radius: 10px; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s; box-shadow: 0 4px 16px rgba(56,169,227,0.3); }
.btn-submit:hover:not(:disabled) { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 6px 22px rgba(56,169,227,0.4); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Captcha */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.captcha-row img {
    height: 56px;
    width: 240px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    cursor: pointer;
    display: block;
}
.captcha-refresh-btn {
    font-size: 0.8rem;
    color: var(--p67-bleu);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: 'Barlow', sans-serif;
    white-space: nowrap;
}
.captcha-refresh-btn:hover { opacity: 0.7; }
.captcha-code-wrap { flex: 1; min-width: 100px; }
.captcha-code-wrap input {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-align: center;
}

/* Notes */
.form-note {
    text-align: center;
    font-size: 0.78rem;
    color: var(--grey);
    margin-top: 1rem;
    line-height: 1.5;
  }
.form-note i {
  opacity: 0.6;
}

/* Spinner */
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.4); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; }
.spinner-sm { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.4); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Alerts */
.alert { padding: 0.9rem 1.1rem; border-radius: 10px; font-size: 0.9rem; margin-bottom: 1.25rem; display: flex; align-items: flex-start; gap: 0.6rem; }
.alert.error { background: rgba(220,72,72,0.06); border: 1px solid rgba(220,72,72,0.2); color: #b94040; }
.alert.success { background: rgba(46,158,90,0.06); border: 1px solid rgba(46,158,90,0.2); color: var(--success); }

/* Succès screen */
.success-screen { text-align: center; padding: 2.5rem 1.5rem; }
.success-screen .icon { font-size: 3.5rem; margin-bottom: 1rem; }
.success-screen h2 { font-size: 1.6rem; color: var(--success) !important; margin-bottom: 0.75rem; }
.success-screen h2::after { display: none; }
.success-screen p { color: var(--grey); line-height: 1.8; }

/* Sélecteur passagers */
.pax-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}
.pax-selector.disabled {
  color: var(--border);
  cursor: not-allowed;
  background: var(--off-white);
}

.pax-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 1.3rem;
  color: var(--p67-bleu);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pax-btn:hover:not(:disabled) {
  background: rgba(56, 169, 227, 0.1);
}

.pax-btn:disabled {
  color: var(--border);
  cursor: not-allowed;
}

.pax-value {
  flex: 1;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--p67-texte);
}



/* Boutons toggle (Bon cadeau) */
.toggle-group {
  display: flex;
  gap: 0.6rem;
}

.toggle-btn {
  flex: 1;
  padding: 0.65rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey);
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
}

.toggle-btn.active {
  border-color: var(--p67-bleu);
  background: rgba(56, 169, 227, 0.08);
  color: var(--p67-bleu);
  font-weight: 600;
}


/* Récapitulatif */
.recap {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.recap-row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  color: var(--p67-texte-clair);
}

.recap-row.total {
  border-top: 1.5px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--p67-texte);
}
  
/* Stripe Element */
.stripe-wrap {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  background: var(--off-white);
  margin-bottom: 1.5rem;
  min-height: 44px;
}

/* Status badge */
.status-bar {
  display: flex;
  justify-content: center;
  margin: -1rem auto 0;
  position: relative;
  z-index: 2;
  padding: 0 1.25rem;
  top:20px;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 5px 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
}
.status-dot.st-new       { background: #94a3b8; }
.status-dot.st-contact   { background: #38bdf8; }
.status-dot.st-assign    { background: var(--gold); }
.status-dot.st-assigned  { background: #fb923c; }
.status-dot.st-planned   { background: #818cf8; }
.status-dot.st-done      { background: var(--success); }
.status-dot.st-cancel    { background: var(--error); }
.status-dot.st-sent      { background: #2dd4bf; }
.status-dot.st-wait      { background: #fbbf24; }
.status-dot.st-error     { background: var(--error); }



/* QRcode */
.qr-block {
  display: block;
  text-align: center;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--off-white) 25%, #e8ecf0 50%, var(--off-white) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
    height: 1rem;
    width: 60%;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Info header avec QR */
.card-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.info-header-left h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.4rem;
    line-height: 1.4rem;
    font-weight: 700;
    color: var(--blue);
}
.qr-block {
    display: none;
}
.qr-img {
    border-radius: 8px;
    padding: 4px;
    background: var(--white);
    width: 120px !important;
    height: 120px !important;
    border: 1px solid #ccc !important;
    padding: 3px !important;
}
.qr-label {
    font-size: 0.65rem;
    color: var(--grey);
    text-align: center;
    max-width: 120px;
    line-height: 1.3;
    font-size: 6.5pt !important;
    color: #888 !important;
}


.info-grid {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.info-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--grey);
  flex-shrink: 0;
}

.info-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--blue);
  text-align: right;
  word-break: break-word;
}

.tag {
    display: inline-block;
    padding: 0.15rem 0.65rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}
.tag.oui { background: rgba(46,158,90,0.1); color: var(--success); }
.tag.non { background: rgba(100,116,139,0.1); color: var(--grey); }

/* Comment section */
.comment-input-wrap {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}
.comment-input-wrap textarea {
    font-family: 'Barlow', sans-serif;
    font-size: 0.9rem;
    color: var(--blue);
    background: var(--off-white);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%; outline: none;
    resize: vertical;
    min-height: 70px;
}
.comment-input-wrap textarea:focus {
    border-color: var(--sky);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(56,169,227,0.12);
}

.btn-comment {
    flex-shrink: 0;
    padding: 0.65rem 1.2rem;
    background: linear-gradient(135deg, var(--sky) 0%, var(--navy) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 3px 12px rgba(56,169,227,0.25);
    white-space: nowrap;
    align-self: flex-end;
}
.btn-comment:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}
.btn-comment:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Bouton imprimer */
.print-btn-wrap {
  grid-column: 1 / -1;
  text-align: right;
}
.btn-print {
  padding: 0.55rem 1.3rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-print:hover {
  border-color: var(--sky);
  color: var(--sky);
}
/* En-tete impression (masqué) */
.print-header { display: none; }

/* Comments */
.comments-list {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.comment-bubble {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--blue);
}
.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}
.comment-author {
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--navy);
}
.comment-date {
    font-size: 0.72rem;
    color: var(--grey);
}
.comment-text {
    color: var(--blue);
}

.no-comments {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--grey);
    font-size: 0.85rem;
    font-style: italic;
}


/* ══════════════════════════════════
   MOBILE MENU
   ══════════════════════════════════ */

.overlay { background-color: var(--p67-bleu); padding-top: 110px; left:100px; }
.overlay .overlay-menu li { padding: 0px; }
.overlay .overlay-menu a { padding: 10px; }

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width: 767px) {
  .content-wrap article,
  .page-content,
  main .content-wrap {
    padding: 1.25rem 1rem !important;
    border-radius: 8px;
  }

  h1 { font-size: 2rem; }

  .content-wrap h2, main h2 { font-size: 1.4rem; }

  footer,
  #footer,
  .site-footer {
    text-align: center;
  }

  .card-wrap {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: 1; }
  .card-body { padding: 0.9rem 0.5rem; }

  .content-item { padding: 10px!important; }

  #app .page-header { padding: 1.5rem 1rem 2rem; margin: -0.5rem -0.5rem 0; }
  #app .page-header h1 { font-size: 1.35rem; }

  .content-wrap img, main article img { height: 200px; }

  .g-small { width: 155px; }
}

@media (min-width: 768px) and (max-width: 959px) {
  .container { max-width: 100%; }
}

@media (max-width: 860px) {
  .desktop-menu { display: none; }
  #header { border-bottom: 3px solid var(--p67-or); }
}

/* ══════════════════════════════════
   IMPRESSION
   ══════════════════════════════════ */
@media print {
  *, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }
  body { background: white !important; color: #1a1a1a !important; font-size: 11pt; }
  header, footer, nav, .btn, button { display: none !important; }
  main, .content-wrap { background: white !important; padding: 0 !important; }
  .print-header { display: block !important; }
  @page { size: A4 portrait; margin: 1.2cm 1cm; }

  .content-item {  box-shadow: unset !important; }

  /* Cartes */
  .card-wrap {
    grid-template-columns: 1fr 1fr!important;
  }

  .card {
      border: 1px solid #d0d0d0 !important;
      border-radius: 6px !important;
      page-break-inside: avoid;
      margin:0px;
      padding:10px;
  }
  .card.full {
      grid-column: 1 / -1 !important;
  }
  .card-body {
      padding: 0 !important;
  }

  /* Carte info header : masquer à l'écran, garder QR */
  .card-info-header {
      display: flex !important;
      justify-content: flex-end !important;
      padding: 0.8rem 1.2rem !important;
  }
  .info-header-left {
      display: none !important;
  }

  /* Afficher l'en-tete d'impression */
  .print-header {
      display: block !important;
      grid-column: 1 / -1;
      margin-bottom: 0.4rem;
  }
  .no-print { display: none; }
  .print-header-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      padding: 0 0 0.5rem;
  }
  .print-brand-name {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 16pt;
      font-weight: 700;
      color: #1a5f8a;
      letter-spacing: 0.02em;
  }
  .print-brand-sub {
      font-size: 9pt;
      color: #64748b;
      margin-top: 2px;
  }
  .print-title-block {
      text-align: right;
  }
  .print-doc-title {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 16pt;
      font-weight: 700;
      color: #e9b144;
      letter-spacing: 0.06em;
      text-transform: uppercase;
  }
  .print-ref {
      font-size: 24px;
      color: #64748b;
      margin-top: 2px;
      font-weight: 600;
  }
  .print-separator {
      height: 3px;
      background: linear-gradient(90deg, #38a9e3, #1a5f8a);
      border-radius: 2px;
      margin-top: 0.3rem;
  }

  .qr-block {
      display: block;
      text-align: center;
  }
}
