/* Feuille partagée par toutes les pages du site. Direction « Bocage »
   choisie sur maquette le 2026-10-02 : fond papier vert pâle, vert pour
   Keriou, or pour Keriou Pro, ardoise #2c3e46 commune aux deux apps.
   Un seul thème clair, délibérément (comme le site TyBuvette, à l'inverse
   un seul thème sombre). */

@import url('fonts.css');

:root {
  --fond: #f2f4ef;
  --surface: #ffffff;
  --encre: #1f2b2f;
  --encre-douce: #34444a;
  --gris: #4f5d62;
  --ligne: #d9ddd5;
  --ligne-douce: #eef0ea;
  --ardoise: #2c3e46;
  --ardoise-claire: #354b54;
  --ardoise-texte: #c9d4d6;
  --vert: #2e6b4a;
  --vert-fonce: #1f4d35;
  --vert-pale: #e4efe7;
  --or: #e8c34a;
  --or-encre: #2a2104;
  --or-texte: #7a5b00;
  --or-pale: #f6ecc4;

  --f-titre: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --f-texte: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
  --gouttiere: max(16px, 6vw);
  --rayon: 22px;

  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--vert); }
a:hover { color: var(--vert-fonce); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--vert);
  outline-offset: 3px;
  border-radius: 6px;
}
h1, h2, h3 { text-wrap: balance; }
p { margin: 0; }

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

/* ---------- Nav ---------- */
.nav {
  padding: 22px var(--gouttiere);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.marque {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--encre);
  font-family: var(--f-titre); font-weight: 800; font-size: 26px; letter-spacing: -0.02em;
}
.marque:hover { color: var(--encre); }
.nav-liens { display: flex; gap: 28px; font-weight: 700; font-size: 16px; }
.nav-liens a { color: var(--encre); text-decoration: none; }
.nav-liens a:hover { color: var(--vert); }
.nav-liens a[aria-current="page"] {
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
  text-decoration-color: var(--vert);
}
.page-pro .nav-liens a[aria-current="page"] { text-decoration-color: var(--or); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 15px 24px; border-radius: 999px; border: 0; font: inherit; font-weight: 700;
  cursor: pointer; line-height: 1.2;
}
.btn-vert { background: var(--vert); color: #fff; }
.btn-vert:hover { background: var(--vert-fonce); color: #fff; }
.btn-or { background: var(--or); color: var(--or-encre); }
.btn-or:hover { background: #f0cf63; color: var(--or-encre); }
.btn-ardoise { background: var(--ardoise); color: var(--fond); padding: 12px 20px; font-size: 16px; }
.btn-ardoise:hover { background: var(--encre); color: var(--fond); }
.btn-noir { background: var(--encre); color: var(--fond); }
.btn-noir:hover { background: #000; color: var(--fond); }
.btn-contour { border: 2px solid currentColor; padding: 13px 22px; background: transparent; }
.btn-contour.vert { color: var(--vert); }
.btn-contour.ardoise { color: var(--ardoise); }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lien-fort { font-weight: 700; padding: 13px 4px; }

/* ---------- Structure ---------- */
.section { padding: 88px var(--gouttiere); display: flex; flex-direction: column; gap: 32px; }
.section.serree { padding-top: 0; }
.section.blanche { background: var(--surface); border-block: 1px solid var(--ligne); }
.section.verte { background: var(--vert-pale); }
.section.sombre { background: var(--ardoise); color: #eef1ee; }
.section.sombre a { color: var(--or); }
.titre-section {
  margin: 0; font-family: var(--f-titre); font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em;
}
.entete-section { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.chapo { color: var(--encre-douce); max-width: 40em; }

.grille-2, .grille-3, .grille-4 { display: grid; gap: 28px; }
.grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* ---------- Hero ---------- */
.hero { padding: 48px var(--gouttiere) 88px; }
.hero-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-texte { display: flex; flex-direction: column; gap: 22px; }
.surtitre { font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--vert); }
.page-pro .surtitre { color: var(--or-texte); }
.surtitre.discret { font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: var(--gris); }
.hero h1 {
  margin: 0; font-family: var(--f-titre); font-weight: 800;
  font-size: clamp(2.5rem, 5.2vw, 4.4rem); line-height: 1.03; letter-spacing: -0.03em;
}
.hero .chapo { font-size: 20px; max-width: 34em; }

/* Faux écrans du hero (dessinés en HTML, pas des captures) */
.vignettes { position: relative; height: 430px; }
.ecran {
  background: var(--surface); border: 1px solid var(--ligne); border-radius: 18px;
  box-shadow: 0 18px 40px rgba(31, 43, 47, 0.10); overflow: hidden;
}
.vignettes .ecran { position: absolute; left: 0; top: 0; width: 78%; }
.ecran-tete { padding: 14px 18px; display: flex; align-items: center; gap: 10px; font-weight: 700; border-bottom: 1px solid #e4e7e0; }
.ecran-tete .pastille {
  width: 28px; height: 28px; border-radius: 8px; background: var(--vert);
  display: grid; place-items: center; color: #fff; font-size: 13px;
}
.onglets { display: flex; gap: 4px; padding: 0 14px; border-bottom: 1px solid #e4e7e0; font-size: 15px; font-weight: 700; color: var(--gris); }
.onglets span { padding: 10px; }
.onglets .actif { color: var(--encre); border-bottom: 3px solid var(--vert); }
.evt { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 12px 18px; align-items: center; }
.evt + .evt { border-top: 1px solid var(--ligne-douce); }
.evt .date { background: var(--vert-pale); border-radius: 10px; text-align: center; padding: 6px 0; line-height: 1.1; }
.evt .jour { font-size: 11px; font-weight: 700; color: var(--vert); }
.evt .num { font-family: var(--f-titre); font-weight: 800; font-size: 22px; }
.evt .lieu { font-size: 14px; color: var(--gris); }

.carte-tournee {
  background: var(--ardoise); color: #eef1ee; border-radius: 18px; padding: 18px;
  box-shadow: 0 18px 40px rgba(31, 43, 47, 0.22);
  display: flex; flex-direction: column; gap: 10px;
}
.vignettes .carte-tournee { position: absolute; right: 0; bottom: 0; width: 56%; }
.carte-tournee .petit { font-size: 13px; color: #b9c6c9; }
.carte-tournee .quoi { font-family: var(--f-titre); font-weight: 700; font-size: 22px; line-height: 1.15; }
.carte-tournee .qui { font-size: 15px; color: #d3dcdd; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.puce { font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 999px; border: 1px solid #5d7178; }
.puce.or { background: var(--or); color: var(--or-encre); border-color: var(--or); }

/* Téléphone (page Pro) */
.telephone-cadre { display: flex; justify-content: center; }
.telephone {
  width: 320px; max-width: 100%; background: var(--encre); border-radius: 36px; padding: 12px;
  box-shadow: 0 24px 50px rgba(31, 43, 47, 0.25);
}
.telephone-ecran { background: var(--ardoise); color: #eef1ee; border-radius: 26px; padding: 22px 18px; display: flex; flex-direction: column; gap: 14px; }
.telephone .en-cours { background: var(--ardoise-claire); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: none; }
.telephone .etiquette { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--or); }
.telephone .suivant { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 10px; padding: 10px 2px; border-top: 1px solid #40555e; color: #d3dcdd; }
.telephone .suivant b { color: #eef1ee; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Cartes produit (accueil) ---------- */
.produit { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; }
.produit-tete { padding: 28px 32px; display: flex; flex-direction: column; gap: 6px; color: #fff; }
.produit-tete.vert { background: var(--vert); }
.produit-tete.ardoise { background: var(--ardoise); }
.produit-tete .pour { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.produit-tete.vert .pour { color: #cfe6d7; }
.produit-tete.ardoise .pour { color: var(--or); }
.produit-tete h2 { margin: 0; font-family: var(--f-titre); font-weight: 800; font-size: 40px; letter-spacing: -0.02em; }
.produit-corps { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 20px; flex-grow: 1; }
.produit-corps > p { font-size: 19px; }
.produit-corps ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.produit-corps .boutons { margin-top: auto; padding-top: 8px; }
.lien-fort.ardoise { color: var(--ardoise); }

/* ---------- Bandeau offre découverte ---------- */
.offre {
  background: var(--vert-pale); border-radius: var(--rayon); padding: 36px 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.offre div { display: flex; flex-direction: column; gap: 6px; max-width: 40em; }
.offre h2, .encart-offre b { margin: 0; font-family: var(--f-titre); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; }
.offre p { color: var(--encre-douce); }
.encart-offre { margin-top: 12px; background: var(--vert-pale); border-radius: 16px; padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.encart-offre b { font-size: 22px; letter-spacing: 0; }
.encart-offre.or { background: var(--or-pale); }

/* ---------- Tarifs ---------- */
.tarifs-titre { margin: 0 0 10px; font-family: var(--f-titre); font-size: 24px; }
.tarifs-titre.vert { color: var(--vert); }
.tarifs-titre.ardoise { color: var(--ardoise); }
.palier { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--ligne); }
.palier b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.note-tarif { margin-top: 10px; font-size: 15px; color: var(--gris); }
.colonne { display: flex; flex-direction: column; gap: 12px; }
.colonne.serree { gap: 0; }

/* ---------- Étapes, journée, fonctions ---------- */
.etape { display: flex; flex-direction: column; gap: 10px; }
.etape .chiffre { font-family: var(--f-titre); font-weight: 800; font-size: 56px; line-height: 1; color: var(--vert); }
.etape h3, .fonction h3, .question h3 { margin: 0; font-size: 20px; }
.etape p, .fonction p, .question p { color: var(--encre-douce); }
.journee { display: flex; flex-direction: column; max-width: 860px; }
.moment { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid #e4e7e0; }
.moment:last-child { border-bottom: 1px solid #e4e7e0; }
.moment .heure { font-family: var(--f-titre); font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums; }
.moment h3 { margin: 0 0 4px; font-size: 20px; }
.moment p { color: var(--encre-douce); }
.fonction { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 3px solid var(--vert); }
.page-pro .fonction { border-top-color: var(--or); }
.fonction h3 { font-size: 19px; }
.fonction p { font-size: 16px; }
.question { display: flex; flex-direction: column; gap: 8px; }
.question h3 { font-size: 19px; }

/* ---------- Captures ---------- */
.capture { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.capture img {
  width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--ligne);
  box-shadow: 0 10px 30px rgba(31, 43, 47, 0.10); background: var(--surface);
}
.section.sombre .capture img { border-color: #40555e; border-radius: 22px; }
.section.sombre figcaption { color: #d3dcdd; }

/* ---------- Contact ---------- */
.contact {
  background: var(--ardoise); color: #eef1ee; border-radius: var(--rayon); padding: 44px 40px;
}
.contact h2 { margin: 0; font-family: var(--f-titre); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.12; }
.contact .colonne { gap: 14px; }
.contact .mel { font-size: 20px; font-weight: 700; color: #fff; }
.contact .mel:hover { color: var(--or); }
.contact .aide { color: var(--ardoise-texte); }
.formulaire { display: flex; flex-direction: column; gap: 10px; }
.formulaire label { font-size: 15px; color: var(--ardoise-texte); }
.formulaire input, .formulaire textarea, .formulaire select {
  padding: 13px 14px; border-radius: 10px; border: 1px solid #5d7178;
  background: #233238; color: #eef1ee; font: inherit;
}
.formulaire input::placeholder, .formulaire textarea::placeholder { color: #8c9ea4; }
.formulaire .btn { align-self: flex-start; margin-top: 8px; }
.formulaire .piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.statut { min-height: 1.5em; color: var(--or); font-weight: 700; }

/* ---------- Pied de page ---------- */
.pied {
  padding: 28px var(--gouttiere) 40px; border-top: 1px solid var(--ligne);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-size: 15px; color: var(--gris);
}
.pied nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Page texte (confidentialité, 404) ---------- */
.texte { max-width: 46em; padding: 32px var(--gouttiere) 88px; margin: 0 auto; box-sizing: content-box; }
.texte h1 { font-family: var(--f-titre); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 12px; }
.texte h2 { font-family: var(--f-titre); font-size: 24px; margin: 40px 0 10px; }
.texte p + p, .texte ul { margin-top: 12px; }
.texte li + li { margin-top: 6px; }
.texte .maj { color: var(--gris); }

/* ---------- Petits écrans ---------- */
@media (max-width: 1000px) {
  .grille-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .grille-2, .grille-3, .hero-grille { grid-template-columns: minmax(0, 1fr); }
  .nav-liens { display: none; }
  .hero { padding-top: 24px; }
  .section { padding-block: 64px; }
  .moment { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .moment .heure { font-size: 20px; }
  .contact, .offre { padding: 28px 22px; }
}
@media (max-width: 520px) {
  .grille-4 { grid-template-columns: minmax(0, 1fr); }
  .vignettes { height: auto; display: flex; flex-direction: column; gap: 16px; }
  .vignettes .ecran, .vignettes .carte-tournee { position: static; width: 100%; }
  .produit-tete, .produit-corps { padding-inline: 22px; }
  .nav .btn-ardoise { padding: 10px 14px; font-size: 15px; }
}
