/* ==========================================================================
   Wannonceur - feuille de style unique.
   Direction : affiche de cinéma d'art et essai. Papier crème, rouge velours,
   or de projecteur. Mobile d'abord, une seule requête CSS, aucune dépendance.
   ========================================================================== */

/* --- Fontes auto-hébergées (aucun appel à un tiers, RGPD) ----------------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
                 U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
                 U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Jetons -------------------------------------------------------------- */
:root {
  color-scheme: light;

  --paper:      #fbf7f0;   /* fond général, crème */
  --paper-warm: #f4ead9;   /* sections alternées, sable */
  --paper-deep: #eadfca;   /* aplats plus soutenus */
  --card:       #ffffff;
  --ink:        #241c18;   /* brun très foncé */
  --ink-soft:   #4c3f37;
  --muted:      #7c6b5e;
  --line:       #e7dbc8;
  --line-soft:  #f0e7d8;

  --rouge:      #a4161a;   /* rouge velours, couleur d'action */
  --rouge-dark: #7b1113;
  --rouge-pale: #fbeceb;
  --or:         #b8862b;   /* or de projecteur */
  --or-clair:   #e9c877;
  --or-pale:    #fdf3dd;
  --nuit:       #1d1a2e;   /* bleu nuit de salle obscure */
  --marque:     #0e7c86;   /* sarcelle du logo Wannonceur */
  --marque-or:  #f5a524;   /* pastille du logo */

  --vert:       #2f6e4f;
  --vert-pale:  #e9f4ee;
  --ambre:      #9a6410;
  --ambre-pale: #fdf0dc;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --ombre-1: 0 1px 2px rgba(80, 52, 24, .06), 0 2px 6px rgba(80, 52, 24, .04);
  --ombre-2: 0 2px 4px rgba(80, 52, 24, .05), 0 12px 28px rgba(80, 52, 24, .09);
  --ombre-3: 0 4px 8px rgba(80, 52, 24, .06), 0 28px 60px rgba(80, 52, 24, .16);

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --max:      1180px;
  --max-lisible: 720px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Grain de papier : une seule image SVG en dégradé, très légère. */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 12% -8%, rgba(233, 200, 119, .28), transparent 62%),
    radial-gradient(900px 620px at 96% 4%, rgba(164, 22, 26, .07), transparent 60%);
}

a { color: var(--rouge); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .55em;
  font-variation-settings: 'opsz' 60;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); font-variation-settings: 'opsz' 144; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-variation-settings: 'opsz' 100; }
h3 { font-size: 1.16rem; }
h4 { font-size: 1rem; }
p  { margin: 0 0 1em; }
small, .small { font-size: .86rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
b, strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

::selection { background: var(--or-clair); color: var(--ink); }

img { max-width: 100%; height: auto; }

/* Surtitre en petites capitales, signature de l'affiche. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: .76rem; font-weight: 650;
  letter-spacing: .16em; text-transform: uppercase; color: var(--rouge);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; background: var(--or); border-radius: 2px;
}
.eyebrow-center { justify-content: center; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.wrap-lisible { max-width: var(--max-lisible); }
.stack > * + * { margin-top: 16px; }
.section { padding: 56px 0; }
.section-serre { padding: 36px 0; }
.section-sable { background: var(--paper-warm); border-block: 1px solid var(--line); }
.section-nuit {
  background:
    radial-gradient(700px 400px at 20% 0%, rgba(233, 200, 119, .14), transparent 60%),
    var(--nuit);
  color: #f4efe6;
}
.section-nuit h2, .section-nuit h3 { color: #fff; }
.section-nuit .muted { color: #b7ada2; }
.section-nuit .eyebrow { color: var(--or-clair); }

.lead { font-size: 1.12rem; color: var(--ink-soft); line-height: 1.6; }

/* --- En-tête ------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 247, 240, .86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-head.colle { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(80, 52, 24, .06); }
.site-head .wrap { display: flex; align-items: center; gap: 14px; height: 72px; }

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem;
  color: var(--ink); letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; flex: none; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--marque);
  box-shadow: 0 4px 12px rgba(14, 124, 134, .3);
}
.brand-mark svg { width: 24px; height: 24px; display: block; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a, .nav button {
  color: var(--ink-soft); padding: 9px 13px; border-radius: var(--r-sm);
  font-size: .94rem; font-weight: 500; font-family: inherit;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: background .16s, color .16s;
}
.nav a:hover, .nav button:hover { background: var(--paper-deep); color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--rouge); font-weight: 650; }
.nav .btn { margin-left: 6px; }
.nav-count {
  display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px;
  margin-left: 6px; background: var(--rouge); color: #fff;
  border-radius: 999px; font-size: .7rem; font-weight: 700; line-height: 1;
}
.site-head .burger {
  display: none; margin-left: auto; width: 42px; height: 42px; padding: 0;
  align-items: center; justify-content: center; box-shadow: none;
}
.burger span, .burger span::before, .burger span::after {
  content: ''; display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .22s, opacity .18s;
}
.burger span::before { transform: translateY(-6px); }
.burger span::after  { transform: translateY(4px); }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: rotate(-45deg) translateY(-1px); }

@media (max-width: 1080px) {
  .site-head .wrap { height: 64px; }
  .site-head .burger { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--ombre-2); max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav.ouvert { display: flex; animation: tomber .22s ease both; }
  .nav a, .nav button { padding: 13px 14px; text-align: left; font-size: 1rem; }
  .nav .btn { margin: 6px 0 0; justify-content: center; }
  .nav form { display: block !important; }
  .nav form button { width: 100%; }
}
@keyframes tomber { from { opacity: 0; transform: translateY(-8px); } }

/* --- Boutons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--card); color: var(--ink);
  font: inherit; font-size: .96rem; font-weight: 600; line-height: 1.2;
  cursor: pointer; text-align: center; white-space: nowrap;
  box-shadow: var(--ombre-1);
  transition: transform .16s cubic-bezier(.2,.8,.3,1), box-shadow .16s, background .16s, color .16s, border-color .16s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--ombre-2); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary {
  background: linear-gradient(160deg, var(--rouge), var(--rouge-dark));
  color: #fff; box-shadow: 0 3px 10px rgba(164, 22, 26, .26);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(164, 22, 26, .34); color: #fff; }
.btn-or {
  background: linear-gradient(160deg, var(--or-clair), var(--or));
  color: #3a2a06; box-shadow: 0 3px 10px rgba(184, 134, 43, .28);
}
.btn-or:hover { color: #3a2a06; box-shadow: 0 10px 26px rgba(184, 134, 43, .34); }
.btn-contour { background: transparent; border-color: var(--line); box-shadow: none; color: var(--ink); }
.btn-contour:hover { border-color: var(--ink); background: var(--card); }
.btn-ghost { background: transparent; box-shadow: none; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--paper-deep); box-shadow: none; }
.btn-danger { color: var(--rouge); background: var(--rouge-pale); box-shadow: none; }
.btn-danger:hover { background: #f8dedd; }
.btn-sm { padding: 8px 15px; font-size: .875rem; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row form { display: contents; }

.section-nuit .btn-contour { border-color: rgba(255,255,255,.28); color: #f4efe6; }
.section-nuit .btn-contour:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }

/* --- Cartes -------------------------------------------------------------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px; box-shadow: var(--ombre-1);
}
.card + .card { margin-top: 18px; }
.card-plat { box-shadow: none; }
.card-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head > :first-child { flex: 1 1 240px; }
.card-head h1, .card-head h2, .card-head h3 { margin: 0; }
.card-head .btn { margin-left: auto; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Les annonces suivent leur propre grille : une affiche 2:3 devient énorme
   dans une colonne large, on borne donc la largeur des colonnes. */
.grid-annonces { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (min-width: 560px) { .grid-annonces { grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); } }

/* --- Affiches ------------------------------------------------------------ */
.affiche {
  position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden;
  border-radius: 12px; background: var(--paper-deep);
  box-shadow: 0 2px 6px rgba(60, 40, 20, .12), 0 14px 30px rgba(60, 40, 20, .14);
}
.affiche img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Repli quand aucune affiche n'est connue : une vraie petite affiche dessinée. */
.affiche-repli {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: space-between; padding: 12px;
  background: linear-gradient(155deg, var(--h1, #2f2a3d), var(--h2, #14121f));
  color: rgba(255, 255, 255, .94);
}
.affiche-repli::after {
  content: ''; position: absolute; inset: 7px; border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 7px; pointer-events: none;
}
.affiche-repli .titre {
  font-family: var(--serif); font-weight: 600; font-size: .96rem; line-height: 1.16;
  letter-spacing: -.01em; margin-top: auto;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.affiche-repli .marque {
  font-size: .52rem; letter-spacing: .13em; text-transform: uppercase;
  opacity: .65; font-weight: 600; line-height: 1.3;
}

/* --- Carte d'annonce ----------------------------------------------------- */
.annonce {
  display: flex; flex-direction: column; color: inherit; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--ombre-1);
  transition: transform .2s cubic-bezier(.2,.8,.3,1), box-shadow .2s, border-color .2s;
}
.annonce:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--ombre-3); border-color: var(--line-soft); }
.annonce .visuel { position: relative; }
.annonce .visuel .affiche { border-radius: 0; box-shadow: none; aspect-ratio: 2 / 3; }
.annonce .corps { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.annonce .quand {
  font-size: .78rem; font-weight: 700; color: var(--rouge);
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 6px;
}
.annonce h3 {
  margin: 0 0 6px; font-size: 1.1rem; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.annonce .lieu {
  color: var(--muted); font-size: .89rem; line-height: 1.4; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.annonce .pied {
  display: flex; align-items: center; gap: 10px; margin-top: auto;
  padding-top: 13px; border-top: 1px solid var(--line-soft); font-size: .87rem;
}
/* Bandeau posé sur l'affiche : nature de l'annonce. */
.ruban {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
.ruban-offre    { background: rgba(233, 200, 119, .94); color: #3a2a06; }
.ruban-recherche{ background: rgba(255, 255, 255, .92); color: var(--ink); }
.ruban-duo      { background: rgba(164, 22, 26, .92); color: #fff; }

/* Grille d'annonces en mode liste horizontale sur mobile étroit */
.annonce-large { flex-direction: row; }
.annonce-large .visuel { width: 108px; flex: none; }
.annonce-large .visuel .affiche { aspect-ratio: 2 / 3; height: 100%; }

/* --- Avatars, pastilles -------------------------------------------------- */
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--a1, #e9c877), var(--a2, #b8862b));
  color: #3a2a06; font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
}
.avatar-lg { width: 68px; height: 68px; font-size: 1.35rem; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--paper-warm); border: 1px solid var(--line);
  font-size: .78rem; font-weight: 550; color: var(--ink-soft); line-height: 1.4;
}
.pill-or     { background: var(--or-pale);   border-color: #eddcb0; color: #7a5510; }
.pill-rouge  { background: var(--rouge-pale);border-color: #f3d3d2; color: var(--rouge); }
.pill-ok     { background: var(--vert-pale); border-color: #cfe6da; color: var(--vert); }
.pill-warn   { background: var(--ambre-pale);border-color: #f0dcbb; color: var(--ambre); }
.pill-danger { background: var(--rouge-pale);border-color: #f3d3d2; color: var(--rouge); }
.pills { display: flex; flex-wrap: wrap; gap: 7px; }

/* --- Puces de filtre ----------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-size: .9rem; font-weight: 550;
  box-shadow: var(--ombre-1);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.chip:hover { text-decoration: none; border-color: var(--or); transform: translateY(-2px); box-shadow: var(--ombre-2); }
.chip .n { color: var(--muted); font-size: .82rem; font-weight: 600; }
.chip-actif { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-actif .n { color: rgba(255, 255, 255, .6); }

/* Défilement horizontal sans barre visible (rangées d'affiches, filtres). */
.rail {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 6px 20px 20px; margin: 0 -20px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }
.rail-affiches > * { width: 168px; }
@media (min-width: 720px) { .rail-affiches > * { width: 186px; } }

/* --- Formulaires --------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field > label, .label {
  display: block; font-size: .88rem; font-weight: 650; margin-bottom: 7px; color: var(--ink);
}
.field .hint { display: block; color: var(--muted); font-size: .83rem; margin-top: 7px; line-height: 1.5; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=tel],
input[type=time], input[type=number], input[type=search], input[type=url], select, textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  font: inherit; font-size: .97rem;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
input::placeholder, textarea::placeholder { color: #b3a595; }
textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
input:hover, select:hover, textarea:hover { border-color: #d8c9b0; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--or);
  box-shadow: 0 0 0 4px rgba(233, 200, 119, .35);
}
select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%237c6b5e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 12px;
}
.check {
  display: flex; gap: 12px; align-items: flex-start; font-size: .93rem;
  margin-bottom: 12px; line-height: 1.55;
}
.check input { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--rouge); }
.row { display: grid; gap: 16px; }
@media (min-width: 560px) {
  .row-2 { grid-template-columns: 1fr 1fr; }
  .row-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Choix en grandes cartes (rôle, type d'annonce). */
.choix { display: grid; gap: 14px; }
@media (min-width: 640px) { .choix-2 { grid-template-columns: 1fr 1fr; } }
.choix label {
  position: relative; display: block; cursor: pointer;
  padding: 20px 20px 20px 56px; border-radius: var(--r);
  border: 1.5px solid var(--line); background: var(--card);
  box-shadow: var(--ombre-1); transition: border-color .16s, box-shadow .16s, transform .16s;
}
.choix label:hover { border-color: var(--or); transform: translateY(-2px); box-shadow: var(--ombre-2); }
.choix input { position: absolute; top: 22px; left: 20px; width: 20px; height: 20px; accent-color: var(--rouge); margin: 0; }
.choix input:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
.choix label:has(input:checked) {
  border-color: var(--rouge); background: var(--rouge-pale);
  box-shadow: 0 0 0 3px rgba(164, 22, 26, .1);
}
.choix .titre { display: block; font-weight: 650; font-size: 1.02rem; margin-bottom: 3px; }
.choix .detail { display: block; color: var(--muted); font-size: .89rem; line-height: 1.5; }

/* Autocomplétion (films, salles). La liste s'ancre sur le champ lui-même,
   pas sur le bloc entier, sinon elle tombe sous les explications. */
.auto-boite { position: relative; }
.auto-liste {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--ombre-3); overflow: hidden auto; max-height: 340px; padding: 6px;
}
.auto-liste:empty, .auto-liste[hidden] { display: none; }
.auto-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 9px 10px; border: 0; border-radius: 10px; background: none;
  font: inherit; color: var(--ink); cursor: pointer;
}
.auto-item:hover, .auto-item[aria-selected="true"] { background: var(--paper-warm); }
.auto-item img, .auto-item .vignette {
  width: 34px; height: 51px; border-radius: 5px; object-fit: cover; flex: none;
  background: var(--paper-deep);
}
.auto-item .t { font-weight: 600; line-height: 1.25; }
.auto-item .s { color: var(--muted); font-size: .84rem; }

/* --- Messages ------------------------------------------------------------ */
.flash {
  border-radius: 14px; padding: 14px 17px; margin-bottom: 16px;
  border: 1px solid; font-size: .94rem; display: flex; gap: 11px; align-items: flex-start;
  box-shadow: var(--ombre-1);
}
.flash-success { background: var(--vert-pale);  border-color: #cfe6da; color: #1f4c36; }
.flash-error   { background: var(--rouge-pale); border-color: #f3d3d2; color: var(--rouge-dark); }
.flash-info    { background: var(--or-pale);    border-color: #eddcb0; color: #6d4b0e; }
.flash a { color: inherit; text-decoration: underline; font-weight: 600; }

.note {
  border-left: 3px solid var(--or); background: var(--or-pale);
  padding: 15px 18px; border-radius: 0 14px 14px 0; font-size: .94rem; line-height: 1.6;
}
.note-rouge { border-left-color: var(--rouge); background: var(--rouge-pale); }
.empty {
  text-align: center; padding: 48px 24px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--r); background: var(--card);
}
.empty h3 { color: var(--ink); }

/* --- Accueil : bandeau ---------------------------------------------------- */
.hero { position: relative; padding: 56px 0 44px; overflow: hidden; }
.hero-grille { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero-grille { grid-template-columns: 1.08fr .92fr; gap: 56px; } }
.hero h1 { margin-bottom: 20px; max-width: 15ch; }
.hero h1 .accent {
  color: var(--rouge); font-style: italic;
  font-variation-settings: 'opsz' 144, 'wght' 600;
}
.hero .lead { max-width: 52ch; font-size: 1.16rem; }
.hero .btn-row { margin-top: 30px; }
.hero .rassurance {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px;
  color: var(--muted); font-size: .9rem;
}
.hero .rassurance span { display: inline-flex; align-items: center; gap: 7px; }
.hero .rassurance svg { width: 15px; height: 15px; color: var(--vert); flex: none; }

/* Éventail d'affiches. */
.eventail {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; padding: 8px 0;
}
.eventail .affiche { transition: transform .4s cubic-bezier(.2,.8,.3,1); }
.eventail > *:nth-child(1) { transform: rotate(-4deg) translateY(12px); }
.eventail > *:nth-child(2) { transform: rotate(1deg) translateY(-14px) scale(1.05); z-index: 2; }
.eventail > *:nth-child(3) { transform: rotate(5deg) translateY(8px); }
.eventail > *:nth-child(4) { transform: rotate(-2deg) translateY(-4px); }
.eventail > *:nth-child(5) { transform: rotate(3deg) translateY(6px) scale(1.03); z-index: 2; }
.eventail > *:nth-child(6) { transform: rotate(-5deg); }
.eventail:hover > * { transform: rotate(0) translateY(0) scale(1); }
/* Marges automatiques et étirement de grille ne font pas bon ménage : sans
   width explicite, l'éventail se réduit à la largeur de ses gouttières. */
@media (max-width: 979px) {
  .eventail { grid-template-columns: repeat(3, 1fr); width: 100%; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 480px) { .eventail > *:nth-child(n+4) { display: none; } }

/* Deux fauteuils, dessin d'ouverture. */
.fauteuils { display: block; width: 100%; max-width: 300px; margin-bottom: 22px; }

/* --- Chiffres ------------------------------------------------------------ */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; margin-top: 34px;
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats > div { background: var(--card); padding: 20px 18px; }
.stats b {
  display: block; font-family: var(--serif); font-size: 1.95rem; font-weight: 650;
  line-height: 1.05; color: var(--ink); font-variation-settings: 'opsz' 100;
}
.stats span { color: var(--muted); font-size: .87rem; }

/* --- Les deux rôles ------------------------------------------------------ */
.roles { display: grid; gap: 20px; }
@media (min-width: 800px) { .roles { grid-template-columns: 1fr 1fr; } }
.role {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: 30px; border-radius: var(--r-lg); color: inherit;
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--ombre-2);
  transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s;
}
.role:hover { text-decoration: none; transform: translateY(-5px); box-shadow: var(--ombre-3); }
.role::after {
  content: ''; position: absolute; inset: auto -30% -60% auto; width: 260px; height: 260px;
  border-radius: 50%; opacity: .18; pointer-events: none;
}
.role-offre::after  { background: radial-gradient(circle, var(--or-clair), transparent 70%); }
.role-cherche::after{ background: radial-gradient(circle, var(--rouge), transparent 70%); }
.role .icone {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  margin-bottom: 18px; flex: none;
}
.role .icone svg { width: 26px; height: 26px; }
.role-offre .icone   { background: var(--or-pale);   color: var(--or); }
.role-cherche .icone { background: var(--rouge-pale);color: var(--rouge); }
.role h3 { font-size: 1.4rem; margin-bottom: 10px; }
.role p { color: var(--ink-soft); margin-bottom: 18px; }
.role .fin {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 650; color: var(--rouge);
}
.role .fin svg { width: 16px; height: 16px; transition: transform .2s; }
.role:hover .fin svg { transform: translateX(4px); }

/* --- Étapes -------------------------------------------------------------- */
.etapes { counter-reset: etape; list-style: none; padding: 0; margin: 0; display: grid; gap: 26px; }
@media (min-width: 860px) { .etapes { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.etapes li { position: relative; padding-top: 8px; }
.etapes li::before {
  counter-increment: etape; content: counter(etape);
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px;
  border-radius: 50%; background: var(--card); border: 1.5px solid var(--or);
  color: var(--or); font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
  box-shadow: var(--ombre-1);
}
.etapes h3 { margin-bottom: 8px; }
.etapes p { color: var(--muted); margin: 0; font-size: .95rem; }
.section-nuit .etapes li::before { background: rgba(255,255,255,.06); border-color: var(--or-clair); color: var(--or-clair); }

/* --- Billet (élément décoratif à encoches) ------------------------------- */
.billet {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px 28px; box-shadow: var(--ombre-2);
}
.billet::before, .billet::after {
  content: ''; position: absolute; top: 50%; width: 22px; height: 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 50%;
  transform: translateY(-50%);
}
.billet::before { left: -12px; clip-path: inset(0 0 0 50%); }
.billet::after  { right: -12px; clip-path: inset(0 50% 0 0); }
.section-sable .billet::before, .section-sable .billet::after { background: var(--paper-warm); }

/* --- Enseignes ----------------------------------------------------------- */
.enseignes { display: grid; gap: 16px; }
@media (min-width: 700px) { .enseignes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .enseignes { grid-template-columns: repeat(3, 1fr); } }
.enseigne {
  display: flex; gap: 16px; padding: 20px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--ombre-1);
  color: inherit; align-items: flex-start;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
a.enseigne:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--ombre-2); border-color: var(--or); }
.enseigne .logo {
  width: 52px; height: 52px; flex: none; border-radius: 13px; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: .9rem; letter-spacing: -.02em;
  color: #fff; text-align: center; line-height: 1; padding: 4px;
  background: var(--c, var(--ink));
}
.enseigne h3 { margin: 0 0 3px; font-size: 1.06rem; }
.enseigne .formule { font-size: .9rem; color: var(--ink-soft); margin: 0 0 8px; }
.enseigne .prix { font-weight: 650; color: var(--rouge); }

/* --- Annuaire des salles ------------------------------------------------- */
.annuaire { display: grid; gap: 12px; }
@media (min-width: 700px) { .annuaire { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .annuaire { grid-template-columns: repeat(3, 1fr); } }
.salle {
  display: flex; gap: 13px; align-items: flex-start; padding: 15px 17px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  color: inherit; box-shadow: var(--ombre-1);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
a.salle:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--ombre-2); border-color: var(--or); }
.salle .marque {
  width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: var(--c, var(--paper-deep)); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: -.01em; text-align: center; line-height: 1.05;
  padding: 3px;
}
.salle .marque.vide { background: var(--paper-warm); color: var(--muted); }
.salle .nom { font-weight: 620; line-height: 1.25; }
.salle .ou { color: var(--muted); font-size: .86rem; }
.salle .meta { color: var(--muted); font-size: .8rem; margin-top: 3px; }

.lettres { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.lettres a {
  display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  font-weight: 600; font-size: .88rem; color: var(--ink);
}
.lettres a:hover { text-decoration: none; border-color: var(--or); background: var(--or-pale); }

/* --- Tableaux ------------------------------------------------------------ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th {
  color: var(--muted); font-weight: 650; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .07em; background: var(--paper-warm);
}

/* --- Pagination ---------------------------------------------------------- */
.pagination { display: flex; gap: 7px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 13px;
  border-radius: 12px; border: 1px solid var(--line); color: var(--ink-soft);
  background: var(--card); font-weight: 600; font-size: .92rem;
}
.pagination a:hover { text-decoration: none; border-color: var(--or); background: var(--or-pale); }
.pagination .on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* --- Contenu éditorial --------------------------------------------------- */
.prose { max-width: 68ch; font-size: 1.03rem; }
.prose h2 { margin-top: 1.9em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: .55em; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--or);
  font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: var(--ink-soft);
}

/* --- Questions fréquentes ------------------------------------------------ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 8px; top: 27px;
  width: 10px; height: 10px; border-right: 2px solid var(--or); border-bottom: 2px solid var(--or);
  transform: rotate(45deg); transition: transform .22s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .reponse { padding: 0 0 22px; color: var(--ink-soft); max-width: 68ch; }
.faq .reponse p:last-child { margin-bottom: 0; }

/* --- Coordonnées révélées ------------------------------------------------ */
.contact-list { display: grid; gap: 11px; }
.contact-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 17px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper-warm);
}
.contact-item b {
  font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .09em;
}
.contact-item .handle { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .97rem; font-weight: 600; }
.contact-item .btn { margin-left: auto; }

/* --- Étoiles ------------------------------------------------------------- */
.stars { color: var(--or); letter-spacing: 2px; }
.rating-input { display: flex; gap: 8px; flex-wrap: wrap; }
.rating-input label {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  font-size: .9rem; cursor: pointer;
}
.rating-input label:has(input:checked) { border-color: var(--or); background: var(--or-pale); font-weight: 650; }
.rating-input input { accent-color: var(--or); }

/* --- Fiche d'annonce ----------------------------------------------------- */
.fiche-tete {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--nuit); color: #fff; box-shadow: var(--ombre-3); margin-bottom: 26px;
}
.fiche-fond { position: absolute; inset: 0; }
.fiche-fond img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.fiche-fond::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20, 17, 30, .95) 0%, rgba(20, 17, 30, .72) 48%, rgba(20, 17, 30, .45) 100%);
}
.fiche-corps { position: relative; display: flex; gap: 26px; padding: 30px; flex-wrap: wrap; }
.fiche-corps .affiche { width: 150px; flex: none; }
.fiche-info { flex: 1 1 260px; min-width: 0; }
.fiche-info h1 { color: #fff; margin-bottom: 12px; }
.fiche-info .quand { font-size: 1.06rem; color: var(--or-clair); font-weight: 600; margin-bottom: 4px; }
.fiche-info .ou { color: rgba(255, 255, 255, .78); }
.fiche-tete .pill { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); color: #fff; }
.fiche-tete .pill-or { background: var(--or-clair); border-color: transparent; color: #3a2a06; }
.fiche-tete .pill-ok { background: rgba(107, 209, 158, .22); border-color: rgba(107, 209, 158, .4); color: #b6f0d2; }

/* --- Pied de page -------------------------------------------------------- */
.site-foot {
  background: var(--nuit); color: #c9c0b6;
  padding: 52px 0 34px; font-size: .92rem;
}
.site-foot .colonnes { display: grid; gap: 32px; margin-bottom: 34px; }
@media (min-width: 760px) { .site-foot .colonnes { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; } }
.site-foot h4 {
  font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--or-clair); margin-bottom: 14px;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-foot a { color: #c9c0b6; }
.site-foot a:hover { color: #fff; }
.site-foot .brand { color: #fff; margin-bottom: 12px; }
.site-foot .bas {
  border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: .85rem; color: #9a9188;
}

/* --- Publicité ------------------------------------------------------------ */
/* Les emplacements restent invisibles tant que le consentement n'est pas
   donné : pas de cadre vide, pas de saut de mise en page. */
.pub { display: none; margin: 32px 0; text-align: center; }
.pub-ok .pub { display: block; }
.pub-mention {
  display: block; margin-bottom: 8px;
  font-size: .68rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.pub ins { min-height: 90px; }

.consentement {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--nuit); color: #e6ded4;
  border-top: 2px solid var(--or);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .25);
  animation: monter .3s cubic-bezier(.2,.8,.3,1) both;
}
.consentement[hidden] { display: none; }
.consentement .wrap {
  display: flex; flex-wrap: wrap; gap: 14px 24px;
  align-items: center; justify-content: space-between; padding-block: 16px;
}
.consentement p { margin: 0; font-size: .9rem; line-height: 1.55; max-width: 68ch; }
.consentement strong { color: #fff; }
.consentement a { color: var(--or-clair); }
.consentement .btn-row { flex: none; }
/* Fond sombre : le bouton de refus doit rester aussi lisible que l'autre. */
.consentement .btn-contour { border-color: rgba(255, 255, 255, .35); color: #f4efe6; }
.consentement .btn-contour:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
@keyframes monter { from { transform: translateY(100%); } }

/* --- Divers -------------------------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--rouge); color: #fff; padding: 12px 18px; border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; border-radius: 4px; }

/* Apparition douce au défilement (désactivée si l'utilisateur préfère). */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.vu { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.3,1); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.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;
}
