/* Formation Serrurier Pro — design orienté conversion
   Palette : acier #16202B · laiton #C8761B · brique #A33417 · papier #F7F5F1 · blanc #FFFFFF
   Aucun dégradé, aucune ombre lumineuse, aucun bouton pilule : formes nettes, contrastes AA. */

:root {
  --acier: #16202B;
  --acier-clair: #24323F;
  --gris: #5A6673;
  --gris-clair: #D7DCE1;
  --papier: #F7F5F1;
  --blanc: #FFFFFF;
  --laiton: #C8761B;
  --laiton-fonce: #9A5A12;
  --brique: #A33417;
  --vert: #1F6B4A;
  --titre: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --texte: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --ombre: 0 1px 2px rgba(22, 32, 43, .12);
}

*, *::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(--papier);
  color: var(--acier);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--laiton-fonce); text-underline-offset: 3px; }
a:hover { color: var(--acier); }

:focus-visible { outline: 3px solid var(--laiton); outline-offset: 2px; }

.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--acier); color: #fff; padding: .7rem 1.1rem; z-index: 200; font-weight: 700; }
.skip:focus { top: .5rem; color: #fff; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3, h4 { font-family: var(--titre); font-weight: 700; line-height: 1.15; margin: 0 0 .55em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 5vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1.1em; }
.measure { max-width: 68ch; }
.centre { text-align: center; margin-inline: auto; }

.kicker { font-family: var(--titre); font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--laiton-fonce); margin: 0 0 .9rem; }

/* ---------- Bandeau d'urgence ---------- */
/* Pas de bandeau d'annonce sur ce site : l'offre est portee par le hero. */

/* ---------- En-tête ---------- */
/* En-tete centre, marque empilee au-dessus du menu, non sticky (ossature propre au site 01) */
.masthead { background: var(--blanc); border-bottom: 3px double var(--gris-clair); }
.masthead .wrap { display: grid; justify-items: center; gap: .9rem; padding-block: 1.6rem 1.1rem; text-align: center; }
.brand { display: grid; justify-items: center; gap: .35rem; text-decoration: none; color: var(--acier); }
.brand img { width: 42px; height: 42px; }
.brand b { font-family: var(--titre); font-size: 1.2rem; font-weight: 700; line-height: 1.1; display: block; letter-spacing: -.02em; }
.brand span { font-size: .75rem; color: var(--gris); letter-spacing: .06em; text-transform: uppercase; }

.nav-toggle { display: none; font: inherit; font-weight: 700; background: var(--acier); color: #fff; border: 0; padding: .55rem 1rem; cursor: pointer; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .25rem 1.4rem; }
.nav a { color: var(--acier); text-decoration: none; font-weight: 600; font-size: .95rem; padding-block: .35rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--laiton); }
.nav .nav-tel { font-family: var(--titre); font-weight: 700; }
.nav .nav-cta { background: var(--brique); color: #fff; padding: .6rem 1.1rem; border-bottom: 0; }
.nav .nav-cta:hover { background: var(--acier); color: #fff; }

@media (max-width: 900px) {
  .masthead .wrap { padding-block: 1.1rem .9rem; }
  .js .nav-toggle { display: inline-block; }
  .js .nav { width: 100%; display: none; }
  .js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-top: 1px solid var(--gris-clair); }
  .nav a { display: block; padding: .8rem 0; border-bottom: 0; }
  .nav .nav-cta { text-align: center; margin-top: .6rem; }
}

/* ---------- Fil d'Ariane ---------- */
.crumbs { font-size: .85rem; padding-block: 1rem 0; color: var(--gris); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "›"; margin-right: .4rem; }
.crumbs a { color: var(--gris); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.75rem, 6vw, 5rem); }
.section--blanc { background: var(--blanc); }
.section--acier { background: var(--acier); color: #fff; }
.section--acier h2, .section--acier h3 { color: #fff; }
.section--acier .kicker { color: #F0B860; }
.section--acier a { color: #F0B860; }

/* ---------- Hero ---------- */
.hero { background: var(--acier); color: #fff; padding-block: clamp(2.5rem, 5vw, 4rem); }
.hero h1, .hero h2 { color: #fff; }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 3.5rem; } }
.hero .kicker { color: #F0B860; }
.hero__accroche { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #DCE3EA; max-width: 56ch; }
.hero__preuves { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; gap: .55rem; }
.hero__preuves li { padding-left: 1.9rem; position: relative; color: #DCE3EA; }
.hero__preuves li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #F0B860; font-weight: 700; }
.hero__preuves strong { color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero__rassurance { font-size: .85rem; color: #A9B6C3; margin: 1rem 0 0; }
.hero__media { position: relative; }
.hero__media img { width: 100%; }
.hero__badge { background: var(--laiton); color: #fff; font-family: var(--titre); font-weight: 700; padding: .9rem 1.1rem; line-height: 1.2; }
.hero__badge b { display: block; font-size: 1.9rem; }
.hero__badge span { font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }

/* ---------- Barre de chiffres ---------- */
.reperes { background: var(--blanc); border-bottom: 1px solid var(--gris-clair); }
.reperes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 720px) { .reperes ul { grid-template-columns: repeat(4, 1fr); } .reperes li + li { border-left: 1px solid var(--gris-clair); } }
.reperes li { padding: 1.4rem var(--gutter); text-align: center; }
@media (max-width: 719px) { .reperes li + li { border-top: 1px solid var(--gris-clair); } }
.reperes b { display: block; font-family: var(--titre); font-size: 1.6rem; color: var(--laiton-fonce); line-height: 1.2; }
.reperes span { font-size: .88rem; color: var(--gris); }

/* ---------- Cartes ---------- */
.cartes { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 760px) { .cartes--3 { grid-template-columns: repeat(3, 1fr); } .cartes--2 { grid-template-columns: repeat(2, 1fr); } }
.carte { background: var(--blanc); border: 1px solid var(--gris-clair); border-top: 4px solid var(--laiton); padding: 1.5rem; box-shadow: var(--ombre); }
.carte h3 { margin-bottom: .5rem; }
.carte p:last-child { margin-bottom: 0; }
.carte__num { font-family: var(--titre); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); margin: 0 0 .4rem; }
.section--acier .carte { background: var(--acier-clair); border-color: #384756; color: #DCE3EA; }
.section--acier .carte p { color: #DCE3EA; }

/* ---------- Bloc tarif / offre ---------- */
.offre { background: var(--blanc); border: 2px solid var(--acier); box-shadow: var(--ombre); max-width: 560px; margin-inline: auto; }
.offre__tete { background: var(--acier); color: #fff; padding: 1.5rem; text-align: center; }
.offre__tete h2, .offre__tete h3 { color: #fff; margin: 0 0 .3rem; }
.offre__tete p { margin: 0; color: #DCE3EA; font-size: .95rem; }
.offre__prix { text-align: center; padding: 1.75rem 1.5rem 1rem; }
.offre__prix .apd { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gris); font-weight: 700; }
.offre__prix .montant { font-family: var(--titre); font-size: clamp(2.8rem, 7vw, 3.8rem); font-weight: 700; color: var(--brique); line-height: 1; display: block; }
.offre__prix .ttc { font-size: .95rem; color: var(--gris); }
.offre ul { list-style: none; margin: 0; padding: 0 1.5rem; }
.offre li { padding: .7rem 0 .7rem 1.9rem; border-top: 1px solid var(--gris-clair); position: relative; }
.offre li::before { content: "✓"; position: absolute; left: 0; color: var(--vert); font-weight: 700; }
.offre li.non::before { content: "✕"; color: var(--brique); }
.offre__pied { padding: 1.5rem; text-align: center; }
.offre__pied .btn { width: 100%; }
.offre__pied small { display: block; margin-top: .8rem; color: var(--gris); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; background: var(--brique); color: #fff; text-decoration: none;
  font-family: var(--titre); font-weight: 700; font-size: 1.05rem;
  padding: .95rem 1.6rem; border: 2px solid var(--brique); text-align: center;
}
.btn:hover { background: #8A2B12; border-color: #8A2B12; color: #fff; }
.btn--laiton { background: var(--laiton); border-color: var(--laiton); }
.btn--laiton:hover { background: var(--laiton-fonce); border-color: var(--laiton-fonce); }
.btn--ligne { background: transparent; color: #fff; border-color: #fff; }
.btn--ligne:hover { background: #fff; color: var(--acier); }
.btn--sombre { background: transparent; color: var(--acier); border-color: var(--acier); }
.btn--sombre:hover { background: var(--acier); color: #fff; }

/* ---------- Étapes ---------- */
.etapes { list-style: none; counter-reset: etape; margin: 2rem 0 0; padding: 0; display: grid; gap: 0; }
.etapes > li { counter-increment: etape; display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.2rem; padding-block: 1.4rem; border-top: 1px solid var(--gris-clair); }
.etapes > li::before { content: counter(etape, decimal-leading-zero); font-family: var(--titre); font-size: 1.5rem; font-weight: 700; color: #fff; background: var(--acier); width: 2.8rem; height: 2.8rem; display: grid; place-items: center; }
.etapes h3 { margin-bottom: .3em; }
.etapes p:last-child { margin-bottom: 0; }
.section--acier .etapes > li { border-color: #38475e; }
.section--acier .etapes > li::before { background: var(--laiton); }

/* ---------- Duo permet / ne permet pas ---------- */
.duo { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 800px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo > div { background: var(--blanc); border: 1px solid var(--gris-clair); padding: 1.5rem; }
.duo--oui { border-top: 4px solid var(--vert); }
.duo--non { border-top: 4px solid var(--brique); }
.duo ul { list-style: none; margin: 0; padding: 0; }
.duo li { padding: .6rem 0 .6rem 1.8rem; position: relative; border-top: 1px solid var(--gris-clair); }
.duo li:first-child { border-top: 0; }
.duo--oui li::before { content: "✓"; position: absolute; left: 0; color: var(--vert); font-weight: 700; }
.duo--non li::before { content: "✕"; position: absolute; left: 0; color: var(--brique); font-weight: 700; }

/* ---------- Encart avertissement ---------- */
.encart { background: var(--blanc); border: 1px solid var(--gris-clair); border-left: 6px solid var(--brique); padding: clamp(1.4rem, 4vw, 2.2rem); }
/* dans un encart, le texte occupe toute la largeur disponible : pas de gouttière vide à droite */
.encart .measure { max-width: 92ch; }
/* même logique pour les intros de section en pleine largeur */
.section > .wrap > .measure { max-width: 80ch; }
.encart h2 { margin-top: 0; }
.encart ul { padding-left: 1.2rem; }
.encart li { margin-bottom: .55rem; }
.section--acier .encart { background: var(--acier-clair); border-color: #38475e; border-left-color: #F0B860; }

/* ---------- Modules ---------- */
.modules { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 800px) { .modules { grid-template-columns: repeat(2, 1fr); } }
.module { background: var(--blanc); border: 1px solid var(--gris-clair); padding: 1.5rem; display: grid; gap: .4rem; }
.module__num { font-family: var(--titre); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--acier); justify-self: start; padding: .3rem .7rem; margin: 0 0 .4rem; }
.module ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.module li { margin-bottom: .3rem; }

/* ---------- Définitions / tableaux ---------- */
.defs { margin: 2rem 0 0; background: var(--blanc); border: 1px solid var(--gris-clair); }
.defs div { display: grid; gap: .25rem 2rem; padding: 1rem 1.25rem; border-top: 1px solid var(--gris-clair); }
.defs div:first-child { border-top: 0; }
@media (min-width: 720px) { .defs div { grid-template-columns: 15rem 1fr; } }
.defs dt { font-family: var(--titre); font-weight: 700; }
.defs dd { margin: 0; }

.tableau-wrap { overflow-x: auto; margin-top: 2rem; }
table { border-collapse: collapse; width: 100%; min-width: 560px; background: var(--blanc); }
th, td { text-align: left; vertical-align: top; padding: .9rem 1rem; border: 1px solid var(--gris-clair); }
thead th { font-family: var(--titre); background: var(--acier); color: #fff; border-color: var(--acier); }
tbody th { font-weight: 700; width: 22%; }

.liste-filet { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.liste-filet li { border-top: 1px solid var(--gris-clair); padding: .8rem 0 .8rem 1.8rem; position: relative; }
.liste-filet li::before { content: "▪"; position: absolute; left: 0; color: var(--laiton); font-weight: 700; }
.liste-filet li:last-child { border-bottom: 1px solid var(--gris-clair); }

/* ---------- FAQ ---------- */
.faq { margin-top: 2rem; background: var(--blanc); border: 1px solid var(--gris-clair); }
.faq details { border-top: 1px solid var(--gris-clair); }
.faq details:first-child { border-top: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 3rem 1.15rem 1.25rem; position: relative;
  font-family: var(--titre); font-weight: 700; font-size: clamp(1.02rem, 1.8vw, 1.18rem); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--papier); }
.faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.7rem; color: var(--laiton-fonce); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary h2, .faq summary h3 { display: inline; font: inherit; margin: 0; }
.faq .reponse { padding: 0 1.25rem 1.3rem; max-width: 72ch; }
.faq .reponse p:last-child { margin-bottom: 0; }

/* ---------- Images ---------- */
.visuel { margin: 0; }
.visuel img { width: 100%; }
.visuel figcaption { font-size: .82rem; color: var(--gris); margin-top: .5rem; }
.media-duo { display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 900px) { .media-duo { grid-template-columns: 1fr 1fr; gap: 3rem; } .media-duo--inverse > .visuel { order: 2; } }

/* ---------- Bloc CTA final ---------- */
.cta-final { background: var(--laiton); color: #fff; text-align: center; padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta-final h2 { color: #fff; }
.cta-final p { max-width: 60ch; margin-inline: auto; }
.cta-final .btn { background: var(--acier); border-color: var(--acier); }
.cta-final .btn:hover { background: #fff; color: var(--acier); border-color: #fff; }
.cta-final__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.5rem; }

/* ---------- Suite / maillage ---------- */
.suite { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 720px) { .suite { grid-template-columns: repeat(3, 1fr); } }
.suite a { display: block; background: var(--blanc); border: 1px solid var(--gris-clair); border-left: 4px solid var(--laiton); padding: 1.1rem 1.25rem; text-decoration: none; color: var(--acier); }
.suite a:hover { border-left-color: var(--brique); }
.suite strong { display: block; font-family: var(--titre); font-size: 1.1rem; color: var(--laiton-fonce); margin-bottom: .2rem; }

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 1.1rem; background: var(--blanc); border: 1px solid var(--gris-clair); padding: clamp(1.25rem, 4vw, 2rem); }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.field .req { color: var(--brique); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--acier); background: var(--papier);
  border: 1px solid var(--gris); border-radius: 0; padding: .8rem .9rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--laiton); outline-offset: 1px; background: #fff; }
.form small { color: var(--gris); }
.form button { font: inherit; cursor: pointer; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pied de page ---------- */
.footer { background: var(--acier); color: #C3CCD6; padding-block: 3rem 1.5rem; font-size: .92rem; }
.footer__grid { display: grid; gap: 1.6rem; justify-items: center; text-align: center; max-width: 62ch; margin-inline: auto; }
.footer__grid nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.3rem; }
.footer__grid nav li { margin-bottom: 0; }
.footer h2, .footer p strong { color: #fff; font-family: var(--titre); font-size: 1.05rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .4rem; }
.footer a { color: #C3CCD6; }
.footer a:hover { color: #fff; }
.footer__brand { font-family: var(--titre); font-size: 1.35rem; color: #fff; margin-bottom: .5rem; font-weight: 700; }
.footer__mention { border-top: 1px solid #38475e; margin-top: 2rem; padding-top: 1.2rem; color: #94A2B0; font-size: .84rem; }

/* 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(--laiton-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 : carte acier, coin bas droit ---------- */
.avis { position: fixed; z-index: 1000; right: var(--gutter); bottom: var(--gutter); max-width: 25rem; display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: start; background: var(--acier); color: var(--papier); border-left: 6px solid var(--laiton); padding: 1.1rem 1rem 1.2rem 1.1rem; box-shadow: 0 10px 30px rgba(22, 32, 43, .35); }
.avis:focus { outline: 3px solid var(--laiton); outline-offset: 3px; }
.avis__cle { color: var(--laiton); margin-top: .15rem; }
.avis__sur { font-family: var(--titre); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--laiton); margin: 0 0 .2rem; }
.avis__titre { font-family: var(--titre); font-size: 1.35rem; font-weight: 800; color: var(--blanc); margin: 0 0 .4rem; }
.avis p:last-child { margin: 0; font-size: .95rem; }
.avis__fermer { background: none; border: 1px solid var(--acier-clair); color: var(--papier); width: 2rem; height: 2rem; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.avis__fermer:hover { border-color: var(--laiton); color: var(--laiton); }
@media (max-width: 30rem) { .avis { left: var(--gutter); max-width: none; } }
@media (prefers-reduced-motion: no-preference) { .avis:not([hidden]) { animation: avis-monte .35s ease-out; } }
@keyframes avis-monte { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }
[data-notif][hidden] { display: none !important; }
