/* App PremDrive : charte graphique v2.0 (octobre 2026).
   Crème et blanc dominent, l'encre écrit, le bronze souligne (jamais de texte bronze sur fond clair, jamais d'aplat).
   Ladies Days : mêmes formes, ses propres couleurs ; on ne mélange jamais les deux palettes. */

@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 600; font-display: swap; src: url("/static/fonts/playfair-display-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/poppins-latin-600-normal.woff2") format("woff2"); }

:root {
  --creme: #FAF6F0;
  --sable: #F3EBDF;
  --blanc: #FFFFFF;
  --encre: #1E1915;
  --texte: #5A5048;
  --accent: #BB9065;        /* bronze : pastilles, puces, route, soulignements (jamais de texte sur fond clair) */
  --accent-texte: #A47648;  /* bronze italique : sur-titres et mots d'accent, 20 px et plus */
  --lisere: #E6D9C7;
  --taupe: #8C8077;
  --brun: #7A5C3E;
  --bronze-clair: #E2D8C7;
  --noir-tuiles: #0F1017;
  --ok: #3F6B4A;
  --alerte: #9A4B2E;
  --ombre: 0 10px 30px rgba(30, 25, 21, 0.06);
  --r-carte: 24px;
  --r-photo: 28px;
  --r-faq: 20px;
  --r-champ: 14px;
}

/* Ladies Days : valeurs relevées sur ladies-days.fr (novembre 2026). Bordeaux pour les titres et les boutons, texte
   prune-gris, rose poudré pour souligner, fonds crème et rose pâle alternés, pied de page clair. */
[data-brand="ladies"] {
  --creme: #FBF6F2;
  --sable: #F4E1E6;
  --encre: #6F2940;
  --texte: #534A4D;
  --accent: #C9798E;
  --accent-texte: #A9566E;
  --lisere: #EAD6DB;
  --taupe: #7A6A6F;
  --brun: #8F435A;
  --bronze-clair: #F8E0E4;
  --noir-tuiles: #2B2024;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font: 400 16px/1.7 "Poppins", system-ui, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--encre); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
a:hover { text-decoration-color: var(--encre); }
p { margin: 0 0 1em; max-width: 70ch; }

h1, h2, h3, .serif {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  color: var(--encre);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h1 em, h2 em, h3 em { color: var(--accent-texte); font-style: italic; }
.surtitre {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  color: var(--accent-texte);
  margin: 0 0 0.3em;
  letter-spacing: -0.01em;
}
.chapo { font-size: 1.08rem; max-width: 62ch; }
.muted { color: var(--taupe); }
.small { font-size: 0.875rem; }

/* ---------- En-tête ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--creme) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--lisere);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); }
.brand img { height: 48px; width: auto; }
.brand .brand-text { font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.nav a {
  text-decoration: none; color: var(--encre); font-weight: 600; font-size: 0.93rem;
  padding: 8px 14px; border-radius: 999px; transition: background 0.2s;
}
.nav a:hover { background: var(--sable); }
.nav a.active { background: var(--blanc); box-shadow: inset 0 0 0 1px var(--lisere); }
.who { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.who form { margin: 0; }
.menu-toggle { display: none; }

.switch-brand { display: inline-flex; border: 1px solid var(--lisere); border-radius: 999px; padding: 3px; background: var(--blanc); }
.switch-brand button { border: 0; background: transparent; font: 600 0.8rem "Poppins", sans-serif; color: var(--texte); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.switch-brand button[aria-pressed="true"] { background: var(--encre); color: #fff; }

/* ---------- Mise en page ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) 64px; }
main.narrow { max-width: 560px; }
.section { padding: clamp(32px, 5vw, 56px) 0; }
/* Bandes et route en pleine largeur d'écran, contenu aligné sur la colonne de la page. */
.band { margin: 0 calc(50% - 50vw); padding: clamp(32px, 5vw, 56px) calc(50vw - 50%); }
.band-sable { background: var(--sable); }
.band-creme { background: var(--creme); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
/* Véhicules : toujours 3 par ligne (une seule voiture garde la taille d'une carte), 2 puis 1 sur petit écran. */
.grid-vehicules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-vehicules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-vehicules { grid-template-columns: 1fr; } }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack > * + * { margin-top: 16px; }
.page-head { padding: clamp(28px, 4vw, 48px) 0 12px; }

/* ---------- Ouverture et route ondulée ---------- */
.ouverture { text-align: center; padding: clamp(36px, 6vw, 72px) 0 0; position: relative; }
.ouverture .chapo { margin: 0 auto 1.4em; }
.route { display: block; width: 100vw; margin: 24px calc(50% - 50vw) 0; height: 64px; }
.route .trait { fill: none; stroke: var(--encre); stroke-width: 7; stroke-linecap: round; }
.route .bande { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; }
.route .fond { stroke: none; fill: var(--creme); }
.route-sable .fond { fill: var(--sable); }

/* ---------- Cartes ---------- */
.card {
  background: var(--blanc);
  border: 1px solid var(--lisere);
  border-radius: var(--r-carte);
  box-shadow: var(--ombre);
  padding: clamp(20px, 3vw, 32px);
}
.card h2, .card h3 { margin-top: 0; }
.card-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-photo .photo { position: relative; aspect-ratio: 3 / 2; background: var(--sable); }
.card-photo .photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo .photo .tag { position: absolute; top: 14px; left: 14px; }
.card-photo .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-photo .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.85rem; }
.card-mini { padding: 18px 20px; }
.stat { font-family: "Playfair Display", Georgia, serif; font-size: 2.2rem; color: var(--encre); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--taupe); margin-top: 6px; }

/* Ligne d'agenda */
.agenda { display: flex; align-items: center; gap: 20px; padding: 18px 22px; background: rgba(255, 255, 255, 0.75); border: 1px solid var(--lisere); border-radius: var(--r-photo); }
.agenda + .agenda { margin-top: 12px; }
.agenda .date { font-family: "Playfair Display", Georgia, serif; color: var(--taupe); font-size: 1.5rem; min-width: 128px; line-height: 1.1; }
.agenda .date small { display: block; font-family: "Poppins", sans-serif; font-size: 0.75rem; letter-spacing: 0; }
.agenda .what { flex: 1; min-width: 0; }
.agenda .what strong { display: block; font-family: "Playfair Display", Georgia, serif; font-weight: 600; color: var(--encre); font-size: 1.15rem; }
.agenda .what span { font-size: 0.85rem; }
.agenda:hover .btn-secondary { background: var(--encre); color: #fff; box-shadow: none; }

/* Repère */
.repere { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; }
/* Séjours à venir du tableau de bord : colonnes par univers, une ligne compacte par séjour, tarifs en pictogrammes. */
.sejours-liste { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.sejour-item { min-width: 0; padding: 14px 14px 14px 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; background: var(--creme); border-radius: 18px; box-shadow: inset 4px 0 0 var(--univers, var(--accent)), inset 0 0 0 1px var(--lisere); transition: box-shadow 0.15s, transform 0.15s; }
.sejour-item:hover { transform: translateY(-1px); box-shadow: inset 4px 0 0 var(--univers, var(--accent)), inset 0 0 0 1px var(--accent), var(--ombre); }
.card-univers-supercars { --univers: var(--encre); }
.card-univers-offroad { --univers: var(--brun); }
.card-univers-collection { --univers: var(--accent); }
.card-univers-ladies { --univers: var(--accent); }
.sejour-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sejour-tete strong { display: block; font-weight: 600; font-size: 0.92rem; color: var(--encre); line-height: 1.3; }
.sejour-tete span { display: block; font-size: 0.78rem; color: var(--texte); }
.sejour-tete > div:first-child { min-width: 0; }
.sejour-tete .sejour-dates { display: inline-flex; white-space: nowrap; align-items: center; gap: 6px; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: var(--blanc); box-shadow: inset 0 0 0 1px var(--lisere); font-weight: 500; color: var(--encre); }
.sejour-dates::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--univers, var(--accent)); }
.tarifs-pictos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.tarifs-pictos li { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; white-space: nowrap; }
.sejour-item .tarifs-pictos { gap: 4px 14px; background: var(--sable); border-radius: 12px; padding: 7px 12px; }
.sejour-item .pictos { color: var(--brun); }
.sejour-item .pictos img { filter: brightness(0) saturate(100%) invert(36%) sepia(30%) saturate(620%) hue-rotate(350deg) brightness(92%) contrast(88%); }
.tarifs-pictos strong { font-weight: 600; color: var(--encre); white-space: nowrap; }
.pictos { display: inline-flex; align-items: center; gap: 1px; color: var(--encre); }
.pictos svg { width: 15px; height: 15px; display: block; flex: none; }
.pictos img { max-width: none; flex: none; }
.pictos .sep { width: 3px; }
.sejour-action { display: flex; flex: none; padding-top: 1px; }
.sejour-action .btn-link { font-size: 0.8rem; }
.btn-interet { border: 0; cursor: pointer; font: 600 0.74rem "Poppins", sans-serif; color: var(--encre); background: var(--accent); padding: 6px 12px; border-radius: 999px; white-space: nowrap; transition: background 0.15s; }
.btn-interet:hover { background: var(--bronze-clair); }
.pictos-univers { display: inline-flex; gap: 5px; align-items: center; }
.pictos-univers .picto-vehicule { height: 12px; width: auto; max-width: 34px; display: block; }
/* Participant(e)s : tableau compact, sans défilement horizontal. */
.table-personnes { font-size: 0.84rem; }
.table-personnes th, .table-personnes td { padding: 10px 9px; }
.table-personnes td:nth-child(2) { overflow-wrap: anywhere; min-width: 150px; }
.table-personnes td.actions-icones { white-space: nowrap; text-align: right; padding-right: 12px; }
.table-personnes .tag { font-size: 0.72rem; padding: 3px 8px; }
.actions-icones { display: table-cell; }
.actions-icones .inline-form { display: inline; }
.btn-icone { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--lisere); background: var(--blanc); color: var(--encre); cursor: pointer; vertical-align: middle; margin-left: 4px; padding: 0; text-decoration: none; }
.btn-icone:hover { background: var(--creme); border-color: var(--accent); }
.pictos .vehicule { display: inline-flex; gap: 3px; align-items: center; }
.pictos .vehicule img { height: 14px; width: auto; max-width: 40px; object-fit: contain; display: block; }
.sejour-lien { color: inherit; text-decoration: none; }
.sejour-lien:hover strong { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.table-tarifs { width: 100%; border-collapse: collapse; }
.table-tarifs td { padding: 12px 8px; border-top: 1px solid var(--lisere); vertical-align: middle; }
.table-tarifs tr:first-child td { border-top: 0; }
.table-tarifs .pictos .vehicule img { height: 22px; max-width: 64px; }
.table-tarifs .pictos svg { width: 20px; height: 20px; }
.table-tarifs td:first-child { width: 1%; white-space: nowrap; padding-right: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.repere::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- Boutons, étiquettes ---------- */
.btn, .btn-secondary, button.btn, button.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 0.94rem/1 "Poppins", sans-serif;
  padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.btn { background: var(--encre); color: #fff; }
.btn-secondary { background: var(--blanc); color: var(--encre); box-shadow: inset 0 0 0 1px var(--lisere); }
.btn:hover, .btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(30, 25, 21, 0.12); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1px var(--lisere), 0 8px 18px rgba(30, 25, 21, 0.08); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-link { background: none; border: 0; padding: 0; font: 600 0.9rem "Poppins", sans-serif; color: var(--encre); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; cursor: pointer; }
.btn-danger { background: var(--blanc); color: var(--alerte); box-shadow: inset 0 0 0 1px #E8C9BC; }

.tag { display: inline-flex; align-items: center; font: 600 0.72rem/1 "Poppins", sans-serif; padding: 6px 11px; border-radius: 999px; white-space: nowrap; }
.tag-supercars { background: var(--encre); color: #fff; }
.tag-collection { background: #BB9065; color: #1E1915; }
.tag-offroad { background: var(--brun); color: #fff; }
.tag-ladies { background: #6F2940; color: #fff; }
.tag-neutre { background: var(--sable); color: var(--encre); }
.tag-ok { background: #E3EEE5; color: var(--ok); }
.tag-alerte { background: #F6E3DA; color: var(--alerte); }
.tag-attente { background: var(--blanc); color: var(--encre); box-shadow: inset 0 0 0 1px var(--lisere); }

/* ---------- Badges (macarons de séjours) ---------- */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 20px; }
.badge { text-align: center; }
.badge .medaille {
  width: 112px; height: 112px; margin: 0 auto 10px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% 38%, #fff 0 54%, var(--creme) 55% 100%);
  box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 8px var(--blanc), inset 0 0 0 9px var(--lisere), var(--ombre);
}
.badge .medaille .annee { font-family: "Playfair Display", Georgia, serif; font-size: 1.5rem; color: var(--encre); line-height: 1; }
.badge .medaille .lieu { font-size: 0.66rem; font-weight: 600; color: var(--texte); margin-top: 4px; padding: 0 12px; line-height: 1.2; }
.badge .titre { font-size: 0.8rem; font-weight: 600; color: var(--encre); line-height: 1.3; }
.badge.a-venir .medaille { background: var(--blanc); box-shadow: inset 0 0 0 2px var(--lisere), var(--ombre); opacity: 0.85; }
.badge.a-venir .medaille .annee { color: var(--taupe); }
.badge.manque { filter: grayscale(1); }
.badge.manque .medaille:not(.medaille-raid) { opacity: 0.4; }
.badge.manque .medaille-raid img { opacity: 0.2; }
.badge.manque .titre, .badge.manque .small { opacity: 0.55; }
.badge.manque .medaille { background: var(--sable); box-shadow: inset 0 0 0 2px var(--lisere); }
.badge.manque .medaille .annee, .badge.manque .titre { color: var(--taupe); }

/* ---------- Palmarès par univers ---------- */
.palmares { display: grid; gap: 20px; margin-top: 24px; }
.palmares-univers {
  display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center;
  background: var(--blanc); border-radius: var(--r-carte); padding: 28px; box-shadow: var(--ombre);
}
.palmares-entete { display: grid; gap: 10px; justify-items: center; text-align: center; }
.palmares-logo { width: 100%; height: 130px; display: grid; place-items: center; }
.palmares-logo img { max-width: 100%; max-height: 130px; width: auto; height: auto; display: block; }
.palmares-univers.vierge .palmares-logo { opacity: 0.2; }
.badge .medaille .lieu-titre { font-family: "Playfair Display", Georgia, serif; font-size: 1.05rem; font-weight: 600; color: var(--encre); line-height: 1.15; padding: 0 12px; }
.badge .medaille .fois { font-size: 0.68rem; font-weight: 600; color: var(--texte); margin-bottom: 4px; }
.badge.manque .medaille .lieu-titre { color: var(--taupe); }
.badge .medaille-raid { width: auto; height: 120px; margin: 0 auto 8px; display: grid; place-items: center; }
.badge .medaille.medaille-raid, .badge.manque .medaille.medaille-raid, .badge.a-venir .medaille.medaille-raid { background: none; box-shadow: none; border-radius: 0; opacity: 1; }
.badge .medaille-raid img { height: 120px; width: auto; display: block; }
@media (max-width: 720px) {
  .palmares-univers { grid-template-columns: 1fr; padding: 20px; gap: 18px; }
  .palmares-entete { grid-template-columns: 110px 1fr; justify-items: start; text-align: left; align-items: center; }
  .palmares-logo { height: 84px; }
  .palmares-logo img { max-height: 84px; }
  .palmares .badges { grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
  .palmares .badge .medaille { width: 84px; height: 84px; }
  .palmares .badge .medaille-raid, .palmares .badge .medaille.medaille-raid, .badge.manque .medaille.medaille-raid, .badge.a-venir .medaille.medaille-raid { background: none; box-shadow: none; border-radius: 0; opacity: 1; }
.badge .medaille-raid img { width: auto; height: 92px; }
  .palmares .badge .medaille .lieu-titre { font-size: 0.85rem; padding: 0 8px; }
  .palmares .badge .medaille .lieu { font-size: 0.6rem; padding: 0 8px; }
  .palmares .badge .titre { font-size: 0.72rem; }
}

/* ---------- Avancement ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 0 0 18px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 24px; bottom: 0; width: 2px; background: var(--lisere); }
.timeline li:last-child::before { display: none; }
.timeline .pt { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--lisere); background: var(--blanc); display: grid; place-items: center; font-size: 0.8rem; color: var(--encre); }
.timeline li.done .pt { background: var(--encre); border-color: var(--encre); color: #fff; }
.timeline li.done .pt::after { content: "✓"; }
.timeline strong { display: block; color: var(--encre); font-weight: 600; }
.timeline span { font-size: 0.85rem; color: var(--taupe); }

/* ---------- Personnes ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sable); color: var(--encre); display: grid; place-items: center; font: 600 0.85rem "Poppins", sans-serif; flex: none; border: 1px solid var(--lisere); }
img.avatar { object-fit: cover; padding: 0; }
.avatar-sm { width: 28px; height: 28px; font-size: 0.7rem; }
.nom-avatar { display: inline-flex; align-items: center; gap: 8px; }
.avatar-lg { width: 120px; height: 120px; font-size: 2rem; }
.portrait { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.portrait .stack { flex: 1 1 240px; }
.recadrage { display: grid; gap: 10px; justify-items: start; }
[hidden] { display: none !important; }
.recadrage-zone { position: relative; width: min(100%, 300px); aspect-ratio: 1 / 1; overflow: hidden; border-radius: 20px; background: var(--encre); touch-action: none; cursor: grab; user-select: none; }
.recadrage-zone.glisse { cursor: grabbing; }
.recadrage-zone img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; width: auto; height: auto; pointer-events: none; user-select: none; }
.recadrage-masque { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle closest-side, transparent 97%, rgba(30, 25, 21, 0.6) 100%); }
.recadrage-masque::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85); }
.recadrage-zoom { display: flex; align-items: center; gap: 10px; width: min(100%, 300px); }
.recadrage-zoom > span:first-child { display: inline; margin: 0; font-size: 0.8rem; }
.recadrage-zoom input { flex: 1; accent-color: var(--accent); }
.rappel-photo { display: flex; gap: 16px; align-items: center; text-align: left; max-width: 720px; margin-inline: auto; }
.person { display: flex; align-items: center; gap: 12px; }
.person .who-meta { font-size: 0.82rem; color: var(--taupe); }
.lien-tag { font-size: 0.72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--sable); color: var(--encre); }
.lien-tag.ami { background: var(--encre); color: #fff; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--lisere); border-radius: 18px; background: var(--blanc); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; font-weight: 600; color: var(--encre); background: var(--creme); padding: 12px 14px; border-bottom: 1px solid var(--lisere); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--lisere); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 600; color: var(--encre); background: var(--creme); }

/* ---------- Formulaires ---------- */
form.stack label, label.field { display: block; }
label > span:first-child, .field-label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--encre); margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], input[type="number"], input[type="search"], input[type="url"], select, textarea {
  width: 100%; font: 400 0.95rem "Poppins", sans-serif; color: var(--encre);
  background: var(--blanc); border: 1px solid var(--lisere); border-radius: var(--r-champ);
  padding: 11px 14px; transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.help { display: block; font-size: 0.8rem; color: var(--taupe); margin-top: 5px; }
.error { display: block; font-size: 0.82rem; color: var(--alerte); margin-top: 5px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--encre); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--blanc); box-shadow: inset 0 0 0 1px var(--lisere); font-weight: 600; font-size: 0.88rem; color: var(--encre); cursor: pointer; }
.chip input:checked + span { background: var(--encre); color: #fff; box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-family: "Playfair Display", Georgia, serif; font-weight: 600; color: var(--encre); font-size: 1.25rem; margin-bottom: 12px; }
fieldset.sous-bloc { margin-top: 20px; }
fieldset.sous-bloc > legend { font-family: "Poppins", sans-serif; font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.inline-form { display: inline; margin: 0; }

/* ---------- Messages ---------- */
.flash { padding: 14px 18px; border-radius: 16px; margin: 20px 0 0; font-size: 0.92rem; border: 1px solid var(--lisere); background: var(--blanc); color: var(--encre); }
.flash-success { border-color: #CFE0D3; background: #F2F8F3; }
.flash-error { border-color: #EBCFC3; background: #FBF1EC; color: var(--alerte); }
.empty { text-align: center; padding: 36px 20px; color: var(--taupe); }

/* ---------- Onglets ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 24px; padding: 4px; background: var(--blanc); border: 1px solid var(--lisere); border-radius: 999px; width: fit-content; max-width: 100%; }
.tabs a { text-decoration: none; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 0.88rem; color: var(--encre); }
.tabs a.active { background: var(--encre); color: #fff; }

/* ---------- Connexion ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth .card { width: 100%; max-width: 460px; }
.auth .brand { justify-content: center; margin-bottom: 18px; }
.auth h1 { font-size: 2rem; text-align: center; }
.auth .surtitre { text-align: center; }

/* ---------- Pied de page ---------- */
.footer { background: var(--noir-tuiles); color: #CFC6BC; padding: 28px clamp(16px, 4vw, 48px); font-size: 0.85rem; }
.footer a { color: #fff; }
.footer .inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.devise { font-family: "Playfair Display", Georgia, serif; font-style: italic; color: #BB9065; font-size: 1.15rem; }
[data-brand="ladies"] .devise { color: #C9798E; }
/* Ladies Days : pied de page clair comme sur ladies-days.fr, avec le logo rond. */
[data-brand="ladies"] .footer { background: var(--creme); color: #33272B; border-top: 1px solid var(--lisere); }
[data-brand="ladies"] .footer a { color: var(--encre); }
[data-brand="ladies"] .footer .inner { align-items: center; }
.footer .logo-pied-rond { height: 56px; width: 56px; display: block; }

/* ---------- Divers ---------- */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 0.92rem; }
.kv dt { color: var(--taupe); }
.kv dd { margin: 0; color: var(--encre); }
.vehicle-photo { aspect-ratio: 3 / 2; border-radius: var(--r-photo); overflow: hidden; background: var(--sable); }
.vehicle-photo img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-car { width: 100%; height: 100%; display: grid; place-items: center; color: var(--taupe); }
.vehicle-photo .placeholder-car img.placeholder-picto, .card-photo .photo .placeholder-car img.placeholder-picto { width: auto; height: 48px; max-width: 60%; object-fit: contain; opacity: 0.55; }
.pre { white-space: pre-line; }
.divider { height: 1px; background: var(--lisere); margin: 24px 0; border: 0; }
.right { text-align: right; }
details summary { cursor: pointer; font-weight: 600; color: var(--encre); }
.faq { background: var(--blanc); border: 1px solid var(--lisere); border-radius: var(--r-faq); padding: 16px 20px; }

@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .who .who-name { display: none; }
  .agenda { flex-wrap: wrap; }
  .agenda .date { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Utilitaires (aucun style en ligne : politique de sécurité stricte) */
.mt { margin-top: 20px; }
.mt-sm { margin-top: 10px; }
.mb-0 { margin-bottom: 0; }
.mb { margin-bottom: 24px; }
.qr { max-width: 220px; }
.qr svg { width: 100%; height: auto; }
.w-auto { width: auto; }
.hidden { display: none; }
code { font-size: 0.85em; background: var(--sable); padding: 2px 6px; border-radius: 6px; color: var(--encre); }
.push-right { margin-left: auto; }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
ul.plain li { font-size: 0.9rem; }
.badge-link { text-decoration: none; color: inherit; }
.badge-link:hover .medaille { transform: translateY(-3px); }
.badge .medaille { transition: transform 0.2s; }
.ok-mark { color: var(--ok); font-weight: 600; white-space: nowrap; }
.ok-mark small { color: var(--taupe); font-weight: 400; }
a.plain-link { text-decoration: none; color: inherit; display: block; transition: transform 0.18s; }
a.plain-link:hover { transform: translateY(-2px); }
.cover-preview { max-width: 480px; }
td select { padding: 6px 10px; font-size: 0.82rem; width: auto; }
td form.row { flex-wrap: nowrap; }
.secret-once { font-family: ui-monospace, monospace; font-size: 0.9rem; word-break: break-all; background: var(--sable); padding: 12px 14px; border-radius: 12px; color: var(--encre); }
.logo-preview { max-height: 80px; width: auto; }

/* Navigation : une seule ligne ; nom de l'utilisateur masqué quand la place manque. */
.nav a { white-space: nowrap; }
@media (min-width: 861px) { .nav { flex-wrap: nowrap; } }
@media (max-width: 1360px) { .who .who-name { display: none; } .nav a { padding: 8px 11px; } }
@media (max-width: 860px) { .nav { gap: 2px; } .nav a { padding: 7px 12px; font-size: 0.88rem; } .brand img { height: 40px; } }
.empty p { margin-left: auto; margin-right: auto; }
.switch-brand button { white-space: nowrap; }
button:disabled, button[disabled] { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.brand .brand-text { white-space: nowrap; }
/* Journal : chiffres des connexions sur deux colonnes sur téléphone. */
@media (max-width: 640px) { .grid-stats { grid-template-columns: 1fr 1fr; } .grid-stats .stat { font-size: 1.8rem; } }
/* Réseaux sociaux : pastilles sable, texte encre (jamais de texte bronze sur fond clair). */
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; }
.social-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--sable); color: var(--encre); font: 600 0.82rem/1.2 "Poppins", sans-serif; text-decoration: none; box-shadow: inset 0 0 0 1px var(--lisere); }
.social-link span { font-weight: 400; }
.social-link:hover { background: var(--encre); color: #fff; }
.socials-compact { margin-top: 6px; gap: 6px; }
.socials-compact .social-link { padding: 4px 10px; font-size: 0.74rem; }
/* Logo officiel PremDrive : horizontal dans l'en-tête, vertical noir et or sur les pages de connexion, blanc en pied de page. */
.topbar .brand { flex-shrink: 0; }
.brand img.logo-horizontal { height: 36px; width: 179px; max-width: none; display: block; }
.auth .brand img.logo-vertical { height: 120px; width: auto; display: block; margin: 0 auto 6px; }
.footer .logo-pied { height: 28px; width: auto; display: block; }
@media (max-width: 1360px) { .topbar { gap: 16px; } .brand img.logo-horizontal { height: 26px; width: 129px; } .nav a { padding: 8px 9px; } }
/* Personnes : filtres sur une ligne (passent à la ligne sur petit écran), colonnes triables. */
.filtres { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 16px; align-items: end; }
.filtres .field { margin: 0; }
.filtres-actions { display: flex; align-items: center; gap: 14px; }
th a.sort { color: inherit; text-decoration: none; white-space: nowrap; }
th a.sort span { opacity: 0.35; font-weight: 400; }
th a.sort:hover span, th a.sort.sort-actif span { opacity: 1; }
/* Comptabilité : un coût par carte, avec ses versements et le reste à payer. */
.couts { display: grid; gap: 16px; }
.cout-chiffres { display: flex; gap: 22px; flex-wrap: wrap; text-align: right; }
.cout-chiffres div { display: flex; flex-direction: column; gap: 2px; }
.cout-chiffres strong { font-size: 1.05rem; }
.bandeau-archive { margin: 4px 0 20px; }
/* Consultation de l'espace d'un membre par l'administrateur : bandeau encre, formulaires inactifs. */
.bandeau-consultation { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px clamp(16px, 4vw, 48px); background: var(--encre); color: #fff; font-size: 0.9rem; }
.bandeau-consultation strong { color: #fff; }
.bandeau-consultation .btn { background: #fff; color: var(--encre); }
.consultation .topbar { top: 52px; }
.consultation main form[method="post"] button, .consultation main form[method="post"] input, .consultation main form[method="post"] select, .consultation main form[method="post"] textarea { opacity: 0.5; pointer-events: none; }
.consultation main form[method="post"] .chip input { opacity: 0; }
.consultation main form[method="post"] .chip span { opacity: 0.6; }
td.nowrap { white-space: nowrap; }
/* Statistiques : barres horizontales (<progress>, sans style en ligne), champs courts dans les tableaux. */
.barres { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.barres li { display: grid; grid-template-columns: minmax(110px, 32%) 1fr 8.5em; gap: 12px; align-items: center; font-size: 0.9rem; }
.barre-label { overflow-wrap: anywhere; }
.barre-valeur { white-space: nowrap; text-align: right; color: var(--encre); font-variant-numeric: tabular-nums; }
.barres progress { appearance: none; -webkit-appearance: none; width: 100%; height: 12px; border: 0; border-radius: 999px; background: var(--sable); overflow: hidden; }
.barres progress::-webkit-progress-bar { background: var(--sable); border-radius: 999px; }
.barres progress::-webkit-progress-value { background: var(--encre); border-radius: 999px; }
.barres progress::-moz-progress-bar { background: var(--encre); border-radius: 999px; }
[data-brand="ladies"] .barres progress::-webkit-progress-value { background: #6F2940; }
[data-brand="ladies"] .barres progress::-moz-progress-bar { background: #6F2940; }
.input-court { width: 5.5em; padding: 6px 8px; text-align: right; }
@media (max-width: 640px) { .barres li { grid-template-columns: 1fr auto; } .barres progress { grid-column: 1 / -1; grid-row: 2; } }
.stats-kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .stats-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.table-stats td:first-child { min-width: 220px; }
.table-stats th, .table-stats td.num { white-space: nowrap; }
.table-compacte th, .table-compacte td { padding: 9px 10px; font-size: 0.85rem; }

/* ---------- Budget d'un séjour ---------- */
.budget-cles { padding: 8px 24px; max-width: 720px; }
.budget-cles table { width: 100%; border-collapse: collapse; }
.budget-cles th, .budget-cles td { padding: 10px 6px; border-bottom: 1px solid var(--lisere); text-align: left; font-weight: 500; }
.budget-cles thead th { font-size: 0.8rem; color: var(--taupe); font-weight: 600; }
.budget-cles td.num, .budget-cles th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.budget-cles tbody th .small { display: block; font-weight: 400; }
.budget-cles tr.marge th, .budget-cles tr.marge td { font-weight: 700; font-size: 1.05rem; }
.budget-cles tbody tr:last-child th, .budget-cles tbody tr:last-child td { border-bottom: 0; }
.quantites { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; }
.quantites label { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 600; }
.quantites small { font-weight: 400; font-size: 0.75rem; }
input.court { width: 110px; }
.compteurs { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; font-size: 0.9rem; }
.compteurs strong { font-family: "Playfair Display", Georgia, serif; font-size: 1.15rem; }
.bloc-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--encre); padding-bottom: 8px; }
.bloc-tete h2 { margin: 0; }
.depenses { display: grid; }
.depenses-entete, .depense > summary, .depense .summary-like { display: grid; grid-template-columns: minmax(0, 1fr) 110px 110px 120px; gap: 12px; align-items: center; }
.depenses-entete { padding: 10px 12px 4px; }
.depense { border-bottom: 1px solid var(--lisere); }
.depense > summary, .depense .summary-like { padding: 12px; list-style: none; }
.depense > summary { cursor: pointer; }
.depense > summary::-webkit-details-marker { display: none; }
.depense > summary:hover, .depense[open] > summary { background: var(--sable); border-radius: 12px; }
.depense .num, .depenses-entete .num { text-align: right; font-variant-numeric: tabular-nums; }
.depense-nom { display: grid; min-width: 0; }
.depense-nom strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.depense-corps { padding: 6px 12px 18px; }
.depense-auto .summary-like { color: var(--taupe); }
table.lignes { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.lignes td { padding: 5px 6px; border-bottom: 1px dashed var(--lisere); }
table.lignes td.num { text-align: right; }
.lignes-edit input, .lignes-edit select { width: 100%; min-width: 90px; }
.lignes-edit input.court { width: 100px; }
.versement-form { flex-wrap: wrap; gap: 8px; align-items: center; }
.ajout-depense { flex-wrap: wrap; gap: 8px; padding: 12px; }
.ajout-depense input { flex: 1 1 200px; }
details.modifier > summary { list-style: none; display: inline-block; cursor: pointer; }
details.modifier > summary::-webkit-details-marker { display: none; }
details.modifier[open] > summary { margin-bottom: 12px; }
table.compta th small { display: block; font-weight: 400; font-size: 0.72rem; color: var(--taupe); }
@media (max-width: 720px) {
  .depenses-entete, .depense > summary, .depense .summary-like { grid-template-columns: minmax(0, 1fr) 90px 90px; }
  .depenses-entete span:nth-child(3), .depense > summary > span:nth-child(3), .depense .summary-like > span:nth-child(3) { display: none; }
}
.budget-cles th { background: none; white-space: normal; }
.versement-form input, .versement-form select { width: auto; flex: 0 1 auto; }
.versement-form input[type="date"] { width: 170px; }
.ajout-depense input { width: auto; }
.lignes-edit th { background: none; padding: 6px 4px; font-size: 0.8rem; }
.lignes-edit td { padding: 4px; border-bottom: 0; }
table.lignes td { vertical-align: middle; }
.versement-form input.court { width: 130px; }
.bloc-frais .bloc-tete { border-bottom-color: var(--taupe); }
.ajout-depense form.row { flex: 1 1 280px; flex-wrap: nowrap; }
.recherche-qonto { margin: 0 0 12px; flex-wrap: wrap; } .recherche-qonto input[type="search"] { flex: 1 1 280px; width: auto; }
.ajout-frais input[name="label"] { flex: 1 1 260px; } .ajout-frais input[type="date"] { width: 170px; flex: 0 0 auto; }

/* Budget d'un séjour : synthèse (participations, dépenses, marge) et effectifs en pictogrammes. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hachures-fond { fill: var(--sable); }
.hachures-trait { stroke: var(--taupe); stroke-width: 2; }
.seg-vide { fill: var(--sable); }
.seg-paye { fill: var(--encre); }
.seg-fixe { fill: var(--brun); }
.seg-estime { fill: url(#hachures); }
.seg-reste { fill: var(--bronze-clair); }
.seg-brun { fill: var(--brun); }
.synthese { display: grid; gap: 24px; }
.synthese-carte { display: grid; gap: 14px; align-content: start; }
.effectif-titre { margin: 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--taupe); }
.synthese-chiffre { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.synthese-chiffre .stat-label { margin: 0; }
.barre { display: block; width: 100%; height: 14px; border-radius: 999px; overflow: hidden; }
.pastille { width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; flex: none; }
.pastille-contour rect { fill: var(--blanc); stroke: var(--encre); stroke-width: 3; }
.pastille-libre rect { fill: var(--creme); stroke: var(--taupe); stroke-opacity: 0.45; stroke-width: 3; }
.synthese-detail { margin: 0; display: grid; gap: 6px; }
.synthese-detail div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--lisere); }
.synthese-detail div:last-child { border-bottom: 0; }
.synthese-detail dt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--encre); }
.synthese-detail dd { margin: 0; font-weight: 600; color: var(--encre); font-variant-numeric: tabular-nums; white-space: nowrap; }
.synthese-marge { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--sable); box-shadow: none; }
.marge-calcul { display: grid; gap: 8px; }
.marge-formule { margin: 0; font-size: 1.05rem; color: var(--encre); font-variant-numeric: tabular-nums; }
.marge-formule strong { font-family: "Playfair Display", Georgia, serif; font-size: 1.6rem; font-weight: 600; }
.marge-formule .negatif { color: var(--alerte); }
.marge-tva { display: grid; gap: 4px; text-align: right; padding-left: 24px; }
.marge-tva .stat-label { margin: 0; }
@media (max-width: 640px) {
  .synthese-marge { grid-template-columns: 1fr; }
  .marge-tva { text-align: left; padding: 14px 0 0; border-top: 1px solid var(--lisere); }
}
.effectifs { align-items: stretch; }
.effectif { display: grid; gap: 14px; align-content: start; }
.effectif-champs { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: start; }
form.stack .effectif-champs label { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 600; color: var(--encre); }
.effectif-champs small { font-weight: 400; font-size: 0.75rem; }
.effectif-pictos { display: flex; flex-wrap: wrap; gap: 8px 6px; align-items: end; }
.effectif-pictos-sep { width: 12px; }
.ic { display: block; flex: none; }
.ic-voiture { width: 30px; height: 19px; }
.ic-personne { width: 16px; height: 19px; }
.ic-plein { fill: var(--encre); stroke: var(--encre); stroke-width: 0.5; }
.ic-brun { fill: var(--brun); stroke: var(--brun); stroke-width: 0.5; }
.ic-contour { fill: var(--blanc); stroke: var(--encre); stroke-width: 1.4; }
.ic-libre { fill: var(--creme); stroke: var(--taupe); stroke-opacity: 0.45; stroke-width: 1.2; }
.legende { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: -6px 0 0; color: var(--texte); }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.effectif-total { margin: 0; color: var(--encre); }
.effectif-total strong { font-family: "Playfair Display", Georgia, serif; font-size: 1.5rem; font-weight: 600; }
.effectif-totaux { background: var(--sable); box-shadow: none; }
.totaux { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.totaux > div { display: grid; gap: 6px; align-content: start; }
.totaux .stat-label { margin: 0; font-size: 0.8rem; }
.tag-estime { background: var(--blanc); color: var(--encre); box-shadow: none; border: 1px dashed var(--taupe); }
.modele { margin-top: 32px; }
.modele > summary { cursor: pointer; list-style: none; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.modele > summary::-webkit-details-marker { display: none; }
.modele-corps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 18px; }
.libelle-devis select { width: 100%; }
.apercu-devis { padding: 12px 14px; border-radius: var(--r-champ); background: var(--sable); color: var(--texte); line-height: 1.5; }
.apercu-devis strong { color: var(--encre); }
.date-relance { width: 9.5em; padding: 6px 8px; }
/* Devis et factures Qonto d'un équipage (tableau du séjour). */
.docs-qonto { display: inline-flex; flex-wrap: wrap; gap: 6px 8px; align-items: flex-start; }
.doc-qonto { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--lisere); background: var(--blanc); text-decoration: none; }
.doc-qonto svg { width: 17px; height: 17px; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* Fait (signé, payé) en vert ; en attente (signature, paiement) en terre cuite, bien visibles. */
.doc-ok { background: #E3EEE5; border-color: #B9D2BF; }
.doc-ok svg { stroke: var(--ok); }
.doc-attente { background: #F6E3DA; border: 1.5px dashed var(--alerte); }
.doc-attente svg { stroke: var(--alerte); }
.doc-item { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.doc-date { font-size: 0.72rem; line-height: 1.2; color: var(--taupe); white-space: nowrap; }
.doc-date-attente { color: var(--alerte); font-weight: 600; }
.montant-ok { color: var(--ok); font-weight: 600; }
.montant-attente { color: var(--alerte); font-weight: 600; }
a.doc-qonto:hover, a.doc-qonto:focus-visible { border-color: var(--encre); background: var(--sable); }
.docs-montants { flex-direction: column; align-items: flex-start; gap: 8px; }
.doc-montant { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Coordonnées : appeler, WhatsApp, email, copier. */
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 24px; }
.contact-groupe { display: inline-flex; align-items: center; gap: 4px; }
.contact-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--lisere); background: var(--blanc); color: var(--encre); font-weight: 600; font-size: 0.92rem; text-decoration: none; font-variant-numeric: tabular-nums; }
a.contact-btn:hover, a.contact-btn:focus-visible { border-color: var(--encre); background: var(--sable); }
.contact-manquant { color: var(--taupe); background: var(--creme); border-style: dashed; font-weight: 400; cursor: default; }
.ic-contact { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.contact-copie { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--lisere); background: var(--blanc); color: var(--encre); cursor: pointer; padding: 0; }
.contact-copie:hover, .contact-copie:focus-visible { border-color: var(--encre); background: var(--sable); }
.contact-copie.copie-ok { background: var(--encre); color: var(--blanc); border-color: var(--encre); }
.contact-pictos { display: inline-flex; gap: 4px; margin-bottom: 4px; }
.contact-picto { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--lisere); background: var(--blanc); color: var(--encre); }
a.contact-picto:hover, a.contact-picto:focus-visible { border-color: var(--encre); background: var(--sable); }
.contact-picto .ic-contact { width: 16px; height: 16px; }
.contact-picto.contact-manquant { color: var(--lisere); }
.mail-bienvenue { margin-bottom: 24px; }
.mail-actions { flex-wrap: wrap; gap: 8px; }
.apercu-mail { margin-top: 12px; padding: 16px 18px; border-radius: 16px; background: var(--creme); border: 1px solid var(--lisere); }
.apercu-mail-texte { white-space: pre-wrap; font-size: 0.92rem; line-height: 1.55; color: var(--encre); }
.mail-actions .btn-sm, .mail-actions button.btn-secondary { padding: 8px 18px; font-size: 0.9rem; line-height: 1.3; min-height: 0; }
/* Mail de bienvenue depuis la liste du séjour. */
.mail-liste { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border-radius: 999px; border: 1px solid var(--lisere); background: var(--blanc); color: var(--encre); text-decoration: none; font-size: 0.8rem; font-weight: 600; }
.mail-liste:hover, .mail-liste:focus-visible { border-color: var(--encre); background: var(--sable); }
.mail-liste .ic-contact { width: 16px; height: 16px; }
.mail-liste.mail-envoye { background: #E3EEE5; border-color: #B9D2BF; color: var(--ok); }
/* Facturation à une entreprise : pastille brune bien visible. */
.facture-entreprise { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 12px 4px 9px; border-radius: 999px; background: var(--brun); color: var(--blanc); font-size: 0.8rem; font-weight: 600; line-height: 1.3; max-width: 100%; }
.facture-entreprise svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.facture-entreprise span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Mails devis, acompte, solde dans la liste du séjour : picto à côté du devis ou de la facture. */
.cellule-mail { display: inline-flex; align-items: flex-start; gap: 8px; }
.mail-picto { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--lisere); background: var(--blanc); color: var(--encre); }
a.mail-picto:hover, a.mail-picto:focus-visible { border-color: var(--encre); background: var(--sable); }
.mail-picto .ic-contact { width: 16px; height: 16px; }
.mail-picto.mail-envoye { background: #E3EEE5; border-color: #B9D2BF; color: var(--ok); }
.mail-picto.contact-manquant { color: var(--lisere); border-style: dashed; }
.mail-fait { background: #E3EEE5; color: var(--ok); box-shadow: inset 0 0 0 1px #B9D2BF; }

/* Tableau des équipages d'un séjour : tient dans la largeur de la page, sans ascenseur horizontal. */
.table-serree th, .table-serree td { padding: 10px 6px; }
.table-serree th:first-child, .table-serree td:first-child { padding-left: 14px; }
.table-serree th:last-child, .table-serree td:last-child { padding-right: 14px; }
.table-serree th { white-space: normal; }
.table-serree th { hyphens: manual; }
.lien-equipage { font-weight: 600; }

/* Reste dû dans le tableau des équipages : payé en entier, acompte reçu, rien reçu. */
.reste-paye { background: #E3EEE5; color: var(--ok); }
.reste-acompte { background: #FBEAD2; color: #8A4E00; }
.reste-rien { background: #F7DCDA; color: #A1262B; }

/* Parrain sur la fiche équipage. */
.parrain-champ { margin-top: 8px; }
.parrain-champ details { margin-top: 4px; }

/* ---------- Alignements (listes et tableaux) ---------- */
/* Pages de l'organisation : plus de largeur pour les tableaux (aucun débordement en 1440 px). */
main.large { max-width: 1360px; }
/* En-tête : le nom de l'utilisateur ne s'affiche que s'il y a la place, rien ne déborde à droite. */
@media (max-width: 1520px) { .who .who-name { display: none; } }
.topbar .nav { min-width: 0; }

/* Ligne d'agenda : colonnes fixes (date, séjour, bouton), alignées d'une ligne à l'autre. */
.agenda { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr) auto; align-items: center; column-gap: 24px; }
.agenda .date { min-width: 0; font-size: 1.35rem; }
.agenda .what .tag, .agenda .what .univers { margin-bottom: 4px; }
.agenda > .btn, .agenda > .btn-secondary { justify-self: end; white-space: nowrap; }
@media (max-width: 860px) {
  .agenda { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .agenda .date { grid-column: 1 / -1; width: auto; }
}

/* Tableaux : contenu centré verticalement sur la ligne (une ou plusieurs lignes de texte), nombres et statuts sans retour. */
td { vertical-align: middle; }
.table-serree td, table.lignes td { vertical-align: top; }
td.num, th.num { white-space: nowrap; }
td .tag, td .statut { white-space: nowrap; }
td .person { align-items: center; }

/* Formulaires en ligne (liste + bouton) : le bouton aligné sur le champ, pas sur son intitulé. */
form.row { align-items: flex-end; }
form.row > label { margin-bottom: 0; }

/* Cartes de membres (amis, rencontrés) : même hauteur sur une rangée, avatar et bouton centrés. */
.grid > .card-mini { display: flex; flex-direction: column; justify-content: center; }
.card-mini .person { align-items: center; }
.card-mini .person .push-right { flex: none; }

.card h3.mt { margin-top: 28px; }
/* Pied de page aligné sur le contenu de la page (mêmes bords gauche et droit). */
.footer .inner { max-width: 1104px; }
.orga .footer .inner { max-width: 1264px; }
/* Tableau « séjour par séjour » des statistiques : colonnes resserrées pour tenir sans défilement. */
.table-stats th, .table-stats td { padding: 10px 8px; }
.table-stats th:first-child, .table-stats td:first-child { padding-left: 14px; }
.table-stats th { white-space: normal; }

/* ---------- Boutons plus fins (rendu premium) ---------- */
.btn, .btn-secondary, button.btn, button.btn-secondary {
  font: 500 0.86rem/1.15 "Poppins", sans-serif; letter-spacing: 0.01em;
  padding: 10px 20px; gap: 6px; white-space: nowrap;
}
.btn-sm, button.btn-sm { padding: 7px 14px; font-size: 0.78rem; }
.btn:hover, .btn-secondary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30, 25, 21, 0.10); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1px var(--accent), 0 4px 12px rgba(30, 25, 21, 0.06); }
.btn-link { font-weight: 500; font-size: 0.86rem; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.tag { font-size: 0.68rem; padding: 5px 10px; letter-spacing: 0.01em; }
.nav a { font-weight: 500; font-size: 0.88rem; }
/* Boutons d'icône de l'en-tête (compte, déconnexion) : ronds et discrets. */
.who .btn-secondary.btn-sm { width: 36px; height: 36px; padding: 0; border-radius: 50%; }
.who .btn-secondary.btn-sm svg { width: 16px; height: 16px; }
.mail-actions .btn-sm, .mail-actions button.btn-secondary { padding: 7px 14px; font-size: 0.8rem; }

/* Bandeau de consultation d'un espace membre : une seule ligne fine, bouton discret. */
.bandeau-consultation { flex-wrap: nowrap; padding: 7px clamp(16px, 4vw, 48px); font-size: 0.8rem; }
.bandeau-consultation span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bandeau-consultation form { flex: none; margin: 0; }
.bandeau-consultation .btn, .bandeau-consultation button.btn { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); padding: 6px 14px; font-size: 0.76rem; }
.bandeau-consultation .btn:hover { background: #fff; color: var(--encre); transform: none; }
@media (max-width: 700px) { .bandeau-consultation .detail-consultation { display: none; } }

/* Champs plus fins, et boutons posés à côté d'un champ à la même hauteur que lui. */
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], input[type="number"], input[type="search"], input[type="url"], select, textarea {
  font-size: 0.88rem; padding: 9px 12px;
}
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], input[type="number"], input[type="search"], input[type="url"], select { height: 40px; }
td select, td input[type="date"], td input[type="text"], td input[type="number"] { height: 34px; padding: 5px 10px; font-size: 0.82rem; }
form.row:has(> label) > button, form.row:has(> label) > .btn, form.row:has(> label) > .btn-secondary { height: 40px; padding-top: 0; padding-bottom: 0; }

/* Repère (« Prochain départ : … ») : texte continu, sans colonnes ni espace avant la virgule. */
.repere { display: inline; }
.repere::before { display: inline-block; vertical-align: middle; margin: -2px 8px 0 0; }
/* Chiffres clés : deux par ligne sur téléphone. */
@media (max-width: 600px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid-4 .card-mini { padding: 14px 16px; }
  .grid-4 .stat { font-size: 1.7rem; }
}

/* Personne exclue des événements (liste noire). */
.tag-exclu { background: #F7DCDA; color: #A1262B; }
.alerte-exclusion { margin: 0 0 18px; padding: 12px 18px; border-radius: 16px; background: #F7DCDA; color: #7E1D21; font-size: 0.88rem; }
.alerte-exclusion .muted { color: #9A4A4D; }

/* Galeries photos et vidéos des séjours passés : boutons pilule fins, picto bronze, texte encre ; ouvrent le lien. */
.agenda-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; }
.btn-media { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 10px; border-radius: 999px; background: var(--blanc); color: var(--encre); box-shadow: inset 0 0 0 1px var(--lisere); font-size: 0.78rem; font-weight: 500; text-decoration: none; white-space: nowrap; max-width: 15rem; transition: box-shadow 0.15s, transform 0.15s; }
.btn-media span { overflow: hidden; text-overflow: ellipsis; }
.btn-media svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.btn-media-video svg path { fill: var(--accent); stroke: none; }
.btn-media:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--accent), 0 4px 12px rgba(30, 25, 21, 0.06); }
.lien-media { max-width: 26rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.82rem; }
.form-medias { grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr) minmax(0, 1.4fr); }
.compte-medias { font-size: 0.82rem; color: var(--encre); }
.doublons table td { white-space: nowrap; }
.doublons input[type="radio"], .doublons input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--encre); }
@media (max-width: 860px) {
  .agenda-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .form-medias { grid-template-columns: minmax(0, 1fr); }
}

/* Souvenirs d'un séjour : grandes vignettes (photo de couverture, bouton lecture), ouvrent l'album ou la vidéo. */
.souvenirs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 28px; }
.souvenirs-seul { grid-template-columns: minmax(0, 760px); }
.souvenir { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; isolation: isolate; color: #fff; text-decoration: none; background: radial-gradient(120% 90% at 85% 0%, #3a3027 0%, var(--encre) 62%); box-shadow: 0 18px 40px -22px rgba(30, 25, 21, 0.55); transition: transform 0.25s, box-shadow 0.25s; }
.souvenir img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.8s ease; }
.souvenir::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30, 25, 21, 0) 35%, rgba(30, 25, 21, 0.78) 100%); }
.souvenir:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -24px rgba(30, 25, 21, 0.6); }
.souvenir:hover img { transform: scale(1.04); }
.souvenir-icone { position: absolute; top: 20px; left: 20px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); backdrop-filter: blur(6px); }
.souvenir-icone svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.souvenir-lecture { position: absolute; top: 20px; left: 20px; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(6px); transition: background 0.25s, box-shadow 0.25s, transform 0.25s; }
.souvenir-lecture svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.souvenir:hover .souvenir-lecture { background: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); transform: scale(1.06); }
.souvenir-texte { position: absolute; left: 24px; right: 24px; bottom: 22px; display: grid; gap: 4px; }
.souvenir-type { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.souvenir-titre { font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.15; }
.souvenir-lien { margin-top: 6px; font-size: 0.85rem; font-weight: 500; color: #fff; }
.souvenir-lien span { color: var(--bronze-clair); }
@media (max-width: 640px) {
  .souvenirs { grid-template-columns: minmax(0, 1fr); }
  .souvenir { aspect-ratio: 4 / 3; }
}

/* Compagnons de route : visage en miniature et prénom, pour se reconnaître. */
.compagnons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.compagnon { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: 999px; background: var(--blanc); box-shadow: inset 0 0 0 1px var(--lisere); font-size: 0.8rem; font-weight: 600; color: var(--encre); white-space: nowrap; }
.compagnon .avatar { width: 34px; height: 34px; font-size: 0.68rem; }
.compagnon-ami { box-shadow: inset 0 0 0 1.5px var(--encre); }
.compagnons-plus { font-size: 0.8rem; color: var(--taupe); padding-left: 2px; }

/* ============ Allègement : design plat et aéré. Aucune barre ni accent coloré sur le côté des blocs, pas d'ombres portées. ============ */
:root { --ombre: 0 0 0 transparent; }
.card { box-shadow: none; border-radius: 20px; }
.card-mini { padding: 14px 18px; }
.agenda { background: var(--blanc); padding: 14px 20px; border-radius: 20px; }
.agenda .date { font-size: 1.3rem; }
.btn:hover, .btn-secondary:hover { transform: none; box-shadow: none; }
.souvenir, .souvenir:hover { box-shadow: none; }
.souvenir:hover { transform: none; }

/* Séjours à venir : deux colonnes larges, une ligne fine par séjour (titre, dates, tarifs, action). */
.grid-univers { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px 56px; }
.colonne-univers { min-width: 0; }
.colonne-univers .row { gap: 6px; }
.sejours-liste { gap: 0; margin-top: 10px; }
.sejour-item, .sejour-item:hover { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 0; background: none; border-radius: 0; box-shadow: none; transform: none; border-bottom: 1px solid var(--lisere); }
.sejour-item:first-child { border-top: 1px solid var(--lisere); }
.sejour-quoi { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.sejour-quoi strong { font-weight: 600; font-size: 0.95rem; color: var(--encre); }
.sejour-lien { text-decoration: none; }
.sejour-lien:hover strong { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.sejour-quoi .sejour-dates { font-size: 0.8rem; color: var(--taupe); white-space: nowrap; }
.sejour-quoi .sejour-dates::before { display: none; }
.sejour-item .tarifs-pictos { flex-basis: 100%; background: none; padding: 0; margin-top: 2px; gap: 2px 16px; }
.sejour-item .tarifs-pictos li { font-size: 0.78rem; }
.btn-interet { background: transparent; box-shadow: inset 0 0 0 1px var(--encre); color: var(--encre); font-weight: 500; }
.btn-interet:hover { background: var(--encre); color: #fff; }
@media (max-width: 760px) { .grid-univers { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Équipages d'un séjour : duo en photo, ville, voiture, parcours PremDrive (vécus en sable, à venir en contour). */
.equipages { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.equipage-carte { min-width: 0; display: grid; gap: 14px; align-content: start; padding: 22px 24px; background: var(--blanc); border: 1px solid var(--lisere); border-radius: 20px; }
.equipage-tete { display: flex; align-items: center; gap: 14px; min-width: 0; }
.duo-photos { display: flex; flex: none; }
.duo-photos .avatar { width: 58px; height: 58px; font-size: 1rem; border: 2px solid var(--blanc); }
.duo-photos .avatar + .avatar { margin-left: -14px; }
.equipage-noms { display: grid; min-width: 0; }
.equipage-noms strong { font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 1.25rem; line-height: 1.2; color: var(--encre); }
.equipage-noms span { font-size: 0.85rem; color: var(--taupe); }
.equipage-voiture { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 0.88rem; font-weight: 500; color: var(--encre); }
.equipage-voiture .picto-vehicule { height: 14px; width: auto; max-width: 40px; }
.parcours { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--lisere); }
.parcours-qui { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--encre); }
.parcours-qui .muted { font-weight: 400; }
.parcours-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.parcours-label { min-width: 58px; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--taupe); }
.parcours-pastille { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--sable); font-size: 0.78rem; color: var(--encre); white-space: nowrap; }
.parcours-a-venir .parcours-pastille { background: transparent; box-shadow: inset 0 0 0 1px var(--lisere); }
.parcours-pastille .picto-vehicule { height: 10px; width: auto; max-width: 28px; }
.parcours-pastille small { font-size: 0.72rem; color: var(--taupe); }
.equipage-actions { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 2px; }
.equipage-actions .btn-link { font-size: 0.82rem; }
@media (max-width: 420px) { .equipages { grid-template-columns: minmax(0, 1fr); } .equipage-carte { padding: 18px; } }

/* Messagerie privée : liste des conversations, fil en bulles, réponse. */
.nav-compteur { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--encre); color: #fff; font-size: 0.68rem; font-weight: 600; line-height: 1; vertical-align: 1px; }
.conversations { list-style: none; margin: 8px 0 0; padding: 0; max-width: 760px; }
.conversations li + li { border-top: 1px solid var(--lisere); }
.conversation-ligne { display: flex; align-items: center; gap: 14px; padding: 14px 4px; text-decoration: none; color: var(--texte); }
.conversation-ligne:hover { background: var(--blanc); }
.conversation-texte { flex: 1; min-width: 0; display: grid; }
.conversation-texte strong { color: var(--encre); font-weight: 600; }
.conversation-texte span { font-size: 0.85rem; color: var(--taupe); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.non-lu .conversation-texte span { color: var(--encre); font-weight: 500; }
.conversation-date { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--taupe); white-space: nowrap; }
.point-non-lu { width: 8px; height: 8px; border-radius: 50%; background: var(--encre); }
.h-conversation { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.fil { display: flex; flex-direction: column; gap: 10px; max-width: 760px; padding: 16px 0; }
.bulle { align-self: flex-start; max-width: min(80%, 560px); padding: 10px 14px 8px; border-radius: 18px 18px 18px 6px; background: var(--blanc); border: 1px solid var(--lisere); }
.bulle p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; color: var(--encre); font-size: 0.92rem; line-height: 1.55; }
.bulle-heure { display: block; margin-top: 2px; font-size: 0.7rem; color: var(--taupe); }
.bulle-moi { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--encre); border-color: var(--encre); }
.bulle-moi p { color: #fff; }
.bulle-moi .bulle-heure { color: rgba(255, 255, 255, 0.6); text-align: right; }
.repondre { display: flex; align-items: flex-end; gap: 10px; max-width: 760px; }
.repondre textarea { flex: 1; min-height: 52px; resize: vertical; }
.conversation-outils { gap: 18px; }

/* Espacements entre blocs : une bande pleine largeur ne colle jamais à une carte, et touche le pied de page en fin de page. */
main > .card + .band, main > form + .band, main > .card + .section-band { margin-top: clamp(32px, 5vw, 56px); }
main > .band:last-child { margin-bottom: -64px; }

/* Messagerie : enveloppe dans l'en-tête, pastille du nombre de messages non lus. */
.btn-messages { position: relative; }
.btn-messages.active { background: var(--encre); color: #fff; box-shadow: none; }
.pastille-messages { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--alerte); color: #fff; font: 600 0.68rem/1 "Poppins", sans-serif; box-shadow: 0 0 0 2px var(--creme); }
[data-brand="ladies"] .pastille-messages { background: #D4577E; }

/* Séjours à venir : deux actions à droite, « Découvrir » et « Me préinscrire ». */
.sejour-action { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.btn-decouvrir { font: 500 0.74rem "Poppins", sans-serif; padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--encre); background: var(--sable); white-space: nowrap; }
.btn-decouvrir:hover { background: var(--bronze-clair); }
/* Découvrir un séjour : texte et photo de couverture côte à côte, tarifs sans cadre. */
.decouvrir-tete { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.decouvrir-tete > div:only-child { grid-column: 1 / -1; }
.decouvrir-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.table-tarifs { width: 100%; max-width: 760px; border-collapse: collapse; }
.table-tarifs td { padding: 12px 8px; border-bottom: 1px solid var(--lisere); }
.table-tarifs tr:first-child td { border-top: 1px solid var(--lisere); }
@media (max-width: 760px) { .decouvrir-tete { grid-template-columns: minmax(0, 1fr); gap: 20px; } .decouvrir-photo { order: -1; } }

/* Équipages d'un séjour en lignes : macaron du numéro (00 = l'organisation), duo, parcours, actions. */
.equipages { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.equipage-ligne { display: grid; grid-template-columns: 72px minmax(260px, 1.3fr) minmax(0, 1.8fr) minmax(170px, auto); gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--lisere); }
.equipages .equipage-ligne:first-child { border-top: 1px solid var(--lisere); }
.equipage-organisation { background: none; }
.numero-equipage { width: 72px; height: 72px; flex: none; }
.numero-texte { display: grid; place-items: center; align-content: center; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px #000; color: #000; line-height: 1; }
.numero-texte span { font: 800 1.7rem/1 "Poppins", sans-serif; letter-spacing: -0.03em; }
.numero-texte small { font: 700 0.42rem "Poppins", sans-serif; margin-top: 3px; }
.equipage-qui { display: flex; align-items: center; gap: 14px; min-width: 0; }
.equipage-qui .duo-photos .avatar { width: 52px; height: 52px; font-size: 0.9rem; }
.equipage-qui .equipage-noms strong { font-size: 1.12rem; }
.equipage-noms .equipage-voiture { display: inline-flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 0.82rem; color: var(--encre); font-weight: 500; }
.equipage-parcours { display: grid; gap: 8px; min-width: 0; }
.equipage-parcours .parcours { padding: 0; border: 0; gap: 4px; }
.equipage-parcours .parcours-qui { font-size: 0.85rem; }
.equipage-ligne .parcours-label { min-width: 0; margin-right: 2px; }
.parcours-ligne .parcours-a-venir { display: contents; }
.parcours-ligne .parcours-a-venir .parcours-pastille { background: transparent; box-shadow: inset 0 0 0 1px var(--lisere); }
.equipage-ligne .equipage-actions { display: grid; gap: 4px; justify-items: end; padding: 0; }
.equipage-ligne .equipage-actions .row { gap: 4px 14px; justify-content: flex-end; }
@media (max-width: 980px) {
  .equipage-ligne { grid-template-columns: 56px minmax(0, 1fr); gap: 12px 16px; align-items: start; }
  .numero-equipage { width: 56px; height: 56px; }
  .equipage-parcours, .equipage-ligne .equipage-actions { grid-column: 2; }
  .equipage-ligne .equipage-actions { justify-items: start; }
  .equipage-ligne .equipage-actions .row { justify-content: flex-start; }
}
.ligne-depart { max-width: 900px; font-size: 0.92rem; color: var(--encre); line-height: 1.8; }
.who .btn-secondary.btn-sm.active, .who .btn-bascule { background: var(--encre); color: #fff; box-shadow: none; }
.who { gap: 8px; }
/* Son propre équipage : ligne mise en évidence par un fond plein (sans bordure latérale). */
.equipage-ligne.equipage-mien { background: var(--blanc); border-radius: 20px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; border-bottom-color: transparent; }
.contacts-equipe { gap: 4px 14px; justify-content: flex-end; }
.contacts-qui { font-weight: 600; color: var(--encre); font-size: 0.85rem; }
/* Recadrage d'une photo de voiture : cadre 3:2, le format du garage. */
.recadrage-voiture .recadrage-zone { width: min(100%, 480px); aspect-ratio: 3 / 2; }
.recadrage-voiture .recadrage-zoom { width: min(100%, 480px); }
.recadrage-cadre { position: absolute; inset: 0; pointer-events: none; border-radius: 20px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85); }
.btn-eclair { width: 40px; height: 40px; }
.btn-eclair svg { width: 18px; height: 18px; }
/* Synthèse d'un séjour : macaron du numéro d'équipage devant le nom. */
.equipage-nom-numero { display: flex; align-items: center; gap: 12px; }
.equipage-nom-numero .numero-equipage { width: 48px; height: 48px; flex: none; }
.equipage-nom-numero .numero-texte span { font-size: 1.1rem; }
.equipage-nom-numero .numero-texte small { display: none; }

/* ============ Espace membre sur téléphone : en-tête compact et barre d'onglets en bas de l'écran. ============ */
.nav-membre .nav-ico, .nav-membre .nav-court { display: none; }
.switch-univers-mobile { display: none; }
.switch-univers-mobile span { font: 700 0.78rem/1 "Poppins", sans-serif; letter-spacing: 0.02em; }
@media (max-width: 860px) {
  /* En-tête : logo à gauche, pictogrammes à droite, sur une seule ligne. */
  body:not(.orga) .topbar { flex-wrap: nowrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  body:not(.orga) .topbar .brand { flex: 1; min-width: 0; }
  body:not(.orga) .brand img.logo-horizontal { height: 24px; width: 119px; }
  body:not(.orga) .who { gap: 6px; }
  body:not(.orga) .who .switch-brand { display: none; }
  body:not(.orga) .switch-univers-mobile { display: block; }
  /* Menu : barre d'onglets fixe en bas, pictogramme et libellé court. */
  .nav.nav-membre {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; order: 0; width: auto;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; overflow: visible;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); margin: 0;
    background: color-mix(in srgb, var(--creme) 96%, transparent); backdrop-filter: blur(10px);
    border-top: 1px solid var(--lisere);
  }
  .nav.nav-membre a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 14px; font-size: 0.68rem; font-weight: 500; color: var(--taupe); background: none; box-shadow: none; }
  .nav.nav-membre a.active { color: var(--encre); font-weight: 600; background: var(--sable); }
  .nav-membre .nav-ico { display: block; line-height: 0; }
  .nav-membre .nav-long { display: none; }
  .nav-membre .nav-court { display: block; white-space: nowrap; }
  body:not(.orga) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
/* Le flou de l'en-tête rendrait la barre d'onglets « fixe » par rapport à l'en-tête : fond plein sur téléphone. */
@media (max-width: 860px) { body:not(.orga) .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--creme); } }
/* Barre d'onglets : fond plein (Safari ancien ne connaît pas color-mix). */
@media (max-width: 860px) { .nav.nav-membre { background: var(--creme); } }
/* Téléphone à l'horizontale : peu de hauteur, le menu reprend sa place dans l'en-tête (pictogramme et libellé court). */
@media (max-width: 960px) and (orientation: landscape) and (max-height: 540px) {
  body:not(.orga) { padding-bottom: 0; }
  body:not(.orga) .topbar { flex-wrap: nowrap; gap: 10px; padding-top: 6px; padding-bottom: 6px; background: var(--creme); backdrop-filter: none; -webkit-backdrop-filter: none; }
  body:not(.orga) .topbar .brand { flex: 0 0 auto; }
  body:not(.orga) .who .switch-brand { display: none; }
  body:not(.orga) .switch-univers-mobile { display: block; }
  .nav.nav-membre { position: static; flex: 1; display: flex; justify-content: center; gap: 2px; padding: 0; border: 0; background: none; }
  .nav.nav-membre a { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 500; color: var(--taupe); background: none; box-shadow: none; }
  .nav.nav-membre a.active { color: var(--encre); font-weight: 600; background: var(--sable); }
  .nav-membre .nav-ico { display: block; line-height: 0; }
  .nav-membre .nav-ico svg { width: 18px; height: 18px; }
  .nav-membre .nav-long { display: none; }
  .nav-membre .nav-court { display: block; white-space: nowrap; }
}

/* ============ Espace membre sur téléphone : menu burger (remplace la barre d'onglets). ============ */
.burger { display: none; position: relative; }
.burger > summary { list-style: none; cursor: pointer; }
.burger > summary::-webkit-details-marker { display: none; }
.burger[open] > summary { background: var(--encre); color: #fff; box-shadow: none; }
.burger-panneau { position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; width: min(86vw, 320px); max-height: calc(100vh - 90px); overflow-y: auto; padding: 10px; background: var(--blanc); border: 1px solid var(--lisere); border-radius: 20px; display: grid; gap: 6px; }
.burger-panneau nav { display: grid; gap: 2px; }
.burger-panneau nav a, .burger-ligne { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 14px; background: none; color: var(--encre); font: 500 0.95rem "Poppins", sans-serif; text-decoration: none; text-align: left; cursor: pointer; }
.burger-panneau nav a.active { background: var(--sable); font-weight: 600; }
.burger-panneau .nav-ico { display: block; line-height: 0; color: var(--encre); }
.burger-panneau .nav-ico svg { width: 20px; height: 20px; }
.burger-panneau .burger-univers { display: flex; margin: 6px 4px; }
.burger-panneau .burger-univers button { flex: 1; }
.burger-panneau form + form, .burger-panneau .burger-univers + form { border-top: 1px solid var(--lisere); padding-top: 6px; }
@media (max-width: 860px) {
  body:not(.orga) { padding-bottom: 0 !important; }
  body:not(.orga) .topbar { flex-wrap: nowrap !important; gap: 10px; padding-top: 10px; padding-bottom: 10px; background: var(--creme) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  body:not(.orga) .topbar .brand { flex: 1 1 auto !important; min-width: 0; }
  body:not(.orga) .brand img.logo-horizontal { height: 24px; width: 119px; }
  .nav.nav-membre { display: none !important; }
  body:not(.orga) .who { gap: 8px; }
  body:not(.orga) .who > .switch-brand, body:not(.orga) .who > .switch-univers-mobile, body:not(.orga) .who > a[href="/compte"], body:not(.orga) .who > form[action="/logout"], body:not(.orga) .who > form[action="/espace-membre/fin"] { display: none !important; }
  body:not(.orga) .burger { display: block; }
}
@media (max-width: 860px) { body:not(.orga) .burger-panneau .burger-univers { display: flex !important; } }
/* Champ mot de passe : œil pour afficher ou masquer la saisie. */
.mot-de-passe { position: relative; display: block; }
.mot-de-passe input { width: 100%; padding-right: 48px; }
.voir-mot-de-passe { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--taupe); cursor: pointer; }
.voir-mot-de-passe:hover, .voir-mot-de-passe[aria-pressed="true"] { color: var(--encre); background: var(--sable); }
.voir-mot-de-passe { -webkit-tap-highlight-color: transparent; outline-offset: -2px; }
/* Organisation sur téléphone : même menu burger (pages, journal, réglages, espace membre, compte, déconnexion). */
@media (max-width: 860px) {
  body.orga .topbar { flex-wrap: nowrap !important; gap: 10px; padding-top: 10px; padding-bottom: 10px; background: var(--creme) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  body.orga .topbar .brand { flex: 1 1 auto !important; min-width: 0; }
  body.orga .brand img.logo-horizontal { height: 24px; width: 119px; }
  body.orga .topbar .nav { display: none !important; }
  body.orga .who > *:not(.burger) { display: none !important; }
  body.orga .burger { display: block; }
}

/* ---------- Ladies Days : logo rond et finitions ---------- */
.brand img.logo-rond { height: 48px; width: 48px; max-width: none; display: block; }
.auth .brand img.logo-rond-grand { height: 120px; width: 120px; display: block; margin: 0 auto 6px; }
@media (max-width: 860px) { .brand img.logo-rond { height: 40px; width: 40px; } }
[data-brand="ladies"] .souvenir { background: radial-gradient(120% 90% at 85% 0%, #8F435A 0%, var(--encre) 62%); }
