/* MM-SECRÉTARIAT — v13 Fixed Responsive */

:root {
  --primary: #1E3A5F; --primary-light: #2A4D7A; --primary-dark: #152C49;
  --accent: #2563EB; --accent-light: #4F83F0; --accent-pale: #EBF2FF; --accent-glow: rgba(37,99,235,.1);
  --bg: #FFFFFF; --bg-warm: #F7F8FA;
  --text: #1E293B; --text-60: #475569; --text-40: #64748B; --text-20: #94A3B8; --text-10: #CBD5E1;
  --border: #E2E8F0; --success: #059669; --error: #DC2626;
  --text-xs: .75rem; --text-sm: .875rem; --text-base: 1rem; --text-lg: 1.125rem;
  --text-xl: 1.25rem; --text-2xl: 1.5rem;
  --text-display: clamp(2rem, 4vw, 3.2rem); --text-hero: clamp(2.4rem, 5vw, 3.8rem);
  --font-display: 'Playfair Display', Georgia, serif; --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --space-section: clamp(56px, 7vw, 88px); --space-block: clamp(28px, 4vw, 48px);
  --radius: 10px; --radius-lg: 16px; --radius-xl: 24px;
  --shadow-s: 0 1px 3px rgba(0,0,0,.04); --shadow-m: 0 4px 20px rgba(0,0,0,.06);
  --shadow-l: 0 12px 40px rgba(0,0,0,.08); --shadow-xl: 0 20px 56px rgba(0,0,0,.1);
  --transition: .35s cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.75; overflow-x: hidden; }
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; }

/* ═══ LAYOUT — container is 100% on small screens, max 1340px on large ═══ */
.container { width: 100%; max-width: 1340px; margin: 0 auto; padding: 0 24px; }
.section { padding: var(--space-section) 0; }
.section--dark { background: var(--primary); color: #fff; }
.section--alt { background: var(--bg-warm); }
.page-first { padding-top: clamp(112px, 14vw, 136px); }
.text-center { text-align: center; }

/* ═══ TYPOGRAPHY ═══ */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--text-xs); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--accent); }
.headline { font-size: var(--text-display); margin-bottom: 16px; color: var(--primary); }
.headline em { font-style: italic; color: var(--accent); }
.subline { font-size: var(--text-base); color: var(--text-40); max-width: 560px; line-height: 1.8; margin-left: auto; margin-right: auto; }
.section--dark .headline { color: #fff; }
.section--dark .subline { color: rgba(255,255,255,.5); }

/* ═══ BUTTONS ═══ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 60px; font-size: var(--text-sm); font-weight: 600; border: none; cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(30,58,95,.25); }
.btn--gold { background: var(--accent); color: #fff; }
.btn--gold:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--primary); border: 1.5px solid var(--border); padding: 12px 26px; }
.btn--outline:hover { border-color: var(--primary); background: var(--primary); color: #fff; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .3s; }
.btn:hover svg { transform: translateX(3px); }

/* ═══ NAV ═══ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1008; padding: 14px 0; transition: all var(--transition); }
.nav.scrolled, .nav.nav--light { background: rgba(255,255,255,.96); backdrop-filter: blur(20px); padding: 8px 0; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.nav__container { width: 100%; max-width: 1340px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: var(--text-xl); color: #fff; transition: color var(--transition); }
.nav__logo span { color: inherit; }
.nav.scrolled .nav__logo, .nav.nav--light .nav__logo { color: var(--primary); }

.nav__logo-img { height: 64px; width: auto; display: block; transition: all var(--transition); }
.nav__logo-secondary { height: 36px; width: auto; display: block; transition: all var(--transition); }
.nav.scrolled .nav__logo-img, .nav.nav--light .nav__logo-img { height: 52px; }
.nav.scrolled .nav__logo-secondary, .nav.nav--light .nav__logo-secondary { height: 30px; }

/* ── Logo dynamique : dark (hero foncé) / light (après scroll) ── */
/* Sur fond sombre : version blanche visible, version couleur masquée */
.nav__logo-img--dark    { filter: brightness(0) invert(1); opacity: .92; }
.nav__logo-img--light   { display: none; }
.nav__logo-secondary--dark  { filter: brightness(0) invert(1); opacity: .8; }
.nav__logo-secondary--light { display: none; }

/* Après scroll (fond blanc) : version couleur visible, version blanche masquée */
.nav.scrolled .nav__logo-img--dark,
.nav.nav--light .nav__logo-img--dark    { display: none; }
.nav.scrolled .nav__logo-img--light,
.nav.nav--light .nav__logo-img--light   { display: block; filter: none; opacity: 1; }

.nav.scrolled .nav__logo-secondary--dark,
.nav.nav--light .nav__logo-secondary--dark  { display: none; }
.nav.scrolled .nav__logo-secondary--light,
.nav.nav--light .nav__logo-secondary--light { display: block; filter: none; opacity: 1; }
.footer__logo-img { height: 48px; filter: brightness(0) invert(1); opacity: .85; }
.footer__logo-secondary { height: 28px; filter: brightness(0) invert(1); opacity: .85; }

/* ═══ NAV TOGGLE (burger) ═══ */
/* Bouton visible uniquement en mobile — zone de clic 44×44px (WCAG) */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1020;
  cursor: pointer;
  padding: 11px 9px;
  box-sizing: border-box;
  flex-shrink: 0;
}
/* Barres du burger — couleur adaptée au contexte */
.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;          /* blanc sur hero foncé */
  position: absolute;
  left: 9px;
  transition: all .3s ease;
  border-radius: 2px;
}
/* Sur nav claire (pages intérieures ou après scroll) → barres foncées */
.nav.scrolled .nav__toggle span,
.nav.nav--light .nav__toggle span { background: var(--primary); }

/* Positions des 3 barres au repos */
.nav__toggle span:nth-child(1) { top: 11px; }
.nav__toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav__toggle span:nth-child(3) { bottom: 11px; }

/* Animation croix — barres TOUJOURS blanches quand menu ouvert (fond foncé) */
.nav__toggle.active span { background: #fff !important; }
.nav__toggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; transform: translateY(-50%) scaleX(0); }
.nav__toggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ═══ NAV MENU — desktop ═══ */
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu a { font-size: var(--text-sm); font-weight: 500; color: rgba(255,255,255,.7); padding: 8px 14px; border-radius: 60px; transition: all var(--transition); }
.nav__menu a:hover, .nav__menu a.active { color: #fff; }
.nav.scrolled .nav__menu a, .nav.nav--light .nav__menu a { color: var(--text-40); }
.nav.scrolled .nav__menu a:hover, .nav.scrolled .nav__menu a.active,
.nav.nav--light .nav__menu a:hover, .nav.nav--light .nav__menu a.active { color: var(--primary); }
.nav__cta { background: var(--accent) !important; color: #fff !important; font-weight: 600 !important; padding: 9px 20px !important; }

/* ═══ NAV DRAWER (mobile) + OVERLAY ═══ */
/* Panneau latéral droit — s'ouvre depuis la droite, fond foncé */
.nav__drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: var(--primary-dark);
  z-index: 1010;
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.22,.61,.36,1);
  box-shadow: -8px 0 32px rgba(0,0,0,.25);
  overflow-y: auto;
}
.nav__drawer.open { transform: translateX(0); }

/* En-tête du drawer : logo + bouton fermer */
.nav__drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.nav__drawer-brand {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: #fff;
}
.nav__drawer-brand span { color: var(--accent-light); }

/* Bouton ✕ fermer — toujours blanc sur fond foncé */
.nav__drawer-close {
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  color: rgba(255,255,255,.6);
  transition: color .2s, background .2s;
  flex-shrink: 0;
}
.nav__drawer-close:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav__drawer-close svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Liens du drawer */
.nav__drawer-links {
  flex: 1;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav__drawer-links a {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  padding: 12px 16px;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
  text-decoration: none;
}
.nav__drawer-links a:hover,
.nav__drawer-links a.active { color: #fff; background: rgba(255,255,255,.06); }
.nav__drawer-links a.nav__cta {
  margin-top: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-align: center;
}
.nav__drawer-links a.nav__cta:hover { background: var(--accent-light); }

/* Overlay semi-transparent derrière le drawer */
.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1009;
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s ease;
}
.nav__overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ═══ HERO ═══ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background: linear-gradient(160deg, var(--primary-dark), var(--primary) 40%, var(--primary-light)); overflow: hidden; padding: clamp(96px, 12vw, 120px) 0 clamp(48px, 6vw, 80px); }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 70% 30%, rgba(37,99,235,.08), transparent 70%); }
.hero__grid-lines { position: absolute; inset: 0; opacity: .025; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 80px 80px; }
.hero__content { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-block); align-items: center; }
.hero__text { color: #fff; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 60px; background: rgba(37,99,235,.12); border: 1px solid rgba(37,99,235,.2); font-size: var(--text-xs); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-light); margin-bottom: 28px; max-width: 100%; white-space: normal; word-break: break-word; }
.hero__badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero h1 { font-size: var(--text-hero); margin-bottom: 24px; line-height: 1.1; }
.hero h1 em { font-style: italic; color: var(--accent-light); }
.hero__desc { font-size: var(--text-base); color: rgba(255,255,255,.55); line-height: 1.8; margin-bottom: 36px; max-width: 480px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__trust { margin-top: var(--space-block); display: flex; align-items: center; gap: 16px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.hero__avatars { display: flex; }
.hero__avatar { width: 36px; height: 36px; border-radius: 50%; margin-left: -8px; border: 2px solid var(--primary); display: flex; align-items: center; justify-content: center; font-size: var(--text-xs); font-weight: 700; color: var(--primary); }
.hero__avatar:first-child { margin-left: 0; }
.hero__trust-text { font-size: var(--text-sm); color: rgba(255,255,255,.4); }
.hero__trust-text strong { color: #fff; }
.hero__visual { display: flex; justify-content: center; }
.hero__card { width: 100%; max-width: 380px; padding: 28px; background: rgba(255,255,255,.05); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-xl); }
.kpi { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.05); min-width: 0; }
.kpi:last-child { border-bottom: none; }
.kpi__icon { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; background: rgba(37,99,235,.12); display: flex; align-items: center; justify-content: center; }
.kpi__icon svg { width: 18px; height: 18px; stroke: var(--accent-light); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kpi h4 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); color: #fff; overflow: hidden; text-overflow: ellipsis; }
.kpi p { font-size: var(--text-xs); color: rgba(255,255,255,.4); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; }
.kpi > div:last-child { min-width: 0; overflow: hidden; }

/* ═══ RIBBON ═══ */
.ribbon { background: #fff; position: relative; z-index: 10; margin: -44px auto 0; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); width: calc(100% - 48px); max-width: 1340px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.ribbon__item { padding: 28px 16px; text-align: center; border-right: 1px solid var(--border); }
.ribbon__item:last-child { border-right: none; }
.ribbon__num { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--primary); line-height: 1; }
.ribbon__label { font-size: var(--text-xs); color: var(--text-40); margin-top: 4px; }

/* ═══ SERVICE CARDS ═══ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: var(--space-block); }
.svc-card { background: #fff; border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--border); transition: all var(--transition); position: relative; overflow: hidden; }
.svc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-light)); transform: scaleX(0); transition: transform .4s; transform-origin: left; }
.svc-card:hover { box-shadow: var(--shadow-l); transform: translateY(-3px); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card__icon { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 20px; background: var(--accent-glow); display: flex; align-items: center; justify-content: center; }
.svc-card__icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h3 { font-size: var(--text-xl); color: var(--primary); margin-bottom: 10px; }
.svc-card > p { color: var(--text-40); font-size: var(--text-sm); line-height: 1.75; }

/* ═══ SERVICE DETAIL ═══ */
.svc-detail { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px,6vw,80px); align-items: start; padding: var(--space-section) 0; border-bottom: 1px solid var(--border); }
.svc-detail:last-child { border-bottom: none; }
.svc-detail--alt { direction: rtl; }
.svc-detail--alt > * { direction: ltr; }

/* Colonne gauche : numéro + titre fort */
.svc-detail__lead { position: sticky; top: 96px; }
.svc-detail__num {
  display: block;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1; letter-spacing: -.03em;
  color: var(--accent); opacity: .18;
  margin-bottom: 12px;
}
.svc-detail__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.15; letter-spacing: -.02em;
  color: var(--primary); margin-bottom: 14px;
}
.svc-detail__desc { font-size: var(--text-sm); color: var(--text-40); line-height: 1.75; margin-bottom: 20px; }

/* Colonne droite */
.svc-detail__body { padding-top: 8px; }
.svc-detail h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); margin-bottom: 14px; }
.svc-detail .problem, .svc-detail .solution { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 14px; }
.svc-detail .problem { background: rgba(220,38,38,.04); border-left: 3px solid var(--error); }
.svc-detail .solution { background: rgba(5,150,105,.04); border-left: 3px solid var(--success); }
.svc-detail .problem h5, .svc-detail .solution h5 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.svc-detail .problem h5 { color: var(--error); } .svc-detail .solution h5 { color: var(--success); }
.svc-detail .problem p, .svc-detail .solution p { font-size: var(--text-sm); color: var(--text-60); }
.benefits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.benefits span { padding: 5px 12px; border-radius: 60px; font-size: var(--text-xs); font-weight: 600; background: var(--accent-pale); color: var(--accent); }

/* ═══ ABOUT ═══ */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px,6vw,80px); align-items: start; }

/* Colonne gauche : nom + stats */
.about-lead { position: sticky; top: 96px; }

/* About paragraphs */
.about-p { color: var(--text-40); line-height: 1.85; margin-bottom: 16px; }
.about-p:last-of-type { margin-bottom: 0; }

.about-lead .eyebrow { margin-bottom: 16px; }
.about-lead__name {
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.1; letter-spacing: -.025em;
  color: var(--primary); margin-bottom: 6px;
}
.about-lead__role { font-size: var(--text-sm); color: var(--text-40); margin-bottom: 32px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; }
.about-stat { background: var(--bg); padding: 20px 16px; }
.about-stat__val {
  display: block;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  line-height: 1; letter-spacing: -.03em;
  color: var(--primary); margin-bottom: 5px;
}
.about-stat__label { font-size: var(--text-xs); color: var(--text-40); line-height: 1.4; }

.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.value-card { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--bg-warm); transition: all var(--transition); }
.value-card:hover { background: #fff; box-shadow: var(--shadow-s); }
.value-icon { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; background: var(--accent-glow); display: flex; align-items: center; justify-content: center; }
.value-icon svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.value-card h4 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); color: var(--primary); margin-bottom: 2px; }
.value-card p { font-size: var(--text-xs); color: var(--text-40); }

/* ═══ WHY CARDS ═══ */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: var(--space-block); }
.why-card { padding: 28px 20px; border-radius: var(--radius-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); text-align: center; transition: all var(--transition); position: relative; overflow: hidden; }
.why-card:hover { background: rgba(255,255,255,.08); transform: translateY(-3px); border-color: rgba(255,255,255,.12); }
.why-card__num { font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: .05em; color: var(--accent-light); opacity: .7; margin-bottom: 12px; display: block; }
.why-card__watermark { position: absolute; top: -12px; right: 8px; font-family: var(--font-display); font-size: 5rem; line-height: 1; color: #fff; opacity: .03; pointer-events: none; user-select: none; }
.why-card h3 { font-size: var(--text-base); margin-bottom: 8px; color: #fff; }
.why-card p { font-size: var(--text-sm); color: rgba(255,255,255,.4); line-height: 1.7; }

/* ═══ TIMELINE ═══ */
/* ── Timeline horizontale (4 étapes, accueil/fonctionnement desktop) ── */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: var(--space-block); position: relative; }
.timeline::before { content: ''; position: absolute; top: 36px; left: 12.5%; right: 12.5%; height: 2px; background: var(--border); }
.timeline__step { text-align: center; position: relative; padding: 0 16px; }
.timeline__num { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--border); font-family: var(--font-display); font-size: var(--text-xl); color: var(--accent); box-shadow: var(--shadow-m); position: relative; z-index: 1; transition: all var(--transition); }
.timeline__step:hover .timeline__num { background: var(--primary); color: #fff; border-color: var(--primary); }
.timeline__content h3 { font-size: var(--text-base); color: var(--primary); margin-bottom: 6px; }
.timeline__content p { font-size: var(--text-sm); color: var(--text-40); line-height: 1.7; }
/* Rétrocompatibilité si h3/p sont directs (sans .timeline__content) */
.timeline__step > h3 { font-size: var(--text-base); color: var(--primary); margin-bottom: 6px; }
.timeline__step > p { font-size: var(--text-sm); color: var(--text-40); line-height: 1.7; }

/* ── Timeline verticale 2 colonnes (fonctionnement) ── */
/* Tous les breakpoints : 1 colonne de steps, chaque step = num | contenu  */
/* ── Timeline--2col : desktop identique à .timeline (4 col horizontales) ──
   Le layout vertical (num | texte) ne s'active qu'à ≤1024px.           ── */

/* ═══ TESTIMONIALS ═══ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: var(--space-block); }
.test-card { padding: 28px; border-radius: var(--radius-lg); background: var(--bg-warm); border: 1px solid var(--border); transition: all var(--transition); }
.test-card:hover { box-shadow: var(--shadow-m); transform: translateY(-3px); }
.test-stars { display: flex; gap: 2px; margin-bottom: 14px; }
.test-stars svg { width: 14px; height: 14px; fill: var(--accent); stroke: var(--accent); }
.test-card blockquote { font-size: var(--text-sm); color: var(--text); line-height: 1.8; font-style: italic; margin-bottom: 18px; }
.test-card blockquote::before { content: '\201C'; font-family: var(--font-display); font-size: 2rem; color: var(--accent); line-height: 0; vertical-align: -.5em; margin-right: 2px; }
.test-author { display: flex; align-items: center; gap: 10px; }
.test-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--text-xs); color: #fff; flex-shrink: 0; }
.test-author h4 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); color: var(--primary); }
.test-author p { font-size: var(--text-xs); color: var(--text-40); }

/* ═══ CTA ═══ */
.cta-banner { background: linear-gradient(135deg, var(--primary), var(--primary-light)); padding: clamp(40px, 5vw, 64px) 0; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(37,99,235,.1), transparent 70%); }
.cta-banner h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); color: #fff; margin-bottom: 12px; position: relative; max-width: 680px; margin-left: auto; margin-right: auto; }
.cta-banner p { color: rgba(255,255,255,.5); font-size: var(--text-base); margin-bottom: 28px; position: relative; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner .btn { position: relative; }

/* ═══ CONTACT ═══ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--space-block); align-items: start; }
.contact-info h3 { font-size: var(--text-xl); margin-bottom: 12px; color: var(--primary); }
.contact-info > p { color: var(--text-40); line-height: 1.8; margin-bottom: 24px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: none; }
.contact-item__icon { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; background: var(--accent-glow); display: flex; align-items: center; justify-content: center; }
.contact-item__icon svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-item h4 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); color: var(--primary); }
.contact-item p { font-size: var(--text-sm); color: var(--text-40); }
.form-card { background: #fff; border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-l); border: 1px solid var(--border); }
.form-card h3 { font-size: var(--text-xl); margin-bottom: 4px; color: var(--primary); }
.form-card > p { color: var(--text-40); font-size: var(--text-sm); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: var(--text-xs); font-weight: 600; color: var(--text-60); margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border-radius: var(--radius); border: 1.5px solid var(--border); font-family: var(--font-body); font-size: var(--text-sm); color: var(--text); background: var(--bg); outline: none; box-sizing: border-box; transition: border var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-group textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-20); }
.form-group .error-msg { font-size: var(--text-xs); color: var(--error); margin-top: 4px; display: none; }
.form-group.has-error input, .form-group.has-error textarea { border-color: var(--error); }
.form-group.has-error .error-msg { display: block; }
.form-submit { width: 100%; justify-content: center; }
.form-feedback { margin-top: 12px; padding: 12px 16px; border-radius: var(--radius); font-size: var(--text-sm); text-align: center; display: none; }
.form-feedback.success { display: block; background: rgba(5,150,105,.06); color: var(--success); border: 1px solid rgba(5,150,105,.12); }
.form-feedback.error { display: block; background: rgba(220,38,38,.06); color: var(--error); border: 1px solid rgba(220,38,38,.12); }

/* ═══ REASSURANCE ═══ */
.reassurance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: var(--space-block); }
.reassurance__item { text-align: center; padding: 20px 12px; }
.reassurance__icon { margin: 0 auto 12px; width: 44px; height: 44px; border-radius: 10px; background: var(--accent-glow); display: flex; align-items: center; justify-content: center; }
.reassurance__icon svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reassurance__item h4 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); color: var(--primary); margin-bottom: 4px; }
.reassurance__item p { font-size: var(--text-xs); color: var(--text-40); }

/* ═══ LEGAL ═══ */
/* ── Legal pages ──────────────────────────────────────── */
.legal-page { background: var(--bg); }
.legal-container { max-width: 800px; }

.legal-header { margin-bottom: 48px; }
.legal-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem); color: var(--primary);
  line-height: 1.1; letter-spacing: -.02em; margin-bottom: 16px;
}
.legal-intro { font-size: var(--text-base); color: var(--text-60); line-height: 1.8; margin-bottom: 12px; }
.legal-update {
  display: inline-block; font-size: var(--text-xs); color: var(--text-20);
  background: var(--bg-warm); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: var(--r-full); margin-top: 8px;
}

/* Table of contents */
.legal-toc {
  background: var(--bg-warm); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 28px;
  margin-bottom: 40px;
}
.legal-toc__title {
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--text-40); margin-bottom: 12px;
}
.legal-toc__list { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.legal-toc__list li { font-size: var(--text-sm); }
.legal-toc__list a {
  color: var(--text-60); text-decoration: none; transition: color .15s;
  padding: 2px 0; display: block;
}
.legal-toc__list a:hover { color: var(--accent); }

/* Sections */
.legal-sections { display: flex; flex-direction: column; }
.legal-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-child { border-bottom: none; }
.legal-section h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--text-2xl); color: var(--primary);
  margin-bottom: 16px; line-height: 1.2;
  scroll-margin-top: 96px;
}
.legal-section h3 {
  font-family: var(--font-body); font-weight: 600;
  font-size: var(--text-base); color: var(--primary);
  margin: 24px 0 8px;
}
.legal-section h3:first-child { margin-top: 0; }
.legal-section p { font-size: var(--text-sm); color: var(--text-60); line-height: 1.85; margin-bottom: 12px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul, .legal-section ol { margin: 8px 0 16px 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.legal-section li {
  font-size: var(--text-sm); color: var(--text-60); line-height: 1.7;
  padding-left: 20px; position: relative;
}
.legal-section li::before {
  content: '–'; position: absolute; left: 0; color: var(--accent);
  font-weight: 600;
}
.legal-section a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Bloc encadré */
.legal-block {
  background: var(--bg-warm); border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 16px 20px; margin: 16px 0;
}
.legal-block p { margin-bottom: 0 !important; }

/* Encadré highlight */
.legal-highlight {
  background: var(--accent-pale); border: 1px solid var(--accent-glow);
  border-radius: var(--radius); padding: 14px 18px; margin: 16px 0;
  font-size: var(--text-sm); color: var(--ink, var(--primary)); line-height: 1.7;
}

/* Tableau */
.legal-table-wrap { overflow-x: auto; margin: 16px 0; border-radius: var(--radius); border: 1px solid var(--border); }
.legal-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.legal-table th {
  background: var(--bg-warm); text-align: left;
  padding: 10px 16px; font-weight: 600; font-size: var(--text-xs);
  color: var(--text-40); text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
}
.legal-table td { padding: 12px 16px; color: var(--text-60); border-bottom: 1px solid var(--border); line-height: 1.6; vertical-align: top; }
.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr:hover td { background: var(--bg-warm); }

/* Custom content (admin) */
.legal-content--custom h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--text-base); color: var(--primary); margin: 24px 0 8px; }
.legal-content--custom h3:first-child { margin-top: 0; }
.legal-content--custom p { margin-bottom: 12px; font-size: var(--text-sm); color: var(--text-60); line-height: 1.85; }
.legal-content--custom ul, .legal-content--custom ol { margin: 8px 0 16px 20px; }
.legal-content--custom li { font-size: var(--text-sm); color: var(--text-60); margin-bottom: 4px; list-style: disc; }
.legal-content--custom a { color: var(--accent); text-decoration: underline; }

/* ═══ FOOTER ═══ */
.footer { background: var(--primary); color: rgba(255,255,255,.4); padding: 48px 0 24px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.06); }
.footer__brand p { font-size: var(--text-sm); line-height: 1.8; margin-top: 10px; max-width: 280px; }
.footer .nav__logo { color: #fff; } .footer .nav__logo span { color: inherit; }
.footer__col h4 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-xs); color: #fff; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; }
.footer__col a { display: block; font-size: var(--text-sm); padding: 3px 0; transition: color .2s; }
.footer__col a:hover { color: var(--accent-light); }
.footer__hours { margin-top: 4px; font-size: var(--text-xs); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; padding-top: 20px; font-size: var(--text-xs); gap: 8px; }
.footer__bottom a { transition: color .2s; } .footer__bottom a:hover { color: var(--accent-light); }

/* ═══ ANIMATIONS ═══ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

/* ═══ ACCESSIBILITY ═══ */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 3px; }
.nav__menu a:focus-visible { outline-color: #fff; }
.form-group input:focus-visible, .form-group textarea:focus-visible, .form-group select:focus-visible { outline: none; /* uses box-shadow instead */ }

/* ═══ CAPTCHA ═══ */
.captcha-group { margin-bottom: 20px; padding-top: 20px; margin-top: 4px; border-top: 1px solid var(--border); }
.captcha-label { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.captcha-label-text { font-size: var(--text-xs); font-weight: 700; color: var(--text-40); letter-spacing: .3px; text-transform: uppercase; }
.captcha-hint { font-size: 11px; color: var(--text-20); font-weight: 400; text-transform: none; letter-spacing: 0; }
.captcha-row { display: flex; align-items: center; gap: 12px; }
.captcha-question {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-warm); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 9px 16px;
  flex-shrink: 0;
}
.captcha-op { font-size: var(--text-sm); color: var(--text-40); }
.captcha-expr {
  font-size: var(--text-base); font-weight: 600;
  color: var(--primary); font-family: var(--font-display);
  letter-spacing: .02em; white-space: nowrap;
}
.captcha-input {
  width: 90px; padding: 10px 14px;
  border-radius: var(--radius); border: 1.5px solid var(--border);
  background: #fff; font-size: var(--text-base); font-weight: 600;
  color: var(--primary); text-align: center;
  outline: none; transition: border-color .2s, box-shadow .2s;
  -moz-appearance: textfield;
}
.captcha-input::-webkit-inner-spin-button,
.captcha-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.captcha-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-group.has-error .captcha-input { border-color: var(--error); }
.form-group.has-error .captcha-question { border-color: var(--error); background: rgba(220,38,38,.03); }


/* ═══ HERO SIGNATURE ═══ */
.hero__signature {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: var(--space-block);
  flex-wrap: wrap;
}
/* État 1 : image uploadée */
.hero__signature-img {
  height: clamp(44px, 6vw, 64px);
  width: auto;
  display: block;
  /* Fond transparent → inversion pour affichage blanc sur hero sombre */
  filter: brightness(0) invert(1);
  opacity: .88;
}
/* État 2 : fallback texte cursif */
.hero__signature-text {
  font-family: 'Dancing Script', var(--font-display), cursive;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: rgba(255,255,255,.9);
  line-height: 1;
}
.hero__signature-role {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,.15);
  align-self: center;
}

/* ═══ UTILITAIRES TOKENISÉS ═══ */
.container--narrow { max-width: 800px; margin-left: auto; margin-right: auto; }
.u-center { margin-left: auto; margin-right: auto; }
.mt-block { margin-top: var(--space-block); }
.mt-section { margin-top: var(--space-section); }

/* ═══ CONTACT — encadré disponibilité ═══ */
.contact-availability {
  margin-top: var(--space-block);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-pale), rgba(37,99,235,.04));
  border: 1px solid var(--accent-glow);
}
.contact-availability__label {
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--accent); margin-bottom: 6px;
}
.contact-availability__text {
  font-size: var(--text-sm); color: var(--primary); font-weight: 500;
}
.contact-availability__sub {
  font-size: var(--text-xs); color: var(--text-40); margin-top: 4px;
}

/* ═══ SERVICES — sommaire ancré ═══ */
.svc-summary {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: var(--space-block); justify-content: center;
  padding-bottom: var(--space-block);
}
.svc-summary__item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 60px;
  font-size: var(--text-xs); font-weight: 600;
  background: var(--bg); border: 1.5px solid var(--border);
  color: var(--text-40); text-decoration: none;
  transition: all var(--transition);
}
.svc-summary__item:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-pale);
}
.svc-summary__item span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-glow); color: var(--accent);
  font-size: 10px; font-weight: 700;
}

/* ═══ SERVICES — alternance fond (I3) ═══ */
.svc-section { padding: var(--space-section) 0; }
.svc-section:nth-child(even) { background: var(--bg-warm); }
.svc-section:last-of-type .svc-detail { border-bottom: none; }

/* ═══ TESTIMONIALS — contexte client (A2) ═══ */
.test-context {
  font-size: var(--text-xs); color: var(--text-20);
  margin-top: 2px; font-style: normal;
}

/* ═══ TIMELINE--2COL — layout vertical avec connecteur ═══
 * Toujours en colonne unique (num | texte), à tous les breakpoints.
 * Le container reste grid 1 colonne ; chaque step est grid 72px/1fr.
 ══════════════════════════════════════════════════════════════ */


/* ═══ TIMELINE--2COL : layout vertical à partir de 1024px ═══ */
@media (max-width: 1024px) {
  /* Passe en colonne unique : steps empilés verticalement */
  .timeline--2col { grid-template-columns: 1fr; gap: 0; }
  .timeline--2col::before { display: none; } /* retire la ligne horizontale */

  /* Chaque step : num à gauche | contenu à droite */
  .timeline--2col .timeline__step {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0 16px;
    text-align: left;
    padding: 0 0 28px;
    position: relative;
    align-items: start;
  }
  .timeline--2col .timeline__num {
    grid-column: 1; grid-row: 1;
    margin: 0; flex-shrink: 0; align-self: start;
  }
  .timeline--2col .timeline__content {
    grid-column: 2; grid-row: 1;
  }
  .timeline--2col .timeline__content h3 { margin-top: 10px; margin-bottom: 6px; }

  /* Connecteur vertical entre les steps */
  .timeline--2col .timeline__step::before {
    content: ''; position: absolute;
    left: 35px; top: 72px; bottom: 0;
    width: 2px; background: var(--border);
  }
  .timeline--2col .timeline__step:last-child::before { display: none; }
  .timeline--2col .timeline__step:last-child { padding-bottom: 0; }
}

/* ═══ HERO card — occupation optimale (C3) ═══ */
.hero__card { width: 100%; max-width: none; }

/* ═══ ABOUT — badge disponibilité (A7) ═══ */
.about-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 60px;
  font-size: var(--text-xs); font-weight: 600;
  background: rgba(5,150,105,.08); color: var(--success);
  border: 1px solid rgba(5,150,105,.15);
  margin-top: 20px;
}
.about-badge::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.85); }
}

/* ═══ DRAWER — accessibilité (A6) ═══ */
.nav__drawer[aria-hidden="true"] { visibility: hidden; }
.nav__drawer[aria-hidden="false"] { visibility: visible; }


/* ═══ HOW-STEPS (accueil — remplace reassurance) ═══ */
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: var(--space-block);
}
.how-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.how-step:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-2px);
}
.how-step__num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-pale);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  display: flex; align-items: center; justify-content: center;
}
.how-step h4 {
  font-family: var(--font-body); font-weight: 600;
  font-size: var(--text-sm); color: var(--primary); margin-bottom: 4px;
}
.how-step p {
  font-size: var(--text-sm); color: var(--text-40); line-height: 1.7;
}

/* ═══ ABOUT-ENGAGEMENTS (à propos — remplace values-grid) ═══ */
.about-engagements {
  margin-top: var(--space-block);
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-warm);
  border: 1px solid var(--border);
}
.about-engagements__title {
  font-family: var(--font-body); font-weight: 600;
  font-size: var(--text-base); color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.about-engagement-list {
  display: flex; flex-direction: column; gap: 14px;
}
.about-engagement {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: var(--text-sm); color: var(--text-60); line-height: 1.65;
}
.about-engagement__icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.about-engagement__icon svg {
  width: 14px; height: 14px;
  stroke: var(--accent); fill: none; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.about-engagement strong { color: var(--primary); }

/* ═══ SVC-SECTION (services — alternance fond) ═══ */
.svc-section { padding: var(--space-section) 0; }
.svc-section--alt { background: var(--bg-warm); }
.svc-section .svc-detail {
  border-bottom: none;
  padding: 0;
}

/* Responsive how-steps */
@media (max-width: 768px) {
  .how-steps { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .how-steps { grid-template-columns: 1fr; gap: 16px; }
}

/* ═══ EFFETS TYPOGRAPHIQUES RICHES ═══ */
/* Appliqués via render_rich() sur les titres et sous-titres */

/* Surligné — fond jaune chaud */
.text-highlight {
  background: linear-gradient(180deg, transparent 55%, rgba(253,224,71,.5) 55%);
  padding: 0 2px;
  border-radius: 2px;
}
/* Version fond sombre (hero, section--dark) */
.section--dark .text-highlight,
.hero .text-highlight,
.cta-banner .text-highlight {
  background: linear-gradient(180deg, transparent 55%, rgba(37,99,235,.35) 55%);
}

/* Dégradé — texte en gradient bleu → violet */
.text-gradient {
  background: linear-gradient(90deg, var(--accent) 0%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Fallback pour navigateurs sans support */
  color: var(--accent);
}
/* Version fond sombre */
.section--dark .text-gradient,
.hero .text-gradient,
.cta-banner .text-gradient {
  background: linear-gradient(90deg, #60A5FA 0%, #A78BFA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════ */
/*  RESPONSIVE — v17 Fixed                    */
/* ═══════════════════════════════════════════ */

/* ── 1280px : why-grid passe à 2 colonnes pour éviter les cartes trop étroites ── */
@media (max-width: 1280px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}

/* ── 1100px : footer à 3 colonnes avant de casser ── */
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand p { max-width: 100%; }
}

/* ── 1024px (tablette paysage / petit desktop) ── */
@media (max-width: 1024px) {
  .hero__content { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero__desc { margin: 0 auto 36px; }
  .hero__actions { justify-content: center; }
  .hero__visual { margin-top: 8px; }
  .hero__card { max-width: 100%; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 16px; }
  .kpi { padding: 12px 14px; border-bottom: none; }
  .kpi:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.05); }
  .kpi:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.05); }
  .hero__trust { justify-content: center; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-lead { position: static; }
  .about-stats { grid-template-columns: repeat(2,1fr); }
  /* FIX : svc-detail.reverse explicitement ltr dès 1024px */
  .svc-detail { grid-template-columns: 1fr; gap: 28px; direction: ltr; }
  .svc-detail--alt { direction: ltr; }
  .svc-detail__lead { position: static; }
  .timeline:not(.timeline--2col) { grid-template-columns: 1fr 1fr; gap: 28px; }
  .timeline::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  /* FIX contact-grid : passe en 1 colonne à 1024px pour éviter les inputs trop étroits */
  .contact-grid { grid-template-columns: 1fr; }
  /* FIX ribbon */
  .ribbon { grid-template-columns: 1fr 1fr; width: calc(100% - 32px); margin-top: -32px; }
  .ribbon__item:nth-child(2n) { border-right: none; }
  .reassurance { grid-template-columns: 1fr 1fr; }
  /* FIX reassurance padding sur tablette */
  .reassurance__item { padding: 20px 20px; }
  .nav__container { padding: 0 20px; }
}

/* ── 900px : footer intermédiaire ── */
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ── 768px (tablette portrait / mobile large) ── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav__container { padding: 0 16px; }
  /* Affiche le burger, cache le menu horizontal */
  .nav__toggle { display: block; }
  .nav__menu { display: none; }
  /* Le drawer prend le relais — géré par JS + classes .open */
  .services-grid, .why-grid, .values-grid, .reassurance { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .ribbon { width: calc(100% - 24px); margin-top: -20px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: clamp(96px, 20vw, 120px) 0 48px; }
  .hero h1 { font-size: clamp(1.75rem, 6vw, 2rem); }
  .hero__desc { font-size: var(--text-sm); }
  .hero__card { grid-template-columns: 1fr 1fr; max-width: 100%; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { padding: 12px 24px; justify-content: center; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .svc-card { padding: 24px; }
  .form-card { padding: 24px; }
  .about-lead { padding-bottom: 8px; }
  
  .timeline:not(.timeline--2col) { grid-template-columns: 1fr; gap: 20px; }
  /* num réduit sur tous les breakpoints mobiles, 2col inclus */
  .timeline__num { width: 56px; height: 56px; font-size: var(--text-lg); }
  /* Adapter le connecteur 2col à la num 56px */
  .timeline--2col .timeline__step { grid-template-columns: 56px 1fr; padding-bottom: 20px; }
  .timeline--2col .timeline__step::before { left: 27px; top: 56px; bottom: 0; }
  .nav__logo-img { height: 44px; }
  .nav__logo-secondary { height: 26px; }
  .nav.scrolled .nav__logo-img, .nav.nav--light .nav__logo-img { height: 40px; }
  .nav.scrolled .nav__logo-secondary, .nav.nav--light .nav__logo-secondary { height: 24px; }
}

/* ── 640px : form-row en 1 colonne (meilleur confort de saisie) ── */
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .hero__card { grid-template-columns: 1fr 1fr; }
  /* FIX ribbon sur mobile intermédiaire */
  .ribbon { grid-template-columns: 1fr 1fr; width: calc(100% - 24px); }
  .ribbon__item:nth-child(2n) { border-right: none; }
  .ribbon__item:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ── 480px (mobile standard) ── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav__container { padding: 0 14px; }
  /* FIX ribbon : 1 colonne à 480px */
  .ribbon { grid-template-columns: 1fr; width: calc(100% - 24px); margin-top: -16px; }
  .ribbon__item { border-right: none; border-bottom: 1px solid var(--border); padding: 16px 14px; }
  .ribbon__item:last-child { border-bottom: none; }
  /* FIX hero badge sur 480px */
  .hero__badge { padding: 6px 12px; font-size: .65rem; letter-spacing: 1px; }
  .hero h1 { font-size: 1.75rem; }
  /* FIX hero card : 1 colonne sur petit mobile */
  .hero__card { grid-template-columns: 1fr; padding: 12px; }
  .kpi { border-right: none !important; border-top: none !important; border-bottom: 1px solid rgba(255,255,255,.05); padding: 10px 8px; }
  .kpi:last-child { border-bottom: none; }
  .kpi__icon { width: 34px; height: 34px; }
  .kpi h4 { font-size: var(--text-xs); }
  .svc-card { padding: 20px; }
  .form-card { padding: 18px; }
  .test-card { padding: 18px; }
  .why-card { padding: 18px 14px; }
  .headline { font-size: 1.6rem; }
  .cta-banner h2 { font-size: 1.3rem; }
  .btn { padding: 11px 20px; font-size: var(--text-xs); }
  .nav__logo { font-size: var(--text-base); }
  .nav__logo-img { height: 36px; }
  .nav__logo-secondary { height: 22px; }
  /* FIX values-grid à 1 col sur 480px */
  .values-grid { grid-template-columns: 1fr; }
  /* FIX testimonials padding réduit */
  .test-card blockquote { font-size: var(--text-xs); }
}

/* ── 360px (très petit mobile) ── */
@media (max-width: 360px) {
  .container, .nav__container { padding: 0 12px; }
  .hero__badge { font-size: .6rem; padding: 5px 10px; }
  .hero h1 { font-size: 1.5rem; }
  .headline { font-size: 1.4rem; }
  .btn { padding: 10px 16px; }
  .ribbon { width: calc(100% - 16px); }
  .form-card { padding: 14px; }
  .svc-card { padding: 16px; }
}
