/*
  Vitrine Frugalys.
  Aucune police externe, aucun script : la politique de sécurité du serveur
  n'autorise que ce qui vient d'ici, et une page qui attend un CDN est une page
  qui s'affiche en deux temps.
*/

:root {
  --creme: #faf6ee;
  --creme-fonce: #f1ead9;
  --encre: #1c2b22;
  --foret: #1d3b2a;
  --foret-clair: #3a6b4d;
  --terre: #b8532b;
  --terre-pale: #f6e2d6;
  --gris: #6b7570;
  --trait: #e0d8c6;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --large: 1120px;
  --rayon: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.1rem); margin: 0 0 1.3rem; }
h3 { font-size: 1.14rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; }
a { color: var(--foret); }

.enveloppe { max-width: var(--large); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }

.saut {
  position: absolute; left: -9999px;
  background: var(--foret); color: var(--creme);
  padding: 0.6rem 1rem; border-radius: 0 0 var(--rayon) 0;
}
.saut:focus { left: 0; top: 0; z-index: 10; }

:focus-visible { outline: 2px solid var(--terre); outline-offset: 3px; }

/* --------------------------------------------------------------- bandeau */
.bandeau {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--creme) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
}
.bandeau__interieur {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 62px;
}
.marque {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--serif); font-size: 1.22rem; font-weight: 600;
  color: var(--foret); text-decoration: none; letter-spacing: -0.01em;
}
.marque__pastille {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--foret-clair);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--foret-clair) 18%, transparent);
}
.bandeau nav { display: flex; gap: clamp(0.8rem, 2.4vw, 1.7rem); }
.bandeau nav a {
  color: var(--gris); text-decoration: none; font-size: 0.94rem;
  padding: 0.3rem 0; border-bottom: 1px solid transparent;
}
.bandeau nav a:hover { color: var(--foret); border-bottom-color: var(--foret-clair); }
@media (max-width: 560px) { .bandeau nav a:nth-child(2) { display: none; } }

/* ------------------------------------------------------------------ héros */
.heros { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.heros__grille {
  display: grid; gap: clamp(2.2rem, 6vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) { .heros__grille { grid-template-columns: 1.15fr 0.85fr; } }

.surtitre {
  text-transform: uppercase; letter-spacing: 0.13em;
  font-size: 0.74rem; font-weight: 600; color: var(--foret-clair);
  margin-bottom: 1rem;
}
h1 em { font-style: italic; color: var(--terre); }
.chapo { font-size: 1.12rem; color: #3b453f; max-width: 34em; margin-bottom: 1.7rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1rem; }
.bouton {
  display: inline-block; padding: 0.72rem 1.35rem;
  border-radius: 999px; border: 1px solid var(--foret);
  color: var(--foret); text-decoration: none;
  font-size: 0.96rem; font-weight: 500;
}
.bouton:hover { background: color-mix(in srgb, var(--foret) 8%, transparent); }
.bouton--principal {
  background: var(--foret); color: var(--creme);
  cursor: default;
}
.bouton--principal:hover { background: var(--foret); opacity: 0.92; }

.mention { font-size: 0.85rem; color: var(--gris); margin: 0; }
.mention--centre { text-align: center; margin-top: 1.6rem; }

/* ------------------------------------------------------------ maquette */
.ecran { margin: 0; }
.ecran__cadre {
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: 22px;
  padding: 1.3rem 1.15rem 1.5rem;
  box-shadow: 0 18px 40px -24px rgba(28, 43, 34, 0.4);
  max-width: 340px; margin-inline: auto;
}
.ecran__titre {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  margin: 0 0 1rem;
}
.ecran__section {
  text-transform: uppercase; letter-spacing: 0.09em;
  font-size: 0.68rem; font-weight: 700; color: var(--gris);
  margin: 1.1rem 0 0.5rem;
}
.ecran__section--urgent { color: var(--terre); margin-top: 0; }

.article {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 0.8rem;
  padding: 0.58rem 0.7rem;
  border-radius: 9px;
  background: var(--creme-fonce);
  margin-bottom: 0.38rem;
  font-size: 0.9rem;
}
.article--urgent { background: var(--terre-pale); }
.article__nom { font-weight: 500; }
.article__delai { color: var(--gris); font-size: 0.82rem; white-space: nowrap; }
.article--urgent .article__delai { color: var(--terre); font-weight: 600; }

/* ---------------------------------------------------------------- constat */
.constat {
  background: var(--foret); color: var(--creme);
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}
.constat h2 { max-width: 20em; }
.chiffres {
  display: grid; gap: 1.6rem; margin: 2.2rem 0 2rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.chiffre__valeur {
  font-family: var(--serif); font-size: 2.2rem; font-weight: 600;
  color: #f0c9a8; margin: 0 0 0.3rem; line-height: 1;
}
.chiffre__quoi { color: color-mix(in srgb, var(--creme) 78%, transparent); font-size: 0.95rem; margin: 0; }
.constat .note {
  max-width: 44em; margin: 0;
  color: color-mix(in srgb, var(--creme) 86%, transparent);
  border-left: 2px solid var(--foret-clair); padding-left: 1.1rem;
}

/* ----------------------------------------------------------------- étapes */
.etapes { padding: clamp(3rem, 7vw, 4.5rem) 0; }
.etapes__liste {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.etapes__liste li {
  background: #fff; border: 1px solid var(--trait);
  border-radius: var(--rayon); padding: 1.5rem 1.4rem;
}
.etape__rang {
  font-family: var(--serif); font-size: 1.5rem; color: var(--terre);
  margin: 0 0 0.6rem; line-height: 1;
}
.etapes__liste p:last-child { margin-bottom: 0; color: #47524c; font-size: 0.96rem; }

/* --------------------------------------------------------------- honnête */
.honnete { padding: clamp(2rem, 5vw, 3rem) 0 clamp(3rem, 7vw, 4.5rem); }
.honnete__grille {
  display: grid; gap: clamp(2rem, 5vw, 3.2rem);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.liste { list-style: none; padding: 0; margin: 0; }
.liste li {
  position: relative; padding-left: 1.8rem; margin-bottom: 1.05rem;
  font-size: 0.98rem; color: #414b46;
}
.liste li::before {
  position: absolute; left: 0; top: 0.05em;
  font-size: 1.05rem; line-height: 1.5;
}
.liste--oui li::before { content: "✓"; color: var(--foret-clair); font-weight: 700; }
.liste--non li::before { content: "×"; color: var(--terre); font-weight: 700; font-size: 1.25rem; }
.liste strong { color: var(--encre); }

/* ------------------------------------------------------------------ foyer */
.foyer {
  background: var(--creme-fonce);
  border-block: 1px solid var(--trait);
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}
.foyer__grille {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 820px) { .foyer__grille { grid-template-columns: 1.3fr 0.7fr; } }
.foyer p { color: #414b46; max-width: 38em; }

.code {
  background: #fff; border: 1px solid var(--trait);
  border-radius: var(--rayon); padding: 1.6rem 1.4rem; text-align: center;
}
.code__intitule {
  text-transform: uppercase; letter-spacing: 0.11em;
  font-size: 0.7rem; font-weight: 700; color: var(--gris); margin: 0 0 0.7rem;
}
.code__valeur {
  font-family: var(--serif); font-size: 2.15rem; font-weight: 600;
  letter-spacing: 0.16em; color: var(--foret); margin: 0 0 0.7rem;
}
.code__note { font-size: 0.82rem; color: var(--gris); margin: 0; }

/* ------------------------------------------------------------------- prix */
.prix { padding: clamp(3rem, 7vw, 4.5rem) 0; }
.prix h2, .prix__chapo { text-align: center; }
.prix__chapo { max-width: 40em; margin: 0 auto 2.4rem; color: #414b46; }

.offres {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 800px; margin: 0 auto;
}
.offre {
  background: #fff; border: 1px solid var(--trait);
  border-radius: var(--rayon); padding: 1.7rem 1.5rem;
}
.offre--mise-en-avant {
  border-color: var(--foret); border-width: 1.5px;
  box-shadow: 0 16px 36px -26px rgba(29, 59, 42, 0.55);
}
.offre__etiquette {
  display: inline-block; background: var(--foret); color: var(--creme);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.22rem 0.6rem; border-radius: 999px;
  margin: 0 0 0.7rem;
}
.offre__prix {
  font-family: var(--serif); font-size: 1.9rem; font-weight: 600;
  margin: 0.4rem 0 0.2rem; color: var(--foret);
}
.offre__prix span { font-size: 0.95rem; color: var(--gris); font-family: var(--sans); }
.offre__second { font-size: 0.87rem; color: var(--gris); margin-bottom: 1rem; }
.offre ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.offre li {
  position: relative; padding-left: 1.4rem; margin-bottom: 0.6rem;
  font-size: 0.95rem; color: #414b46;
}
.offre li::before { content: "—"; position: absolute; left: 0; color: var(--foret-clair); }

/* -------------------------------------------------------------- questions */
.questions { padding: 0 0 clamp(3.5rem, 8vw, 5rem); }
.questions h2 { text-align: center; margin-bottom: 1.8rem; }
.questions details {
  max-width: 720px; margin: 0 auto 0.6rem;
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 0.95rem 1.2rem;
}
.questions summary {
  cursor: pointer; font-weight: 500; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; color: var(--terre); font-size: 1.3rem; line-height: 1; }
.questions details[open] summary::after { content: "–"; }
.questions details p {
  margin: 0.8rem 0 0.2rem; color: #47524c; font-size: 0.96rem;
}

/* ------------------------------------------------------------------- pied */
.pied {
  background: var(--foret); color: color-mix(in srgb, var(--creme) 80%, transparent);
  padding: 2.4rem 0;
}
.pied__grille {
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem;
  align-items: baseline; justify-content: space-between;
}
.pied__marque {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  color: var(--creme); margin: 0;
}
.pied__mot { margin: 0; font-size: 0.92rem; }
.pied a { color: #f0c9a8; text-decoration: none; font-size: 0.92rem; }
.pied a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
