/* I-house — feuille de style
   Concept : catalogue de formation lisible et rapide à parcourir (structure type grand organisme),
   identité ELANTYS : noir, jaune soleil, gris pierre ; motif des barres inclinées à 24°. */
:root {
  --bg: #FFFFFF;
  --fg: #1E1E1C;
  --muted: #5A5A58;
  --surface: #F4F4F2;
  --surface-2: #E9E9E4;
  --line: #DADAD4;
  --sun: #FFB001;
  --sun-soft: #FFF3D6;
  --band: #1E1E1C;
  --band-fg: #F4F4F2;
  --band-muted: #B9B8B2;
  --band-line: #3A3A36;
  --ok: #1F7A3E;
  --err: #B3261E;
  --f-display: "Archivo", "Arial Narrow", Arial, Helvetica, sans-serif;
  --f-body: "Carlito", Calibri, "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius: 10px;
  --wrap: 1200px;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 3.2vw, 2.5rem);
  --step-4: clamp(2.3rem, 5.2vw, 4rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141413; --fg: #F2F2EE; --muted: #AEADA6; --surface: #1D1D1B; --surface-2: #272724;
    --line: #353531; --sun-soft: #3A2E12; --band: #0B0B0A; --band-fg: #F2F2EE; --band-muted: #A9A8A1;
    --band-line: #2E2E2A; --ok: #5CC384; --err: #F28B82; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141413; --fg: #F2F2EE; --muted: #AEADA6; --surface: #1D1D1B; --surface-2: #272724;
  --line: #353531; --sun-soft: #3A2E12; --band: #0B0B0A; --band-fg: #F2F2EE; --band-muted: #A9A8A1;
  --band-line: #2E2E2A; --ok: #5CC384; --err: #F28B82; color-scheme: dark;
}

*, *::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; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: var(--step-0); line-height: 1.55; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-stretch: 85%; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--surface { background: var(--surface); }
.eyebrow { font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.section-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 760px; }
.section-head p { color: var(--muted); font-size: var(--step-1); }
.code { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .04em; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--f-display); font-weight: 700; font-size: 1rem; padding: 12px 20px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--sun { background: var(--sun); color: #1E1E1C; }
.btn--sun:hover { background: #FFC23A; }
.btn--ink { background: #1E1E1C; color: #FFFFFF; }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--sm { padding: 8px 14px; font-size: .9rem; }

/* Barre utilitaire + en-tête */
.utility { background: var(--band); color: var(--band-muted); font-size: .85rem; }
.utility .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; justify-content: space-between; padding-block: 7px; }
.utility a { color: var(--band-fg); text-decoration: none; }
.utility-items { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.utility-items span::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--sun); transform: skewX(-24deg); margin-right: 8px; vertical-align: 1px; }

body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 22px; padding-block: 12px; }
.brand { display: inline-flex; color: var(--fg); flex-shrink: 0; }
.brand svg { height: 38px; width: auto; display: block; }
.brand .lg-cut { stroke: var(--bg); }
.brand--home svg { height: 76px; }
.nav > a, .nav summary, .header-cta { white-space: nowrap; }
/* Accueil : la recherche est déjà dans le bandeau principal */
.site-header--home .header-search { display: none; }
@media (max-width: 1199px) { .brand--home svg { height: 62px; } }
@media (max-width: 420px) { .brand--home svg { height: 52px; } }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav > a, .nav summary { font-family: var(--f-display); font-weight: 600; font-size: .98rem; padding: 8px 10px; border-radius: 8px; text-decoration: none; cursor: pointer; list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav > a:hover, .nav summary:hover { background: var(--surface); }
.nav [aria-current="page"] { box-shadow: inset 0 -3px 0 var(--sun); border-radius: 0; }
.dropdown { position: relative; }
.dropdown summary::after { content: ""; display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 8px; vertical-align: 3px; }
.dropdown-panel { position: absolute; top: calc(100% + 8px); left: 0; width: min(640px, 92vw); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0,0,0,.14); padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dd-col { display: grid; gap: 2px; align-content: start; }
.dd-col .eyebrow { padding: 6px 12px 4px; }
.dropdown-panel a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.dropdown-panel a:hover { background: var(--surface); }
.dropdown-panel strong { font-family: var(--f-display); font-size: .95rem; }
.dropdown-panel small { color: var(--muted); }
.header-search { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 4px 2px 14px; min-width: 0; }
.header-search input { border: 0; background: transparent; color: var(--fg); font: inherit; font-size: .95rem; padding: 7px 4px; width: 170px; min-width: 0; }
.header-search input:focus { outline: none; }
.header-search:focus-within { outline: 3px solid var(--sun); }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .header-search input { width: 120px; }
}
@media (max-width: 1010px) {
  .site-header .wrap { flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 10px; }
  .nav.is-open { display: flex; }
  .dropdown-panel { position: static; width: auto; box-shadow: none; grid-template-columns: 1fr; border: 0; padding: 0 0 0 10px; }
  .header-search { order: 4; flex-basis: 100%; }
  .header-search input { width: 100%; }
  .header-cta { display: none; }
}

/* Héro */
.hero { background: var(--band); color: var(--band-fg); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; padding-block: clamp(44px, 7vw, 84px); }
.hero h1 { font-size: var(--step-4); }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero-lead { color: var(--band-muted); font-size: var(--step-1); margin-top: 18px; max-width: 58ch; }
.hero-search { margin-top: 28px; display: flex; gap: 8px; background: #FFFFFF; border-radius: 999px; padding: 6px; max-width: 620px; }
.hero-search input { flex: 1 1 auto; width: 100%; min-width: 0; border: 0; font: inherit; font-size: 1.05rem; padding: 10px 16px; color: #1E1E1C; background: transparent; border-radius: 999px; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { outline: 3px solid var(--sun); outline-offset: 3px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.quick span { color: var(--band-muted); font-size: .9rem; margin-right: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .88rem; text-decoration: none; background: var(--bg); color: var(--fg); }
.hero .chip { background: transparent; border-color: var(--band-line); color: var(--band-fg); }
.hero .chip:hover { border-color: var(--sun); }
.hero-art { position: relative; padding: 0 0 34px 34px; }
.hero-photo { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-mark { position: absolute; right: -26px; bottom: -10px; width: 30%; max-width: 170px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.45)); }
.hero-card { position: absolute; left: 0; bottom: 0; width: min(280px, 70%); background: #FFFFFF; color: #1E1E1C; border-radius: var(--radius); padding: 16px 18px; box-shadow: 0 22px 50px rgba(0,0,0,.35); text-decoration: none; display: grid; gap: 6px; }
.hero-card .code { color: #5A5A58; }
.hero-card strong { font-family: var(--f-display); font-stretch: 85%; font-size: 1.15rem; line-height: 1.15; }
.hero-card small { color: #5A5A58; }
@media (max-width: 520px) { .hero-search .btn { padding-inline: 14px; } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-art { padding: 0 0 70px 0; }
  .hero-mark { right: 0; width: 30%; }
}

/* Chiffres */
.figures { border-bottom: 1px solid var(--line); }
.figures .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding-block: 26px; }
.figure { padding: 4px 22px; border-left: 1px solid var(--line); display: grid; gap: 2px; }
.figure:first-child { border-left: 0; padding-left: 0; }
.figure b { font-family: var(--f-display); font-stretch: 85%; font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.figure span { color: var(--muted); font-size: .95rem; }
.figures-note { grid-column: 1 / -1; margin-top: 12px; color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) {
  .figures .wrap { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .figure:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* Domaines */
.family { display: grid; gap: 16px; }
.family + .family { margin-top: 40px; }
.family-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding-bottom: 10px; border-bottom: 2px solid var(--fg); }
.family-head h3 { font-size: 1.5rem; }
.family-head p { color: var(--muted); }
.domains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.domain { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 0 0 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); text-decoration: none; transition: border-color .15s ease, transform .15s ease; min-width: 0; }
.domain:hover { border-color: var(--fg); transform: translateY(-2px); }
.domain > h3, .domain > p, .domain > .count { padding-inline: 20px; }
.domain-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); margin-bottom: 6px; }
.domain-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.domain:hover .domain-img img { transform: scale(1.05); }
.domain-img .tag { position: absolute; left: 14px; bottom: 12px; }
.domain .tag { justify-self: start; font-family: var(--f-mono); font-size: .75rem; background: var(--sun); color: #1E1E1C; padding: 2px 8px; border-radius: 4px; transform: skewX(-12deg); }
.domain p { color: var(--muted); font-size: .97rem; }
.domain .count { font-family: var(--f-display); font-weight: 700; font-size: .95rem; }
.domain .count::after { content: " →"; }
.domains--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .domains, .domains--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .domains, .domains--3 { grid-template-columns: 1fr; } }

/* Cartes formation */
.courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.course-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; min-width: 0; }
.course-card:hover { border-color: var(--fg); }
.course-card h3 { font-size: 1.2rem; }
.course-card p { color: var(--muted); font-size: .97rem; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .88rem; }
.meta b { color: var(--fg); font-weight: 700; }
.course-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.pill { font-size: .78rem; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--fg); white-space: nowrap; }
.pill--sun { background: var(--sun); color: #1E1E1C; }
@media (max-width: 960px) { .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .courses { grid-template-columns: 1fr; } }

/* Formats */
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.format { padding: 0 0 26px; display: grid; gap: 10px; align-content: start; border-left: 1px solid var(--line); background: var(--bg); }
.format:first-child { border-left: 0; }
.format p { color: var(--muted); }
.format > h3, .format > p { padding-inline: 26px; }
.format-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 10px; }
.format-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .formats { grid-template-columns: 1fr; } .format { border-left: 0; border-top: 1px solid var(--line); } .format:first-child { border-top: 0; } }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; padding-top: 14px; border-top: 3px solid var(--fg); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-mono); font-size: .85rem; color: var(--muted); }
.steps p { color: var(--muted); font-size: .97rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Bandeaux */
.band { background: var(--band); color: var(--band-fg); }
.band p { color: var(--band-muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.cta-band { background: var(--sun); color: #1E1E1C; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding-block: 40px; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: #3A3A36; margin-top: 6px; }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list-check li { position: relative; padding-left: 28px; }
.list-check li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--sun); border-bottom: 3px solid var(--sun); transform: rotate(-45deg); }

/* Catalogue */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(28px, 5vw, 52px); display: grid; gap: 12px; }
.page-head p { color: var(--muted); font-size: var(--step-1); max-width: 70ch; }
.crumbs { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.catalog { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 90px); display: grid; gap: 22px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.filters legend { font-family: var(--f-display); font-weight: 700; margin-bottom: 6px; }
.filters label { display: flex; gap: 8px; align-items: center; font-size: .95rem; cursor: pointer; }
.filters label .n { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .85rem; }
.filters input[type="checkbox"] { accent-color: var(--sun); width: 16px; height: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 700; font-size: .95rem; }
.input, select.input, textarea.input { width: 100%; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.input:focus { outline: 3px solid var(--sun); outline-offset: 0; border-color: var(--fg); }
.results-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.results-bar strong { font-family: var(--f-display); font-size: 1.1rem; }
.link-btn { background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; text-decoration-color: var(--sun); cursor: pointer; padding: 0; }
.domain-group { margin-bottom: 28px; }
.domain-group > h2 { font-size: 1.35rem; display: flex; gap: 10px; align-items: baseline; padding-bottom: 8px; border-bottom: 2px solid var(--fg); margin-bottom: 4px; }
.row { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 6px 18px; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; align-items: start; }
.row:hover { background: var(--surface); }
.row .code { padding-top: 4px; color: var(--muted); }
.row h3 { font-size: 1.12rem; }
.row p { color: var(--muted); font-size: .95rem; margin-top: 3px; }
.row .row-meta { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.empty { padding: 30px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }
.filters-toggle { display: none; }
@media (max-width: 900px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.is-open { display: grid; }
  .filters-toggle { display: inline-flex; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row .row-meta { justify-content: flex-start; }
}

/* Fiche formation */
.fiche-head { background: var(--band); color: var(--band-fg); }
.fiche-head .wrap { padding-block: clamp(30px, 5vw, 56px); display: grid; gap: 14px; }
.fiche-head .crumbs, .fiche-head .crumbs a { color: var(--band-muted); }
.fiche-head .lead { color: var(--band-muted); font-size: var(--step-1); max-width: 62ch; }
.fiche-head .code-tag { justify-self: start; font-family: var(--f-mono); font-size: .8rem; background: var(--sun); color: #1E1E1C; padding: 3px 10px; border-radius: 4px; }
.fiche-head h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 22ch; }
.fiche-head .chip { background: transparent; color: var(--band-fg); border-color: var(--band-line); }
.fiche { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.fiche-main { display: grid; gap: 40px; min-width: 0; }
.fiche-main section { display: grid; gap: 14px; }
.fiche-main h2 { font-size: 1.6rem; }
.modules { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: mod; }
.modules > li { counter-increment: mod; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.modules > li::before { content: counter(mod, decimal-leading-zero); font-family: var(--f-mono); font-weight: 700; color: var(--fg); background: var(--sun); border-radius: 6px; height: 30px; display: grid; place-items: center; font-size: .85rem; }
.modules h3 { font-size: 1.1rem; }
.modules ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); display: grid; gap: 3px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tools .chip { background: var(--surface); border-color: var(--line); }
.facts-card { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 90px); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; background: var(--bg); }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 8px; align-content: start; }
.box h3 { font-size: 1.05rem; }
.box p { color: var(--muted); font-size: .97rem; }
@media (max-width: 960px) { .fiche { grid-template-columns: 1fr; } .facts-card { position: static; } }
@media (max-width: 620px) { .two-col { grid-template-columns: 1fr; } }

/* Formulaire */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--sun); width: 16px; height: 16px; flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--line); }
.notice--ok { border-color: var(--ok); color: var(--ok); }
.notice--err { border-color: var(--err); color: var(--err); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.copy-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-line code { font-family: var(--f-mono); font-size: .95rem; user-select: all; }

/* Texte long */
.prose { max-width: 72ch; display: grid; gap: 14px; }
.prose h2 { font-size: 1.5rem; margin-top: 18px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.todo { background: var(--sun-soft); padding: 1px 6px; border-radius: 4px; font-weight: 700; }

/* Pied de page */
.site-footer { background: var(--band); color: var(--band-muted); font-size: .95rem; }
.site-footer .wrap { padding-block: 48px 28px; display: grid; gap: 34px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr .8fr 1.1fr; gap: 28px; }
.footer-grid h3, .footer-grid .footer-h { color: var(--band-fg); font-size: 1rem; margin-bottom: 10px; font-family: var(--f-display); letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid a { color: var(--band-fg); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; text-decoration-color: var(--sun); }
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-brand svg { height: 40px; width: auto; color: var(--band-fg); }
.footer-brand .lg-cut { stroke: var(--band); }
.brand-of { font-size: .85rem; }
.brand-of a { color: var(--band-fg); }
.qualiopi { display: grid; gap: 8px; border: 1px solid var(--band-line); border-radius: var(--radius); padding: 14px; }
.qualiopi strong { color: var(--band-fg); font-family: var(--f-display); }
.qualiopi small { font-size: .8rem; line-height: 1.4; }
.qualiopi img { background: #FFFFFF; border-radius: 6px; padding: 6px; max-width: 170px; }
.footer-bottom { border-top: 1px solid var(--band-line); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; font-size: .85rem; }
.footer-bottom a { color: var(--band-muted); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Photos et symbole ELANTYS */
figure { margin: 0; }
.approach .split { align-items: center; }
.approach-visual { position: relative; padding: 0 60px 60px 0; }
.approach-photo { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.approach-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.approach-photo--small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1 / 1; border: 6px solid var(--bg); box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.approach-mark { position: absolute; left: -10px; bottom: 6px; width: 22%; max-width: 120px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .approach-mark line[stroke="#1E1E1C"] { stroke: #F2F2EE; } }
:root[data-theme="dark"] .approach-mark line[stroke="#1E1E1C"] { stroke: #F2F2EE; }
.band-photo { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; }
.band-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fiche-head-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: center; gap: 40px; }
.fiche-head-text { display: grid; gap: 14px; min-width: 0; }
.fiche-head-visual { position: relative; padding: 0 0 26px 26px; }
.fiche-photo { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.fiche-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fiche-mark { position: absolute; left: -8px; bottom: -4px; width: 30%; max-width: 130px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); }
@media (max-width: 860px) { .fiche-head-grid { grid-template-columns: minmax(0, 1fr); } .fiche-head-visual { max-width: 460px; } }
.page-head--photo .wrap { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center; gap: 36px; }
.page-head-text { display: grid; gap: 12px; min-width: 0; }
.page-head-photo { position: relative; border-radius: 16px; overflow: visible; aspect-ratio: 16 / 10; }
.page-head-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 16px; }
.page-head-mark { position: absolute; right: -12px; bottom: -18px; width: 26%; max-width: 110px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.35)); }
.page-head-mark line[stroke="#FFFFFF"] { stroke: #1E1E1C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-head-mark line[stroke="#FFFFFF"] { stroke: #F2F2EE; } }
:root[data-theme="dark"] .page-head-mark line[stroke="#FFFFFF"] { stroke: #F2F2EE; }
@media (max-width: 860px) { .page-head--photo .wrap { grid-template-columns: minmax(0, 1fr); } .page-head-photo { max-width: 520px; } }
@media (max-width: 860px) { .approach-visual { padding: 0 30px 40px 0; } }

/* --- SEO : images responsives, FAQ, pages thématiques --- */
picture { display: contents; }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--fg); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 18px; color: var(--muted); margin: 0; }
.theme-intro { display: grid; gap: 14px; max-width: 820px; color: var(--muted); font-size: var(--step-0); }
.theme-links { display: flex; flex-wrap: wrap; gap: 8px; }
.domain-group h2 a { color: inherit; text-decoration: none; }
.domain-group h2 a:hover { text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 4px; }
.domain-group .more { font-size: .95rem; font-weight: 700; margin: 4px 0 8px; display: inline-block; }
.pill--price { background: var(--sun-soft); color: var(--fg); font-weight: 700; border-color: transparent; }
.agences { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.agences a { text-decoration: none; }
.agences a:hover strong { text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 3px; }
section[id], .domain-group, #implantations { scroll-margin-top: 110px; }
