/* CEID-Addictions — « Permanence du jeudi soir » */
:root {
  --fx-color-fond: #1c1d1f;
  --fx-color-surface: #2a2b2e;
  --fx-color-texte: #f2f1ee;
  --fx-color-texte-secondaire: #939598;
  --fx-color-accent: #ee1c25;
  --fx-color-accent-2: #ff5a5f;
  --fx-color-contraste: #900406;
  --fx-color-bordure: #3d3e42;
  --fx-font-display: "Space Grotesk", system-ui, sans-serif;
  --fx-font-body: "IBM Plex Sans", system-ui, sans-serif;
  --fx-font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(1rem, 4vw, 3rem);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --fx-color-fond: #f2f1ee;
  --fx-color-surface: #ffffff;
  --fx-color-texte: #1c1d1f;
  --fx-color-texte-secondaire: #585a5e;
  --fx-color-accent-2: #c4121b;
  --fx-color-bordure: #cdcbc5;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --fx-color-fond: #f2f1ee;
    --fx-color-surface: #ffffff;
    --fx-color-texte: #1c1d1f;
    --fx-color-texte-secondaire: #585a5e;
    --fx-color-accent-2: #c4121b;
    --fx-color-bordure: #cdcbc5;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fx-color-fond);
  color: var(--fx-color-texte);
  font: 400 1.125rem/1.6 var(--fx-font-body);
  letter-spacing: .008em;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fx-color-accent-2); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--fx-font-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono, .data { font-family: var(--fx-font-mono); font-size: 1rem; line-height: 1.55; letter-spacing: 0; }
.muted { color: var(--fx-color-texte-secondaire); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 1px); white-space: nowrap; }
.wrap { max-width: 1360px; margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--fx-color-texte); color: var(--fx-color-fond); padding: .75rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; }
.gotcha { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Témoin : le point du « i » */
.dot { display: inline-block; width: .8em; height: .8em; border-radius: 50%; background: var(--fx-color-accent); box-shadow: -.22em .1em 0 var(--fx-color-contraste); flex: none; margin-left: .22em; }
.dot[data-open="false"] { background: transparent; box-shadow: none; border: 2px solid var(--fx-color-texte-secondaire); }
.dot[data-open="true"] { animation: ping 1.6s ease-out 1; }
@keyframes ping { 0% { outline: 0 solid rgba(238,28,37,.6); } 100% { outline: 14px solid rgba(238,28,37,0); } }

/* Bandeau d'état */
.statusbar { background: var(--fx-color-surface); border-bottom: 1px solid var(--fx-color-bordure); }
.statusbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; padding-block: .6rem; }
.statusbar .state { display: flex; align-items: center; gap: .7rem; margin: 0; flex: 1 1 24rem; }
.statusbar .state b { font-weight: 600; }
.statusbar a { font-weight: 600; white-space: nowrap; padding: .35rem 0; }

/* En-tête */
.site-header { position: relative; z-index: 50; background: var(--fx-color-fond); border-bottom: 1px solid var(--fx-color-bordure); }
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 4.75rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; margin-right: auto; }
.brand img { width: 2.6rem; height: auto; }
.brand b { white-space: nowrap; display: block; font: 700 1.3rem/1 var(--fx-font-display); letter-spacing: -.02em; }
.brand small { display: block; font: 400 1rem/1.2 var(--fx-font-mono); color: var(--fx-color-texte-secondaire); margin-top: .2rem; }
.nav ul { display: flex; gap: .2rem 1.2rem; align-items: center; }
.brand small { white-space: nowrap; }
@media (max-width: 1560px) { .brand small { display: none; } }
@media (max-width: 1240px) { .header-cta { display: none; } }
.nav a { white-space: nowrap; display: inline-block; padding: .6rem 0; text-decoration: none; font-weight: 500; font-size: 1rem; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--fx-color-accent-2); }
.btn, .theme-btn { white-space: nowrap; }
.btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 3rem; padding: .6rem 1.2rem; font: 600 1rem/1.2 var(--fx-font-body); text-decoration: none; border: 1.5px solid var(--fx-color-texte); background: var(--fx-color-texte); color: var(--fx-color-fond); cursor: pointer; border-radius: 0; }
.btn:hover { background: transparent; color: var(--fx-color-texte); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--fx-color-texte); }
.btn.ghost:hover { background: var(--fx-color-texte); color: var(--fx-color-fond); }
.btn.sm { min-height: 2.75rem; padding: .4rem .9rem; }
.theme-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .3rem .8rem; background: none; color: inherit; border: 1px solid var(--fx-color-bordure); font: 500 1rem var(--fx-font-body); cursor: pointer; }
.theme-btn:hover { border-color: var(--fx-color-texte); }
.theme-btn svg { width: 1.2rem; height: 1.2rem; flex: none; }
.menu-btn { display: none; min-height: 2.75rem; padding: .3rem .9rem; background: none; color: inherit; border: 1px solid var(--fx-color-texte); font: 600 1rem var(--fx-font-body); cursor: pointer; }
.no-js .theme-btn { display: none; }

/* Titres de section en « fiche » */
.sec { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.sec + .sec { border-top: 1px solid var(--fx-color-bordure); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); max-width: 60rem; }
.kicker { font: 500 1rem/1.3 var(--fx-font-mono); color: var(--fx-color-texte-secondaire); letter-spacing: 0; margin: 0; }
.kicker b { color: var(--fx-color-accent-2); font-weight: 500; }
.sec-head h2 { font-size: clamp(2.1rem, 5vw, 3.9rem); }
.sec-head p { color: var(--fx-color-texte-secondaire); max-width: 42rem; margin: 0; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem 2rem; align-items: end; }
.hero-main { grid-column: 1 / 8; }
.hero h1 { font-size: clamp(2.9rem, 8vw, 6.6rem); font-weight: 700; letter-spacing: -.045em; line-height: .94; margin: 1.1rem 0 1.8rem; }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 .soft { color: var(--fx-color-texte-secondaire); }
.hero h1 .dot { width: .17em; height: .17em; margin-left: .06em; box-shadow: -.05em .02em 0 var(--fx-color-contraste); border: 0; }
.lede { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; max-width: 36rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin-top: 1.75rem; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--fx-color-accent-2); padding: .3rem 0; }
.link-arrow:hover { border-bottom-width: 3px; }
.une { grid-column: 9 / 13; background: var(--fx-color-surface); border: 1px solid var(--fx-color-bordure); border-top: 6px solid var(--fx-color-accent); padding: 1.4rem 1.5rem 1.6rem; position: relative; }
.une .kicker { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.une .big { font: 700 clamp(3rem, 5.4vw, 4.9rem)/.9 var(--fx-font-display); letter-spacing: -.045em; margin: 0 0 .3rem; }
.une .big small { display: block; font-size: .36em; letter-spacing: -.01em; color: var(--fx-color-accent-2); font-weight: 600; margin-bottom: .45rem; }
.une h2 { font-size: 1.5rem; margin: 1.4rem 0 .6rem; }
.une p { margin-bottom: 1rem; }
.une .data { border-top: 1px solid var(--fx-color-bordure); padding-top: .9rem; margin: 0 0 1.1rem; }
.logo-tile { position: absolute; right: -1px; top: -7rem; width: 5.2rem; }

/* Tableau de permanence */
.perm { border-block: 1px solid var(--fx-color-bordure); background: var(--fx-color-surface); }
.perm .wrap { padding-block: 2.25rem 2.5rem; }
.perm h2 { font-size: 1.15rem; font-family: var(--fx-font-mono); font-weight: 500; letter-spacing: 0; color: var(--fx-color-texte-secondaire); margin-bottom: 1rem; }
.perm table { width: 100%; border-collapse: collapse; }
.perm th, .perm td { text-align: left; padding: .85rem 1rem .85rem 0; border-top: 1px solid var(--fx-color-bordure); vertical-align: baseline; font-weight: 400; }
.perm thead th { font: 500 1rem var(--fx-font-mono); color: var(--fx-color-texte-secondaire); border-top: 0; padding-block: .3rem; }
.perm tbody th { font-family: var(--fx-font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
.perm .st { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--fx-font-mono); }
.perm .st .dot { width: .7em; height: .7em; }
.perm .st.on { color: var(--fx-color-texte); font-weight: 500; }

/* Orientation */
.orient { border-top: 1px solid var(--fx-color-texte); }
.orient details { border-bottom: 1px solid var(--fx-color-bordure); }
.orient summary { display: grid; grid-template-columns: 4.5rem 1fr 3rem; align-items: center; gap: 1rem; padding: 1.35rem 0; min-height: 5rem; cursor: pointer; list-style: none; }
.orient summary::-webkit-details-marker { display: none; }
.orient summary .n { font-family: var(--fx-font-mono); color: var(--fx-color-texte-secondaire); }
.orient summary .t { font: 600 clamp(1.5rem, 3.6vw, 2.7rem)/1.05 var(--fx-font-display); letter-spacing: -.03em; }
.orient summary .pm { width: 2.2rem; height: 2.2rem; position: relative; justify-self: end; border: 1px solid var(--fx-color-bordure); }
.orient summary .pm::before, .orient summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1rem; height: 2px; background: var(--fx-color-texte); transform: translate(-50%, -50%); }
.orient summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .15s; }
.orient details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0); }
.orient details[open] summary .t { color: var(--fx-color-accent-2); }
.orient summary:hover .t { color: var(--fx-color-accent-2); }
.orient .ans { display: grid; grid-template-columns: 4.5rem minmax(0, 1.3fr) minmax(0, 1fr); gap: 1rem; padding: 0 0 2.25rem; }
.orient .ans > div:first-child { padding-right: 2rem; }
[id] { scroll-margin-top: 1.5rem; }
.orient .ans > div:first-child { grid-column: 2; }
.orient .ans > div:last-child { grid-column: 3; }
.orient .ans ul.links { display: grid; gap: .5rem; }
.orient .ans ul.links a { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--fx-color-bordure); text-decoration: none; font-weight: 600; }
.orient .ans ul.links a:hover { color: var(--fx-color-accent-2); }
.def { font-family: var(--fx-font-mono); font-size: 1rem; line-height: 1.5; color: var(--fx-color-texte-secondaire); margin: 0 0 .8rem; }
.def b { color: var(--fx-color-texte); font-weight: 500; }

/* Services : mosaïque à filets */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1px; background: var(--fx-color-bordure); border: 1px solid var(--fx-color-bordure); }
.tile { background: var(--fx-color-fond); padding: clamp(1.4rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.tile.alt { background: var(--fx-color-surface); }
.tile h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.03em; overflow-wrap: anywhere; }
.t-pro h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.tile p { margin: 0; }
.tile .ico { width: 3.25rem; height: 3.25rem; color: var(--fx-color-texte); margin-bottom: .6rem; }
.tile .more { margin-top: auto; padding-top: 1rem; }
.t-amb { grid-column: span 7; }
.t-res { grid-column: span 5; grid-row: span 2; }
.t-test { grid-column: span 4; }
.t-pro { grid-column: span 3; }
.t-mini { grid-column: span 3; }
.t-mini h3 { font-size: 1.5rem; }
.tile dl { margin: .4rem 0; display: grid; grid-template-columns: auto 1fr; gap: .15rem 1rem; font-family: var(--fx-font-mono); font-size: 1rem; line-height: 1.5; }
.tile dt { color: var(--fx-color-texte-secondaire); }
.tile dd { margin: 0; }
.sites { display: grid; gap: 0; margin: .6rem 0 .4rem; border-top: 1px solid var(--fx-color-bordure); }
.sites li { padding: .9rem 0; border-bottom: 1px solid var(--fx-color-bordure); }
.sites b { font: 600 1.15rem var(--fx-font-display); display: block; letter-spacing: -.01em; }
.sites .data { color: var(--fx-color-texte-secondaire); }
.steps { counter-reset: s; display: grid; gap: .9rem; margin: .8rem 0 .4rem; position: relative; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.2rem 1fr; gap: .8rem; align-items: start; position: relative; font-size: 1rem; line-height: 1.45; }
.steps li::before { content: counter(s); width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border: 1.5px solid var(--fx-color-texte-secondaire); border-radius: 50%; font: 500 1rem var(--fx-font-mono); background: var(--fx-color-fond); position: relative; z-index: 1; }
.steps li:last-child::before { border-color: var(--fx-color-accent-2); color: var(--fx-color-accent-2); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.1rem; top: 2.2rem; bottom: -.9rem; border-left: 1.5px dashed var(--fx-color-bordure); }
.steps li span { padding-top: .35rem; }

/* Agenda + documents */
.two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3rem clamp(2rem, 5vw, 5rem); align-items: start; }
.docs { position: sticky; top: 6.5rem; }
.agenda li { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 1.25rem; padding: 1.3rem 0; border-top: 1px solid var(--fx-color-bordure); }
.agenda li:last-child { border-bottom: 1px solid var(--fx-color-bordure); }
.agenda .d { font: 700 1.9rem/1 var(--fx-font-display); letter-spacing: -.04em; white-space: nowrap; }
.agenda .d small { display: block; font: 400 1rem/1.4 var(--fx-font-mono); letter-spacing: 0; color: var(--fx-color-texte-secondaire); margin-top: .35rem; }
.agenda h3 { font-size: 1.35rem; letter-spacing: -.015em; line-height: 1.2; margin-bottom: .3rem; }
.agenda .data { color: var(--fx-color-texte-secondaire); margin: 0; }
.agenda .tag { display: inline-block; font: 500 1rem var(--fx-font-mono); color: var(--fx-color-accent-2); margin-bottom: .3rem; }
.docs { background: var(--fx-color-surface); border: 1px solid var(--fx-color-bordure); padding: 1.6rem; }
.docs h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.docs ul { margin-top: 1rem; }
.docs li { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--fx-color-bordure); }
.docs b { font-weight: 600; }
.docs .data { color: var(--fx-color-texte-secondaire); }

/* Professionnels : trois colonnes inégales */
.pro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); border: 1px solid var(--fx-color-bordure); }
.pro > article { padding: clamp(1.4rem, 3vw, 2.25rem); border-right: 1px solid var(--fx-color-bordure); display: flex; flex-direction: column; gap: .8rem; }
.pro > article:last-child { border-right: 0; }
.pro h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.pro p { margin: 0; }
.pro .list { display: grid; gap: 0; }
.pro .list li { padding: .55rem 0; border-top: 1px solid var(--fx-color-bordure); font-size: 1rem; line-height: 1.4; }
.pro .badge { display: flex; align-items: center; gap: 1rem; margin-top: auto; padding-top: 1rem; }
.pro .badge img { width: 6.5rem; background: #fff; padding: .35rem; }
.pro .badge span { font-size: 1rem; line-height: 1.4; color: var(--fx-color-texte-secondaire); }
.pro .more { margin-top: auto; padding-top: 1rem; }

/* Frise */
.timeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin-top: 1rem; }
.timeline li { position: relative; padding: 2rem 1.25rem 0 0; border-top: 2px solid var(--fx-color-bordure); }
.timeline li::before { content: ""; position: absolute; top: -.6rem; left: 0; width: 1rem; height: 1rem; border-radius: 50%; background: var(--fx-color-fond); border: 2px solid var(--fx-color-texte); }
.timeline li:last-child { border-top-color: var(--fx-color-accent); }
.timeline li:last-child::before { background: var(--fx-color-accent); border-color: var(--fx-color-accent); box-shadow: -.28rem .12rem 0 var(--fx-color-contraste); }
.timeline .y { font: 700 clamp(2rem, 3.3vw, 3rem)/1 var(--fx-font-display); letter-spacing: -.04em; display: block; margin-bottom: .6rem; }
.timeline p { font-size: 1rem; line-height: 1.5; margin: 0; color: var(--fx-color-texte-secondaire); }
.timeline p b { color: var(--fx-color-texte); font-weight: 600; }
.origins { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3rem clamp(2rem, 5vw, 5rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.origins figure { margin: 0; }
.origins img { width: 100%; filter: grayscale(1) contrast(1.15); border: 1px solid var(--fx-color-bordure); }
.origins figcaption { font: 400 1rem/1.4 var(--fx-font-mono); color: var(--fx-color-texte-secondaire); margin-top: .6rem; }

/* Mosaïque éditoriale : FAQ, actus, recrutement */
.edit { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.25rem; }
.card { border: 1px solid var(--fx-color-bordure); padding: clamp(1.4rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: .8rem; min-width: 0; background: var(--fx-color-surface); }
.c-faq { grid-column: span 7; background: var(--fx-color-fond); border-color: var(--fx-color-texte); }
.c-news { grid-column: span 5; }
.c-job { grid-column: span 12; background: var(--fx-color-contraste); border-color: var(--fx-color-contraste); color: #fff; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; }
.c-job .kicker { color: #f4c9ca; }
.c-job h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.c-job ul { display: flex; flex-wrap: wrap; gap: .5rem 2rem; font: 500 1.15rem var(--fx-font-mono); }
.c-job ul li::before { content: "● "; color: #fff; }
.c-job .btn { background: #fff; color: #1c1d1f; border-color: #fff; margin-left: auto; }
.c-job .btn:hover { background: transparent; color: #fff; }
.card h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.pull { font: 600 clamp(1.5rem, 2.8vw, 2.4rem)/1.15 var(--fx-font-display); letter-spacing: -.03em; margin: 0; }
.pull::before { content: "« "; color: var(--fx-color-accent-2); }
.pull::after { content: " »"; color: var(--fx-color-accent-2); }
.news li { border-top: 1px solid var(--fx-color-bordure); padding: .95rem 0; }
.news a { display: block; text-decoration: none; padding: .95rem 0; }
.news a:hover b { text-decoration: underline; }
.news .data { color: var(--fx-color-texte-secondaire); display: block; }
.news b { font: 600 1.2rem/1.25 var(--fx-font-display); letter-spacing: -.01em; }

/* Lettre + contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(2rem, 5vw, 5rem); align-items: start; }
.letter { border: 1px solid var(--fx-color-texte); padding: clamp(1.4rem, 3vw, 2.25rem); background: var(--fx-color-surface); }
.letter h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: .7rem 0 .8rem; }
.field { display: grid; gap: .4rem; margin: 1.2rem 0; }
.field label { font-weight: 600; }
.field input[type="email"] { min-height: 3.2rem; padding: .6rem .9rem; font: 400 1.05rem var(--fx-font-mono); color: var(--fx-color-texte); background: var(--fx-color-fond); border: 1.5px solid var(--fx-color-texte-secondaire); border-radius: 0; width: 100%; }
.check { display: grid; grid-template-columns: 1.6rem 1fr; gap: .8rem; align-items: start; font-size: 1rem; line-height: 1.45; margin: 0 0 1.2rem; }
.check input { width: 1.4rem; height: 1.4rem; margin: .1rem 0 0; accent-color: var(--fx-color-accent); }
.confirm { border: 1.5px solid var(--fx-color-accent-2); padding: 1rem 1.2rem; margin-bottom: 1.2rem; font-weight: 600; }
.confirm[hidden] { display: none; }
.coords { display: grid; gap: 1px; background: var(--fx-color-bordure); border: 1px solid var(--fx-color-bordure); }
.coord { background: var(--fx-color-fond); padding: 1.3rem 1.5rem; display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .3rem 1.5rem; }
.coord h3 { font-size: 1.3rem; letter-spacing: -.01em; }
.coord .data { margin: 0; overflow-wrap: anywhere; }
.coord .data + .data { margin-top: .2rem; }
.copy { margin-left: .6rem; min-height: 2.25rem; padding: .1rem .6rem; background: none; color: var(--fx-color-accent-2); border: 1px solid var(--fx-color-bordure); font: 500 1rem var(--fx-font-mono); cursor: pointer; }
.copy:hover { border-color: var(--fx-color-accent-2); }
.urgent { margin-top: 1.25rem; font-family: var(--fx-font-mono); font-size: 1rem; line-height: 1.5; color: var(--fx-color-texte-secondaire); }
.urgent b { color: var(--fx-color-texte); font-weight: 500; }
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); background: var(--fx-color-texte); color: var(--fx-color-fond); padding: .7rem 1.2rem; font: 500 1rem var(--fx-font-mono); z-index: 90; max-width: calc(100% - 2rem); }
.toast[hidden] { display: none; }

/* Pied de page */
.site-footer { background: var(--fx-color-surface); border-top: 6px solid var(--fx-color-accent); padding-block: 3.5rem 2rem; }
.foot { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr)); gap: 2.5rem 2rem; }
.foot h2 { font: 500 1rem var(--fx-font-mono); letter-spacing: 0; color: var(--fx-color-texte-secondaire); margin-bottom: .8rem; }
.foot li a { display: inline-block; padding: .3rem 0; text-decoration: none; }
.foot li a:hover { text-decoration: underline; }
.foot .about b { font: 700 1.6rem var(--fx-font-display); letter-spacing: -.03em; display: block; margin-bottom: .6rem; }
.foot .about p { color: var(--fx-color-texte-secondaire); font-size: 1rem; max-width: 24rem; }
.legal { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--fx-color-bordure); font-size: 1rem; color: var(--fx-color-texte-secondaire); }
.legal a { padding: .3rem 0; display: inline-block; }

/* Adaptation */
@media (max-width: 1100px) {
  .hero-main { grid-column: 1 / -1; }
  .une { grid-column: 1 / -1; max-width: 40rem; }
  .logo-tile { display: none; }
  .t-amb, .t-res { grid-column: span 6; }
  .t-test { grid-column: span 6; }
  .t-pro { grid-column: span 6; }
  .t-mini { grid-column: span 6; }
  .t-res { grid-row: auto; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; }
  .pro { grid-template-columns: 1fr 1fr; }
  .pro > article:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--fx-color-bordure); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot .about { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--fx-color-fond); border-bottom: 1px solid var(--fx-color-bordure); padding: .5rem var(--pad) 1.2rem; }
  .js .nav.open { display: block; }
  .js .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--fx-color-bordure); font-size: 1.15rem; }
  .no-js .site-header .wrap { flex-wrap: wrap; padding-block: .8rem; }
  .no-js .nav { order: 5; width: 100%; }
  .no-js .nav ul { flex-wrap: wrap; }
  .header-cta { display: none; }
  .two, .origins, .contact-grid { grid-template-columns: 1fr; }
  .orient summary { grid-template-columns: 3rem 1fr 2.4rem; }
  .orient .ans { grid-template-columns: 1fr; padding-left: 0; }
  .orient .ans > div:first-child, .orient .ans > div:last-child { grid-column: 1; }
}
@media (max-width: 720px) {
  body { font-size: 1.0625rem; }
  .t-amb, .t-res, .t-test, .t-pro, .t-mini { grid-column: 1 / -1; }
  .c-faq, .c-news { grid-column: 1 / -1; }
  .pro { grid-template-columns: 1fr; }
  .pro > article { border-right: 0; border-bottom: 1px solid var(--fx-color-bordure); }
  .pro > article:last-child { border-bottom: 0; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { border-top: 0; border-left: 2px solid var(--fx-color-bordure); padding: 0 0 2rem 1.5rem; }
  .timeline li::before { top: .2rem; left: -.6rem; }
  .timeline li:last-child { border-left-color: var(--fx-color-accent); padding-bottom: 0; }
  .agenda li { grid-template-columns: 1fr; gap: .5rem; }
  .coord { grid-template-columns: 1fr; }
  .perm table, .perm tbody, .perm tr, .perm th, .perm td { display: block; }
  .perm thead { position: absolute; left: -9999px; }
  .perm tr { border-top: 1px solid var(--fx-color-bordure); padding: .9rem 0; }
  .perm th, .perm td { border: 0; padding: .1rem 0; }
  .perm td::before { content: attr(data-label) " : "; color: var(--fx-color-texte-secondaire); }
  .brand small { display: none; }
  .theme-btn span { display: none; }
  .foot { grid-template-columns: 1fr; }
  .c-job .btn { margin-left: 0; }
  .statusbar a { white-space: normal; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 2.45rem; }
  .brand b { font-size: 1.1rem; }
  .site-header .wrap { gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
