/* Alibia — page d'accueil. Design system : parchemin, bordeaux, or (voir la planche de composants). */

@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-display-wght.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #efe4cf;
  --page-2: #e6d6b8;
  --papier: #f7edda;
  --papier-2: #efe0c4;
  --encre: #2b1b10;
  --encre-douce: #5e4630;
  --bordeaux: #74161b;
  --bordeaux-fonce: #520a10;
  --bordeaux-clair: #8e1f27;
  --or: #b98a3e;
  --or-clair: #d9b26b;
  --sable: #cba97e;
  --creme: #f3e3bd;
  --nuit: #1b1410;
  --nuit-2: #2a2018;
  --vert: #2f4b34;

  --titre: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --texte: Georgia, "Iowan Old Style", "Times New Roman", serif;

  --rayon: 16px;
  --ombre-legere: 0 2px 6px rgba(70, 40, 10, 0.14);
  --ombre-moyenne: 0 8px 22px rgba(70, 40, 10, 0.2);
  --ombre-forte: 0 18px 40px rgba(50, 25, 5, 0.32);

  /* Coins ornementaux dorés (un par angle) : voir .cadre::before */
  --coin-hg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='%23b98a3e' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M2 26V11C2 6 6 2 11 2h15'/%3E%3Cpath d='M7 26V13a6 6 0 0 1 6-6h13' opacity='.5'/%3E%3Ccircle cx='11.5' cy='11.5' r='1.7' fill='%23b98a3e' stroke='none'/%3E%3C/svg%3E");
  --coin-hd: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='%23b98a3e' stroke-width='1.4' stroke-linecap='round'%3E%3Cg transform='matrix(-1 0 0 1 28 0)'%3E%3Cpath d='M2 26V11C2 6 6 2 11 2h15'/%3E%3Cpath d='M7 26V13a6 6 0 0 1 6-6h13' opacity='.5'/%3E%3Ccircle cx='11.5' cy='11.5' r='1.7' fill='%23b98a3e' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  --coin-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='%23b98a3e' stroke-width='1.4' stroke-linecap='round'%3E%3Cg transform='matrix(1 0 0 -1 0 28)'%3E%3Cpath d='M2 26V11C2 6 6 2 11 2h15'/%3E%3Cpath d='M7 26V13a6 6 0 0 1 6-6h13' opacity='.5'/%3E%3Ccircle cx='11.5' cy='11.5' r='1.7' fill='%23b98a3e' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  --coin-bd: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='%23b98a3e' stroke-width='1.4' stroke-linecap='round'%3E%3Cg transform='matrix(-1 0 0 -1 28 28)'%3E%3Cpath d='M2 26V11C2 6 6 2 11 2h15'/%3E%3Cpath d='M7 26V13a6 6 0 0 1 6-6h13' opacity='.5'/%3E%3Ccircle cx='11.5' cy='11.5' r='1.7' fill='%23b98a3e' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  background-color: var(--page);
  background-image:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 250, 238, 0.85), rgba(255, 250, 238, 0) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bordeaux); }
a:hover { color: var(--bordeaux-fonce); }

:focus-visible {
  outline: 3px solid var(--bordeaux);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lien-evitement {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--bordeaux);
  color: var(--creme);
  border-radius: 10px;
  text-decoration: none;
}
.lien-evitement:focus { top: 1rem; }

.conteneur {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 1rem;
}
@media (min-width: 720px) { .conteneur { padding-inline: 1.75rem; } }

.icone {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Cadre ornemental ---------- */

.cadre {
  position: relative;
  background: var(--papier);
  border: 2px solid var(--sable);
  border-radius: var(--rayon);
  box-shadow:
    inset 0 0 0 4px var(--papier),
    inset 0 0 0 5px rgba(185, 138, 62, 0.5),
    var(--ombre-moyenne);
}
.cadre::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 2;
  pointer-events: none;
  background:
    var(--coin-hg) top left / 26px 26px no-repeat,
    var(--coin-hd) top right / 26px 26px no-repeat,
    var(--coin-bg) bottom left / 26px 26px no-repeat,
    var(--coin-bd) bottom right / 26px 26px no-repeat;
}
.cadre-sombre {
  background: var(--nuit);
  border-color: #8a6a34;
  box-shadow:
    inset 0 0 0 4px var(--nuit),
    inset 0 0 0 5px rgba(217, 178, 107, 0.5),
    var(--ombre-forte);
}

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 1.5px solid;
  border-radius: 12px;
  font-family: var(--titre);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.bouton:hover { transform: translateY(-2px); }
.bouton:active { transform: translateY(0); }
.bouton .icone { width: 1.15em; height: 1.15em; transition: transform 0.15s ease; }
.bouton:hover .icone { transform: translateX(3px); }

.bouton-principal {
  color: var(--creme);
  background: linear-gradient(180deg, #86202a 0%, #65101a 55%, #520a10 100%);
  border-color: #c9a25a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 0 3px rgba(0, 0, 0, 0.14),
    0 6px 14px rgba(82, 10, 16, 0.32);
}
.bouton-principal:hover { color: #fff6dc; filter: brightness(1.1); }

.bouton-secondaire {
  color: var(--encre);
  background: linear-gradient(180deg, #f8efdc, #ecdcbf);
  border-color: var(--sable);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), var(--ombre-legere);
}
.bouton-secondaire:hover { color: var(--encre); filter: brightness(1.03); }

.bouton-contour {
  color: var(--creme);
  background: transparent;
  border-color: var(--or-clair);
  box-shadow: inset 0 0 0 3px rgba(217, 178, 107, 0.18);
}
.bouton-contour:hover { color: #fff6dc; background: rgba(217, 178, 107, 0.12); }

.bouton-plein { width: 100%; }

/* ---------- Pastilles (badges) ---------- */

.pastille {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.95rem 0.3rem 0.6rem;
  border: 1.5px solid var(--sable);
  border-radius: 999px;
  background: linear-gradient(180deg, #faf2e0, #efe0c4);
  box-shadow: var(--ombre-legere);
  color: var(--encre);
  font-family: var(--titre);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}
.pastille-point {
  width: 0.95em;
  height: 0.95em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8c583, #b98a3e 70%);
  box-shadow: 0 0 0 1px rgba(90, 60, 20, 0.35);
}
.pastille-sombre {
  padding-inline: 0.8rem 1rem;
  background: linear-gradient(180deg, #3a2e23, #211812);
  border-color: #6c5535;
  color: var(--creme);
}

/* ---------- Ornement séparateur ---------- */

.ornement {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 340px;
  margin: 0.9rem auto 0;
  color: var(--or);
}
.ornement::before, .ornement::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.ornement::after { background: linear-gradient(270deg, transparent, currentColor); }
.ornement i {
  width: 9px;
  height: 9px;
  border: 1.5px solid currentColor;
  transform: rotate(45deg);
  background: var(--papier);
}

/* ---------- Barre de compte (au-dessus de l'en-tête) ---------- */

.barre-compte {
  display: flex;
  justify-content: flex-end;
  padding: 0.45rem 0.4rem 0;
}
.barre-compte a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem;
  color: var(--encre);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}
.barre-compte a:hover { color: var(--bordeaux); }
.barre-compte .icone { width: 1.2em; height: 1.2em; }
.barre-compte + .entete { margin-top: 0.1rem; }

/* ---------- En-tête ---------- */

.entete {
  margin-top: 0.75rem;
  padding: 0.7rem 1rem 0.55rem;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "logo cta"
    "nav nav";
  align-items: center;
  gap: 0.35rem 1rem;
}

.logo {
  grid-area: logo;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  justify-self: start;
  color: #2a1208;
  text-decoration: none;
}
.logo:hover { color: #2a1208; }
.logo-mot {
  font-family: var(--titre);
  font-size: clamp(2.2rem, 7vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}
.logo-boucle {
  width: 2rem;
  height: 1.7rem;
  margin-top: 0.5rem;
  fill: none;
  stroke: #6b3b18;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.logo-boucle-droite { transform: scaleX(-1); }

.entete-devise { display: none; }

.entete-nav {
  grid-area: nav;
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(185, 138, 62, 0.4);
}
.entete-nav a {
  padding: 0.35rem 0.4rem;
  color: var(--encre);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.entete-nav a:hover { color: var(--bordeaux); }

.entete .bouton { grid-area: cta; min-height: 44px; padding: 0.5rem 1.2rem; font-size: 0.98rem; }

@media (min-width: 900px) {
  .entete {
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: "logo devise nav cta";
    gap: 1.25rem;
    padding: 0.7rem 1.6rem;
  }
  .entete-devise {
    grid-area: devise;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    min-width: 0;
    color: var(--or);
  }
  .entete-devise::before, .entete-devise::after {
    content: "";
    flex: 1;
    min-width: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, currentColor);
  }
  .entete-devise::after { background: linear-gradient(270deg, transparent, currentColor); }
  .entete-devise span {
    color: var(--encre);
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .entete-devise b { padding-inline: 0.4rem; color: var(--or); font-weight: 400; }
  .entete-nav { padding-top: 0; border-top: 0; gap: 0.15rem; }
  .entete-nav a { font-size: 0.82rem; padding-inline: 0.7rem; }
}
@media (max-width: 1099px) and (min-width: 900px) {
  .entete-devise { display: none; }
  .entete { grid-template-columns: 1fr auto auto; grid-template-areas: "logo nav cta"; }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  gap: 2.4rem;
  padding-block: 2.4rem 3.2rem;
}

.hero-texte { max-width: 38rem; }

.hero h1 {
  margin: 1rem 0 0;
  font-family: var(--titre);
  font-size: clamp(2.05rem, 5.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--bordeaux); }

.hero-intro {
  margin: 1.2rem 0 0;
  color: var(--encre-douce);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}
@media (max-width: 519px) {
  .hero-actions .bouton { width: 100%; }
}

.hero-atouts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin: 1.8rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid rgba(185, 138, 62, 0.5);
  list-style: none;
  color: var(--encre-douce);
  font-size: 0.98rem;
}
.hero-atouts li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-atouts .icone { width: 1.15em; height: 1.15em; color: var(--bordeaux); stroke-width: 2.4; }

.hero-visuel {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
}
.embleme {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(50, 25, 5, 0.35));
}
.embleme text { font-family: var(--titre); font-weight: 600; }

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 3.5rem;
    padding-block: 3.2rem 4.4rem;
  }
  .hero-visuel { justify-self: end; max-width: 430px; }
}

/* ---------- Sections ---------- */

.section { padding-block: 3.6rem; scroll-margin-top: 1rem; }
.section-tete { max-width: 46rem; margin: 0 auto 2.4rem; text-align: center; }
.section-tete h2 {
  margin: 0;
  font-family: var(--titre);
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.18;
  text-wrap: balance;
}
.section-tete p { margin: 1rem 0 0; color: var(--encre-douce); font-size: 1.1rem; }

/* Comment jouer */

.etapes {
  display: grid;
  gap: 1.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}
@media (min-width: 800px) { .etapes { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; } }
@media (min-width: 800px) { .etapes.etapes-duo { grid-template-columns: repeat(2, 1fr); } }

.etape {
  position: relative;
  padding: 2.1rem 1.6rem 1.7rem;
  text-align: center;
}
.etape h3 { margin: 1rem 0 0.5rem; font-family: var(--titre); font-size: 1.4rem; font-weight: 700; }
.etape p { margin: 0; color: var(--encre-douce); }
.etape-numero {
  position: absolute;
  top: 0.9rem;
  left: 1.2rem;
  color: var(--or);
  font-family: var(--titre);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.medaillon-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 2.5px solid var(--or);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fbf3e0, #ecd9b5);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.5), var(--ombre-legere);
  color: #5b3a16;
}
.medaillon-icone .icone { width: 28px; height: 28px; }

/* Cartes d'enquête */

.grille-enquetes {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

.carte-enquete { display: flex; flex-direction: column; padding: 8px; }

.carte-image { position: relative; }
.carte-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 9px;
}
.carte-image .pastille { position: absolute; top: 0.7rem; right: 0.7rem; z-index: 3; }
.etiquette-image {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  z-index: 3;
  padding: 0.25rem 0.85rem;
  border: 1px solid rgba(217, 178, 107, 0.7);
  border-radius: 8px;
  background: rgba(27, 20, 16, 0.85);
  color: var(--creme);
  font-family: var(--titre);
  font-size: 0.95rem;
}

.carte-corps { display: flex; flex: 1; flex-direction: column; padding: 1.1rem 0.9rem 0.9rem; }
.carte-corps h3 { margin: 0; font-family: var(--titre); font-size: 1.55rem; font-weight: 700; line-height: 1.2; }
.carte-corps h3 a { color: var(--encre); text-decoration: none; }
.carte-corps h3 a:hover { color: var(--bordeaux); }

.carte-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--encre-douce);
  font-size: 0.95rem;
}
.carte-meta li { display: inline-flex; align-items: center; gap: 0.4rem; }
.carte-meta .icone { color: var(--bordeaux); width: 1.1em; height: 1.1em; }

.carte-desc { flex: 1; margin: 0.8rem 0 1.3rem; color: var(--encre-douce); }

/* Carte verrouillée (prochaines enquêtes) */

.carte-verrouillee {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 340px;
  padding: 3rem 1.6rem 2.4rem;
  overflow: hidden;
  color: var(--creme);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(27, 20, 16, 0.55), rgba(27, 20, 16, 0.92)),
    url("/assets/accueil/chateau.svg") center bottom / cover no-repeat,
    var(--nuit);
}
.carte-verrouillee > * { position: relative; z-index: 3; }
.carte-verrouillee .pastille { margin-bottom: 1.2rem; }
.carte-verrouillee h3 { margin: 1.1rem 0 0.5rem; font-family: var(--titre); font-size: 1.45rem; font-weight: 700; }
.carte-verrouillee p { margin: 0; max-width: 20rem; color: #d8c8aa; }
.cadenas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border: 2px solid var(--or-clair);
  border-radius: 50%;
  background: rgba(217, 178, 107, 0.12);
  color: var(--or-clair);
}
.cadenas .icone { width: 30px; height: 30px; }

/* Pourquoi Alibia (bandeau sombre) */

.bandeau-nuit {
  position: relative;
  color: var(--creme);
  background:
    radial-gradient(80% 90% at 50% 0%, rgba(116, 22, 27, 0.35), transparent 70%),
    linear-gradient(180deg, var(--nuit-2), var(--nuit));
  border-block: 3px solid #8a6a34;
}
.bandeau-nuit .section-tete p { color: #d8c8aa; }
.bandeau-nuit .ornement i { background: var(--nuit-2); }
.atouts {
  display: grid;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 800px) { .atouts { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; } }
.atout {
  padding: 1.7rem 1.5rem;
  border: 1px solid rgba(217, 178, 107, 0.45);
  border-radius: var(--rayon);
  background: rgba(255, 244, 220, 0.045);
  box-shadow: inset 0 0 0 4px rgba(27, 20, 16, 0.6), inset 0 0 0 5px rgba(217, 178, 107, 0.18);
}
.atout .medaillon-icone { width: 54px; height: 54px; background: rgba(217, 178, 107, 0.1); border-color: var(--or-clair); color: var(--or-clair); box-shadow: none; }
.atout .medaillon-icone .icone { width: 24px; height: 24px; }
.atout h3 { margin: 1rem 0 0.5rem; font-family: var(--titre); font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
.atout p { margin: 0; color: #d8c8aa; }

/* FAQ */

.faq { max-width: 50rem; margin: 0 auto; display: grid; gap: 0.9rem; }
.faq details {
  border: 1.5px solid var(--sable);
  border-radius: 14px;
  background: var(--papier);
  box-shadow: var(--ombre-legere);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem;
  cursor: pointer;
  font-family: var(--titre);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--bordeaux);
  border-bottom: 2px solid var(--bordeaux);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details[open] summary { color: var(--bordeaux); }
.faq .reponse { padding: 0 1.3rem 1.2rem; color: var(--encre-douce); }
.faq .reponse p { margin: 0; }

/* Lien vers une page de détail, sous une section */

.lien-suite { margin: 1.8rem 0 0; text-align: center; }
.lien-suite a { font-family: var(--titre); font-size: 1.05rem; font-weight: 600; }
.bandeau-nuit .lien-suite a { color: var(--or-clair); }
.bandeau-nuit .lien-suite a:hover { color: #fff6dc; }

/* Appel final */

.appel-final { padding-block: 1rem 4.4rem; }
.appel-final .cadre {
  padding: 3rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(255, 250, 238, 0.9), transparent 70%),
    var(--papier);
}
.appel-final h2 { margin: 0; font-family: var(--titre); font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.2; }
.appel-final p { margin: 0.9rem auto 1.7rem; max-width: 34rem; color: var(--encre-douce); font-size: 1.1rem; text-wrap: balance; }

/* Pied de page */

.pied {
  color: #d8c8aa;
  background: linear-gradient(180deg, var(--nuit-2), var(--nuit));
  border-top: 3px solid #8a6a34;
}
.pied-grille {
  display: grid;
  gap: 2rem;
  padding-block: 2.8rem 2rem;
}
@media (min-width: 800px) { .pied-grille { grid-template-columns: 1.5fr 1fr 1fr; } }
.pied .logo, .pied .logo:hover { color: var(--creme); }
.pied .logo-boucle { stroke: var(--or-clair); }
.pied p { margin: 0.8rem 0 0; max-width: 24rem; font-size: 0.98rem; }
.pied .pied-titre {
  margin: 0 0 0.8rem;
  color: var(--or-clair);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.pied ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.pied a { color: #ede0c4; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pied-bas {
  padding-block: 1.1rem 1.6rem;
  border-top: 1px solid rgba(217, 178, 107, 0.25);
  font-size: 0.88rem;
}

/* ---------- Popin d'invitation à créer un compte ---------- */

dialog.popin {
  position: fixed; /* .cadre le remettrait en relative, et la popin ne serait plus centrée */
  width: min(92vw, 27rem);
  padding: 0; /* le padding est sur le formulaire : un clic dans la marge du dialog fermerait la popin */
  color: var(--encre);
  text-align: center;
  overflow: auto;
}
dialog.popin[open] { animation: popin-entree 0.28s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes popin-entree {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
dialog.popin::backdrop {
  background: rgba(27, 20, 16, 0.6);
  backdrop-filter: blur(2px);
}
body:has(dialog.popin[open]) { overflow: hidden; }

.popin form { padding: 2.2rem 1.6rem 1.5rem; }
.popin-icone {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 0.9rem;
  border: 1.5px solid var(--sable);
  border-radius: 50%;
  background: linear-gradient(180deg, #faf2e0, #efe0c4);
  box-shadow: var(--ombre-legere);
  color: var(--bordeaux);
}
.popin-icone .icone { width: 1.7rem; height: 1.7rem; }
.popin-surtitre {
  margin: 0;
  color: var(--bordeaux);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.popin h2 {
  margin: 0.35rem 0 0;
  font-family: var(--titre);
  font-size: clamp(1.45rem, 4.5vw, 1.8rem);
  font-weight: 800;
  line-height: 1.2;
}
.popin-texte { margin: 0.9rem 0 1.4rem; color: var(--encre-douce); line-height: 1.55; }
.popin-actions { display: grid; justify-items: center; gap: 0.9rem; }
.popin-actions .bouton { width: 100%; }
.popin-actions [hidden] { display: none; } /* .bouton force display: inline-flex, qui l'emporterait sur [hidden] */
.popin-connexion { font-size: 0.98rem; }
.popin-plus-tard {
  padding: 0.4rem 0.9rem;
  border: 0;
  background: none;
  color: var(--encre-douce);
  font: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.popin-plus-tard:hover { color: var(--encre); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  dialog.popin[open] { animation: none; }
  .bouton, .bouton .icone, .faq summary::after { transition: none; }
  .bouton:hover { transform: none; }
}
