/* Le Petit Formateur — feuille de style du site vitrine
   Identité : or et argent du logo (cerveau tressé), encre profonde, fond ivoire. */

:root {
  --encre: #121519;
  --encre-2: #1a1e24;
  --encre-3: #252a32;
  --ivoire: #faf7f1;
  --papier: #fffdf9;
  --sable: #f3ede2;
  --ligne: #e6dece;
  --ligne-sombre: rgba(255, 255, 255, 0.1);

  --texte: #1d2127;
  --texte-2: #545b66;
  --texte-clair: #f5f1e8;
  --texte-clair-2: #aeb4bd;

  --or: #b8892f;
  --or-clair: #e2c27a;
  --or-fonce: #8a6420;
  --or-texte: #7d5a1b; /* or lisible sur fond clair */
  --argent: #a9afb6;
  --argent-clair: #dde1e5;

  --degrade-or: linear-gradient(135deg, #f0d894 0%, #c99a3d 38%, #9c7224 70%, #d8b565 100%);
  --degrade-argent: linear-gradient(135deg, #f2f4f6 0%, #b9bfc6 45%, #8b9199 75%, #e3e6e9 100%);

  --titre: "Fraunces", Georgia, "Times New Roman", serif;
  --corps: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --rayon: 14px;
  --rayon-petit: 8px;
  --ombre: 0 1px 2px rgba(18, 21, 25, 0.05), 0 8px 24px rgba(18, 21, 25, 0.06);
  --ombre-forte: 0 2px 4px rgba(18, 21, 25, 0.06), 0 18px 40px rgba(18, 21, 25, 0.12);
  --largeur: 1180px;
  --entete: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivoire);
  color: var(--texte);
  font: 400 17px/1.65 var(--corps);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--titre); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.sr-only:focus { position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--encre); color: #fff; padding: 10px 16px; border-radius: 8px; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }

.surtitre {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .78rem/1 var(--corps); letter-spacing: .16em; text-transform: uppercase;
  color: var(--or-texte); margin-bottom: 18px;
}
.surtitre::before { content: ""; width: 28px; height: 2px; background: var(--degrade-or); border-radius: 2px; }
.or-texte { background: var(--degrade-or); -webkit-background-clip: text; background-clip: text; color: transparent; }
.or-texte-sombre { color: var(--or-texte); }
.chapeau { font-size: 1.15rem; color: var(--texte-2); max-width: 640px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 .98rem/1 var(--corps); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s, box-shadow .25s, background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn-or {
  background: var(--degrade-or); color: #1b1407;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 18px rgba(184, 137, 47, .28);
  background-size: 160% 160%; background-position: 0% 50%;
}
.btn-or:hover { background-position: 100% 50%; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 10px 26px rgba(184, 137, 47, .38); }
.btn-contour { border-color: rgba(255, 255, 255, .28); color: var(--texte-clair); background: rgba(255, 255, 255, .04); }
.btn-contour:hover { border-color: var(--or-clair); color: #fff; background: rgba(255, 255, 255, .08); }
.btn-contour-sombre { border-color: var(--texte); color: var(--texte); }
.btn-contour-sombre:hover { background: var(--encre); color: var(--texte-clair); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.lien-fleche {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .95rem; color: var(--or-texte); text-decoration: none;
}
.lien-fleche svg { width: 16px; height: 16px; transition: transform .2s; }
.lien-fleche:hover svg, a:hover .lien-fleche svg { transform: translateX(4px); }

.pastille {
  display: inline-grid; place-items: center; width: 52px; height: 52px; flex: none;
  border-radius: 14px; color: var(--or-fonce);
  background: linear-gradient(145deg, #fff8e8, #f1e3c2);
  box-shadow: inset 0 0 0 1px rgba(184, 137, 47, .28), 0 4px 12px rgba(184, 137, 47, .12);
}
.pastille svg { width: 26px; height: 26px; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50; height: var(--entete);
  background: rgba(250, 247, 241, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.entete.defile { border-bottom-color: var(--ligne); box-shadow: 0 6px 20px rgba(18, 21, 25, .05); }
.entete .conteneur { display: flex; align-items: center; gap: 28px; height: 100%; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.marque img { width: 64px; height: auto; }
.marque-texte { white-space: nowrap; display: flex; flex-direction: column; line-height: 1.15; }
.marque-texte strong { font: 700 1.12rem/1.1 var(--titre); letter-spacing: .01em; }
.marque-texte small { font-size: .72rem; color: var(--texte-2); letter-spacing: .02em; }
.nav-principale { display: flex; align-items: center; }
.menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.menu a {
  display: block; padding: 10px 14px; border-radius: 999px;
  font-weight: 500; font-size: .95rem; text-decoration: none; color: var(--texte-2); white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.menu a:hover { color: var(--texte); background: rgba(18, 21, 25, .05); }
.menu a[aria-current="page"] { color: var(--texte); background: #fff; box-shadow: inset 0 0 0 1px var(--ligne); }
.tel-menu { display: none; }
.btn-entete { min-height: 44px; padding: 0 20px; font-size: .92rem; }
.burger { display: none; }

/* ---------- Héros ---------- */
.heros {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(201, 154, 61, .18), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(169, 175, 182, .10), transparent 60%),
    var(--encre);
  color: var(--texte-clair);
  padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 9vw, 120px);
}
.tresse { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .55; }
.brin { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: tracer 3.2s cubic-bezier(.6, .1, .2, 1) forwards; }
.brin-or { stroke: #c99a3d; }
.brin-argent { stroke: #aab0b8; animation-delay: .35s; }
.brin.fin { stroke-width: 1.2; opacity: .5; animation-delay: .7s; }
@keyframes tracer { to { stroke-dashoffset: 0; } }
.heros-grille { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.heros .surtitre { color: var(--or-clair); }
.heros h1 { color: #fff; margin-bottom: 24px; }
.heros .chapeau { color: var(--texte-clair-2); margin-bottom: 36px; }
.heros-atouts { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--texte-clair-2); font-size: .93rem; }
.heros-atouts li { display: flex; align-items: center; gap: 8px; }
.heros-atouts svg { width: 18px; height: 18px; color: var(--or-clair); }
.heros-visuel { position: relative; display: grid; place-items: center; }
.heros-visuel img { position: relative; width: min(100%, 440px); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)); animation: flotter 7s ease-in-out infinite; }
.halo {
  position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 194, 122, .22) 0%, rgba(226, 194, 122, .06) 40%, transparent 68%);
}
@keyframes flotter { 50% { transform: translateY(-10px); } }

/* ---------- Chiffres ---------- */
.bandeau-chiffres { background: var(--encre-2); color: var(--texte-clair); border-top: 1px solid var(--ligne-sombre); }
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); }
.chiffres > div { padding: 34px 20px; text-align: center; border-left: 1px solid var(--ligne-sombre); }
.chiffres > div:first-child { border-left: 0; }
.chiffres strong {
  display: block; font: 600 clamp(2.2rem, 4vw, 3rem)/1 var(--titre);
  background: var(--degrade-or); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px; font-variant-numeric: tabular-nums;
}
.chiffres span { color: var(--texte-clair-2); font-size: .92rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section-sable { background: var(--sable); }
.section-sombre { background: var(--encre); color: var(--texte-clair); }
.section-sombre .surtitre { color: var(--or-clair); }
.section-sombre h2, .section-sombre h3 { color: #fff; }
.section-sombre p { color: var(--texte-clair-2); }
.titre-section { max-width: 720px; margin-bottom: 52px; }
.titre-section p:last-child { color: var(--texte-2); font-size: 1.08rem; margin: 0; }
.section-sombre .titre-section p:last-child { color: var(--texte-clair-2); }
.titre-ligne { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.titre-ligne h2 { margin: 0; }

.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.carte {
  background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 32px; box-shadow: var(--ombre); transition: transform .25s, box-shadow .25s;
}
.carte:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); }
.carte .pastille { margin-bottom: 22px; }
.carte p { color: var(--texte-2); }
.carte p:last-child { margin: 0; }

/* Secteurs */
.secteurs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.secteurs li {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start;
  background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 22px;
}
.secteurs svg { grid-row: span 2; width: 30px; height: 30px; color: var(--or); margin-top: 2px; }
.secteurs strong { font: 600 1.05rem/1.3 var(--titre); }
.secteurs span { font-size: .88rem; color: var(--texte-2); line-height: 1.5; margin-top: 4px; }

/* Domaines */
.grille-domaines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.carte-domaine {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 28px; box-shadow: var(--ombre); overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.carte-domaine::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--degrade-or); transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.carte-domaine:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); border-color: #dccb9f; }
.carte-domaine:hover::after { transform: scaleX(1); }
.carte-domaine .pastille { margin-bottom: 20px; }
.carte-domaine h3 { font-size: 1.18rem; }
.carte-domaine p { color: var(--texte-2); font-size: .94rem; flex: 1; }
.carte-sur-mesure { background: var(--encre); border-color: var(--encre); color: var(--texte-clair); }
.carte-sur-mesure h3 { color: #fff; }
.carte-sur-mesure p { color: var(--texte-clair-2); }
.carte-sur-mesure .lien-fleche { color: var(--or-clair); }
.carte-sur-mesure .pastille { background: rgba(255, 255, 255, .06); color: var(--or-clair); box-shadow: inset 0 0 0 1px rgba(226, 194, 122, .3); }

/* Étapes */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: etape; position: relative; }
.etapes::before {
  content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 1px;
  background: linear-gradient(90deg, var(--or) 0%, var(--argent) 100%); opacity: .45;
}
.etapes li { position: relative; }
.etape-num {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px;
  border-radius: 50%; background: var(--encre); color: var(--or-clair);
  font: 600 1.3rem/1 var(--titre);
  box-shadow: inset 0 0 0 1px rgba(226, 194, 122, .55), 0 0 0 6px var(--encre);
}
.etapes h3 { font-size: 1.15rem; }
.etapes p { font-size: .95rem; margin: 0; }

/* Financement (accueil) */
.financement-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.financement-teaser p { color: var(--texte-2); }
.liste-financeurs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.liste-financeurs li {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 22px 24px; box-shadow: var(--ombre);
}
.liste-financeurs svg { width: 26px; height: 26px; color: var(--or); flex: none; margin-top: 2px; }
.liste-financeurs strong { display: block; font: 600 1.08rem/1.3 var(--titre); margin-bottom: 4px; }
.liste-financeurs span { color: var(--texte-2); font-size: .94rem; }

/* Appel à l'action */
.appel { padding: 0 0 clamp(72px, 9vw, 112px); }
.section + .appel, .section-sable + .appel { padding-top: 0; }
.section-sable + .appel { padding-top: clamp(72px, 9vw, 112px); }
.appel-boite {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  max-width: calc(var(--largeur) - 48px); padding: clamp(36px, 5vw, 56px);
  border-radius: 22px; color: var(--texte-clair);
  background: radial-gradient(600px 300px at 100% 0%, rgba(201, 154, 61, .28), transparent 70%), var(--encre);
}
.appel-boite::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: linear-gradient(135deg, rgba(226, 194, 122, .7), rgba(169, 175, 182, .2) 50%, rgba(226, 194, 122, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.appel-boite h2 { color: #fff; margin-bottom: 10px; }
.appel-boite p { color: var(--texte-clair-2); margin: 0; max-width: 560px; }
.appel-boite .btn svg:first-child:not(:last-child) { width: 18px; }

/* ---------- En-tête de page intérieure ---------- */
.page-tete {
  position: relative; overflow: hidden;
  background: radial-gradient(800px 400px at 90% 0%, rgba(201, 154, 61, .18), transparent 60%), var(--encre);
  color: var(--texte-clair); padding: clamp(56px, 8vw, 96px) 0;
}
.page-tete::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--or) 30%, var(--argent) 70%, transparent);
  opacity: .6;
}
.page-tete .surtitre { color: var(--or-clair); }
.page-tete h1 { color: #fff; }
.page-tete .chapeau { color: var(--texte-clair-2); margin: 0; }
.page-tete-courte { padding: 56px 0; }
.page-tete-courte h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }

/* ---------- Catalogue ---------- */
.barre-filtres {
  position: sticky; top: var(--entete); z-index: 40;
  background: rgba(250, 247, 241, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ligne); padding: 16px 0;
}
.barre-filtres .conteneur { display: flex; gap: 16px; align-items: center; }
.recherche { position: relative; flex: 0 0 300px; }
.recherche svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--texte-2); pointer-events: none; }
.recherche input {
  width: 100%; height: 44px; padding: 0 14px 0 42px; border-radius: 999px;
  border: 1px solid var(--ligne); background: #fff; font: inherit; font-size: .95rem; color: var(--texte);
}
.recherche input:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 3px rgba(184, 137, 47, .18); }
.filtres { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.filtres::-webkit-scrollbar { display: none; }
.filtre {
  flex: none; height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--ligne); background: #fff; color: var(--texte-2);
  font: 500 .88rem/1 var(--corps); transition: all .2s;
}
.filtre:hover { color: var(--texte); border-color: #cdbf9f; }
.filtre[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: #fff; }

.catalogue { padding-top: 24px; padding-bottom: 40px; }
.domaine { padding: 48px 0 24px; scroll-margin-top: calc(var(--entete) + 60px); }
.domaine[hidden] { display: none; }
.domaine-tete { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 28px; }
.domaine-tete h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 6px; }
.domaine-tete p { color: var(--texte-2); margin: 0; max-width: 680px; }
.grille-formations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.formation {
  display: flex; flex-direction: column;
  background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 24px; box-shadow: var(--ombre); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.formation[hidden] { display: none; }
.formation:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); border-color: #dccb9f; }
.formation-haut { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.numero { font: 600 .95rem/1 var(--titre); color: var(--or); letter-spacing: .04em; }
.duree { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 500; color: var(--texte-2); background: var(--sable); padding: 6px 10px; border-radius: 999px; }
.duree svg { width: 14px; height: 14px; }
.formation h3 { font-size: 1.1rem; line-height: 1.3; }
.formation p { color: var(--texte-2); font-size: .93rem; flex: 1; }
.formation-bas { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px dashed var(--ligne); }
.prix { font-size: .82rem; color: var(--texte-2); }
.prix strong { font: 600 1.15rem/1 var(--titre); color: var(--texte); }
.formation .lien-fleche { font-size: .88rem; }
.aucun-resultat { text-align: center; padding: 48px 0; color: var(--texte-2); }

.grille-modalites { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.modalite { background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 26px; }
.modalite svg { width: 28px; height: 28px; color: var(--or); margin-bottom: 16px; }
.modalite h3 { font-size: 1.1rem; }
.modalite p { color: var(--texte-2); font-size: .92rem; margin: 0; }

/* ---------- AFEST / Financement ---------- */
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.deux-colonnes p { color: var(--texte-2); }
.section-sombre .deux-colonnes p { color: var(--texte-clair-2); }
.liste-coches { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.liste-coches li {
  position: relative; padding: 20px 22px 20px 58px;
  background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon); color: var(--texte-2);
}
.liste-coches li::before {
  content: ""; position: absolute; left: 20px; top: 21px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--degrade-or) ;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E");
}
.liste-coches li::after {
  content: ""; position: absolute; left: 28px; top: 27px; width: 6px; height: 10px;
  border: solid #1b1407; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.liste-coches strong { color: var(--texte); }

.grille-financement { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.carte-financement h2 { font-size: 1.6rem; }
.etiquette { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--or-texte); margin-bottom: 8px; }
.liste-numerotee { list-style: none; counter-reset: n; margin: 0; padding: 0; display: grid; gap: 14px; }
.liste-numerotee li {
  counter-increment: n; position: relative; padding: 20px 22px 20px 70px;
  border: 1px solid var(--ligne-sombre); border-radius: var(--rayon); background: rgba(255, 255, 255, .03); color: var(--texte-clair);
}
.liste-numerotee li::before {
  content: counter(n); position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font: 600 1rem/1 var(--titre); color: var(--or-clair); box-shadow: inset 0 0 0 1px rgba(226, 194, 122, .55);
}
.section-sombre .btn { margin-top: 12px; }

/* ---------- Contact ---------- */
.contact-grille { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.contact-infos { display: grid; gap: 14px; position: sticky; top: calc(var(--entete) + 24px); }
.contact-ligne {
  display: flex; gap: 16px; align-items: flex-start; text-decoration: none;
  background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 20px 22px;
  transition: border-color .2s, box-shadow .2s;
}
a.contact-ligne:hover { border-color: #dccb9f; box-shadow: var(--ombre); }
.contact-ligne svg { width: 24px; height: 24px; color: var(--or); flex: none; margin-top: 2px; }
.contact-ligne span { font-weight: 500; overflow-wrap: anywhere; }
.contact-ligne small { display: block; font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-2); margin-bottom: 2px; }
.note { font-size: .92rem; color: var(--texte-2); margin: 6px 4px 0; }

.formulaire {
  display: grid; gap: 18px;
  background: var(--papier); border: 1px solid var(--ligne); border-radius: 20px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--ombre);
}
.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.formulaire label { display: grid; gap: 8px; font-size: .9rem; font-weight: 600; }
.formulaire label b { color: var(--or); }
.formulaire input, .formulaire select, .formulaire textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 1rem; color: var(--texte);
  background: #fff; border: 1px solid var(--ligne); border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.formulaire textarea { resize: vertical; min-height: 140px; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 3px rgba(184, 137, 47, .18); }
.formulaire [aria-invalid="true"] { border-color: #c2412d; }
.formulaire-rgpd { font-size: .82rem; color: var(--texte-2); margin: 0; }
.formulaire-message { margin: 0; padding: 14px 16px; border-radius: 10px; font-size: .92rem; background: #fdf1ee; color: #8f2c1c; }
.formulaire-message.ok { background: #eef8f1; color: #1f6b3a; }
.formulaire .btn { justify-self: start; }

/* ---------- Mentions légales ---------- */
.texte-legal { max-width: 800px; }
.texte-legal h2 { font-size: 1.4rem; margin-top: 40px; }
.texte-legal h2:first-child { margin-top: 0; }
.texte-legal p { color: var(--texte-2); }
.texte-legal a { color: var(--or-texte); }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: var(--texte-clair-2); padding: 72px 0 28px; font-size: .93rem; }
.pied-grille { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--ligne-sombre); }
.pied-marque img { width: 150px; margin-bottom: 20px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .5)); }
.pied-marque p { max-width: 340px; }
.nda { font-size: .8rem; opacity: .75; }
.pied h4 { font: 600 .78rem/1 var(--corps); letter-spacing: .14em; text-transform: uppercase; color: var(--or-clair); margin-bottom: 18px; }
.pied ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.pied a { text-decoration: none; transition: color .2s; overflow-wrap: anywhere; }
.pied a:hover { color: #fff; }
.pied address { font-style: normal; line-height: 1.6; }
.pied-bas { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .84rem; }
.pied-bas p { margin: 0; }

/* ---------- Apparition au défilement ---------- */
.js .revele { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .revele.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1160px) {
  .btn-entete { display: none; }
  .marque-texte small { display: none; }
}

@media (max-width: 1100px) {
  .grille-domaines { grid-template-columns: repeat(3, 1fr); }
  .secteurs { grid-template-columns: repeat(2, 1fr); }
  .grille-modalites { grid-template-columns: repeat(2, 1fr); }
  .pied-grille { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .burger {
    display: grid; gap: 5px; place-content: center; width: 46px; height: 46px; margin-left: auto;
    border: 1px solid var(--ligne); border-radius: 12px; background: #fff; cursor: pointer;
  }
  .burger span { display: block; width: 20px; height: 2px; background: var(--texte); border-radius: 2px; transition: transform .25s, opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .marque { margin-right: 0; }
  /* backdrop-filter crée un bloc conteneur pour le menu en position fixe : on le retire sur mobile */
  .entete { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(250, 247, 241, .98); }
  .btn-entete { display: none; }
  .nav-principale {
    position: fixed; top: var(--entete); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 16px; padding: 24px;
    background: var(--ivoire); border-top: 1px solid var(--ligne);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
    overflow-y: auto;
  }
  .menu-ouvert .nav-principale { opacity: 1; visibility: visible; transform: none; }
  .menu { flex-direction: column; gap: 4px; }
  .menu a { font-size: 1.2rem; padding: 14px 16px; border-radius: 12px; }
  .tel-menu { display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 600; text-decoration: none; color: var(--or-texte); }
  .tel-menu svg { width: 20px; height: 20px; }
  .menu-ouvert { overflow: hidden; }

  .heros-grille { grid-template-columns: 1fr; }
  .heros-visuel { display: none; }
  .grille-3, .grille-financement { grid-template-columns: 1fr; }
  .grille-formations { grid-template-columns: repeat(2, 1fr); }
  .chiffres { grid-template-columns: repeat(2, 1fr); }
  .chiffres > div:nth-child(3) { border-left: 0; }
  .chiffres > div:nth-child(n+3) { border-top: 1px solid var(--ligne-sombre); }
  .etapes { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .etapes::before { display: none; }
  .financement-teaser, .deux-colonnes, .contact-grille { grid-template-columns: 1fr; gap: 40px; }
  .contact-infos { position: static; }
  .barre-filtres .conteneur { flex-direction: column; align-items: stretch; }
  .recherche { flex: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .conteneur { padding: 0 16px; }
  :root { --entete: 68px; }
  .marque img { width: 52px; }
  .marque-texte small { display: none; }
  .grille-domaines, .grille-formations, .secteurs, .grille-modalites, .etapes, .champs-2 { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
  .appel-boite { border-radius: 16px; }
  .carte, .carte-domaine { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .brin { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
