/* Formation Serrurier Multiservices — catalogue de compétences
   Angle : la serrurerie comme module à brancher sur une activité existante.
   Palette : canard #0E4F54 · moutarde #C88A04 · crème #FAF7F0 · ardoise #33413F
   Parti pris structurel, à ne PAS reprendre des sites 01/02/03 :
     - en-tête "bon de commande" : ligne d'article tarifée, pas de photo de héros
     - catalogue en tuiles numérotées M1..M7 avec case à cocher décorative
     - frise horizontale (avant / pendant / après) au lieu d'étapes verticales
     - accordéons groupés par thème, pas de liste plate
     - pas de rail sommaire (site 03), pas d'onglets (site 03), pas de colonne sticky (site 02) */

:root {
  --canard: #0E4F54;
  --canard-fonce: #0A3B3F;
  --canard-clair: #156A70;
  --moutarde: #C88A04;
  --moutarde-fonce: #9A6A03;
  --creme: #FAF7F0;
  --creme-fonce: #F0EADC;
  --ardoise: #33413F;
  --gris: #62706E;
  --gris-clair: #D8D2C4;
  --blanc: #FFFFFF;
  --vert: #17663F;
  --rouge: #9E2A2B;
  --titre: "DM Serif Display", Georgia, "Times New Roman", serif;
  --texte: "Manrope", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --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(--creme);
  color: var(--ardoise);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.66;
}

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

.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--canard-fonce); 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: 400; line-height: 1.18; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.8vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.3vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1.05em; }
.measure { max-width: 66ch; }

.surtitre { font-family: var(--texte); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--moutarde-fonce); margin: 0 0 .75rem; }

/* ---------- Bandeau ---------- */
/* Pas de bandeau d'annonce : le bon de commande porte deja tarif et duree. */

/* ---------- En-tête ---------- */
/* En-tete non sticky, navigation alignee a droite sur une ligne basse (ossature propre au site 04) */
.masthead { background: var(--creme); border-bottom: 2px solid var(--canard); }
.masthead .wrap { display: grid; gap: .8rem; padding-block: 1.1rem .5rem; }
@media (min-width: 941px) {
  .masthead .wrap { grid-template-columns: auto 1fr; align-items: end; column-gap: 2rem; }
  .masthead .nav { justify-self: end; }
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ardoise); }
.brand img { width: 40px; height: 40px; }
.brand b { font-family: var(--titre); font-size: 1.22rem; font-weight: 400; display: block; line-height: 1.12; }
.brand span { font-size: .71rem; color: var(--gris); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }

.menu-toggle { display: none; font: inherit; font-weight: 700; background: var(--canard); color: #fff; border: 0; padding: .55rem 1rem; cursor: pointer; border-radius: 2px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .2rem 1.25rem; }
.nav a { color: var(--ardoise); text-decoration: none; font-weight: 700; font-size: .93rem; padding-block: .3rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--canard); border-bottom-color: var(--moutarde); }
.nav .nav-cta { background: var(--moutarde); color: #23282B; padding: .55rem 1.05rem; border-bottom: 0; border-radius: 2px; }
.nav .nav-cta:hover { background: var(--canard); color: #fff; }

@media (max-width: 940px) {
  .js .menu-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: var(--trait); }
  .nav a { display: block; padding: .78rem 0; border-bottom: 0; }
  .nav .nav-cta { text-align: center; margin-top: .5rem; }
}

/* ---------- Fil d'Ariane ---------- */
.crumbs { font-size: .84rem; padding-block: .9rem 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 ---------- */
.sec { padding-block: clamp(2.4rem, 5.5vw, 4.2rem); }
.sec--blanc { background: var(--blanc); }
.sec--canard { background: var(--canard-fonce); color: #DCE8E9; }
.sec--canard h2, .sec--canard h3 { color: #fff; }
.sec--canard .surtitre { color: #F2C55C; }
.sec--canard a { color: #F2C55C; }
.sec--creme { background: var(--creme-fonce); }

/* ---------- BON DE COMMANDE (en-tête signature du site 04) ---------- */
.commande { background: var(--canard-fonce); color: #DCE8E9; padding-block: clamp(2.2rem, 5vw, 3.4rem); }
.commande h1 { color: #fff; }
.commande__intro { max-width: 58ch; font-size: clamp(1rem, 1.8vw, 1.14rem); }

/* la "ligne d'article" : libellé + quantité + prix, comme un bon de commande */
.article { margin-top: 1.8rem; background: #0D4448; border: 1px solid #1B5F64; }
.article__entete { display: grid; gap: .3rem; padding: .6rem 1rem; background: var(--moutarde); color: #23282B; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
@media (min-width: 720px) { .article__entete { grid-template-columns: 1fr 9rem 11rem; } }
.article__ligne { display: grid; gap: .5rem; padding: 1rem; align-items: center; border-top: 1px solid #1B5F64; }
@media (min-width: 720px) { .article__ligne { grid-template-columns: 1fr 9rem 11rem; } }
.article__ligne:first-of-type { border-top: 0; }
.article__nom { color: #fff; font-family: var(--titre); font-size: 1.22rem; line-height: 1.25; }
.article__nom small { display: block; font-family: var(--texte); font-size: .84rem; color: #9FBCBE; margin-top: .2rem; }
.article__qte { font-weight: 700; color: #F2C55C; }
.article__prix { font-family: var(--titre); font-size: 1.85rem; color: #fff; line-height: 1.1; }
.article__prix small { display: block; font-family: var(--texte); font-size: .76rem; color: #9FBCBE; font-weight: 700; }
.article__total { padding: 1rem; border-top: 2px solid var(--moutarde); display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; }
.article__total p { margin: 0; font-size: .86rem; color: #9FBCBE; max-width: 46ch; }

.commande__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.commande__reserve { font-size: .85rem; color: #C2D6D8; margin-top: 1rem; max-width: 62ch; }
.commande__reserve a { color: #F2C55C; font-weight: 700; }
.commande__reserve a:hover { color: #fff; }

/* ---------- CATALOGUE DE MODULES (tuiles cochables) ---------- */
.catalogue { display: grid; gap: 1rem; margin-top: 1.7rem; }
@media (min-width: 700px) { .catalogue { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .catalogue { grid-template-columns: repeat(3, 1fr); } }
.tuile { background: var(--blanc); border: var(--trait); border-radius: 3px; padding: 1.3rem; position: relative; }
.tuile__ref { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--canard); padding: .25rem .6rem; border-radius: 2px; margin: 0 0 .7rem; }
.tuile h3 { margin-bottom: .4rem; }
.tuile p:last-child, .tuile ul:last-child { margin-bottom: 0; }
.tuile ul { margin: .5rem 0 0; padding-left: 1.05rem; font-size: .95rem; }
.tuile li { margin-bottom: .25rem; }
/* case à cocher décorative, façon bon de commande */
.tuile::after { content: "✓"; position: absolute; top: 1.1rem; right: 1.1rem; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border: 2px solid var(--gris-clair); color: var(--moutarde); font-weight: 700; border-radius: 2px; }
.sec--canard .tuile { background: #0D4448; border-color: #1B5F64; color: #DCE8E9; }
.sec--canard .tuile::after { border-color: #1B5F64; }

/* ---------- FRISE HORIZONTALE (avant / pendant / après) ---------- */
.frise { display: grid; gap: 0; margin-top: 1.7rem; border: var(--trait); background: var(--blanc); border-radius: 3px; overflow: hidden; }
@media (min-width: 860px) { .frise { grid-template-columns: repeat(3, 1fr); } }
.frise__etape { padding: 1.4rem; border-top: var(--trait); }
.frise__etape:first-child { border-top: 0; }
@media (min-width: 860px) { .frise__etape { border-top: 0; border-left: var(--trait); } .frise__etape:first-child { border-left: 0; } }
.frise__moment { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--canard); padding: .3rem .7rem; border-radius: 2px; margin: 0 0 .7rem; justify-self: start; width: fit-content; }
.frise__etape:nth-child(2) .frise__moment { background: var(--moutarde); color: #23282B; }
.frise__etape:nth-child(3) .frise__moment { background: var(--vert); }
.frise__etape h3 { margin-bottom: .35rem; }
.frise__etape p:last-child { margin-bottom: 0; }

/* ---------- Tableaux ---------- */
.tableau-wrap { overflow-x: auto; margin-top: 1.6rem; border: var(--trait); border-radius: 3px; background: var(--blanc); }
table.grille { border-collapse: collapse; width: 100%; min-width: 560px; }
table.grille caption { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-align: left; padding: .75rem .9rem; background: var(--canard-fonce); color: #fff; }
table.grille th, table.grille td { text-align: left; vertical-align: top; padding: .78rem .9rem; border-top: var(--trait); }
table.grille thead th { font-family: var(--titre); font-weight: 400; font-size: 1.1rem; background: var(--creme-fonce); border-top: 0; }
table.grille tbody th { font-weight: 700; width: 30%; }
table.grille td.oui { color: var(--vert); font-weight: 700; }
table.grille td.non { color: var(--rouge); font-weight: 700; }

/* ---------- Listes ---------- */
.coches { list-style: none; padding: 0; margin: 1.1rem 0 0; }
.coches li { padding: .55rem 0 .55rem 1.8rem; position: relative; border-top: var(--trait); }
.coches li::before { content: "✓"; position: absolute; left: 0; color: var(--moutarde-fonce); font-weight: 800; }
.coches li:last-child { border-bottom: var(--trait); }
.sec--canard .coches li { border-color: #1B5F64; }
.sec--canard .coches li::before { color: #F2C55C; }

/* ---------- Encadré vigilance ---------- */
.vigilance { background: var(--blanc); border: var(--trait); border-top: 5px solid var(--rouge); border-radius: 3px; padding: clamp(1.2rem, 3.5vw, 2rem); }
.vigilance h2 { margin-top: 0; }
.vigilance .measure { max-width: 88ch; }
.vigilance ul { padding-left: 1.15rem; }
.vigilance li { margin-bottom: .45rem; }
.sec--canard .vigilance { background: #0D4448; border-color: #1B5F64; border-top-color: var(--moutarde); }

/* ---------- FAQ groupée ---------- */
.faq-groupe { margin-top: 1.7rem; }
.faq-groupe > h3 { font-size: 1.05rem; font-family: var(--texte); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--canard); margin: 1.8rem 0 .6rem; }
.faq { border: var(--trait); border-radius: 3px; background: var(--blanc); }
.faq details { border-top: var(--trait); }
.faq details:first-child { border-top: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 1rem 2.8rem 1rem 1.1rem; position: relative;
  font-family: var(--titre); font-weight: 400; font-size: clamp(1.05rem, 1.8vw, 1.2rem); line-height: 1.32;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--creme); }
.faq summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.55rem; color: var(--moutarde-fonce); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary h2, .faq summary h3 { display: inline; font: inherit; margin: 0; text-transform: none; letter-spacing: 0; color: inherit; }
.faq .reponse { padding: 0 1.1rem 1.2rem; max-width: 74ch; }
.faq .reponse p:last-child { margin-bottom: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; background: var(--moutarde); color: #23282B; text-decoration: none;
  font-family: var(--texte); font-weight: 800; font-size: 1rem;
  padding: .85rem 1.5rem; border: 2px solid var(--moutarde); text-align: center; cursor: pointer; border-radius: 2px;
}
.btn:hover { background: var(--moutarde-fonce); border-color: var(--moutarde-fonce); color: #fff; }
.btn--ligne { background: transparent; color: #fff; border-color: #fff; }
.btn--ligne:hover { background: #fff; color: var(--canard-fonce); }
.btn--canard { background: var(--canard); border-color: var(--canard); color: #fff; }
.btn--canard:hover { background: var(--canard-fonce); border-color: var(--canard-fonce); }
.btn--vide { background: transparent; color: var(--canard); border-color: var(--canard); }
.btn--vide:hover { background: var(--canard); color: #fff; }

/* ---------- Images ---------- */
.visuel { margin: 0; border-radius: 3px; overflow: hidden; }
.visuel img { width: 100%; }
.visuel figcaption { font-size: .82rem; color: var(--gris); margin-top: .45rem; }
.duo { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; gap: 2.6rem; } .duo--inverse > .visuel { order: 2; } }

/* ---------- Renvoi ---------- */
.renvoi { margin-top: 1.5rem; padding-top: .9rem; border-top: 2px solid var(--canard); font-size: .9rem; font-weight: 700; }

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 1rem; background: var(--blanc); border: var(--trait); border-radius: 3px; padding: clamp(1.1rem, 3.5vw, 1.9rem); }
.champ label { display: block; font-weight: 800; margin-bottom: .3rem; }
.champ .req { color: var(--rouge); }
.champ input, .champ textarea {
  width: 100%; font: inherit; color: var(--ardoise); background: var(--creme);
  border: 1px solid var(--gris); border-radius: 2px; padding: .75rem .85rem;
}
.champ textarea { min-height: 8.5rem; resize: vertical; }
.champ input:focus, .champ textarea:focus { outline: 3px solid var(--moutarde); outline-offset: 1px; background: #fff; }
.form small { color: var(--gris); }

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

/* ---------- Pied de page ---------- */
.footer { background: var(--canard-fonce); color: #A9C2C4; padding-block: 2.6rem 1.3rem; font-size: .91rem; }
/* Pied de page en bandeau : une ligne de liens, pas de colonnes (ossature propre au site 04) */
.footer__grid { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.footer__grid nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.4rem; }
.footer__grid nav li { margin-bottom: 0; }
.footer p strong { color: #fff; }
.footer__brand { font-family: var(--titre); font-size: 1.3rem; color: #fff; margin-bottom: .45rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .35rem; }
.footer a { color: #A9C2C4; }
.footer a:hover { color: #fff; }
.footer__mention { border-top: 1px solid #1B5F64; margin-top: 1.8rem; padding-top: 1.05rem; color: #8BA5A7; font-size: .83rem; }

/* 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 : étiquette à œillet, haut droite ---------- */
.etiquette-ok { position: fixed; z-index: 1000; top: 5.5rem; right: var(--gutter); width: min(24rem, calc(100% - 2 * var(--gutter))); background: var(--canard); color: var(--creme); padding: 1.2rem 2.8rem 1.2rem 3.4rem; clip-path: polygon(1.9rem 0, 100% 0, 100% 100%, 1.9rem 100%, 0 50%); filter: drop-shadow(0 8px 16px rgba(10, 59, 63, .35)); }
.etiquette-ok::before { content: ""; position: absolute; left: 1.05rem; top: 50%; width: .9rem; height: .9rem; margin-top: -.45rem; border-radius: 50%; background: var(--creme); box-shadow: 0 0 0 3px var(--moutarde); }
.etiquette-ok:focus { outline: none; background: var(--canard-fonce); }
.etiquette-ok__titre { font-family: var(--titre); font-size: 1.45rem; line-height: 1.15; color: var(--blanc); margin: 0 0 .35rem; }
.etiquette-ok p:not(.etiquette-ok__titre) { margin: 0; font-size: .93rem; border-top: 1px solid var(--canard-clair); padding-top: .5rem; }
.etiquette-ok__fermer { position: absolute; top: .55rem; right: .55rem; background: var(--moutarde); color: var(--canard-fonce); border: 0; width: 1.9rem; height: 1.9rem; font-size: 1.2rem; font-weight: 700; line-height: 1; cursor: pointer; }
.etiquette-ok__fermer:hover { background: var(--creme); }
@media (prefers-reduced-motion: no-preference) { .etiquette-ok:not([hidden]) { animation: etiquette-entre .45s ease-out; } }
@keyframes etiquette-entre { from { opacity: 0; transform: translateX(3rem) rotate(4deg); } to { opacity: 1; transform: none; } }
[data-notif][hidden] { display: none !important; }
