/* Ouest Formation — feuille de style unique
   Palette : ardoise (toits de Laval), terre cuite (soleil couchant à l'ouest), sable. */
:root {
  --ardoise: #1f3a4a;
  --ardoise-2: #2c5266;
  --encre: #15232c;
  --texte: #2a3740;
  --doux: #55636c;
  --terre: #a5461f;
  --terre-vif: #e0794d;
  --sable: #f7f2ea;
  --sable-2: #efe7da;
  --blanc: #ffffff;
  --brume: #e3ebee;
  --trait: #d9d0c2;
  --ok: #2f6b3f;
  --rayon: 14px;
  --ombre: 0 1px 2px rgba(21, 35, 44, .06), 0 6px 24px rgba(21, 35, 44, .07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --large: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--sable); color: var(--texte);
  font: 1.0625rem/1.65 var(--sans);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--ardoise); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--terre); }
:focus-visible { outline: 3px solid var(--terre-vif); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); color: var(--encre); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); margin: 0 0 .6em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 2.2em 0 .7em; }
h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
strong { color: var(--encre); }

.lien-evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--encre); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.lien-evitement:focus { top: 1rem; color: #fff; }

.conteneur { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48em) { .conteneur { padding: 0 2rem; } }
.etroit { max-width: 46rem; }

/* ── En-tête ─────────────────────────────────────── */
.entete { background: var(--sable); border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 50; }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.marque { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--encre); }
.marque img { width: 2.6rem; height: 2.6rem; }
.marque span { display: flex; flex-direction: column; line-height: 1.05; }
.marque b { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .01em; }
.marque small { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--terre); font-weight: 600; }

.menu-bouton {
  display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-weight: 600;
  background: none; border: 1px solid var(--trait); border-radius: 999px; padding: .45rem .9rem; color: var(--encre); cursor: pointer;
}
.menu-bouton svg { width: 1.1rem; height: 1.1rem; }
.nav { display: none; }
.nav.ouvert { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--sable); border-bottom: 1px solid var(--trait); box-shadow: var(--ombre); }
.nav ul { list-style: none; margin: 0; padding: .5rem 1rem 1rem; }
.nav li { margin: 0; }
.nav a { display: block; padding: .7rem .4rem; text-decoration: none; color: var(--encre); font-weight: 500; border-bottom: 1px solid var(--sable-2); }
.nav a[aria-current="page"] { color: var(--terre); font-weight: 700; }
.nav .cta-nav { margin-top: .6rem; border: 0; text-align: center; }
.no-js .nav { display: block; position: static; }
@media (min-width: 62em) {
  .menu-bouton { display: none; }
  .nav, .nav.ouvert { display: block; position: static; box-shadow: none; border: 0; background: none; }
  .nav ul { display: flex; align-items: center; gap: .2rem; padding: 0; }
  .nav a { border: 0; padding: .5rem .7rem; border-radius: 8px; font-size: .97rem; }
  .nav a:hover { background: var(--sable-2); color: var(--encre); }
  .nav a[aria-current="page"] { background: var(--sable-2); }
  .nav .cta-nav { margin: 0 0 0 .5rem; }
}
.nav a.bouton, .nav a.bouton[aria-current="page"] { background: var(--terre); color: #fff; border-color: var(--terre); }
.nav a.bouton:hover { background: #8b3a18; }

/* ── Boutons ─────────────────────────────────────── */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--terre); color: #fff !important; text-decoration: none; font-weight: 700;
  padding: .8rem 1.35rem; border-radius: 999px; border: 2px solid var(--terre); cursor: pointer; font: inherit; font-weight: 700;
  transition: background .15s, transform .15s;
}
.bouton:hover { background: #8b3a18; border-color: #8b3a18; }
.bouton.secondaire { background: transparent; color: var(--ardoise) !important; border-color: var(--ardoise); }
.bouton.secondaire:hover { background: var(--ardoise); color: #fff !important; }
.bouton.clair { background: var(--sable); color: var(--ardoise) !important; border-color: var(--sable); }
.bouton.clair:hover { background: #fff; }
.boutons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ── Bandeau d'ouverture ─────────────────────────── */
.ouverture { background: var(--ardoise); color: #e9eef0; position: relative; overflow: hidden; }
.ouverture .conteneur { position: relative; padding-top: 3.2rem; padding-bottom: 3.4rem; }
.ouverture h1 { color: #fff; max-width: 20ch; }
.ouverture p { max-width: 40rem; font-size: 1.12rem; }
.ouverture a:not(.bouton) { color: #fff; }
.ouverture .surtitre { color: var(--terre-vif); }
.ouverture::after {
  content: ""; position: absolute; right: -6rem; bottom: -9rem; width: 26rem; height: 26rem; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(224,121,77,.55), rgba(224,121,77,0) 68%);
  pointer-events: none;
}
.horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; opacity: .18;
  background: repeating-linear-gradient(to bottom, #f7f2ea 0 2px, transparent 2px 6px); }
.surtitre { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--terre); margin-bottom: .8rem; }
.fil { font-size: .9rem; margin-bottom: 1.2rem; color: #c9d5da; }
.fil a { color: #fff; }
.fil ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.fil li:not(:last-child)::after { content: "›"; margin-left: .35rem; opacity: .7; }

.page-titre { background: var(--ardoise); color: #e9eef0; position: relative; overflow: hidden; }
.page-titre .conteneur { padding-top: 2.4rem; padding-bottom: 2.4rem; position: relative; }
.page-titre h1 { color: #fff; margin-bottom: .3em; }
.page-titre p { max-width: 44rem; margin: 0; font-size: 1.08rem; }

/* ── Pastilles (Qualiopi, CPF…) ──────────────────── */
.pastilles { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; padding: 0; list-style: none; }
.pastilles li { margin: 0; }
.pastille {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem;
  background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: .4rem .9rem;
}
.pastille svg { width: 1.1rem; height: 1.1rem; flex: none; }

/* ── Sections et cartes ──────────────────────────── */
main { display: block; }
.section { padding: 3rem 0; }
.section.alt { background: var(--blanc); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.section > .conteneur > h2:first-child, .section h2.premier { margin-top: 0; }
.chapo { font-size: 1.15rem; color: var(--encre); max-width: 46rem; }
.grille { display: grid; gap: 1.2rem; }
@media (min-width: 40em) { .grille.deux { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 56em) { .grille.trois { grid-template-columns: repeat(3, 1fr); } .grille.quatre { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 40em) and (max-width: 55.99em) { .grille.trois, .grille.quatre { grid-template-columns: repeat(2, 1fr); } }
.carte { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.4rem 1.4rem 1.2rem; box-shadow: var(--ombre); }
.section.alt .carte { background: var(--sable); box-shadow: none; }
.carte h3 { margin-top: 0; }
.carte > :last-child { margin-bottom: 0; }
.carte .code { font: 700 .8rem/1 var(--sans); letter-spacing: .08em; color: var(--terre); display: block; margin-bottom: .5rem; text-transform: uppercase; }
.carte-lien { text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s; }
.carte-lien:hover { color: inherit; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(21,35,44,.12); }

.formation-vedette { display: grid; gap: 1.5rem; background: var(--blanc); border: 1px solid var(--trait); border-radius: 20px; padding: 1.6rem; box-shadow: var(--ombre); }
@media (min-width: 56em) { .formation-vedette { grid-template-columns: 1.4fr 1fr; padding: 2.2rem; align-items: start; } }
.formation-vedette h3 { font-size: 1.5rem; margin: 0 0 .6rem; }
.faits { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.faits li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--trait); margin: 0; }
.faits li:last-child { border-bottom: 0; }
.faits span:first-child { color: var(--doux); }
.faits span:last-child { font-weight: 600; color: var(--encre); text-align: right; }

.chiffres { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.chiffre { background: var(--ardoise); color: #fff; border-radius: var(--rayon); padding: 1.3rem; }
.chiffre b { display: block; font: 700 2.4rem/1 var(--serif); color: var(--terre-vif); margin-bottom: .35rem; }
.source { font-size: .88rem; color: var(--doux); }

.encadre { background: var(--brume); border-left: 4px solid var(--ardoise); border-radius: 0 var(--rayon) var(--rayon) 0; padding: 1.1rem 1.3rem; margin: 1.5rem 0; }
.encadre > :last-child { margin-bottom: 0; }
.encadre.chaud { background: #f6e4d9; border-left-color: var(--terre); }

.lieux { list-style: none; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 48em) { .lieux { grid-template-columns: repeat(3, 1fr); } }
.lieux li { margin: 0; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.1rem 1.2rem; }
.section.alt .lieux li { background: var(--sable); }
.lieux b { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--encre); margin-bottom: .25rem; }

.etapes { list-style: none; counter-reset: etape; padding: 0; display: grid; gap: 1rem; }
.etapes li { counter-increment: etape; position: relative; padding: 1.1rem 1.2rem 1.1rem 4rem; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); margin: 0; }
.etapes li::before {
  content: counter(etape); position: absolute; left: 1.1rem; top: 1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--terre); color: #fff; font: 700 1rem/2.1rem var(--sans); text-align: center;
}
.etapes b { color: var(--encre); }

.liste-coche { list-style: none; padding: 0; }
.liste-coche li { position: relative; padding-left: 1.8rem; }
.liste-coche li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--terre) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}

/* ── Fiche formation ─────────────────────────────── */
.sommaire { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.1rem 1.3rem; }
.sommaire h2 { font-size: 1.05rem; margin: 0 0 .5rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--doux); }
.sommaire ol { margin: 0; columns: 1; }
@media (min-width: 40em) { .sommaire ol { columns: 2; column-gap: 2rem; } }
.fiche h2 { scroll-margin-top: 5.5rem; padding-top: .2rem; border-top: 1px solid var(--trait); padding-top: 1.6rem; }
.fiche h2.premier { border-top: 0; padding-top: 0; }

.onglets { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0 1.2rem; }
.onglets button {
  font: inherit; font-weight: 700; cursor: pointer; border-radius: 999px; padding: .55rem 1.2rem;
  background: var(--blanc); color: var(--ardoise); border: 2px solid var(--ardoise);
}
.onglets button[aria-selected="true"] { background: var(--ardoise); color: #fff; }
.no-js .onglets { display: none; }
.panneau h3.titre-duree { display: none; }
.no-js .panneau h3.titre-duree { display: block; }
.panneau[hidden] { display: none; }

.tableau-defile { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--blanc); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
caption { text-align: left; padding: .9rem 1rem .4rem; font-weight: 700; color: var(--encre); }
th, td { text-align: left; vertical-align: top; padding: .75rem 1rem; border-top: 1px solid var(--sable-2); }
thead th { background: var(--sable-2); color: var(--encre); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; border-top: 0; }
td.h, th.h { white-space: nowrap; text-align: right; font-weight: 700; color: var(--encre); }
tfoot td, tfoot th { font-weight: 700; background: var(--sable); }

.modules { display: grid; gap: 1rem; margin-top: 1.2rem; }
.module { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.2rem 1.3rem; }
.module header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.module h4 { font: 700 1.1rem/1.3 var(--serif); color: var(--encre); margin: 0; }
.module .duree { font-weight: 700; color: var(--terre); white-space: nowrap; }
.module .comp { font-size: .85rem; color: var(--doux); margin: .2rem 0 .6rem; }
.module ul { margin-bottom: 0; }

.objectifs { display: grid; gap: 1rem; }
@media (min-width: 48em) { .objectifs { grid-template-columns: repeat(2, 1fr); } }

/* ── Formulaire ──────────────────────────────────── */
.formulaire { display: grid; gap: 1.1rem; }
.champ label, .champ legend { display: block; font-weight: 600; color: var(--encre); margin-bottom: .35rem; }
.champ .aide { display: block; font-weight: 400; font-size: .88rem; color: var(--doux); }
.champ input, .champ select, .champ textarea {
  width: 100%; font: inherit; color: var(--encre); background: var(--blanc);
  border: 1.5px solid #b9ae9d; border-radius: 10px; padding: .7rem .85rem;
}
.champ textarea { min-height: 9rem; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--ardoise); outline: 3px solid rgba(31,58,74,.2); outline-offset: 0; }
.consentement { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.consentement input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; flex: none; accent-color: var(--terre); }
.piege { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.obligatoire { color: var(--terre); }
.message-etat { border-radius: var(--rayon); padding: 1rem 1.2rem; font-weight: 600; }
.message-etat.ok { background: #e2f0e5; color: var(--ok); border: 1px solid #b7d6bf; }
.message-etat.erreur { background: #f8e1da; color: #8b2f12; border: 1px solid #e7b4a3; }
.grille-contact { display: grid; gap: 2rem; }
@media (min-width: 56em) { .grille-contact { grid-template-columns: 1.5fr 1fr; } }

/* ── Textes légaux ───────────────────────────────── */
.texte-legal h2 { font-size: 1.35rem; margin-top: 2em; }
.texte-legal dl { display: grid; gap: .1rem 1.5rem; margin: 0 0 1em; }
@media (min-width: 40em) { .texte-legal dl { grid-template-columns: 15rem 1fr; } }
.texte-legal dt { font-weight: 600; color: var(--encre); }
.texte-legal dd { margin: 0 0 .6rem; }

/* ── Pied de page ────────────────────────────────── */
.pied { background: var(--encre); color: #c8d3d8; font-size: .95rem; margin-top: 0; }
.pied a { color: #fff; }
.pied a:hover { color: var(--terre-vif); }
.pied .conteneur { padding-top: 2.8rem; padding-bottom: 1.5rem; }
.pied-grille { display: grid; gap: 2rem; }
@media (min-width: 48em) { .pied-grille { grid-template-columns: 1.4fr 1fr 1fr; } }
.pied h2 { color: #fff; font: 700 .85rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .14em; margin: 0 0 .9rem; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: .45rem; }
.pied .marque { color: #fff; margin-bottom: 1rem; }
.pied .marque small { color: var(--terre-vif); }
.pied-qualite { margin-top: 2rem; padding: 1.1rem 1.2rem; border: 1px solid rgba(255,255,255,.15); border-radius: var(--rayon); font-size: .9rem; }
.pied-qualite strong { color: #fff; }
.pied-bas { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

.badge-qualiopi {
  display: inline-flex; align-items: center; gap: .7rem; background: var(--blanc); color: var(--encre);
  border: 1px solid var(--trait); border-radius: 12px; padding: .7rem 1rem; font-weight: 700;
}
.badge-qualiopi svg { width: 2rem; height: 2rem; flex: none; }
.badge-qualiopi small { display: block; font-weight: 400; color: var(--doux); font-size: .82rem; }

@media print {
  .entete, .pied, .menu-bouton, .onglets, .boutons { display: none !important; }
  .panneau[hidden] { display: block !important; }
  body { background: #fff; }
  .ouverture, .page-titre { background: none; color: #000; }
  .page-titre h1 { color: #000; }
}

/* ── Lieux de formation, carte du siège ──────────── */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.villes { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.villes li { margin: 0; }
.villes a { display: inline-block; padding: .35rem .85rem; border-radius: 999px; background: var(--blanc); border: 1px solid var(--trait); color: var(--encre); text-decoration: none; font-weight: 600; font-size: .95rem; }
.section.alt .villes a { background: var(--sable); }
.villes a:hover { border-color: var(--terre); color: var(--terre); }
@media (min-width: 64em) { .lieux.lieux { grid-template-columns: repeat(4, 1fr); } }
.lieux li { scroll-margin-top: 5.5rem; display: flex; flex-direction: column; }
.lieux li:target { border-color: var(--terre); box-shadow: 0 0 0 3px rgba(224,121,77,.35); }
.pmr { display: block; margin-top: .6rem; font-size: .85rem; color: var(--ok); font-weight: 600; }
.pmr::before { content: "♿ "; }
.pmr.non { color: #8b2f12; }
.lien-carte { margin-top: auto; padding-top: .6rem; font-size: .9rem; font-weight: 600; }
.carte-siege { border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; background: var(--brume); aspect-ratio: 4 / 3; }
.carte-siege iframe { display: block; width: 100%; height: 100%; border: 0; }
.carte-attente { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 1.2rem 1.3rem; }
.carte-attente > :last-child { margin-bottom: 0; }
.carte-attente .bouton { align-self: flex-start; margin-bottom: 1rem; }
