/* ============================================================
   Convention 2027 — style.css  v9
   Réécriture complète — aucun résidu des builds précédents
   Thème : Bleu marine (#0f1f3d) & Or (#c9a84c)
   Fonts : Playfair Display (titres) + DM Sans (corps)
============================================================ */

/* ─────────────────────────────────────────────────────────
   VARIABLES
───────────────────────────────────────────────────────── */
:root {
  --navy:        #0f1f3d;
  --navy-mid:    #1a3560;
  --gold:        #c9a84c;
  --gold-light:  #e8c97a;
  --cream:       #faf8f4;
  --white:       #ffffff;
  --gray-100:    #f4f5f7;
  --gray-200:    #e8eaed;
  --gray-400:    #9aa0ab;
  --gray-600:    #5f6775;
  --gray-800:    #2d3340;
  --error-bg:    #fff0f0;
  --error-brd:   #f5c6cb;
  --error-txt:   #8b1a1a;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 8px rgba(15,31,61,.07);
  --shadow-md:   0 6px 24px rgba(15,31,61,.11);
  --shadow-lg:   0 16px 48px rgba(15,31,61,.15);
  --tr:          .2s ease;
}

/* ─────────────────────────────────────────────────────────
   RESET
───────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--gray-800);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ─────────────────────────────────────────────────────────
   FOND DÉCORATIF
───────────────────────────────────────────────────────── */
.page-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-shape { position: absolute; border-radius: 50%; opacity: .04; background: var(--navy); }
.shape-1  { width: 700px; height: 700px; top: -200px; right: -150px; }
.shape-2  { width: 500px; height: 500px; bottom: -100px; left: -120px; }

/* ─────────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.header-inner {
  max-width: 1400px; margin: auto; padding: 0 32px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.header-logo { display: flex; align-items: center; gap: 12px; }
.logo-year   { font-family: 'Playfair Display', serif; font-size: 1.5em; font-weight: 700; color: var(--gold); }
.logo-sep    { color: rgba(255,255,255,.2); font-size: 1.3em; }
.logo-text   { color: rgba(255,255,255,.85); font-weight: 500; font-size: 1em; letter-spacing: .08em; text-transform: uppercase; }
.header-nav  { display: flex; align-items: center; gap: 8px; }
.nav-link {
  color: rgba(255,255,255,.75); text-decoration: none;
  padding: 7px 16px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.15);
  font-size: .88em; font-weight: 500; transition: var(--tr);
}
.nav-link:hover           { background: rgba(255,255,255,.1); color: var(--white); }
.nav-link--logout         { border-color: rgba(201,168,76,.3); color: var(--gold-light); }
.nav-link--logout:hover   { background: rgba(201,168,76,.1); }
.version-badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px; background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.35); border-radius: 20px;
  font-size: .72em; font-weight: 700; color: var(--gold-light); letter-spacing: .06em;
}

/* ─────────────────────────────────────────────────────────
   MAIN WRAP
───────────────────────────────────────────────────────── */
.main-wrap {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ─────────────────────────────────────────────────────────
   TITRE DE PAGE
───────────────────────────────────────────────────────── */
.page-title-block { text-align: center; margin-bottom: 40px; }
.page-eyebrow {
  font-size: .78em; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.6em; color: var(--navy); line-height: 1.2; margin-bottom: 8px;
}
.page-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.1em; color: var(--navy); font-weight: 600; margin-bottom: 6px;
}
.page-tarif       { color: var(--gray-600); font-size: .93em; }
.page-tarif strong { color: var(--navy); }

/* ─────────────────────────────────────────────────────────
   ALERTES
───────────────────────────────────────────────────────── */
.alert {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 22px; border-radius: var(--radius-md); margin-bottom: 32px;
  animation: slideDown .3s ease;
}
@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:none; } }
.alert-error { background: var(--error-bg); border: 1px solid var(--error-brd); color: var(--error-txt); }
.alert-icon  { font-size: 1.4em; flex-shrink: 0; }
.alert strong { display: block; margin-bottom: 6px; }
.alert ul    { padding-left: 18px; }
.alert li    { margin-bottom: 3px; font-size: .92em; }

/* ─────────────────────────────────────────────────────────
   SECTIONS DU FORMULAIRE
───────────────────────────────────────────────────────── */
.form-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  padding: 28px 32px;
  transition: box-shadow var(--tr);
}
.form-section:hover { box-shadow: var(--shadow-md); }

.section-label {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px; padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}
.section-number {
  font-family: 'Playfair Display', serif;
  font-size: 2em; font-weight: 700; color: var(--gold); opacity: .6; line-height: 1;
}
.section-label h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2em; color: var(--navy); font-weight: 600;
}
.section-desc { color: var(--gray-600); font-size: .88em; margin-bottom: 16px; margin-top: -8px; }

/* ─────────────────────────────────────────────────────────
   COMPOSANT CHAMP GÉNÉRIQUE
   Utilisé dans sections 02, 03, login
───────────────────────────────────────────────────────── */
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label {
  font-size: .80em; font-weight: 600; color: var(--gray-600);
  letter-spacing: .05em; text-transform: uppercase;
}
.field-group input,
.field-group select {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: .93em; color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--tr), box-shadow var(--tr);
  appearance: none;
}
.field-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa0ab' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px;
}
.field-group input:focus,
.field-group select:focus {
  outline: none; border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(26,53,96,.1);
}
.field-group input::placeholder { color: var(--gray-400); }
.req { color: var(--gold); margin-left: 1px; }

/* ─────────────────────────────────────────────────────────
   MONTANT FIXE
───────────────────────────────────────────────────────── */
.montant-fixed {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  background: var(--gray-100); height: 42px;
}
.montant-value { font-weight: 700; font-size: 1em; color: var(--navy); white-space: nowrap; }
.montant-hint  {
  font-size: .72em; color: var(--gray-400);
  background: var(--gray-200); padding: 2px 8px; border-radius: 20px;
}

/* ─────────────────────────────────────────────────────────
   ROW 2 COLONNES — sections 01 + 02 côte à côte
───────────────────────────────────────────────────────── */
.two-col-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
  align-items: start;
}

/* ─────────────────────────────────────────────────────────
   SECTION 01 — MAIN PARTICIPANT
   Système p1-* : flex column + lignes flex row explicites
───────────────────────────────────────────────────────── */
.p1-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p1-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: flex-end;   /* aligne sur le bas de l'input */
}

/* Chaque champ dans p1 */
.p1-row .field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;           /* empêche overflow flex */
}
.p1-row .field-group label {
  font-size: .80em; font-weight: 600; color: var(--gray-600);
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.p1-row .field-group input,
.p1-row .field-group select {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: .93em; color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--tr), box-shadow var(--tr);
  appearance: none;
}
.p1-row .field-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa0ab' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
.p1-row .field-group input:focus,
.p1-row .field-group select:focus {
  outline: none; border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(26,53,96,.1);
}
.p1-row .field-group input::placeholder { color: var(--gray-400); font-size: .9em; }

/* ── Proportions ────────────────────────────────────────
   LIGNE 1 : Title(fixe) · First Name(flex1) · Last Name(flex1)
   LIGNE 2 : Address (100%)
   LIGNE 3 : Address 2 (100%)
   LIGNE 4 : Zip(fixe) · City(2x) · State(1.4x) · Country(1.4x)
   LIGNE 5 : Email(flex1) · Fee(fixe)
──────────────────────────────────────────────────────── */
.p1-title   { flex: 0 0 78px;  min-width: 0; }
.p1-grow    { flex: 1 1 0;     min-width: 0; }
.p1-full    { flex: 1 1 100%;  min-width: 0; }
.p1-zip     { flex: 0 0 88px;  min-width: 0; }
.p1-city    { flex: 2 1 0;     min-width: 0; }
.p1-state   { flex: 1.4 1 0;   min-width: 0; }
.p1-country { flex: 1.4 1 0;   min-width: 0; }
.p1-fee     { flex: 0 0 150px; min-width: 0; }

.p1-fee .montant-fixed { height: 42px; }

/* ─────────────────────────────────────────────────────────
   SECTION 02 — ACCOMPANYING MEMBERS
───────────────────────────────────────────────────────── */
.section-accompagnants { display: flex; flex-direction: column; }

.membres-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 0 8px 8px;
  font-size: .72em; font-weight: 600; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid var(--gray-200); margin-bottom: 6px;
}
.mh-num { flex: 0 0 24px; text-align: center; }

#membres-list { display: flex; flex-direction: column; gap: 6px; }

.membre-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid #c0cef7; background: #f0f4ff;
  animation: rowIn .22s ease;
  min-width: 0;
}
@keyframes rowIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
.membre-row--new      { opacity: 0; transform: translateY(-6px); }
.membre-row--removing { opacity: 0; transform: translateY(-4px); transition: opacity .22s, transform .22s; }

/* Colonnes flex membres */
.fam-select   {
  flex: 0 0 58px; min-width: 0;
  padding: 6px 4px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: .82em; background: var(--white);
  appearance: none; cursor: pointer; text-align: center;
  transition: border-color var(--tr);
}
.fam-select:focus { outline: none; border-color: var(--navy-mid); }

.fam-field {
  flex: 1 1 0; min-width: 0;
  padding: 6px 8px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: .87em; background: var(--white);
  transition: border-color var(--tr);
}
.fam-field:focus { outline: none; border-color: var(--navy-mid); box-shadow: 0 0 0 3px rgba(26,53,96,.1); }
.fam-ln { flex: 1.4 1 0; } /* Last name un peu plus large */

.child-label  { flex: 0 0 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fam-fee      { flex: 0 0 82px; text-align: right; display: flex; align-items: center; justify-content: flex-end; }
.fee-amount   {
  display: inline-block; background: var(--navy); color: var(--gold-light);
  font-weight: 700; font-size: .76em; padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}
.btn-remove-membre {
  flex: 0 0 26px;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--error-brd); background: none; color: #c0392b;
  font-size: 1.05em; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: var(--tr);
}
.btn-remove-membre:hover { background: #fff0f0; border-color: #c0392b; }

/* Header colonnes alignées sur les flex membres */
.membres-header .mh-title   { flex: 0 0 58px; }
.membres-header .mh-fn      { flex: 1 1 0; }
.membres-header .mh-name    { flex: 1.4 1 0; }
.membres-header .mh-child   { flex: 0 0 36px; text-align: center; font-size: .68em; }
.membres-header .mh-fee     { flex: 0 0 82px; text-align: right; }
.membres-header .mh-del     { flex: 0 0 26px; }

.membres-actions {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--gray-200);
}
.membres-count-wrap { font-size: .8em; color: var(--gray-400); }
.membres-count-val  { font-weight: 700; color: var(--navy); }

.btn-add-membre {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; background: var(--navy); color: var(--white);
  border: none; border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: .86em; font-weight: 600;
  cursor: pointer; letter-spacing: .02em;
  box-shadow: 0 3px 10px rgba(15,31,61,.2);
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
}
.btn-add-membre:hover:not(:disabled) {
  background: var(--navy-mid); transform: translateY(-1px); box-shadow: 0 5px 16px rgba(15,31,61,.28);
}
.btn-add-membre:disabled { opacity: .45; cursor: not-allowed; }

/* ─────────────────────────────────────────────────────────
   SECTION 03 — ACCOMMODATION & TRANSPORT
───────────────────────────────────────────────────────── */
.accom-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.accom-col { display: flex; flex-direction: column; gap: 14px; }

.collapsible-block {
  display: none; flex-direction: column; gap: 14px;
  padding: 18px; background: #f5f3ff;
  border: 1px solid #d4c9f7; border-radius: var(--radius-md);
  animation: fadeIn .3s ease;
}
.collapsible-block.open { display: flex; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.family-host-title { font-weight: 600; color: #4c1d95; font-size: .9em; }

/* ─────────────────────────────────────────────────────────
   SECTION 04 — RÉCAPITULATIF
───────────────────────────────────────────────────────── */
.recap-section { padding: 22px 32px; }
.recap-inner   { max-width: 100%; margin-left: 0; }
.recap-ligne > span:first-child { padding-right: 40px; }
.recap-ligne {
  display: flex; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--gray-200);
  font-size: .92em; color: var(--gray-600);
}
.recap-total {
  display: flex; justify-content: space-between; padding: 14px 0 0;
  font-family: 'Playfair Display', serif; font-size: 1.2em; font-weight: 700; color: var(--navy);
}

/* ─────────────────────────────────────────────────────────
   BOUTON SUBMIT
───────────────────────────────────────────────────────── */
.submit-zone { text-align: center; margin-top: 8px; }
.btn-submit {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 48px; background: var(--navy); color: var(--white);
  border: none; border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif; font-size: 1.05em; font-weight: 600;
  cursor: pointer; letter-spacing: .03em;
  box-shadow: 0 4px 20px rgba(15,31,61,.25);
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
}
.btn-submit:hover  { background: var(--navy-mid); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(15,31,61,.3); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { background: var(--gray-300); cursor: not-allowed; opacity: .6; transform: none; box-shadow: none; }
.btn-submit:disabled:hover { background: var(--gray-300); transform: none; box-shadow: none; }
.submit-note { margin-top: 12px; font-size: .8em; color: var(--gray-400); }

/* ─────────────────────────────────────────────────────────
   PAGE CONFIRMATION
───────────────────────────────────────────────────────── */
.confirm-card {
  max-width: 540px; margin: 40px auto; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 50px 42px; text-align: center; animation: fadeUp .45s ease;
}
@keyframes fadeUp { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:none; } }
.confirm-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, #1a7a4a, #28a86e); color: white; font-size: 1.8em;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; box-shadow: 0 8px 24px rgba(26,122,74,.3);
}
.confirm-card h1    { font-family: 'Playfair Display', serif; font-size: 1.9em; color: var(--navy); margin-bottom: 10px; }
.confirm-subtitle   { color: var(--gray-600); margin-bottom: 6px; }
.confirm-email      { color: var(--gray-400); font-size: .86em; margin-bottom: 26px; }
.confirm-recap      { background: var(--gray-100); border-radius: var(--radius-md); padding: 4px 0; margin-bottom: 26px; text-align: left; }
.recap-row          { display: flex; justify-content: space-between; padding: 11px 18px; font-size: .9em; border-bottom: 1px solid var(--gray-200); }
.recap-row:last-child { border-bottom: none; }
.recap-row span:first-child  { color: var(--gray-600); }
.recap-row span:last-child   { font-weight: 600; color: var(--navy); }
.recap-total-row span        { font-size: 1.05em; font-weight: 700; }
.recap-total-row span:last-child { color: var(--gold); }
.confirm-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary   { padding: 11px 22px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; font-size: .93em; background: var(--navy); color: white; transition: var(--tr); display: inline-block; }
.btn-primary:hover   { background: var(--navy-mid); transform: translateY(-1px); }
.btn-secondary { padding: 11px 22px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; font-size: .93em; background: var(--gray-100); color: var(--gray-800); border: 1px solid var(--gray-200); transition: var(--tr); display: inline-block; }
.btn-secondary:hover { background: var(--gray-200); }

/* ─────────────────────────────────────────────────────────
   PAGE LOGIN
───────────────────────────────────────────────────────── */
.login-card {
  max-width: 400px; margin: 60px auto; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 48px 38px; text-align: center; animation: fadeUp .4s ease;
}
.login-icon     { font-size: 2.4em; margin-bottom: 14px; }
.login-title    { font-family: 'Playfair Display', serif; font-size: 1.7em; color: var(--navy); margin-bottom: 8px; }
.login-subtitle { color: var(--gray-600); font-size: .9em; margin-bottom: 26px; }
.login-error    { background: var(--error-bg); border: 1px solid var(--error-brd); color: var(--error-txt); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .86em; margin-bottom: 18px; }
.login-form     { text-align: left; }
.login-form .field-group { margin-bottom: 14px; }
.login-back     { display: block; margin-top: 22px; font-size: .84em; color: var(--gray-400); text-decoration: none; }
.login-back:hover { color: var(--navy); }

/* ─────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────── */
.site-footer {
  position: relative; z-index: 1; text-align: center;
  padding: 22px; font-size: .78em; color: var(--gray-400);
  border-top: 1px solid var(--gray-200); margin-top: 40px; background: var(--white);
}
.footer-sep { margin: 0 8px; opacity: .4; }

/* ─────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .two-col-row            { grid-template-columns: 1fr; }
  .accom-grid             { grid-template-columns: 1fr; }
  .p1-row                 { flex-direction: column; gap: 14px; }
  .p1-title, .p1-grow, .p1-full,
  .p1-zip, .p1-city, .p1-state, .p1-country,
  .p1-fee                 { flex: 1 1 100%; }
}

@media (max-width: 600px) {
  .main-wrap              { padding: 24px 14px 60px; }
  .form-section           { padding: 20px 16px; }
  .page-title             { font-size: 1.8em; }
  .membres-header         { display: none; }
  .membre-row             { flex-wrap: wrap; }
  .fam-fee                { margin-left: auto; }
  .recap-inner            { max-width: 100%; }
  .confirm-card           { padding: 28px 16px; }
}

/* ── BUILD 10 : select gender dans membres ── */
.fam-select {
  width: 100%; padding: 6px 8px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: .82em; background: var(--white);
  appearance: none; cursor: pointer;
  transition: border-color var(--tr);
}
.fam-select:focus { outline: none; border-color: var(--navy-mid); }

/* Badge gender dans liste.php */
.chip-gender {
  display: inline-block; font-size: .75em; font-weight: 700;
  color: var(--navy-mid); margin-right: 3px;
  background: var(--gray-100); padding: 1px 5px; border-radius: 4px;
}

/* ── BUILD 10.3 : validation champs ── */
.field-error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231,76,60,.15) !important;
}
.field-error-msg {
  display: block;
  color: #e74c3c;
  font-size: .75em;
  margin-top: 3px;
  font-weight: 500;
}

/* ── BUILD 10.4 ── */

/* Ligne 4 : Zip/City/State/Country empilés verticalement */
.p1-row--col4 {
  flex-direction: column !important;
  gap: 12px !important;
  align-items: stretch !important;
}
.p1-row--col4 .field-group { flex: none !important; width: 100%; }

/* child checkbox styles */
.child-label {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.child-label input[type="checkbox"] { display: none; }
.child-mark {
  width: 20px; height: 20px;
  border: 2px solid var(--gray-400);
  border-radius: 4px;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: var(--tr);
  position: relative;
}
.child-label input:checked + .child-mark {
  background: #f59e0b;
  border-color: #f59e0b;
}
.child-label input:checked + .child-mark::after {
  content: '';
  width: 5px; height: 9px;
  border: 2px solid white;
  border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px,-1px);
}

/* Ligne enfant : fond légèrement différent */
.membre-row--child {
  background: #fffbeb;
  border-color: #fcd34d;
}
.membre-row--child .fee-child { background: #f59e0b; }

/* Fee adult / child badges */
.fee-adult { background: var(--navy); color: var(--gold-light); }
.fee-child  { background: #f59e0b;    color: white; }

/* ── BUILD 10.7.6 : Payment box ── */
.payment-box {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 20px 0;
  text-align: center;
}
.payment-box p { color: #166534; font-weight: 500; margin-bottom: 12px; }
.btn-payment {
  display: inline-block;
  padding: 12px 28px;
  background: #16a34a;
  color: white;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  transition: var(--tr);
  box-shadow: 0 3px 12px rgba(22,163,74,.25);
}
.btn-payment:hover { background: #15803d; transform: translateY(-1px); }

/* ── BUILD 10.8 : Previous Conventions ── */
.conventions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.conv-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  transition: var(--tr);
  user-select: none;
}
.conv-checkbox:hover {
  border-color: var(--navy-mid);
  background: #f0f4ff;
}
.conv-checkbox input[type="checkbox"] { display: none; }
.conv-mark {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 2px solid var(--gray-400);
  border-radius: 5px;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: var(--tr);
}
.conv-checkbox input:checked ~ .conv-mark {
  background: var(--navy);
  border-color: var(--navy);
}
.conv-checkbox input:checked ~ .conv-mark::after {
  content: '';
  width: 6px; height: 10px;
  border: 2px solid white;
  border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px,-1px);
}
.conv-checkbox input:checked ~ .conv-label strong { color: var(--navy); }
.conv-checkbox:has(input:checked) {
  border-color: var(--navy-mid);
  background: #f0f4ff;
}
.conv-label { display: flex; flex-direction: column; gap: 2px; }
.conv-label strong { font-size: 1em; color: var(--gray-800); }
.conv-label small  { font-size: .75em; color: var(--gray-400); }

/* ── BUILD 10.9 : Access code ── */
.access-code-box {
  background: #f0f9ff;
  border: 2px solid #7dd3fc;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  margin: 20px 0;
}
.access-code-box p { color: #075985; font-weight: 500; margin-bottom: 10px; }
.access-code {
  font-size: 2.2em;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--navy);
  font-family: 'Courier New', monospace;
  background: var(--white);
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--navy-mid);
  margin: 8px 0;
}
.access-code-hint {
  font-size: .82em;
  color: var(--gray-600);
  margin-top: 8px;
}
.access-code-hint a { color: var(--navy-mid); }

/* ── BUILD 10.9.2 : Logo header ── */
.header-logo-img {
  height: 32px;
  width:  32px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,.4);
}

/* ── Bloc introduction ── */
.intro-block {
  display: flex;
  gap: 28px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px 36px;
  margin-bottom: 40px;
  border-left: 4px solid var(--gold);
}
.intro-logo { flex-shrink: 0; }
.intro-logo-img {
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-200);
}
.intro-content { flex: 1; min-width: 0; }
.intro-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35em;
  color: var(--navy);
  margin-bottom: 12px;
}
.intro-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.intro-meta span {
  font-size: .88em;
  font-weight: 600;
  color: var(--navy-mid);
  background: var(--gray-100);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
}
.intro-text {
  color: var(--gray-600);
  font-size: .92em;
  line-height: 1.7;
  margin-bottom: 20px;
}
.intro-fee-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.intro-fee-info span {
  font-size: .82em;
  color: var(--gray-600);
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 4px 12px;
  border-radius: 20px;
}
.intro-fee-info strong { color: var(--navy); }

@media (max-width: 600px) {
  .intro-block { flex-direction: column; }
  .intro-logo-img { width: 70px; height: 70px; }
}

/* ── Header titles ── */
.header-titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,.15);
  margin-left: 8px;
}
.header-main-title {
  font-family: 'Playfair Display', serif;
  font-size: 1em;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.header-sub-title {
  font-size: .72em;
  color: var(--gold-light);
  font-weight: 400;
  letter-spacing: .04em;
}

/* ── BUILD 10.10 : maiden_name dans membres ── */
.fam-maiden { flex: 1.2 1 0; min-width: 0; }

/* ── BUILD 10.11 : Admin role badge ── */
.admin-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .8em;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
}
.role-tag {
  font-size: .72em;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.role-rw .role-tag { background: #16a34a; color: white; }
.role-ro .role-tag { background: #d97706; color: white; }

/* ── Header test email form ── */
.header-test-email-form {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-test-email-input {
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.1);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: .82em;
  width: 190px;
}
.header-test-email-input::placeholder { color: rgba(255,255,255,.45); }
.header-test-email-input:focus {
  outline: none;
  border-color: rgba(201,168,76,.5);
  background: rgba(255,255,255,.15);
}

/* ── BUILD 10.12 : Edit inline liste ── */
.btn-edit-inline {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  background: #e0f2fe; color: #075985;
  font-size: 1em; text-decoration: none;
  transition: var(--tr); margin-right: 4px;
}
.btn-edit-inline:hover { background: #bae6fd; }

.edit-row td {
  background: #fefce8;
  border-top: 2px solid #fde047;
  border-bottom: 2px solid #fde047;
  padding: 16px 20px;
}
.edit-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.edit-group { display: flex; flex-direction: column; gap: 4px; }
.edit-group--wide { grid-column: span 2; }
.edit-group--full { grid-column: 1 / -1; }
.edit-group label {
  font-size: .72em; font-weight: 700;
  color: var(--gray-600); text-transform: uppercase; letter-spacing: .05em;
}
.edit-group input,
.edit-group select {
  padding: 6px 10px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: .88em;
  background: var(--white);
  transition: border-color var(--tr);
}
.edit-group input:focus,
.edit-group select:focus {
  outline: none;
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(26,53,96,.08);
}
.edit-convs {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px;
}
.edit-conv-cb {
  display: flex; align-items: center; gap: 6px;
  font-size: .86em; cursor: pointer;
  background: var(--white); padding: 5px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 20px; transition: var(--tr);
}
.edit-conv-cb:has(input:checked) {
  background: #eef2ff; border-color: var(--navy-mid); color: var(--navy);
}
.edit-conv-cb input { display: none; }
.edit-actions {
  display: flex; gap: 10px; align-items: center; margin-top: 8px;
}

/* ── BUILD 10.12.4 : Membres dans edit inline ── */
.edit-membres-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.edit-membre-row {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  background: #f0f4ff; border: 1px solid #c0cef7;
  border-radius: var(--radius-sm); padding: 6px 8px;
}
.edit-fam-sel   { flex: 0 0 58px; padding: 5px 4px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-size: .82em; background: white; }
.edit-fam-field { flex: 1 1 100px; padding: 5px 8px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-size: .85em; background: white; }
.edit-child-lbl { display: flex; align-items: center; gap: 4px; font-size: .78em; color: var(--gray-600); cursor: pointer; white-space: nowrap; }
.edit-child-lbl input { width: 14px; height: 14px; }

.edit-group--full .edit-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* Base commune aux 3 boutons */
.edit-group--full .edit-actions .btn-save,
.edit-group--full .edit-actions .btn-cancel,
.edit-group--full .edit-actions .btn-add-membre,
.btn-list-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  border-radius: 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: .86em; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: var(--tr); white-space: nowrap;
  height: 36px; box-sizing: border-box;
  border: 2px solid transparent;
}

/* Add member — outline navy */
.btn-list-add {
  background: transparent; color: var(--navy); border-color: var(--navy);
}
.btn-list-add:hover { background: var(--navy); color: white; }

/* Save — solid navy */
.btn-list-save {
  background: var(--navy); color: white; border-color: var(--navy);
}
.btn-list-save:hover { background: var(--navy-mid); border-color: var(--navy-mid); }

/* Cancel — outline gris */
.btn-list-cancel {
  background: transparent; color: var(--gray-600); border-color: var(--gray-400);
}
.btn-list-cancel:hover { background: var(--gray-100); color: var(--gray-800); }

/* ── Field hint link ── */
.field-hint-link {
  display: inline-block;
  margin-top: 5px;
  font-size: .78em;
  color: var(--navy-mid);
  text-decoration: none;
  font-weight: 500;
  opacity: .8;
  transition: var(--tr);
}
.field-hint-link:hover { opacity: 1; text-decoration: underline; }

/* ── BUILD 10.13.4 : Modale Practical Info ── */
.btn-infos-modal {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px;
  padding: 7px 16px;
  background: #f0f4ff;
  color: var(--navy);
  border: 1.5px solid #c0cef7;
  border-radius: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: .82em; font-weight: 600;
  cursor: pointer;
  transition: var(--tr);
}
.btn-infos-modal:hover {
  background: var(--navy); color: white; border-color: var(--navy);
}

/* ── Modale Practical Info ── */
.infos-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(15,31,61,.65);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.infos-modal-overlay:target { display: flex; }

/* Box */
.infos-modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(15,31,61,.35);
  width: 100%; max-width: 900px;
  max-height: 88vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: modalIn .22s ease;
}
@keyframes modalIn {
  from { opacity:0; transform: scale(.96) translateY(10px); }
  to   { opacity:1; transform: none; }
}

/* Header modale */
.infos-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  background: var(--navy);
  flex-shrink: 0;
}
.infos-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05em; font-weight: 600;
  color: var(--white);
}
.infos-modal-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.3);
  background: transparent; color: rgba(255,255,255,.8);
  font-size: 1em; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--tr);
}
.infos-modal-close:hover { background: rgba(255,255,255,.15); color: white; }

/* Corps : iframe */
.infos-modal-body {
  flex: 1; overflow: hidden;
  display: flex; flex-direction: column;
}
.infos-modal-iframe {
  flex: 1; border: none; width: 100%; height: 100%;
  min-height: 500px;
}

/* ── Bouton Maps inline ── */
.btn-maps-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 8px;
  padding: 3px 10px;
  background: #f0fdf4; color: #166534;
  border: 1.5px solid #86efac;
  border-radius: 20px;
  font-size: .78em; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: var(--tr);
  vertical-align: middle;
}
.btn-maps-link:hover { background: #16a34a; color: white; border-color: #16a34a; }

/* ── BUILD 10.15.4 : Admin layout 3 colonnes fixe ── */
.admin-layout-3col {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr) minmax(260px, 1.3fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}
.admin-col { display: flex; flex-direction: column; gap: 0; }

/* Table pays compacte */
.ref-table--compact td,
.ref-table--compact th {
  padding: 5px 10px;
  font-size: .78em;
}
.ref-table--compact .td-actions { width: 70px; }
.ref-table--compact .btn-edit,
.ref-table--compact .btn-del-sm { padding: 2px 6px; font-size: .72em; }
.ref-table--compact .usage-badge { font-size: .68em; padding: 1px 5px; }

@media (max-width: 1100px) {
  .admin-layout-3col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .admin-layout-3col { grid-template-columns: 1fr; }
}

/* ── BUILD 10.16 : Admin menu latéral ── */
.admin-sidenav {
  width: 200px;
  flex-shrink: 0;
  background: var(--navy);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-sidenav-title {
  font-family: 'Playfair Display', serif;
  font-size: .8em;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 0 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 8px;
}
.admin-sidenav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: rgba(255,255,255,.7);
  font-size: .88em;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: var(--tr);
  border-left: 3px solid transparent;
}
.admin-sidenav-item:hover {
  background: rgba(255,255,255,.08);
  color: white;
}
.admin-sidenav-item.active {
  background: rgba(255,255,255,.12);
  color: white;
  border-left-color: var(--gold);
  font-weight: 700;
}
.admin-panel-wrap {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 24px 28px;
  min-height: 500px;
}
.admin-panel { animation: fadeIn .18s ease; }
#panel-list  { max-width: 100% !important; width: 100%; }
#panel-users .admin-card-body,
#panel-discounts .admin-card-body,
#panel-stripe .admin-card-body,
#panel-list .admin-card-body { max-width: 100%; }
#panel-titles .admin-card-body,
#panel-accom .admin-card-body,
#panel-transport .admin-card-body,
#panel-conv .admin-card-body,
#panel-countries .admin-card-body { max-width: 500px; }
.admin-panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3em;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}
@keyframes fadeIn { from { opacity:0; transform:translateX(6px); } to { opacity:1; transform:none; } }

/* ── BUILD 10.16.13 : Languages / Dietary / Mobility ── */
.check-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 20px;
  cursor: pointer;
  font-size: .88em; font-weight: 500;
  transition: var(--tr);
  user-select: none;
}
.check-pill:has(input:checked) {
  background: #eef2ff;
  border-color: var(--navy-mid);
  color: var(--navy);
}
.check-pill input { display: none; }
.check-pill--sm { font-size: .82em; padding: 4px 12px; }

.dietary-person {
  background: #f8faff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 8px;
}
.dietary-person-name {
  font-weight: 600; font-size: .9em; color: var(--navy);
}
