/* Kavalis — feuille de style unique (aucun style en ligne : CSP stricte) */

@font-face { font-family: "Sora"; font-weight: 400; font-display: swap; src: url("/fonts/sora-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url("/fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url("/fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-display: swap; src: url("/fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url("/fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --nuit: #0E0E10;
  --surface: #17181B;
  --filet: #2A2B30;
  --papier: #EDEDE8;
  --papier-clair: #FAFAF8;
  --gris: #9A9CA3;
  --ardoise: #4A4D55;
  --signal: #E4222B;
  --signal-sombre: #B81A22;
  --titre: "Sora", system-ui, sans-serif;
  --texte: "Public Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --large: 1180px;
  --marge: clamp(20px, 5vw, 48px);
  --gouttiere: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--nuit); color: var(--papier); font: 400 1.0625rem/1.65 var(--texte); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-weight: 600; letter-spacing: -0.015em; margin: 0; }
p { margin: 0 0 1em; }
::selection { background: var(--signal); color: #fff; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.saut { position: absolute; left: -9999px; top: 8px; background: var(--papier); color: var(--nuit); padding: 10px 16px; z-index: 100; font-weight: 600; }
.saut:focus { left: 8px; }
.cadre { max-width: var(--large); margin: 0 auto; padding: 0 var(--marge); }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 1px solid var(--papier); background: var(--papier); color: var(--nuit); font: 600 0.95rem/1 var(--texte); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.bouton:hover { background: transparent; color: var(--papier); }
.bouton-discret { background: transparent; color: var(--papier); border-color: var(--filet); }
.bouton-discret:hover { border-color: var(--papier); }
.lien { color: var(--papier); text-decoration: underline; text-decoration-color: var(--ardoise); text-underline-offset: 4px; }
.lien:hover { text-decoration-color: var(--signal); }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(14, 14, 16, 0.94); border-bottom: 1px solid var(--filet); }
.entete .cadre { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.marque img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.bouton) { color: var(--gris); text-decoration: none; font-size: 0.95rem; }
.nav a:not(.bouton):hover { color: var(--papier); }
.nav .bouton { min-height: 40px; padding: 0 18px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu-bouton { display: none; }
@media (max-width: 760px) {
  .marque img { height: 28px; }
  .nav a:not(.bouton) { display: none; }
  /* Avec JavaScript : bouton menu + panneau déroulant */
  .js-menu .menu-bouton { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -12px; background: none; border: 0; color: var(--papier); cursor: pointer; }
  .menu-bouton .barres, .menu-bouton .barres::before, .menu-bouton .barres::after { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
  .menu-bouton .barres { position: relative; }
  .menu-bouton .barres::before, .menu-bouton .barres::after { content: ""; position: absolute; left: 0; }
  .menu-bouton .barres::before { top: -7px; } .menu-bouton .barres::after { top: 7px; }
  .menu-bouton[aria-expanded="true"] .barres { background: transparent; }
  .menu-bouton[aria-expanded="true"] .barres::before { transform: translateY(7px) rotate(45deg); }
  .menu-bouton[aria-expanded="true"] .barres::after { transform: translateY(-7px) rotate(-45deg); }
  .js-menu .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--marge) 24px; background: var(--nuit); border-bottom: 1px solid var(--filet); }
  .js-menu .nav.ouvert { display: flex; }
  .js-menu .nav a:not(.bouton) { display: block; padding: 14px 0; font-size: 1.05rem; color: var(--papier); border-bottom: 1px solid var(--filet); }
  .js-menu .nav .bouton { margin-top: 20px; min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .menu-bouton .barres, .menu-bouton .barres::before, .menu-bouton .barres::after { transition: none; } }

/* Héro */
.hero { border-bottom: 1px solid var(--filet); overflow: hidden; }
.hero .cadre { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; column-gap: var(--gouttiere); row-gap: 32px; min-height: min(calc(100vh - 72px), 760px); padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.04; max-width: 11ch; margin-bottom: 28px; }
.hero .chapeau { font-size: 1.2rem; line-height: 1.55; color: #C9CAC6; max-width: 34em; margin-bottom: 36px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero .lieu { color: var(--gris); font-size: 0.95rem; margin: 0; }
.hero .cadre > :first-child { grid-column: 1 / span 7; }
.sentinelle { grid-column: 8 / span 5; justify-self: end; width: 100%; max-width: 470px; color: var(--papier); }
.sentinelle svg { width: 100%; height: auto; }
.sentinelle .halo { fill: none; stroke: currentColor; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .sentinelle .halo { stroke-dasharray: 500; stroke-dashoffset: 500; animation: tracer 1.8s 0.25s cubic-bezier(.55, 0, .2, 1) forwards; }
  .sentinelle .etoile-veille { opacity: 0; transform-box: fill-box; transform-origin: center; animation: allumer 0.7s 1.85s ease-out forwards; }
}
@keyframes tracer { to { stroke-dashoffset: 0; } }
@keyframes allumer { 0% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; transform: scale(1.15); } 100% { opacity: 1; transform: scale(1); } }
@media (max-width: 900px) {
  .hero .cadre { min-height: 0; padding-top: 40px; }
  .hero .cadre > :first-child { grid-column: 1 / -1; }
  .sentinelle { grid-column: 1 / -1; justify-self: center; max-width: 320px; order: -1; }
}
/* Téléphone en paysage / écrans bas : texte et sentinelle côte à côte */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 560px) {
  .hero .cadre { padding-top: 28px; padding-bottom: 32px; }
  .hero .cadre > :first-child { grid-column: 1 / span 8; }
  .hero h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin-bottom: 16px; }
  .hero .chapeau { font-size: 1rem; margin-bottom: 20px; }
  .sentinelle { grid-column: 9 / span 4; order: 0; max-width: 220px; justify-self: end; }
}
/* Très grands écrans */
@media (min-width: 1800px) { html { font-size: 112.5%; } :root { --large: 1360px; } }

/* Sections */
.section { padding: clamp(52px, 6vw, 80px) 0; border-bottom: 1px solid var(--filet); }
.section h2 { font-size: clamp(1.75rem, 2.7vw, 2.35rem); line-height: 1.14; max-width: 18ch; margin-bottom: 20px; }
.intro { color: #C9CAC6; max-width: 36em; font-size: 1.1rem; }
.intro-haute { margin-top: 0; }
@media (max-width: 900px) { .intro-haute { margin-top: 0; } }

/* Grille suisse : 12 colonnes, titre sur 4, contenu sur 8 */
.deux-col { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gouttiere); row-gap: 32px; align-items: start; }
.deux-col > :first-child { grid-column: 1 / span 4; }
.deux-col > :last-child { grid-column: 5 / span 8; }
@media (max-width: 900px) { .deux-col { row-gap: 8px; } .deux-col > :first-child, .deux-col > :last-child { grid-column: 1 / -1; } .deux-col > .besoins { margin-top: 24px; } }

/* Par où commencer : besoins -> services */
.besoins { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--filet); }
.besoins li { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--filet); }
.besoin { font-family: var(--titre); font-size: clamp(1.02rem, 1.5vw, 1.18rem); line-height: 1.35; }
.besoins .lien { justify-self: end; color: var(--gris); font-size: 0.95rem; }
.besoins .lien:hover { color: var(--papier); }
@media (max-width: 700px) { .besoins li { grid-template-columns: 1fr; gap: 6px; } .besoins .lien { justify-self: start; } }

/* Services : trois piliers en colonnes, séparés par des filets */
.piliers { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gouttiere); margin-top: 56px; border-top: 1px solid var(--ardoise); }
.pilier { grid-column: span 3; position: relative; padding: 28px 0 8px; }
.pilier + .pilier::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gouttiere) / -2); width: 1px; background: var(--filet); }
.pilier-titre { font-size: 1.5rem; line-height: 1.2; margin-bottom: 4px; }
.pilier-titre span { display: block; font-family: var(--texte); font-weight: 400; font-size: 0.95rem; color: var(--gris); letter-spacing: 0; margin-top: 4px; }
.service { padding: 26px 0 28px; border-bottom: 1px solid var(--filet); scroll-margin-top: 90px; }
.pilier .service:last-child { border-bottom: 0; }
.service h4 { font-family: var(--titre); font-weight: 600; font-size: 1.18rem; line-height: 1.25; margin: 0 0 10px; letter-spacing: -0.01em; }
.service p { color: #C9CAC6; margin: 0 0 14px; font-size: 0.98rem; }
.service .livrables { color: var(--gris); font-size: 0.9rem; }
.service .livrables strong { display: block; color: var(--papier); font-weight: 500; margin-bottom: 2px; }
.demander { display: block; width: fit-content; margin-top: 12px; color: var(--papier); font-size: 0.95rem; }
@media (max-width: 1100px) and (min-width: 701px) {
  .pilier { grid-column: span 6; }
  .pilier:nth-child(odd)::before { display: none; }
  .pilier:nth-child(n+3) { border-top: 1px solid var(--ardoise); }
}
@media (max-width: 700px) {
  .pilier { grid-column: 1 / -1; padding-top: 28px; }
  .pilier::before { display: none; }
  .pilier + .pilier { border-top: 1px solid var(--ardoise); margin-top: 24px; }
}

/* Lecture de posture : la seule section claire */
.clair { background: var(--papier-clair); color: var(--nuit); border-bottom: 0; }
.clair .intro { color: #3D3F46; }
.panneau { background: #fff; border: 1px solid #DEDED8; font-family: var(--mono); font-size: 0.86rem; color: var(--nuit); }
.panneau-tete { display: flex; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid #DEDED8; color: #4A4D55; }
.panneau dl { margin: 0; }
.ligne { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(0, 1.5fr) 104px; gap: 18px; align-items: center; padding: 16px 22px; border-bottom: 1px solid #ECECE7; }
.ligne dt { font-family: var(--texte); font-size: 0.95rem; font-weight: 500; }
.ligne dd { margin: 0; display: contents; }
.jauge { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.jauge span { height: 10px; background: #E4E4DE; }
.jauge .plein { background: var(--nuit); }
.jauge .ecart { background: var(--signal); }
.valeur { text-align: right; color: #4A4D55; }
.ligne.alerte .valeur { color: var(--signal-sombre); }
.panneau-pied { padding: 14px 22px; color: #4A4D55; }
.panneau-pied strong { color: var(--nuit); font-weight: 400; }
.note { margin-top: 14px; font-size: 0.9rem; color: #5B5E66; }
@media (max-width: 520px) { .ligne { grid-template-columns: 1fr 96px; } .jauge { grid-column: 1 / -1; grid-row: 2; } }

/* Méthode : séquence */
.etapes { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gouttiere); border-top: 1px solid var(--ardoise); counter-reset: etape; }
.etapes li { grid-column: span 3; position: relative; padding: 34px 0 0; counter-increment: etape; }
.etapes li::before { content: counter(etape); position: absolute; top: -15px; left: 0; width: 30px; height: 30px; display: grid; place-items: center; background: var(--nuit); border: 1px solid var(--ardoise); border-radius: 50%; font: 600 0.85rem/1 var(--titre); color: var(--papier); }
.etapes li:first-child::before { border-color: var(--signal); }
.etapes h3 { font-size: 1.15rem; margin-bottom: 10px; }
.etapes p { color: #C9CAC6; font-size: 0.98rem; margin: 0; }
@media (max-width: 860px) {
  .etapes { grid-template-columns: 1fr; gap: 0; border-top: 0; }
  .etapes li { grid-column: 1 / -1; border-left: 1px solid var(--ardoise); padding: 0 0 36px 36px; }
  .etapes li::before { top: -2px; left: -15px; }
}

/* À propos */
.apropos { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--gouttiere); row-gap: 32px; align-items: start; }
.apropos-texte { grid-column: span 5; }
.apropos .titres { grid-column: span 3; }
.apropos p { color: #C9CAC6; max-width: 36em; }
.titres { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--filet); }
.titres li { padding: 14px 0; border-bottom: 1px solid var(--filet); color: var(--papier); font-size: 0.98rem; }
.titres li span { display: block; color: var(--gris); font-size: 0.88rem; }
.buste { width: 92px; margin-bottom: 28px; }
@media (max-width: 1100px) { .apropos-texte, .apropos .titres { grid-column: 1 / -1; } }

/* Contact */
.contact .intro { margin-bottom: 18px; }
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 18px var(--gouttiere); }
.champ { display: flex; flex-direction: column; gap: 8px; }
.champ.large { grid-column: 1 / -1; }
.champ label { font-size: 0.95rem; font-weight: 500; }
.champ label .facultatif { color: var(--gris); font-weight: 400; }
.champ input, .champ textarea, .champ select { width: 100%; background: var(--surface); border: 1px solid var(--filet); color: var(--papier); font: 400 1rem/1.5 var(--texte); padding: 12px 14px; border-radius: 0; }
.champ textarea { min-height: 150px; resize: vertical; }
.champ input:focus, .champ textarea:focus, .champ select:focus { outline: none; border-color: var(--papier); }
.champ select { appearance: none; min-height: 48px; background-image: linear-gradient(45deg, transparent 50%, var(--gris) 50%), linear-gradient(135deg, var(--gris) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.champ input[aria-invalid="true"], .champ textarea[aria-invalid="true"] { border-color: var(--signal); }
.erreur { color: #FF6B72; font-size: 0.9rem; min-height: 0; }
.erreur:empty { display: none; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.envoi { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.mention { grid-column: 1 / -1; color: var(--gris); font-size: 0.9rem; margin: 0; }
.etat { grid-column: 1 / -1; margin: 0; font-size: 0.98rem; }
.etat:empty { display: none; }
.etat.ok { border-left: 2px solid var(--papier); padding-left: 14px; }
.etat.ko { border-left: 2px solid var(--signal); padding-left: 14px; }
.bouton[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 560px) { .formulaire { grid-template-columns: 1fr; } }

/* Pied de page */
.pied { padding: 56px 0 40px; color: var(--gris); font-size: 0.92rem; }


.pied p { margin: 0 0 4px; }

.pied nav a { color: var(--gris); text-decoration: none; }
.pied nav a:hover { color: var(--papier); }


/* Pages de texte (mentions, 404) */
.texte { padding: clamp(56px, 8vw, 96px) 0; }
.texte .cadre > * { max-width: 760px; }
.texte h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; margin-bottom: 28px; }
.texte h2 { font-size: 1.3rem; margin: 44px 0 12px; }
.texte p, .texte li { color: #C9CAC6; }
.texte ul { padding-left: 1.2em; }
.texte .maj { color: var(--gris); font-size: 0.92rem; }
.introuvable { min-height: calc(100vh - 220px); display: grid; align-content: center; }
.introuvable img { width: 110px; margin-bottom: 32px; }

/* ---------- Teintes, étoile et rappels de rouge ---------- */
:root { --ton-1: #121317; --ton-2: #16171B; --ton-3: #1B1C21; --ton-4: #202126; --lueur: rgba(228, 34, 43, 0.10); }
.hero { background:
  radial-gradient(ellipse 42% 60% at 76% 46%, var(--lueur), transparent 70%),
  linear-gradient(180deg, var(--nuit) 0%, var(--ton-1) 100%); }
#commencer { background: var(--ton-1); }
#services { background: linear-gradient(180deg, var(--ton-1) 0%, var(--nuit) 100%); }
#methode { background: var(--ton-2); }
#apropos { background: linear-gradient(180deg, var(--ton-2) 0%, var(--ton-1) 100%); }
#contact { background:
  radial-gradient(ellipse 50% 70% at 0% 100%, rgba(228, 34, 43, 0.07), transparent 70%), var(--nuit); }
.pied { background: #09090B; border-top: 1px solid var(--filet); }
.section, .hero { border-bottom-color: rgba(255, 255, 255, 0.05); }

/* L'étoile du buste au-dessus des titres de section */
.section h2, .texte h1 { position: relative; }
.section h2::before, .texte h1::before { content: ""; position: absolute; left: 0; top: -34px; width: 13px; height: 17px; background: var(--signal); clip-path: polygon(50% 0, 62.3% 40.6%, 100% 50%, 62.3% 59.4%, 50% 100%, 37.7% 59.4%, 0 50%, 37.7% 40.6%); }
.clair h2::before { background: var(--signal); }
#contact h2::before { display: none; }
.introuvable h1::before { display: none; }

/* Services : chaque pilier a son bloc, sa teinte et son icône */
.piliers { border-top: 0; row-gap: var(--gouttiere); }
.pilier { padding: 32px 26px 12px; background: var(--ton-2); border-top: 2px solid var(--ardoise); transition: border-color .2s; }
.pilier:nth-child(2) { background: var(--ton-3); }
.pilier:nth-child(3) { background: var(--ton-4); }
.pilier:nth-child(4) { background: #25262C; }
.pilier:hover, .pilier:focus-within { border-top-color: var(--signal); }
.pilier + .pilier::before { display: none; }
.pilier-icone { width: 40px; height: 40px; color: var(--papier); margin-bottom: 20px; }
.pilier .service { border-bottom-color: rgba(255, 255, 255, 0.08); }
.service h4 { display: flex; gap: 10px; align-items: baseline; }
.demander { text-decoration-color: var(--signal); }
.demander::after { content: ""; display: inline-block; width: 7px; height: 9px; margin-left: 8px; background: var(--signal); clip-path: polygon(50% 0, 62.3% 40.6%, 100% 50%, 62.3% 59.4%, 50% 100%, 37.7% 59.4%, 0 50%, 37.7% 40.6%); transition: transform .2s; }
.demander:hover::after { transform: rotate(45deg); }
@media (max-width: 700px) { .pilier { padding: 28px 20px 8px; margin-top: 0 !important; } .pilier + .pilier { border-top: 2px solid var(--ardoise); } }

/* Par où commencer : repère rouge au survol */
.besoins li { position: relative; transition: background .2s; }
.besoins li::before { content: ""; position: absolute; left: -22px; top: 50%; width: 9px; height: 12px; margin-top: -6px; background: var(--signal); clip-path: polygon(50% 0, 62.3% 40.6%, 100% 50%, 62.3% 59.4%, 50% 100%, 37.7% 59.4%, 0 50%, 37.7% 40.6%); opacity: 0; transition: opacity .2s; }
.besoins li:hover::before, .besoins li:focus-within::before { opacity: 1; }
.besoins .lien:hover { text-decoration-color: var(--signal); }


/* Résultats : filet rouge sur le panneau */
.panneau { border-top: 3px solid var(--signal); box-shadow: 0 30px 60px -40px rgba(14, 14, 16, .35); }

/* À propos et contact : buste avec étoile, liste des titres */
.titres li::before { content: ""; display: inline-block; width: 8px; height: 10px; margin-right: 10px; background: var(--signal); clip-path: polygon(50% 0, 62.3% 40.6%, 100% 50%, 62.3% 59.4%, 50% 100%, 37.7% 59.4%, 0 50%, 37.7% 40.6%); }
.titres li span { padding-left: 18px; }
.formulaire { background: var(--ton-1); border: 1px solid var(--filet); border-top: 2px solid var(--signal); padding: 28px; }
@media (max-width: 560px) { .formulaire { padding: 20px 16px; } }
.bouton { transition: background .15s, color .15s, border-color .15s; }
.bouton:not(.bouton-discret):hover { border-color: var(--signal); }
.bouton-discret:hover { border-color: var(--signal); }
.lien:hover { text-decoration-color: var(--signal); }
@media (prefers-reduced-motion: reduce) { .pilier, .besoins li, .besoins li::before, .demander::after { transition: none; } }

/* ---------- En-tête : rappels rouges au survol ---------- */
.nav a:not(.bouton) { position: relative; padding: 6px 0; }
.nav a:not(.bouton)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav a:not(.bouton):hover, .nav a:not(.bouton):focus-visible { color: var(--papier); }
.nav a:not(.bouton):hover::after, .nav a:not(.bouton):focus-visible::after { transform: scaleX(1); }
.nav .bouton:hover, .nav .bouton:focus-visible { background: var(--signal); border-color: var(--signal); color: #fff; }
.marque:hover img, .marque:focus-visible img { opacity: .85; }
@media (max-width: 760px) {
  .js-menu .nav a:not(.bouton)::after { left: 0; right: auto; width: 32px; bottom: -1px; }
  .js-menu .nav a:not(.bouton):active { color: var(--signal); }
}

/* ---------- Méthode : dégradé de titre et progression rouge ---------- */
.etapes { --pas: 25%; border-top: 0; position: relative; }
.etapes::before, .etapes::after { content: ""; position: absolute; top: 0; left: 0; height: 2px; }
.etapes::before { right: 0; background: var(--ardoise); height: 1px; }
.etapes::after { width: calc(var(--pas) * var(--n, 1) - var(--gouttiere)); background: linear-gradient(90deg, #5E1418, var(--signal)); transition: width .45s cubic-bezier(.5, 0, .2, 1); }
.etapes[data-avance="1"] { --n: 1; } .etapes[data-avance="2"] { --n: 2; } .etapes[data-avance="3"] { --n: 3; } .etapes[data-avance="4"] { --n: 4.25; }
.etapes li { cursor: default; padding-bottom: 8px; }
.etapes::before, .etapes::after { z-index: 0; }
.etapes li::before { z-index: 1; }
.etapes li::before { transition: background .3s, border-color .3s, color .3s; }
.etapes h3 { display: inline-block; background: linear-gradient(90deg, var(--papier) 0%, var(--papier) 55%, #8E1D22 100%); background-size: 200% 100%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position .5s ease; }
.etapes p { transition: color .3s; }
.etapes[data-avance="1"] li:nth-child(-n+1)::before,
.etapes[data-avance="2"] li:nth-child(-n+2)::before,
.etapes[data-avance="3"] li:nth-child(-n+3)::before,
.etapes[data-avance="4"] li:nth-child(-n+4)::before { background: var(--signal); border-color: var(--signal); color: #fff; }
.etapes[data-avance="1"] li:nth-child(1) h3,
.etapes[data-avance="2"] li:nth-child(2) h3,
.etapes[data-avance="3"] li:nth-child(3) h3,
.etapes[data-avance="4"] li:nth-child(4) h3 { background-image: linear-gradient(90deg, var(--papier) 0%, #F1A3A7 45%, var(--signal) 100%); background-size: 100% 100%; }
.etapes[data-avance="1"] li:nth-child(1) p, .etapes[data-avance="2"] li:nth-child(2) p,
.etapes[data-avance="3"] li:nth-child(3) p, .etapes[data-avance="4"] li:nth-child(4) p { color: var(--papier); }
.etapes li:first-child::before { border-color: var(--ardoise); }
@media (max-width: 860px) {
  /* Vertical : la ligne rouge descend le long des étapes */
  .etapes::before { top: 0; bottom: 36px; left: 0; right: auto; width: 1px; height: auto; }
  .etapes::after { top: 0; left: 0; width: 2px; height: calc(var(--pas) * var(--n, 1)); max-height: calc(100% - 36px); transition: height .45s cubic-bezier(.5, 0, .2, 1); background: linear-gradient(180deg, #5E1418, var(--signal)); }
  .etapes li { border-left: 0; padding-bottom: 36px; }
  .etapes li:last-child { padding-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { .etapes::after, .etapes h3, .etapes li::before, .etapes p, .nav a::after { transition: none; } }

/* ---------- Écrans tactiles : accents visibles sans survol ---------- */
.pilier.actif { border-top-color: var(--signal); }
.besoins li.actif::before { opacity: 1; }
@media (hover: none) {
  .demander::after { transform: none; }
  .pilier { transition: border-color .3s; }
}
@media (max-width: 700px) {
  .besoins li::before { left: auto; right: 0; top: 22px; margin-top: 0; }
  .besoins li { padding-right: 22px; }
}

@media print {
  .entete, .formulaire, .sentinelle { display: none; }
  body { background: #fff; color: #000; }
}

/* Alignement : la première ligne du contenu de droite sur la première ligne du titre */
.deux-col > :last-child { margin-top: 0; }
.deux-col .intro, .deux-col .besoins, .deux-col .apropos-texte p:first-child { margin-top: 0; }
#apropos .buste, #contact .buste { display: block; margin-bottom: 36px; }
.section h2 { margin-top: 0; }
.besoins { border-top: 0; }
.besoins li:first-child { padding-top: 0; }
@media (max-width: 900px) { .besoins { border-top: 1px solid var(--filet); } .besoins li:first-child { padding-top: 16px; } }
/* Calage optique au pixel (hauteur de capitale Sora vs interligne Public Sans) */
@media (min-width: 901px) {
  .deux-col > .intro, .deux-col > .besoins, .apropos-texte { margin-top: -4px; }
  .deux-col > div > .panneau { margin-top: 2px; }
  .deux-col > .formulaire { margin-top: 5px; }
}
@media (min-width: 1101px) {
  .apropos .titres { border-top: 0; margin-top: -4px; }
  .apropos .titres li:first-child { padding-top: 0; }
}

/* À propos : secteurs d'expérience */
.secteurs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gouttiere); }
.secteurs li { padding-top: 14px; border-top: 2px solid var(--ardoise); color: var(--gris); font-size: 0.9rem; line-height: 1.5; }
.secteurs li:hover { border-top-color: var(--signal); }
.secteurs strong { display: block; color: var(--papier); font-family: var(--titre); font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
@media (max-width: 640px) { .secteurs { grid-template-columns: 1fr; gap: 16px; } }

.secteurs-titre { font-size: 1.2rem; line-height: 1.3; margin: 0 0 8px; }
.secteurs-intro { color: #C9CAC6; max-width: 46em; margin: 0 0 24px; }

/* ---------- Pied de page ---------- */
.pied { padding: 0; background: #09090B; border-top: 2px solid var(--signal); color: var(--gris); font-size: 0.92rem; }
.pied .cadre.pied-grille { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gouttiere); row-gap: 36px; padding-top: 56px; padding-bottom: 44px; align-items: start; }
.pied-marque { grid-column: 1 / span 5; }
.pied-marque img { height: 34px; width: auto; margin-bottom: 18px; }
.pied-devise { font-family: var(--titre); font-size: 1.05rem; color: var(--papier); margin: 0 0 14px; }
.pied-col { grid-column: span 3; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.pied-col:last-child { grid-column: 10 / span 3; }
.pied-titre { font-family: var(--titre); font-weight: 600; color: var(--papier); margin: 0 0 6px; font-size: 0.95rem; }
.pied-titre::before { content: ""; display: inline-block; width: 8px; height: 10px; margin-right: 8px; background: var(--signal); clip-path: polygon(50% 0, 62.3% 40.6%, 100% 50%, 62.3% 59.4%, 50% 100%, 37.7% 59.4%, 0 50%, 37.7% 40.6%); }
.pied-col p { margin: 0; }
.pied-col a { color: var(--gris); text-decoration: none; width: fit-content; background: linear-gradient(var(--signal), var(--signal)) left bottom / 0 1px no-repeat; transition: color .15s, background-size .2s; }
.pied-col a:hover, .pied-col a:focus-visible { color: var(--papier); background-size: 100% 1px; }
.pied-bas { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid var(--filet); font-size: 0.85rem; }
.pied-bas p { margin: 0; }
.pied-haut { color: var(--gris); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.pied-haut::before { content: ""; width: 9px; height: 12px; background: var(--signal); clip-path: polygon(50% 0, 62.3% 40.6%, 100% 50%, 62.3% 59.4%, 50% 100%, 37.7% 59.4%, 0 50%, 37.7% 40.6%); }
.pied-haut:hover { color: var(--papier); }
@media (max-width: 900px) {
  .pied-marque { grid-column: 1 / -1; }
  .pied-col, .pied-col:last-child { grid-column: span 6; }
}
@media (max-width: 520px) {
  .pied-col, .pied-col:last-child { grid-column: 1 / -1; }
  .pied-bas { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .pied-col a { transition: none; } }

/* ---------- À propos : emblème et bande d'expérience ---------- */
.apropos-gauche { position: relative; }
.apropos-embleme { position: relative; margin-top: 48px; width: min(100%, 230px); aspect-ratio: 1; display: grid; place-items: center; }
.apropos-embleme::before { content: ""; position: absolute; inset: -18%; background: radial-gradient(circle, rgba(228, 34, 43, 0.16) 0%, rgba(228, 34, 43, 0.05) 40%, transparent 68%); }
.apropos-embleme img { position: relative; width: 82%; height: auto; }

@media (max-width: 900px) { .apropos-embleme { display: none; } }

.experience { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gouttiere); row-gap: 28px; margin-top: 64px; padding: 40px 0 44px; position: relative; isolation: isolate; }
.experience::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -36px; right: -36px;
  background: linear-gradient(110deg, #1C1D22 0%, #1A1B20 45%, #2A1517 100%); border-top: 2px solid var(--signal); }
.experience::after { content: ""; position: absolute; z-index: -1; right: -20px; bottom: 0; width: 220px; height: 290px; background: rgba(228, 34, 43, 0.07);
  clip-path: polygon(50% 0, 62.3% 40.6%, 100% 50%, 62.3% 59.4%, 50% 100%, 37.7% 59.4%, 0 50%, 37.7% 40.6%); pointer-events: none; }
.experience-tete { grid-column: 1 / span 4; }
.experience-titre { font-size: 1.35rem; line-height: 1.25; margin: 0 0 12px; }
.experience-intro { color: #C9CAC6; margin: 0; font-size: 0.98rem; }
.experience .secteurs { grid-column: 5 / span 8; position: relative; z-index: 1; }
.experience .secteurs li { border-top-color: rgba(255, 255, 255, 0.18); color: #B8BAC0; }
@media (max-width: 900px) {
  .experience { padding: 28px 0; margin-top: 40px; }
  .experience::before { left: calc(var(--marge) * -1); right: calc(var(--marge) * -1); }
  .experience-tete, .experience .secteurs { grid-column: 1 / -1; }
}

/* Mise en valeur soulignée en rouge */
.souligne { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 5px; color: var(--papier); }

/* Pied de page : 4 colonnes calées sur la grille des sections (1-4 | 5-6 | 7-9 | 10-12) */
.pied-marque { grid-column: 1 / span 4; }
.pied-nav { grid-column: 5 / span 2; }
.pied-info { grid-column: 7 / span 3; }
.pied-col.pied-legal, .pied-legal { grid-column: 10 / span 3; }
.pied-marque img { display: block; height: 22px; margin: 0 0 20px; }
.pied-titre { line-height: 22px; margin: 0 0 14px; }
.pied-devise { margin-bottom: 12px; }
.pied-col { gap: 10px; }
.pied-legal a.lien { color: var(--papier); background: none; text-decoration: underline; text-decoration-color: var(--ardoise); text-underline-offset: 4px; }
.pied-legal a.lien:hover, .pied-legal a.lien:focus-visible { text-decoration-color: var(--signal); }
@media (max-width: 900px) {
  .pied-marque { grid-column: 1 / -1; }
  .pied-nav, .pied-info, .pied-col.pied-legal, .pied-legal { grid-column: span 4; }
}
@media (max-width: 600px) {
  .pied-nav, .pied-info, .pied-col.pied-legal, .pied-legal { grid-column: 1 / -1; }
}
/* Étoile des titres de colonne dans la gouttière : texte du titre aligné sur les liens */
.pied-titre { position: relative; line-height: 30px; }
.pied-titre::before { position: absolute; left: -16px; top: 10px; margin: 0; }
.pied-marque img { height: 30px; margin-bottom: 16px; }
@media (max-width: 900px) { .pied-titre::before { left: -14px; } }

/* Pied de page sans navigation : 1-4 | 5-8 | 9-12 */
.pied-info { grid-column: 5 / span 4; }
.pied-col.pied-legal, .pied-legal { grid-column: 9 / span 4; }
@media (max-width: 900px) { .pied-info, .pied-col.pied-legal, .pied-legal { grid-column: span 6; } }
@media (max-width: 600px) { .pied-info, .pied-col.pied-legal, .pied-legal { grid-column: 1 / -1; } }

/* Sélecteur de langue */
.entete .cadre { gap: 20px; }
.langues { display: flex; align-items: center; margin-left: auto; order: 2; font: 600 0.82rem/1 var(--titre); letter-spacing: 0.04em; }
.nav { order: 3; }
.menu-bouton { order: 4; }
.langues a { color: var(--gris); text-decoration: none; padding: 8px 6px; position: relative; }
.langues a + a::before { content: ""; position: absolute; left: -1px; top: 9px; bottom: 9px; width: 1px; background: var(--ardoise); }
.langues a:hover { color: var(--papier); }
.langues a[aria-current="page"] { color: var(--papier); }
.langues a[aria-current="page"]::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 2px; height: 2px; background: var(--signal); }
@media (min-width: 761px) { .langues { margin-right: 4px; } }
.actions-404 { display: flex; flex-wrap: wrap; gap: 12px; }
