/* =========================================================
   Éditions Déclics & Sens — feuille de style
   Palette : bleu nuit du logo, doré, crème, beige grisé
   Polices : Georgia (titres, comme le logo), Avenir (texte)
   ========================================================= */

:root {
  --bleu: #002740;
  --bleu-2: #0A2B5F;
  --dore: #C9A96E;
  --dore-fonce: #9C7B42;
  --creme: #FCF6F1;
  --beige: #DCD4CB;
  --texte: #1E2E40;
  --serif: Georgia, "Times New Roman", serif;
  --futura: Futura, "Futura PT", "Century Gothic", "Avenir Next", sans-serif;
  --sans: Avenir, "Avenir Next", "Nunito Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--creme); color: var(--texte); font-family: var(--sans); font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--bleu); text-decoration-color: var(--dore); text-underline-offset: 4px; }
a:hover { color: var(--dore-fonce); }

h1, h2, h3 { font-family: var(--serif); font-weight: normal; color: var(--bleu); line-height: 1.2; margin: 0 0 .6em; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.2em; }

.conteneur { width: min(1120px, 100% - 48px); margin-inline: auto; }
.etroit { width: min(720px, 100% - 48px); margin-inline: auto; }
.centre { text-align: center; }

/* Sur-titre en Georgia espacé, comme « ÉDITIONS » dans le logo */
.surtitre { display: block; font-family: var(--futura); font-size: .76rem; letter-spacing: .34em; text-transform: uppercase; color: var(--dore-fonce); margin-bottom: 1.1em; }
.filet { width: 90px; height: 1px; background: var(--dore); margin: 26px auto; }
.filet.gauche { margin-left: 0; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 10; background: rgba(252, 246, 241, .95); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(201, 169, 110, .35); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marque img { height: 46px; width: auto; }
.marque span { font-family: var(--serif); color: var(--bleu); font-size: 1.15rem; letter-spacing: .04em; }
.marque em { font-style: normal; color: var(--dore); }
.menu { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.menu a { font-family: var(--futura); font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bleu); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.menu a:hover { border-color: var(--dore); color: var(--bleu); }
#menu-mobile, .burger { display: none; }
@media (max-width: 860px) {
  .burger { display: block; cursor: pointer; width: 30px; height: 20px; position: relative; }
  .burger span, .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 30px; height: 1.5px; background: var(--bleu); }
  .burger span { top: 9px; } .burger span::before { top: -8px; } .burger span::after { top: 8px; }
  .menu { position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; align-items: center; gap: 22px; background: var(--creme); padding: 28px 0 34px; border-bottom: 1px solid var(--beige); display: none; }
  #menu-mobile:checked ~ .menu { display: flex; }
}

/* Boutons */
.bouton { display: inline-block; font-family: var(--futura); font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; padding: 15px 32px; border: 1px solid var(--bleu); background: var(--bleu); color: var(--creme); transition: background .3s, color .3s; }
.bouton:hover { background: transparent; color: var(--bleu); }
.bouton.leger { background: transparent; color: var(--bleu); }
.bouton.leger:hover { background: var(--bleu); color: var(--creme); }

section { padding: clamp(70px, 10vw, 120px) 0; }
.fond-beige { background: var(--beige); }
.fond-beige .surtitre { color: #85662F; }
.fond-bleu { background: var(--bleu); color: var(--creme); }
.fond-bleu h2 { color: var(--creme); }
.fond-bleu .surtitre { color: #E3C68F; }

/* Héros */
.heros { text-align: center; padding: clamp(60px, 9vw, 110px) 0 clamp(70px, 10vw, 120px); }
.heros .logo { width: min(420px, 80%); margin: 0 auto 36px; }
.heros .devise { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--bleu); margin-bottom: 18px; }
.heros .intro { max-width: 640px; margin: 0 auto 36px; }

/* Citation */
.citation { text-align: center; }
.citation blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.5; margin: 0 auto; max-width: 820px; }
.citation cite { display: block; margin-top: 22px; font-family: var(--futura); font-style: normal; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: #E3C68F; }

/* Deux colonnes */
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
@media (max-width: 860px) { .deux-colonnes { grid-template-columns: 1fr; } }
.photo { position: relative; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(252, 246, 241, .6); pointer-events: none; }
.a-completer { background: rgba(201, 169, 110, .18); padding: 0 4px; }

/* Engagements éditoriaux */
.engagements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 46px; }
.engagement { background: var(--creme); padding: 38px 30px; border-top: 2px solid var(--dore); }
.engagement h3 { font-size: 1.2rem; }
.engagement p { margin: 0; font-size: .97rem; }
@media (max-width: 860px) { .engagements { grid-template-columns: 1fr; } }

/* Définition façon dictionnaire */
.definition { background: var(--creme); border: 1px solid rgba(201, 169, 110, .6); padding: 30px 34px; margin: 26px 0; }
.definition .mot { font-family: var(--serif); font-size: 1.6rem; color: var(--bleu); letter-spacing: .06em; }
.definition .phon { font-family: var(--serif); font-style: italic; color: var(--dore-fonce); margin-left: 8px; }
.definition ol { margin: 14px 0 0; padding-left: 20px; font-size: .97rem; }
.definition li { margin-bottom: 6px; }

/* Galerie */
.galerie { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
.galerie figure { margin: 0; }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.galerie figcaption { font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--bleu); margin-top: 10px; text-align: center; }
@media (max-width: 700px) { .galerie { grid-template-columns: 1fr; } }

/* Cartes contact */
.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.carte { background: var(--creme); border: 1px solid rgba(201, 169, 110, .55); padding: 36px 28px; text-align: center; }
.carte h3 { font-size: 1.15rem; }
.carte p { font-size: .95rem; margin-bottom: .8em; }
@media (max-width: 860px) { .cartes { grid-template-columns: 1fr; } }

/* Pied de page */
.pied { background: var(--beige); padding: 64px 0 28px; text-align: center; font-size: .9rem; }
.pied .logo { width: 170px; margin: 0 auto 24px; }
.pied nav { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.pied nav a { font-family: var(--futura); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.pied .bas { border-top: 1px solid rgba(0, 39, 64, .15); padding-top: 22px; margin-top: 18px; font-size: .8rem; color: #4A5868; }

.legal h2 { font-size: 1.4rem; margin-top: 2em; }

/* ---------- Deux citations ---------- */
.duo-citations { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.duo-citations blockquote { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
@media (max-width: 860px) { .duo-citations { grid-template-columns: 1fr; gap: 50px; } }

/* ---------- Les deux fondateurs ---------- */
.fondateurs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 46px 0 0; }
.fondateur { background: var(--creme); border-top: 2px solid var(--dore); padding: 34px 30px; }
.fondateur .role { font-family: var(--futura); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--dore-fonce); display: block; margin-bottom: 8px; }
.fondateur h3 { font-size: 1.45rem; margin-bottom: .4em; }
.fondateur p { margin: 0; font-size: .97rem; }
@media (max-width: 860px) { .fondateurs { grid-template-columns: 1fr; } }

/* ---------- Notre histoire (frise) ---------- */
.histoire { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 80px); align-items: start; margin-top: 60px; }
.frise { list-style: none; margin: 0; padding: 0; position: relative; }
.frise::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--dore); }
.frise li { position: relative; padding: 0 0 28px 40px; }
.frise li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; background: var(--creme) url("../img/etoile.svg") center / 11px no-repeat; border-radius: 50%; }
.frise h3 { font-size: 1.15rem; margin-bottom: .25em; }
.frise p { margin: 0; font-size: .97rem; }
.histoire .photos { display: grid; gap: 22px; position: sticky; top: 110px; }
.histoire figure { margin: 0; }
.histoire figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.histoire figcaption { font-family: var(--serif); font-style: italic; font-size: .92rem; color: var(--bleu); margin-top: 8px; text-align: center; }
.parole { margin-top: 10px; padding: 20px 24px; border-left: 2px solid var(--dore); font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--bleu); background: rgba(201,169,110,.08); }
.parole span { display: block; font-family: var(--futura); font-style: normal; font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--dore-fonce); margin-top: 10px; }
@media (max-width: 860px) { .histoire { grid-template-columns: 1fr; } .histoire .photos { position: static; } }

/* ---------- Le livre : section ---------- */
.livre-grille { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.livre-grille .sous-titre { font-family: var(--serif); font-size: 1.25rem; color: var(--bleu); line-height: 1.45; margin-bottom: .3em; }
.livre-grille .lucidite { font-family: var(--serif); font-style: italic; color: var(--dore-fonce); font-size: 1.1rem; }
@media (max-width: 860px) { .livre-grille { grid-template-columns: 1fr; } .livre-grille .scene3d { order: -1; } }

.fiche-ligne { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 60px 0 0; border-top: 1px solid rgba(201,169,110,.55); border-bottom: 1px solid rgba(201,169,110,.55); }
.fiche-ligne div { padding: 20px 16px; border-right: 1px solid rgba(201,169,110,.35); }
.fiche-ligne div:last-child { border-right: 0; }
.fiche-ligne dt { font-family: var(--futura); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--dore-fonce); margin-bottom: 6px; }
.fiche-ligne dd { margin: 0; font-family: var(--serif); color: var(--bleu); font-size: 1rem; line-height: 1.4; }

/* ---------- Le livre en 3D qui tourne ---------- */
.scene3d { perspective: 1600px; display: flex; flex-direction: column; align-items: center; padding: 30px 0 10px; }
.livre3d {
  --w: min(300px, 62vw); --h: calc(var(--w) * 1.36); --e: calc(var(--w) * .087);
  width: var(--w); height: var(--h); position: relative; transform-style: preserve-3d;
  animation: tourner 18s ease-in-out infinite;
}
.scene3d:hover .livre3d { animation-play-state: paused; }
.livre3d .face { position: absolute; top: 0; left: 0; backface-visibility: hidden; }
.livre3d .avant, .livre3d .arriere { width: var(--w); height: var(--h); }
.livre3d .avant { transform: translateZ(calc(var(--e) / 2)); box-shadow: inset 6px 0 10px -6px rgba(0,0,0,.35); }
.livre3d .arriere { transform: rotateY(180deg) translateZ(calc(var(--e) / 2)); }
.livre3d .tranche, .livre3d .pages { width: var(--e); height: var(--h); left: calc((var(--w) - var(--e)) / 2); }
.livre3d .tranche { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.livre3d .pages { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); background: repeating-linear-gradient(90deg, #f6efe6 0 2px, #e2d8cb 2px 3px); }
.livre3d .haut, .livre3d .bas { width: var(--w); height: var(--e); top: calc((var(--h) - var(--e)) / 2); background: repeating-linear-gradient(0deg, #f6efe6 0 2px, #e2d8cb 2px 3px); }
.livre3d .haut { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); }
.livre3d .bas { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); }
.livre3d img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ombre { width: calc(min(300px, 62vw) * .9); height: 26px; margin-top: 34px; background: radial-gradient(ellipse at center, rgba(0,39,64,.28) 0%, transparent 70%); }
.consigne { font-family: var(--futura); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--dore-fonce); margin-top: 6px; }
@keyframes tourner {
  0%, 18%   { transform: rotateX(4deg) rotateY(-24deg); }
  34%, 44%  { transform: rotateX(4deg) rotateY(72deg); }
  60%, 78%  { transform: rotateX(4deg) rotateY(162deg); }
  100%      { transform: rotateX(4deg) rotateY(336deg); }
}
@media (prefers-reduced-motion: reduce) { .livre3d { animation: none; transform: rotateY(-24deg); } }

/* ---------- Photo seule ---------- */
.photo-seule { margin: 44px auto 0; max-width: 760px; }
.photo-seule img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-seule figcaption { font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--bleu); margin-top: 10px; text-align: center; }

/* ---------- Bloc accompagnement (accueil) ---------- */
.accompagnement h2 { margin: 0; }
.accompagnement p { color: var(--beige); }
.bouton.dore { background: var(--dore); border-color: var(--dore); color: var(--bleu); margin-top: 8px; }
.bouton.dore:hover { background: transparent; color: var(--creme); }
.menu a[aria-current="page"] { border-color: var(--dore); }
