/* ==========================================================================
   ÉLISABETH MONNOT — FEUILLE DE STYLE
   Univers « champ de coquelicots » : rouge, orangé, jaune.
   ========================================================================== */

/* Le navigateur applique [hidden]{display:none} depuis sa feuille par défaut,
   qu'une simple règle de classe (.livre{display:flex}) suffit à écraser.
   On le réaffirme donc ici, sinon le filtrage des livres n'a aucun effet. */
[hidden] { display: none !important; }

/* --------------------------------------------------------------- 1. TOKENS */
:root {
  /* Couleurs */
  --rouge:        #D62839;
  --rouge-fonce:  #A01527;
  --rouge-clair:  #F0525F;
  --orange:       #EF6A24;
  --orange-clair: #F79020;
  --jaune:        #FFC233;
  --jaune-pale:   #FFE9AE;
  --vert:         #6A8C2E;
  --vert-fonce:   #4A6320;

  --creme:        #FFF9F0;
  --creme-2:      #FDEFDD;
  --encre:        #2B1D18;
  --encre-douce:  #6A554C;
  --blanc:        #FFFFFF;

  /* Dégradés */
  --aube: linear-gradient(160deg, #FFF3D2 0%, #FFD991 38%, #F9A03F 70%, #EF6A24 100%);
  --braise: linear-gradient(100deg, var(--rouge) 0%, var(--orange) 55%, var(--jaune) 100%);

  /* Typographie */
  --titre: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --texte: "Karla", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Mesures */
  --largeur: 1180px;
  --gouttiere: clamp(1.25rem, 4vw, 3rem);
  --rayon: 20px;
  --rayon-s: 12px;
  --ombre: 0 18px 40px -18px rgba(160, 21, 39, .28);
  --ombre-forte: 0 28px 60px -22px rgba(160, 21, 39, .40);
  --transition: 260ms cubic-bezier(.2, .7, .3, 1);
}

/* ----------------------------------------------------------- 2. RÉGLAGES */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--texte);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* height:auto est indispensable : sans lui, l'attribut height du HTML
   impose sa valeur en pixels et l'image se retrouve étirée. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rouge-fonce); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }

h1, h2, h3, h4 {
  font-family: var(--titre);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); }
p  { margin: 0 0 1.1em; max-width: 68ch; }

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

.saut-contenu {
  position: absolute; left: -9999px;
  background: var(--rouge); color: #fff;
  padding: .8rem 1.2rem; border-radius: 0 0 var(--rayon-s) 0; z-index: 999;
}
.saut-contenu:focus { left: 0; top: 0; }

/* ------------------------------------------------------------- 3. LAYOUT */
.enveloppe {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.section { padding-block: clamp(4rem, 8vw, 7.5rem); position: relative; }
.section--creme2 { background: var(--creme-2); }

.oeil {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--texte);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 1rem;
}
.oeil::before {
  content: ""; width: 30px; height: 3px; border-radius: 3px;
  background: var(--braise);
}

.chapeau {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
  color: var(--encre-douce);
  max-width: 60ch;
}
.chapeau p { font-size: inherit; color: inherit; margin-bottom: 1em; }
.chapeau p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- 4. BOUTONS */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--texte); font-weight: 700; font-size: 1rem;
  padding: .95rem 1.7rem;
  border: 2px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-3px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--plein {
  background: var(--rouge); color: #fff;
  box-shadow: 0 12px 26px -12px rgba(214, 40, 57, .8);
}
.btn--plein:hover { background: var(--rouge-fonce); color: #fff; box-shadow: var(--ombre-forte); }

.btn--soleil {
  background: var(--jaune); color: var(--encre);
  box-shadow: 0 12px 26px -12px rgba(239, 106, 36, .7);
}
.btn--soleil:hover { background: var(--orange-clair); color: var(--encre); }

.btn--ligne { background: transparent; color: var(--rouge-fonce); border-color: currentColor; }
.btn--ligne:hover { background: var(--rouge); color: #fff; border-color: var(--rouge); }

/* ------------------------------------------------------- 5. EN-TÊTE / MENU */
.entete {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 249, 240, .86);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid rgba(214, 40, 57, .12);
  transition: box-shadow var(--transition);
}
.entete.est-defile { box-shadow: 0 6px 24px -14px rgba(43, 29, 24, .45); }

.entete__interieur {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 76px;
}

.logo {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--encre);
}
.logo svg { width: 34px; height: 34px; flex: none; }
.logo__texte { display: flex; flex-direction: column; line-height: 1.05; }
.logo__nom {
  font-family: var(--titre); font-weight: 600;
  font-size: 1.22rem; letter-spacing: -.01em;
}
.logo__sous {
  font-size: .66rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--rouge);
}

.nav { display: flex; align-items: center; gap: .3rem; }
/* Le :not(.btn) est indispensable : sans lui, « .nav a » l'emporte en
   spécificité sur « .btn--plein » et repeint le texte du bouton en noir. */
.nav a:not(.btn) {
  position: relative;
  font-weight: 600; font-size: .95rem;
  color: var(--encre); text-decoration: none;
  padding: .55rem .85rem; border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem;
  height: 2px; border-radius: 2px; background: var(--braise);
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.nav a:not(.btn):hover { color: var(--rouge-fonce); }
.nav a:not(.btn):hover::after,
.nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { margin-left: .6rem; padding: .7rem 1.3rem; font-size: .92rem; }

.burger {
  display: none;
  width: 46px; height: 46px; padding: 0;
  border: 2px solid rgba(214, 40, 57, .3); border-radius: 14px;
  background: var(--blanc); cursor: pointer;
}
.burger span {
  display: block; width: 20px; height: 2px; margin: 4px auto;
  background: var(--rouge); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--creme); padding: 1rem var(--gouttiere) 1.6rem;
    border-bottom: 1px solid rgba(214, 40, 57, .15);
    box-shadow: 0 20px 40px -24px rgba(43, 29, 24, .5);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height var(--transition), visibility var(--transition);
  }
  .nav.est-ouvert { max-height: 70vh; overflow-y: auto; visibility: visible; }
  .nav a:not(.btn) { padding: .85rem .4rem; font-size: 1.05rem; }
  .nav a:not(.btn)::after { left: .4rem; right: auto; width: 26px; transform: scaleX(1); opacity: 0; }
  .nav a:not(.btn)[aria-current="page"]::after { opacity: 1; }
  .nav .btn { margin: .6rem 0 0; justify-content: center; }
}

/* ---------------------------------------------------------------- 6. HERO */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__champ {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
}
.hero__champ svg { width: 100%; height: 100%; display: block; }

/* Variante photo : le champ dessiné est remplacé par une photographie.
   La photo se déclare directement dans index.html, sur la div .hero__champ :
     style="background-image:url('assets/img/coquelicots/NOM.webp')"
   (un chemin écrit ici serait résolu depuis /assets/css/ et non depuis la page).
   Le voile crème garantit la lisibilité du titre quelle que soit l'image. */
.hero--photo .hero__champ {
  background-size: cover;
  background-position: center 62%;
  background-repeat: no-repeat;
}
.hero--photo .hero__champ svg { display: none; }
.hero--photo .hero__champ::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(98deg,
      rgba(255, 249, 240, .96) 0%,
      rgba(255, 249, 240, .90) 26%,
      rgba(255, 249, 240, .52) 48%,
      rgba(255, 249, 240, .08) 70%,
      rgba(255, 249, 240, 0) 84%),
    linear-gradient(0deg, rgba(255, 249, 240, .55) 0%, rgba(255, 249, 240, 0) 26%);
}
@media (max-width: 820px) {
  .hero--photo .hero__champ::after {
    background:
      linear-gradient(178deg,
        rgba(255, 249, 240, .95) 0%,
        rgba(255, 249, 240, .88) 34%,
        rgba(255, 249, 240, .55) 56%,
        rgba(255, 249, 240, .10) 76%,
        rgba(255, 249, 240, 0) 90%),
      linear-gradient(0deg, rgba(255, 249, 240, .6) 0%, rgba(255, 249, 240, 0) 22%);
  }
}
.hero--photo .hero__sur { background: rgba(255, 249, 240, .9); }

.hero__interieur {
  display: grid; align-content: center;
  min-height: clamp(560px, 82vh, 820px);
  padding-block: clamp(4rem, 9vw, 7rem);
}
.hero__bloc { max-width: 46rem; }

.hero__sur {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--rouge-fonce);
  background: rgba(255, 249, 240, .78);
  padding: .5rem 1.1rem; border-radius: 999px;
  margin-bottom: 1.4rem;
  backdrop-filter: blur(4px);
}
.hero h1 { margin-bottom: .35em; color: var(--encre); }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 62%, rgba(255, 194, 51, .75) 62%);
}
.hero__accroche {
  font-family: var(--titre);
  font-size: clamp(1.2rem, 1.05rem + .8vw, 1.8rem);
  font-weight: 400; font-style: italic;
  color: var(--rouge-fonce);
  max-width: 34ch; margin-bottom: 2.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero__vague { display: block; width: 100%; height: auto; margin-top: -1px; }

/* --------------------------------------------------------------- 7. POÈME */
.poeme {
  position: relative;
  background: var(--braise);
  color: #fff;
  overflow: hidden;
}
.poeme::before,
.poeme::after {
  content: ""; position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.28), transparent 68%);
  pointer-events: none;
}
.poeme::before { width: 420px; height: 420px; top: -160px; right: -120px; }
.poeme::after  { width: 320px; height: 320px; bottom: -150px; left: -100px; }

.poeme .oeil { color: #fff; margin-bottom: 1.4rem; }
.poeme .oeil::before { background: rgba(255,255,255,.75); }

.poeme__carte {
  position: relative;
  background: rgba(255, 249, 240, .96);
  color: var(--encre);
  border-radius: var(--rayon);
  padding: clamp(2rem, 5vw, 3.6rem);
  box-shadow: var(--ombre-forte);
  max-width: 720px;
}
.poeme__carte::before {
  content: "“";
  position: absolute; top: -.15em; left: .5rem;
  font-family: var(--titre); font-size: 8rem; line-height: 1;
  color: rgba(214, 40, 57, .16);
  pointer-events: none;
}
/* Titre du poème : c'est le <h2> de la section, mais dimensionné pour la carte. */
.poeme__titre {
  color: var(--rouge-fonce);
  font-size: clamp(1.7rem, 1.35rem + 1.5vw, 2.5rem);
  margin-bottom: .18em;
}
.poeme__recueil {
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--encre-douce); margin-bottom: 1.8rem;
}
.poeme__vers {
  font-family: var(--titre);
  font-size: clamp(1.05rem, 1rem + .35vw, 1.28rem);
  line-height: 1.85;
  margin: 0;
}
.poeme__vers .strophe { display: block; height: .9em; }
.poeme__signature {
  margin: 1.8rem 0 0;
  font-style: italic; color: var(--encre-douce); font-size: .95rem;
}

/* ------------------------------------------------------------ 8. PORTRAIT */
.portrait { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) { .portrait { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }

.portrait__media { position: relative; }
.portrait__cadre {
  aspect-ratio: 4 / 5;
  border-radius: 200px 200px 24px 24px;
  overflow: hidden;
  background: var(--aube);
  box-shadow: var(--ombre-forte);
  display: grid; place-items: center;
  color: rgba(43, 29, 24, .45); text-align: center;
  font-size: .9rem; padding: 2rem;
}
/* La marge intérieure ne sert qu'au texte d'attente : dès qu'une photo est
   présente, on l'annule pour que l'image remplisse toute l'arche. */
.portrait__cadre:has(img) { padding: 0; }
.portrait__cadre img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait__pastille {
  position: absolute; right: -14px; bottom: 22px;
  background: var(--blanc); border-radius: var(--rayon-s);
  padding: .9rem 1.2rem; box-shadow: var(--ombre);
  font-family: var(--titre); line-height: 1.15;
}
.portrait__pastille strong { display: block; font-size: 1.9rem; color: var(--rouge); }
.portrait__pastille span { font-family: var(--texte); font-size: .78rem; color: var(--encre-douce); }

/* ------------------------------------------------------------ 9. LIVRES */
.filtres { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.filtres-compte {
  font-size: .88rem; font-weight: 700; letter-spacing: .06em;
  color: var(--encre-douce); margin: 0 0 2.4rem;
}
.filtre {
  font-family: var(--texte); font-weight: 700; font-size: .9rem;
  padding: .6rem 1.15rem; border-radius: 999px; cursor: pointer;
  border: 2px solid rgba(214, 40, 57, .28);
  background: transparent; color: var(--rouge-fonce);
  transition: all var(--transition);
}
.filtre:hover { border-color: var(--rouge); background: rgba(214, 40, 57, .07); }
.filtre[aria-pressed="true"] { background: var(--rouge); border-color: var(--rouge); color: #fff; }

.grille-livres {
  display: grid; gap: clamp(1.4rem, 3vw, 2.2rem);
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  list-style: none; margin: 0; padding: 0;
}

.livre {
  display: flex; flex-direction: column;
  background: var(--blanc);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: 0 10px 30px -20px rgba(43, 29, 24, .5);
  transition: transform var(--transition), box-shadow var(--transition);
}
.livre:hover { transform: translateY(-6px); box-shadow: var(--ombre-forte); }

.livre__couv {
  position: relative;
  aspect-ratio: 4 / 3;   /* format des photos de couvertures fournies */
  background: var(--creme-2);
  display: grid; place-items: center;
  overflow: hidden;
}
.livre__couv img { width: 100%; height: 100%; object-fit: cover; }
.livre__attente {
  display: grid; place-items: center; gap: .4rem;
  width: 100%; height: 100%; padding: 1.4rem;
  text-align: center;
  background: var(--aube);
}
.livre__attente svg { width: 58px; height: 58px; opacity: .55; }
.livre__attente small {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(43, 29, 24, .5);
}
.livre__etiquette {
  position: absolute; top: .8rem; left: .8rem;
  font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255, 249, 240, .94); color: var(--rouge-fonce);
  padding: .35rem .7rem; border-radius: 999px;
}
.livre__corps { padding: 1.3rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.livre__titre { font-size: 1.15rem; margin-bottom: .5rem; }
.livre__resume { font-size: .92rem; color: var(--encre-douce); margin-bottom: 1.1rem; }
.livre__pied {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: .9rem;
  border-top: 1px solid rgba(43, 29, 24, .1);
}
.livre__prix { font-family: var(--titre); font-size: 1.25rem; color: var(--rouge); }
.livre__lien {
  font-size: .86rem; font-weight: 700; text-decoration: none;
  color: var(--rouge-fonce); border-bottom: 2px solid rgba(214, 40, 57, .3);
}
.livre__lien:hover { border-color: var(--rouge); }
.livre__lien svg { width: .78em; height: .78em; margin-left: .3em; vertical-align: -.02em; }

/* Aperçu de l'accueil : un livre par univers, cartes resserrées. */
/* 150px : cinq colonnes en grand écran, deux sur téléphone. */
.grille-livres--apercu { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.livre--apercu { position: relative; }
.livre--apercu .livre__corps { padding: 1rem 1.05rem 1.25rem; }
.livre--apercu .livre__titre { font-size: 1.02rem; line-height: 1.25; margin-bottom: 0; }
.livre--apercu .livre__titre a { color: inherit; text-decoration: none; }
.livre--apercu .livre__titre a::after { content: ""; position: absolute; inset: 0; }
.livre--apercu:hover .livre__titre a { color: var(--rouge-fonce); }
.livre--apercu .livre__etiquette { font-size: .6rem; padding: .3rem .55rem; }

/* Encart de renvoi vers un site partenaire */
.encart {
  display: grid; gap: 1.3rem; align-items: center;
  background: var(--blanc);
  border: 1px solid rgba(214, 40, 57, .16);
  border-left: 6px solid var(--rouge);
  border-radius: var(--rayon);
  padding: clamp(1.4rem, 3.5vw, 2.3rem);
  box-shadow: 0 14px 36px -28px rgba(43, 29, 24, .6);
}
@media (min-width: 820px) { .encart { grid-template-columns: 1fr auto; gap: 2.4rem; } }
.encart h3 { margin-bottom: .35em; }
.encart p { margin-bottom: 0; color: var(--encre-douce); font-size: .96rem; }
.encart .btn { white-space: nowrap; }

/* ------------------------------------------------------------- 10. ATELIER */
.atelier { background: var(--creme-2); }

/* ---- Carrousel de l'atelier --------------------------------------------- */
/* Trois créations de front en grand écran, une seule sur téléphone. Le
   défilement est natif : scroll-snap gère l'accroche, le doigt et le clavier. */
.carrousel { position: relative; }
.grille-atelier {
  display: grid; gap: clamp(1rem, 2.2vw, 1.6rem);
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * clamp(1rem, 2.2vw, 1.6rem)) / 3);
  list-style: none; margin: 0; padding: 4px 4px 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.grille-atelier::-webkit-scrollbar { display: none; }
.grille-atelier > .maille { scroll-snap-align: start; }
@media (max-width: 980px) {
  .grille-atelier { grid-auto-columns: calc((100% - clamp(1rem, 2.2vw, 1.6rem)) / 2); }
}
@media (max-width: 620px) {
  .grille-atelier { grid-auto-columns: 100%; }
}

.carrousel__barre {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 1.2rem;
}
.carrousel__compte {
  margin: 0; font-size: .88rem; font-weight: 700; letter-spacing: .06em;
  color: var(--encre-douce);
}
.carrousel__cmd { display: flex; gap: .5rem; }
.carrousel__cmd button {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid rgba(214, 40, 57, .3);
  background: var(--blanc); color: var(--rouge-fonce);
  cursor: pointer; display: grid; place-items: center;
  transition: all var(--transition);
}
.carrousel__cmd button svg { width: 20px; height: 20px; }
.carrousel__cmd button:hover:not(:disabled) {
  background: var(--rouge); border-color: var(--rouge); color: #fff;
}
.carrousel__cmd button:disabled { opacity: .35; cursor: default; }
.maille {
  position: relative;
  background: var(--blanc);
  border-radius: var(--rayon-s);
  padding: .7rem .7rem 1.1rem;
  box-shadow: 0 12px 30px -22px rgba(43, 29, 24, .6);
  transition: transform var(--transition), box-shadow var(--transition);
}
/* Les cartes ne sont plus inclinées dans le carrousel : couplée au défilement
   horizontal, la rotation donnait une impression de bancal. */
.grille-atelier > .maille { transform: none; }
.maille:hover { transform: rotate(0) translateY(-5px); box-shadow: var(--ombre-forte); }
.maille button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--rayon-s); overflow: hidden;
}
.maille img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: var(--rayon-s); }
.maille__legende { padding: .9rem .5rem 0; }
.maille__titre { font-family: var(--titre); font-size: 1.05rem; font-weight: 600; }
.maille__texte { font-size: .86rem; color: var(--encre-douce); }

.attente-galerie {
  border: 2px dashed rgba(214, 40, 57, .35);
  border-radius: var(--rayon);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center; background: rgba(255, 249, 240, .7);
}
.attente-galerie p { margin-inline: auto; }

/* Lightbox */
.visionneuse {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: rgba(43, 29, 24, .92);
  padding: var(--gouttiere);
  border: 0;
}
.visionneuse:not([open]) { display: none; }
.visionneuse::backdrop { background: rgba(43, 29, 24, .92); }
.visionneuse img { max-width: 92vw; max-height: 80vh; border-radius: var(--rayon-s); object-fit: contain; }
.visionneuse figcaption { color: #FFE9AE; text-align: center; margin-top: 1rem; font-size: .95rem; }
.visionneuse__fermer {
  position: absolute; top: 1rem; right: 1rem;
  width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--rouge); color: #fff;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}

/* ----------------------------------------------------------- 11. ACTUALITÉS */
.actus { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.actu {
  background: var(--blanc); border-radius: var(--rayon);
  padding: 1.6rem; box-shadow: 0 10px 30px -22px rgba(43, 29, 24, .5);
  border-left: 5px solid var(--orange);
}
.actu__date { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rouge); }
.actu__lieu { font-family: var(--titre); font-size: 1.15rem; margin: .3rem 0 .5rem; }
.actu__texte { font-size: .92rem; color: var(--encre-douce); margin: 0; }

/* Cartes réseaux sociaux : une couleur de liseré par réseau. */
.actu__marque {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teinte-texte, var(--rouge-fonce)); margin: 0;
}
/* L'icône reprend la teinte sombre du libellé : en jaune vif sur blanc,
   elle devenait quasiment invisible. Le liseré, lui, reste en couleur franche. */
.actu__marque svg { width: 20px; height: 20px; flex: none; fill: var(--teinte-texte); }
/* --teinte : le liseré et l'icône, en couleur franche.
   --teinte-texte : la même famille, assombrie pour rester lisible sur blanc. */
.actu--facebook  { --teinte: var(--rouge);  --teinte-texte: #A01527; }
.actu--instagram { --teinte: var(--orange); --teinte-texte: #A8410B; }
.actu--youtube   { --teinte: var(--jaune);  --teinte-texte: #8A6100; }
.actu--facebook, .actu--instagram, .actu--youtube { border-left-color: var(--teinte); }
.actus .actu__lieu a {
  color: var(--encre); text-decoration: none;
  display: inline-flex; align-items: baseline; gap: .1rem;
}
.actus .actu__lieu a::after { content: ""; position: absolute; inset: 0; }
.actus .actu { position: relative; transition: transform var(--transition), box-shadow var(--transition); }
.actus .actu:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.actus .actu:hover .actu__lieu a { color: var(--teinte-texte); }
.actus .actu__lieu svg { width: .72em; height: .72em; margin-left: .25em; }

.reseaux { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.reseau {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  color: var(--encre); background: var(--blanc);
  padding: .8rem 1.3rem; border-radius: 999px;
  box-shadow: 0 8px 22px -16px rgba(43, 29, 24, .6);
  transition: transform var(--transition), color var(--transition);
}
.reseau:hover { transform: translateY(-3px); color: var(--rouge-fonce); }
.reseau svg { width: 20px; height: 20px; fill: currentColor; }

/* -------------------------------------------------------------- 12. CONTACT */
.contact { background: var(--encre); color: var(--creme); }

/* Variante photo : le coucher de soleil passe derrière le formulaire.
   Le voile chaud n'est pas décoratif — c'est lui qui garantit le contraste
   du texte clair par-dessus une image qui varie d'un bout à l'autre. */
.contact--photo {
  position: relative; isolation: isolate;
  background-image: var(--voile-contact),
                    url("../img/coquelicots/coucher-soleil.webp");
  background-size: cover, cover;
  background-position: center, center 58%;
  background-repeat: no-repeat, no-repeat;
}
/* Opaque à gauche, où le texte se pose ; plus clair à droite, où le
   carte de contact apporte son propre fond et laisse voir la photo. */
:root { --voile-contact: linear-gradient(105deg, rgba(46, 16, 10, .89) 0%, rgba(50, 18, 11, .77) 38%, rgba(60, 23, 12, .54) 66%, rgba(72, 29, 13, .31) 100%); }
/* Le voile étant volontairement léger de ce côté, la carte garde un fond
   propre : mesuré à 10:1 pour le texte, la photo reste visible autour. */
.contact--photo .carte-contact { background: rgba(28, 12, 8, .46); backdrop-filter: blur(3px); }
.contact--photo .carte-contact__note { color: rgba(255, 249, 240, .72); }
.contact h2 { color: var(--creme); }
.contact .oeil { color: var(--jaune); }
.contact .oeil::before { background: var(--jaune); }
.contact__grille { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 880px) { .contact__grille { grid-template-columns: 1fr 1.1fr; } }

.coord { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.coord li { display: flex; gap: .9rem; align-items: flex-start; }
.coord svg { width: 22px; height: 22px; flex: none; margin-top: .25rem; fill: var(--jaune); }
.coord a { color: var(--creme); text-decoration: none; border-bottom: 1px solid rgba(255, 233, 174, .5); }
.coord a:hover { color: var(--jaune); }
.coord span { color: rgba(255, 249, 240, .8); }

/* La carte de contact remplace le panneau du formulaire, retiré faute de
   pouvoir garantir l'acheminement des messages depuis l'hébergement. Elle
   occupe la même place dans la grille : sans elle, la colonne de droite
   serait vide et la photo déséquilibrée. */
.carte-contact {
  border-radius: var(--rayon);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  align-self: start;
}
.carte-contact .coord { margin-top: 0; }
.carte-contact__action { display: flex; justify-content: center; margin-top: 1.9rem; }
.carte-contact__note { font-size: .82rem; color: rgba(255, 249, 240, .6); margin: 1rem 0 0; }

/* ---------------------------------------------------------------- 13. PIED */
/* Terre cuite plutôt que presque-noir : le pied garde son rôle de socle sans
   la sévérité du sombre. Trois autres pistes sont prêtes plus bas — il suffit
   d'ajouter la classe correspondante sur <footer class="pied"> des 4 pages. */
.pied { background: #7E2A1B; color: rgba(255, 249, 240, .78); padding-block: 3rem 2rem; font-size: .9rem; }
.pied__haut { display: grid; gap: 2rem; margin-bottom: 2.4rem; }
@media (min-width: 760px) { .pied__haut { grid-template-columns: 1.4fr 1fr 1fr; } }
.pied h3 { color: var(--creme); font-size: 1rem; font-family: var(--texte); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.pied a { color: rgba(255, 249, 240, .8); text-decoration: none; }
.pied a:hover { color: var(--jaune); }
.pied__bas { border-top: 1px solid rgba(255, 249, 240, .14); padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.pied__bas p { margin: 0; }

/* ---- Autres pistes de pied de page -------------------------------------- */
.pied--sombre { background: #1F140F; }   /* la version d'origine */
.pied--rouge  { background: #8E1A26; }
.pied--clair {
  background: var(--creme-2);
  color: var(--encre-douce);
  border-top: 4px solid transparent;
  border-image: var(--braise) 1;
}
.pied--clair h3 { color: var(--encre); }
.pied--clair a { color: var(--rouge-fonce); }
.pied--clair a:hover { color: var(--orange); }
.pied--clair .pied__bas { border-top-color: rgba(43, 29, 24, .15); }

/* ------------------------------------------------------- 14. APPARITIONS */
.apparait { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.apparait.est-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .apparait { opacity: 1; transform: none; transition: none; }
  .btn:hover, .livre:hover, .maille:hover, .reseau:hover { transform: none; }
}

/* --------------------------------------------------------- 15. PAGE INTERNE */
.entete-page {
  position: relative; overflow: hidden;
  background: var(--aube);
  padding-block: clamp(3rem, 7vw, 5rem) clamp(11rem, 16vw, 14rem);
}
/* Variante photo pour la page Livres : la prairie de pissenlits remplace la
   bande dessinée. Le voile crème garde le titre lisible en encre foncée ;
   l'image est utilisée en miroir pour que les livres tombent à droite. */
.entete-page--photo {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(3.5rem, 8vw, 6rem);
  background-image: var(--voile-page), url("../img/coquelicots/pissenlit-lecture.webp");
  background-size: cover, cover;
  background-position: center, center 62%;
  background-repeat: no-repeat, no-repeat;
}
:root { --voile-page: linear-gradient(100deg, rgba(255,249,240,.95) 0%, rgba(255,249,240,.88) 30%, rgba(255,249,240,.55) 54%, rgba(255,246,232,.18) 76%, rgba(255,244,226,.06) 100%); }
@media (max-width: 820px) {
  :root { --voile-page: linear-gradient(176deg, rgba(255,249,240,.95) 0%, rgba(255,249,240,.88) 38%, rgba(255,249,240,.5) 62%, rgba(255,246,232,.16) 88%); }
}

/* Variante sans bande de coquelicots : on récupère l'espace réservé au champ. */
.entete-page--nu { padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); }
.entete-page__champ { position: absolute; inset: auto 0 0 0; z-index: 0; }
.entete-page__champ svg { height: clamp(170px, 20vw, 215px) !important; }
.entete-page .chapeau { color: var(--encre); }
.entete-page .enveloppe { position: relative; z-index: 1; }
.entete-page h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 4rem); margin-bottom: .3em; }
.fil { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rouge-fonce); margin-bottom: 1.2rem; }

/* En-tête de la page Atelier : pas de bandeau dessiné, mais la photo des
   coquelicots au crochet — le trait d'union entre les deux univers. */
.entete-page--atelier {
  --bas-atelier: clamp(2.5rem, 6vw, 4.5rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--bas-atelier);
  overflow: hidden;
}
.entete-atelier { display: grid; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: end; }
@media (min-width: 880px) {
  .entete-atelier { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}
/* Les tiges viennent affleurer le bas de la section : la marge négative annule
   le rembourrage bas, et le contenu de l'image touche déjà son propre bord. */
.entete-atelier__photo {
  margin: 0 0 calc(-1 * var(--bas-atelier));
  align-self: end;
}
/* Photo détourée : pas de cadre, juste une ombre qui suit le contour. */
.entete-atelier__photo img {
  width: 100%; max-width: 520px;
  margin-inline: auto;
  filter: drop-shadow(0 14px 20px rgba(140, 40, 20, .22));
}
.entete-page--atelier .chapeau { color: var(--encre); }
.fil a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
