/* =========================================================
   Agence Evoludev AEF — feuille de styles
   Palette : Noir charbon #171717 · Blanc cassé #F7F6F3
             Rouge profond #B32632 · Gris anthracite #373737
   ========================================================= */

:root {
  --ink: #171717;          /* titres et sections fortes */
  --cream: #F7F6F3;        /* fond principal */
  --accent: #B32632;       /* boutons et accents */
  --accent-dark: #8A1C26;
  --text: #373737;         /* texte courant */
  --muted: #5C5C5C;
  --rose: #E8858D;         /* accent sur fond noir */
  --white: #FFFFFF;
  --line: rgba(23, 23, 23, .10);

  --font-display: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --radius-lg: 28px;
  --radius: 24px;
  --gutter: 48px;
  --section-y: 120px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-dark); }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); }
em.rose { color: var(--rose); }
svg path { fill: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 10px;
}
.skip-link:focus { top: 16px; color: var(--white); }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-dark { background: var(--ink); color: var(--white); }
.bg-dark h2, .bg-dark h3 { color: var(--white); }

.stack { display: flex; flex-direction: column; gap: 28px; }
.stack-sm { display: flex; flex-direction: column; gap: 14px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: start; }
.two-col > *, .ally-grid > *, .hero-grid > * { min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* ---------- Typographie ---------- */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; transform-origin: left; }
.eyebrow-light { color: rgba(255, 255, 255, .85); }
.eyebrow-rose { color: var(--rose); }
.h2-lg { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.025em; }
.h2-md { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -.02em; }
.h2-sm { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.02em; }
.body-lg { font-size: 19px; line-height: 1.65; }
.body-md { font-size: 18px; line-height: 1.7; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.label-accent { color: var(--accent); }
.strong { font-weight: 600; color: var(--ink); }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: 56px; }

/* ---------- Boutons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), color .3s var(--ease), background-color .3s var(--ease);
}
.btn::after { /* balayage de couleur au survol */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); transform: translateY(101%); border-radius: inherit;
  transition: transform .45s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(23, 23, 23, .18); }
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: translateY(0); }
.btn .arrow { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { min-height: 46px; padding: 0 20px; font-size: 15px; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 17px; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { color: var(--white); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost::after { background: var(--ink); }
.btn-ghost:hover { color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light::after { background: var(--ink); }
.btn-light:hover { color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent::after { background: var(--white); }
.btn-accent:hover { color: var(--accent); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 243, .97);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(23, 23, 23, .06); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; transition: padding .3s var(--ease); }
.site-header.is-scrolled .nav { padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.brand:hover { color: var(--ink); }
.brand img { width: 52px; height: 52px; border-radius: 50%; transition: transform .6s var(--ease-out), width .3s var(--ease), height .3s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.05); }
.site-header.is-scrolled .brand img { width: 44px; height: 44px; }
.nav-menu { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { position: relative; color: var(--text); font-weight: 500; font-size: 15px; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; }
.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--accent); transform-origin: left; transform: scaleX(var(--progress, 0));
}

/* ---------- Héros ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero-curves { position: absolute; left: 0; bottom: 0; width: 100%; height: 520px; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; padding-top: 96px; padding-bottom: 112px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -.03em; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; max-width: 620px; }
.pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid rgba(23, 23, 23, .12);
  font-size: 14px; font-weight: 600; color: var(--accent);
}
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 2.2s var(--ease-out) infinite; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 8px; font-size: 15px; color: var(--muted); }
.hero-meta strong { color: var(--ink); }

.hero-visual { position: relative; height: 580px; }
.hero-panel {
  position: absolute; inset: 0 0 0 40px; border-radius: var(--radius-lg); background: var(--ink);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.hero-panel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-logo { position: relative; width: 220px; height: 220px; margin-top: 30px; border-radius: 50%; animation: logo-in 1.2s var(--ease-out) .3s both, float 7s ease-in-out 1.6s infinite; }
.float-card { position: absolute; border-radius: 18px; box-shadow: 0 18px 40px rgba(23, 23, 23, .18); }
.float-a { left: 0; top: 28px; width: 240px; padding: 20px 22px; background: var(--white); display: flex; flex-direction: column; gap: 10px; animation: card-in .9s var(--ease-out) .9s both, float 6s ease-in-out 2s infinite; }
.float-b { right: -16px; bottom: 56px; padding: 16px 20px; background: var(--accent); color: var(--white); display: flex; flex-direction: column; gap: 2px; animation: card-in .9s var(--ease-out) 1.15s both, float 6.5s ease-in-out 2.4s infinite reverse; }
.float-b span { font-size: 13px; opacity: .85; }
.float-b strong { font-size: 17px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.mini-steps li { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--ink); animation: fade-up .6s var(--ease-out) both; }
.mini-steps li:nth-child(1) { animation-delay: 1.2s; }
.mini-steps li:nth-child(2) { animation-delay: 1.35s; }
.mini-steps li:nth-child(3) { animation-delay: 1.5s; }
.mini-steps li:nth-child(4) { animation-delay: 1.65s; color: var(--accent); }

/* Entrée du héros */
.intro { animation: fade-up .9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 110ms + 100ms); }

/* Tracé des courbes */
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s var(--ease-out) .2s forwards; }
.draw-late { animation-delay: .6s; }

/* ---------- Vos enjeux ---------- */
.dark-card { padding: 44px; border-radius: var(--radius-lg); background: var(--ink); color: var(--white); display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.dark-card h3 { color: var(--white); font-size: 28px; }
.checklist { width: 100%; }
.checklist li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 18px; line-height: 1.5; color: rgba(255, 255, 255, .9); }
.check { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.check svg { width: 14px; height: 14px; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.check svg path { stroke-dasharray: 24; stroke-dashoffset: 0; }
.js .checklist li .check { transform: scale(0); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--n, 0) * 90ms + 250ms); }
.js .checklist li .check svg path { stroke-dashoffset: 24; transition: stroke-dashoffset .5s var(--ease-out); transition-delay: calc(var(--n, 0) * 90ms + 450ms); }
.js .checklist li.is-in .check { transform: scale(1); }
.js .checklist li.is-in .check svg path { stroke-dashoffset: 0; }

/* ---------- Cartes ---------- */
.card {
  border-radius: var(--radius); background: var(--white); border: 1px solid rgba(23, 23, 23, .08);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(23, 23, 23, .09); border-color: rgba(179, 38, 50, .25); }
.card-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }

.profile { padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.profile .num { font-family: var(--font-serif); font-size: 44px; line-height: 1; color: var(--accent); transition: transform .45s var(--ease-out); display: inline-block; }
.profile:hover .num { transform: translateX(6px); }
.profile h3 { font-size: 24px; }

.lever { position: relative; overflow: hidden; padding: 40px; background: var(--cream); border-color: transparent; display: flex; flex-direction: column; gap: 18px; }
.lever::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.lever:hover::before { transform: scaleX(1); }
.lever:hover { background: var(--white); }
.lever-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lever-n { font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.lever-tag { font-size: 13px; color: var(--muted); text-align: right; }
.lever h3 { font-size: clamp(24px, 2.3vw, 30px); line-height: 1.15; }
.arrow-list { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.arrow-list li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; }
.arrow-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s var(--ease-out);
}
.arrow-list li:hover::before { transform: translateX(4px); }

/* ---------- Formats ---------- */
.formats { position: relative; overflow: hidden; background: var(--accent); color: var(--white); padding: 88px 0; }
.formats-curve { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
.formats .container { position: relative; }
.formats-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 44px; }
.formats h2, .formats h3 { color: var(--white); }
.format {
  padding: 28px; border-radius: 20px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22);
  display: flex; flex-direction: column; gap: 12px;
  transition: background-color .35s var(--ease), transform .45s var(--ease-out), border-color .35s var(--ease);
}
.format:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); transform: translateY(-4px); }
.format h3 { font-size: 21px; }
.format p { font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .9); }

/* ---------- Approche ---------- */
.steps-wrap { position: relative; }
.steps-curve { position: absolute; left: 0; top: 0; width: 100%; height: 260px; pointer-events: none; }
.mask-path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-out); }
.steps-wrap.is-in .mask-path { stroke-dashoffset: 0; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: start; }
.step {
  margin-top: var(--offset, 0); padding: 32px 28px; border-radius: var(--radius); background: var(--white);
  border: 1px solid rgba(23, 23, 23, .08); box-shadow: 0 10px 30px rgba(23, 23, 23, .05);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.step:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(23, 23, 23, .1); }
.step-n { width: 52px; height: 52px; border-radius: 50%; color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 20px; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.step:hover .step-n { transform: scale(1.12) rotate(-6deg); }
.step h3 { font-size: 26px; }
.step > p { font-size: 16px; }
.step .card-foot p { font-size: 15px; line-height: 1.55; }

.principles-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; margin-top: 64px; }
.principles { padding: 40px; display: flex; flex-direction: column; gap: 22px; }
.principles:hover { transform: none; }
.principles h3 { font-size: 24px; }
.principles ol { display: flex; flex-direction: column; gap: 14px; }
.principles li { display: flex; gap: 16px; align-items: baseline; font-size: 17px; line-height: 1.5; }
.principles li span { flex-shrink: 0; font-family: var(--font-serif); font-size: 22px; color: var(--accent); }
.quote-card { margin: 0; padding: 44px; border-radius: var(--radius); background: var(--ink); color: var(--white); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.quote-card p { font-family: var(--font-serif); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.3; }

/* ---------- Votre allié ---------- */
.ally-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.ally-side { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 110px; }
.portrait { position: relative; margin: 0; height: 560px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .06); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 20%; filter: grayscale(1) contrast(1.05); transform: scale(1.04); transition: filter .9s var(--ease), transform 1.2s var(--ease-out); }
.portrait:hover img { filter: grayscale(0) contrast(1); transform: scale(1.08); }
.portrait figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 26px; background: rgba(23, 23, 23, .88); display: flex; flex-direction: column; gap: 2px; }
.portrait figcaption strong { font-family: var(--font-display); font-size: 19px; }
.portrait figcaption span { font-size: 14px; color: rgba(255, 255, 255, .72); }
.portrait::after { /* liseré rouge qui se déploie */
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out) .4s;
}
.portrait.is-in::after { transform: scaleX(1); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); font-size: 14px; color: rgba(255, 255, 255, .9); transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.chips li:hover { background: rgba(255, 255, 255, .08); border-color: var(--rose); }
.ally-name { display: flex; flex-direction: column; gap: 4px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .15); border-bottom: 1px solid rgba(255, 255, 255, .15); }
.ally-name strong { font-family: var(--font-display); font-size: 26px; }
.ally-name span { font-size: 17px; color: rgba(255, 255, 255, .72); }
#allie .body-md { color: rgba(255, 255, 255, .85); }
.ally-quote { margin: 8px 0 0; padding: 32px 36px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .15); border-left: 3px solid var(--accent); }
.ally-quote p { font-family: var(--font-serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.35; }
.ally-quote footer { margin-top: 14px; font-size: 15px; color: rgba(255, 255, 255, .7); }

/* ---------- Réalisations ---------- */
.case { border-radius: var(--radius); border: 1px solid rgba(23, 23, 23, .12); overflow: hidden; display: flex; flex-direction: column; background: var(--white); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.case:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(23, 23, 23, .09); }
.case-head { position: relative; padding: 28px 32px; background: var(--cream); display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.case-head::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.case:hover .case-head::after { transform: scaleX(1); }
.tag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--white); font-size: 13px; font-weight: 600; color: var(--accent); }
.case h3 { font-size: 22px; line-height: 1.25; }
.case-body { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 20px; flex-grow: 1; }
.case-body > div { display: flex; flex-direction: column; gap: 6px; }
.case-body p { font-size: 16px; line-height: 1.6; }
.case-results {
  margin: 4px 0 0;
  padding-left: 1.15em;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}
.case-results li::marker { color: var(--accent); }

/* ---------- Appel à l’action ---------- */
.cta-wrap { padding-top: 96px; }
.cta { position: relative; overflow: hidden; padding: 72px 64px; border-radius: 32px; background: var(--accent); color: var(--white); display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.cta-curve { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.draw-on-view { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-out) .3s; }
.cta.is-in .draw-on-view { stroke-dashoffset: 0; }
.cta-copy { position: relative; display: flex; flex-direction: column; gap: 18px; }
.cta h2 { color: var(--white); }
.cta p { font-size: 19px; line-height: 1.6; color: rgba(255, 255, 255, .92); }
.cta .btn { position: relative; justify-self: end; }

/* ---------- Contact ---------- */
.contact-card { margin-top: 8px; padding: 36px 40px; border-radius: var(--radius-lg); background: var(--ink); color: var(--white); display: flex; flex-direction: column; align-items: flex-start; }
.contact-row { width: 100%; display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); color: var(--white); font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.contact-row:nth-of-type(3) { border-bottom: 0; margin-bottom: 24px; }
.contact-row:hover { color: var(--white); }
.contact-row small { display: block; font-size: 13px; font-weight: 400; color: rgba(255, 255, 255, .68); }
.ico { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; transition: background-color .3s var(--ease), transform .4s var(--ease-out); }
.ico svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-row:hover .ico { background: var(--accent); transform: rotate(-8deg) scale(1.06); }

.faq { padding-top: 40px; }
.faq h3 { font-size: 32px; letter-spacing: -.01em; margin-bottom: 20px; }
.faq-item { border-top: 1px solid rgba(23, 23, 23, .12); }
.faq-item:last-child { border-bottom: 1px solid rgba(23, 23, 23, .12); }
.faq-q {
  width: 100%; min-height: 64px; padding: 18px 0; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left;
  font-family: var(--font-body); font-size: 18px; font-weight: 600; color: var(--ink);
  transition: color .2s var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-sign { position: relative; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--white); transition: background-color .3s var(--ease), transform .4s var(--ease-out); }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--accent); border-radius: 2px; transition: transform .4s var(--ease-out), background-color .3s var(--ease); }
.faq-sign::after { transform: rotate(90deg); }
.faq-item.is-open .faq-sign { background: var(--accent); transform: rotate(180deg); }
.faq-item.is-open .faq-sign::before, .faq-item.is-open .faq-sign::after { background: var(--white); }
.faq-item.is-open .faq-sign::after { transform: rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 48px 22px 0; font-size: 17px; line-height: 1.6; opacity: 0; transform: translateY(-6px); transition: opacity .35s var(--ease), transform .45s var(--ease-out); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-a p { opacity: 1; transform: none; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: var(--white); padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.brand-light { color: var(--white); font-size: 22px; gap: 14px; }
.brand-light img { width: 64px; height: 64px; border: 1px solid rgba(255, 255, 255, .25); }
.muted { max-width: 380px; font-size: 16px; color: rgba(255, 255, 255, .72); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span { color: rgba(255, 255, 255, .85); width: fit-content; }
.footer-col a { background: linear-gradient(var(--rose), var(--rose)) left bottom / 0 1px no-repeat; transition: background-size .35s var(--ease-out), color .2s var(--ease); }
.footer-col a:hover { color: var(--white); background-size: 100% 1px; }
.footer-col .footer-title { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rose); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .7); }
.to-top svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.to-top:hover { color: var(--white); }
.to-top:hover svg { transform: translateY(-3px); }

/* =========================================================
   Révélations au défilement (activées seulement si JS)
   ========================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s var(--ease), background-color .3s var(--ease); transition-delay: calc(var(--n, 0) * 110ms); }
.js [data-stagger] > .is-in { opacity: 1; transform: none; }
.js [data-stagger] > .is-in:hover { transition-delay: 0ms; }
.js .card.is-in:hover, .js .case.is-in:hover, .js .step.is-in:hover { transform: translateY(-6px); }
.js .format.is-in:hover { transform: translateY(-4px); }
.js .eyebrow::before { transform: scaleX(0); transition: transform .8s var(--ease-out) .25s; }
.js .is-in .eyebrow::before, .js .eyebrow.is-in::before, .hero .eyebrow::before { transform: scaleX(1); }

/* ---------- Images clés ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes card-in { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes logo-in { from { opacity: 0; transform: scale(.82) rotate(-18deg); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(3); opacity: 0; } }
@keyframes drift { from { transform: translateX(-2%) translateY(0); } to { transform: translateX(2%) translateY(-6%); } }

/* =========================================================
   Adaptatif
   ========================================================= */
@media (max-width: 1100px) {
  :root { --gutter: 32px; --section-y: 96px; }
  .nav-links { gap: 20px; }
  .nav-menu { gap: 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding-top: 72px; padding-bottom: 88px; }
  .hero-visual { height: 460px; max-width: 560px; width: 100%; }
  .two-col, .ally-grid { grid-template-columns: 1fr; gap: 56px; }
  .ally-side { position: static; flex-direction: row; align-items: flex-start; }
  .portrait { flex: 0 0 46%; height: 480px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { margin-top: 0; }
  .steps-curve { display: none; }
  .cta { grid-template-columns: 1fr; padding: 56px 44px; }
  .cta .btn { justify-self: start; }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 48px; height: 48px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--ink); cursor: pointer;
  }
  .nav-toggle span { height: 2px; background: var(--white); border-radius: 2px; transition: transform .35s var(--ease-out), opacity .2s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 24px var(--gutter) 32px; background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(23, 23, 23, .08);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .45s var(--ease-out), visibility 0s linear .45s;
  }
  .nav-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease-out); }
  .nav-links { flex-direction: column; gap: 4px; }
  .nav-links a { display: block; padding: 12px 0; font-size: 20px; font-family: var(--font-display); font-weight: 600; }
  .nav-links a::after { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .principles-row { grid-template-columns: 1fr; }
  .formats-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; --section-y: 72px; }
  body { font-size: 16px; }
  .brand span { font-size: 16px; }
  .brand img { width: 44px; height: 44px; }
  .hero-grid { padding-top: 48px; padding-bottom: 64px; }
  .hero-visual { height: 400px; }
  .hero-panel { inset: 0; }
  .hero-logo { width: 180px; height: 180px; margin-top: 70px; }
  .float-a { left: 12px; top: 16px; width: 180px; padding: 14px 16px; gap: 6px; }
  .mini-steps li { font-size: 16px; }
  .float-b { right: 12px; bottom: 16px; padding: 12px 16px; }
  .actions .btn { width: 100%; }
  .body-lg, .body-md { font-size: 17px; }
  .grid-2, .grid-4, .steps { grid-template-columns: 1fr; }
  .dark-card, .contact-card, .principles, .quote-card { padding: 28px 24px; }
  .profile, .lever { padding: 28px; }
  .case-head, .case-body { padding-left: 24px; padding-right: 24px; }
  .ally-side { flex-direction: column; }
  .portrait { flex: none; width: 100%; height: 440px; }
  .cta { padding: 44px 24px; border-radius: 24px; }
  .cta .btn { width: 100%; white-space: normal; text-align: center; }
  .contact-card { padding: 24px 20px 28px; }
  .contact-row { font-size: 15px; gap: 12px; }
  .contact-row .btn, .contact-card .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .section-head { margin-bottom: 40px; }
}

/* Accessibilité : mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .draw, .mask-path, .draw-on-view { stroke-dashoffset: 0 !important; }
}
