/* Le plan du dimanche – feuille de style unique, sans dépendance externe. */
:root {
  --sapin: #2e4a3a;        /* tablier de Romain */
  --sapin-fonce: #213628;
  --sauge: #8fa38a;        /* meubles de la cuisine */
  --sauge-clair: #e9efe5;
  --chene: #c08a55;        /* plan de travail */
  --chene-clair: #f4e9dc;
  --creme: #fbf8f3;
  --encre: #1d2721;
  --gris: #5b6660;
  --blanc: #ffffff;
  --bord: #dfe5da;
  --rayon: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::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: 17px/1.6 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sapin); text-underline-offset: 3px; }
a:hover { color: var(--sapin-fonce); }

.conteneur { width: min(1080px, 100% - 32px); margin-inline: auto; }
.etroit { width: min(720px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; color: var(--sapin-fonce); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.surtitre {
  font: 600 .85rem/1 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sapin);
  margin-bottom: 1rem;
}

/* --- En-tête --- */
.hero { padding: 56px 0 64px; }
.hero .conteneur {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.hero .accroche { font-size: 1.15rem; color: var(--encre); }
.hero figure { margin: 0; }
.hero figure img {
  border-radius: 50% 50% var(--rayon) var(--rayon);
  border: 6px solid var(--blanc);
  box-shadow: 0 18px 40px rgba(33, 54, 40, .18);
  aspect-ratio: 1;
  object-fit: cover;
}
.hero figcaption { font-size: .85rem; color: var(--gris); text-align: center; margin-top: .6rem; }

/* --- Formulaire --- */
.formulaire {
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 20px;
  margin-top: 24px;
  box-shadow: 0 6px 20px rgba(33, 54, 40, .06);
}
.champs { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.formulaire label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.formulaire input[type="text"], .formulaire input[type="email"] {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--bord);
  border-radius: 10px;
  background: var(--creme);
  color: var(--encre);
}
.formulaire input:focus { outline: 3px solid rgba(46, 74, 58, .25); border-color: var(--sapin); }
.bouton {
  display: block;
  width: 100%;
  margin-top: 12px;
  font: 700 1.05rem/1 var(--sans);
  padding: 16px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--sapin);
  color: var(--blanc);
  cursor: pointer;
  transition: background .15s;
}
.bouton:hover, .bouton:focus-visible { background: var(--sapin-fonce); }
.rassurance { text-align: center; font-weight: 600; color: var(--sapin); font-size: .95rem; margin: 12px 0 4px; }
.consentement { font-size: .8rem; color: var(--gris); margin: 6px 0 0; text-align: center; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* --- Sections --- */
section { padding: 64px 0; }
.bande-sauge { background: var(--sauge-clair); }
.bande-chene { background: var(--chene-clair); }

.cartes {
  list-style: none;
  padding: 0;
  margin: 28px 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.cartes li {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 22px 22px 18px;
  border: 1px solid var(--bord);
  position: relative;
}
.cartes li::before {           /* aimant du tableau du frigo */
  content: "";
  position: absolute;
  top: -7px; left: 22px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--aimant, var(--chene));
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.cartes li:nth-child(2) { --aimant: #d35c4a; }
.cartes li:nth-child(3) { --aimant: #3f7cc0; }
.cartes li:nth-child(4) { --aimant: #e2b23c; }
.cartes p { margin: 0; color: var(--gris); }
.note { color: var(--gris); font-size: .95rem; }

/* --- Romain --- */
.romain .conteneur { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.romain img { border-radius: var(--rayon); box-shadow: 0 12px 30px rgba(33, 54, 40, .15); }
.transparence {
  background: var(--blanc);
  border-left: 5px solid var(--sauge);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  padding: 16px 18px;
  font-size: .95rem;
  margin-top: 20px;
}
.transparence p { margin: 0; }

/* --- Méthode --- */
.habitudes { counter-reset: h; list-style: none; padding: 0; margin: 24px 0; }
.habitudes li {
  counter-increment: h;
  position: relative;
  padding: 14px 0 14px 56px;
  border-bottom: 1px dashed var(--bord);
}
.habitudes li::before {
  content: counter(h);
  position: absolute; left: 0; top: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--sapin);
  color: var(--blanc);
  font: 700 1.05rem/38px var(--serif);
  text-align: center;
}

/* --- FAQ --- */
.faq details {
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--gris); }

/* --- Dernier appel --- */
.appel { text-align: center; }
.appel .formulaire { text-align: left; }

/* --- Pied de page --- */
footer { background: var(--sapin-fonce); color: #dfe8df; padding: 40px 0; font-size: .92rem; }
footer a { color: #fff; }
footer .conteneur { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer .signature { font-family: var(--serif); font-size: 1.1rem; color: #fff; }

/* --- Page de texte (confidentialité) --- */
.texte { padding: 48px 0 64px; }
.texte h2 { font-size: 1.35rem; margin-top: 1.8em; }
.texte ul { padding-left: 1.2em; }
.retour { display: inline-block; margin-bottom: 1.5rem; }

/* --- Petits écrans --- */
@media (max-width: 820px) {
  .hero { padding: 32px 0 48px; }
  .hero .conteneur, .romain .conteneur { grid-template-columns: 1fr; gap: 28px; }
  .hero figure { order: -1; width: min(170px, 45vw); margin-inline: auto; }
  .champs, .cartes { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
}

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