/* ═══════════════════════════════════════════════════════════════
   Concours photo — Château de Pont-Rémy
   Même identité que le site actuel (noir, or, Playfair Display +
   Open Sans), transposée en thème clair. Seul le hero et la
   visionneuse restent sombres : ce sont des écrans-photo, pas des
   pages de lecture, et le hero est une photo de nuit.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --fond:        #fbfaf7;
  --fond-alt:    #f3f2ee;
  --carte:       #ffffff;
  --or:          #ffc300;
  --or-texte:    #7a5f16;
  --or-doux:     rgba(255, 195, 0, .16);
  --encre:       #1c1a17;
  --texte:       #33302b;
  --texte-doux:  #6b6459;
  --ligne:       rgba(28, 26, 23, .14);
  --ligne-forte: rgba(28, 26, 23, .26);
  --rouge:       #c0392b;

  /* Réservés au hero et à la visionneuse, volontairement sombres. */
  --hero-fond-repli: #18151f;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Open Sans", Arial, Helvetica, sans-serif;

  --hero-img: url("hero-chateau-drone.jpg");

  --entete-h: 78px;
  --rythme: clamp(56px, 8vw, 120px);
}

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

/* L'attribut hidden doit l'emporter sur les display: grid/flex déclarés plus bas. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--entete-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--or-texte); text-decoration: none; }
a:hover { color: var(--encre); }

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

:focus-visible {
  outline: 2px solid var(--or-texte);
  outline-offset: 3px;
}

.saut-contenu {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--or); color: var(--encre);
  padding: 12px 20px; font-weight: 600;
}
.saut-contenu:focus { left: 12px; top: 12px; }

/* ── Structure ────────────────────────────────────────────────── */

.conteneur {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}
.conteneur--etroit { width: min(760px, calc(100% - 48px)); }

.section { padding-block: var(--rythme); }
/* Noms de classe hérités du thème sombre d'origine : .section--noir et
   .section--bleu ne sont plus que des marqueurs d'alternance clair/clair. */
.section--noir { background: var(--fond); }
.section--bleu {
  background: var(--fond-alt);
  border-block: 1px solid var(--ligne);
}

/* La galerie reste sombre par exception : les photos s'y détachent mieux,
   comme sur un mur d'exposition. Ces variables sont redéfinies localement
   sur #galerie, donc tout ce qu'il y a dedans (cartes, texte, or, lignes)
   suit automatiquement sans qu'aucune autre règle n'ait à être dupliquée. */
#galerie {
  --fond:        #131316;
  --fond-alt:    #18151f;
  --carte:       #1e1b28;
  --encre:       #ffffff;
  --texte:       #bcbcc6;
  --texte-doux:  #8e8e98;
  --or-texte:    var(--or);
  --ligne:       rgba(255, 255, 255, .13);
  --ligne-forte: rgba(255, 255, 255, .22);
}

/* ── Typographie de section ───────────────────────────────────── */

.surtitre {
  margin: 0 0 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--or-texte);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.titre2 {
  margin: 0 0 32px;
  text-align: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 50px);
  line-height: 1.15;
  color: var(--encre);
}
.titre2::after {
  content: "";
  display: block;
  width: 54px; height: 1px;
  margin: 24px auto 0;
  background: var(--or-texte);
}

.intro {
  max-width: 68ch;
  margin-inline: auto;
  font-size: 17px;
}
.intro p { margin: 0 0 18px; }
.intro p:last-child { margin-bottom: 0; }
.intro--centre { text-align: center; margin-bottom: 44px; }
.intro strong { color: var(--encre); font-weight: 600; }

.kicker {
  margin: 0 0 22px;
  font-size: clamp(11px, 2.4vw, 13px);
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--or);
}

/* ── Boutons ──────────────────────────────────────────────────── */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--encre);
  --btn-bd: var(--ligne-forte);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-2px); }

.btn--or {
  --btn-bg: var(--or);
  --btn-fg: var(--encre);
  --btn-bd: var(--or);
}
.btn--or:hover { --btn-bg: transparent; --btn-fg: var(--or-texte); }

.btn--fantome:hover {
  --btn-bd: var(--or-texte);
  --btn-fg: var(--or-texte);
}

/* Seul bouton fantôme du site à rester sur la photo sombre du hero :
   il a besoin de sa propre variante claire, à l'inverse de tous les
   autres qui reposent désormais sur un fond clair. */
.hero__actions .btn--fantome {
  --btn-fg: #ffffff;
  --btn-bd: rgba(255, 255, 255, .45);
}
.hero__actions .btn--fantome:hover {
  --btn-bd: var(--or);
  --btn-fg: var(--or);
}

.btn--large { width: 100%; padding-block: 19px; }

.btn__spinner { display: none; }
.btn.est-en-cours { pointer-events: none; opacity: .75; }
.btn.est-en-cours .btn__texte { opacity: .5; }
.btn.est-en-cours .btn__spinner {
  display: block;
  width: 15px; height: 15px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: tourne .7s linear infinite;
}
@keyframes tourne { to { transform: rotate(360deg); } }

/* ── En-tête ──────────────────────────────────────────────────── */
/* L'en-tête chevauche deux univers : la photo sombre du hero tout en
   haut, puis les sections claires du reste de la page. Ses couleurs
   de texte basculent via --entete-texte / --entete-texte-vif, mises
   à jour uniquement quand .est-collee s'active (au scroll). */

.entete {
  --entete-texte: rgba(255, 255, 255, .88);
  --entete-texte-vif: #ffffff;
  --entete-bordure: rgba(255, 255, 255, .4);
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--entete-h);
  background: transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.entete.est-collee {
  --entete-texte: var(--texte-doux);
  --entete-texte-vif: var(--encre);
  --entete-bordure: var(--ligne-forte);
  background: rgba(251, 250, 247, .92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--ligne);
}

.entete__inner {
  height: 100%;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.marque {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.2;
}
.marque__logo {
  height: 52px;
  width: auto;
  /* logo fourni en traits noirs sur fond transparent : inversé en blanc
     tant qu'on est sur la photo sombre du hero, remis en noir naturel
     une fois l'en-tête passée en fond clair (.est-collee). */
  filter: brightness(0) invert(1);
  opacity: .92;
  transition: opacity .25s, filter .25s;
}
.marque:hover .marque__logo { opacity: 1; }
.entete.est-collee .marque__logo { filter: none; }

.nav { display: flex; gap: clamp(18px, 2.4vw, 32px); }
.nav__lien {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--entete-texte);
  padding-block: 6px;
}
.nav__lien::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--or);
  transition: width .3s;
}
.nav__lien:hover, .nav__lien.est-actif { color: var(--entete-texte-vif); }
.nav__lien:hover::after, .nav__lien.est-actif::after { width: 100%; }

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--entete-bordure);
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--entete-texte-vif);
  margin: 3px auto;
  transition: transform .3s, opacity .3s, background .25s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────── */
/* Seule section volontairement sombre du site : c'est une photo de
   nuit, pas une page de lecture. Elle se fond en douceur dans le
   fond clair de la section suivante tout en bas. */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--entete-h) + 40px) 24px 100px;
  overflow: hidden;
}

.hero__fond {
  position: absolute; inset: 0;
  background: var(--hero-img) center 48% / cover no-repeat, var(--hero-fond-repli);
  transform: scale(1.06);
  animation: respire 26s ease-in-out infinite alternate;
}
@keyframes respire { to { transform: scale(1.14); } }

.hero__voile {
  position: absolute; inset: 0;
  /* Voile plus marqué que pour l'ancienne photo de nuit : celle-ci a de
     larges zones très claires (pierre, herbe au soleil) qui, sans ça,
     rendent le texte blanc illisible par endroits. */
  background: radial-gradient(ellipse at 50% 42%, rgba(0,0,0,.55) 0%, rgba(0,0,0,.78) 80%);
}

.hero__contenu {
  position: relative;
  width: 100%;
  max-width: 780px;
}

.hero__titre {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(50px, 12vw, 108px);
  line-height: 1.02;
  color: #ffffff;
  letter-spacing: -.005em;
}

.hero__filet { margin: 30px 0; }
.hero__filet span {
  display: block;
  width: 90px; height: 1px;
  margin-inline: auto;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
}

.hero__accroche {
  margin: 0 auto;
  max-width: 60ch;
  font-size: clamp(15px, 2.2vw, 18px);
  color: #e4e2dd;
}

.hero__actions {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.hero__fleche {
  position: absolute;
  bottom: 34px; left: 50%;
  translate: -50% 0;
  width: 26px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 14px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}
.hero__fleche span {
  width: 3px; height: 7px;
  border-radius: 2px;
  background: var(--or);
  animation: goutte 1.8s ease-in-out infinite;
}
@keyframes goutte {
  0%, 100% { opacity: 0; transform: translateY(0); }
  40%      { opacity: 1; transform: translateY(9px); }
  70%      { opacity: 0; transform: translateY(16px); }
}

.hero__sujet {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 3vw, 25px);
  color: var(--or);
  line-height: 1.4;
}

/* ── Prix ─────────────────────────────────────────────────────── */

.prix {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.prix__carte {
  padding: 30px 28px;
  background: var(--carte);
  border: 1px solid var(--ligne);
  border-top: 2px solid var(--or-texte);
}
.prix__categorie {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 21px;
  color: var(--encre);
}
.prix__lot { margin: 0; font-size: 15px; }

/* ── Formulaire ───────────────────────────────────────────────── */

.formulaire {
  background: var(--carte);
  border: 1px solid var(--ligne);
  padding: clamp(26px, 5vw, 46px);
}

.quota {
  margin: 0 0 20px;
  padding: 14px 20px;
  border: 1px solid var(--or-doux);
  border-left: 2px solid var(--or-texte);
  background: var(--carte);
  font-size: 14px;
  text-align: center;
}
.quota--epuise { color: var(--encre); }

.pot-de-miel {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.champ-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.champ { margin-bottom: 22px; }

.champ label,
.case > span {
  display: block;
  margin-bottom: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--texte);
}
.oblig { color: var(--or-texte); }
.facultatif {
  color: var(--texte-doux);
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: none;
  font-size: 11px;
}

.aide-champ {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--texte-doux);
}

.rappel-champ {
  margin: 10px 0 0;
  padding-left: 12px;
  border-left: 1px solid var(--or-texte);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--or-texte);
}

.champ input[type="text"],
.champ input[type="email"],
.champ input[type="tel"],
.champ input[type="number"] {
  width: 100%;
  padding: 14px 16px;
  background: var(--fond-alt);
  border: 1px solid var(--ligne);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  transition: border-color .25s, background .25s;
}
.champ input::placeholder { color: #a39c8d; }
.champ input:hover { border-color: var(--ligne-forte); }
.champ input:focus {
  outline: none;
  border-color: var(--or-texte);
  background: var(--carte);
}
.champ.est-invalide input { border-color: var(--rouge); }

.erreur {
  margin: 7px 0 0;
  min-height: 0;
  font-size: 13px;
  color: var(--rouge);
  display: none;
}
.erreur.est-visible { display: block; }

/* Zone de dépôt du fichier */
.depose {
  position: relative;
  border: 1px dashed var(--ligne-forte);
  background: var(--fond-alt);
  transition: border-color .25s, background .25s;
}
.depose:hover, .depose.est-survolee {
  border-color: var(--or-texte);
  background: var(--carte);
}
.depose input[type="file"] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}
.depose__vide {
  padding: 46px 24px;
  text-align: center;
  pointer-events: none;
}
.depose__icone {
  width: 34px; height: 34px;
  margin: 0 auto 14px;
  fill: none;
  stroke: var(--or-texte);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.depose__titre {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--encre);
}
.depose__aide { margin: 0; font-size: 13px; color: var(--texte-doux); line-height: 1.7; }

.depose__apercu { padding: 14px; }
.depose__apercu img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border: 1px solid var(--ligne);
}
.depose__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 2px 0;
  font-size: 12px;
  color: var(--texte-doux);
}
.depose__meta span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.depose__retirer {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  width: 100%;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--ligne);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
}
.depose__retirer:hover { border-color: var(--or-texte); color: var(--or-texte); }

/* Case à cocher */
.case {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 4px 0 6px;
  cursor: pointer;
}
.case input {
  appearance: none;
  flex: 0 0 auto;
  width: 19px; height: 19px;
  margin-top: 2px;
  border: 1px solid var(--ligne-forte);
  background: var(--fond-alt);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.case input:checked {
  background: var(--or);
  border-color: var(--or);
}
.case input:checked::after {
  content: "";
  display: block;
  width: 5px; height: 10px;
  margin: 1px auto 0;
  border: solid var(--encre);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.case > span {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.65;
  color: var(--texte);
}
.case.est-invalide input { border-color: var(--rouge); }

.formulaire .btn--large { margin-top: 26px; }

.mention-rgpd {
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 1.75;
  color: var(--texte-doux);
  text-align: center;
}
.mention-rgpd--aide {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ligne);
  color: var(--texte);
}

/* Écran de confirmation */
.succes {
  background: var(--carte);
  border: 1px solid var(--or-doux);
  padding: clamp(34px, 6vw, 60px);
  text-align: center;
}
.succes__sceau {
  width: 62px; height: 62px;
  margin: 0 auto 24px;
  border: 1px solid var(--or-texte);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.succes__sceau svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--or-texte);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.succes h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  color: var(--encre);
}
.succes p { margin: 0 auto; max-width: 46ch; }
.succes__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ── Galerie ──────────────────────────────────────────────────── */

.pastille-direct {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--or);
  box-shadow: 0 0 0 0 rgba(255, 195, 0, .55);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(255, 195, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 195, 0, 0); }
}

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

.photo {
  position: relative;
  background: var(--carte);
  border: 1px solid var(--ligne);
  cursor: zoom-in;
  overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.photo:hover { border-color: var(--or-texte); transform: translateY(-3px); }

.photo.est-nouvelle { animation: apparait .7s ease both; }
@keyframes apparait {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.photo__cadre {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--fond-alt);
}
.photo__cadre img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .4s;
  filter: saturate(.96);
}
.photo:hover .photo__cadre img { transform: scale(1.05); filter: saturate(1); }

.photo__pied {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--ligne);
}
.photo__titre {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--encre);
  line-height: 1.3;
}
.photo__auteur {
  margin: 0;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--or-texte);
}
.photo__date {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--texte-doux);
}

.badge-neuf {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 11px;
  background: var(--or);
  color: var(--encre);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.galerie-vide {
  text-align: center;
  padding: 70px 24px;
  border: 1px dashed var(--ligne);
}
.galerie-vide__titre {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--encre);
}
.galerie-vide p { margin: 0 auto 26px; max-width: 42ch; }
.galerie-vide .btn { margin-top: 4px; }

.galerie-note {
  margin: 44px auto 0;
  max-width: 66ch;
  padding-top: 26px;
  border-top: 1px solid var(--ligne);
  text-align: center;
  font-size: 14px;
  color: var(--texte-doux);
}

/* ── Règlement ────────────────────────────────────────────────── */

.accordeon { border-top: 1px solid var(--ligne); }
.regle { border-bottom: 1px solid var(--ligne); }
.regle summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: var(--serif);
  font-size: clamp(18px, 2.6vw, 21px);
  color: var(--encre);
  transition: color .25s;
}
.regle summary::-webkit-details-marker { display: none; }
.regle summary:hover { color: var(--or-texte); }
.regle summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 11px; height: 11px;
  border: solid var(--or-texte);
  border-width: 0 1px 1px 0;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s;
}
.regle[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.regle__num {
  display: inline-block;
  min-width: 62px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--or-texte);
  vertical-align: middle;
}
.regle__corps { padding: 0 0 24px; font-size: 15px; }
.regle__corps p { margin: 0 0 14px; }
.regle__corps p:last-child { margin-bottom: 0; }
.regle__corps ul { margin: 0 0 14px; padding-left: 20px; }
.regle__corps li { margin-bottom: 7px; }
.regle__corps li::marker { color: var(--or-texte); }
.regle__corps strong { color: var(--encre); font-weight: 600; }
.regle__corps em { color: var(--or-texte); font-style: italic; }

/* ── Pied de page ─────────────────────────────────────────────── */

.pied {
  background: var(--fond);
  border-top: 1px solid var(--ligne);
  padding-block: 56px;
  text-align: center;
}
.pied__marque {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--encre);
}
.pied__ligne { margin: 0 0 4px; font-size: 14px; color: var(--texte); }
.pied__mentions {
  margin: 22px 0 0;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

/* ── Visionneuse ──────────────────────────────────────────────── */
/* Reste volontairement sombre, quel que soit le thème de la page :
   un fond quasi noir fait ressortir les photos, c'est l'usage
   standard pour une visionneuse plein écran. */

.visionneuse {
  position: fixed; inset: 0;
  z-index: 120;
  background: rgba(6, 6, 10, .96);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 60px 24px;
  animation: fondu .3s ease;
}
@keyframes fondu { from { opacity: 0; } }

.visionneuse__figure {
  margin: 0;
  max-width: min(1100px, 100%);
  text-align: center;
}
.visionneuse__figure img {
  max-width: 100%;
  max-height: 74svh;
  margin-inline: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, .16);
}
.visionneuse__figure figcaption { padding-top: 20px; }
.visionneuse__titre {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  color: #ffffff;
}
.visionneuse__auteur {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--or);
}

.visionneuse__fermer,
.visionneuse__nav {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .22);
  color: #ffffff;
  cursor: pointer;
  transition: border-color .25s, color .25s;
  font-family: var(--sans);
  line-height: 1;
}
.visionneuse__fermer:hover,
.visionneuse__nav:hover { border-color: var(--or); color: var(--or); }

.visionneuse__fermer {
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  font-size: 26px;
}
.visionneuse__nav {
  top: 50%; translate: 0 -50%;
  width: 46px; height: 60px;
  font-size: 30px;
}
.visionneuse__nav--prec { left: 18px; }
.visionneuse__nav--suiv { right: 18px; }

/* ── Toast ────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  translate: -50% 0;
  z-index: 150;
  padding: 14px 26px;
  background: var(--or);
  color: var(--encre);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, translate .3s;
  max-width: calc(100% - 40px);
  text-align: center;
}
.toast.est-visible { opacity: 1; translate: -50% -6px; }

/* ── Adaptatif ────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .conteneur, .conteneur--etroit, .entete__inner { width: calc(100% - 36px); }

  .burger { display: grid; }

  /* Le panneau du menu mobile est toujours un volet clair, qu'il soit
     ouvert au-dessus du hero ou plus bas dans la page : ses liens
     restent donc sombres dans tous les cas, contrairement à l'en-tête
     fixe qui bascule selon le scroll. */
  .nav {
    position: fixed;
    inset: var(--entete-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(251, 250, 247, .98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ligne);
    padding: 8px 0 18px;
    transform: translateY(-130%);
    transition: transform .35s ease;
  }
  .nav.est-ouvert { transform: none; }
  .nav__lien,
  .entete.est-collee .nav__lien {
    color: var(--texte-doux);
    padding: 16px 24px;
    border-bottom: 1px solid var(--ligne);
  }
  .nav__lien:hover, .nav__lien.est-actif,
  .entete.est-collee .nav__lien:hover, .entete.est-collee .nav__lien.est-actif {
    color: var(--encre);
  }
  .nav__lien::after { display: none; }

  .champ-duo { grid-template-columns: 1fr; gap: 0; }

  /* 16 px minimum : en dessous, iOS zoome tout seul à la saisie */
  .champ input[type="text"],
  .champ input[type="email"],
  .champ input[type="tel"],
  .champ input[type="number"] { font-size: 16px; }

  .regle summary { padding-right: 34px; }
  .regle__num { display: block; margin-bottom: 4px; }

  .visionneuse__nav { width: 40px; height: 50px; font-size: 24px; }
  .visionneuse__nav--prec { left: 8px; }
  .visionneuse__nav--suiv { right: 8px; }
}

@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; }
  .galerie { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
}
