:root{
  /* Fonds */
  --cream:#FFFBFC;
  --cream-2:#ffe3eb;
  --surface:#FFFFFF;
  --surface-2:#fff5f8;

  /* Palette Arvis Éditions */
  --wine:#550d25;
  --rose-pale:#ffe3eb;
  --rose-light:#ffbdd1;
  --rose:#e26d8f;
  --rose-deep:#b5355c;
  --sage-pale:#c4d4cb;
  --sage:#809d75;
  --gold:#b8935a;
  --olive:#304119;

  /* Accent précommande : volontairement distinct du rose du bouton
     "Ajouter au panier" (--rose-deep), mais dans la même famille chromatique
     que le reste du site — un rose-magenta vif plutôt qu'une couleur hors
     palette. */
  --precommande:#e0218a;

  /* Texte */
  --ink:#550d25;
  --ink-soft:#8a4a5c;

  /* Compat (anciens noms encore référencés ailleurs dans ce fichier) */
  --blush:var(--rose-pale);
  --blush-deep:var(--rose-light);
  --lavender:var(--sage-pale);
  --lavender-deep:var(--sage);
  --brass:var(--rose-deep);
  --brass-soft:var(--rose);
  --berry:var(--rose-deep);
  --berry-deep:var(--wine);
  --oxblood:var(--rose-deep);
  --plum:var(--sage);
  --deepteal:var(--olive);
  --parchment:var(--ink);
  --parchment-muted:var(--ink-soft);
  --hairline: rgba(85,13,37,0.14);
  --shadow: 0 30px 60px -20px rgba(85,13,37,0.25);
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0; background:var(--cream); color:var(--ink);
  font-family:'Inter',sans-serif; -webkit-font-smoothing:antialiased; overflow-x:hidden;
  display:flex; flex-direction:column; min-height:100vh;
}
body > main{flex:1 0 auto;}
body > footer{flex:0 0 auto;}
::selection{background:var(--blush-deep); color:var(--ink);}
a{color:inherit;}
h1,h2,h3{font-family:'Lora',serif; margin:0; font-weight:700;}
.eyebrow{
  font-family:'Inter',sans-serif; text-transform:uppercase; letter-spacing:0.22em;
  font-size:0.72rem; color:var(--brass-soft); font-weight:600;
  display:flex; align-items:center; gap:8px; width:100%; position:relative; padding-top:12px;
}
.eyebrow-icon{width:14px; height:14px; flex-shrink:0;}
.eyebrow::before{content:''; position:absolute; top:0; left:0; right:0; height:1px; background:currentColor; opacity:0.35;}
.hero .eyebrow::before{content:none;}
.excerpt{font-family:'Lora', serif; font-style:italic;}
.wrap{width:100%; max-width:1180px; margin:0 auto; padding:0 32px;}
img{max-width:100%; display:block;}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline:2px solid var(--brass-soft); outline-offset:3px;
}
/* La croix de fermeture des fenêtres modales : pas de contour de focus
   (voir plus haut), mais un léger fond discret à la place, pour rester
   repérable au clavier sans "encadrer" visuellement le bouton — y
   compris quand elle reçoit le focus par script (ouverture d'un livre
   depuis un lien externe, ex. fiche autrice/auteur). */
#modal-close:focus-visible{
  outline:none; background:rgba(226,109,143,0.16); border-radius:50%;
}

/* NAV */
#site-header{position:fixed; top:0; left:0; right:0; z-index:100; transition:background .4s ease, padding .4s ease, border-color .4s ease, box-shadow .4s ease; border-bottom:1px solid transparent;}
#site-header.scrolled{background:rgba(251,245,240,0.88); backdrop-filter:blur(10px); border-color:var(--hairline); box-shadow:0 8px 30px -18px rgba(60,42,59,0.25);}
/* Sur toutes les pages sauf l'accueil, il n'y a pas de héros derrière le
   header : il doit donc rester opaque en permanence, dès le chargement,
   plutôt que de dépendre du défilement (ce qui le laissait transparent au
   tout début de chaque page, ou en cas de retour en haut). */
body:not(.home) header{background:rgba(251,245,240,0.88); backdrop-filter:blur(10px); border-color:var(--hairline); box-shadow:0 8px 30px -18px rgba(60,42,59,0.25);}
.header-logo-row{display:flex; justify-content:center; align-items:center; padding-top:18px; padding-bottom:10px;}
.nav-inner{display:flex; align-items:center; justify-content:space-between; padding-top:10px; padding-bottom:16px; border-top:1px solid var(--hairline);}
.brand{display:flex; align-items:center; text-decoration:none;}
.brand img{width:348.25px; height:auto; display:block;}
#site-header nav ul{list-style:none; display:flex; gap:26px; margin:0; padding:0;}
/* Menu sur PC : tous les liens sont centrés verticalement sur la même ligne,
   et construits de la même façon (case flex), pour que « Événements » et
   « Boutique » ne soient ni plus bas ni plus haut que les autres. */
@media (min-width:951px){
  #site-header nav > ul{align-items:center;}
  #site-header nav > ul > li:not(.nav-account-mobile):not(.nav-social-mobile){display:flex; align-items:center;}
}
#site-header nav > ul > li > a{text-decoration:none; font-size:0.85rem; letter-spacing:0.03em; color:var(--ink-soft); position:relative; padding-bottom:4px; transition:color .25s ease;}
#site-header nav > ul > li > a::after{content:''; position:absolute; left:0; bottom:0; height:1px; width:0; background:var(--berry); transition:width .3s ease;}
#site-header nav > ul > li > a.nav-shop-badge{
  background:var(--wine); color:#fff; padding:7px 18px; border-radius:20px; font-weight:600;
  letter-spacing:0.02em; transition:background .25s ease, transform .25s ease;
}
#site-header nav > ul > li > a.nav-shop-badge::after{display:none;}
.goodies-boutique-group{position:relative; display:flex; align-items:center;}
.goodies-hint{
  position:absolute; top:100%; left:50%; transform:translateX(-50%); margin-top:4px;
  display:flex; flex-direction:row; align-items:center; gap:3px;
  font-size:0.7rem; color:var(--berry); font-weight:700; white-space:nowrap; line-height:1.2;
}

/* Lien "Événements" du menu : "En cours" affiché en dessous, et la police
   du lien qui change légèrement de couleur — même esprit que le liseré
   animé de la carte événement (voir plus bas), en plus discret. */
.nav-event-live > a{
  position:relative;
  animation:noctambuleEventTextPulse 2.4s ease-in-out infinite;
}
@keyframes noctambuleEventTextPulse{
  0%, 100%{ color:var(--ink); }
  50%{ color:var(--precommande); }
}
.nav-event-live-label{
  display:flex; flex-direction:row; align-items:center; gap:3px;
  position:absolute; top:100%; left:50%; transform:translateX(-50%); margin-top:4px;
  font-size:0.7rem; color:var(--precommande); font-weight:700; white-space:nowrap; line-height:1.2;
}
.nav-event-arrow{color:var(--precommande); line-height:1;}
.nav-event-arrow::before{content:'↑';}
.goodies-arrow{color:var(--berry); line-height:1;}
.goodies-arrow::before{content:'↑';}
.nav-cta{border:1px solid var(--berry); color:var(--berry-deep); padding:8px 14px; border-radius:2px; font-size:0.8rem; text-decoration:none; letter-spacing:0.03em; transition:background .25s ease, color .25s ease;}
.site-cart-link{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  color:var(--ink); text-decoration:none; padding:6px; transition:color .2s ease;
}
.site-search-link{
  display:inline-flex; align-items:center; justify-content:center;
  color:var(--ink); text-decoration:none; padding:6px; transition:color .2s ease;
}
.site-account-link-mobile{
  display:none; align-items:center; justify-content:center;
  color:var(--ink); text-decoration:none; padding:6px; transition:color .2s ease;
}
.site-account-link{
  display:flex; align-items:center; justify-content:center; width:44px; height:44px;
  border-radius:12px; border:1.5px solid var(--wine); color:var(--wine);
  text-decoration:none; overflow:hidden;
  transition:color .25s ease, border-color .25s ease, background-color .25s ease;
}
/* Une fois connecté, l'icône générique laisse place à l'initiale de la
   personne, dans le même carré à bord arrondi (pas un cercle, pour ne
   pas se confondre avec les icônes rondes des réseaux sociaux) — signale
   la connexion en un coup d'œil, sans texte ni espace en plus à gérer
   en responsive. */
.site-account-link:has(.site-account-initial){ border-color:transparent; }
.site-account-initial{
  display:flex; align-items:center; justify-content:center;
  width:100%; height:100%;
  background:var(--rose-deep); color:#fff; text-decoration:none;
  font-family:'Lora', serif; font-weight:700; font-size:1.35rem; line-height:1;
}
.site-account-link-mobile .site-account-initial{ width:20px; height:20px; font-size:0.9rem; }
.shop-header-actions{display:flex; align-items:center; gap:12px;}
.site-cart-count{
  position:absolute; top:-4px; right:-4px; min-width:17px; height:17px; padding:0 3px; box-sizing:border-box;
  background:var(--berry-deep); color:#fff; font-family:'Inter',sans-serif; font-size:0.65rem; font-weight:700;
  border-radius:9px; display:flex; align-items:center; justify-content:center; line-height:17px; text-align:center;
}
.burger{display:none; background:none; border:none; cursor:pointer; padding:6px;}
.burger span{display:block; width:22px; height:1px; background:var(--ink); margin:5px 0;}

/* HERO */
/* Décale le point d'ancrage des sections atteintes depuis un lien du menu
   (Autrices & auteurs, Catalogue, Événements, Soumission, Contact) pour qu'elles ne
   démarrent pas cachées sous le header fixe une fois arrivé dessus — la
   version ordinateur du header (logo + ligne de menu) fait environ 135px.
   Les versions mobiles ont leur propre valeur, plus bas dans ce fichier. */
#auteurs, #catalogue, #evenements, #soumission, #contact{scroll-margin-top:135px;}
#shop-search-input{scroll-margin-top:180px;}

.hero{min-height:100vh; display:flex; align-items:center; position:relative; padding-top:200px; padding-bottom:80px;
  background:
    radial-gradient(ellipse 55% 45% at 85% 10%, rgba(226,109,143,0.4), transparent 60%),
    radial-gradient(ellipse 50% 45% at 12% 85%, rgba(196,212,203,0.6), transparent 60%),
    radial-gradient(ellipse 45% 40% at 50% 0%, rgba(255,189,209,0.55), transparent 60%),
    var(--cream);
  overflow:hidden;
}
.hero::before{
  content:''; position:absolute; inset:0; pointer-events:none;
  background-image: radial-gradient(rgba(85,13,37,0.16) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 75%);
}
.hero::after{
  content:''; position:absolute; left:0; right:0; bottom:0; height:200px; pointer-events:none;
  background:linear-gradient(to bottom, transparent, var(--surface));
}
.hero-grid{display:grid; grid-template-columns:1.1fr 0.9fr; gap:60px; align-items:center; position:relative; z-index:2;}
.hero .eyebrow{color:var(--berry-deep);}
.hero h1{
  font-family:'Lora',serif; font-size:clamp(2.7rem, 5.2vw, 4.6rem); line-height:1.05;
  letter-spacing:-0.01em; margin:20px 0 26px; color:var(--ink);
}
.hero h1 em{font-style:italic; color:var(--berry); font-weight:500;}
.hero p.lead{font-size:1.1rem; color:var(--ink-soft); max-width:46ch; line-height:1.7; margin:0 0 36px;}
.hero-actions{display:flex; gap:16px; flex-wrap:wrap;}
.btn{display:inline-flex; align-items:center; gap:10px; padding:14px 26px; border-radius:2px; text-decoration:none;
  font-size:0.88rem; letter-spacing:0.02em; font-weight:500; transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  border:1px solid transparent; cursor:pointer; font-family:'Inter',sans-serif;
}
.btn-primary{background:var(--berry); color:#fff;}
.btn-ghost{border-color:var(--berry); color:var(--berry-deep); background:rgba(255,255,255,0.5);}

.hero-visual{position:relative; height:460px;}
.book-float{
  position:absolute; width:200px; height:290px; border-radius:6px;
  box-shadow:var(--shadow); border:1px solid rgba(255,255,255,0.6);
  display:flex; flex-direction:column; justify-content:flex-end; padding:0;
  background-size:cover; background-position:center; text-decoration:none;
  transition:transform .35s ease, box-shadow .35s ease;
}
a.book-float:focus-visible{transform:translateY(-6px) scale(1.02); box-shadow:0 34px 60px -18px rgba(60,42,59,0.4);}
.book-float::after{
  content:''; position:absolute; inset:0; border-radius:6px;
  background:linear-gradient(160deg, rgba(255,255,255,0.35), transparent 55%);
}
.book-1{top:10px; left:40px; --r:-6deg; background-color:var(--blush-deep);}
.book-2{top:110px; left:210px; --r:5deg; background-color:var(--lavender-deep);}
.book-3{top:210px; left:0px; --r:3deg; background-color:var(--sage-pale);}
.book-1:not(a){background:linear-gradient(165deg,var(--rose-pale),var(--rose-light));}
.book-2:not(a){background:linear-gradient(165deg,var(--rose),var(--rose-deep));}
.book-3:not(a){background:linear-gradient(165deg,var(--sage-pale),var(--sage));}
.float-anim{animation:floaty 7s ease-in-out infinite; transform:rotate(var(--r,0));}
.book-2.float-anim{animation-delay:-2.3s;}
.book-3.float-anim{animation-delay:-4.6s;}
@keyframes floaty{0%,100%{transform:translateY(0) rotate(var(--r,0));} 50%{transform:translateY(-14px) rotate(var(--r,0));}}

section{padding:120px 0;}
.section-head{max-width:640px; margin-bottom:44px;}
.section-head h2{font-size:clamp(1.9rem,3.4vw,2.6rem); margin-top:4px; line-height:1.15;}
.section-head p{color:var(--parchment-muted); margin-top:16px; line-height:1.6; font-size:1rem;}

/* CATALOGUE */
.catalogue{
  padding-bottom:50px;
  background:
    radial-gradient(ellipse 50% 45% at 85% 25%, rgba(255,189,209,0.42), transparent 65%),
    radial-gradient(ellipse 48% 42% at 15% 78%, rgba(196,212,203,0.46), transparent 65%),
    var(--surface);
}
#auteurs{
  padding-top:50px; padding-bottom:50px;
  background:
    radial-gradient(ellipse 48% 42% at 18% 22%, rgba(226,109,143,0.3), transparent 65%),
    radial-gradient(ellipse 46% 40% at 82% 78%, rgba(196,212,203,0.44), transparent 65%),
    var(--cream);
}
#evenements{
  padding-top:50px; padding-bottom:50px;
  background:
    radial-gradient(ellipse 48% 42% at 82% 25%, rgba(196,212,203,0.44), transparent 65%),
    radial-gradient(ellipse 45% 40% at 18% 78%, rgba(255,189,209,0.36), transparent 65%),
    var(--cream);
}
.filters{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:20px; align-items:center;}
.filters-label{font-size:0.78rem; color:var(--parchment-muted); margin-right:4px;}
.filter-pill{background:transparent; border:1px solid var(--hairline); color:var(--parchment-muted); padding:9px 18px; border-radius:20px; font-size:0.82rem; cursor:pointer; font-family:'Inter',sans-serif; transition:all .25s ease;}
.filter-pill.active{background:var(--brass); border-color:var(--brass); color:#fff;}

/* Repli des mots-clés boutique au-delà de deux lignes, avec dégradé et
   bouton pour tout afficher (n'apparaît que si nécessaire, via JS). En
   repli, la marge de 40px (woocommerce.css) est annulée : c'est le bouton,
   juste après, qui porte désormais l'espacement avant la suite. */
.filters-mots-cles.is-collapsed{max-height:76px; overflow:hidden; position:relative; margin-bottom:6px;}
.motcles-toggle{
  display:block; margin-top:4px; margin-bottom:26px; background:none; border:none; padding:0;
  color:var(--rose-deep); font-family:'Inter',sans-serif; font-size:0.82rem;
  font-weight:600; cursor:pointer; text-decoration:underline; text-underline-offset:3px;
}
.motcles-toggle[hidden]{display:none;}

.shelf-board{position:relative; padding-bottom:22px; margin-bottom:8px; border-bottom:6px solid var(--olive); box-shadow:0 8px 18px -8px rgba(85,13,37,0.25);}
.shelf{display:flex; align-items:flex-end; gap:10px; overflow-x:auto; padding:30px 6px 10px; scrollbar-width:thin;}
.spine{
  flex:0 0 auto; width:58px; height:230px; border-radius:5px 5px 0 0; cursor:pointer; position:relative;
  border:1px solid rgba(255,255,255,0.5); border-bottom:none; overflow:hidden;
  transition:transform .3s ease, box-shadow .3s ease; background-size:cover; background-position:center;
  box-shadow:0 6px 14px -8px rgba(60,42,59,0.35);
}
.spine:focus-visible{transform:translateY(-16px); box-shadow:0 18px 26px -12px rgba(60,42,59,0.4);}
.spine::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(60,42,59,0.1) 0%, rgba(60,42,59,0.1) 35%, rgba(60,42,59,0.75) 100%);
}
.spine .spine-text{
  position:absolute; inset:0; z-index:2; writing-mode:vertical-rl; transform:rotate(180deg);
  font-family:'Lora',serif; color:#fff; font-size:0.8rem; letter-spacing:0.02em;
  white-space:nowrap; text-shadow:0 1px 4px rgba(0,0,0,0.5);
  display:flex; align-items:center; justify-content:center; padding:10px 0;
}
.spine.no-image{background:linear-gradient(165deg,var(--lavender-deep),var(--berry));}
.spine.hidden-item{display:none;}
.book-card.hidden-item{display:none;}
.shelf-hint{margin-top:16px; font-size:0.78rem; color:var(--ink-soft); letter-spacing:0.02em;}

/* BARRE D'OUTILS DU CATALOGUE (recherche + filtres regroupés visuellement) */
.catalogue-toolbar{
  background:var(--surface); border:1px solid var(--hairline); border-radius:10px;
  padding:22px 24px 20px; margin-bottom:8px;
}
.catalogue-search{margin-bottom:18px;}
/* Sur la boutique, l'entête (titre + phrase) est directement suivi du champ
   de recherche : on réduit son espace habituel après pour qu'il égale celui
   entre le titre et la phrase, sans changer les autres entêtes du site. */
.section-head:has(+ .catalogue-search){margin-bottom:16px;}
.catalogue-search input{
  width:100%; max-width:440px; background:var(--cream); border:1.5px solid var(--rose); border-radius:24px;
  padding:12px 20px 12px 42px; font-size:0.92rem; color:var(--ink); font-family:'Inter',sans-serif;
  transition:border-color .25s ease, box-shadow .25s ease;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a4a5c' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:14px center; background-size:16px;
}
.catalogue-search input:focus{border-color:var(--rose-deep); outline:none; box-shadow:0 0 0 3px rgba(181,53,92,0.12);}
.catalogue-search input::placeholder{color:var(--ink-soft); opacity:0.7;}
.catalogue-toolbar .filters{margin-bottom:14px;}
.catalogue-toolbar .filters:last-child{margin-bottom:0;}

/* GRILLE DE COUVERTURES */
.catalogue-grid{
  display:grid; grid-template-columns:repeat(5, 1fr); gap:28px 22px; margin-top:36px;
}
/* Paliers fixes plutôt qu'une largeur minimale par carte (qui donnait un
   comportement imprévisible selon la largeur exacte de l'écran) : 5 → 4 → 3
   → 2 colonnes, et on reste à 2 en dessous de 608px, quelle que soit
   l'étroitesse de l'écran. Les mêmes seuils s'appliquent à la grille de la
   boutique, définie séparément dans woocommerce.css (ul.products) puisque
   cette feuille se charge après celle-ci — un seuil ici n'aurait aucun
   effet sur elle, la règle de base de woocommerce.css l'emporterait toujours. */
@media (max-width:1010px){
  .catalogue-grid{grid-template-columns:repeat(4, 1fr);}
}
@media (max-width:800px){
  .catalogue-grid{grid-template-columns:repeat(3, 1fr);}
}
@media (max-width:608px){
  .catalogue-grid{grid-template-columns:repeat(2, 1fr);}
  /* L'encart "Nos prochaines sorties" perd ses coins arrondis et s'étend
     sur toute la largeur de l'écran (fond compris), pour ne plus perdre de
     place sur les côtés à cette étroitesse — le contenu à l'intérieur
     retrouve les mêmes marges que le reste de la page grâce au padding
     ajouté ici, qui compense exactement la marge négative. */
  .upcoming-insert{
    border-radius:0; margin-left:-22px; margin-right:-22px;
    padding-left:22px; padding-right:22px;
  }
  /* Filtre par mot-clé de la boutique : retiré entièrement à partir de ce
     seuil (vrai mobile) — pas assez de place pour l'afficher sans saturer
     l'écran. Le champ de recherche par titre/autrice reste disponible.
     Au-dessus de ce seuil (tablettes comprises), le comportement habituel
     (deux lignes + bouton "Voir tous les mots-clés") continue de s'appliquer. */
  #shop-motcle-filters, .motcles-toggle{display:none;}
}
.book-card{
  background:none; border:none; padding:0; text-align:left; cursor:pointer; font-family:inherit;
  display:flex; flex-direction:column; gap:10px;
}
.book-card-cover{
  display:block; width:100%; aspect-ratio:2/3; border-radius:6px; background-size:cover; background-position:center;
  background-color:var(--rose-light); box-shadow:0 14px 28px -16px rgba(85,13,37,0.35);
  transition:transform .3s ease, box-shadow .3s ease; position:relative; overflow:hidden;
}
.book-card:focus-visible .book-card-cover{transform:translateY(-5px); box-shadow:0 22px 36px -14px rgba(85,13,37,0.4);}
.book-card-cover.no-image::after{
  content:'Pas encore de couverture'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  text-align:center; padding:14px; font-size:0.76rem; color:var(--ink-soft); background:rgba(255,255,255,0.6);
}
.book-card-badges{position:absolute; top:10px; left:10px; z-index:2; display:flex; flex-direction:column; gap:6px; align-items:flex-start;}
.book-card-badge{
  background:var(--rose-deep); color:#fff;
  font-size:0.66rem; letter-spacing:0.06em; text-transform:uppercase; font-weight:700;
  padding:4px 10px; border-radius:20px; box-shadow:0 4px 10px -2px rgba(85,13,37,0.4);
}
.book-card-badge-coup-de-coeur{background:var(--wine);}
.book-card-badge-a-paraitre{background:var(--wine);}
.upcoming-insert{
  background:var(--rose-pale); border-radius:14px; padding:30px 26px; margin-bottom:56px;
}
.upcoming-insert-title{
  font-family:'Lora',serif; font-size:1.15rem; font-weight:700; margin:0 0 22px; color:var(--ink);
}
.book-card-badge-exclusivite{background:var(--rose);}
.book-card-badge-goodies{background:var(--gold);}

/* Section "Goodies Arvis" : cadre carré plutôt que vertical, ces objets
   pouvant prendre des formes très différentes d'une couverture de livre.
   Ne s'applique qu'à l'intérieur de cette section — le reste du site
   garde son format 2:3 habituel. */
#shop-goodies-wrap ul.products li.product img{aspect-ratio:1/1; object-fit:contain; background:var(--cream-2);}
/* Prix affiché sous le titre, uniquement dans cette section (le reste du
   catalogue masque le prix sur la grille — voir ul.products li.product
   .price plus haut) : les cartes y étant plus petites, le prix aide à
   se décider sans devoir ouvrir chaque fiche. */
#shop-goodies-wrap .goodies-card-price{
  display:block; text-align:center; margin-top:6px;
  font-weight:700; color:var(--rose-deep); font-size:0.95rem;
}
.book-card-badge-precommande{background:var(--precommande);}
.book-card-title{font-family:'Lora',serif; font-weight:700; font-size:1rem; line-height:1.25; color:var(--ink);}
.book-card-author{font-size:0.84rem; color:var(--rose-deep); font-weight:500;}
.book-card-genre{
  align-self:flex-start; font-size:0.68rem; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--olive); font-weight:600;
}
.catalogue-empty{margin-top:40px; text-align:center; color:var(--ink-soft); font-size:0.92rem;}
.catalogue-grid.hidden-by-search{display:none;}

/* ÉVÉNEMENTS */
.events-board{display:flex; gap:20px; overflow-x:auto; padding:10px 6px 20px; scrollbar-width:thin;}
.event-card{
  flex:0 0 auto; width:270px; background:var(--surface); border:1px solid var(--hairline);
  border-radius:6px; padding:24px; display:flex; flex-direction:column; gap:8px; text-align:left;
  box-shadow:0 14px 30px -18px rgba(85,13,37,0.25); transition:transform .3s ease, box-shadow .3s ease;
  cursor:pointer; font-family:inherit;
}
.event-dates{
  align-self:flex-start; font-size:0.72rem; letter-spacing:0.06em; text-transform:uppercase;
  color:#fff; background:var(--rose-deep); padding:5px 12px; border-radius:20px; font-weight:600;
}
.event-card h3{font-size:1.15rem; margin-top:6px; line-height:1.25;}
.event-lieu{font-size:0.86rem; color:var(--olive); font-weight:600;}
.event-desc{font-size:0.88rem; color:var(--ink-soft); line-height:1.55; margin:4px 0 0;}
.event-more{font-size:0.78rem; color:var(--rose-deep); font-weight:600; margin-top:auto; padding-top:10px;}

/* Carte de l'événement en cours (voir enCours dans noctambule_get_evenements) :
   contour distinct, dont l'intensité respire pour la repérer sans qu'elle
   saute trop aux yeux au milieu des autres cartes. */
.event-card-live{
  border-width:2px; border-color:var(--precommande);
  animation:noctambuleEventCardGlow 2.4s ease-in-out infinite;
}
@keyframes noctambuleEventCardGlow{
  0%, 100%{ box-shadow:0 14px 30px -18px rgba(85,13,37,0.25), 0 0 0 0 rgba(224,33,138,0.45); }
  50%{ box-shadow:0 14px 30px -18px rgba(85,13,37,0.25), 0 0 0 7px rgba(224,33,138,0); }
}

/* Modale événement agrandie */
.event-modal-card{
  background:var(--surface); border-radius:6px; padding:38px 34px; max-width:560px; width:100%;
  max-height:80vh; display:flex; flex-direction:column;
}
.event-modal-card h3{font-size:1.5rem; margin:14px 0 6px; line-height:1.2;}
.event-modal-card .event-lieu{font-size:0.92rem; margin-bottom:18px;}

/* Pop-up de connexion / inscription */
.account-modal-card{background:var(--surface); border-radius:6px; padding:36px 34px; max-width:440px; width:100%;}
.account-modal-tabs{display:flex; gap:8px; margin-bottom:26px; border-bottom:1px solid var(--hairline);}
.account-modal-tab{
  background:none; border:none; padding:10px 4px; margin-right:20px; font-family:'Inter',sans-serif;
  font-weight:600; font-size:0.95rem; color:var(--ink-soft); cursor:pointer; position:relative; top:1px;
  border-bottom:2px solid transparent;
}
.account-modal-tab.active{color:var(--wine); border-bottom-color:var(--rose-deep);}
.account-modal-pane{display:none;}
.account-modal-pane.active{display:block;}
.account-modal-pane .form-row{margin-bottom:16px;}
.account-modal-pane label{display:block; font-size:0.78rem; letter-spacing:0.05em; color:var(--ink-soft); margin-bottom:6px;}
.account-modal-pane .required{color:var(--rose-deep); text-decoration:none;}
.account-modal-pane input.input-text{
  width:100%; background:var(--surface); border:1px solid var(--hairline); border-radius:4px;
  padding:12px 14px; font-family:'Inter',sans-serif; font-size:0.92rem; color:var(--ink);
}
.account-modal-pane input.input-text:focus{
  border-color:var(--rose-deep); outline:none; box-shadow:0 0 0 3px rgba(181,53,92,0.12);
}
.account-modal-pane .woocommerce-form-login__rememberme{
  display:flex; align-items:center; gap:8px; font-size:0.85rem; color:var(--ink-soft); margin:4px 0 18px;
}
.account-modal-pane .woocommerce-form-login__rememberme label{display:flex; align-items:center; gap:8px; margin:0;}
.account-modal-pane .button{
  width:100%; background:var(--wine); color:#fff; border:none; border-radius:30px; padding:13px 26px;
  font-family:'Inter',sans-serif; font-weight:600; font-size:0.92rem; cursor:pointer;
}
.account-modal-pane .woocommerce-LostPassword{font-size:0.85rem; margin-top:14px; text-align:center;}
.account-modal-pane .woocommerce-LostPassword a{color:var(--rose-deep);}
.event-modal-scroll{
  overflow-y:auto; padding-right:8px; border-top:1px solid var(--hairline); padding-top:18px;
  -webkit-mask-image: linear-gradient(180deg, black 92%, transparent 100%);
          mask-image: linear-gradient(180deg, black 92%, transparent 100%);
}
.event-modal-scroll p{font-size:0.98rem; line-height:1.7; color:var(--ink); margin:0 0 14px;}
.event-modal-scroll::-webkit-scrollbar{width:5px;}
.event-modal-scroll::-webkit-scrollbar-thumb{background:var(--rose-light); border-radius:4px;}

/* MODAL + FLIP CARD 3D */
.modal-overlay{position:fixed; inset:0; background:rgba(10,5,7,0.78); backdrop-filter:blur(6px); display:none; align-items:center; justify-content:center; z-index:200; padding:24px;}
.modal-overlay-nested{z-index:300;}
.modal-overlay.open{display:flex;}
.modal-card{position:relative; max-width:520px; width:100%;}
.modal-close{
  position:absolute; top:-40px; right:0; background:none; border:none; color:var(--parchment);
  font-size:1.8rem; cursor:pointer; line-height:1; padding:0; z-index:5;
  width:36px; height:36px; display:flex; align-items:center; justify-content:center;
}

.flip-stage{display:flex; flex-direction:column; align-items:center; gap:22px;}
.flip-card{width:100%; max-width:340px; aspect-ratio:2/3; perspective:1800px;}
.flip-card-inner{position:relative; width:100%; height:100%; transition:transform .9s cubic-bezier(.4,.2,.2,1); transform-style:preserve-3d;}
.flip-card.flipped .flip-card-inner{transform:rotateY(180deg);}
.flip-front, .flip-back{position:absolute; inset:0; backface-visibility:hidden; border-radius:6px; overflow:hidden; box-shadow:var(--shadow); border:1px solid var(--hairline);}
.flip-front{background-size:cover; background-position:center; background-color:var(--plum); cursor:pointer; transition:filter .2s ease;}
.flip-back{
  transform:rotateY(180deg); background:var(--surface-2);
  display:flex; flex-direction:column; padding:28px 26px 22px;
}
.flip-back-top{flex:0 0 auto;}
.flip-back-top .genre-tag{display:inline-block; align-self:flex-start; font-size:0.68rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--berry-deep); border:1px solid var(--hairline); padding:5px 12px; border-radius:20px; margin-bottom:14px;}
.flip-back-top h3{font-size:1.3rem; line-height:1.15; margin-bottom:4px;}
.flip-back-top .modal-author{color:var(--berry-deep); font-size:0.86rem; margin:0 0 10px; text-decoration:underline; text-underline-offset:2px; display:block; cursor:pointer;}
.flip-back-top a.modal-author-plain{color:var(--ink-soft); text-decoration:none; cursor:default; pointer-events:none;}
.modal-keywords{display:flex; flex-wrap:wrap; gap:6px; margin-bottom:6px;}
.modal-keywords span{font-size:0.68rem; color:var(--ink-soft); border:1px solid var(--hairline); padding:3px 10px; border-radius:20px;}
.modal-release-date{font-size:0.78rem; color:var(--ink-soft); margin:0 0 10px;}
.modal-release-date.est-a-paraitre{color:var(--berry-deep); font-weight:700;}

.flip-back-scroll{
  flex:1 1 auto; min-height:0; overflow-y:auto; margin:12px 0 4px; padding-right:8px;
  -webkit-mask-image: linear-gradient(180deg, black 88%, transparent 100%);
          mask-image: linear-gradient(180deg, black 88%, transparent 100%);
  scrollbar-width:thin; scrollbar-color:var(--berry-deep) transparent;
}
.flip-back-scroll::-webkit-scrollbar{width:5px;}
.flip-back-scroll::-webkit-scrollbar-thumb{background:var(--blush-deep); border-radius:4px;}
.flip-back-scroll p.excerpt{font-size:0.95rem; line-height:1.65; color:var(--ink); margin:0; white-space:pre-line;}

.flip-actions{
  flex:0 0 auto; display:flex; gap:10px; flex-wrap:wrap;
  padding-top:16px; margin-top:6px; border-top:1px solid var(--hairline);
}
.flip-actions .btn{flex:1 1 auto; justify-content:center; padding:11px 14px; font-size:0.8rem; white-space:nowrap;}
.flip-actions .btn[hidden]{display:none;}
.achat-links{display:flex; gap:8px; flex-wrap:wrap; flex:1 1 100%;}
.achat-links:empty{display:none;}
.achat-links a, .achat-links button.achat-librairie-btn{
  display:flex; align-items:center; justify-content:center;
  flex:1 1 auto; text-align:center; padding:11px 14px; border-radius:2px; font-size:0.8rem;
  text-decoration:none; background:var(--berry); color:#fff; white-space:nowrap;
  transition:background .25s ease, transform .25s ease; font-family:inherit; border:none; cursor:pointer;
}
.achat-links button.achat-librairie-btn{background:var(--surface); color:var(--berry); border:1.5px solid var(--berry);}
.achat-links a.achat-link-externe{
  flex:0 1 auto; padding:7px 12px; font-size:0.7rem; background:var(--surface); color:var(--ink-soft);
  border:1px solid var(--hairline);
}
/* Une seule plateforme : bouton pleine largeur comme avant */
.achat-links:has(a:only-child) a{flex:1 1 100%;}

/* Fenêtre "Trouver une librairie" */
.librairie-modal-card{
  background:var(--surface); border-radius:6px; padding:34px 30px; max-width:640px; width:100%;
}
.librairie-modal-card h3{font-family:'Lora',serif; font-size:1.4rem; margin:0 0 6px; color:var(--ink);}
.librairie-modal-intro{color:var(--ink-soft); font-size:0.92rem; margin-bottom:18px;}
.librairie-ville-form{display:flex; gap:10px; margin-bottom:16px;}
.librairie-ville-form input{
  flex:1; background:var(--surface); border:1px solid var(--hairline); border-radius:4px;
  padding:11px 14px; font-family:'Inter',sans-serif; font-size:0.92rem; color:var(--ink);
}
.librairie-ville-form input:focus{border-color:var(--rose-deep); outline:none; box-shadow:0 0 0 3px rgba(181,53,92,0.12);}
.librairie-ville-form button{
  background:var(--berry); color:#fff; border:none; border-radius:4px; padding:11px 20px;
  font-family:'Inter',sans-serif; font-weight:600; font-size:0.88rem; cursor:pointer; white-space:nowrap;
}
.librairie-map-wrap{width:100%; height:400px; border-radius:6px; overflow:hidden;}
.librairie-map-consent{
  width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:14px; background:var(--surface-2); padding:24px; text-align:center;
}
.librairie-map-consent p{color:var(--ink-soft); font-size:0.88rem; margin:0; max-width:36ch;}
.librairie-map-consent button{
  background:var(--wine); color:#fff; border:none; border-radius:30px; padding:11px 22px;
  font-family:'Inter',sans-serif; font-weight:600; font-size:0.85rem; cursor:pointer;
}

/* Bandeau de consentement aux cookies */
.cookie-banner{
  position:fixed; left:0; right:0; bottom:0; z-index:400; background:var(--wine); color:#fff;
  padding:18px 24px; display:flex; align-items:center; gap:24px; flex-wrap:wrap; justify-content:space-between;
  box-shadow:0 -10px 30px -10px rgba(0,0,0,0.3);
}
.cookie-banner[hidden]{display:none;}
.cookie-banner-text{flex:1 1 420px;}
.cookie-banner-text p{margin:0; font-size:0.85rem; line-height:1.6; color:rgba(255,255,255,0.92);}
.cookie-banner-text a{color:#fff; text-decoration:underline; text-underline-offset:2px;}
.cookie-banner-actions{display:flex; gap:10px; flex-shrink:0;}
.cookie-btn{
  border-radius:30px; padding:11px 22px; font-family:'Inter',sans-serif; font-weight:600; font-size:0.85rem;
  cursor:pointer; border:1.5px solid #fff;
}
.cookie-btn-secondary{background:transparent; color:#fff;}
.cookie-btn-primary{background:#fff; color:var(--wine);}
.flip-stage-actions{display:flex; gap:12px; flex-wrap:wrap; justify-content:center;}
.flip-btn{
  background:none; border:1px solid var(--brass); color:var(--brass-soft); padding:11px 22px; border-radius:2px;
  font-size:0.82rem; cursor:pointer; letter-spacing:0.03em; transition:background .25s ease, color .25s ease;
  font-family:'Inter',sans-serif; text-decoration:none; display:inline-flex; align-items:center;
}
.flip-btn-extrait[hidden]{display:none;}

/* AUTEURS */
/* Mise en page de la fiche autrice/auteur : photo à côté du texte sur PC,
   empilée au-dessus sur mobile — remplace l'ancien style en ligne figé */
.author-hero-grid{display:grid; grid-template-columns:220px 1fr; gap:50px; align-items:start; margin:0 0 70px;}
@media (max-width:760px){
  .author-hero-grid{grid-template-columns:1fr; gap:24px;}
  .author-hero-grid > div:first-child{max-width:220px; margin:0 auto;}
}

.authors-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:2px; background:var(--hairline); border:1px solid var(--hairline);}
/* Accueil : défilé horizontal des autrices/auteurs (même principe que les événements) */
.authors-strip-wrap{position:relative;}
.authors-strip{
  display:flex; gap:2px; overflow-x:auto; scroll-snap-type:x proximity; scrollbar-width:thin;
  background:var(--hairline); border:1px solid var(--hairline); scroll-behavior:smooth;
}
.authors-strip .author-card{flex:0 0 260px; scroll-snap-align:start;}
.authors-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:2; width:44px; height:44px;
  border-radius:50%; border:1px solid var(--berry); background:var(--surface); color:var(--berry-deep);
  font-size:1.6rem; line-height:1; cursor:pointer; box-shadow:0 8px 20px -10px rgba(85,13,37,0.4);
  display:flex; align-items:center; justify-content:center; padding:0 0 3px;
}
.authors-arrow[hidden]{display:none;}
.authors-arrow-prev{left:-14px;}
.authors-arrow-next{right:-14px;}
.authors-all{text-align:center; margin-top:28px;}
@media (max-width:760px){
  .authors-strip .author-card{flex-basis:78%;}
  .authors-arrow{display:none;}
}

.author-card{
  background:var(--surface); padding:34px 30px; transition:background .3s ease, transform .3s ease;
  text-decoration:none; color:inherit; display:block;
}
/* Bibliographie d'une autrice/auteur : juste la couverture et le titre,
   sans l'encadré ni le fond pensés pour les cartes autrices/auteurs
   ci-dessus (inadaptés à un simple livre). */
.bibliography-grid{
  display:flex; flex-wrap:wrap; align-items:flex-start; gap:28px;
}
.bibliography-book{
  display:block; text-decoration:none; color:inherit; text-align:center;
}
.bibliography-book h3{margin:0; color:var(--ink);}
.bibliography-book-cover{height:320px; width:auto; max-width:100%; border-radius:4px; margin-bottom:14px;}
.author-photo{
  width:64px; height:64px; border-radius:50%; margin-bottom:18px; object-fit:cover;
  border:2px solid var(--blush-deep); display:block;
}
.monogram{
  width:64px; height:64px; border-radius:50%; border:2px solid var(--rose-deep);
  background:linear-gradient(155deg,var(--blush),var(--lavender));
  display:flex; align-items:center; justify-content:center; font-family:'Lora',serif;
  font-size:1.2rem; color:var(--berry-deep); margin-bottom:18px;
}
.author-card h3{font-size:1.15rem; margin-bottom:6px; color:var(--ink);}
.author-card p.bio{
  color:var(--ink-soft); font-size:0.9rem; line-height:1.6; margin:0;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}

/* SOUMISSION */
.submit-section{
  padding-top:50px;
  background:
    radial-gradient(ellipse 50% 45% at 80% 25%, rgba(196,212,203,0.4), transparent 65%),
    linear-gradient(180deg, var(--surface), var(--cream-2));
}
.submit-grid{display:grid; grid-template-columns:0.85fr 1.15fr; gap:70px; align-items:start;}
.submit-info h2{font-size:clamp(1.9rem,3.2vw,2.4rem); line-height:1.15; margin-top:14px;}
.submit-info p{color:var(--parchment-muted); line-height:1.7; margin-top:18px;}
.submit-steps{list-style:none; margin:32px 0 0; padding:0; display:flex; flex-direction:column; gap:18px;}
.submit-steps li{display:flex; gap:14px; font-size:0.92rem; color:var(--parchment-muted); line-height:1.5;}
.submit-steps .num{flex:0 0 auto; width:28px; height:28px; border:1px solid var(--brass); border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:'Lora',serif; font-size:0.85rem; color:var(--brass-soft);}

form{display:flex; flex-direction:column; gap:22px;}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
.field label{display:block; font-size:0.78rem; letter-spacing:0.05em; color:var(--parchment-muted); margin-bottom:8px;}
.field input, .field select, .field textarea{width:100%; background:var(--surface); border:1px solid var(--hairline); border-radius:2px; padding:13px 14px; color:var(--parchment); font-family:'Inter',sans-serif; font-size:0.92rem; transition:border-color .25s ease, background .25s ease;}
.field input:focus, .field select:focus, .field textarea:focus{border-color:var(--brass); background:var(--surface-2); outline:none;}
.field textarea{resize:vertical; min-height:120px; font-family:'Lora',serif;}
.consent{display:flex; align-items:flex-start; gap:10px; font-size:0.82rem; color:var(--parchment-muted);}
.consent input{margin-top:3px;}
.submit-btn{align-self:flex-start; margin-top:6px;}
.form-note{font-size:0.76rem; color:var(--parchment-muted); opacity:0.75; margin-top:-6px;}
.success-panel{text-align:center; padding:60px 20px; border:1px solid var(--hairline); border-radius:4px; background:var(--surface); display:none;}
.success-panel.show{display:block;}
.success-panel h3{font-family:'Lora',serif; font-size:1.6rem; margin-bottom:12px; color:var(--ink);}
.success-panel p{color:var(--ink-soft);}

@media (max-width:900px){
  .field-row{grid-template-columns:1fr;}
  .submit-grid{grid-template-columns:1fr; gap:44px;}
  .hero-grid{grid-template-columns:1fr;}
  .hero-visual{height:340px; width:300px; margin:20px auto 0;}
  .book-float{width:150px; height:220px;}
  .book-2{left:150px; top:80px;}
  .book-3{left:10px; top:150px;}
}
@media (max-width:950px){
  .site-account-link-mobile{display:none;}
  #site-header nav ul, .nav-cta{display:none;}
  .burger{display:block;}
  section{padding:80px 0;}
  .wrap{padding:0 22px;}
  /* Pastilles (Nouveau, Coup de cœur, Précommande, À paraître) sur les
     couvertures : réduites en mobile, où l'espace est plus limité. */
  .book-card-badge{font-size:0.56rem; padding:3px 8px; letter-spacing:0.04em;}
  .book-card-badges{gap:4px;}
  .goodies-arrow::before{content:'←';}
  .goodies-boutique-group{position:static; gap:8px;}
  .goodies-hint{position:static; transform:none; margin-top:0;}
  .nav-event-live{gap:8px;}
  .nav-event-arrow::before{content:'←';}
  .nav-event-live-label{position:static; transform:none; margin-top:2px; flex-direction:row; gap:3px;}
  .brand img{width:216.16px; height:auto;}
  .nav-inner{padding:0; border-top:none; min-height:0;} /* panier + burger déplacés dans .header-logo-row en JS ; .nav-inner garde <nav> pour que le menu déroulant fonctionne toujours */
  .header-logo-row{justify-content:flex-start; padding-top:28px; padding-bottom:16px;}
  .shop-header-actions{margin-left:auto; margin-right:20px; gap:20px;}
  .bibliography-book-cover{height:220px;}
  main{padding-top:90px !important;}
  .hero{padding-top:90px !important;}
  /* Décale le point d'ancrage des sections atteintes depuis un lien du menu
     (Autrices & auteurs, Catalogue, Événements, Soumission, Contact) pour qu'elles ne
     démarrent pas cachées sous le header fixe une fois arrivé dessus. */
  #auteurs, #catalogue, #evenements, #soumission, #contact{scroll-margin-top:90px;}
  /* Réseaux sociaux : la version collée au logo (PC) disparaît, celle
     du menu burger prend le relais, tout en bas de la liste. */
  .header-desktop-actions{display:none !important;}
  .nav-account-mobile{
    display:block !important; margin-bottom:8px; padding-bottom:16px; border-bottom:1px solid var(--hairline);
  }
  .nav-account-mobile a{font-weight:700; color:var(--wine);}
  .nav-social-mobile{
    display:block !important; margin-top:8px; padding-top:16px; border-top:1px solid var(--hairline);
  }
  .nav-social-mobile .social-icons{justify-content:center;}
}

/* Sur les téléphones les plus étroits (Android d'entrée/milieu de gamme à
   360px, iPhone SE/mini à 375px), le logo, la loupe, le panier et le menu
   ne tiennent plus sur une seule ligne sans que les icônes ne deviennent
   trop petites pour être touchées du doigt avec précision. Le logo garde
   donc sa ligne à lui (centré, comme sur grand écran), et loupe/panier/menu
   passent sur une seconde ligne dédiée, avec des zones de clic confortables. */
.header-actions-row{display:none;}
@media (max-width:460px){
  .header-logo-row{justify-content:center !important;}
  .brand img{width:240.17px; height:auto;}
  .header-actions-row{
    display:flex; justify-content:flex-end; align-items:center; gap:20px;
    padding:4px 22px 14px;
  }
  .shop-header-actions{margin:0; gap:20px;}
  .site-search-link, .site-cart-link{padding:10px;}
  .burger{padding:10px;}
  /* Le header est fixe et gagne une ligne complète à cette largeur : le
     contenu doit être décalé davantage pour ne pas passer dessous. */
  main{padding-top:148px !important;}
  .hero{padding-top:148px !important;}
  #auteurs, #catalogue, #evenements, #soumission, #contact{scroll-margin-top:148px;}
}

/* FOOTER */
footer{padding:60px 0 40px; border-top:1px solid var(--hairline);}
.footer-grid{display:block;}
.footer-brand{display:flex; align-items:center; gap:24px; margin-bottom:36px; flex-wrap:wrap;}
.footer-brand img{width:216.16px; height:auto; display:block;}
.footer-brand p{color:var(--parchment-muted); font-size:0.85rem; max-width:34ch; line-height:1.6; margin:0;}

/* Icônes réseaux sociaux — style commun aux trois emplacements (header PC,
   menu burger en mobile, footer) : plus grandes et dans une couleur qui
   tranche nettement avec le reste, pour rester bien visibles. */
.social-icons{display:flex; gap:10px;}
.social-icons a{
  display:flex; align-items:center; justify-content:center; width:44px; height:44px;
  border-radius:50%; border:1.5px solid var(--rose-deep); color:var(--rose-deep);
  padding:0; /* annule le padding-bottom hérité de "nav a", qui décale l'icône dans le menu burger */
  transition:color .25s ease, border-color .25s ease, background-color .25s ease;
}
.social-icons a::after{content:none;} /* retire le soulignement animé hérité des liens du menu (nav a::after) */
/* Priorité sur le style générique des liens de colonne du footer (.footer-col a),
   la colonne "Suivez-nous" utilisant la même structure que les autres colonnes. */
.footer-col .social-icons a{display:flex; color:var(--rose-deep); margin-bottom:0;}

/* Version desktop : collée à droite, sur la même ligne que le logo */
.header-logo-row{position:relative;}
.header-desktop-actions{
  position:absolute; right:16px; top:calc(50% + 4px); transform:translateY(-50%);
  display:flex; align-items:center; gap:32px;
}

/* Version mobile : à l'intérieur du menu burger, tout en bas, séparée du
   reste par un filet — masquée par défaut ci-dessous (redevient visible
   uniquement dans le media query mobile, où elle remplace la version PC). */
.nav-account-mobile{display:none;}
.nav-social-mobile{display:none;}
.footer-links{display:flex; gap:60px; flex-wrap:wrap;}
.footer-col h4{font-size:0.74rem; text-transform:uppercase; letter-spacing:0.12em; color:var(--brass-soft); margin-bottom:14px;}
.footer-col a{display:block; font-size:0.86rem; color:var(--parchment-muted); text-decoration:none; margin-bottom:10px;}
.footer-bottom{margin-top:50px; padding-top:24px; border-top:1px solid var(--hairline); font-size:0.76rem; color:var(--parchment-muted); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important;}
}

/* Tous les effets de survol du site : regroupés ici et n'activés que
   sur les appareils ayant un vrai pointeur (souris/trackpad). Sur
   tactile, ces règles ne s'appliquent jamais — ce qui évite tout
   risque de "double-tap" sur les liens concernés (obligation de
   toucher une première fois pour déclencher le survol, une seconde
   pour suivre le lien), un bug classique sur certains navigateurs
   mobiles quand un effet de survol est posé sur un lien. */
@media (hover:hover) and (pointer:fine){
  #site-header nav > ul > li > a:hover{color:var(--ink);}
  #site-header nav > ul > li > a:hover::after{width:100%;}
  #site-header nav > ul > li > a.nav-shop-badge:hover{background:var(--rose-deep); color:#fff; transform:translateY(-1px);}
  .nav-cta:hover{background:var(--berry); color:#fff;}
  .site-cart-link:hover{color:var(--berry-deep);}
  .site-search-link:hover{color:var(--berry-deep);}
  .site-account-link-mobile:hover{color:var(--berry-deep);}
  .site-account-link:hover{color:#fff; background:var(--wine); border-color:var(--wine);}
  .site-account-initial:hover{background:var(--wine);}
  .btn-primary:hover{transform:translateY(-2px); box-shadow:0 16px 30px -12px rgba(85,13,37,0.4); background:var(--berry-deep);}
  .btn-ghost:hover{background:var(--blush); border-color:var(--blush-deep);}
  a.book-float:hover{transform:translateY(-6px) scale(1.02); box-shadow:0 34px 60px -18px rgba(60,42,59,0.4);}
  .filter-pill:hover{border-color:var(--brass-soft); color:var(--parchment);}
  .motcles-toggle:hover{color:var(--wine);}
  .spine:hover{transform:translateY(-16px); box-shadow:0 18px 26px -12px rgba(60,42,59,0.4);}
  .book-card:hover .book-card-cover{transform:translateY(-5px); box-shadow:0 22px 36px -14px rgba(85,13,37,0.4);}
  .event-card:hover{transform:translateY(-4px); box-shadow:0 20px 34px -16px rgba(85,13,37,0.3);}
  .modal-close:hover{color:var(--brass-soft);}
  .flip-front:hover{filter:brightness(1.05);}
  .achat-links a:hover{background:var(--berry-deep); transform:translateY(-1px);}
  .achat-links a.achat-link-externe:hover{background:var(--surface-2); border-color:var(--berry); color:var(--berry); transform:none;}
  .librairie-map-consent button:hover{background:var(--rose-deep);}
  .cookie-btn-secondary:hover{background:rgba(255,255,255,0.15);}
  .cookie-btn-primary:hover{background:var(--rose-pale);}
  .achat-links button.achat-librairie-btn:hover{background:var(--berry); color:#fff; transform:translateY(-1px);}
  .librairie-ville-form button:hover{background:var(--berry-deep);}
  .flip-btn:hover{background:var(--brass); color:var(--ink);}
  .author-card:hover{background:#fff; transform:translateY(-3px);}
  .social-icons a:hover{color:#fff; background:var(--wine); border-color:var(--wine);}
  .footer-col .social-icons a:hover{color:#fff;}
  .footer-col a:hover{color:var(--parchment);}
}


/* Bannières au-dessus du héros (page d'accueil) : le header est fixe, on
   décale donc la bannière en dessous de lui, et on réduit d'autant l'espace
   au-dessus du héros qui servait jusque-là à passer sous le header. */
.home-bannieres{padding-top:160px;}
.home-bannieres + .hero{padding-top:30px !important; min-height:0;}
/* Sous une bannière, les taches de couleur du fond ne doivent pas toucher le
   bord haut du héros (sinon elles y sont coupées net) : on les recentre. */
.home-bannieres + .hero{
  background:
    radial-gradient(ellipse 55% 35% at 85% 40%, rgba(226,109,143,0.32), transparent 100%),
    radial-gradient(ellipse 50% 40% at 12% 80%, rgba(196,212,203,0.55), transparent 100%),
    radial-gradient(ellipse 45% 30% at 50% 25%, rgba(255,189,209,0.4), transparent 100%),
    var(--cream);
}
@media (max-width:950px){
  .home-bannieres{padding-top:16px;}
  .home-bannieres + .hero{padding-top:30px !important;}
}
