/* Formation Serrurier Indépendant — design orienté conversion, angle "activité solo"
   Palette : nuit #0F2440 · cuivre #B3541E · sable #F4EFE8 · blanc #FFFFFF · vert #17614A
   Identité distincte du site 01 : fond sable chaud, colonne latérale sticky, bandeaux cuivre.
   Aucun dégradé, aucun glow, aucun bouton pilule. */

:root {
  --nuit: #0F2440;
  --nuit-clair: #1B3557;
  --encre: #17283D;
  --gris: #5D6B7D;
  --gris-clair: #DBD3C8;
  --sable: #F4EFE8;
  --sable-fonce: #E8DFD3;
  --blanc: #FFFFFF;
  --cuivre: #B3541E;
  --cuivre-clair: #D9762F;
  --vert: #17614A;
  --rouge: #A32020;
  --titre: "Bitter", Georgia, "Times New Roman", serif;
  --texte: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1220px;
  --trait: 1px solid var(--gris-clair);
}

*, *::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(--sable);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.68;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cuivre); text-underline-offset: 3px; }
a:hover { color: var(--nuit); }
:focus-visible { outline: 3px solid var(--cuivre); outline-offset: 2px; }

.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--nuit); color: #fff; padding: .7rem 1.1rem; z-index: 200; font-weight: 600; }
.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.2; margin: 0 0 .55em; }
h1 { font-size: clamp(1.95rem, 4.6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.12rem, 1.9vw, 1.35rem); }
p { margin: 0 0 1.1em; }
.measure { max-width: 66ch; }
.centre { text-align: center; margin-inline: auto; }

.kicker { font-family: var(--texte); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cuivre); margin: 0 0 .8rem; }

/* ---------- Bandeau ---------- */
.bandeau { background: var(--cuivre); color: #fff; font-size: .9rem; text-align: center; padding: .6rem var(--gutter); margin: 0; }
.bandeau strong { color: #FFE2C2; }
.bandeau a { color: #fff; font-weight: 700; }

/* ---------- En-tête : COLONNE LATERALE FIXE (ossature propre au site 02) ----------
   Sur grand ecran, la navigation occupe une bande verticale a gauche ;
   le contenu est decale d'autant. En dessous de 1100px, elle redevient une barre haute. */
.masthead { background: var(--nuit); color: #fff; }
@media (min-width: 1100px) {
  .masthead {
    position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 100;
    display: flex; flex-direction: column; overflow-y: auto;
    border-right: 4px solid var(--cuivre);
  }
  .masthead .wrap { display: block; padding: 1.6rem 1.3rem; max-width: none; }
  body { padding-left: 250px; }
  /* le bandeau appartient au flux decale : pas de marge supplementaire */
  .bandeau { margin-left: 0; }
}
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: #fff; }
@media (min-width: 1100px) {
  .brand { display: grid; gap: .5rem; margin-bottom: 1.8rem; }
  .brand img { width: 52px; height: 52px; }
  .brand b { font-size: 1.28rem; }
}
.brand img { width: 40px; height: 40px; }
.brand b { font-family: var(--titre); font-size: 1.14rem; font-weight: 700; display: block; line-height: 1.15; }
.brand span { font-size: .72rem; color: #9FB2CA; letter-spacing: .07em; text-transform: uppercase; }

.nav-toggle { display: none; font: inherit; font-weight: 700; background: var(--cuivre); 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; gap: .25rem 1.35rem; }
@media (min-width: 1100px) {
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-top: 1px solid var(--nuit-clair); }
  .nav li:last-child { border-top: 0; margin-top: 1.1rem; }
  .nav a { display: block; padding: .72rem 0; border-bottom: 0; border-left: 3px solid transparent; padding-left: .7rem; }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: transparent; border-left-color: var(--cuivre-clair); background: var(--nuit-clair); }
  .nav .nav-cta { text-align: center; padding: .7rem 1rem; border-left: 0; }
  .nav .nav-cta:hover { border-left: 0; background: #fff; }
}
.nav a { color: #E4EAF2; text-decoration: none; font-weight: 600; font-size: .94rem; padding-block: .3rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--cuivre-clair); }
.nav .nav-cta { background: var(--cuivre); color: #fff; padding: .58rem 1.1rem; border-bottom: 0; }
.nav .nav-cta:hover { background: #fff; color: var(--nuit); }

@media (max-width: 900px) {
  .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(--nuit-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.6rem, 5.5vw, 4.5rem); }
.section--blanc { background: var(--blanc); }
.section--nuit { background: var(--nuit); color: #E4EAF2; }
.section--nuit h2, .section--nuit h3 { color: #fff; }
.section--nuit .kicker { color: #E79A5E; }
.section--nuit a { color: #E79A5E; }
.section--sable { background: var(--sable-fonce); }

/* ---------- Hero ---------- */
.hero { background: var(--nuit); color: #E4EAF2; padding-block: clamp(2.4rem, 5vw, 3.8rem); }
.hero h1 { color: #fff; }
.hero__grid { display: grid; gap: 2.3rem; align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 3.4rem; } }
.hero .kicker { color: #E79A5E; }
.hero__accroche { font-size: clamp(1.02rem, 1.9vw, 1.2rem); max-width: 56ch; }
.hero__preuves { list-style: none; margin: 0 0 1.7rem; padding: 0; display: grid; gap: .5rem; }
.hero__preuves li { padding-left: 1.85rem; position: relative; }
.hero__preuves li::before { content: "▸"; position: absolute; left: 0; color: #E79A5E; font-weight: 700; }
.hero__preuves strong { color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__note { font-size: .85rem; color: #9FB2CA; margin: 1rem 0 0; }
.hero__media img { width: 100%; }
.hero__prix { background: var(--cuivre); color: #fff; padding: .95rem 1.15rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.hero__prix b { font-family: var(--titre); font-size: 1.85rem; line-height: 1; }
.hero__prix span { font-size: .85rem; }

/* ---------- Bandeau repères ---------- */
.reperes { background: var(--blanc); border-bottom: var(--trait); }
.reperes ul { list-style: none; margin: 0; padding: 0; display: grid; }
@media (min-width: 720px) { .reperes ul { grid-template-columns: repeat(4, 1fr); } .reperes li + li { border-left: var(--trait); } }
.reperes li { padding: 1.3rem var(--gutter); text-align: center; }
@media (max-width: 719px) { .reperes li + li { border-top: var(--trait); } }
.reperes b { display: block; font-family: var(--titre); font-size: 1.5rem; color: var(--cuivre); line-height: 1.2; }
.reperes span { font-size: .87rem; color: var(--gris); }

/* ---------- Colonne latérale sticky (signature du site 02) ---------- */
.avec-aside { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .avec-aside { grid-template-columns: minmax(0, 1fr) 330px; gap: 3rem; align-items: start; } }
.aside-offre { background: var(--blanc); border: 2px solid var(--nuit); }
@media (min-width: 1000px) { .aside-offre { position: sticky; top: 5.5rem; } }
.aside-offre__tete { background: var(--nuit); color: #fff; padding: 1.1rem 1.2rem; }
.aside-offre__tete p { margin: 0; font-size: .87rem; color: #9FB2CA; }
.aside-offre__tete strong { font-family: var(--titre); font-size: 1.1rem; display: block; }
.aside-offre__prix { text-align: center; padding: 1.4rem 1.2rem .6rem; }
.aside-offre__prix .apd { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gris); font-weight: 700; }
.aside-offre__prix .montant { font-family: var(--titre); font-size: 2.9rem; font-weight: 700; color: var(--cuivre); line-height: 1; display: block; }
.aside-offre__prix .ttc { font-size: .9rem; color: var(--gris); }
.aside-offre ul { list-style: none; margin: 0; padding: 0 1.2rem; }
.aside-offre li { padding: .6rem 0 .6rem 1.7rem; border-top: var(--trait); position: relative; font-size: .94rem; }
.aside-offre li::before { content: "✓"; position: absolute; left: 0; color: var(--vert); font-weight: 700; }
.aside-offre li.non::before { content: "✕"; color: var(--rouge); }
.aside-offre__pied { padding: 1.2rem; }
.aside-offre__pied .btn { width: 100%; }
.aside-offre__pied small { display: block; margin-top: .7rem; color: var(--gris); text-align: center; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; background: var(--cuivre); color: #fff; text-decoration: none;
  font-family: var(--texte); font-weight: 700; font-size: 1.02rem;
  padding: .9rem 1.5rem; border: 2px solid var(--cuivre); text-align: center; cursor: pointer;
}
.btn:hover { background: #8E4116; border-color: #8E4116; color: #fff; }
.btn--ligne { background: transparent; color: #fff; border-color: #fff; }
.btn--ligne:hover { background: #fff; color: var(--nuit); }
.btn--nuit { background: var(--nuit); border-color: var(--nuit); }
.btn--nuit:hover { background: var(--encre); border-color: var(--encre); }
.btn--vide { background: transparent; color: var(--nuit); border-color: var(--nuit); }
.btn--vide:hover { background: var(--nuit); color: #fff; }

/* ---------- Cartes ---------- */
.cartes { display: grid; gap: 1.15rem; margin-top: 1.9rem; }
@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: var(--trait); border-left: 4px solid var(--cuivre); padding: 1.35rem; }
.carte h3 { margin-bottom: .45rem; }
.carte p:last-child, .carte ul:last-child { margin-bottom: 0; }
.carte__num { font-family: var(--titre); font-size: 1.9rem; color: var(--sable-fonce); line-height: 1; margin: 0 0 .3rem; }
.section--nuit .carte { background: var(--nuit-clair); border-color: #2C4568; border-left-color: #E79A5E; color: #E4EAF2; }

/* ---------- Étapes numérotées ---------- */
.etapes { list-style: none; counter-reset: e; margin: 1.9rem 0 0; padding: 0; }
.etapes > li { counter-increment: e; display: grid; grid-template-columns: 2.9rem 1fr; gap: 1.1rem; padding-block: 1.25rem; border-top: var(--trait); }
.etapes > li::before { content: counter(e, decimal-leading-zero); font-family: var(--titre); font-size: 1.05rem; font-weight: 700; color: #fff; background: var(--nuit); width: 2.5rem; height: 2.5rem; display: grid; place-items: center; }
.etapes h3 { margin-bottom: .25em; }
.etapes p:last-child { margin-bottom: 0; }
.section--nuit .etapes > li { border-color: var(--nuit-clair); }
.section--nuit .etapes > li::before { background: var(--cuivre); }

/* ---------- Duo oui / non ---------- */
.duo { display: grid; gap: 1.15rem; margin-top: 1.9rem; }
@media (min-width: 800px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo > div { background: var(--blanc); border: var(--trait); padding: 1.4rem; }
.duo--oui { border-top: 4px solid var(--vert); }
.duo--non { border-top: 4px solid var(--rouge); }
.duo ul { list-style: none; margin: 0; padding: 0; }
.duo li { padding: .55rem 0 .55rem 1.75rem; position: relative; border-top: var(--trait); }
.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(--rouge); font-weight: 700; }

/* ---------- Encart réglementaire ---------- */
.encart { background: var(--blanc); border: var(--trait); border-left: 6px solid var(--rouge); padding: clamp(1.3rem, 4vw, 2.1rem); }
.encart h2 { margin-top: 0; }
.encart .measure { max-width: 90ch; }
.encart ul { padding-left: 1.2rem; }
.encart li { margin-bottom: .5rem; }
.section--nuit .encart { background: var(--nuit-clair); border-color: var(--nuit-clair); border-left-color: #E79A5E; }

/* ---------- Modules ---------- */
.modules { display: grid; gap: 1.15rem; margin-top: 1.9rem; }
@media (min-width: 820px) { .modules { grid-template-columns: repeat(2, 1fr); } }
.module { background: var(--blanc); border: var(--trait); padding: 1.35rem; }
.module__num { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--nuit); padding: .28rem .65rem; margin: 0 0 .6rem; }
.module ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.module li { margin-bottom: .28rem; }

/* ---------- Listes ---------- */
.liste-trait { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.liste-trait li { border-top: var(--trait); padding: .75rem 0 .75rem 1.7rem; position: relative; }
.liste-trait li::before { content: "▸"; position: absolute; left: 0; color: var(--cuivre); font-weight: 700; }
.liste-trait li:last-child { border-bottom: var(--trait); }

/* ---------- Définitions / tableau ---------- */
.defs { margin: 1.9rem 0 0; background: var(--blanc); border: var(--trait); }
.defs div { display: grid; gap: .2rem 2rem; padding: .95rem 1.2rem; border-top: var(--trait); }
.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: 1.9rem; }
table { border-collapse: collapse; width: 100%; min-width: 560px; background: var(--blanc); }
th, td { text-align: left; vertical-align: top; padding: .85rem 1rem; border: var(--trait); }
thead th { font-family: var(--titre); background: var(--nuit); color: #fff; border-color: var(--nuit); }
tbody th { font-weight: 700; width: 24%; }

/* ---------- FAQ ---------- */
.faq { margin-top: 1.9rem; background: var(--blanc); border: var(--trait); }
.faq details { border-top: var(--trait); }
.faq details:first-child { border-top: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 3rem 1.1rem 1.2rem; position: relative;
  font-family: var(--titre); font-weight: 700; font-size: clamp(1rem, 1.7vw, 1.14rem); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--sable); }
.faq summary::after { content: "+"; position: absolute; right: 1.05rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--cuivre); 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.2rem 1.25rem; 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: .45rem; }
.media-duo { display: grid; gap: 1.2rem; align-items: center; }
@media (min-width: 900px) { .media-duo { grid-template-columns: 1fr 1fr; gap: 2.8rem; } .media-duo--inverse > .visuel { order: 2; } }

/* ---------- CTA final ---------- */
.cta-final { background: var(--cuivre); color: #fff; text-align: center; padding-block: clamp(2.4rem, 5.5vw, 3.8rem); }
.cta-final h2 { color: #fff; }
.cta-final p { max-width: 60ch; margin-inline: auto; }
.cta-final .btn { background: var(--nuit); border-color: var(--nuit); }
.cta-final .btn:hover { background: #fff; color: var(--nuit); border-color: #fff; }
.cta-final__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.4rem; }

/* ---------- Maillage ---------- */
.suite { display: grid; gap: 1rem; margin-top: 1.9rem; }
@media (min-width: 720px) { .suite { grid-template-columns: repeat(3, 1fr); } }
.suite a { display: block; background: var(--blanc); border: var(--trait); border-top: 4px solid var(--cuivre); padding: 1.05rem 1.2rem; text-decoration: none; color: var(--encre); }
.suite a:hover { border-top-color: var(--nuit); }
.suite strong { display: block; font-family: var(--titre); font-size: 1.08rem; color: var(--cuivre); margin-bottom: .2rem; }

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 1.05rem; background: var(--blanc); border: var(--trait); padding: clamp(1.2rem, 4vw, 1.9rem); }
.field label { display: block; font-weight: 700; margin-bottom: .32rem; }
.field .req { color: var(--rouge); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--encre); background: var(--sable);
  border: 1px solid var(--gris); border-radius: 0; padding: .78rem .9rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--cuivre); outline-offset: 1px; background: #fff; }
.form small { color: var(--gris); }

.sr-only, .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(--nuit); color: #B8C6D8; padding-block: 2.8rem 1.4rem; font-size: .92rem; }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.4rem; } }
.footer p strong { color: #fff; font-family: var(--titre); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .38rem; }
.footer a { color: #B8C6D8; }
.footer a:hover { color: #fff; }
.footer__brand { font-family: var(--titre); font-size: 1.3rem; color: #fff; margin-bottom: .45rem; font-weight: 700; }
.footer__mention { border-top: 1px solid var(--nuit-clair); margin-top: 1.9rem; padding-top: 1.1rem; color: #8FA1B8; font-size: .84rem; }

/* 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 : enseigne suspendue, haut de page ---------- */
.enseigne-ok { position: fixed; z-index: 1000; top: 2.25rem; left: 50%; transform: translateX(-50%); width: min(30rem, calc(100% - 2 * var(--gutter))); background: var(--nuit); color: var(--sable); border: 3px solid var(--cuivre); padding: 1.3rem 1.4rem 1.2rem; text-align: center; box-shadow: 0 12px 28px rgba(15, 36, 64, .35); }
.enseigne-ok::before, .enseigne-ok::after { content: ""; position: absolute; bottom: 100%; width: 2px; height: 2.4rem; background: var(--cuivre); }
.enseigne-ok::before { left: 18%; }
.enseigne-ok::after { right: 18%; }
.enseigne-ok:focus { outline: 3px solid var(--cuivre-clair); outline-offset: 4px; }
.enseigne-ok__nom { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cuivre-clair); margin: 0 0 .35rem; padding-bottom: .45rem; border-bottom: 1px solid var(--nuit-clair); }
.enseigne-ok__titre { font-family: var(--titre); font-size: 1.5rem; font-weight: 700; color: var(--blanc); margin: 0 0 .4rem; }
.enseigne-ok p { margin: 0 0 .9rem; }
.enseigne-ok__fermer { font: inherit; font-weight: 600; background: var(--cuivre); color: var(--blanc); border: 0; padding: .5rem 1.4rem; cursor: pointer; }
.enseigne-ok__fermer:hover { background: var(--cuivre-clair); }
@media (prefers-reduced-motion: no-preference) { .enseigne-ok:not([hidden]) { animation: enseigne-balance .7s ease-out; transform-origin: top center; } }
@keyframes enseigne-balance { 0% { opacity: 0; transform: translateX(-50%) translateY(-2rem) rotate(-3deg); } 55% { opacity: 1; transform: translateX(-50%) rotate(2deg); } 80% { transform: translateX(-50%) rotate(-1deg); } 100% { transform: translateX(-50%); } }
[data-notif][hidden] { display: none !important; }
