/* =====================================================
   POLICES (hébergées sur le site, plus de Google Fonts)
   Polices variables, jeu de caractères « latin » (français compris). Licences : fonts/LICENCES.txt
===================================================== */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* =====================================================
   VARIABLES
===================================================== */
:root {
  --bg: #060C14;
  --card: #0C1826;
  --line: rgba(255,255,255,.08);
  --text: #E8EDF2;
  --muted: #8FA1B3;
  --y: #F5C518;
  --red: #FF4D2E;
  --cy: #3DD6F5;
  --gr: #7BE495;
  --ease: cubic-bezier(.2,.8,.2,1);
  --f-title: "Outfit", "Segoe UI Variable Display", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI Variable Text", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--f-body); background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
.container { width: min(1140px, 100% - 48px); margin-inline: auto; }

.prog { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 90; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--y), var(--red)); }

/* =====================================================
   TYPO & COMPOSANTS
===================================================== */
h1, h2, h3 { font-family: var(--f-title); }
h2 { font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.06; letter-spacing: -.03em; }
h2 em, h3 em { font-style: normal; color: var(--y); }
.chip {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: #B8C6D4; padding: 6px 14px 6px 6px; border-radius: 980px; border: 1px solid var(--line); background: rgba(255,255,255,.03);
}
.chip i { font-style: normal; color: var(--ac, var(--y)); background: color-mix(in srgb, var(--ac, var(--y)) 14%, transparent); border-radius: 980px; padding: 3px 9px; }
.chip .pulse { width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--gr); box-shadow: 0 0 10px var(--gr); }
.chip .pulse + * { margin-left: -2px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #B8C6D4; }
.eyebrow svg { width: 18px; height: 18px; flex: none; stroke: var(--y); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 10px; font-weight: 600; font-size: .98rem; letter-spacing: -.01em;
  transition: transform .12s ease-out, box-shadow .35s, background .3s;
}
.btn:active { transform: scale(.96); }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-y { background: var(--y); color: #14100A; }
.btn-y:hover { background: #FFD43B; box-shadow: 0 0 44px rgba(245,197,24,.4); }
.btn-r { background: #D93616; color: #fff; } /* rouge un peu plus profond que --red : texte blanc lisible (contraste ≥ 4,5, contrôlé par un test) */
.btn-r:hover { background: #C52D10; box-shadow: 0 0 44px rgba(255,77,46,.45); }
.btn-g { background: rgba(255,255,255,.05); border: 1px solid var(--line); color: #fff; }
.btn-g:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: 9px 18px; font-size: .86rem; }
.mag { display: inline-block; will-change: transform; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-family: var(--f-mono); font-size: .7rem; padding: 5px 11px; border-radius: 8px;
  color: var(--ac, var(--y)); border: 1px solid color-mix(in srgb, var(--ac, var(--y)) 38%, transparent); background: color-mix(in srgb, var(--ac, var(--y)) 8%, transparent);
}
.dl { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #6F8296; }
section { position: relative; padding: 120px 0; }
.sh { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 56px; }
.sh .chip { margin-bottom: 22px; }
.sh p { color: var(--muted); font-size: 1.05rem; max-width: 620px; }
.sh h2 { text-wrap: balance; }

/* Apparition au scroll */
.js .rv { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease) calc(var(--d, 0) * 90ms), transform .9s var(--ease) calc(var(--d, 0) * 90ms); }
.js .rv.in { opacity: 1; transform: none; }

/* =====================================================
   LOGO EN TEXTE
===================================================== */
.logo-t { display: inline-flex; align-items: baseline; font-family: var(--f-title); font-weight: 700; letter-spacing: .02em; line-height: 1; text-transform: uppercase; color: #fff; white-space: nowrap; }
.logo-t b { font-weight: 700; color: var(--y); }
.logo-t i { font-style: normal; font-weight: 700; color: var(--red); }

/* lien d'évitement : invisible, visible au premier appui sur Tab */
.skip { position: fixed; top: 10px; left: 10px; z-index: 200; padding: 12px 18px; border-radius: 10px; background: var(--y); color: #14100A; font-weight: 600; font-size: .92rem; transform: translateY(-200%); transition: transform .2s; }
.skip:focus { transform: none; outline: 2px solid #fff; outline-offset: 2px; }

/* =====================================================
   NAVIGATION
===================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80; height: 68px; padding: 0 max(24px, calc((100vw - 1140px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: rgba(6,12,20,.6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(6,12,20,.9); box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.nav .logo { font-size: 1.45rem; }
.nav ul { position: relative; display: flex; gap: 6px; }
/* barre jaune qui suit la souris d'un lien à l'autre (js/menu.js) : fixée sous le texte, invisible tant qu'on ne survole pas un lien */
.nav-barre { position: absolute; left: 0; bottom: 2px; width: 0; height: 2px; border-radius: 2px; background: var(--y); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), width .3s var(--ease), opacity .2s; }
.nav-barre.ouverte { opacity: 1; }
.nav ul a { --pad: 14px; position: relative; display: block; padding: 8px var(--pad); font-size: .9rem; color: #B8C6D4; transition: color .25s; }
.nav ul a:hover { color: #fff; }
.nav ul a.on { color: var(--y); }
/* lien de la page courante : ligne rouge (couleur du point rouge des titres) sous le texte, fixe (pas d'animation) */
.nav ul a.on::after { content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: 2px; height: 2px; border-radius: 2px; background: var(--red); }
.burger { display: none; position: relative; flex: none; width: 44px; height: 44px; margin-right: -10px; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 26px; }
.nav.open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.nav ul .menu-cta { display: none; }
.nav-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.nav .btn-y, .nav .btn-r { border: 1px solid transparent; } /* bordure transparente : même hauteur pour tous les boutons du menu */
/* icône placée avant le texte des boutons du menu : elle ne glisse pas au survol (la flèche des autres boutons, si) */
.nav .btn .ico { width: 17px; height: 17px; flex: none; }
.nav .btn:hover .ico { transform: none; }
.nav .btn-sm { gap: 8px; }
/* boutons du menu : aucune animation au survol (ni déplacement magnétique, ni lueur, ni fondu, ni effet au clic) ; seule la couleur change, instantanément */
.nav .btn { transition: none; }
.nav .btn:hover, .nav .btn-y:hover, .nav .btn-r:hover { box-shadow: none; }
.nav .btn:active { transform: none; }
/* bouton de la page courante (ex. « Formation » sur la page Formation) */
.nav .btn-r[aria-current] { border-color: #FF4D2E; background: rgba(255,77,46,.12); color: #FF7F63; box-shadow: none; }
/* entre 1001 et 1140 px : liens plus serrés pour que le menu et les deux boutons tiennent sur une ligne */
@media (min-width: 1001px) and (max-width: 1140px) {
  .nav { gap: 14px; }
  .nav ul { gap: 0; }
  .nav ul a { --pad: 9px; font-size: .86rem; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-sm { padding: 9px 14px; font-size: .82rem; }
}

/* =====================================================
   HERO
===================================================== */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 130px 0 90px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: -1; }
.orb.o1 { width: 520px; height: 520px; left: -140px; top: 60px; background: rgba(245,197,24,.13); }
.orb.o2 { width: 480px; height: 480px; right: -120px; bottom: -80px; background: rgba(61,214,245,.10); }
.orb.o3 { width: 520px; height: 520px; left: -160px; bottom: -100px; background: rgba(245,197,24,.11); }
#services, #associations, #projets, #faq, #contact { overflow: clip; }
h1 { font-weight: 700; font-size: clamp(2.7rem, 6vw, 5.2rem); line-height: 1.03; letter-spacing: -.035em; margin: 26px 0 26px; }
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; }
h1 .neon { font-style: normal; color: var(--y); text-shadow: 0 0 30px rgba(245,197,24,.5); }
h1 .dot, h2 .dot { color: var(--red); text-shadow: 0 0 24px rgba(255,77,46,.6); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #A9B8C6; max-width: 540px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.assure { margin-top: 28px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; color: #6F8296; display: flex; gap: 22px; flex-wrap: wrap; }
.assure span::before { content: "✓"; color: var(--gr); margin-right: 8px; }

/* Cascade d'entrée (déclenchée par la classe .ld) */
.js .w > span { transform: translateY(108%); }
.js.ld .w > span { transform: none; transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 70ms + 150ms); }
.js .hf { opacity: 0; transform: translateY(18px); }
.js.ld .hf { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i) * 90ms + 400ms); }
/* Titre du hero : les mots apparaissent l'un après l'autre (plus de squelette derrière) */
.js .ht { opacity: 0; transform: translateY(.35em); }
.js.ld .ht { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i) * 70ms + 150ms); }

/* ---- Styles partagés conservés de la v2 (utilisés par la section Services) ---- */
.vbar { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.vbar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.16); }
.vbar span { margin-left: 8px; }
.live { margin-left: auto; font-style: normal; font-size: .6rem; padding: 3px 8px; border-radius: 980px; color: var(--gr); background: rgba(123,228,149,.12); border: 1px solid rgba(123,228,149,.3); }
.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gr); margin-right: 6px; }

/* ---- Hero A : le site passe du squelette à la réalité ---- */
.hero { overflow: clip; }
/* Fond de page : grain fin (remplace l'ancien quadrillage) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .13;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero h1 { font-size: clamp(2.2rem, 3.8vw, 3.5rem); line-height: 1.06; letter-spacing: -.03em; display: flex; flex-wrap: wrap; gap: .1em .27em; }
.hero-pts { display: flex; flex-wrap: wrap; gap: 10px 26px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #B8C6D4; }
.hero-pts span { display: inline-flex; align-items: center; gap: 9px; }
.hero-pts svg { width: 18px; height: 18px; flex: none; stroke: var(--ac); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ht { position: relative; display: inline-block; }
.ht.neon { color: var(--y); text-shadow: 0 0 30px rgba(245,197,24,.5); }
.ht.neon b { color: var(--red); font-weight: 700; text-shadow: 0 0 24px rgba(255,77,46,.6); }
.sk { position: relative; }
.sk::after {
  content: ""; position: absolute; inset: 0; border-radius: .22em; pointer-events: none;
  background: linear-gradient(100deg, #15263a 30%, #243a54 50%, #15263a 70%); background-size: 220% 100%;
  animation: hsh 1.5s linear infinite;
  opacity: 1; transition: opacity .55s var(--ease) calc(var(--i, 0) * 85ms + var(--b, 0s));
}
.hwin .sk::after { background: linear-gradient(100deg, #ddd6c9 30%, #ece6da 50%, #ddd6c9 70%); background-size: 220% 100%; }
.hon .sk::after { opacity: 0; }
@keyframes hsh { to { background-position: -220% 0; } }
.hnt *, .hnt *::after { transition: none !important; }

.hstage { position: relative; perspective: 1300px; padding: 36px 30px; user-select: none; -webkit-user-select: none; }
.js .hstage { opacity: 0; transform: translateY(24px); }
.js.ld .hstage { opacity: 1; transform: none; transition: opacity .9s var(--ease) .3s, transform .9s var(--ease) .3s; }
.htilt { transform-style: preserve-3d; will-change: transform; }
.hwin { position: relative; background: #F8F4EC; border-radius: 10px; overflow: hidden; color: #1d1a16; box-shadow: 0 50px 90px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.08), 0 0 80px -10px rgba(245,197,24,.12); }
.hwbar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #EAE4D8; border-bottom: 1px solid #d9d1c1; }
.hwbar > i { width: 10px; height: 10px; border-radius: 50%; background: #cbbfa8; }
.hwbar > i:nth-child(1) { background: #ee7b6c; } .hwbar > i:nth-child(2) { background: #f1c35c; } .hwbar > i:nth-child(3) { background: #79c98a; }
.hurl { margin-left: 10px; flex: 1; max-width: 230px; font-family: var(--f-mono); font-size: .64rem; color: #6b6252; background: #F8F4EC; border-radius: 980px; padding: 4px 12px; }
.hwn { display: flex; align-items: center; gap: 14px; padding: 14px 20px; }
.hwn .hlg { font-family: var(--f-title); font-weight: 700; font-size: .95rem; letter-spacing: -.01em; margin-right: auto; display: flex; align-items: center; gap: 8px; }
.hwn .hlg u { width: 18px; height: 18px; border-radius: 50%; background: #C8642B; display: block; }
.hwn span { font-size: .7rem; color: #6b6252; }
.hwn .hpill { background: #1d1a16; color: #fff; border-radius: 980px; padding: 5px 12px; font-size: .68rem; }
.hwh { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; padding: 10px 20px 20px; align-items: center; }
.hwh small { display: inline-block; font-family: var(--f-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: #C8642B; }
.hwh .hwt { font-family: var(--f-title); font-weight: 700; font-size: 1.7rem; line-height: 1.05; letter-spacing: -.025em; margin: 8px 0 10px; color: #1d1a16; max-width: none; } /* titre de la maquette (décoratif) : un <p>, pas un titre */
.hwh p { font-size: .72rem; color: #6b6252; max-width: 200px; }
.hwh .hgo { display: inline-block; margin-top: 14px; background: #C8642B; color: #fff; border-radius: 980px; padding: 7px 15px; font-size: .7rem; font-weight: 600; }
.hpic { height: 150px; border-radius: 10px; background: radial-gradient(circle at 70% 30%, #FFD27A 0 14%, transparent 15%), linear-gradient(160deg, #E7A25C, #C8642B 60%, #8E3E1C); }
.hcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 20px 20px; }
.hcards div { border-radius: 10px; height: 54px; padding: 9px 11px; font-size: .62rem; font-weight: 600; color: #1d1a16; display: flex; flex-direction: column; justify-content: flex-end; line-height: 1.2; }
.hcards div:nth-child(1) { background: #F0DDB8; } .hcards div:nth-child(2) { background: #E3E8D2; } .hcards div:nth-child(3) { background: #F2D3C4; }

.hbd { position: absolute; z-index: 3; will-change: transform; }
.hbi { display: flex; align-items: center; gap: 10px; padding: 10px 15px 10px 11px; border-radius: 10px; background: #0E1B2B; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 18px 40px -14px rgba(0,0,0,.8); font-family: var(--f-title); font-weight: 600; font-size: .86rem; white-space: nowrap; opacity: 0; transform: translateY(14px) scale(.9); transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(1.7s + var(--k) * .3s); }
.hon .hbi { opacity: 1; transform: none; animation: hfl 6s ease-in-out calc(2.4s + var(--k) * .3s) infinite; }
@keyframes hfl { 50% { transform: translateY(-8px); } }
.hbi small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: .58rem; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.hico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.hico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hbd1 { left: -4px; top: 2px; } .hbd1 .hico { background: rgba(123,228,149,.14); color: var(--gr); }
.hbd2 { right: -2px; top: 34%; } .hbd2 .hico { background: rgba(245,197,24,.14); color: var(--y); }
.hbd3 { left: 6px; bottom: 6px; } .hbd3 .hico { background: rgba(61,214,245,.14); color: var(--cy); }
.hreplay { position: absolute; right: 30px; bottom: -6px; z-index: 4; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #6F8296; display: flex; align-items: center; gap: 8px; padding: 6px 4px; transition: color .2s; }
.hreplay:hover { color: #fff; }
.hreplay svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1000px) { .hstage { max-width: 540px; margin-inline: auto; padding: 30px 6px; } }
@media (prefers-reduced-motion: reduce) {
  .sk::after { animation: none; }
  .hon .hbi { animation: none; }
  .js .hstage { opacity: 1 !important; transform: none !important; transition: none !important; }
}


/* =====================================================
   SERVICES : onglets (une seule carte affichée à la fois)
===================================================== */
.stack { padding-bottom: 10px; transition: height .5s var(--ease); }
.sv-more { margin-top: 36px; }
.tabs { position: relative; display: flex; gap: 4px; margin-bottom: 28px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab-ind { position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--ac, var(--y)); transition: transform .45s var(--ease), width .45s var(--ease), background .45s; pointer-events: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 10px; flex: none; padding: 16px 22px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-family: var(--f-title); font-weight: 600; font-size: 1.02rem; color: var(--muted); transition: color .25s, border-color .25s; }
.tab svg { width: 20px; height: 20px; flex: none; stroke: var(--ac); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; opacity: .7; transition: opacity .25s; }
.tab:hover { color: #fff; }
.tab:hover svg, .tab[aria-selected="true"] svg { opacity: 1; }
.tab[aria-selected="true"] { color: #fff; }
.tab:focus-visible { outline: 2px solid var(--ac); outline-offset: -2px; }
.sc[hidden] { display: none; }
/* Transition entre onglets : la carte sort vers le côté, la suivante arrive avec ses éléments en cascade */
.sc.is-out { animation: tabSlideOut .2s ease-in forwards; }
.sc.is-in { animation: tabSlideIn .5s var(--ease) both; }
.sc.is-in > div:first-child > * { animation: tabRise .6s var(--ease) both; }
.sc.is-in > div:first-child > :nth-child(1) { animation-delay: .08s; }
.sc.is-in > div:first-child > :nth-child(2) { animation-delay: .15s; }
.sc.is-in > div:first-child > :nth-child(3) { animation-delay: .22s; }
.sc.is-in > div:first-child > :nth-child(4) { animation-delay: .29s; }
.sc.is-in > div:first-child > :nth-child(5) { animation-delay: .36s; }
.sc.is-in > .vis { animation: tabVis .65s var(--ease) .18s both; }
@keyframes tabSlideIn { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 36px)); } }
@keyframes tabSlideOut { to { opacity: 0; transform: translateX(calc(var(--dir, 1) * -36px)); } }
@keyframes tabRise { from { opacity: 0; transform: translateY(14px); } }
@keyframes tabVis { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 48px)) scale(.97); } }
/* inclinaison 3D du panneau crème sous la souris (classe .tilt-vis posée par js/site.js ; --rx / --ry viennent du mouvement de la souris, comme les cartes de Projets) :
   les deux règles complètent l'apparition du panneau (accueil : animation tabVis, qui ne dure que le temps du changement d'onglet ; Services : .rv une fois révélé) */
.sc > .vis.tilt-vis { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.js .vis.tilt-vis.rv.in { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity .9s var(--ease) calc(var(--d, 0) * 90ms), transform .5s var(--ease); }
@media (prefers-reduced-motion: reduce) { .sc.is-in, .sc.is-out, .sc.is-in > *, .sc.is-in > div:first-child > * { animation: none; } .stack, .tab-ind { transition: none; } }
.sc, .pj, .cp { --mx: 50%; --my: 0%; }
.sc {
  position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: center; min-height: 440px; padding: 46px;
  border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.45);
  background: radial-gradient(700px 320px at 100% 0%, color-mix(in srgb, var(--ac) 17%, transparent), transparent 70%), linear-gradient(180deg, #0E1B2A, #0A1420);
}
.sc::before, .pj::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255,.07), transparent 60%);
}
.sc:hover::before, .pj:hover::after { opacity: 1; }
.sc > * { position: relative; }
.sc h3 { font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.025em; line-height: 1.1; margin: 0 0 14px; }
.sc .lead { font-size: 1rem; color: var(--muted); }
.sc .dl { margin: 24px 0 12px; }
.sc li { display: flex; gap: 12px; align-items: center; font-size: .95rem; padding: 3px 0; }
.sc li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 10px var(--ac); }
.sc .tags { margin-top: 24px; }

/* Panneaux visuels animés */
.vis { border-radius: 10px; background: #08111B; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.45); overflow: hidden; min-height: 310px; }
.vbar { padding: 12px 14px; background: rgba(255,255,255,.035); border-bottom: 1px solid var(--line); }
.vbar .live { margin-left: auto; }
/* V2 */
.v2 { padding: 8px 18px 18px; }
.rw { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: .86rem; }
.rw svg { width: 18px; height: 18px; stroke: var(--ac); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rw .st { position: relative; width: 84px; height: 20px; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.rw .st s, .rw .st u { position: absolute; right: 0; top: 0; text-decoration: none; padding: 3px 9px; border-radius: 980px; white-space: nowrap; }
.rw .st s { color: #F5C518; background: rgba(245,197,24,.12); }
.rw .st u { color: var(--gr); background: rgba(123,228,149,.12); opacity: 0; }
.up { margin-top: 18px; }
.up .bars { display: flex; gap: 4px; align-items: flex-end; height: 38px; margin-top: 10px; }
.up .bars b { flex: 1; border-radius: 3px; background: var(--gr); height: 100%; opacity: .75; }
/* V4 : un formulaire que l'on remplit, puis l'e-mail HTML reçu en retour */
.v4 { padding: 14px 18px 18px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; align-items: start; }
.fm { display: grid; gap: 10px; padding: 14px; border-radius: 10px; background: var(--paper2); box-shadow: inset 0 0 0 1px var(--soft); }
.fl { display: grid; gap: 4px; }
.fl small { font-family: var(--f-mono); font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.fl > div { display: flex; flex-direction: column; justify-content: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--edge); font-size: .76rem; font-weight: 500; color: var(--ink); }
.fl > div.ta { height: 50px; }
.tp { display: block; width: var(--w); overflow: hidden; white-space: nowrap; }
.mg { display: block; height: 6px; border-radius: 3px; background: #D9CFB9; transform-origin: 0 50%; }
.mg + .mg { width: 62%; }
.fb { position: relative; height: 34px; border-radius: 8px; background: var(--terra); color: #fff; font-size: .78rem; font-weight: 600; }
.fb span { position: absolute; inset: 0; display: grid; place-items: center; }
.fo { opacity: 0; }
.ml { border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--soft), 0 12px 28px rgba(60,40,10,.14); overflow: hidden; }
.mh { padding: 10px 12px; background: var(--bar); border-bottom: 1px solid var(--edge); display: grid; gap: 3px; }
.mh small { font-family: var(--f-mono); font-size: .56rem; letter-spacing: .08em; color: var(--mute); }
.mh b { font-size: .74rem; font-weight: 600; color: var(--ink); }
.mbd { padding: 12px; display: grid; gap: 8px; }
.mt { font-family: var(--f-title); font-weight: 700; font-size: .92rem; color: var(--ink); }
.tl { display: block; height: 6px; border-radius: 3px; background: #E3D9C6; text-decoration: none; }
.tl.s { width: 66%; }
.mc { justify-self: start; margin-top: 4px; padding: 7px 13px; border-radius: 8px; background: var(--terra); color: #fff; font-size: .68rem; font-weight: 600; }
@keyframes fType1 { 0%, 6% { width: 0; } 20%, 92% { width: var(--w); } 97%, 100% { width: 0; } }
@keyframes fType2 { 0%, 22% { width: 0; } 38%, 92% { width: var(--w); } 97%, 100% { width: 0; } }
@keyframes fMsg { 0%, 42% { transform: scaleX(0); } 54%, 92% { transform: scaleX(1); } 97%, 100% { transform: scaleX(0); } }
@keyframes fPress { 0%, 56% { transform: scale(1); } 59% { transform: scale(.94); } 63%, 100% { transform: scale(1); } }
@keyframes fLabA { 0%, 60% { opacity: 1; } 62%, 95% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes fLabB { 0%, 60% { opacity: 0; } 62%, 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes fBtnBg { 0%, 60% { background: var(--terra); } 62%, 95% { background: var(--ok); } 98%, 100% { background: var(--terra); } }
@keyframes fMail { 0%, 64% { opacity: 0; transform: translateX(22px) scale(.97); } 72%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@media (max-width: 560px) { .v4 { grid-template-columns: 1fr; } }

/* =====================================================
   ASSOCIATIONS : 4 points courts + bouton vers la page dédiée
===================================================== */
#associations .sh { margin-bottom: 40px; }
.as-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.as { padding-top: 24px; border-top: 1px solid var(--line); }
.as-i { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 10px; background: rgba(245,197,24,.1); }
.as-i svg { width: 24px; height: 24px; stroke: var(--y); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.as h3 { font-weight: 600; font-size: 1.1rem; letter-spacing: -.02em; margin-bottom: 8px; }
.as p { color: var(--muted); font-size: .95rem; }
/* accueil, Associations : liste à coches à gauche, maquette de site d'association (panneau crème) à droite */
.ab { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.ab-l { display: grid; gap: 0; margin-bottom: 36px; }
.ab-l li { display: grid; grid-template-columns: 26px 1fr; gap: 16px; align-items: start; padding: 22px 0; border-top: 1px solid var(--line); }
.ab-l li:last-child { border-bottom: 1px solid var(--line); }
.ab-ok { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgba(245,197,24,.12); stroke: var(--y); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ab-l strong { display: block; margin-bottom: 4px; font-weight: 600; font-size: 1.1rem; letter-spacing: -.02em; color: #fff; }
.ab-l span { color: var(--muted); font-size: .95rem; }
.ab-vis { min-height: 0; }
.ab-s { display: grid; gap: 18px; padding: 18px; }
.ab-nav { display: flex; align-items: center; gap: 16px; font-size: .72rem; color: var(--ink2); }
.ab-nav b { display: flex; align-items: center; gap: 8px; margin-right: auto; font-family: var(--f-title); font-size: .95rem; color: var(--ink); }
.ab-nav u { width: 14px; height: 14px; border-radius: 50%; background: var(--ok); }
.ab-nav em { font-style: normal; padding: 5px 12px; border-radius: 980px; background: var(--ink); color: var(--paper); }
.ab-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: stretch; padding: 22px; border-radius: 10px; background: var(--sage); }
.ab-hero small { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.ab-hero p { margin: 8px 0 16px; font-family: var(--f-title); font-weight: 600; font-size: 1.5rem; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.ab-go { position: relative; display: inline-grid; padding: 8px 16px; border-radius: 980px; background: var(--terra); color: #fff; font-size: .72rem; font-weight: 600; }
.ab-go > span { grid-area: 1 / 1; text-align: center; }
.ab-b { opacity: 0; }
.ab-cur { position: absolute; right: -4px; bottom: -14px; width: 20px; height: 20px; fill: var(--ink); stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; opacity: 0; pointer-events: none; }
.ab-pic { min-height: 110px; border-radius: 8px; background: linear-gradient(120deg, var(--sand), var(--rose), var(--sand)); background-size: 200% 100%; }
.ab-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ab-cols .dl { margin-bottom: 10px; }
.ab-it, .ab-ev { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-bottom: 8px; border-radius: 8px; background: var(--paper2); border: 1px solid var(--edge); font-size: .72rem; color: var(--ink2); }
.ab-it i { flex: none; width: 28px; height: 28px; border-radius: 6px; background: var(--sand); }
.ab-ev b { flex: none; display: grid; justify-items: center; min-width: 32px; font-family: var(--f-title); font-size: 1rem; line-height: 1; color: var(--terra); }
.ab-ev small { font-family: var(--f-mono); font-size: .5rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 1000px) { .ab { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { .ab-hero, .ab-cols { grid-template-columns: 1fr; } .ab-pic { min-height: 70px; } .ab-nav span { display: none; } }
.as-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; margin-top: 44px; }
.as-row p { color: #B8C6D4; font-size: 1rem; }
@media (max-width: 1000px) { .as-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
@media (max-width: 560px) { .as-grid { grid-template-columns: 1fr; } }

/* =====================================================
   PROJETS
===================================================== */
.pj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pj { position: relative; display: block; border-radius: 10px; border: 1px solid var(--line); background: linear-gradient(180deg, #0D1927, #0A1420); overflow: hidden; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), border-color .4s, box-shadow .4s; }
.pj:hover { border-color: rgba(245,197,24,.35); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
/* la capture s'affiche EN ENTIER dans sa fenêtre : la hauteur suit les proportions du fichier (1200 × 750), rien n'est rogné */
.shot { padding: 24px; position: relative; overflow: hidden; isolation: isolate; }
/* fond de la carte = la capture du site elle-même, en flou et assombrie (--fond, posée dans la page), qui se fond dans le bas de la carte */
.shot::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: var(--fond) center / cover no-repeat; filter: blur(28px) saturate(1.3) brightness(.62); }
.shot::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,24,38,0) 45%, #0C1826 100%); }
/* cadre crème, comme les fenêtres de Services (.vis : fond #F8F4EC, barre #EAE4D8, bordure #D9D1C1, pastilles rouge / jaune / vert) */
.shot .win { width: 100%; border-radius: 10px; background: #F8F4EC; border: 1px solid #D9D1C1; overflow: hidden; position: relative; box-shadow: 0 14px 44px rgba(0,0,0,.4); transition: transform .6s var(--ease); }
.pj:hover .win { transform: translateY(-8px); }
.shot .win img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 750; object-fit: cover; object-position: top center; }
.shot .win::before { content: ""; display: block; height: 22px; background: #EAE4D8; border-bottom: 1px solid #D9D1C1; background-image: radial-gradient(circle at 12px 11px, #ee7b6c 3.5px, transparent 4.5px), radial-gradient(circle at 26px 11px, #f1c35c 3.5px, transparent 4.5px), radial-gradient(circle at 40px 11px, #79c98a 3.5px, transparent 4.5px); }
.shot .win span { position: absolute; left: 18px; height: 9px; border-radius: 5px; background: rgba(255,255,255,.12); }
.shot .win span:nth-child(1) { top: 44px; width: 52%; height: 17px; background: rgba(255,255,255,.22); }
.shot .win span:nth-child(2) { top: 76px; width: 78%; }
.shot .win span:nth-child(3) { top: 94px; width: 62%; }
.shot .win i { position: absolute; right: 18px; bottom: 16px; width: 92px; height: 26px; border-radius: 14px; background: var(--c); box-shadow: 0 0 24px var(--c); }
.g1 { --c: #8FD07A; background: radial-gradient(520px 260px at 20% 0%, rgba(143,208,122,.35), transparent 70%); }
.g2 { --c: #FFA14A; background: radial-gradient(520px 260px at 80% 0%, rgba(255,161,74,.35), transparent 70%); }
.g3 { --c: #5BE0A0; background: radial-gradient(520px 260px at 20% 0%, rgba(91,224,160,.3), transparent 70%); }
.g4 { --c: #6FA2FF; background: radial-gradient(520px 260px at 80% 0%, rgba(111,162,255,.35), transparent 70%); }
.pm { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 26px 26px; }
.pm h3 { font-weight: 600; font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: 12px; }
.pm .arrow { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, transform .4s var(--ease), border-color .3s; }
.pm .arrow svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pj:hover .arrow { background: var(--y); border-color: var(--y); transform: translate(3px, -3px); }
.pj:hover .arrow svg { stroke: #14100A; }
.note { margin-top: 24px; text-align: center; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; color: #5C6F82; }

/* =====================================================
   FAQ
===================================================== */
.faq-w { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-w .sh { display: block; margin: 0; position: sticky; top: 110px; }
.faq-w .sh p { margin-top: 18px; }
.fq { border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.025); margin-bottom: 12px; transition: border-color .3s, background .3s; }
.fq.open { border-color: rgba(245,197,24,.35); background: rgba(245,197,24,.03); }
.q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left; padding: 22px 26px; font-family: var(--f-title); font-weight: 500; font-size: 1.12rem; letter-spacing: -.01em; }
.q i { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); transition: transform .4s var(--ease), background .3s, border-color .3s; }
.q i::before, .q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px; background: #fff; transform: translate(-50%, -50%); transition: transform .4s var(--ease), background .3s; }
.q i::after { transform: translate(-50%, -50%) rotate(90deg); }
.fq.open .q i { transform: rotate(180deg); background: var(--y); border-color: var(--y); }
.fq.open .q i::before, .fq.open .q i::after { background: #14100A; }
.fq.open .q i::after { transform: translate(-50%, -50%) rotate(0deg); }
.a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.fq.open .a { grid-template-rows: 1fr; }
.a > div { overflow: hidden; }
.a p { padding: 0 26px 24px; color: var(--muted); max-width: 600px; }

/* =====================================================
   CONTACT
===================================================== */
.cp { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.cp > * { position: relative; z-index: 1; }
.cp h2 { margin: 22px 0 18px; }
/* carte crème, comme les panneaux de Services (fond #F8F4EC, bordure #D9D1C1, texte #1D1A16) */
.mailbox { display: grid; gap: 18px; padding: 32px; border-radius: 10px; background: #F8F4EC; border: 1px solid #D9D1C1; color: #1D1A16; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.mb-l { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #6B6252; }
.mb-a { font-family: var(--f-title); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.9rem); letter-spacing: -.02em; color: #1D1A16; overflow-wrap: anywhere; transition: color .25s; }
.mb-a:hover { color: #C8642B; }
.mailbox .btn-g { background: #EAE4D8; border-color: #D9D1C1; color: #1D1A16; }
.mailbox .btn-g:hover { background: #E3DBCB; }
.mb-b { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; padding: 12px 20px; border-radius: 980px; background: #12202F; border: 1px solid rgba(123,228,149,.4); color: var(--gr); font-size: .88rem; transition: opacity .35s, transform .5s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================
   FOOTER
===================================================== */
footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding: 70px 0 30px; }
.ft { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.ft img { height: 34px; width: auto; margin-left: -8px; }
.ft p { color: var(--muted); max-width: 320px; margin: 16px 0; font-size: .95rem; }
.ft .mail { font-family: var(--f-mono); font-size: .82rem; color: var(--y); }
.fcols { display: flex; gap: 70px; flex-wrap: wrap; }
.fcols .ft-t { font-family: var(--f-mono); font-weight: 400; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #6F8296; margin-bottom: 14px; }
.fcols a { display: block; padding: 5px 0; font-size: .92rem; color: #C5D0DB; transition: color .2s; }
.fcols a:hover { color: var(--y); }
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 85; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; background: rgba(14,27,42,.6); border: 1px solid rgba(255,255,255,.14); color: var(--y); box-shadow: 0 12px 30px rgba(0,0,0,.4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, visibility .3s, transform .4s var(--ease), background .25s, color .25s, border-color .25s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--y); border-color: var(--y); color: #14100A; }
.to-top:focus-visible { outline: 2px solid var(--y); outline-offset: 3px; }
.to-top svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.copyr { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; color: #7F93A7; }
.copyr a:hover { color: #fff; }

/* =====================================================
   ANIMATIONS EN BOUCLE (uniquement si le mouvement est permis)
===================================================== */
@keyframes bob { from { transform: translateY(-7px); } to { transform: translateY(9px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes drift { from { transform: translate(0,0); } to { transform: translate(60px, 40px); } }
@keyframes popIn { 0%, 22% { opacity: 0; transform: translateY(10px) scale(.96); } 36%, 86% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes okIn { 0%, 55% { opacity: 0; transform: scale(.8); } 62%, 86% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes depFill { 0% { width: 0; } 70%, 100% { width: 100%; } }
@keyframes rowIn { 0%, 6% { opacity: 0; transform: translateX(-10px); } 16%, 86% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes beat { from { stroke-dashoffset: 100; } to { stroke-dashoffset: -100; } }
@keyframes swapA { 0%, 46% { opacity: 1; } 52%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes swapB { 0%, 46% { opacity: 0; } 52%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes wave { 0%, 100% { opacity: .5; transform: scaleY(.82); } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes typed { 0%, 4% { width: 0; } 28%, 100% { width: 22ch; } }
@keyframes climb { 0%, 32% { transform: translateY(var(--a)); } 52%, 90% { transform: translateY(var(--b)); } 100% { transform: translateY(var(--a)); } }
@keyframes badge { 0%, 50% { opacity: 0; transform: scale(.6); } 58%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* panneau « site d'association » de l'accueil (boucle de 9 s) : actualités et agenda arrivent un à un, le curseur clique sur « Nous rejoindre », qui répond « Merci ! » */
@keyframes abIn { 0%, 4% { opacity: 0; transform: translateX(-14px); } 14%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes abPop { 0%, 10% { opacity: 0; transform: translateY(10px) scale(.97); } 22%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes abPress { 0%, 58% { transform: scale(1); } 61% { transform: scale(.92); } 65%, 100% { transform: scale(1); } }
@keyframes abBtn { 0%, 60% { background: var(--terra); } 62%, 92% { background: var(--ok); } 97%, 100% { background: var(--terra); } }
@keyframes abLabA { 0%, 60% { opacity: 1; } 62%, 92% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes abLabB { 0%, 60% { opacity: 0; } 62%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes abCur { 0%, 36% { opacity: 0; transform: translate(46px, 36px); } 50%, 66% { opacity: 1; transform: translate(0, 0); } 76%, 100% { opacity: 0; transform: translate(10px, 8px); } }
@keyframes abPic { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* accueil, onglet Créer : un site qui se construit (maquette, contenu, en ligne) */
.hc-body { display: grid; gap: 16px; padding: 18px; }
.hc-pg { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--edge); border-radius: 10px; background: var(--paper2); }
.hc-b { display: grid; }
.hc-b > * { grid-area: 1 / 1; }
.hc-sk { opacity: 0; }
.hc-sk span, .hc-skp { display: block; border-radius: 6px; background: #E3D9C6; }
.hc-nav .hc-sk { display: flex; align-items: center; gap: 10px; }
.hc-nav .hc-sk span:nth-child(1) { width: 96px; height: 10px; margin-right: auto; }
.hc-nav .hc-sk span:nth-child(n+2) { width: 40px; height: 8px; }
.hc-hero .hc-sk { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; padding: 16px; border-radius: 8px; background: #EFE8DA; }
.hc-hero .hc-sk > div:first-child { display: grid; gap: 8px; align-content: center; }
.hc-hero .hc-sk span:nth-child(1) { width: 42%; height: 8px; }
.hc-hero .hc-sk span:nth-child(2) { width: 92%; height: 16px; }
.hc-hero .hc-sk span:nth-child(3) { width: 58%; height: 16px; }
.hc-skp { min-height: 84px; }
.hc-cards .hc-sk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hc-cards .hc-sk span { height: 74px; }
.hc-nav .hc-re { display: flex; align-items: center; gap: 14px; font-size: .7rem; color: var(--ink2); }
.hc-nav b { display: flex; align-items: center; gap: 7px; margin-right: auto; font-family: var(--f-title); font-size: .9rem; color: var(--ink); white-space: nowrap; }
.hc-nav u { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); }
.hc-hero .hc-re { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; padding: 16px; border-radius: 8px; background: var(--sage); }
.hc-hero small { font-family: var(--f-mono); font-size: .52rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.hc-hero p { margin: 6px 0 12px; font-family: var(--f-title); font-weight: 600; font-size: 1.2rem; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.hc-go { display: inline-block; padding: 6px 12px; border-radius: 980px; background: var(--terra); color: #fff; font-size: .62rem; font-weight: 600; }
.hc-pic { min-height: 84px; border-radius: 6px; background: linear-gradient(135deg, var(--sand), var(--rose)); }
.hc-cards .hc-re { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hc-cards .hc-re div { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--edge); border-radius: 6px; background: var(--paper); font-size: .62rem; color: var(--ink2); }
.hc-cards i { height: 36px; border-radius: 4px; background: var(--sage); }
.hc-cards .hc-re div:nth-child(2) i { background: var(--sand); }
.hc-cards .hc-re div:nth-child(3) i { background: var(--rose); }
.hc-steps { display: flex; justify-content: center; gap: 8px; }
.hc-steps span { padding: 6px 14px; border-radius: 980px; font-size: .68rem; font-weight: 600; color: var(--mute); }
.hc-s3 { color: var(--terra); background: rgba(200,100,43,.14); }
.vbar .hc-u { display: inline-grid; margin-left: 8px; }
.vbar .hc-u > span { grid-area: 1 / 1; margin-left: 0; }
.hc-u1 { opacity: 0; font-style: italic; }

/* accueil, onglet Optimiser : un vrai résultat de recherche qui monte à la première place */
.ho-b { padding: 18px; }
.ho-sb { display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin-bottom: 18px; border: 1px solid var(--edge); border-radius: 980px; background: var(--paper2); color: var(--ink); font-size: .86rem; }
.ho-sb svg { width: 16px; height: 16px; stroke: var(--mute); fill: none; stroke-width: 2; stroke-linecap: round; }
.ho-tx { overflow: hidden; white-space: nowrap; width: 22ch; }
.ho-caret { width: 2px; height: 16px; margin-left: -6px; background: var(--terra); }
.ho-list { position: relative; height: 264px; }
.ho-r { position: absolute; left: 0; right: 0; top: 0; height: 58px; display: grid; align-content: center; gap: 3px; padding: 8px 14px; border: 1px solid var(--soft); border-radius: 10px; background: var(--paper2); transform: translateY(var(--a)); }
.ho-r b { overflow: hidden; font-size: .76rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; color: #4A5F86; }
.ho-r small { overflow: hidden; font-size: .6rem; text-overflow: ellipsis; white-space: nowrap; color: var(--ok); }
.ho-r span { display: block; width: 72%; height: 6px; border-radius: 4px; background: #E3D9C6; }
.ho-me { z-index: 2; border-color: rgba(200,100,43,.6); background: #FBE9D6; box-shadow: 0 0 30px rgba(200,100,43,.22); }
.ho-me b { padding-right: 46px; color: var(--terra); }
.ho-me span { background: #EBCFB0; }
.ho-me em { position: absolute; right: 12px; top: 50%; margin-top: -11px; padding: 3px 9px; border-radius: 980px; background: var(--terra); color: #fff; font-style: normal; font-family: var(--f-mono); font-size: .68rem; font-weight: 500; }
@media (max-width: 560px) {
  .ho-r b { font-size: .7rem; }
  .hc-body { padding: 14px; }
  .hc-pg { min-width: 0; padding: 12px; }
  .hc-nav .hc-re span, .hc-nav .hc-sk span:nth-child(n+3) { display: none; }
  .hc-hero .hc-re, .hc-hero .hc-sk { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .hc-pic, .hc-skp { order: -1; min-height: 44px; }
  .hc-hero p { font-size: 1.05rem; }
  .hc-cards .hc-re, .hc-cards .hc-sk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-cards .hc-re div:nth-child(3), .hc-cards .hc-sk span:nth-child(3) { display: none; }
  .hc-steps span { padding: 6px 10px; font-size: .64rem; }
  .vbar .hc-u { white-space: nowrap; }
  .hc-live { display: none; }
}
@keyframes hcSk { 0%, 22% { opacity: 1; } 30%, 92% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes hcRe { 0%, 22% { opacity: 0; transform: translateY(8px); } 32%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes hcU1 { 0%, 56% { opacity: 1; } 60%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hcU2 { 0%, 56% { opacity: 0; } 60%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hcLv { 0%, 58% { opacity: 0; transform: scale(.6); } 66%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes hcS1 { 0%, 22% { color: var(--terra); background: rgba(200,100,43,.14); } 28%, 100% { color: var(--mute); background: transparent; } }
@keyframes hcS2 { 0%, 24% { color: var(--mute); background: transparent; } 30%, 54% { color: var(--terra); background: rgba(200,100,43,.14); } 60%, 100% { color: var(--mute); background: transparent; } }
@keyframes hcS3 { 0%, 56% { color: var(--mute); background: transparent; } 62%, 92% { color: var(--terra); background: rgba(200,100,43,.14); } 98%, 100% { color: var(--mute); background: transparent; } }
@media (prefers-reduced-motion: no-preference) {
  .orb.o1 { animation: drift 14s ease-in-out infinite alternate; }
  .orb.o2 { animation: drift 18s ease-in-out infinite alternate-reverse; }
  .orb.o3 { animation: drift 16s ease-in-out infinite alternate; }
  .wd .in { animation: bob var(--t, 7s) ease-in-out infinite alternate; animation-delay: var(--bd, 0s); }
  .js:not(.ld) .wd .in { animation: none; }
  .chip .pulse, .live::before { animation: pulse 1.8s ease-in-out infinite; }
  .dp { animation: depFill 6s var(--ease) infinite; }
  .dep .ok { animation: okIn 6s ease infinite; }
  .mb .pop { animation: popIn 6s var(--ease) infinite; animation-delay: calc(var(--d) * .25s); }
  .lr { animation: rowIn 6s var(--ease) infinite; animation-delay: calc(var(--d) * .3s); }
  .hb path { animation: beat 2.6s linear infinite; }
  .rw .st s { animation: swapA 7s ease infinite; animation-delay: calc(var(--d) * .9s); }
  .rw .st u { animation: swapB 7s ease infinite; animation-delay: calc(var(--d) * .9s); }
  .ab-vis.in .ab-it { animation: abIn 9s var(--ease) infinite backwards; animation-delay: calc(var(--d, 0) * .35s); }
  .ab-vis.in .ab-ev { animation: abPop 9s var(--ease) infinite backwards; animation-delay: calc(var(--d, 0) * .35s + .7s); }
  .ab-vis.in .ab-go { animation: abPress 9s var(--ease) infinite, abBtn 9s ease infinite; }
  .ab-vis.in .ab-a { animation: abLabA 9s ease infinite; }
  .ab-vis.in .ab-b { animation: abLabB 9s ease infinite; }
  .ab-vis.in .ab-cur { animation: abCur 9s var(--ease) infinite; }
  .ab-vis.in .ab-pic { animation: abPic 7s ease-in-out infinite alternate; }
  .ab-nav u { animation: pulse 1.8s ease-in-out infinite; }
  .up .bars b { animation: wave 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * .07s); transform-origin: 50% 100%; }
  .hc .hc-sk { animation: hcSk 9s ease infinite; animation-delay: calc(var(--d, 0) * .3s); }
  .hc .hc-re { animation: hcRe 9s var(--ease) infinite; animation-delay: calc(var(--d, 0) * .3s); }
  .hc .hc-u1 { animation: hcU1 9s ease infinite; }
  .hc .hc-u2 { animation: hcU2 9s ease infinite; }
  .hc .hc-live { animation: hcLv 9s var(--ease) infinite; }
  .hc .hc-s1 { animation: hcS1 9s ease infinite; }
  .hc .hc-s2 { animation: hcS2 9s ease infinite; }
  .hc .hc-s3 { animation: hcS3 9s ease infinite; }
  .ho-tx { animation: typed 9s steps(22) infinite; }
  .ho-caret { animation: caret 1s steps(1) infinite; }
  .ho-r { animation: climb 9s var(--ease) infinite; }
  .ho-me em { animation: badge 9s var(--ease) infinite; }
  .tp1 { animation: fType1 8s steps(14) infinite; }
  .tp2 { animation: fType2 8s steps(18) infinite; }
  .mg { animation: fMsg 8s var(--ease) infinite; }
  .fb { animation: fPress 8s ease infinite, fBtnBg 8s linear infinite; }
  .fa { animation: fLabA 8s linear infinite; }
  .fo { animation: fLabB 8s linear infinite; }
  .ml { animation: fMail 8s var(--ease) infinite; }
}

/* =====================================================
   RESPONSIVE & ACCESSIBILITÉ
===================================================== */
@media (max-width: 1000px) {
  section { padding: 84px 0; }
  .burger { display: block; }
  .nav-cta { display: none; }
  .nav.open { background: #060C14; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 4px 24px 22px; background: #060C14; border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px rgba(0,0,0,.4); }
  .nav.open ul { display: flex; }
  .nav ul a { padding: 16px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  /* menu empilé : la ligne du bas de la rangée active devient rouge (pas de seconde ligne sous le texte) */
  .nav ul a.on { border-bottom-color: var(--red); }
  .nav ul a.on::after { display: none; }
  .nav-barre { display: none; }
  .nav ul .menu-cta { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 22px; }
  .nav ul .menu-cta a { display: inline-flex; flex: 1 1 auto; justify-content: center; gap: 8px; padding: 14px 14px; font-size: .88rem; border-bottom: 1px solid transparent; color: #14100A; }
  .nav ul .menu-cta a.btn-r { color: #fff; }
  .nav ul .menu-cta a.btn-r[aria-current] { color: #FF7F63; }
  .hero { padding: 120px 0 80px; }
  .hero .container { grid-template-columns: 1fr; gap: 50px; }
  .stage { height: auto; display: grid; gap: 16px; max-width: 420px; }
  .wd { position: relative; inset: auto; width: 100% !important; }
  .sh { grid-template-columns: 1fr; gap: 18px; }
  .sc { grid-template-columns: 1fr; padding: 28px; gap: 28px; min-height: 0; }
  .tab { padding: 14px 16px; }
  .pj-grid { grid-template-columns: 1fr; }
  .faq-w { grid-template-columns: 1fr; gap: 36px; }
  .faq-w .sh { position: static; }
  .cp { grid-template-columns: 1fr; gap: 36px; }
  footer { padding-bottom: 96px; } /* le bouton « retour en haut » ne masque plus la ligne de copyright */
  .fcols a { padding: 10px 0; }
}
@media (max-width: 600px) {
  /* pastilles du hero : plus petites et à cheval sur les bords de la fenêtre, pour ne plus cacher son contenu */
  .hbi { gap: 8px; padding: 7px 11px 7px 8px; font-size: .74rem; }
  .hbi small { font-size: .5rem; }
  .hbd1 { left: -6px; top: -16px; }
  .hbd2 { right: -6px; top: 40%; }
  .hbd3 { left: -6px; bottom: -16px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-barre { transition: none; }
  html { scroll-behavior: auto; }
  .js .rv, .js .w > span, .js .hf, .js .ht, .js .wd .in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .mt .trk i { width: var(--w) !important; }
  .ring .fg { stroke-dashoffset: 0 !important; }
  .sc { position: relative; top: auto; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .wd .in, form { -webkit-backdrop-filter: none; backdrop-filter: none; background: #0C1826; }
}
@media (prefers-contrast: more) {
  .lead, .sh p, .stp p, .a p, .sc .lead { color: #fff; }
  .nav, .sc, .stp, .pj, .fq, form { border-color: #fff; }
}
/* Onglets Services sur téléphone : les 4 tiennent sur une ligne (icône au-dessus du mot), plus de défilement latéral */
@media (max-width: 560px) {
  .tabs { overflow: visible; gap: 0; }
  .tab { flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: 7px; padding: 12px 2px; font-size: .74rem; text-align: center; }
  .tab svg { width: 22px; height: 22px; }
}
@media (max-width: 360px) { .tab { font-size: .66rem; } }

/* Panneaux animés des Services : palette de la fenêtre « Maison Dupin » du hero (crème, terracotta, encre) */
.vis { --paper: #F8F4EC; --paper2: #FFFDF8; --bar: #EAE4D8; --edge: #D9D1C1; --soft: #E8DFCE; --ink: #1d1a16; --ink2: #4a4234; --mute: #8a7f6c; --terra: #C8642B; --sand: #F0DDB8; --sage: #E3E8D2; --rose: #F2D3C4; --ok: #2F7D4F; background: var(--paper); color: var(--ink); border-color: rgba(255,255,255,.1); }
.vis .vbar { background: var(--bar); border-bottom-color: var(--edge); color: var(--mute); }
.vis .vbar i { background: #cbbfa8; }
.vis .vbar i:nth-child(1) { background: #ee7b6c; }
.vis .vbar i:nth-child(2) { background: #f1c35c; }
.vis .vbar i:nth-child(3) { background: #79c98a; }
.vis .live { color: var(--ok); background: rgba(47,125,79,.12); border-color: rgba(47,125,79,.3); }
.vis .live::before { background: var(--ok); }
.vis .dl { color: var(--mute); }
/* index.php */
/* maintenance.live */
.vis .rw { border-bottom-color: var(--soft); color: var(--ink); }
.vis .rw svg { stroke: var(--terra); }
.vis .rw .st s { color: #B4531E; background: rgba(200,100,43,.12); }
.vis .rw .st u { color: var(--ok); background: rgba(47,125,79,.12); }
.vis .up .bars b { background: #5DAE72; }
/* recherche */

/* zones tactiles (mobile et tablette) : « Rejouer » et l'adresse du pied de page plus hauts ; liens dans les textes : zone cliquable agrandie sans changer la mise en page */
@media (max-width: 1000px) {
  .hreplay { min-height: 44px; }
  footer a.mail { display: inline-block; padding: 10px 0; }
}
@media (max-width: 1000px) {
  .prose a, .sv .as p a { position: relative; }
  .prose a::after, .sv .as p a::after { content: ""; position: absolute; inset: -12px -4px; }
}
