/* 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; }

/* ------------------------------------------------------------- Responsive */
@media (max-width: 860px) {
  .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; }
}
