/* public/css/content.css
   Styles des pages de contenu & légales (Notre histoire, CGV, Mentions légales,
   Confidentialité, Livraison & retours, Contact). S'appuie sur les variables de
   thème définies dans site.css (:root : --fond, --sauge, --laiton, --encre…).
   Fichier volontairement léger ; aucune redéfinition des classes de site.css. */

/* ------------------------------------------------------------------ Hero doux */
.content-hero {
  background: linear-gradient(180deg, #F2F4EC 0%, #FBFAF5 100%);
  border-bottom: 1px solid var(--bordure);
}
.content-hero-inner { padding: 34px 32px 52px; }
.content-hero .eyebrow { margin-bottom: 12px; }
.content-hero h1 {
  font-family: var(--serif); font-weight: 500; font-size: 52px; line-height: 1.05;
  margin: 0 0 16px; color: var(--encre); max-width: 760px;
}
.content-hero .lead {
  font-size: 16.5px; line-height: 1.75; color: var(--texte-doux);
  margin: 0; max-width: 680px;
}

/* --------------------------------------------------------- Corps de contenu */
.content-wrap { padding: 62px 32px 84px; }
.content-narrow { max-width: 760px; margin: 0 auto; }

/* Bloc éditorial générique (paragraphes aérés). */
.prose p { font-size: 15.5px; line-height: 1.82; color: var(--texte-doux); margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--sauge); }
.prose strong { color: var(--encre); font-weight: 600; }

/* ------------------------------------------------- Sections « Notre histoire » */
.histoire-section { padding: 74px 0; border-top: 1px solid var(--bordure); }
.histoire-section:first-of-type { border-top: none; }
.histoire-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.histoire-split.reverse .histoire-media { order: 2; }
.histoire-media {
  border-radius: 6px; overflow: hidden; background: #F4F2E9;
  aspect-ratio: 4 / 3; box-shadow: 0 24px 60px -34px rgba(44, 51, 39, .5);
}
.histoire-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.histoire-copy h2 {
  font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: 1.12;
  margin: 14px 0 20px; color: var(--encre);
}
.histoire-copy p { font-size: 15.5px; line-height: 1.82; color: var(--texte-doux); margin: 0 0 16px; }
.histoire-copy p:last-child { margin-bottom: 0; }

/* Liste d'engagements. */
.engagement-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.engagement-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; line-height: 1.6; color: var(--texte-doux);
}
.engagement-list .ico { color: var(--sauge); font-size: 18px; line-height: 1.5; flex-shrink: 0; }

/* Bandeau de chiffres/repères. */
.figures-band { background: var(--sauge); color: #EDEFE2; }
.figures-inner {
  padding: 52px 32px; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 30px; text-align: center;
}
.figure-item .figure-value {
  font-family: var(--serif); font-weight: 500; font-size: 30px; color: #FBFAF5; line-height: 1.1;
}
.figure-item .figure-label {
  font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: #C3CBB0; margin-top: 8px;
}

/* Citation maison. */
.content-quote {
  background: var(--section); border-top: 1px solid var(--bordure); border-bottom: 1px solid var(--bordure);
  text-align: center; padding: 74px 32px;
}
.content-quote .q {
  font-family: var(--serif); font-style: italic; font-size: 32px; line-height: 1.38;
  color: var(--encre); max-width: 760px; margin: 0 auto 18px;
}
.content-quote .a {
  font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--kraft);
}

/* CTA vers la boutique. */
.content-cta { text-align: center; padding: 76px 32px; }
.content-cta h2 {
  font-family: var(--serif); font-weight: 500; font-size: 34px; margin: 0 0 14px; color: var(--encre);
}
.content-cta p { font-size: 15px; line-height: 1.7; color: var(--texte-doux); max-width: 480px; margin: 0 auto 28px; }

/* -------------------------------------------------------- Documents légaux */
.legal-doc { max-width: 820px; margin: 0 auto; }
.legal-updated {
  font-family: var(--sans); font-size: 12px; letter-spacing: .04em; color: var(--texte-gris);
  margin: 0 0 40px;
}
.legal-section { margin: 0 0 40px; }
.legal-section > h2 {
  font-family: var(--serif); font-weight: 500; font-size: 25px; color: var(--encre);
  margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--bordure);
}
.legal-section h3 {
  font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--encre);
  margin: 22px 0 8px; letter-spacing: .01em;
}
.legal-section p { font-size: 14.5px; line-height: 1.8; color: var(--texte-doux); margin: 0 0 14px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 0 0 14px; padding-left: 22px; }
.legal-section li { font-size: 14.5px; line-height: 1.78; color: var(--texte-doux); margin-bottom: 8px; }
.legal-section a { color: var(--sauge); }

/* Numérotation automatique des articles CGV. */
.legal-numbered { counter-reset: legal-art; }
.legal-numbered .legal-section > h2 { display: flex; align-items: baseline; gap: 12px; }
.legal-numbered .legal-section > h2::before {
  counter-increment: legal-art; content: counter(legal-art);
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--laiton); border: 1px solid var(--laiton); border-radius: 50%;
  min-width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; align-self: center;
}

/* Encadré (coordonnées éditeur, valeurs settings, modèle de formulaire…). */
.legal-card {
  background: var(--section); border: 1px solid var(--bordure); border-radius: 6px;
  padding: 24px 26px; margin: 0 0 16px;
}
.legal-card dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.legal-card dt { font-size: 13px; color: var(--texte-gris); }
.legal-card dd { margin: 0; font-size: 14.5px; color: var(--encre); }
.legal-card .todo { color: var(--laiton); font-style: italic; }
.legal-card .form-model {
  font-family: var(--sans); font-size: 13.5px; line-height: 1.9; color: var(--texte-doux);
  white-space: pre-wrap; margin: 0;
}

/* Tableau simple (frais / zones de livraison). */
.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.legal-table th, .legal-table td {
  text-align: left; font-size: 14.5px; padding: 12px 14px; border-bottom: 1px solid var(--bordure);
}
.legal-table th { font-family: var(--sans); font-weight: 600; color: var(--encre); background: var(--section); }
.legal-table td { color: var(--texte-doux); }
.legal-table td strong { color: var(--laiton); }

/* ---------------------------------------------------------------- Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-aside h2 {
  font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--encre); margin: 0 0 18px;
}
.contact-coords { display: grid; gap: 16px; }
.contact-coord { display: flex; align-items: flex-start; gap: 12px; }
.contact-coord .ico { color: var(--sauge); font-size: 18px; line-height: 1.4; flex-shrink: 0; }
.contact-coord .k {
  font-family: var(--sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--texte-gris); margin-bottom: 2px;
}
.contact-coord .v { font-size: 14.5px; color: var(--encre); line-height: 1.55; }
.contact-coord a { color: var(--encre); text-decoration: none; }
.contact-coord a:hover { color: var(--sauge); }

.contact-form { background: var(--section); border: 1px solid var(--bordure); border-radius: 6px; padding: 30px 30px 34px; }
.contact-form .field { margin-bottom: 18px; }
.contact-form label {
  display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--encre); margin-bottom: 7px;
}
.contact-form input, .contact-form textarea {
  width: 100%; box-sizing: border-box; background: var(--fond); border: 1px solid var(--bordure);
  border-radius: 4px; padding: 13px 15px; font-family: var(--sans); font-size: 14.5px;
  color: var(--encre); transition: border-color .15s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--sauge); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button {
  background: var(--sauge); color: var(--fond); border: none; border-radius: 4px;
  padding: 15px 30px; font-family: var(--sans); font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; cursor: pointer; transition: background .15s ease;
}
.contact-form button:hover { background: var(--sauge-fonce); }
.contact-note { font-size: 12.5px; color: var(--texte-gris); margin: 16px 0 0; line-height: 1.6; }

/* Message de retour (succès / erreur). */
.form-flash { border-radius: 5px; padding: 14px 18px; font-size: 14px; line-height: 1.6; margin: 0 0 22px; }
.form-flash.ok { background: #EDF3E7; border: 1px solid #C6D8B4; color: #465C34; }
.form-flash.err { background: #FBEDEA; border: 1px solid #E3C0B7; color: #8A3B2B; }

.contact-thanks { text-align: center; max-width: 560px; margin: 0 auto; padding: 30px 0 10px; }
.contact-thanks .ico { font-size: 44px; color: var(--sauge); line-height: 1; }
.contact-thanks h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; color: var(--encre); margin: 18px 0 12px; }
.contact-thanks p { font-size: 15px; line-height: 1.7; color: var(--texte-doux); margin: 0 auto 26px; }

/* ------------------------------------------------------------- Espace Pro */
.pro-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pro-section { padding: 64px 32px 20px; }
.pro-section--alt {
  padding: 64px 0; margin-top: 44px;
  background: var(--section); border-top: 1px solid var(--bordure); border-bottom: 1px solid var(--bordure);
}
.pro-section--alt > .container { padding: 0 32px; }
.pro-section-head { margin-bottom: 26px; }
.pro-section-head .eyebrow { margin-bottom: 10px; }
.pro-section-head h2 {
  font-family: var(--serif); font-weight: 500; font-size: 34px; color: var(--encre); margin: 0;
}
.pro-viewer {
  position: relative; width: 100%; aspect-ratio: 16 / 10; min-height: 420px; max-height: 82vh;
  border: 1px solid var(--bordure); border-radius: 8px; overflow: hidden; background: var(--section);
}
.pro-viewer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pro-viewer-actions { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 16px; }
.pro-viewer-actions a {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sauge); text-decoration: none;
}
.pro-viewer-actions a:hover { color: var(--sauge-fonce); text-decoration: underline; }

.pro-doc-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 34px; }
.pro-doc-group h3 {
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--kraft); margin: 0 0 12px;
}
.pro-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pro-doc a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  background: var(--fond); border: 1px solid var(--bordure); border-radius: 6px;
  padding: 13px 16px; color: var(--encre); text-decoration: none; transition: border-color .15s ease;
}
.pro-doc a:hover { border-color: var(--sauge); }
.pro-doc-ico { color: var(--sauge); display: flex; }
.pro-doc-title { font-size: 14.5px; line-height: 1.45; }
.pro-doc-meta { font-size: 12.5px; color: var(--texte-gris); white-space: nowrap; }

.pro-aside-text { font-size: 15px; line-height: 1.75; color: var(--texte-doux); margin: 0 0 22px; }
.pro-aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pro-aside-list li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.6; color: var(--texte-doux); }
.pro-aside-list .ico { color: var(--sauge); flex-shrink: 0; }
.pro-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.pro-form select {
  width: 100%; box-sizing: border-box; background: var(--fond); border: 1px solid var(--bordure);
  border-radius: 4px; padding: 13px 15px; font-family: var(--sans); font-size: 14.5px; color: var(--encre);
}
.pro-form select:focus { outline: none; border-color: var(--sauge); }

/* ------------------------------------------------------------------- Blog */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 28px;
}
.blog-card { display: flex; flex-direction: column; min-width: 0; }
.blog-card-media {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10.5;
  border-radius: 6px; overflow: hidden; background: var(--section); text-decoration: none;
}
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.blog-card:hover .blog-card-media img { transform: scale(1.03); }
.blog-card-motif { font-size: 34px; color: var(--kraft); }
.blog-card-body { padding-top: 18px; display: flex; flex-direction: column; flex: 1; }
.blog-card-date { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--kraft); }
.blog-card-title {
  font-family: var(--serif); font-weight: 500; font-size: 25px; line-height: 1.2;
  margin: 10px 0 10px; color: var(--encre);
}
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover { color: var(--sauge); }
.blog-card-excerpt { font-size: 14.5px; line-height: 1.7; color: var(--texte-doux); margin: 0 0 14px; }
.blog-card-more { margin-top: auto; font-size: 13px; letter-spacing: .04em; color: var(--sauge); text-decoration: none; }

.blog-hero .eyebrow { text-transform: none; letter-spacing: .04em; }
.blog-hero h1 { max-width: 860px; }
.blog-wrap { padding-top: 46px; }
.blog-article { max-width: 760px; margin: 0 auto; }
.blog-cover { margin: 0 0 38px; border-radius: 6px; overflow: hidden; background: var(--section); }
.blog-cover img { width: 100%; height: auto; display: block; }
.blog-body { font-size: 16.5px; line-height: 1.85; }
.blog-body p { margin: 0 0 20px; }
.blog-body h2 { font-size: 30px; margin: 40px 0 14px; }
.blog-body h3 { font-size: 17px; margin: 30px 0 10px; }
.blog-body ul, .blog-body ol { margin: 0 0 20px; }
.blog-fin {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--bordure);
}
.blog-retour { font-size: 14px; color: var(--texte-gris); text-decoration: none; }
.blog-retour:hover { color: var(--sauge); }
.blog-autres { margin-top: 80px; padding-top: 56px; border-top: 1px solid var(--bordure); }
.blog-autres > h2 {
  font-family: var(--serif); font-weight: 500; font-size: 34px; margin: 0 0 30px; color: var(--encre);
}
.blog-autres .blog-card-title { font-size: 22px; }
.blog-apercu {
  background: #F3ECDA; color: #6F5622; text-align: center; font-size: 14px;
  padding: 12px 20px; border-bottom: 1px solid #E3D6AE;
}
.blog-apercu a { color: inherit; font-weight: 600; }

/* ------------------------------------------------------------- Responsive */
@media (max-width: 1000px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .blog-grid { grid-template-columns: 1fr; gap: 40px; }
  .blog-body { font-size: 16px; }
  .blog-body h2 { font-size: 26px; }
  .blog-autres { margin-top: 56px; padding-top: 40px; }
  .content-hero-inner { padding: 26px 20px 40px; }
  .content-hero h1 { font-size: 38px; }
  .content-wrap { padding: 44px 20px 60px; }
  .histoire-split { grid-template-columns: 1fr; gap: 30px; }
  .histoire-split.reverse .histoire-media { order: 0; }
  .histoire-section { padding: 52px 0; }
  .figures-inner { grid-template-columns: 1fr; gap: 22px; padding: 40px 20px; }
  .content-quote .q { font-size: 25px; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .legal-card dl { grid-template-columns: 1fr; gap: 2px 0; }
  .legal-card dt { margin-top: 8px; }
  .pro-section { padding: 44px 20px 10px; }
  .pro-section--alt { padding: 44px 0; margin-top: 30px; }
  .pro-section--alt > .container { padding: 0 20px; }
  .pro-section-head h2 { font-size: 28px; }
  .pro-viewer { aspect-ratio: 3 / 4; min-height: 0; max-height: 75vh; }
  .pro-form-row { grid-template-columns: 1fr; }
  .pro-doc-groups { grid-template-columns: 1fr; }
}

/* Espace Pro : étagère de flipbooks */
.pro-section-lead { margin: 10px 0 0; color: var(--texte-doux); font-size: 15px; }
.pro-shelf {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 40px 34px;
  padding: 18px 0 26px;
}
.pro-shelf--seul { grid-template-columns: minmax(210px, 300px); justify-content: center; }
.pro-livre { display: flex; flex-direction: column; color: var(--encre); text-decoration: none; }
.pro-livre-couv {
  position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: 3px 8px 8px 3px; background: var(--section);
  box-shadow: 0 1px 2px rgba(44, 51, 39, .16), 10px 16px 28px -14px rgba(44, 51, 39, .45);
  transform-origin: left center;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}
/* Le dos du livre : une ombre le long de la reliure. */
.pro-livre-couv::before {
  content: ""; position: absolute; z-index: 1; inset: 0 auto 0 0; width: 14px; pointer-events: none;
  background: linear-gradient(90deg, rgba(44, 51, 39, .22), rgba(255, 255, 255, .22) 45%, rgba(44, 51, 39, .08));
}
.pro-livre-couv img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pro-livre:hover .pro-livre-couv,
.pro-livre:focus-visible .pro-livre-couv {
  transform: perspective(900px) rotateY(-9deg) translateY(-4px);
  box-shadow: 0 2px 4px rgba(44, 51, 39, .16), 18px 24px 34px -14px rgba(44, 51, 39, .5);
}
.pro-livre-dessin {
  display: flex; flex-direction: column; justify-content: space-between; height: 100%;
  padding: 28px 22px 26px 30px; background: linear-gradient(160deg, #5C6B4C, #414D35); color: #FBFAF5;
}
.pro-livre-marque { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; opacity: .82; }
.pro-livre-nom { font-family: var(--serif); font-size: 27px; line-height: 1.12; }
.pro-livre-titre { margin-top: 16px; font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.pro-livre-sous { margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--texte-doux); }
.pro-livre-action { margin-top: 8px; font-size: 13px; letter-spacing: .04em; color: var(--sauge); }
.pro-livre:hover .pro-livre-action { color: var(--sauge-fonce); text-decoration: underline; }

/* Lecteur : le flipbook s'ouvre dans la page. */
.pro-lecteur {
  width: min(1180px, calc(100vw - 32px)); height: min(860px, calc(100dvh - 32px)); max-width: none; max-height: none;
  padding: 0; border: 0; border-radius: 10px; background: var(--fond); overflow: hidden;
}
.pro-lecteur[open] { display: flex; flex-direction: column; }
.pro-lecteur::backdrop { background: rgba(32, 37, 28, .68); }
.pro-lecteur-tete {
  display: flex; align-items: center; gap: 18px; padding: 10px 12px 10px 20px;
  border-bottom: 1px solid var(--bordure);
}
.pro-lecteur-tete h2 {
  flex: 1; min-width: 0; margin: 0; font-family: var(--serif); font-weight: 500; font-size: 21px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--encre);
}
.pro-lecteur-tete a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sauge); white-space: nowrap; }
.pro-lecteur-tete button {
  width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  font-size: 24px; line-height: 1; color: var(--encre);
}
.pro-lecteur-tete button:hover { background: var(--section); }
.pro-lecteur iframe { flex: 1; width: 100%; border: 0; background: var(--section); }

/* Fiches de données de sécurité (page à lien secret) */
.pro-fds { max-width: 820px; }
.pro-fds-recherche { margin-bottom: 22px; }
.pro-fds-recherche label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 500; }
.pro-fds-recherche input {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--encre);
  background: #fff; border: 1px solid var(--bordure); border-radius: 8px;
}
.pro-fds-vide { color: var(--texte-doux); }
.pro-doc[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .pro-livre-couv { transition: none; }
  .pro-livre:hover .pro-livre-couv, .pro-livre:focus-visible .pro-livre-couv { transform: none; }
}
@media (max-width: 720px) {
  .pro-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 18px; }
  .pro-shelf--seul { grid-template-columns: minmax(180px, 260px); }
  .pro-livre-nom { font-size: 21px; }
  .pro-livre-dessin { padding: 20px 14px 18px 24px; }
  .pro-lecteur { width: 100vw; height: 100dvh; max-width: 100vw; border-radius: 0; }
  .pro-lecteur-tete h2 { font-size: 18px; }
}
