/* La Tablée Futée — feuille de style unique
   Couleurs et typographies : voir CLAUDE.md (charte de marque). */

:root {
  --tomate: #D9583B;
  --tomate-fonce: #B8432A;
  --moutarde: #E9B949;
  --basilic: #4F7C4A;
  --creme: #FBF5EA;
  --creme-fonce: #F3E8D3;
  --encre: #2B2420;
  --encre-douce: #5C5049;
  --blanc: #FFFFFF;
  --rayon: 14px;
  --ombre: 0 6px 24px rgba(43, 36, 32, 0.08);
  --titre: "Fraunces", Georgia, "Times New Roman", serif;
  --texte: "Nunito Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --largeur: 1080px;
}

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

html { scroll-behavior: smooth; }

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

img, svg { max-width: 100%; display: block; }

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

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--encre);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 22px;
}

.lien-evitement {
  position: absolute;
  left: -9999px;
}
.lien-evitement:focus {
  left: 12px; top: 12px;
  background: var(--blanc);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}

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

.entete {
  padding: 18px 0;
  border-bottom: 1px solid var(--creme-fonce);
}
.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--tomate);
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.45rem;
}
.logo:hover { color: var(--tomate-fonce); }
.logo svg { width: 38px; height: 38px; }

.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a {
  color: var(--encre);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--tomate); }

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

.bouton {
  display: inline-block;
  background: var(--tomate);
  color: var(--blanc);
  font-family: var(--texte);
  font-weight: 800;
  font-size: 1.02rem;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.bouton:hover { background: var(--tomate-fonce); color: var(--blanc); transform: translateY(-1px); }
.bouton:disabled {
  background: #C9B9A6;
  cursor: not-allowed;
  transform: none;
}
.bouton-secondaire {
  background: transparent;
  color: var(--encre);
  border: 2px solid var(--encre);
}
.bouton-secondaire:hover { background: var(--encre); color: var(--creme); }

/* ---------- Pastille de prix (signature graphique) ---------- */

.pastille {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: var(--moutarde);
  color: var(--encre);
  font-weight: 800;
  text-align: center;
  line-height: 1.1;
  box-shadow: var(--ombre);
  transform: rotate(-8deg);
}
.pastille strong { font-size: 1.9rem; font-family: var(--titre); }
.pastille span { font-size: 0.85rem; }

/* ---------- Héros ---------- */

.heros { padding: 64px 0 56px; }
.heros .conteneur {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.surtitre {
  display: inline-block;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--basilic);
  margin-bottom: 14px;
}
.heros p.accroche {
  font-size: 1.2rem;
  color: var(--encre-douce);
  max-width: 36em;
}
.heros .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.illustration {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}
.illustration .pastille {
  position: absolute;
  top: -6px;
  right: -4px;
}

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
.section-claire { background: var(--blanc); }
.section-intro { max-width: 40em; margin-bottom: 34px; }
.section-intro p { color: var(--encre-douce); font-size: 1.08rem; }

.trois-colonnes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.carte {
  background: var(--creme);
  border-radius: var(--rayon);
  padding: 26px 24px;
}
.section-claire .carte { background: var(--creme); }
.carte .icone {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 1.5rem;
}
.icone-tomate { background: #F8DDD5; }
.icone-moutarde { background: #F8EBC6; }
.icone-basilic { background: #DCE8DA; }
.carte p { color: var(--encre-douce); margin: 0; }

/* ---------- Livre gratuit ---------- */

.livre-gratuit .conteneur {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.couverture {
  position: relative;
  background: var(--creme);
  border-radius: 10px;
  aspect-ratio: 3 / 4;
  max-width: 300px;
  margin: 0 auto;
  padding: 28px 24px;
  box-shadow: 0 18px 40px rgba(43, 36, 32, 0.18);
  border-left: 10px solid var(--tomate);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.couverture .marque {
  font-family: var(--titre);
  color: var(--tomate);
  font-weight: 700;
  font-size: 0.95rem;
}
.couverture .titre-livre {
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1.1;
}
.couverture .sous-titre { color: var(--encre-douce); font-size: 0.9rem; }
.couverture .pastille {
  position: absolute;
  right: -26px;
  bottom: 70px;
  width: 92px; height: 92px;
}
.couverture .pastille strong { font-size: 1.4rem; }
.couverture .pastille span { font-size: 0.72rem; }

.liste-coches { list-style: none; padding: 0; margin: 0 0 24px; }
.liste-coches li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 8px;
}
.liste-coches li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--basilic);
  font-weight: 900;
}

.formulaire {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 24px;
  box-shadow: var(--ombre);
}
.section-claire .formulaire { background: var(--creme); box-shadow: none; }
.champs { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; margin-bottom: 14px; }
.champ label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.champ input {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 2px solid var(--creme-fonce);
  border-radius: 10px;
  background: var(--blanc);
  color: var(--encre);
}
.champ input:focus { outline: none; border-color: var(--tomate); }
.consentement {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--encre-douce);
  margin-bottom: 16px;
}
.consentement input { margin-top: 4px; accent-color: var(--tomate); }
.note-formulaire { font-size: 0.82rem; color: var(--encre-douce); margin: 12px 0 0; }

/* ---------- Livres à venir ---------- */

.grille-livres {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.livre {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 24px;
  box-shadow: var(--ombre);
  display: flex;
  flex-direction: column;
}
.livre .collection {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--basilic);
  margin-bottom: 8px;
}
.livre p { color: var(--encre-douce); flex: 1; }
.livre .bas {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
}
.etiquette {
  background: var(--creme-fonce);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--encre-douce);
}

/* ---------- Bandeau transparence ---------- */

.transparence {
  background: var(--basilic);
  color: var(--creme);
  padding: 44px 0;
}
.transparence .conteneur { max-width: 820px; text-align: center; }
.transparence h2 { color: var(--creme); font-size: 1.6rem; }
.transparence p { margin: 0; opacity: 0.92; }
.transparence a { color: var(--moutarde); }

/* ---------- Pages de texte (à propos, mentions, confidentialité) ---------- */

.page-texte { padding: 56px 0 72px; }
.page-texte .conteneur { max-width: 760px; }
.page-texte h2 { font-size: 1.45rem; margin-top: 1.8em; }
.page-texte ul { padding-left: 1.2em; }
.page-texte li { margin-bottom: 6px; }
.a-completer {
  background: #F8EBC6;
  border-radius: 6px;
  padding: 1px 6px;
  font-weight: 700;
}
.date-maj { color: var(--encre-douce); font-size: 0.92rem; }

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

.pied {
  background: var(--encre);
  color: #D9CFC4;
  padding: 44px 0 30px;
  font-size: 0.92rem;
}
.pied .conteneur {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.pied .logo { color: var(--moutarde); font-size: 1.25rem; margin-bottom: 8px; }
.pied a { color: #F3E8D3; text-decoration: none; }
.pied a:hover { color: var(--moutarde); }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 6px; }
.pied .bas-de-page {
  width: 100%;
  border-top: 1px solid #4A3F38;
  padding-top: 18px;
  margin-top: 10px;
  font-size: 0.82rem;
  color: #A89A8E;
}

/* ---------- Téléphone ---------- */

@media (max-width: 860px) {
  .heros .conteneur,
  .livre-gratuit .conteneur { grid-template-columns: 1fr; gap: 36px; }
  .trois-colonnes, .grille-livres { grid-template-columns: 1fr; }
  .heros { padding: 40px 0; }
  .section { padding: 48px 0; }
  .illustration { max-width: 300px; }
  .champs { grid-template-columns: 1fr; }
  .nav { gap: 16px; }
  .couverture .pastille { right: -10px; }
}
