/* Formation Serrurier Accessible — parcours en questions/réponses
   Public : adultes sans diplôme. Ton simple, phrases courtes, aucun jargon non expliqué.
   Palette : vert #2E7D4F · pêche #FFE3CC · crème #FFFBF5 · brun #3B2A20

   OSSATURE PROPRE AU SITE 05 (aucune reprise des sites 01 à 04) :
     - pas de bandeau d'annonce
     - en-tête sur DEUX niveaux : marque seule, puis fine ligne de navigation en dessous
     - BARRE D'ACTION FIXE EN BAS sur mobile (prix + bouton), aucun autre site n'en a
     - contenu rythmé par des blocs QUESTION → RÉPONSE numérotés
     - pied de page en 3 colonnes asymétriques surmonté d'un grand bloc d'appel
   Pas de : bandeau (02/03), menu latéral (02), onglets/rail (03), tuiles cochables (04). */

:root {
  --vert: #2E7D4F;
  --vert-fonce: #1F5D39;
  --vert-clair: #E8F3EC;
  --peche: #FFE3CC;
  --peche-fonce: #F5C9A6;
  --creme: #FFFBF5;
  --brun: #3B2A20;
  --brun-doux: #6B584C;
  --blanc: #FFFFFF;
  --rouge: #A33A2A;
  --trait: 1px solid #E6DACF;
  --police: "Nunito", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1100px;
  --rond: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--creme);
  color: var(--brun);
  font-family: var(--police);
  font-size: 1.125rem;      /* base 18px : lecture confortable */
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--vert-fonce); text-underline-offset: 3px; }
a:hover { color: var(--brun); }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; }

.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--brun); color: #fff; padding: .75rem 1.2rem; z-index: 300; font-weight: 700; border-radius: 8px; }
.skip:focus { top: .6rem; color: #fff; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--police); font-weight: 800; line-height: 1.25; margin: 0 0 .55em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 700; }
p { margin: 0 0 1.1em; }
.measure { max-width: 62ch; }

/* ---------- En-tête : deux niveaux (marque, puis navigation) ---------- */
.entete { background: var(--blanc); border-bottom: var(--trait); }
.entete__marque { padding-block: 1.1rem .7rem; display: flex; justify-content: center; }
.marque { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--brun); }
.marque img { width: 46px; height: 46px; }
.marque b { font-size: 1.32rem; font-weight: 800; display: block; line-height: 1.1; }
.marque span { font-size: .8rem; color: var(--brun-doux); font-weight: 600; }

.entete__nav { border-top: var(--trait); background: var(--vert-clair); }
.entete__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
.entete__nav li { flex: 1 1 auto; text-align: center; }
.entete__nav li + li { border-left: var(--trait); }
.entete__nav a { display: block; padding: .8rem .9rem; text-decoration: none; color: var(--vert-fonce); font-weight: 700; font-size: 1rem; }
.entete__nav a:hover { background: var(--blanc); }
.entete__nav a[aria-current="page"] { background: var(--vert); color: #fff; }

/* ---------- Barre d'action fixe en bas (signature du site 05) ---------- */
.barre-bas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--brun); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem var(--gutter);
  box-shadow: 0 -2px 0 rgba(0,0,0,.12);
}
.barre-bas p { margin: 0; font-size: .95rem; line-height: 1.3; }
.barre-bas b { display: block; font-size: 1.15rem; font-weight: 800; color: var(--peche); }
.barre-bas .bouton { padding: .65rem 1.2rem; font-size: 1rem; white-space: nowrap; }
@media (min-width: 860px) { .barre-bas { display: none; } }
@media (max-width: 859px) { body { padding-bottom: 5.2rem; } }

/* ---------- Fil d'Ariane ---------- */
.chemin { font-size: .95rem; padding-block: 1rem 0; color: var(--brun-doux); }
.chemin ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.chemin li + li::before { content: "›"; margin-right: .45rem; }
.chemin a { color: var(--brun-doux); }

/* ---------- Sections ---------- */
.zone { padding-block: clamp(2.4rem, 5vw, 4rem); }
.zone--blanc { background: var(--blanc); }
.zone--vert { background: var(--vert); color: #fff; }
.zone--vert h2, .zone--vert h3 { color: #fff; }
.zone--vert a { color: var(--peche); }
.zone--peche { background: var(--peche); }

/* ---------- Ouverture (remplace le hero classique) ---------- */
.ouverture { background: var(--peche); padding-block: clamp(2.2rem, 5vw, 3.6rem); }
.ouverture h1 { max-width: 20ch; }
.ouverture__texte { font-size: clamp(1.1rem, 2vw, 1.28rem); max-width: 52ch; }
.ouverture__grille { display: grid; gap: 1.8rem; align-items: center; }
@media (min-width: 900px) { .ouverture__grille { grid-template-columns: 1.15fr 1fr; gap: 2.6rem; } }
.ouverture__photo { border-radius: var(--rond); overflow: hidden; }
.ouverture__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }

/* encart prix, en pastille ronde plutot qu'en tableau ou en carte */
.pastille {
  background: var(--blanc); border: 3px solid var(--vert); border-radius: var(--rond);
  padding: 1.2rem 1.4rem; display: inline-grid; gap: .15rem; margin-top: 1.4rem;
}
.pastille .prix { font-size: 2.1rem; font-weight: 800; color: var(--vert-fonce); line-height: 1; }
.pastille .detail { font-size: .98rem; color: var(--brun-doux); font-weight: 600; }

/* ---------- BLOCS QUESTION → RÉPONSE (dispositif central du site) ---------- */
.qr { margin-top: 1.8rem; display: grid; gap: 1.2rem; }
.qr__bloc { background: var(--blanc); border: var(--trait); border-radius: var(--rond); overflow: hidden; }
.qr__q {
  display: grid; grid-template-columns: 2.6rem 1fr; gap: .8rem; align-items: start;
  background: var(--vert-clair); padding: 1rem 1.2rem; margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 800; color: var(--vert-fonce);
}
.qr__q::before { content: attr(data-num); background: var(--vert); color: #fff; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; font-size: .95rem; }
.qr__r { padding: 1.1rem 1.2rem 1.2rem; }
.qr__r > :last-child { margin-bottom: 0; }
.qr__r ul { margin: .6rem 0 0; padding-left: 1.3rem; }
.qr__r li { margin-bottom: .4rem; }

/* ---------- Listes simples ---------- */
.puces-rondes { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .6rem; }
.puces-rondes li { padding-left: 2.1rem; position: relative; }
.puces-rondes li::before { content: "✓"; position: absolute; left: 0; top: .1rem; width: 1.5rem; height: 1.5rem; background: var(--vert); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 700; }
.puces-rondes.non li::before { content: "✕"; background: var(--rouge); }
.zone--vert .puces-rondes li::before { background: var(--peche); color: var(--brun); }

/* ---------- Tableau oui / non ---------- */
.tableau-wrap { overflow-x: auto; margin-top: 1.5rem; border: var(--trait); border-radius: var(--rond); background: var(--blanc); }
table { border-collapse: collapse; width: 100%; min-width: 520px; }
caption { text-align: left; padding: .9rem 1.1rem; background: var(--vert); color: #fff; font-weight: 700; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: .85rem 1.1rem; border-top: var(--trait); }
tbody th { font-weight: 700; width: 46%; }
td.oui { color: var(--vert-fonce); font-weight: 800; }
td.non { color: var(--rouge); font-weight: 800; }

/* ---------- Encadré d'honnêteté ---------- */
.franchise { background: var(--blanc); border: 3px solid var(--rouge); border-radius: var(--rond); padding: clamp(1.2rem, 3.5vw, 2rem); }
.franchise h2 { margin-top: 0; color: var(--rouge); }
.franchise .measure { max-width: 74ch; }
.franchise ul { padding-left: 1.3rem; }
.franchise li { margin-bottom: .55rem; }

/* ---------- Lexique ---------- */
.lexique { margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.lexique div { background: var(--blanc); border: var(--trait); border-radius: var(--rond); padding: 1rem 1.2rem; }
.lexique dt { font-weight: 800; color: var(--vert-fonce); margin-bottom: .2rem; }
.lexique dd { margin: 0; }

/* ---------- Images ---------- */
.photo { margin: 1.5rem 0 0; border-radius: var(--rond); overflow: hidden; }
.photo img { width: 100%; }
.photo figcaption { font-size: .92rem; color: var(--brun-doux); padding: .6rem .2rem 0; }
.deux-colonnes { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 900px) { .deux-colonnes { grid-template-columns: 1fr 1fr; gap: 2.6rem; } .deux-colonnes--inverse > .photo { order: 2; } }

/* ---------- Boutons (pilule assumée : ton chaleureux, public non technique) ---------- */
.bouton {
  display: inline-block; background: var(--vert); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 1.08rem; padding: .9rem 1.7rem;
  border: 3px solid var(--vert); border-radius: 999px; text-align: center; cursor: pointer;
}
.bouton:hover { background: var(--vert-fonce); border-color: var(--vert-fonce); color: #fff; }
.bouton--clair { background: var(--blanc); color: var(--vert-fonce); border-color: var(--blanc); }
.bouton--clair:hover { background: var(--peche); border-color: var(--peche); color: var(--brun); }
.bouton--vide { background: transparent; color: var(--vert-fonce); border-color: var(--vert); }
.bouton--vide:hover { background: var(--vert); color: #fff; }

/* ---------- Grand bloc d'appel, juste avant le pied de page ---------- */
.appel { background: var(--vert); color: #fff; text-align: center; padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.appel h2 { color: #fff; }
.appel p { max-width: 54ch; margin-inline: auto; }
.appel .bouton { margin-top: 1.2rem; }

/* ---------- Formulaire ---------- */
.formulaire { display: grid; gap: 1.1rem; background: var(--blanc); border: var(--trait); border-radius: var(--rond); padding: clamp(1.2rem, 4vw, 2rem); }
.ligne label { display: block; font-weight: 800; margin-bottom: .35rem; }
.ligne .oblig { color: var(--rouge); }
.ligne input, .ligne textarea {
  width: 100%; font: inherit; color: var(--brun); background: var(--creme);
  border: 2px solid #E0D3C6; border-radius: 10px; padding: .8rem .95rem;
}
.ligne textarea { min-height: 9rem; resize: vertical; }
.ligne input:focus, .ligne textarea:focus { outline: 3px solid var(--vert); outline-offset: 1px; background: #fff; }
.formulaire small { color: var(--brun-doux); }

.invisible { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pied de page : 3 colonnes asymétriques ---------- */
.pied { background: var(--brun); color: #E5D8CE; padding-block: 2.6rem 1.4rem; font-size: 1rem; }
.pied__grille { display: grid; gap: 1.8rem; }
@media (min-width: 820px) { .pied__grille { grid-template-columns: 2fr 1fr 1.4fr; gap: 2.4rem; } }
.pied__nom { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: .5rem; }
.pied p strong { color: #fff; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: .45rem; }
.pied a { color: #E5D8CE; }
.pied a:hover { color: #fff; }
.pied__mention { border-top: 1px solid #55443A; margin-top: 1.8rem; padding-top: 1.1rem; color: #BCA99C; font-size: .9rem; }

/* Mentions légales, CGV et pied de page légal */
.legal { max-width: 72ch; margin-top: 2rem; }
.legal section + section { margin-top: 2.4rem; }
.legal h2 { font-size: 1.35rem; padding-bottom: .45rem; margin: 0 0 1rem; border-bottom: 2px solid var(--vert-fonce); }
.legal h3 { font-size: 1.05rem; margin: 1.4rem 0 .5rem; }
.legal p { margin: 0 0 .9rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 1rem; }
.legal li { margin-bottom: .35rem; }
.legal a { overflow-wrap: anywhere; }
.pied-legal { margin-top: 1rem; font-size: .88rem; }
.pied-legal p { margin: 0 0 .35rem; }
.pied-legal a { text-decoration: underline; text-underline-offset: 2px; }

/* Champ piège anti-robot (botcheck) */
.piege { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Notification d'envoi : bulle ronde, bas centre ---------- */
.bravo { position: fixed; z-index: 1000; left: 50%; bottom: var(--gutter); transform: translateX(-50%); width: min(26rem, calc(100% - 2 * var(--gutter))); background: var(--blanc); color: var(--brun); border: 3px solid var(--vert); border-radius: var(--rond); padding: 2.4rem 1.4rem 1.3rem; text-align: center; box-shadow: 0 14px 34px rgba(59, 42, 32, .22); }
.bravo:focus { outline: 3px solid var(--peche-fonce); outline-offset: 4px; }
.bravo__rond { position: absolute; top: -28px; left: 50%; margin-left: -28px; color: var(--vert); background: var(--blanc); border-radius: 50%; box-shadow: 0 0 0 5px var(--peche); }
.bravo__titre { font-family: var(--police); font-size: 1.6rem; font-weight: 800; color: var(--vert-fonce); margin: 0 0 .35rem; }
.bravo p:not(.bravo__titre) { margin: 0 0 1rem; color: var(--brun-doux); }
.bravo__fermer { font-family: var(--police); cursor: pointer; }
@media (prefers-reduced-motion: no-preference) { .bravo:not([hidden]) { animation: bravo-pop .45s cubic-bezier(.3, 1.4, .5, 1); } }
@keyframes bravo-pop { from { opacity: 0; transform: translateX(-50%) scale(.8); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
[data-notif][hidden] { display: none !important; }
