/* Cam Françaises — thème posé sur Materialize 2.4 (public/vendor/, auto-hébergé).
   Quatre variantes visuelles sur la même structure (retour Jim 01/10 : « ça fait vieux ») :
   neon (nuit, rose vif en aplat), rouge (anthracite, rouge, direct en vert), clair (blanc, corail), fenetres (1re direction, vintage).
   Boutons et accents en aplat (le dégradé rose → violet « faisait IA ») ; seul l'anneau des bulles garde un dégradé, référence stories.
   Variante choisie par ?theme= (script de tête, gardée dans le navigateur) → html[data-variante]. Tout passe par les tokens ci-dessous.
   Breakpoints Materialize : s ≤ 600, m 601-992, l 993-1200, xl ≥ 1201. Mobile d'abord. */
@font-face { font-family: "Jakarta"; font-weight: 400 800; font-display: swap; src: url("/fonts/jakarta-latin.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 400 800; font-display: swap; src: url("/fonts/sora-latin.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 400 800; font-display: swap; src: url("/fonts/onest-latin.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 62% 125%; font-display: swap; src: url("/fonts/archivo-latin.woff2") format("woff2"); }

/* ── Tokens : variante par défaut = neon ── */
:root, :root[data-variante="neon"] {
  --fond: #0B0B10; --surface: #15151D; --surface-2: #1F1F2A; --ligne: #2B2B3A;
  --texte: #F6F6F9; --texte-2: #A3A3B5; --action: #F0206E; --action-fin: #F0206E; --action-texte: #fff; /* aplat : le dégradé rose → violet « faisait IA » (Jim 01/10) */
  --direct: #FF2D78; --direct-halo: rgba(255, 45, 120, .45);
  --r-pilule: 999px; --r-carte: 14px; --r-panneau: 20px;
  --f-texte: "Jakarta", system-ui, -apple-system, "Segoe UI", sans-serif; --f-titre: var(--f-texte);
  --titre-largeur: 100%; --titre-casse: none; --titre-graisse: 800; --titre-espace: -0.025em;
  --ombre: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
:root[data-variante="rouge"] {
  --fond: #0D0D0F; --surface: #17171A; --surface-2: #212126; --ligne: #2C2C33;
  --texte: #FAFAFA; --texte-2: #A1A1AA; --action: #E8193C; --action-fin: #E8193C; --action-texte: #fff;
  --direct: #22C55E; --direct-halo: rgba(34, 197, 94, .4);
  --r-pilule: 8px; --r-carte: 10px; --r-panneau: 14px;
  --f-texte: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif; --f-titre: var(--f-texte);
  --titre-largeur: 100%; --titre-casse: none; --titre-graisse: 700; --titre-espace: -0.02em;
  --ombre: 0 8px 24px rgba(0, 0, 0, .4);
  color-scheme: dark;
}
:root[data-variante="clair"] {
  --fond: #F6F6F8; --surface: #FFFFFF; --surface-2: #EFEFF3; --ligne: #E3E3E9;
  --texte: #121216; --texte-2: #62626E; --action: #E8295A; --action-fin: #E8295A; --action-texte: #fff;
  --direct: #E8295A; --direct-halo: rgba(232, 41, 90, .35);
  --r-pilule: 999px; --r-carte: 16px; --r-panneau: 22px;
  --f-texte: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif; --f-titre: var(--f-texte);
  --titre-largeur: 100%; --titre-casse: none; --titre-graisse: 750; --titre-espace: -0.02em;
  --ombre: 0 6px 20px rgba(17, 17, 22, .08);
  color-scheme: light;
}
:root[data-variante="fenetres"] {
  --fond: #131A24; --surface: #1F2835; --surface-2: #273242; --ligne: #34404F;
  --texte: #EDE5D8; --texte-2: #A9A49A; --action: #B5531C; --action-fin: #B5531C; --action-texte: #fff;
  --direct: #F5B841; --direct-halo: rgba(245, 184, 65, .45);
  --r-pilule: 3px; --r-carte: 2px; --r-panneau: 4px;
  --f-texte: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif; --f-titre: var(--f-texte);
  --titre-largeur: 62%; --titre-casse: uppercase; --titre-graisse: 800; --titre-espace: .01em;
  --ombre: none;
  color-scheme: dark;
}
:root {
  --voile: color-mix(in srgb, var(--fond) 88%, transparent);
  --degrade: linear-gradient(135deg, var(--action), var(--action-fin));
  --facade-h: 56px;
  /* Materialize (Material 3) → tokens maison */
  --md-sys-color-primary: var(--action); --md-sys-color-on-primary: var(--action-texte);
  --md-sys-color-primary-container: var(--surface-2); --md-sys-color-on-primary-container: var(--texte);
  --md-sys-color-secondary: var(--direct); --md-sys-color-on-secondary: var(--fond);
  --md-sys-color-secondary-container: var(--surface-2); --md-sys-color-on-secondary-container: var(--texte);
  --md-sys-color-tertiary: var(--direct); --md-sys-color-on-tertiary: var(--fond);
  --md-sys-color-background: var(--fond); --md-sys-color-on-background: var(--texte);
  --md-sys-color-surface: var(--surface); --md-sys-color-on-surface: var(--texte);
  --md-sys-color-surface-variant: var(--surface-2); --md-sys-color-on-surface-variant: var(--texte-2);
  --md-sys-color-surface-tint: var(--surface); --md-sys-color-outline: var(--ligne); --md-sys-color-outline-variant: var(--ligne);
  --md-sys-color-inverse-surface: var(--texte); --md-sys-color-inverse-on-surface: var(--fond);
  --md-sys-color-shadow: #000; --md-sys-color-scrim: #000;
  --btn-border-radius: var(--r-pilule); --btn-height: 42px; --btn-padding: 18px;
  --navbar-height: var(--facade-h); --navbar-height-mobile: var(--facade-h);
}

html { font-size: 16px; font-family: var(--f-texte); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 400 16px/1.55 var(--f-texte); --gap-size: 10px; }
@media only screen and (min-width: 601px) { body { --gap-size: 16px; } }
a { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; } /* les composants posent display:flex/grid : sans ça, hidden ne cache rien */
h1, h2, h3 { text-wrap: balance; margin: 0; font-family: var(--f-titre); line-height: 1.1; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.evite { position: absolute; left: -9999px; top: 0; background: var(--texte); color: var(--fond); padding: 8px 12px; z-index: 100; }
.evite:focus { left: 8px; top: 8px; }

.container { width: auto; max-width: 1440px; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
@media only screen and (min-width: 601px) { .container { width: auto; padding-inline: 24px; } }
@media only screen and (min-width: 993px) { .container { width: auto; padding-inline: 32px; } }
.row { margin: 0; }

/* Titres : style porté par la variante */
.plaque { font-family: var(--f-titre); font-weight: var(--titre-graisse); font-stretch: var(--titre-largeur); text-transform: var(--titre-casse); letter-spacing: var(--titre-espace); line-height: 1.05; }

/* Boutons (Materialize .btn) */
.btn { font-family: var(--f-texte); font-weight: 650; text-transform: none; letter-spacing: 0; box-shadow: none; white-space: nowrap; gap: 8px; }
.btn-filled { background: var(--degrade); color: var(--action-texte); }
.btn-filled:hover, .btn-filled:focus { background: var(--degrade); filter: brightness(1.08); box-shadow: 0 6px 18px var(--direct-halo); }
.btn-flat { color: var(--texte); border: 1px solid var(--ligne); background: transparent; }
.btn-flat:hover, .btn-flat:focus { background: var(--surface-2); }
.btn-large { --btn-height: 50px; font-size: 15px; }
.btn.bloc { display: flex; width: 100%; justify-content: center; }

/* ── Façade : en-tête collant, marque + accès, puis onglets ── */
.facade { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--voile); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--ligne); }
.facade__rang { display: flex; align-items: center; gap: 12px; height: var(--facade-h); }
.marque { display: inline-flex; align-items: center; flex: none; gap: .3em; font-family: var(--f-titre); font-weight: var(--titre-graisse); font-stretch: var(--titre-largeur); text-transform: var(--titre-casse); letter-spacing: var(--titre-espace); font-size: 21px; text-decoration: none; line-height: 1; white-space: nowrap; color: var(--texte); }
.marque b { font-weight: inherit; color: var(--action); }
.marque__drapeau { display: block; flex: none; width: .9em; height: .6em; border-radius: 1.5px; overflow: hidden; outline: 1px solid color-mix(in srgb, var(--texte) 20%, transparent); }
@media only screen and (max-width: 600px) { .marque { font-size: 18px; } }
.facade__portes { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.facade__portes .btn { --btn-height: 36px; --btn-padding: 14px; font-size: 13.5px; }
.facade__connexion { color: var(--texte-2); font-size: 14px; font-weight: 600; text-decoration: none; padding: 8px 6px; }
.facade__connexion:hover { color: var(--texte); }

/* Onglets : la navigation principale, sur toutes les pages, défilante sur mobile */
.onglets { display: flex; gap: 4px; overflow-x: auto; margin: 0; padding: 0; list-style: none; scrollbar-width: none; }
.onglets::-webkit-scrollbar { display: none; }
.onglets a { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; color: var(--texte-2); font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.onglets a:hover { color: var(--texte); }
.onglets a[aria-current="page"] { color: var(--texte); border-bottom-color: var(--action); }
.onglets .compte { font-size: 12px; font-weight: 600; color: var(--texte-2); background: var(--surface-2); border-radius: var(--r-pilule); padding: 1px 7px; font-variant-numeric: tabular-nums; }
.onglets a[aria-current="page"] .compte { background: var(--degrade); color: var(--action-texte); }
.onglets li:first-child a { padding-left: 0; }

/* ── Rue : accroche ── */
.rue { padding-block: 22px 14px; display: grid; gap: 10px; }
.rue h1 { font-size: clamp(28px, 7.4vw, 46px); }
.rue__compte { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--texte); }
.point { width: 9px; height: 9px; border-radius: 50%; background: var(--direct); box-shadow: 0 0 0 4px var(--direct-halo); animation: battement 1.8s ease-in-out infinite; flex: none; }
@keyframes battement { 50% { box-shadow: 0 0 0 7px transparent; } }
@media (prefers-reduced-motion: reduce) { .point { animation: none; } }
.rue__mot { margin: 0; color: var(--texte-2); max-width: 62ch; font-size: 15px; }
.rue__retard { margin: 0; padding: 10px 12px; border: 1px solid var(--ligne); border-radius: var(--r-carte); color: var(--texte-2); font-size: 14px; }

/* ── Bulles « Ce soir à 21 h », façon stories : anneau dégradé = en ligne, gris = attendue ── */
.bulles { padding-block: 14px 2px; scroll-margin-top: calc(var(--facade-h) + 56px); }
.bulles__tete { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.bulles__tete h2 { font-size: 16px; font-weight: 750; letter-spacing: -0.01em; }
.bulles__tete span { font-size: 13px; color: var(--texte-2); }
ul.lucarne__rang { display: flex; gap: 14px; overflow-x: auto; margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 4px max(16px, env(safe-area-inset-left, 0px)) 6px; list-style: none; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
.lucarne__rang::-webkit-scrollbar { display: none; }
.lucarne__rang li { flex: 0 0 74px; scroll-snap-align: start; }
.lucarne__rang a { display: grid; gap: 5px; justify-items: center; text-align: center; text-decoration: none; min-width: 0; }
.lucarne__vignette { position: relative; width: 74px; height: 74px; border-radius: 50%; padding: 3px; background: var(--ligne); }
.lucarne__vignette img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid var(--fond); filter: saturate(.6) brightness(.85); }
.lucarne__rang .est-allumee .lucarne__vignette { background: conic-gradient(from 200deg, #FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5, #FEDA75); }
.lucarne__rang .est-allumee .lucarne__vignette img { filter: none; }
.lucarne__direct { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); padding: 1px 6px; border-radius: 4px; background: var(--degrade); border: 2px solid var(--fond); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; line-height: 1.3; }
.lucarne__nom { font-size: 12px; font-weight: 600; max-width: 74px; }
.lucarne__etat { font-size: 11px; color: var(--texte-2); margin-top: -3px; }
.lucarne__rang .est-allumee .lucarne__etat { color: var(--texte); font-weight: 600; }
@media only screen and (min-width: 993px) { ul.lucarne__rang { margin: 0; padding-inline: 2px; } .lucarne__rang li { flex-basis: 84px; } .lucarne__vignette { width: 84px; height: 84px; } .lucarne__nom { max-width: 84px; } }

/* ── Vitrage : grille de salons (Materialize .row .s6 .m4 .l3 .xl2) ── */
.vitrage { list-style: none; padding: 0; row-gap: 12px; }
.fenetre a { display: block; text-decoration: none; color: #fff; }
.fenetre__vitre { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r-carte); overflow: hidden; background: var(--surface-2); transition: transform .2s ease, box-shadow .2s ease; }
.fenetre__vitre img { width: 100%; height: 100%; object-fit: cover; }
.fenetre a:hover .fenetre__vitre, .fenetre a:focus-visible .fenetre__vitre { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--action), var(--ombre); }
.fenetre__direct { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: var(--r-pilule); background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 11px; font-weight: 700; letter-spacing: .02em; color: #fff; }
.fenetre__direct::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--direct); box-shadow: 0 0 6px var(--direct); }
.fenetre__bas { position: absolute; inset: auto 0 0 0; padding: 28px 10px 9px; background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, 0)); display: grid; gap: 1px; }
.fenetre__nom { font-weight: 700; font-size: 14px; line-height: 1.25; }
.fenetre__ligne { font-size: 12px; color: rgba(255, 255, 255, .78); font-variant-numeric: tabular-nums; }
.vitrage__vide { color: var(--texte-2); padding: 24px 0; margin: 0; }
.vitrage__statut { color: var(--texte-2); font-size: 13px; text-align: center; margin: 16px 0 0; }
.vitrage__suite { margin: 22px 0 0; display: flex; justify-content: center; }

/* ── Sections et texte courant ── */
.etendue { padding-block: 8px 34px; }
.etendue > h2 { font-size: 24px; margin-bottom: 14px; }
.mot { max-width: 68ch; color: var(--texte-2); font-size: 15px; display: grid; gap: 10px; padding-block: 8px 30px; }
.mot h2 { color: var(--texte); font-size: 21px; }
.mot p { margin: 0; }

/* ── Perron (pied de page, Materialize .page-footer) ── */
.page-footer.perron { background: var(--surface); border-top: 1px solid var(--ligne); margin-top: 24px; padding-block: 28px 24px; color: var(--texte-2); font-size: 14px; }
.perron .row { row-gap: 22px; }
.perron p { margin: 0; max-width: 56ch; }
.perron nav { display: grid; gap: 8px; align-content: start; }
.perron nav strong { color: var(--texte); font-weight: 650; }
.perron a { color: var(--texte-2); text-decoration: none; }
.perron a:hover { color: var(--texte); text-decoration: underline; }
.perron__bas { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--ligne); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.perron button.lien { background: none; border: 0; padding: 0; color: var(--texte-2); font: inherit; text-decoration: underline; cursor: pointer; }

/* ── Seuil : porte 18+ et mesure d'audience (porte.js) ── */
.seuil { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 16px; background: color-mix(in srgb, var(--fond) 82%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
html.seuil-ouvert .seuil { display: grid; } /* affichée dès le rendu par le script de tête, sans attendre porte.js */
html.seuil-ouvert { overflow: hidden; }
.seuil .card { width: min(440px, 100%); margin: 0; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r-panneau); box-shadow: var(--ombre); }
.seuil .card-content { padding: 24px 20px; display: grid; gap: 14px; }
.seuil h2 { font-size: 26px; }
.seuil h2 b { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: inherit; }
.seuil p { margin: 0; color: var(--texte-2); font-size: 14.5px; }
.seuil p strong { color: var(--texte); font-weight: 650; }
.seuil__choix { display: grid; gap: 8px; }
.seuil__sortir { font-size: 13px; color: var(--texte-2); justify-self: center; }

/* ── Recherche de pseudo (cherche.js) : dans l'en-tête sur ordinateur, derrière la loupe sur mobile ── */
.facade__rang { flex-wrap: wrap; height: auto; min-height: var(--facade-h); }
.cherche { position: relative; order: 3; flex: 1 0 100%; display: none; padding-bottom: 10px; }
.facade.cherche-ouverte .cherche { display: block; }
.cherche input[type="search"] { box-sizing: border-box; width: 100%; height: 42px; margin: 0; padding: 0 14px 0 40px; border: 1px solid var(--ligne); border-radius: var(--r-pilule); background: var(--surface-2); color: var(--texte); font: 500 15px var(--f-texte); box-shadow: none; }
.cherche input[type="search"]:focus { border-color: var(--action); box-shadow: 0 0 0 3px var(--direct-halo); outline: none; }
.cherche input::placeholder { color: var(--texte-2); }
.cherche__icone { position: absolute; left: 13px; top: 11px; width: 20px; height: 20px; color: var(--texte-2); pointer-events: none; }
.cherche__liste { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% - 4px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r-panneau); box-shadow: var(--ombre); max-height: 70vh; overflow-y: auto; }
.cherche__liste a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--r-carte); text-decoration: none; color: var(--texte); }
.cherche__liste [aria-selected="true"] a, .cherche__liste a:hover { background: var(--surface-2); }
.cherche__liste img, .cherche__liste .vide { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.cherche__liste .en-ligne img { box-shadow: 0 0 0 2px var(--direct); }
.cherche__liste .txt { display: grid; min-width: 0; }
.cherche__liste .nom { font-weight: 650; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cherche__liste .ligne { font-size: 12.5px; color: var(--texte-2); }
.cherche__liste .en-ligne .ligne { color: var(--direct); font-weight: 600; }
.cherche__liste .tous a { justify-content: center; font-size: 13.5px; font-weight: 650; color: var(--action); }
.cherche__liste .aucun { padding: 10px; font-size: 14px; color: var(--texte-2); }
.facade__loupe { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--texte); cursor: pointer; }
.facade__loupe svg { width: 21px; height: 21px; }
.facade__loupe[aria-expanded="true"] { background: var(--surface-2); }
@media only screen and (max-width: 480px) { .facade__connexion { display: none; } }
@media only screen and (min-width: 993px) {
  .facade__rang { flex-wrap: nowrap; height: var(--facade-h); }
  .cherche { order: 0; display: block; flex: 0 1 380px; padding: 0; margin-left: 20px; }
  .facade__loupe { display: none; }
}

/* ── Texte éditorial de l'accueil ── */
.mot { gap: 12px; }
.mot h2 { font-size: 22px; line-height: 1.2; }
.mot h3 { color: var(--texte); font-size: 17px; font-weight: 700; margin-top: 8px; }
.mot a { color: var(--texte); text-decoration: underline; text-decoration-color: var(--action); text-underline-offset: 3px; }
.mot__faq { display: grid; gap: 8px; }
.mot__faq details { border: 1px solid var(--ligne); border-radius: var(--r-carte); padding: 10px 14px; background: var(--surface); }
.mot__faq summary { cursor: pointer; color: var(--texte); font-weight: 650; }
.mot__faq details p { margin: 8px 0 0; }

/* Catalogue des habituées hors ligne (pages thématiques) */
.fenetre--eteinte .fenetre__vitre img { filter: saturate(.55) brightness(.8); }
.fenetre--eteinte a:hover .fenetre__vitre img { filter: none; }

/* ── Favoris (favoris.js, localStorage) : cœur des vignettes, lien d'en-tête, page /favoris ── */
.fenetre { position: relative; }
.coeur { position: absolute; top: 6px; right: calc(var(--gutter-width, 1.5rem) / 2 + 6px); display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; cursor: pointer; }
.coeur svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.coeur.est-active { color: var(--direct); }
.coeur.est-active svg { fill: currentColor; }
.coeur:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.facade__favoris { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--texte); }
.facade__favoris svg { width: 21px; height: 21px; }
.facade__favoris[aria-current="page"] { background: var(--surface-2); }
.facade__favoris-compte { position: absolute; top: 1px; right: -1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: var(--r-pilule); background: var(--action); color: var(--action-texte); font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; font-variant-numeric: tabular-nums; }
.favoris__vide { display: grid; gap: 14px; justify-items: start; padding-block: 8px 24px; color: var(--texte-2); }
.favoris__vide p { margin: 0; max-width: 62ch; }
