/* ===================================================================
   accelerys — Site vitrine · Phase 1
   Design system + styles
   -------------------------------------------------------------------
   Sommaire
   1.  Design tokens (variables)
   2.  Reset & base
   3.  Layout helpers
   4.  Boutons & éléments réutilisables
   5.  Loader
   6.  Scroll progress
   7.  Header & navigation
   8.  Menu mobile
   9.  Hero
   10. Stats
   11. Sections (head commun)
   12. Expertise (flip)
   13. Services
   14. Footer
   15. Animations utilitaires (reveal)
   16. Responsive
   17. Accessibilité / reduced-motion
   =================================================================== */

/* ---------- 1. DESIGN TOKENS ------------------------------------- */
:root {
  /* Marque */
  --navy:            #2B2D6B;   /* principale */
  --navy-deep:       #1E1F4D;   /* fonds immersifs */
  --navy-deepest:    #16173A;   /* hero / sombre max */
  --red:             #E63946;   /* accent / énergie */
  --red-dark:        #C42C38;   /* hover CTA */
  --white:           #FFFFFF;

  /* Nuances dérivées */
  --lavender:        #EDEEF7;
  --lavender-soft:   #F5F6FB;
  --indigo-electric: #4B4FD6;
  --grey-700:        #5A5C7A;
  --grey-500:        #8E90A8;
  --line:            rgba(43, 45, 107, .12);
  --line-dark:       rgba(255, 255, 255, .10);

  /* Surfaces */
  --bg:              var(--white);
  --bg-soft:         var(--lavender-soft);
  --text:            #1B1C3A;
  --text-soft:       var(--grey-700);

  /* Dégradés signature */
  --grad-brand:      linear-gradient(120deg, var(--navy) 0%, var(--indigo-electric) 100%);
  --grad-accent:     linear-gradient(120deg, var(--navy) 0%, var(--red) 130%);
  --grad-progress:   linear-gradient(90deg, var(--navy) 0%, var(--indigo-electric) 55%, var(--red) 100%);

  /* Typo */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  /* Échelle fluide */
  --h1: clamp(2.6rem, 6.2vw, 5.4rem);
  --h2: clamp(2rem, 4vw, 3.25rem);
  --h3: clamp(1.15rem, 1.6vw, 1.4rem);

  /* Espacements */
  --space-section: clamp(5rem, 10vw, 9rem);
  --container:     1200px;
  --gutter:        clamp(1.25rem, 4vw, 2.5rem);

  /* Rayons */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Ombres */
  --shadow-sm:  0 4px 16px rgba(27, 28, 58, .08);
  --shadow-md:  0 16px 40px rgba(27, 28, 58, .12);
  --shadow-lg:  0 30px 70px rgba(22, 23, 58, .22);
  --shadow-red: 0 14px 30px rgba(230, 57, 70, .32);

  /* Durées */
  --t-fast: .18s;
  --t-med:  .35s;
  --t-slow: .7s;
  --ease:   cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 2. RESET & BASE ------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }

::selection { background: var(--red); color: #fff; }

body.is-locked { overflow: hidden; }

/* ---------- 3. LAYOUT HELPERS ----------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--space-section); position: relative; }

.text-accent { color: var(--red); }

/* ---------- 4. BOUTONS ------------------------------------------ */
.btn {
  --pad-y: .85rem;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: var(--pad-y) 1.5rem;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: .98rem;
  font-family: var(--font-body);
  letter-spacing: -.01em;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-med) var(--ease),
              background var(--t-med) var(--ease),
              color var(--t-med) var(--ease);
  will-change: transform;
}
.btn--lg { --pad-y: 1.05rem; font-size: 1.05rem; padding-inline: 1.9rem; }

.btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn--primary:hover { background: var(--red-dark); box-shadow: 0 18px 38px rgba(230,57,70,.42); }

.btn--ghost {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn__chev { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-med) var(--ease); }
.btn:hover .btn__chev { transform: translateX(4px); }

/* Chevron typographique signature */
.chev { color: var(--red); font-weight: 700; }

/* ---------- 5. LOADER ------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-content: center; justify-items: center; gap: 1.6rem;
  background: var(--navy-deepest);
  transition: opacity .6s ease, visibility .6s ease;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark { display: flex; align-items: center; gap: .9rem; }
.loader__chev { fill: none; stroke-width: 15; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 90; stroke-dashoffset: 90; animation: dash 1s var(--ease) forwards; }
.loader__chev--navy { stroke: #fff; }
.loader__chev--red  { stroke: var(--red); animation-delay: .18s; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.loader__word {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: #fff;
  letter-spacing: -.03em; opacity: 0; transform: translateX(-8px);
  animation: fadeWord .6s var(--ease) .5s forwards;
}
@keyframes fadeWord { to { opacity: 1; transform: none; } }
.loader__bar { width: 160px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--grad-progress); animation: fill 1.4s var(--ease) .2s forwards; }
@keyframes fill { to { width: 100%; } }

/* ---------- 6. SCROLL PROGRESS ---------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad-progress); z-index: 120;
  box-shadow: 0 0 12px rgba(230,57,70,.5);
}

/* ---------- 7. HEADER ------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), padding var(--t-med) var(--ease);
  padding-block: 1.1rem;
}
.header.is-scrolled {
  background: rgba(22, 23, 58, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 6px 24px rgba(10, 11, 30, .28);
  padding-block: .7rem;
  border-bottom: 1px solid var(--line-dark);
}
.header__inner { display: flex; align-items: center; gap: 1.5rem; }
.header__logo img { height: 38px; width: auto; transition: height var(--t-med) var(--ease); }
.header.is-scrolled .header__logo img { height: 32px; }

.nav { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav__link {
  position: relative; color: rgba(255,255,255,.82); font-weight: 500; font-size: .95rem;
  padding: .5rem .8rem; border-radius: var(--r-sm); transition: color var(--t-fast) var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .28rem; height: 2px;
  background: var(--red); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: #fff; }
.nav__link--soon { color: rgba(255,255,255,.34); cursor: not-allowed; pointer-events: none; }
.nav__link--soon::after { display: none; }

.header__cta { margin-left: .4rem; }
.header__cta .btn__chev { stroke-width: 2.4; }

/* Burger */
.burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; z-index: 210; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast) var(--ease), top var(--t-med) var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- 8. MENU MOBILE -------------------------------------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: linear-gradient(160deg, var(--navy-deepest), var(--navy-deep));
  display: grid; place-content: center;
  opacity: 0; visibility: hidden; transition: opacity var(--t-med) var(--ease), visibility var(--t-med) var(--ease);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: .4rem; text-align: center; }
.mobile-menu__link {
  font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: #fff;
  padding: .35rem 1rem; opacity: 0; transform: translateY(18px);
  transition: color var(--t-fast) var(--ease);
}
.mobile-menu.is-open .mobile-menu__link {
  animation: menuIn .5s var(--ease) forwards; animation-delay: calc(.1s + var(--i) * .07s);
}
@keyframes menuIn { to { opacity: 1; transform: none; } }
.mobile-menu__link:not(.mobile-menu__link--soon):hover { color: var(--red); }
.mobile-menu__link--soon { color: rgba(255,255,255,.4); font-size: 1.5rem; pointer-events: none; }
.mobile-menu__link--soon em { font-size: .7rem; font-style: normal; vertical-align: middle; color: var(--red);
  border: 1px solid rgba(230,57,70,.5); border-radius: var(--r-pill); padding: .1rem .5rem; margin-left: .4rem; }
.mobile-menu__cta { justify-content: center; margin-top: 1.2rem; }

/* ---------- 9. HERO --------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: radial-gradient(120% 120% at 70% 10%, var(--navy-deep) 0%, var(--navy-deepest) 60%);
  overflow: hidden; color: #fff;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero__aurora {
  position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(75,79,214,.35), transparent 70%),
    radial-gradient(35% 45% at 85% 75%, rgba(230,57,70,.22), transparent 70%),
    radial-gradient(45% 55% at 60% 15%, rgba(43,45,107,.5), transparent 70%);
  filter: blur(20px); animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }
.hero__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 80% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 40%, #000 30%, transparent 100%);
}
.hero__inner { position: relative; z-index: 5; padding-block: 7rem 5rem; max-width: 960px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .82rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.06); border: 1px solid var(--line-dark);
  padding: .45rem 1rem; border-radius: var(--r-pill); margin-bottom: 1.6rem;
}
.hero__eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(230,57,70,.25); animation: pulseDot 2s ease-in-out infinite; }
@keyframes pulseDot { 50% { box-shadow: 0 0 0 7px rgba(230,57,70,0); } }

.hero__title { font-size: var(--h1); margin-bottom: 1.4rem; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .word { display: inline-block; transform: translateY(110%); }
.hero__title .word--accent { color: var(--red); position: relative; }
.is-loaded .hero__title .word { animation: wordUp .9s var(--ease) forwards; }
.is-loaded .hero__title .line:nth-child(1) .word:nth-child(1) { animation-delay: .05s; }
.is-loaded .hero__title .line:nth-child(1) .word:nth-child(2) { animation-delay: .13s; }
.is-loaded .hero__title .line:nth-child(1) .word:nth-child(3) { animation-delay: .21s; }
.is-loaded .hero__title .line:nth-child(2) .word:nth-child(1) { animation-delay: .29s; }
.is-loaded .hero__title .line:nth-child(2) .word:nth-child(2) { animation-delay: .37s; }
@keyframes wordUp { to { transform: none; } }

.hero__subtitle { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255,255,255,.8); max-width: 640px; margin-bottom: 2.2rem; font-weight: 300; }
.hero__subtitle strong { color: #fff; font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  color: rgba(255,255,255,.6); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
}
.hero__scroll-mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.4); border-radius: var(--r-pill); display: flex; justify-content: center; padding-top: 6px; }
.hero__scroll-mouse span { width: 4px; height: 8px; border-radius: 4px; background: var(--red); animation: scrollDot 1.7s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translateY(10px); } }

/* ---------- 10. STATS ------------------------------------------- */
.stats { background: var(--navy-deepest); padding-block: 0; position: relative; z-index: 6; }
.stats__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  transform: translateY(-3.5rem);
}
.stat {
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--line-dark); border-radius: var(--r-lg);
  padding: 2rem 1.6rem; color: #fff; backdrop-filter: blur(10px);
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.stat:hover { transform: translateY(-6px); border-color: rgba(230,57,70,.5); box-shadow: var(--shadow-lg); }
.stat__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-content: center;
  background: rgba(230,57,70,.14); margin-bottom: 1.1rem; }
.stat__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat__value { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stat__label { color: rgba(255,255,255,.66); font-size: .95rem; margin-top: .5rem; }

/* ---------- 11. SECTION HEAD ------------------------------------ */
.section__head { max-width: 720px; margin-bottom: 3.5rem; }
.section__kicker { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin-bottom: 1rem; }
.section--dark .section__kicker { color: rgba(255,255,255,.7); }
.section__kicker .chev { font-size: 1.1rem; }
.section__title { font-size: var(--h2); margin-bottom: 1rem; }
.section__lead { color: var(--text-soft); font-size: 1.1rem; max-width: 620px; }
.section--dark .section__lead { color: rgba(255,255,255,.72); }

/* ---------- 12. EXPERTISE (FLIP) -------------------------------- */
.expertise { background: var(--bg-soft); }
.flip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

.flip { perspective: 1400px; height: 280px; outline: none; }
.flip__inner { position: relative; width: 100%; height: 100%; transition: transform .7s var(--ease); transform-style: preserve-3d; }
.flip:hover .flip__inner, .flip:focus-visible .flip__inner, .flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face {
  position: absolute; inset: 0; border-radius: var(--r-lg); padding: 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
}
.flip__front { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.flip__front::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--grey-500); }
.flip__back { background: var(--grad-accent); color: #fff; transform: rotateY(180deg); }
.flip__back::before { content: "»"; position: absolute; top: -10px; right: 10px; font-family: var(--font-display); font-size: 7rem; font-weight: 700; color: rgba(255,255,255,.12); }

.flip__tag { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-500); }
.flip__tag--sol { color: #fff; opacity: .9; }
.flip__pain { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--navy); line-height: 1.25; }
.flip__hint { font-size: .85rem; color: var(--red); font-weight: 600; display: inline-flex; gap: .35rem; align-items: center; }
.flip__hint i { font-style: normal; transition: transform var(--t-med) var(--ease); }
.flip:hover .flip__hint i { transform: translateX(5px); }
.flip__back h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.flip__back p { color: rgba(255,255,255,.9); font-size: .98rem; line-height: 1.55; position: relative; z-index: 1; }

.flip-cta {
  grid-column: span 1; border-radius: var(--r-lg); padding: 2.2rem;
  background: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: .8rem;
  box-shadow: var(--shadow-md);
}
.flip-cta h3 { font-size: 1.5rem; }
.flip-cta p { color: rgba(255,255,255,.78); font-size: .98rem; }
.flip-cta .btn { align-self: flex-start; margin-top: .4rem; }

/* ---------- 13. SERVICES ---------------------------------------- */
.services { background: var(--navy-deepest); color: #fff; overflow: hidden; }
.services__bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background:
    radial-gradient(40% 40% at 85% 0%, rgba(75,79,214,.3), transparent 70%),
    radial-gradient(35% 35% at 5% 100%, rgba(230,57,70,.16), transparent 70%);
}
.services .container { position: relative; z-index: 1; }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.filter {
  color: rgba(255,255,255,.72); font-weight: 500; font-size: .92rem;
  padding: .55rem 1.2rem; border-radius: var(--r-pill);
  border: 1px solid var(--line-dark); transition: all var(--t-fast) var(--ease);
}
.filter:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.filter.is-active { background: var(--red); color: #fff; border-color: var(--red); box-shadow: var(--shadow-red); }

.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

.service {
  position: relative; background: linear-gradient(165deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: 2rem;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  transform-style: preserve-3d; will-change: transform;
}
.service::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(230,57,70,.6), rgba(75,79,214,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--t-med) var(--ease);
}
.service:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service:hover::after { opacity: 1; }

.service__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-content: center;
  background: rgba(75,79,214,.16); margin-bottom: 1.3rem; transition: background var(--t-med) var(--ease); }
.service:hover .service__icon { background: rgba(230,57,70,.18); }
.service__icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service:hover .service__icon svg { stroke: var(--red); }
.service__title { font-size: var(--h3); margin-bottom: .6rem; }
.service__desc { color: rgba(255,255,255,.68); font-size: .96rem; margin-bottom: 1.2rem; }
.service__more { color: var(--red); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: .4rem; }
.service__more i { font-style: normal; transition: transform var(--t-med) var(--ease); }
.service__more:hover i { transform: translateX(5px); }

.service--feature { border-color: rgba(230,57,70,.28); }
.service__badge { position: absolute; top: 1.2rem; right: 1.2rem; font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--red);
  padding: .25rem .6rem; border-radius: var(--r-pill); }

/* État filtré */
.service.is-hidden { display: none; }
@keyframes svcIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.services__cta {
  margin-top: 4rem; text-align: center; padding: 3rem 1.5rem;
  background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--line-dark); border-radius: var(--r-lg);
}
.services__cta h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .6rem; }
.services__cta p { color: rgba(255,255,255,.72); max-width: 480px; margin: 0 auto 1.6rem; }

/* ---------- 14. FOOTER ------------------------------------------ */
.footer { background: var(--navy); color: #fff; padding-block: 3.5rem 1.8rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-dark); }
.footer__brand img { height: 36px; width: auto; margin-bottom: .8rem; }
.footer__baseline { color: rgba(255,255,255,.66); max-width: 300px; font-size: .95rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.footer__links a { color: rgba(255,255,255,.82); font-weight: 500; font-size: .95rem; transition: color var(--t-fast); }
.footer__links a:hover { color: var(--red); }
.footer__soon { color: rgba(255,255,255,.4); font-size: .9rem; }
.footer__social { display: flex; gap: .6rem; }
.footer__soon-icon { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-dark);
  display: grid; place-content: center; font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.7); transition: all var(--t-fast); }
.footer__soon-icon:hover { border-color: var(--red); color: var(--red); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding-top: 1.6rem; color: rgba(255,255,255,.55); font-size: .88rem; }

/* ---------- 15. REVEAL UTILITAIRE ------------------------------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 16. RESPONSIVE -------------------------------------- */
@media (max-width: 1024px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .flip-grid, .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); transform: translateY(-2.5rem); gap: .9rem; }
  .stat { padding: 1.5rem 1.2rem; }
  .flip-grid, .services__grid { grid-template-columns: 1fr; }
  .flip { height: 250px; }
  .hero__inner { padding-block: 8rem 6rem; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .footer__inner { flex-direction: column; }
}

@media (max-width: 420px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stat__value { font-size: 2.6rem; }
}

/* ---------- 17. ACCESSIBILITÉ / REDUCED MOTION ------------------ */
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__title .word { transform: none; }
  .hero__canvas, .hero__aurora { display: none; }
  .flip:hover .flip__inner, .flip:focus-visible .flip__inner { transform: none; }
  .flip__back { transform: none; position: relative; }
  .flip { height: auto; }
  .flip__front { position: relative; }
}

/* ===================================================================
   ===================  PHASE 2 — EXTENSIONS  ========================
   18. Header refinement + partenaire
   19. Bandeau partenaire (hero / strip)
   20. Réalisations — grille filtrable & cartes projet
   21. Bloc « et ce n'est pas tout »
   22. Modale / case study (chaîne problème→résultat)
   23. Mockups (browser/phone frames) + dashboards générés (BI réaliste)
   24. Témoignages
   25. Process (timeline animée)
   26. Bandeau CTA
   27. Contact (formulaire)
   28. Footer complet + back-to-top
   29. Responsive & reduced-motion (Phase 2)
   =================================================================== */

/* ---------- 18. HEADER REFINEMENT + LOGO MARQUE ----------------- */
/* Logo accelerys reconstruit : chevron blanc + rouge, « A » majuscule rouge */
.brand-logo { display: inline-flex; align-items: center; gap: .45em; line-height: 1; text-decoration: none; }
.brand-logo__mark { width: 1.05em; height: 1.05em; flex: none; overflow: visible; }
.brand-logo__mark polyline { fill: none; stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; }
.brand-logo__mark polyline:nth-child(1) { stroke: #fff; }        /* chevron blanc  */
.brand-logo__mark polyline:nth-child(2) { stroke: var(--red); }  /* chevron rouge  */
.brand-logo__word { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; color: #fff; font-size: 1em; }
.brand-logo__word .a { color: var(--red); }

/* Header : logo plus grand pour qu'il se distingue du reste du contenu */
.header__logo { padding: .2rem .5rem; border-radius: var(--r-sm); font-size: 2.1rem; }
.header.is-scrolled .header__logo { font-size: 1.7rem; }
.header__logo:hover .brand-logo__mark { animation: logoAdvance .6s var(--ease); }
@keyframes logoAdvance { 40% { transform: translateX(5px); } 100% { transform: none; } }

/* Footer : même marque, plus compacte */
.brand-logo--footer { font-size: 1.7rem; margin-bottom: .8rem; }
.nav { gap: .15rem; }
.nav__link { font-size: .92rem; padding-inline: .7rem; }

/* ---------- 19. BANDEAU PARTENAIRE ------------------------------ */
/* Badge ServicUP : petit conteneur blanc → lisible sur tout fond, jamais ambigu */
.partner-badge {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .5rem .55rem .5rem .9rem; border-radius: var(--r-pill);
  background: rgba(255,255,255,.06); border: 1px solid var(--line-dark);
  transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.partner-badge:hover { border-color: rgba(230,57,70,.45); background: rgba(255,255,255,.1); }
.partner-badge__text { display: flex; flex-direction: column; line-height: 1.15; }
.partner-badge__label { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-500); font-weight: 600; }
.partner-badge__name { font-size: .9rem; font-weight: 600; color: #fff; display: inline-flex; align-items: center; gap: .3rem; }
.partner-badge__name .chev { font-size: .85rem; }
.partner-badge__logo {
  width: 40px; height: 40px; border-radius: 10px; background: #fff;
  display: grid; place-content: center; padding: 5px; box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease);
}
.partner-badge__logo img { width: 100%; height: 100%; object-fit: contain; filter: saturate(.6) opacity(.92); transition: filter var(--t-med) var(--ease); }
.partner-badge:hover .partner-badge__logo { transform: translateY(-2px) scale(1.04); }
.partner-badge:hover .partner-badge__logo img { filter: none; }

/* Position dans le hero (bas) */
.hero__partner { position: absolute; bottom: 1.9rem; right: var(--gutter); z-index: 5; }
.hero__partner .partner-badge__name { color: #fff; }

/* Strip fin (entre deux sections, ex. avant Réalisations) */
.partner-strip { background: var(--navy); color: #fff; padding-block: 1.4rem; }
.partner-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2rem; text-align: center; }
.partner-strip__text { color: rgba(255,255,255,.82); font-size: 1rem; max-width: 620px; }
.partner-strip__text strong { color: #fff; }
.partner-strip .partner-badge { background: rgba(255,255,255,.07); }

/* ---------- 20. RÉALISATIONS ------------------------------------ */
.realisations { background: var(--bg-soft); overflow: hidden; }
.realisations .section__head { max-width: 760px; }

.proj-filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2.5rem; }
.proj-filters .filter { color: var(--text-soft); border-color: var(--line); }
.proj-filters .filter:hover { color: var(--navy); border-color: var(--navy); }
.proj-filters .filter.is-active { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: var(--shadow-sm); }

.proj-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
.proj-card {
  grid-column: span 2; position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  transform-style: preserve-3d; will-change: transform;
}
.proj-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(43,45,107,.25); }
.proj-card.is-hidden { display: none; }
/* projets « phares » plus larges sur grand écran */
.proj-card--wide { grid-column: span 3; }

.proj-card__media {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-deepest));
  display: grid; place-items: center;
}
.proj-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s var(--ease); }
.proj-card:hover .proj-card__media img { transform: scale(1.06); }
.proj-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(22,23,58,.55)); }
.proj-card__sector {
  position: absolute; top: .9rem; left: .9rem; z-index: 2;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: rgba(22,23,58,.6); backdrop-filter: blur(6px);
  padding: .3rem .7rem; border-radius: var(--r-pill); border: 1px solid var(--line-dark);
}
.proj-card__awards { position: absolute; top: .9rem; right: .9rem; z-index: 2; display: flex; gap: .35rem; }
.proj-award {
  font-size: .8rem; width: 28px; height: 28px; display: grid; place-content: center;
  background: rgba(255,255,255,.92); border-radius: 8px; box-shadow: var(--shadow-sm);
}
.proj-card__formats { position: absolute; bottom: .8rem; left: .9rem; z-index: 2; display: flex; gap: .4rem; }
.proj-format { font-size: .62rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,.14); border: 1px solid var(--line-dark);
  padding: .2rem .5rem; border-radius: 6px; backdrop-filter: blur(4px); }

.proj-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.proj-card__title { font-size: 1.18rem; line-height: 1.2; margin-bottom: .5rem; color: var(--navy); }
.proj-card__pitch { color: var(--text-soft); font-size: .94rem; margin-bottom: 1rem; flex: 1; }
.proj-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.1rem; }
.proj-tag { font-size: .72rem; font-weight: 500; color: var(--navy); background: var(--lavender);
  padding: .25rem .6rem; border-radius: var(--r-pill); }
.proj-card__cta { display: inline-flex; align-items: center; gap: .4rem; color: var(--red); font-weight: 600; font-size: .9rem; margin-top: auto; }
.proj-card__cta i { font-style: normal; transition: transform var(--t-med) var(--ease); }
.proj-card:hover .proj-card__cta i { transform: translateX(5px); }

/* Vignette « generée » (projets sans capture réelle) : aperçu mini-dashboard */
.proj-thumb { position: relative; width: 100%; height: 100%; }
.proj-thumb__label { position: absolute; inset: auto 0 0 0; z-index: 3; text-align: center;
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7);
  padding-bottom: .6rem; }

/* ---------- 21. BLOC « ET CE N'EST PAS TOUT » ------------------- */
.proj-more {
  margin-top: 3rem; display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; border-radius: var(--r-lg); padding: 2.6rem; overflow: hidden; position: relative;
}
.proj-more::before { content: "»"; position: absolute; right: -1rem; bottom: -3rem; font-family: var(--font-display);
  font-size: 16rem; font-weight: 700; color: rgba(255,255,255,.05); line-height: 1; }
.proj-more__big { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 7vw, 5rem); line-height: 1; letter-spacing: -.03em; }
.proj-more__big .text-accent { color: var(--red); }
.proj-more h3 { font-size: 1.6rem; margin: .4rem 0 .6rem; }
.proj-more p { color: rgba(255,255,255,.78); margin-bottom: 1.2rem; max-width: 460px; }
.proj-more__mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; position: relative; z-index: 1; }
.proj-locked {
  aspect-ratio: 4/3; border-radius: var(--r-md); border: 1px solid var(--line-dark);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  display: grid; place-content: center; gap: .35rem; text-align: center; filter: blur(.3px);
}
.proj-locked span { font-size: 1.3rem; }
.proj-locked small { font-size: .62rem; color: rgba(255,255,255,.5); letter-spacing: .04em; }
.proj-locked--ongoing { border-color: rgba(230,57,70,.35); }
.proj-locked__badge { font-size: .56rem; text-transform: uppercase; letter-spacing: .06em; color: var(--red); font-weight: 700; }

/* ---------- 22. MODALE / CASE STUDY ----------------------------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: clamp(.5rem, 3vw, 2rem);
  opacity: 0; visibility: hidden; transition: opacity var(--t-med) var(--ease), visibility var(--t-med) var(--ease); }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,11,30,.7); backdrop-filter: blur(8px); }
.modal__dialog {
  position: relative; z-index: 1; width: min(1080px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(.98); transition: transform var(--t-med) var(--ease);
  scrollbar-width: thin;
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close {
  position: sticky; top: 1rem; float: right; right: 1rem; z-index: 5; margin: 1rem 1rem -3rem auto;
  width: 42px; height: 42px; border-radius: 50%; background: rgba(22,23,58,.6); color: #fff;
  display: grid; place-content: center; font-size: 1.2rem; backdrop-filter: blur(6px);
  transition: background var(--t-fast), transform var(--t-fast); }
.modal__close:hover { background: var(--red); transform: rotate(90deg); }

.case__hero { position: relative; padding: 2.5rem clamp(1.5rem, 4vw, 3rem) 2rem; color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deepest) 100%); overflow: hidden; }
.case__hero::before { content: "»»"; position: absolute; right: 1rem; top: -2.5rem; font-family: var(--font-display);
  font-size: 10rem; font-weight: 700; color: rgba(255,255,255,.06); }
.case__sector { display: inline-flex; gap: .5rem; align-items: center; font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: .8rem; }
.case__title { font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin-bottom: 1rem; max-width: 760px; }
.case__awards { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.case__award { display: inline-flex; gap: .45rem; align-items: center; font-size: .82rem; font-weight: 600;
  background: rgba(255,255,255,.1); border: 1px solid var(--line-dark); padding: .4rem .85rem; border-radius: var(--r-pill); }
.case__impacts { display: flex; flex-wrap: wrap; gap: 2rem; }
.case__impact .v { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1; }
.case__impact .v .text-accent { color: var(--red); }
.case__impact .l { font-size: .8rem; color: rgba(255,255,255,.66); margin-top: .25rem; }

.case__body { padding: clamp(1.5rem, 4vw, 3rem); }

/* Chaîne narrative ①→④ */
.chain { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
.chain__step { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start;
  padding: 1.4rem 1.5rem; border-radius: var(--r-md); background: var(--lavender-soft); border: 1px solid var(--line); }
.chain__step--sol { background: #fff; border-color: rgba(43,45,107,.18); }
.chain__num { width: 42px; height: 42px; border-radius: 12px; display: grid; place-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #fff; background: var(--navy); }
.chain__step--sol .chain__num { background: var(--red); }
.chain__step--proc .chain__num { background: var(--indigo-electric); }
.chain__step--res .chain__num { background: linear-gradient(135deg, var(--navy), var(--red)); }
.chain__k { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-500); }
.chain__t { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--navy); margin: .15rem 0 .4rem; }
.chain__d { color: var(--text-soft); font-size: .96rem; }
.chain__d strong { color: var(--navy); }

.case__sub { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--navy);
  margin: 0 0 1.1rem; display: flex; align-items: center; gap: .5rem; }
.case__sub .chev { color: var(--red); }

/* Galerie de captures */
.case__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem; margin-bottom: 2.2rem; }
.shot { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow-sm); cursor: zoom-in; transition: transform var(--t-med) var(--ease), box-shadow var(--t-med); }
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.shot img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; display: block; }
.shot__cap { font-size: .78rem; color: var(--text-soft); padding: .5rem .7rem; }

.case__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.case__tags .proj-tag { background: var(--lavender); font-size: .8rem; }

.case__cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  padding: 1.6rem 1.8rem; border-radius: var(--r-md); background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: #fff; }
.case__cta p { font-weight: 500; }

/* Lightbox image plein écran */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(10,11,30,.92); display: grid; place-items: center;
  padding: 2rem; opacity: 0; visibility: hidden; transition: opacity var(--t-med); cursor: zoom-out; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }

/* ---------- 23. MOCKUPS & DASHBOARDS GÉNÉRÉS -------------------- */
/* Cadre navigateur */
.frame { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: #fff; }
.frame__bar { display: flex; align-items: center; gap: .5rem; padding: .6rem .9rem; background: #eceef5; border-bottom: 1px solid var(--line); }
.frame__dots { display: flex; gap: .4rem; }
.frame__dots span { width: 11px; height: 11px; border-radius: 50%; background: #c9ccd9; }
.frame__dots span:nth-child(1){ background:#ed6a5e; } .frame__dots span:nth-child(2){ background:#f5bf4f; } .frame__dots span:nth-child(3){ background:#62c554; }
.frame__url { flex: 1; font-size: .72rem; color: var(--grey-500); background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: .25rem .8rem; max-width: 360px; }
.frame__confidential { font-size: .64rem; color: var(--grey-500); }

/* --- Dashboard BI (style Power BI) --- */
.bi { display: grid; grid-template-columns: 190px 1fr; background: #0f1130; color: #e8e9f5; font-size: .8rem; min-height: 460px; }
.bi__side { background: #14163a; border-right: 1px solid rgba(255,255,255,.07); padding: 1rem .7rem; }
.bi__brand { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 700; color: #fff; padding: .3rem .5rem 1rem; font-size: .95rem; }
.bi__brand .chev { color: var(--red); }
.bi__nav { display: flex; flex-direction: column; gap: .15rem; }
.bi__navitem { display: flex; align-items: center; gap: .55rem; padding: .5rem .6rem; border-radius: 8px; color: rgba(255,255,255,.66);
  cursor: pointer; transition: background var(--t-fast), color var(--t-fast); font-size: .78rem; }
.bi__navitem:hover { background: rgba(255,255,255,.05); color: #fff; }
.bi__navitem.is-active { background: linear-gradient(90deg, rgba(230,57,70,.22), rgba(230,57,70,.05)); color: #fff; box-shadow: inset 2px 0 0 var(--red); }
.bi__navitem .ic { width: 16px; height: 16px; flex: none; opacity: .9; }
.bi__main { padding: 1rem 1.2rem 1.4rem; overflow: hidden; }
.bi__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.bi__crumb { font-size: .74rem; color: rgba(255,255,255,.55); }
.bi__crumb b { color: #fff; font-weight: 600; }
.bi__slicers { display: flex; gap: .5rem; flex-wrap: wrap; }
.bi__slicer { font-size: .68rem; color: rgba(255,255,255,.8); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: .25rem .6rem; border-radius: 6px; display: inline-flex; gap: .35rem; align-items: center; }
.bi__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-bottom: .9rem; }
.bi__kpi { background: #181b44; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: .7rem .8rem; }
.bi__kpi .k { font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.bi__kpi .v { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: #fff; line-height: 1.1; margin-top: .15rem; }
.bi__kpi .d { font-size: .68rem; font-weight: 600; margin-top: .1rem; display: inline-flex; align-items: center; gap: .2rem; }
.bi__kpi .d.up { color: #3ad29f; } .bi__kpi .d.down { color: #ff6b78; }
.bi__row { display: grid; gap: .7rem; margin-bottom: .7rem; }
.bi__row--2 { grid-template-columns: 1.4fr 1fr; }
.bi__row--3 { grid-template-columns: repeat(3, 1fr); }
.bi__panel { background: #181b44; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: .8rem .9rem; }
.bi__panel h4 { font-size: .76rem; font-weight: 600; color: #fff; margin-bottom: .7rem; display: flex; justify-content: space-between; align-items: center; }
.bi__panel h4 span { font-size: .64rem; color: rgba(255,255,255,.45); font-weight: 500; }
.bi__legend { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .6rem; font-size: .66rem; color: rgba(255,255,255,.6); }
.bi__legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: .3rem; vertical-align: middle; }
.bi svg { display: block; width: 100%; height: auto; overflow: visible; }
/* table BI */
.bi__table { width: 100%; border-collapse: collapse; font-size: .72rem; }
.bi__table th { text-align: left; color: rgba(255,255,255,.5); font-weight: 500; padding: .35rem .4rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.bi__table td { padding: .38rem .4rem; border-bottom: 1px solid rgba(255,255,255,.05); color: rgba(255,255,255,.85); }
.bi__cell { padding: .12rem .45rem; border-radius: 5px; font-weight: 600; font-size: .7rem; }
.bi__cell.good { background: rgba(58,210,159,.16); color: #6fe3bd; }
.bi__cell.warn { background: rgba(230,162,60,.16); color: #f0c074; }
.bi__cell.bad  { background: rgba(255,107,120,.16); color: #ff9aa3; }
.bi__page { display: none; }
.bi__page.is-active { display: block; animation: svcIn .4s var(--ease) both; }

/* Mockup smartphone */
.phones { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center; }
.phone { width: 200px; flex: none; border-radius: 28px; padding: 10px; background: #14163a;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.08); position: relative; }
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 52px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); z-index: 3; }
.phone__screen { border-radius: 20px; overflow: hidden; background: #fff; aspect-ratio: 9/19; }
.phone__cap { text-align: center; font-size: .74rem; color: var(--text-soft); margin-top: .6rem; }

/* ---------- 24. TÉMOIGNAGES ------------------------------------- */
.testimonials { background: var(--navy-deepest); color: #fff; overflow: hidden; }
.testimonials .section__lead { color: rgba(255,255,255,.72); }
.testi-track-wrap { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.testi-track { display: flex; gap: 1.4rem; padding: .5rem; width: max-content; animation: testiScroll 48s linear infinite; }
.testi-track:hover { animation-play-state: paused; }
@keyframes testiScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.testi {
  width: 380px; flex: none; background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem;
  transition: border-color var(--t-med), transform var(--t-med); cursor: pointer;
}
.testi:hover { border-color: rgba(230,57,70,.45); transform: translateY(-4px); }
.testi__stars { color: #f5bf4f; letter-spacing: .1em; font-size: .95rem; }
.testi__quote { font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,.9); flex: 1; }
.testi__quote::before { content: "“"; font-family: var(--font-display); color: var(--red); font-size: 2rem; line-height: 0; vertical-align: -.4rem; margin-right: .15rem; }
.testi__foot { display: flex; align-items: center; gap: .8rem; }
.testi__avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-content: center;
  font-family: var(--font-display); font-weight: 700; color: #fff; background: var(--grad-brand); font-size: 1rem; }
.testi__who { line-height: 1.25; }
.testi__name { font-weight: 600; font-size: .92rem; }
.testi__role { font-size: .78rem; color: rgba(255,255,255,.6); }
.testi__link { font-size: .76rem; color: var(--red); font-weight: 600; margin-left: auto; opacity: 0; transition: opacity var(--t-med); white-space: nowrap; }
.testi:hover .testi__link { opacity: 1; }

/* ---------- 25. PROCESS (TIMELINE) ------------------------------ */
.process { background: var(--bg); }
.process__timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 1rem; }
.process__line { position: absolute; top: 34px; left: 6%; right: 6%; height: 3px; background: var(--line); border-radius: 3px; z-index: 0; }
.process__line span { position: absolute; inset: 0; width: 0; background: var(--grad-progress); border-radius: 3px; transition: width 1.2s var(--ease); }
.process__line.is-drawn span { width: 100%; }
.step { position: relative; z-index: 1; text-align: center; padding: 0 .4rem; }
.step__dot { width: 70px; height: 70px; margin: 0 auto 1.2rem; border-radius: 20px; display: grid; place-content: center;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med); }
.step:hover .step__dot { transform: translateY(-5px); border-color: var(--red); }
.step__dot svg { width: 30px; height: 30px; fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.step__n { position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: .8rem; display: grid; place-content: center; box-shadow: var(--shadow-sm); }
.step__t { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--navy); margin-bottom: .4rem; }
.step__d { color: var(--text-soft); font-size: .9rem; }
.process__note { margin-top: 2.8rem; text-align: center; color: var(--text-soft); font-size: .95rem; }
.process__note b { color: var(--navy); }

/* ---------- 26. BANDEAU CTA ------------------------------------- */
.cta-band { position: relative; background: radial-gradient(120% 130% at 30% 10%, var(--navy-deep), var(--navy-deepest)); color: #fff; overflow: hidden; text-align: center; }
.cta-band__bg { position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background: radial-gradient(40% 50% at 80% 20%, rgba(75,79,214,.4), transparent 70%), radial-gradient(35% 45% at 15% 90%, rgba(230,57,70,.25), transparent 70%); }
.cta-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,.8); font-size: 1.15rem; max-width: 560px; margin: 0 auto 2rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cta-band__reassure { display: flex; flex-wrap: wrap; gap: 1.6rem; justify-content: center; margin-top: 2rem; color: rgba(255,255,255,.7); font-size: .9rem; }
.cta-band__reassure span { display: inline-flex; align-items: center; gap: .45rem; }
.cta-band__reassure .chev { color: var(--red); }

/* ---------- 27. CONTACT ----------------------------------------- */
.contact-sec { background: var(--navy); color: #fff; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact-info h2 { font-size: var(--h2); margin-bottom: 1rem; }
.contact-info p { color: rgba(255,255,255,.75); margin-bottom: 2rem; max-width: 420px; }
.contact-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; color: #fff; }
.contact-item__ic { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-content: center; background: rgba(255,255,255,.07); border: 1px solid var(--line-dark); }
.contact-item__ic svg { width: 20px; height: 20px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-item small { display: block; color: rgba(255,255,255,.55); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
.contact-item b { font-weight: 600; font-size: 1rem; }
.contact-socials { display: flex; gap: .7rem; }
.contact-socials a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-content: center; background: rgba(255,255,255,.07); border: 1px solid var(--line-dark); color: #fff; transition: all var(--t-fast); }
.contact-socials a:hover { background: var(--red); border-color: var(--red); transform: translateY(-3px); }

.contact-form { background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: 2rem; }
.field { position: relative; margin-bottom: 1.4rem; }
.field input, .field textarea {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); border-radius: var(--r-sm);
  padding: 1.1rem .9rem .5rem; color: #fff; font-family: inherit; font-size: .95rem; transition: border-color var(--t-fast), background var(--t-fast); }
.field textarea { min-height: 120px; resize: vertical; }
.field label { position: absolute; left: .95rem; top: .85rem; color: rgba(255,255,255,.5); font-size: .95rem; pointer-events: none; transition: all .18s var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); background: rgba(255,255,255,.07); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: .3rem; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--red); }
.field input::placeholder, .field textarea::placeholder { color: transparent; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff6b78; }
.field__error { color: #ff9aa3; font-size: .72rem; margin-top: .3rem; display: none; }
.field.is-invalid .field__error { display: block; }
.form__submit { width: 100%; justify-content: center; }
.form__status { margin-top: 1rem; text-align: center; font-size: .9rem; min-height: 1.2rem; }
.form__status.ok { color: #6fe3bd; }
.form__note { font-size: .78rem; color: rgba(255,255,255,.5); text-align: center; margin-top: .8rem; }

/* ---------- 28. FOOTER COMPLET + BACK TO TOP -------------------- */
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-dark); }
.footer__col h5 { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 1rem; }
.footer__col nav { display: flex; flex-direction: column; gap: .6rem; }
.footer__col a { color: rgba(255,255,255,.82); font-size: .92rem; width: fit-content; position: relative; }
.footer__col a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--red); transition: width var(--t-med); }
.footer__col a:hover { color: #fff; } .footer__col a:hover::after { width: 100%; }
.footer__partner { margin-top: 1.2rem; }
.footer__partner .partner-badge { background: rgba(255,255,255,.05); }
.back-top { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90; width: 50px; height: 50px; border-radius: 14px;
  background: var(--red); color: #fff; display: grid; place-content: center; box-shadow: var(--shadow-red);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all var(--t-med) var(--ease); }
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--red-dark); transform: translateY(-3px); }
.back-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.footer__made .chev { color: var(--red); }

/* ---------- 29. RESPONSIVE (PHASE 2) ---------------------------- */
@media (max-width: 1024px) {
  .proj-grid { grid-template-columns: repeat(4, 1fr); }
  .proj-card, .proj-card--wide { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .process__timeline { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .process__line { display: none; }
  .proj-more { grid-template-columns: 1fr; }
  .bi { grid-template-columns: 150px 1fr; font-size: .74rem; }
}
@media (max-width: 760px) {
  .proj-grid { grid-template-columns: 1fr; }
  .proj-card, .proj-card--wide { grid-column: 1 / -1; }
  .hero__partner { position: static; margin-top: 2rem; display: inline-flex; }
  .partner-strip .container { flex-direction: column; }
  .process__timeline { grid-template-columns: 1fr; }
  .testi { width: 300px; }
  .bi { grid-template-columns: 1fr; min-height: 0; }
  .bi__side { display: none; }
  .bi__kpis { grid-template-columns: repeat(2, 1fr); }
  .bi__row--2, .bi__row--3 { grid-template-columns: 1fr; }
  .case__impacts { gap: 1.2rem; }
  .modal__close { margin-bottom: -3.5rem; }
  .footer__top { grid-template-columns: 1fr; gap: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .testi-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .proj-card:hover { transform: none; }
  .process__line span { transition: none; width: 100%; }
}
