/* ============================================================
   THÈME ARTDIVE (thème nuit)
   Sources : design system ArtDive (logo, polices, pins, couleurs de base)
   et canvas « ArtDive, direction artistique » (mise en page, couleurs des
   boutons et des types), qui prévaut en cas de désaccord (décision du 19/11).
   Chargé après style.css : il surcharge les variables et les composants.
   ============================================================ */

/* ---------- Polices servies par l'app (licence SIL Open Font) ---------- */
@font-face { font-family: "Fraunces"; src: url("../fonts/Fraunces-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/Fraunces-Italic-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans-Variable.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* Fonds et textes (design system : night, cream) */
  --nuit: #14100D;           /* fond des pages */
  --nuit-2: #0D0A08;         /* barres (navigation, pied fixe) */
  --panneau: #221B16;        /* cartes et champs sur fond nuit */
  --line: #3A322B;           /* filets */
  --bord: #8F8576;           /* contours des boutons secondaires et des champs */
  --texte: #EFE7D9;
  --velin: #EFE7D9;          /* crème */
  --muted: #B9AE9C;          /* texte secondaire */
  --muted-dim: #B9AE9C;
  --muted-dark: #5C5246;     /* texte secondaire sur fond crème */
  --fee: #E6C88A;            /* ocre clair : étiquettes et petits accents */
  --gaz: #C08A2E;            /* ocre : bouton principal */
  --ocre: #C08A2E;
  --lien: #FF6A4D;           /* liens « Voir », « Tout voir » */
  --vermillon: #D9391F;      /* pastilles, barre de progression */
  --succes: #27733A;         /* date confirmée, bouton « Réserver » d'une visite */
  --terracotta: #C42E18;

  /* Une couleur par type d'expérience (canvas E1.1) : badges, titres, prix, bouton */
  --type-visite: #FFB73D;
  --type-atelier: #8ED673;
  --type-escape: #B171E9;
  --type-soiree: #E8466D;

  /* Fond de page, panneaux et barre du bas de chaque type (canvas E2 à E5) */
  --fond-visite: #10241C;   --panneau-visite: #17342A;   --filet-visite: #254134;   --barre-visite: #0B1A14;
  --fond-atelier: #1D150A;  --panneau-atelier: #2A1F10;  --filet-atelier: #3A2C17;  --barre-atelier: #120C05;
  --fond-soiree: #1E1013;   --panneau-soiree: #2B161B;   --filet-soiree: #5A2A38;   --barre-soiree: #140A0D;
  --fond-escape: #1B1420;   --panneau-escape: #261C2E;   --filet-escape: #3A2C44;   --barre-escape: #130D17;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

html, body { background: var(--nuit); color: var(--texte); }
a { color: var(--lien); }
:focus-visible { outline: 3px solid #9AABF0; outline-offset: 2px; }

/* ---------- En-tête : logo ArtDive et sous-titre en capitales mono ---------- */
.brand { display: flex; flex-direction: column; gap: 7px; min-width: 0; flex: 1; }
.brand-logo { height: 32px; width: auto; align-self: flex-start; }
.screen-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fee); line-height: 1.3;
}
.header-lang-btn, .header-info-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 1px solid var(--bord); color: var(--velin);
}

/* ---------- Titres ---------- */
.bandeau-hero-tourisme .title,
.back-title { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
.back-title { font-size: 22px; line-height: 1.15; }
.back-sub {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fee);
}
.mini-label, .fiche-host-label {
  font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fee);
}
.bandeau-hero-tourisme .title { font-size: 30px; line-height: 1.08; }
.bandeau-hero-tourisme .scrim { background: linear-gradient(0deg, rgba(20,16,13,.92), rgba(20,16,13,.45) 60%, rgba(20,16,13,.15)); }

/* ---------- Boutons : pilule ; principal ocre, secondaire à contour crème ---------- */
.cta { border-radius: 999px; background: var(--velin); color: var(--nuit); font-weight: 600; font-size: 15px; min-height: 50px; padding: 14px 0; }
.cta.fee, .cta.gaz { background: var(--ocre); color: var(--nuit); border: 0; }
.cta.ghost, .cta.ghost-velin { background: transparent; border: 1px solid var(--velin); color: var(--velin); }
.cta:disabled { opacity: .45; }
.icon-btn { border-radius: 999px; }
.back-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--velin); color: var(--nuit); border: 0; }

/* ---------- Puces et onglets ---------- */
.chip { border-radius: 999px; border: 1px solid var(--bord); color: var(--velin); background: transparent; }
.chip.active { background: var(--velin); color: var(--nuit); border-color: var(--velin); font-weight: 600; }

/* ---------- Barre de navigation : point vermillon sous l'onglet actif ---------- */
.bottom-nav, nav.bottom-nav { background: var(--nuit-2); border-top: 1px solid var(--line); }
.nav-item { color: var(--muted); }
.nav-item.active { color: var(--velin); font-weight: 600; }
.nav-item.active svg { color: var(--vermillon); }

/* ---------- Encarts ---------- */
.cartouche { border-radius: 10px; }
.info-row { border-bottom-color: var(--line); }
.input-field { background: var(--panneau); border: 1px solid var(--bord); border-radius: 10px; color: var(--velin); min-height: 48px; }
.input-field::placeholder { color: var(--muted); }
.member-note { color: var(--muted); }

/* ---------- Accueil (canvas E1.1) ---------- */
.hero-texte { padding: 6px 2px 4px; }
.hero-loc { font-family: var(--mono); font-size: 11px; color: var(--fee); letter-spacing: 0.08em; text-transform: uppercase; }
.hero-h1 {
  margin: 8px 0 0; font-family: var(--display); font-weight: 400;
  font-size: 42px; line-height: 1.02; letter-spacing: -0.015em; color: var(--velin);
}
.hero-h1 em { font-style: italic; }
.hero-loc { display: none; }   /* le canvas n'affiche que le sous-titre de l'en-tête */
.hero-sous { margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.offre-chips { margin: 22px 0 14px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.offre-chips::-webkit-scrollbar { display: none; }
.offre-chips .chip { flex-shrink: 0; min-height: 44px; padding: 0 16px; font-size: 13px; }

.act-card {
  --c: var(--type-visite);
  position: relative; display: block; width: 100%; text-align: start; overflow: hidden;
  background: var(--panneau); color: var(--velin); border: 1px solid var(--line); border-radius: 10px;
  padding: 0; margin-bottom: 12px;
}
.act-card[data-type="atelier"] { --c: var(--type-atelier); }
.act-card[data-type="escape"]  { --c: var(--type-escape); }
.act-card[data-type="diner"]   { --c: var(--type-soiree); }
.act-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: sepia(.3); }
.act-voile {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,13,.92) 0%, rgba(20,16,13,.7) 45%, rgba(20,16,13,.45) 70%, rgba(20,16,13,.92) 100%);
}
.act-card .type-badge { position: absolute; top: 12px; inset-inline-end: 12px; margin: 0; z-index: 1; }
.act-corps { position: relative; display: flex; flex-direction: column; padding: 14px 16px; }
.act-name {
  font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.08; color: var(--c);
  min-height: 52px; padding-inline-end: 112px;
}
.act-desc {
  font-size: 13px; line-height: 1.35; color: #D8CEBC; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.act-by { font-size: 12px; margin-top: 6px; color: var(--velin); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-meta { font-size: 11px; margin-top: 5px; color: #D8CEBC; }
.act-foot { margin-top: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.act-next { font-size: 12px; color: var(--velin); }
.act-price { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--c); }
.act-empty { padding: 28px 0; text-align: center; color: var(--muted); font-size: 14px; }

/* Bandeaux secondaires de l'accueil */
.bandeau { border-radius: 10px; border-color: var(--line); }
.bandeau .media-photo { filter: sepia(.25) brightness(.7); }
.bandeau-eco .e-name, .bandeau-member .m-title { font-family: var(--display); font-weight: 600; }
.bandeau-eco .e-arrow {
  padding: 9px 16px; border-radius: 999px; background: var(--ocre); color: var(--nuit); font-size: 13px; font-weight: 600;
}
.bandeau-member { background: var(--panneau); border: 1px solid var(--line); }
.bandeau-member svg { stroke: var(--fee); }
.bandeau-member .m-arrow { color: var(--lien); }
.bandeau-tour .t-name { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.1; }
.bandeau-tour .t-price { font-family: var(--mono); font-weight: 500; font-size: 13px; background: var(--velin); color: var(--nuit); }
.bandeau .media-bg {
  background:
    repeating-linear-gradient(45deg, rgba(239,231,217,0.05) 0 12px, rgba(239,231,217,0) 12px 24px),
    var(--panneau);
}

/* ---------- Badge du type : pastille nuit, contour et texte dans la couleur du type ---------- */
.type-badge {
  --c: var(--type-visite);
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px 4px 8px; margin-bottom: 6px; border-radius: 999px;
  background: var(--nuit); box-shadow: inset 0 0 0 1px var(--c);
  color: var(--c); font-size: 11px; letter-spacing: 0.04em; font-weight: 600; line-height: 1.4;
}
.type-badge.t-atelier { --c: var(--type-atelier); }
.type-badge.t-diner   { --c: var(--type-soiree); }
.type-badge.t-escape  { --c: var(--type-escape); }

/* ---------- Fiche, réservation et confirmation : fond, panneaux et bouton selon le type ---------- */
#screen-visite, #screen-reserver, #screen-reservation {
  --fond: var(--fond-visite); --pan: var(--panneau-visite); --filet: var(--filet-visite); --barre: var(--barre-visite);
  --cta-type: var(--succes); --cta-texte: var(--velin);     /* visite : « Réserver » en vert (canvas E2.2) */
  --cta-payer: var(--type-visite);
  background: var(--fond);
}
[data-offre="atelier"]#screen-visite, [data-offre="atelier"]#screen-reserver, [data-offre="atelier"]#screen-reservation {
  --fond: var(--fond-atelier); --pan: var(--panneau-atelier); --filet: var(--filet-atelier); --barre: var(--barre-atelier);
  --cta-type: var(--type-visite); --cta-texte: var(--nuit); --cta-payer: var(--type-visite);
}
[data-offre="diner"]#screen-visite, [data-offre="diner"]#screen-reserver, [data-offre="diner"]#screen-reservation {
  --fond: var(--fond-soiree); --pan: var(--panneau-soiree); --filet: var(--filet-soiree); --barre: var(--barre-soiree);
  --cta-type: var(--type-soiree); --cta-texte: var(--nuit); --cta-payer: var(--type-soiree);
}
[data-offre="escape"]#screen-visite, [data-offre="escape"]#screen-reserver, [data-offre="escape"]#screen-reservation {
  --fond: var(--fond-escape); --pan: var(--panneau-escape); --filet: var(--filet-escape); --barre: var(--barre-escape);
  --cta-type: var(--type-escape); --cta-texte: var(--nuit); --cta-payer: var(--type-escape);
}
#btn-reserver { background: var(--cta-type); color: var(--cta-texte); }
#resa-payer { background: var(--cta-payer); color: var(--nuit); }
#screen-reservation .cta.fee { background: var(--ocre); color: var(--nuit); }

#screen-visite .back-header > div:not(.back-btn) { display: none; } /* le titre est dans la fiche */
.fiche-hero { position: relative; height: 220px; margin-top: 4px; border-radius: 10px; overflow: hidden; background: var(--pan, var(--panneau)); }
.fiche-hero .media-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fiche-hero .media-bg {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(239,231,217,0.05) 0 12px, rgba(239,231,217,0) 12px 24px), var(--pan, var(--panneau));
}
.fiche-head { padding: 20px 0 4px; }
.fiche-title {
  margin: 10px 0 0; font-family: var(--display); font-weight: 400; font-size: 36px;
  line-height: 1.06; letter-spacing: -0.015em; color: var(--velin);
}
.fiche-desc { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: var(--velin); }
.fiche-host {
  display: flex; align-items: center; gap: 12px; margin: 20px 0 8px; padding: 12px;
  background: var(--pan, var(--panneau)); border: 1px solid var(--filet, var(--line)); border-radius: 10px;
}
.fiche-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: var(--filet, var(--line)); color: var(--fee);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 20px;
}
.fiche-host-name { font-family: var(--display); font-size: 20px; font-weight: 600; margin-top: 3px; }
#screen-visite .info-row, #screen-reserver .info-row, #screen-reservation .info-row { border-bottom-color: var(--filet); }

/* Dates : jour en capitales mono, date confirmée en vert, barre du minimum vermillon */
.seance { border-color: #667A6F; }
.seance-jour { font-family: var(--mono); font-size: 10.5px; }
.seance-jour b { font-family: var(--display); font-weight: 600; font-size: 30px; }
.seance.choisie { background: var(--succes); color: var(--velin); border-color: var(--succes); }
.seance-barre { background: var(--filet, var(--line)); }
.seance-barre span { background: var(--vermillon); }
.seance.choisie .seance-barre { background: rgba(239,231,217,.25); }
.seance.choisie .seance-barre span { background: var(--velin); }
.resa-stepper { border-color: #667A6F; }
.resa-stepper-btns button:last-child { background: var(--velin); color: var(--nuit); }
.resa-gros { font-family: var(--display); font-weight: 600; }
.resa-accent { color: var(--fee); }
.resa-resume { background: var(--velin); color: var(--nuit); border-radius: 10px; }
.resa-carte { background: var(--velin); color: var(--nuit); border-radius: 10px; }
.resa-carte .info-row { border-bottom-color: #C9BFA8 !important; }
.resa-carte .info-row .k, .resa-carte .member-note { color: var(--muted-dark); }
.resa-ok span { background: var(--succes); color: var(--velin); }
.resa-ok h1, .resa-titre { font-family: var(--display); font-weight: 400; }
.resa-case input { accent-color: var(--fee); }

/* ---------- Espace intervenants (canvas E11) ---------- */
.espace-titre { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1.08; overflow-wrap: anywhere; }
.espace-texte a { color: var(--lien); }

/* ---------- Administration (canvas E12) ---------- */
.adm-sous { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fee); margin: -2px 0 16px; }
.adm-onglets { margin: 8px 0 16px; }
.adm-onglets .chip { min-height: 44px; padding: 0 16px; font-size: 13px; }
.adm-liste { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 24px; }
.adm-ligne {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; text-align: start;
  background: var(--panneau); border: 1px solid var(--line); border-radius: 10px; color: var(--velin); min-height: 64px;
}
.adm-vignette { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: var(--line); display: block; }
.adm-vignette.rond { border-radius: 50%; }
.adm-initiales { display: flex; align-items: center; justify-content: center; font-family: var(--display); color: var(--fee); font-size: 18px; }
.adm-ligne-corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.adm-ligne-titre { font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.15; }
.adm-ligne-meta { font-size: 12px; color: var(--muted); }
.adm-etat { flex-shrink: 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; border: 1px solid var(--bord); color: var(--muted); }
.adm-etat-enligne { border-color: #6DBE74; color: #6DBE74; }
.adm-etat-avalider { border-color: var(--type-visite); color: var(--type-visite); }
.adm-etat-suspendue { border-color: var(--lien); color: var(--lien); }
.adm-encart { margin: 14px 0 0; padding: 14px 16px; border-radius: 10px; border: 1px dashed var(--bord); }
.adm-encart .cta { margin-top: 10px; }
.adm-form { display: flex; flex-direction: column; gap: 14px; padding-bottom: 24px; }
.adm-titre { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.1; margin: 4px 0 0; }
.adm-sous-titre { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fee); margin: 12px 0 0; }
.adm-champ { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.adm-champ > span { color: var(--muted); }
.adm-texte { min-height: 110px; padding: 12px 14px; line-height: 1.45; resize: vertical; font: inherit; color: var(--velin); }
select.input-field { appearance: auto; padding: 0 12px; }
.adm-trad { margin-top: -6px; }
.adm-trad summary { cursor: pointer; font-size: 13px; color: var(--lien); min-height: 32px; display: flex; align-items: center; }
.adm-trad[open] { display: flex; flex-direction: column; gap: 10px; }
.adm-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-puce { min-width: 52px; min-height: 44px; justify-content: center; display: inline-flex; align-items: center; cursor: pointer; }
.adm-photo { width: 100%; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: var(--panneau); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; }
.adm-photo img { width: 100%; height: 100%; object-fit: cover; }
.adm-photo-vide { font-size: 13px; color: var(--muted); }
.adm-photo-btn { display: flex; align-items: center; justify-content: center; cursor: pointer; margin-top: 4px; }
.adm-carte { height: 220px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.adm-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.adm-jour { display: flex; flex-direction: column; align-items: center; min-width: 48px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; color: var(--muted); }
.adm-jour b { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1; color: var(--velin); }
.adm-inscrits .adm-ligne, .adm-demande { align-items: flex-start; }
.adm-message { font-size: 13px; line-height: 1.45; color: var(--velin); white-space: pre-line; margin-top: 4px; }
.adm-actions { font-size: 13px; margin: 6px 0; overflow-wrap: anywhere; }
.adm-demande select { margin-top: 4px; }
details.adm-encart summary { cursor: pointer; min-height: 32px; }
details.adm-encart[open] { display: flex; flex-direction: column; gap: 10px; }
.adm-invitation { border-top: 1px solid var(--line); padding-top: 6px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Formulaires publics (canvas E7, E14) ---------- */
.prive-encart { background: var(--panneau); border: 1px solid var(--bord); border-style: solid; margin: 4px 0 22px; }
.prive-titre { font-family: var(--display); font-size: 24px; line-height: 1.15; }
#screen-demande .adm-puces .chip { min-height: 44px; padding: 0 16px; font-size: 13px; }
#screen-demande .espace-titre em { font-style: italic; }

/* ---------- Page d'un intervenant et vidéo (canvas E6.1, E6.1.1) ---------- */
.fiche-host-lien { width: 100%; text-align: start; color: var(--velin); cursor: pointer; }
.fiche-host-corps { flex: 1; display: flex; flex-direction: column; }
.fiche-host-voir { color: var(--lien); font-size: 13px; font-weight: 500; }
.trad-auto { font-size: 12px; color: var(--muted); font-style: italic; margin: 6px 0 0; }
.hote-tete { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 20px; }
.hote-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.hote-initiales { display: flex; align-items: center; justify-content: center; background: var(--panneau); color: var(--fee); font-family: var(--display); font-size: 34px; }
.hote-tete .espace-titre { margin: 8px 0 0; }
.hote-tete .espace-titre em { font-style: italic; }
.hote-metier { margin: 0; font-size: 15px; color: var(--muted); }
.hote-video { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; padding: 0; border: 0; background: #000; cursor: pointer; }
.hote-video video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hote-play { position: absolute; inset-inline-start: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%;
  background: #C42E18; color: #EFE7D9; box-shadow: 0 0 0 3px #EFE7D9; display: flex; align-items: center; justify-content: center; }
:root[dir="rtl"] .hote-play { transform: translate(50%, -50%); }
.hote-bio { white-space: pre-line; }
.video-plein { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; align-items: center; justify-content: center; }
.video-plein video { width: 100%; height: 100%; object-fit: contain; }
.video-fermer { position: absolute; top: calc(12px + env(safe-area-inset-top)); inset-inline-end: 12px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(20,16,13,.75); color: #EFE7D9; font-size: 18px; border: 1px solid #EFE7D9; }
.adm-video { width: 100%; max-height: 360px; border-radius: 10px; background: #000; }

/* ---------- Parcours autoguidés (canvas E2.1, E2.1.2, E2.1.3, E8.5, E9.5) ---------- */
#screen-parcours { background: var(--fond-visite); }
.parc-prix { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 8px; }
.parc-chip { min-height: 48px; border-radius: 10px; border: 1px solid #667A6F; background: transparent; color: var(--velin);
  font-family: var(--mono); font-size: 16px; }
.parc-chip:last-child { font-family: var(--body); font-size: 14px; color: var(--muted); }
.parc-chip.active { background: var(--velin); color: var(--nuit); border-color: var(--velin); font-weight: 500; }
.parc-option { display: flex; align-items: center; gap: 14px; padding: 16px; margin: 12px 0; border-radius: 10px;
  border: 1px solid var(--fee); background: var(--panneau-visite); cursor: pointer; }
.parc-option input { width: 22px; height: 22px; accent-color: var(--fee); flex-shrink: 0; }
.parc-option-corps { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.parc-option-corps b { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--velin); }
.parc-option-prix { font-family: var(--mono); color: var(--fee); white-space: nowrap; }
.parc-total { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 16px; font-size: 13px; color: var(--muted); }
.parc-total b { font-family: var(--display); font-size: 30px; font-weight: 600; color: var(--velin); }
.parc-num { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--bord); font-family: var(--display); font-weight: 600; color: var(--muted); }
.parc-num.ouverte { background: #C08A2E; border-color: #C08A2E; color: #14100D; }
.parc-media { margin: 0 0 16px; }
.parc-media img { width: 100%; border-radius: 10px; aspect-ratio: 3 / 2; object-fit: cover; }
.parc-media figcaption { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 6px; }
.parc-texte { white-space: pre-line; font-size: 16px; color: var(--velin); }
.parc-audio { width: 100%; margin: 6px 0 16px; }
.parc-verrou { margin: 16px 0; padding: 16px; border-radius: 10px; border: 1px dashed var(--bord); }
.parc-verrou b { font-family: var(--display); font-size: 20px; }
.parc-verrou p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.parc-distance { font-family: var(--mono); color: var(--fee); }
.parc-code { display: flex; gap: 8px; }
.parc-code .input-field { flex: 1; text-transform: uppercase; }
.parc-code .cta { width: auto; padding: 0 18px; margin: 0; }
.parc-nav { display: flex; gap: 10px; margin-top: 16px; }
/* Lignes d'étapes sur fond de visite : vert « succès » du design system, texte crème (contraste suffisant) */
#screen-visite .adm-ligne, #screen-parcours .adm-ligne { background: var(--succes); border-color: var(--succes); }
#screen-visite .adm-ligne .adm-ligne-meta, #screen-parcours .adm-ligne .adm-ligne-meta { color: var(--velin); }
#screen-visite .parc-num, #screen-parcours .parc-num { border-color: var(--velin); color: var(--velin); }
.parc-nav .cta { flex: 1; }

/* ---------- Menu des langues (canvas E1.2) ---------- */
.lang-popover {
  background: var(--panneau); border: 1px solid var(--line); border-radius: 18px;
  min-width: 230px; box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}
.lang-option {
  width: 100%; gap: 14px; padding: 15px 18px; font-size: 17px; text-align: start;
  color: var(--velin); border-bottom: 0; border-top: 1px solid var(--line);
}
.lang-option:first-child { border-top: 0; }
.lang-option.active { background: rgba(230,200,138,0.12); color: var(--fee); font-weight: 600; }
.lang-option .lang-globe { width: 18px; height: 18px; }

/* ---------- Pins de la carte (design system ArtDive) ---------- */
.map-pin { border: 2px solid #EFE7D9; box-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.map-pin.culture { background: #2B3E8F; }
.map-pin.sortir  { background: #C42E18; }
.map-pin.reperes { background: #C08A2E; }
.map-pin .pin-num { font-family: var(--display); font-weight: 900; font-size: 14px; color: #14100D; }
.map-pin.you { background: #9AABF0; border: 2.5px solid #EFE7D9; box-shadow: 0 0 0 8px rgba(154,171,240,0.25); }
.leaflet-marker-icon.pin-selected .map-pin { box-shadow: 0 0 0 5px rgba(239,231,217,0.3), 0 2px 10px rgba(0,0,0,0.5); }

/* ---------- Panneau du bas (détail d'un lieu sur la carte) ----------
   Fermé, il est complètement caché : sur téléphone, quand la barre d'adresse
   se replie au défilement, un panneau seulement poussé hors de l'écran
   dépassait en bandeau crème. */
.point-sheet { visibility: hidden; transform: translateY(120%); transition: transform .25s ease, visibility 0s linear .25s; }
.point-sheet.open { visibility: visible; transform: translateY(0); transition: transform .25s ease, visibility 0s; }

/* ---------- Écran d'ouverture : monogramme ArtDive ---------- */
.splash img { width: 150px; height: auto; }

/* ---------- Langues : polices et sens de lecture ---------- */
/* Fraunces et DM Sans n'ont ni chinois, ni arabe, ni cyrillique : polices de repli chargées à la demande (i18n.js). */
:root[lang="zh"] { --display: 'Fraunces', 'Noto Serif SC', Georgia, serif; --body: 'DM Sans', 'Noto Sans SC', system-ui, sans-serif; }
:root[lang="ar"] { --display: 'Noto Naskh Arabic', 'Fraunces', Georgia, serif; --body: 'Noto Sans Arabic', 'DM Sans', system-ui, sans-serif; }
:root[lang="ru"] { --display: 'Fraunces', 'Noto Serif', Georgia, serif; --body: 'DM Sans', 'Noto Sans', system-ui, sans-serif; }
/* Arabe : jamais d'espacement entre les lettres (il casse la liaison), pas d'italique ni de capitales */
:root[dir="rtl"] * { letter-spacing: normal !important; text-transform: none !important; }
:root[dir="rtl"] em { font-style: normal; }
/* Retour et flèches inversés de droite à gauche ; la carte reste dans son sens */
:root[dir="rtl"] .back-btn svg,
:root[dir="rtl"] .m-arrow { transform: scaleX(-1); }
.map-wrap, .map-wrap .leaflet-container { direction: ltr; }
/* Contenu venant des Sheets : chaque texte résout son propre sens (un nom français dans une page arabe reste lisible) */
.act-name, .act-desc, .act-by, .act-meta, .fiche-title, .fiche-desc, .fiche-host-name, .info-row .v { unicode-bidi: plaintext; }

@media (prefers-reduced-motion: reduce) { .act-card, .cta { transition: none; } }
.lien-bouton { background: none; border: 0; padding: 0; color: var(--lien); font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }
