/* ==========================================================================
   sechage-plantes-solaire.fr — feuille de style
   Identité : chaleureuse, végétale, qualité-produit. Vert forêt + crème
   naturelle + accent curcuma (miel). Titres en serif système (éditorial,
   « qualité »), corps en sans système. Photos produits en emplacements
   commentés. Mobile-first, zéro dépendance, system fonts only.
   ========================================================================== */

:root {
  --foret: #23402c;
  --foret2: #2c5138;
  --mousse: #3d6b47;
  --sauge: #6b8e6e;
  --creme: #f6f2e9;
  --creme2: #efe9db;
  --papier: #fffdf8;
  --ligne: #e3ddcc;
  --ligne2: #d6cfb9;
  --texte: #2a2b26;
  --texte-doux: #63645a;
  --inverse: #f3efe4;
  --inverse-doux: #bfcbb9;
  --curcuma: #d99a2b;
  --curcuma-fonce: #b1740f;
  --curcuma-voile: #f8efd9;
  --terre: #b5623a;
  --terre-voile: #f5e6dd;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--texte);
  background: var(--papier);
}

.serif {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
}

/* ---------- En-tête ---------- */

.entete {
  background: var(--foret);
  border-bottom: 3px solid var(--curcuma);
}
.entete-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.logo-mark { flex: 0 0 auto; line-height: 0; }
.marque {
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  text-decoration: none;
  color: var(--inverse);
  font-weight: 700;
  font-size: 1.24rem;
  letter-spacing: 0.01em;
}
.marque b { color: var(--curcuma); font-weight: 700; }
.sous-marque {
  flex: 1 1 100%;
  font-size: 0.82rem;
  color: var(--inverse-doux);
  letter-spacing: 0.01em;
  margin-top: 0.2rem;
}

/* ---------- Navigation ---------- */

.nav { background: var(--foret2); }
.nav ul {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 0.6rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}
.nav a {
  display: block;
  padding: 0.65rem 0.85rem;
  color: var(--inverse-doux);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a:focus { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--curcuma); }
.nav .nav-cta { margin-left: auto; color: var(--curcuma); }
.nav .nav-cta:hover { color: #f0c368; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--foret);
  background-image:
    radial-gradient(115% 130% at 88% -20%, rgba(217,154,43,0.20) 0%, rgba(217,154,43,0) 55%),
    radial-gradient(90% 120% at 8% 115%, rgba(107,142,110,0.28) 0%, rgba(107,142,110,0) 60%),
    linear-gradient(165deg, #23402c 0%, #2c5138 100%);
  color: var(--inverse);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(217,154,43,0.5), rgba(217,154,43,0.5));
  background-size: 100% 3px;
  background-repeat: no-repeat;
  background-position: bottom;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.9rem 1.25rem 3rem;
}
.kicker {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--curcuma);
  margin-bottom: 0.9rem;
}
.hero h1 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 2rem;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 1rem;
}
.hero h1 em { color: var(--curcuma); font-style: italic; }
.hero-sub {
  font-size: 1.1rem;
  color: #dfe7dc;
  max-width: 40em;
  margin-bottom: 1.6rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.97rem;
  padding: 0.78rem 1.2rem;
  border-radius: 6px;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--curcuma); color: #3a2607; border: 2px solid var(--curcuma); }
.btn-primary:hover { background: #c68a1f; border-color: #c68a1f; }
.btn-ghost { background: transparent; color: var(--inverse); border: 2px solid var(--sauge); }
.btn-ghost:hover { border-color: var(--inverse); background: rgba(255,255,255,0.05); }

/* ---------- Corps ---------- */

main { max-width: 900px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }

.maj {
  font-size: 0.82rem;
  color: var(--texte-doux);
  margin-bottom: 1.6rem;
  font-style: italic;
}

h2 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 1.6rem;
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--foret);
  margin: 2.6rem 0 0.9rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--ligne2);
}
h2 .num {
  font-family: Georgia, serif;
  color: var(--curcuma-fonce);
  font-size: 1.15rem;
  font-weight: 700;
  margin-right: 0.5rem;
}
h3 {
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--mousse);
  margin: 1.7rem 0 0.5rem;
}

p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.35rem; }
li { margin-bottom: 0.45rem; }

a { color: var(--curcuma-fonce); }
a:hover { color: var(--terre); }

strong { color: var(--foret); }
em { color: inherit; }

.chapeau { font-size: 1.14rem; color: var(--texte-doux); margin-bottom: 1.6rem; }

/* ---------- Bandeau de chiffres (stats) ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ligne2);
  border: 1px solid var(--ligne2);
  margin: 1.9rem 0;
  border-radius: 8px;
  overflow: hidden;
}
.stat { background: var(--creme); padding: 1rem 1.1rem; }
.stat .n {
  font-family: Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--curcuma-fonce);
  line-height: 1.1;
}
.stat .l { font-size: 0.86rem; color: var(--texte-doux); margin-top: 0.25rem; }

/* ---------- Cartes « à qui » ---------- */

.cartes { display: grid; grid-template-columns: 1fr; gap: 0.9rem; margin: 1.6rem 0; }
.carte {
  background: var(--creme);
  border: 1px solid var(--ligne);
  border-left: 4px solid var(--sauge);
  border-radius: 8px;
  padding: 1rem 1.15rem;
}
.carte h3 { margin: 0 0 0.35rem; color: var(--foret); font-size: 1.08rem; }
.carte p { margin: 0; font-size: 0.96rem; color: var(--texte-doux); }
.carte .pastille {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mousse);
  background: #e6efe3;
  border-radius: 999px;
  padding: 0.12rem 0.6rem;
  margin-bottom: 0.5rem;
}

/* ---------- Emplacement photo commenté (rendu léger) ---------- */

.photo-slot {
  border: 1px dashed var(--ligne2);
  background: var(--creme2);
  border-radius: 8px;
  padding: 1.4rem 1rem;
  margin: 1.5rem 0;
  text-align: center;
  color: var(--texte-doux);
  font-size: 0.85rem;
  font-style: italic;
}

/* ---------- Étapes (procédé doux) ---------- */

.etapes { list-style: none; margin: 1.6rem 0; padding: 0; }
.etape {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ligne);
}
.etape:last-child { border-bottom: none; }
.etape .idx {
  flex: 0 0 auto;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  background: var(--mousse);
  width: 2.3rem; height: 2.3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.etape:nth-child(odd) .idx { background: var(--curcuma); color: #3a2607; }
.etape .corps h3 { margin: 0 0 0.25rem; }
.etape .corps p { margin: 0; }

/* ---------- Liste « pourquoi » (science du séchage) ---------- */

.pourquoi { list-style: none; margin: 1.4rem 0; padding: 0; }
.pourquoi li {
  background: var(--creme);
  border: 1px solid var(--ligne);
  border-left: 4px solid var(--curcuma);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.7rem;
  font-size: 0.99rem;
}
.pourquoi li strong { color: var(--foret); }

/* ---------- Encadrés ---------- */

.encadre {
  background: var(--creme);
  border: 1px solid var(--ligne);
  border-left: 4px solid var(--mousse);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
  font-size: 0.99rem;
}
.encadre-titre {
  display: block;
  font-weight: 700;
  color: var(--foret);
  margin-bottom: 0.35rem;
}
.encadre.exemple { border-left-color: var(--curcuma); background: var(--curcuma-voile); }
.encadre.alerte { border-left-color: var(--terre); background: var(--terre-voile); }
.encadre.zones { border-left-color: var(--sauge); }

/* ---------- Repères techniques (grille de specs) ---------- */

.specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--ligne2);
  border: 1px solid var(--ligne2);
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
}
.spec { background: var(--papier); padding: 0.85rem 1.1rem; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.spec .k { font-size: 0.92rem; color: var(--texte-doux); }
.spec .v { font-weight: 700; color: var(--foret); text-align: right; }

.normes {
  font-size: 0.85rem;
  color: var(--texte-doux);
  background: var(--creme);
  border: 1px solid var(--ligne);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin: 1rem 0 1.4rem;
  line-height: 1.85;
}
.normes b { color: var(--foret); }

/* ---------- Tableaux ---------- */

.tableau-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { border: 1px solid var(--ligne2); padding: 0.62rem 0.78rem; text-align: left; vertical-align: top; }
th {
  background: var(--mousse);
  color: #fff;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}
tr:nth-child(even) td { background: var(--creme); }
tr.surligne td { background: var(--curcuma-voile); font-weight: 600; }

/* ---------- FAQ ---------- */

.faq-item { border-bottom: 1px solid var(--ligne); padding-bottom: 1.1rem; margin-bottom: 1.2rem; }
.faq-item h3 { margin-top: 1.2rem; font-size: 1.12rem; color: var(--foret); }

/* ---------- Bloc CTA fort ---------- */

.cta-bloc {
  background: var(--foret);
  background-image: linear-gradient(165deg, #2c5138 0%, #23402c 100%);
  color: var(--inverse);
  padding: 1.9rem 1.5rem;
  margin: 2.6rem 0 1rem;
  border-radius: 10px;
  border-left: 4px solid var(--curcuma);
}
.cta-bloc h2 { color: #fff; border-top: none; padding-top: 0; margin-top: 0; }
.cta-bloc p { color: #dfe7dc; }
.cta-bloc .hero-actions { margin-top: 1.1rem; }

/* ---------- Passerelle / guide ---------- */

.passerelle {
  margin: 2rem 0 0;
  padding: 0.95rem 1.2rem;
  border: 1px solid var(--ligne);
  background: var(--creme);
  border-radius: 8px;
  font-size: 0.94rem;
  color: var(--texte-doux);
}
.passerelle a { font-weight: 700; text-decoration: none; }
.passerelle a:hover { text-decoration: underline; }
.note-bas { font-size: 0.83rem; color: var(--texte-doux); margin-top: 0.5rem; }

/* ---------- Pied de page ---------- */

.pied { background: var(--foret); color: var(--inverse-doux); margin-top: 2.6rem; border-top: 3px solid var(--curcuma); }
.pied-inner { max-width: 900px; margin: 0 auto; padding: 1.7rem 1.25rem 2.3rem; font-size: 0.85rem; }
.pied-inner p { margin-bottom: 0.55rem; }
.pied-inner nav { margin-bottom: 0.9rem; }
.pied-inner nav a { color: var(--inverse-doux); margin-right: 1.1rem; text-decoration: none; font-size: 0.84rem; }
.pied-inner nav a:hover { color: #fff; }
.pied-inner a { color: var(--curcuma); }

/* ---------- Écrans larges ---------- */

@media (min-width: 600px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .cartes { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  body { font-size: 1.1rem; }
  .hero h1 { font-size: 2.6rem; }
  h2 { font-size: 1.85rem; }
  .hero-inner { padding: 3.4rem 1.25rem 3.6rem; }
}

/* ==========================================================================
   POLISH PREMIUM — accessibilité, micro-interactions, finitions
   (ajouts non destructifs : n'altèrent ni le contenu ni la structure)
   ========================================================================== */

/* ---------- Accessibilité : focus visible & lien d'évitement ---------- */

a, .btn, button, [tabindex] { outline: none; }

a:focus-visible,
.btn:focus-visible,
button:focus-visible,
th:focus-visible {
  outline: 3px solid var(--curcuma);
  outline-offset: 2px;
  border-radius: 3px;
}
.hero a:focus-visible,
.nav a:focus-visible,
.cta-bloc a:focus-visible,
.pied a:focus-visible {
  outline-color: #f0c368;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--curcuma);
  color: #3a2607;
  font-weight: 700;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

::selection { background: rgba(217,154,43,0.28); color: var(--foret); }

/* ---------- Micro-interactions sobres ---------- */

.btn {
  transition: transform 0.15s ease, background-color 0.15s ease,
              border-color 0.15s ease, box-shadow 0.15s ease;
  will-change: transform;
}
.btn-primary {
  box-shadow: 0 2px 8px rgba(58,38,7,0.22);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(58,38,7,0.30);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(58,38,7,0.24); }
.btn-ghost:hover { transform: translateY(-1px); }

.nav a { transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease; }
.nav a:hover { background: rgba(255,255,255,0.05); }

a { transition: color 0.12s ease; }

/* ---------- Cartes cultures : profondeur & survol ---------- */

.carte {
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-left-color 0.18s ease;
}
.carte:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(35,64,44,0.12);
  border-left-color: var(--curcuma);
}

/* ---------- Bandeau de chiffres : lisière chaleureuse ---------- */

.stats { box-shadow: 0 3px 14px rgba(35,64,44,0.07); }
.stat { transition: background-color 0.18s ease; }
.stat:hover { background: var(--papier); }
.stat .n { letter-spacing: -0.01em; }

/* ---------- Encadrés : relief discret ---------- */

.encadre { box-shadow: 0 2px 10px rgba(35,64,44,0.05); }
.pourquoi li { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.pourquoi li:hover { transform: translateX(2px); box-shadow: 0 4px 14px rgba(35,64,44,0.09); }

/* ---------- Étapes : fil conducteur vertical ---------- */

.etapes { position: relative; }
.etape .idx {
  box-shadow: 0 2px 6px rgba(35,64,44,0.18);
  transition: transform 0.15s ease;
}
.etape:hover .idx { transform: scale(1.06); }

/* ---------- Titres numérotés : puce éditoriale ---------- */

h2 .num {
  display: inline-block;
  min-width: 1.9rem;
}

/* ---------- Tableaux « repères par culture » : premium & scroll mobile ---------- */

.tableau-wrap {
  border: 1px solid var(--ligne2);
  box-shadow: 0 3px 14px rgba(35,64,44,0.07);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--sauge) var(--creme2);
}
.tableau-wrap::-webkit-scrollbar { height: 9px; }
.tableau-wrap::-webkit-scrollbar-track { background: var(--creme2); }
.tableau-wrap::-webkit-scrollbar-thumb { background: var(--sauge); border-radius: 999px; }

table { min-width: 34rem; }
th, td { transition: background-color 0.15s ease; }
thead th:first-child { border-top-left-radius: 0; }
tbody tr:hover td { background: var(--curcuma-voile); }
tbody tr.surligne:hover td { background: #f3e3bf; }
td:first-child { font-weight: 600; color: var(--foret); }
tr.surligne td:first-child { color: var(--curcuma-fonce); }

/* Indication de défilement horizontal sur mobile */
.tableau-wrap::after { content: none; }
@media (max-width: 560px) {
  .tableau-scroll-hint {
    display: block;
    font-size: 0.78rem;
    color: var(--texte-doux);
    font-style: italic;
    margin: -0.9rem 0 1.2rem;
  }
}
.tableau-scroll-hint { display: none; }

/* ---------- Repères techniques : 2 colonnes sur écran large ---------- */

@media (min-width: 600px) {
  .specs { grid-template-columns: 1fr 1fr; }
}
.spec { transition: background-color 0.15s ease; }
.spec:hover { background: var(--creme); }

/* ---------- Passerelle : accent au survol ---------- */

.passerelle { transition: box-shadow 0.18s ease; }
.passerelle:hover { box-shadow: 0 4px 14px rgba(35,64,44,0.08); }

/* ---------- Pied de page : liens de navigation soignés ---------- */

.pied-inner nav a { transition: color 0.15s ease; }

/* ---------- Respect des préférences de mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .btn:hover, .carte:hover, .pourquoi li:hover, .etape:hover .idx { transform: none; }
}

/* ---------- Impression propre ---------- */

@media print {
  .nav, .hero-actions, .cta-bloc .hero-actions, .skip-link { display: none; }
  .hero, .cta-bloc, .entete, .pied { background: #fff !important; color: #000 !important; }
  body { font-size: 11pt; }
}
