/* Accueil « boutique de Noël » et page Livres (13 oct. 2026).
   L'opérateur : « fais le site comme une vraie boutique en ligne, dans l'esprit de Noël ;
   une fois Noël passé on changera ». Palette de /noel/ : rouge profond, or, sapin. */
:root { --rouge: #b3161d; --rouge-nuit: #6e0f12; --or: #e9b949; --sapin: #14532d; --neige: #fffaf3; }

/* Ouverture de l'accueil */
.vitrine { background: radial-gradient(120% 90% at 80% 0%, #c62828 0%, var(--rouge) 35%, var(--rouge-nuit) 100%); color: #fff;
  padding: 46px 0 64px; position: relative; overflow: hidden; }
.vitrine .conteneur { position: relative; z-index: 1; }
.vitrine .pastille { background: var(--or); color: var(--rouge-nuit); }
.vitrine h1 { color: #fff; max-width: 820px; }
.vitrine h1 em { font-style: normal; color: var(--or); }
.vitrine .accroche { color: #fde8e6; max-width: 640px; }
.vitrine .rebours { display: inline-block; margin-top: 18px; background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.25); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.vitrine .rebours b { color: var(--or); }

/* Les 3 grands rayons */
.rayons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.rayon-carte { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px;
  border-radius: 22px; overflow: hidden; text-decoration: none; color: #fff; border: 3px solid var(--or);
  box-shadow: 0 18px 40px rgba(0,0,0,.28); transition: transform .2s; }
.rayon-carte:hover { transform: translateY(-4px); }
.rayon-carte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.rayon-carte:hover img { transform: scale(1.05); }
.rayon-carte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(40,4,6,.92)); }
.rayon-carte .corps { position: relative; z-index: 1; padding: 22px; }
.rayon-carte .num { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--or); }
.rayon-carte h2 { font-size: 30px; line-height: 1.05; margin: 6px 0 8px; color: #fff; opacity: 1; transform: none; }
.rayon-carte p { font-size: 15px; color: #fde8e6; }
.rayon-carte .aller { display: inline-block; margin-top: 14px; background: var(--or); color: var(--rouge-nuit); font-weight: 800;
  padding: 10px 18px; border-radius: 999px; font-size: 15px; }
.rayon-carte .des { position: absolute; top: 16px; right: 16px; z-index: 1; background: #fff; color: var(--rouge); font-weight: 800;
  padding: 6px 12px; border-radius: 999px; font-size: 14px; }

/* Bande de réassurance */
.reassurance { background: var(--neige); border-bottom: 1px solid var(--trait); }
.reassurance ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 18px 0; }
.reassurance li { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; }
.reassurance li span { font-size: 24px; }

/* En-tête de rayon */
.tete-rayon { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.tete-rayon h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; }
.tete-rayon p { color: var(--gris); max-width: 560px; margin-top: 6px; }
.tete-rayon .tout { font-weight: 800; color: var(--rouge); text-decoration: none; white-space: nowrap; }

/* Fiches produits */
.etal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fiche { position: relative; background: #fff; border: 1px solid var(--trait); border-radius: 18px; overflow: hidden;
  text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.fiche:hover { box-shadow: 0 14px 30px rgba(110,15,18,.14); transform: translateY(-3px); }
.fiche img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f3ece3; }
.fiche .corps { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.fiche h3 { font-size: 17px; line-height: 1.2; }
.fiche p { font-size: 14px; color: var(--gris); }
.fiche .prix { margin-top: auto; padding-top: 8px; font-weight: 800; font-size: 19px; color: var(--rouge); }
.fiche .badge { position: absolute; top: 12px; left: 12px; background: var(--rouge); color: #fff; font-size: 12px; font-weight: 800;
  padding: 5px 10px; border-radius: 999px; }

/* Les livres : un vrai livre en volume (couverture + tranche) */
.rayon-livres { background: linear-gradient(180deg, var(--sapin), #0b3a1f); color: #fff; }
.rayon-livres .tete-rayon p { color: #d8eadc; }
.rayon-livres .tete-rayon .tout { color: var(--or); }
.rayon-livres h2 mark { background-image: linear-gradient(transparent 12%, var(--rouge) 12%, var(--rouge) 92%, transparent 92%); color: #fff; }
.bibliotheque { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.livre-fiche { text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; text-align: center; }
.livre { position: relative; width: 78%; aspect-ratio: 1; margin: 10px 0 22px; transform: perspective(900px) rotateY(-18deg);
  transform-style: preserve-3d; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.livre.italienne { aspect-ratio: 4 / 3; }
.livre-fiche:hover .livre { transform: perspective(900px) rotateY(-6deg) translateY(-4px); }
.livre .couv { position: absolute; inset: 0; border-radius: 3px 10px 10px 3px; overflow: hidden;
  box-shadow: 18px 22px 34px rgba(0,0,0,.45), inset 4px 0 0 rgba(255,255,255,.18); }
.livre .couv img { width: 100%; height: 100%; object-fit: cover; }
.livre .couv::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7%; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.15) 60%, transparent); }
.livre .titre-couv { position: absolute; left: 10%; right: 6%; top: 7%; z-index: 1; font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800; font-size: clamp(16px, 2vw, 24px); line-height: 1.05; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.65), 0 0 2px rgba(0,0,0,.8); }
.livre .pages { position: absolute; right: -9px; top: 3%; bottom: 3%; width: 10px; border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(90deg, #f5efe4 0 1px, #ddd3c2 1px 2px); transform: rotateY(60deg); transform-origin: left; }
.livre-fiche .pour { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--or); }
.livre-fiche h3 { font-size: 22px; margin: 6px 0; }
.livre-fiche p { font-size: 15px; color: #d8eadc; max-width: 320px; }
.livre-fiche .prix { font-size: 22px; font-weight: 800; margin-top: 10px; color: #fff; }
.livre-fiche .prix small { font-size: 13px; font-weight: 500; color: #d8eadc; }
.livre-fiche .vedette { display: inline-block; background: var(--rouge); color: #fff; font-size: 12px; font-weight: 800;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 6px; }

/* Création digitale */
.rayon-crea .fiche .icone { font-size: 38px; padding: 18px 16px 0; }
.rayon-crea .fiche .prix { color: var(--noir); }
.rayon-crea .bandeau-cadeau { margin-top: 22px; background: #fff4e0; border: 2px dashed var(--or); border-radius: 18px;
  padding: 18px 20px; display: flex; gap: 14px; align-items: center; font-size: 16px; }
.rayon-crea .bandeau-cadeau span { font-size: 34px; }

/* Page Livres */
.page-livres .livre-detail { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; padding: 34px 0;
  border-bottom: 1px solid rgba(255,255,255,.15); }
.page-livres .livre-detail:last-child { border-bottom: 0; }
.page-livres .livre-detail .livre { width: 82%; margin: 0 auto; }
.page-livres .livre-detail h2 { font-size: clamp(28px, 3.6vw, 40px); color: #fff; }
.page-livres .livre-detail .infos { list-style: none; margin: 16px 0; display: grid; gap: 6px; color: #d8eadc; }
.page-livres .livre-detail .infos li::before { content: "✓ "; color: var(--or); font-weight: 800; }
.page-livres .livre-detail .prix { font-size: 30px; font-weight: 800; }
.page-livres .bouton { background: var(--or); color: var(--rouge-nuit); box-shadow: 6px 6px 0 var(--rouge); }
.page-livres .bouton .fleche { background: var(--rouge-nuit); color: #fff; }
.carte-attente { background: #fff; color: var(--noir); border-radius: 22px; padding: 28px; max-width: 640px; margin: 0 auto;
  border: 3px solid var(--or); }
.carte-attente h2 { font-size: 30px; }
.carte-attente form { display: grid; gap: 12px; margin-top: 16px; }
.carte-attente label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.carte-attente input, .carte-attente select { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #cfc6b8; }
.carte-attente .case { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.carte-attente .piege { position: absolute; left: -9999px; }
.carte-attente .bouton { justify-self: start; }
.carte-attente .ok { background: #e7f6ea; border-radius: 12px; padding: 16px; font-weight: 600; }

@media (max-width: 960px) {
  .etal { grid-template-columns: repeat(2, 1fr); }
  .reassurance ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .rayons, .bibliotheque { grid-template-columns: 1fr; }
  .rayon-carte { min-height: 300px; }
  .page-livres .livre-detail { grid-template-columns: 1fr; gap: 18px; }
  .livre { width: 66%; }
}
/* l'étiquette « Édition Noël » du décor (commun.js) ferait doublon avec la pastille */
.vitrine .etiquette-noel { display: none; }
.page-livres .livre-detail .livre-fiche { display: block; text-align: left; }

/* 13 oct. (2) — les vrais livres de la famille (Amazon) */
.entete-livres { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; }
.entete-livres .pile { width: 100%; border-radius: 22px; border: 3px solid var(--or); box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.couvertures { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.couvertures.grands { grid-template-columns: repeat(3, minmax(0, 260px)); }
.couverture { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.couverture img { width: 100%; aspect-ratio: 314 / 500; object-fit: cover; border-radius: 4px 10px 10px 4px;
  box-shadow: 6px 10px 22px rgba(0,0,0,.35); transition: transform .2s; margin-bottom: 6px; background: #fff; }
.couverture:hover img { transform: translateY(-4px) rotate(-1deg); }
.couverture .tome { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--or); }
.couverture b { font-size: 15px; line-height: 1.25; }
.couverture small { font-size: 13px; color: var(--gris); }
.couverture .prix { font-weight: 800; font-size: 16px; }
.rayon-livres .couverture .prix { color: #fff; }
#pour-les-grands .couverture .prix { color: var(--rouge); }
.etagere { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 960px) { .couvertures { grid-template-columns: repeat(3, 1fr); } .etagere { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .entete-livres { grid-template-columns: 1fr; }
  .couvertures, .couvertures.grands { grid-template-columns: repeat(2, 1fr); }
  .etagere { grid-template-columns: repeat(2, 1fr); }
  .etagere .couverture:nth-child(n+5) { display: none; }
}

/* 13 oct. (3) — la fiche du livre : on lit l'histoire sur alluxe, puis « Commander » envoie sur Amazon */
button.couverture { background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.couverture .voir { font-size: 13px; font-weight: 700; text-decoration: underline; opacity: .85; }
.fiche-livre { margin: auto; border: 0; padding: 0; border-radius: 22px; width: min(860px, calc(100% - 24px)); max-height: calc(100% - 24px);
  background: var(--neige); color: var(--noir); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.fiche-livre::backdrop { background: rgba(11,58,31,.72); }
.fiche-livre .fermer { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: #fff; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.fiche-contenu { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 30px; }
.fiche-contenu img { width: 100%; aspect-ratio: 314 / 500; object-fit: cover; border-radius: 4px 10px 10px 4px;
  box-shadow: 6px 10px 22px rgba(0,0,0,.3); background: #fff; }
.fiche-contenu .tome { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rouge); }
.fiche-contenu h3 { font-family: "Bricolage Grotesque", sans-serif; font-size: clamp(22px, 3vw, 30px); line-height: 1.15; margin: 6px 0 4px; padding-right: 40px; }
.fiche-contenu .auteur { color: var(--gris); margin: 0 0 14px; }
.fiche-contenu .resume p { margin: 0 0 10px; line-height: 1.55; }
.fiche-contenu .resume p.puce { margin: 0 0 4px; padding-left: 6px; }
.fiche-contenu .resume p.puce + p:not(.puce) { margin-top: 10px; }
.fiche-achat { margin-top: 18px; padding: 16px; border-radius: 16px; background: #fff; border: 2px solid var(--or); }
.fiche-achat .prix { font-weight: 800; font-size: 22px; color: var(--rouge); }
.fiche-achat .info-amazon { margin: 8px 0 14px; font-size: 14px; color: var(--gris); }
.fiche-achat .bouton { background: var(--sapin); color: #fff; box-shadow: 6px 6px 0 var(--or); }
.fiche-achat .bouton .fleche { background: var(--or); color: var(--sapin); }
@media (max-width: 760px) {
  .fiche-contenu { grid-template-columns: 1fr; padding: 22px 18px; gap: 16px; }
  .fiche-contenu img { width: 150px; }
}

/* 13 oct. (4) — pages « idées cadeaux » (ops/pages_idees.py) */
.page-idee .idee-bloc { padding: 46px 0 0; }
.page-idee .idee-bloc:last-of-type { padding-bottom: 60px; }
.page-idee .idee-bloc h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.page-idee .idee-bloc p { max-width: 760px; line-height: 1.65; margin: 0 0 14px; font-size: 17px; }
.page-idee .etal { margin-top: 18px; }
.page-idee .voir-lien { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--rouge); }
.page-idee .fiche .sous { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rouge); }
.page-idee .fiche-livre-idee img { aspect-ratio: 314 / 500; object-fit: cover; }
.page-idee .faq { display: grid; gap: 10px; max-width: 820px; }
.page-idee .faq details { background: #fff; border: 1px solid var(--trait, #e6dccf); border-radius: 14px; padding: 14px 18px; }
.page-idee .faq summary { font-weight: 700; cursor: pointer; }
.page-idee .faq details p { margin: 10px 0 0; font-size: 16px; }
.page-idee .autres-idees { font-size: 15px; }
.page-idee .autres-idees a.ici { font-weight: 800; text-decoration: none; }
.bloc-inscription { padding: 50px 0; }
.idees-liens { text-align: center; margin: 22px auto 0; max-width: 860px; font-size: 15px; line-height: 1.7; }
