/* ==========================================================================
   Ferme à sites — styles de base. Les couleurs, polices, arrondis et effets
   viennent du thème de chaque site (variables CSS injectées dans la page).
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--font-b); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: .08em; }
h1, h2, h3 { font-family: var(--font-h); line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--primary); color: var(--on-primary); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 999; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 10px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 36px); position: relative; }
.draft-bar { background: var(--accent); color: #222; text-align: center; font-size: .82rem; font-weight: 600; padding: 6px 12px; }

/* --- Boutons ------------------------------------------------------------ */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.al-center .btns, .btns-center { justify-content: center; }
.btn { --b: var(--primary); display: inline-flex; align-items: center; gap: .55em; padding: .9em 1.5em; border-radius: var(--btn-radius); font: 700 1rem/1 var(--font-b); text-decoration: none; cursor: pointer; border: 2px solid var(--b); background: var(--b); color: var(--on-primary); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .2s, color .2s; position: relative; will-change: transform; }
.btn:hover { box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--b) 70%, transparent); transform: translateY(-2px); }
.btn-arrow { display: inline-block; transition: transform .25s; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--text); border-color: color-mix(in srgb, var(--text) 25%, transparent); }
.btn-ghost:hover { border-color: var(--text); background: var(--text); color: var(--bg); box-shadow: none; }
.btn-light { --b: #fff; color: #161616; }
.btn-sm { padding: .65em 1.15em; font-size: .92rem; }
.btn-lg { padding: 1.05em 1.8em; font-size: 1.05rem; }

/* --- En-tête -------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 60; transition: background .3s, box-shadow .3s, transform .35s; }
.hd-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 78px; transition: min-height .3s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; transition: background .3s; }
.hd-glass::before { background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); }
.hd-solid::before { background: var(--surface); }
.hd-transparent { background: transparent; }
.site-header.is-scrolled { box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 8%, transparent), 0 10px 30px -18px rgba(0,0,0,.25); }
.site-header.is-scrolled .hd-inner { min-height: 64px; }
.hd-transparent.is-scrolled::before { background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-logo { height: 46px; width: auto; }
.brand-emoji { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 1.5rem; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 6px 16px -6px var(--primary); transition: transform .4s cubic-bezier(.3,1.6,.5,1); flex: none; }
.brand:hover .brand-emoji { transform: rotate(-12deg) scale(1.08); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-family: var(--font-h); font-size: 1.12rem; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--muted); font-size: .8rem; }
.site-nav { display: flex; align-items: center; gap: 10px; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { position: relative; display: block; padding: 9px 14px; text-decoration: none; font-weight: 600; font-size: .96rem; border-radius: 999px; transition: background .2s, color .2s; }
.site-nav a:not(.btn):hover { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.site-nav a[aria-current="page"] { color: var(--primary); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--primary); }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 14px; background: color-mix(in srgb, var(--text) 7%, transparent); cursor: pointer; position: relative; }
.burger span:first-child, .burger span:first-child::before, .burger span:first-child::after { position: absolute; left: 13px; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s, background .2s; content: ""; }
.burger span:first-child { top: 22px; }
.burger span:first-child::before { left: 0; top: -7px; }
.burger span:first-child::after { left: 0; top: 7px; }
.nav-open .burger span:first-child { background: transparent; }
.nav-open .burger span:first-child::before { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span:first-child::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .burger { display: block; }
  .brand, .burger { position: relative; z-index: 2; }
  .nav-open .site-header { transform: none; }
  .site-nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 28px; background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .site-nav ul { flex-direction: column; align-items: center; gap: 6px; }
  .site-nav a:not(.btn) { font-family: var(--font-h); font-size: 1.9rem; font-weight: 800; padding: 8px 18px; }
  .site-nav li { transform: translateY(16px); opacity: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s; }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .nav-open .site-nav li { transform: none; opacity: 1; }
  .nav-open .site-nav li:nth-child(2) { transition-delay: .05s; } .nav-open .site-nav li:nth-child(3) { transition-delay: .1s; }
  .nav-open .site-nav li:nth-child(4) { transition-delay: .15s; } .nav-open .site-nav li:nth-child(5) { transition-delay: .2s; }
  .nav-open .site-nav li:nth-child(6) { transition-delay: .25s; }
  .nav-open { overflow: hidden; }
  .brand-text small { display: none; }
}

/* --- Sections ------------------------------------------------------------- */
.sec { position: relative; isolation: isolate; }
.sp-s { padding: clamp(36px, 5vw, 56px) 0; }
.sp-m { padding: clamp(64px, 9vw, 120px) 0; }
.sp-l { padding: clamp(84px, 12vw, 170px) 0; }
.al-center { text-align: center; }
.al-center .sec-head, .sec-head.al-center { margin-left: auto; margin-right: auto; }
.bg-soft { background: color-mix(in srgb, var(--primary) 8%, var(--bg)); }
.bg-surface { background: var(--surface); }
.bg-primary { background: var(--primary); color: var(--on-primary); }
.bg-dark { background: var(--text); color: var(--bg); --muted: color-mix(in srgb, var(--bg) 70%, transparent); }
.bg-gradient { color: #fff; --muted: rgba(255,255,255,.85); }
.bg-image { color: #fff; --muted: rgba(255,255,255,.85); }
.bg-primary .btn-primary, .bg-gradient .btn-primary { --b: var(--text); color: var(--bg); }
.bg-dark .btn-primary { --b: var(--primary); }
.bg-dark .btn-ghost, .bg-primary .btn-ghost, .bg-gradient .btn-ghost, .bg-image .btn-ghost { color: inherit; border-color: currentColor; }
.bg-dark .btn-ghost:hover, .bg-primary .btn-ghost:hover, .bg-gradient .btn-ghost:hover, .bg-image .btn-ghost:hover { background: #fff; color: #111; border-color: #fff; }
.sec-gradient { position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, var(--primary), var(--secondary), var(--accent), var(--primary)); background-size: 300% 300%; animation: gradient-move 14s ease infinite; }
@keyframes gradient-move { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.sec-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.sec-bg img { width: 100%; height: 120%; object-fit: cover; margin-top: -10%; }
.sec-overlay { position: absolute; inset: 0; background: #000; }
.sec-shape { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(40px, 7vw, 100px); fill: var(--bg); z-index: 1; pointer-events: none; }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.eyebrow { display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: 1em; }
.bg-primary .eyebrow, .bg-gradient .eyebrow, .bg-dark .eyebrow, .bg-image .eyebrow { color: inherit; opacity: .85; }
.eyebrow-pill { letter-spacing: .02em; text-transform: none; font-size: .95rem; padding: .45em 1em; border-radius: 999px; background: color-mix(in srgb, var(--primary) 12%, transparent); }
.sec-intro { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); }
.narrow .wrap, .wrap.narrow { max-width: 860px; }
.empty { text-align: center; color: var(--muted); font-style: italic; padding: 30px 0; }
.more { text-align: center; margin-top: 2.4em; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-top { align-items: start; }
.split-rev > :first-child { order: 2; }
.single { max-width: 820px; }
.al-center .single { margin: 0 auto; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-rev > :first-child { order: 0; } }

/* --- Formes animées (blobs) ----------------------------------------------- */
.blobs { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.blobs i { position: absolute; display: block; border-radius: 50%; filter: blur(60px); opacity: .55; animation: blob 18s ease-in-out infinite alternate; }
.blobs i:nth-child(1) { width: 46vmax; height: 46vmax; background: var(--primary); top: -18vmax; right: -12vmax; opacity: .32; }
.blobs i:nth-child(2) { width: 34vmax; height: 34vmax; background: var(--accent); bottom: -16vmax; left: -10vmax; opacity: .35; animation-duration: 22s; }
.blobs i:nth-child(3) { width: 24vmax; height: 24vmax; background: var(--secondary); top: 30%; left: 38%; opacity: .18; animation-duration: 26s; }
.blobs-sm i:nth-child(1) { width: 30vmax; height: 30vmax; top: -16vmax; }
.blobs-sm i:nth-child(2) { width: 22vmax; height: 22vmax; bottom: -14vmax; }
@keyframes blob { 0% { transform: translate(0, 0) scale(1); } 33% { transform: translate(4vmax, 3vmax) scale(1.12); } 66% { transform: translate(-3vmax, 5vmax) scale(.92); } 100% { transform: translate(2vmax, -3vmax) scale(1.05); } }

/* --- Hero ------------------------------------------------------------------ */
.sec-hero { overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero-center .hero-grid { grid-template-columns: 1fr; text-align: center; max-width: 980px; }
.hero-center .btns { justify-content: center; }
.hero-center .hero-sub { margin-left: auto; margin-right: auto; }
.hero-title { font-size: clamp(2.7rem, 7vw, 5.6rem); line-height: .98; letter-spacing: -.04em; }
.hero-sub { font-size: clamp(1.1rem, 1.8vw, 1.32rem); color: var(--muted); max-width: 36em; margin-top: 1.2em; }
.rotator { display: inline-block; position: relative; }
.rotator-word { display: inline-block; background: linear-gradient(100deg, var(--primary), var(--accent) 60%, var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s, filter .45s; }
.rotator-word.is-out { transform: translateY(-.35em) rotate(-3deg); opacity: 0; filter: blur(6px); }
.rotator-word.is-in { animation: rot-in .55s cubic-bezier(.2,.8,.2,1); }
@keyframes rot-in { from { transform: translateY(.45em) rotate(3deg); opacity: 0; filter: blur(6px); } }
.hero-visual { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.hero-blob { position: absolute; inset: 6%; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; background: linear-gradient(140deg, var(--primary), var(--accent)); overflow: hidden; display: grid; place-items: center; box-shadow: 0 40px 80px -30px var(--primary); animation: morph 12s ease-in-out infinite; }
.hero-blob img { width: 100%; height: 100%; object-fit: cover; }
.hero-emoji { font-size: clamp(7rem, 18vw, 12rem); line-height: 1; filter: drop-shadow(0 20px 30px rgba(0,0,0,.2)); animation: float 6s ease-in-out infinite; }
@keyframes morph { 0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; } 50% { border-radius: 58% 42% 37% 63% / 55% 61% 39% 45%; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
.chip { position: absolute; display: inline-flex; align-items: center; gap: .4em; padding: .7em 1.1em; border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 700; font-size: .95rem; box-shadow: var(--shadow); white-space: nowrap; animation: float 7s ease-in-out infinite; }
.chip-1 { top: 8%; left: -6%; animation-delay: -1s; }
.chip-2 { top: 44%; right: -8%; animation-delay: -3s; }
.chip-3 { bottom: 6%; left: 4%; animation-delay: -5s; }
.chip-4 { bottom: 26%; left: -10%; animation-delay: -2s; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; margin-top: 10px; }
  .chip-1 { left: 0; } .chip-2 { right: 0; } .chip-4 { left: 0; }
}
.hero-full { min-height: min(92vh, 860px); display: flex; align-items: center; color: #fff; padding: 120px 0 100px; --muted: rgba(255,255,255,.88); }
.hero-full .hero-text { max-width: 880px; }
.hero-full .eyebrow-pill { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(8px); }
.hero-full .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg img { width: 100%; height: 125%; object-fit: cover; margin-top: -8%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.6)); }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: hint 1.8s infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* --- Bandeau défilant ------------------------------------------------------ */
.sec-marquee { overflow: hidden; padding: 22px 0; }
.mq-tilt { transform: rotate(-2deg); margin: 30px -2% ; width: 104%; }
.mq-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.mq-slow .mq-track { animation-duration: 48s; } .mq-fast .mq-track { animation-duration: 18s; }
.mq-row { display: flex; align-items: center; flex: none; }
.mq-item { font-family: var(--font-h); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.4rem); letter-spacing: -.02em; white-space: nowrap; padding: 0 .55em; }
.mq-sep { font-size: 1.3rem; opacity: .7; }
.sec-marquee:hover .mq-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Texte + image --------------------------------------------------------- */
.prose { max-width: 68ch; }
.al-center .prose { margin-left: auto; margin-right: auto; }
.prose-wide { max-width: none; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 1.7em; margin-bottom: .5em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7em; height: .7em; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.prose a { color: var(--primary); font-weight: 600; }
.prose blockquote { margin: 1.4em 0; padding: .4em 0 .4em 1.2em; border-left: 4px solid var(--primary); font-size: 1.15em; font-style: italic; }
.prose img { border-radius: var(--radius); }
.tx-media { margin: 0; position: relative; }
.tx-media img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; }
.img-rounded img { border-radius: var(--radius); box-shadow: var(--shadow); }
.img-blob img { border-radius: 58% 42% 51% 49% / 46% 55% 45% 54%; animation: morph 14s ease-in-out infinite; }
.img-blob::before { content: ""; position: absolute; inset: 8% -4% -4% 8%; z-index: -1; border-radius: 50% 50% 46% 54% / 52% 44% 56% 48%; background: linear-gradient(135deg, var(--accent), var(--primary)); opacity: .55; }
.img-tilted img { border: 12px solid #fff; border-bottom-width: 48px; transform: rotate(3deg); box-shadow: var(--shadow); border-radius: 4px; transition: transform .4s; }
.img-tilted:hover img { transform: rotate(0) scale(1.02); }
.img-circle img { border-radius: 50%; aspect-ratio: 1; }

/* --- Atouts ---------------------------------------------------------------- */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(16px, 2vw, 26px); grid-template-columns: repeat(3, 1fr); text-align: left; }
.features.cols-2 { grid-template-columns: repeat(2, 1fr); }
.features.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .features.cols-4 { grid-template-columns: repeat(2, 1fr); } .features.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features.cols-2, .features.cols-3, .features.cols-4 { grid-template-columns: 1fr; } }
.feature { position: relative; padding: clamp(24px, 3vw, 34px); border-radius: var(--radius); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; transform-style: preserve-3d; }
.feature h3 { margin: .2em 0 .5em; }
.feature p { color: var(--muted); margin: 0; }
.feature-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; font-size: 1.8rem; margin-bottom: 18px; background: color-mix(in srgb, var(--primary) 14%, transparent); transition: transform .45s cubic-bezier(.3,1.6,.5,1); }
.feature:hover .feature-icon { transform: rotate(-10deg) scale(1.12); }
.fcard-card .feature { background: var(--surface); box-shadow: var(--shadow); }
.fcard-card .feature:hover { box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--primary) 45%, transparent); }
.fcard-glass .feature { background: color-mix(in srgb, var(--surface) 55%, transparent); border: 1px solid color-mix(in srgb, var(--text) 9%, transparent); backdrop-filter: blur(14px); }
.fcard-color .feature:nth-child(4n+1) { background: color-mix(in srgb, var(--primary) 16%, var(--surface)); }
.fcard-color .feature:nth-child(4n+2) { background: color-mix(in srgb, var(--accent) 24%, var(--surface)); }
.fcard-color .feature:nth-child(4n+3) { background: color-mix(in srgb, var(--secondary) 16%, var(--surface)); }
.fcard-color .feature:nth-child(4n+4) { background: color-mix(in srgb, var(--primary) 8%, var(--accent) 14%); }
.fcard-color .feature-icon { background: var(--surface); }
.fcard-minimal .feature { padding-left: 0; padding-right: 0; }
.bg-dark .fcard-card .feature, .bg-primary .fcard-card .feature, .bg-gradient .fcard-card .feature { color: var(--text); --muted: color-mix(in srgb, var(--text) 65%, transparent); }

/* --- Chiffres -------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin: 0; }
.stat { display: flex; flex-direction: column-reverse; gap: 6px; padding: 10px; }
.stat dd { margin: 0; font-family: var(--font-h); font-weight: 800; font-size: clamp(3rem, 7vw, 5.2rem); line-height: 1; letter-spacing: -.04em; background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bg-primary .stat dd, .bg-gradient .stat dd, .bg-image .stat dd { background: none; color: inherit; }
.stat dt { color: var(--muted); font-weight: 600; }
.stat-suffix { font-size: .55em; margin-left: .05em; }

/* --- Cartes (fiches) ------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(18px, 2.5vw, 30px); text-align: left; }
.card { border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s; color: var(--text); }
.card:hover { box-shadow: 0 30px 60px -22px color-mix(in srgb, var(--primary) 50%, transparent); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.card:hover .card-media img { transform: scale(1.07); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .35em; }
.card-body p { color: var(--muted); font-size: .97rem; }
.card-more { margin-top: auto; font-weight: 700; color: var(--primary); }
.card-more span { display: inline-block; transition: transform .25s; }
.card:hover .card-more span { transform: translateX(5px); }
.badge { position: absolute; top: 14px; left: 14px; z-index: 2; padding: .4em .9em; border-radius: 999px; background: var(--accent); color: #1c1c1c; font-weight: 800; font-size: .8rem; box-shadow: 0 6px 16px -6px rgba(0,0,0,.35); }
.badge-lg { font-size: .92rem; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 55%), linear-gradient(135deg, color-mix(in srgb, var(--primary) 70%, var(--bg)), color-mix(in srgb, var(--secondary) 60%, var(--bg))); }
.ph span { font-size: 4.2rem; filter: drop-shadow(0 10px 16px rgba(0,0,0,.2)); transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.card:hover .ph span { transform: scale(1.15) rotate(-8deg); }
.ph-lg { aspect-ratio: 4 / 3.2; border-radius: var(--radius); }
.ph-lg span { font-size: 7rem; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 31%); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 26px; scrollbar-width: none; text-align: left; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
@media (max-width: 700px) { .carousel { grid-auto-columns: 82%; } }
.carousel-nav { display: flex; justify-content: center; gap: 10px; }
.carousel-btn { width: 50px; height: 50px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--text) 18%, transparent); background: transparent; color: inherit; font-size: 1.2rem; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.carousel-btn:hover { background: var(--primary); color: var(--on-primary); border-color: var(--primary); transform: scale(1.06); }

/* --- Galerie --------------------------------------------------------------- */
.gallery { text-align: left; }
.gal-masonry { columns: 3 260px; column-gap: 16px; }
.gal-masonry .gal-item { margin-bottom: 16px; break-inside: avoid; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gal-grid img { aspect-ratio: 1; object-fit: cover; }
.gal-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 45%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal-carousel .gal-item { scroll-snap-align: center; }
.gal-carousel img { aspect-ratio: 4/3; object-fit: cover; }
.gal-item { display: block; border-radius: calc(var(--radius) * .7); overflow: hidden; }
.gal-item img { width: 100%; transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s; }
.gal-item:hover img { transform: scale(1.06); }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; background: rgba(8,8,12,.9); backdrop-filter: blur(6px); cursor: zoom-out; animation: lb-in .25s ease; }
.lightbox img { max-height: 90vh; width: auto; border-radius: 12px; animation: lb-zoom .35s cubic-bezier(.2,.8,.2,1); }
@keyframes lb-in { from { opacity: 0; } } @keyframes lb-zoom { from { transform: scale(.9); opacity: 0; } }

/* --- Témoignages ----------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; text-align: left; }
.quote { margin: 0; padding: 30px; border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow); position: relative; }
.quote::before { content: "“"; position: absolute; top: -10px; right: 22px; font: 800 6rem/1 var(--font-h); color: var(--primary); opacity: .25; }
.quote blockquote { margin: 0 0 20px; font-size: 1.08rem; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption small { display: block; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 800; flex: none; }
.q-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.q-track { display: flex; gap: 22px; width: max-content; animation: marquee 45s linear infinite; text-align: left; }
.q-track .quote { width: 360px; flex: none; }
.q-marquee:hover .q-track { animation-play-state: paused; }

/* --- Étapes ---------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; text-align: left; position: relative; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); color: var(--text); transition: transform .35s; }
.step:hover { transform: translateY(-6px); }
.step-num { display: inline-block; font: 800 2.6rem/1 var(--font-h); letter-spacing: -.04em; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.step p { color: var(--muted); margin: 0; }

/* --- FAQ ------------------------------------------------------------------- */
.faq { text-align: left; display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { border-radius: calc(var(--radius) * .8); background: var(--surface); color: var(--text); box-shadow: var(--shadow); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px; font-weight: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 14%, transparent); transition: transform .35s, background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--primary); border-radius: 2px; transition: transform .35s; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { transform: rotate(180deg); background: var(--primary); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: var(--on-primary); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq-a { padding: 0 26px 22px; color: var(--muted); }
.faq-a p { margin: 0; }

/* --- Appel à l'action ------------------------------------------------------ */
.cta-box { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }
.cta-box .btns { justify-content: center; }
.cta-emoji { display: inline-block; font-size: 4rem; margin-bottom: 10px; animation: float 5s ease-in-out infinite; }
.sec-cta.bg-default .cta-box, .sec-cta.bg-surface .cta-box { padding: clamp(36px, 6vw, 70px); border-radius: calc(var(--radius) * 1.4); background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--on-primary); --muted: color-mix(in srgb, var(--on-primary) 85%, transparent); box-shadow: 0 40px 80px -40px var(--primary); }
.sec-cta.bg-default .btn-primary { --b: var(--bg); color: var(--text); }

/* --- Contact --------------------------------------------------------------- */
.contact-list { list-style: none; padding: 0; margin: 1.6em 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--primary); }
.ci { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 12%, transparent); flex: none; }
.form { padding: clamp(24px, 4vw, 40px); border-radius: calc(var(--radius) * 1.1); background: var(--surface); color: var(--text); box-shadow: var(--shadow); display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { position: relative; display: block; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--text); padding: 24px 16px 10px; border-radius: 14px; border: 2px solid color-mix(in srgb, var(--text) 12%, transparent); background: color-mix(in srgb, var(--bg) 60%, var(--surface)); transition: border-color .2s, box-shadow .2s; resize: vertical; }
.field span { position: absolute; left: 18px; top: 17px; color: var(--muted); pointer-events: none; transition: transform .2s, font-size .2s, color .2s; transform-origin: left top; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.field input:focus + span, .field input:not(:placeholder-shown) + span, .field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-10px); font-size: .76rem; color: var(--primary); font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--primary); width: 18px; height: 18px; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.alert { margin: 0; padding: 14px 18px; border-radius: 14px; font-weight: 600; }
.alert-ok { background: color-mix(in srgb, #22c55e 18%, var(--surface)); }
.alert-err { background: color-mix(in srgb, #ef4444 16%, var(--surface)); }
.map { margin-top: 24px; padding: 24px; border-radius: var(--radius); border: 2px dashed color-mix(in srgb, var(--text) 15%, transparent); display: grid; gap: 8px; justify-items: start; }
.map small { color: var(--muted); }
.map iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }

/* --- Vidéo ----------------------------------------------------------------- */
.video { margin: 0 auto; max-width: 980px; }
.video-play, .video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.video-play { display: grid; place-items: center; cursor: pointer; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: var(--shadow); }
.video-play span { display: grid; place-items: center; width: 90px; height: 90px; border-radius: 50%; background: #fff; color: var(--primary); font-size: 2rem; padding-left: 6px; transition: transform .3s; box-shadow: 0 0 0 0 rgba(255,255,255,.5); animation: pulse 2s infinite; }
.video-play:hover span { transform: scale(1.1); }
@keyframes pulse { 70% { box-shadow: 0 0 0 26px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.video figcaption { text-align: center; color: var(--muted); margin-top: 12px; }

/* --- En-tête de page / fiches ---------------------------------------------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(60px, 10vw, 130px) 0 clamp(40px, 6vw, 70px); }
.page-hero h1 { max-width: 16ch; }
.page-sub { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--muted); max-width: 40em; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.item-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .item-grid { grid-template-columns: 1fr; } }
.item-media { position: relative; }
.item-media img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.attrs { margin: 0 0 28px; display: grid; gap: 8px; }
.attrs div { display: grid; grid-template-columns: 44% 1fr; gap: 12px; padding: 14px 18px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.attrs dt { font-weight: 700; color: var(--primary); }
.attrs dd { margin: 0; }
.nf { overflow: hidden; }
.nf-code { font: 800 clamp(6rem, 22vw, 14rem)/1 var(--font-h); letter-spacing: -.06em; margin: 0; background: linear-gradient(120deg, var(--primary), var(--accent), var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf .btns { justify-content: center; }

/* --- Pied de page ---------------------------------------------------------- */
.site-footer { padding: clamp(56px, 8vw, 90px) 0 0; position: relative; }
.ft-dark { background: var(--text); color: var(--bg); --muted: color-mix(in srgb, var(--bg) 65%, transparent); }
.ft-light { background: color-mix(in srgb, var(--primary) 6%, var(--bg)); }
.ft-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
@media (max-width: 800px) { .ft-grid { grid-template-columns: 1fr; gap: 28px; } }
.ft-name { font: 800 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--font-h); letter-spacing: -.03em; }
.ft-brand p:not(.ft-name) { color: var(--muted); max-width: 30em; }
.ft-title { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--primary); }
.ft-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ft-links a, .site-footer address a { text-decoration: none; color: var(--muted); transition: color .2s; }
.ft-links a:hover, .site-footer address a:hover { color: inherit; }
.ft-legal { margin-top: 18px; font-size: .9rem; }
.site-footer address { font-style: normal; color: var(--muted); }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); text-decoration: none; font-weight: 800; transition: background .2s, color .2s, transform .3s; }
.socials a:hover { background: var(--primary); color: var(--on-primary); border-color: var(--primary); transform: translateY(-3px); }
.ft-bottom { border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent); padding: 22px 0; font-size: .86rem; color: var(--muted); }
.ft-bottom p { margin: 0; }

/* --- Effets ---------------------------------------------------------------- */
.progress { position: fixed; top: 0; left: 0; z-index: 100; height: 4px; width: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); transform-origin: 0 50%; transform: scaleX(0); }
.cursor-glow { position: fixed; z-index: -1; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 22%, transparent), transparent 65%); pointer-events: none; transition: opacity .3s; left: 0; top: 0; }
.fx-grain::after { content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }
.fx-reveal [data-reveal] { opacity: 0; transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1), filter .9s; transition-delay: calc(var(--i, 0) * 90ms); }
.fx-reveal [data-reveal="fade-up"] { transform: translateY(40px); }
.fx-reveal [data-reveal="zoom"] { transform: scale(.88); }
.fx-reveal [data-reveal="blur"] { filter: blur(14px); transform: scale(1.03); }
.fx-reveal [data-reveal="slide"] { transform: translateX(-60px); }
.fx-reveal [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.is-editing [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .fx-reveal [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* Mise à jour en direct : léger halo sur ce qui vient de changer */
.live-flash { animation: liveflash 1.8s ease-out; }
@keyframes liveflash { 0%, 25% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, #f59f00) 55%, transparent); } 100% { box-shadow: 0 0 0 4px transparent; } }
@media (prefers-reduced-motion: reduce) { .live-flash { animation: none; } }
