/* ==========================================================================
   WebActif — feuille de style commune à toutes les pages
   Sommaire :
   1. Variables et base          6. Composants (cartes, frise, FAQ…)
   2. Utilitaires                7. Pages spécifiques
   3. Boutons et sur-titres      8. Pied de page
   4. En-tête et navigation      9. Animations
   5. Héros, courbes, formes    10. Responsive / mouvement réduit
   ========================================================================== */

/* 1. Variables et base
   ========================================================================== */
:root {
  --blue: #0066FF;
  --cyan: #00C6FF;
  --violet: #4B26C8;
  --card: #3B82F6;
  --cta: #EE4B2B;
  --cta-dark: #D23A1C;
  --footer: #2A2A2A;
  --teal: #0B7FA3;

  --ink: #161A33;
  --text: #3E4461;
  --muted: #6B7190;
  --line: #E3E8F4;
  --soft: #F3F6FD;
  --white: #FFFFFF;

  --grad: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  --grad-violet: linear-gradient(135deg, #4B26C8 0%, #6B46E5 100%);
  --grad-cta: linear-gradient(135deg, var(--violet) 0%, var(--blue) 100%);

  --font-title: "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(22, 26, 51, .08);
  --shadow-lg: 0 24px 50px rgba(22, 26, 51, .14);
  --header-h: 78px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 8'%3E%3Cpath d='M1 4c3.7-4 7.3-4 11 0s7.3 4 11 0 7.3-4 11 0 7.3 4 11 0' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  --wave-long: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 18'%3E%3Cpath d='M2 9c7-9 14-9 22 0s14 9 22 0 14-9 22 0 14 9 22 0' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--blue); text-underline-offset: .18em; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; font-weight: 800; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--cta);
  outline-offset: 3px;
  border-radius: 6px;
}

/* 2. Utilitaires
   ========================================================================== */
.container {
  position: relative;
  z-index: 2;
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}
.container--narrow { width: min(860px, 100% - 32px); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 1000;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

.section {
  position: relative;
  padding: clamp(72px, 10vw, 120px) 0;
}
.section--tight { padding-top: clamp(40px, 6vw, 64px); }
.section--soft { background: var(--soft); }
.section--violet { background: var(--violet); }
.section--grad { background: var(--grad); }
.has-deco { overflow: hidden; }

.is-dark { color: rgba(255, 255, 255, .88); }
.is-dark :is(h1, h2, h3, h4) { color: #fff; }

.section__head {
  max-width: 740px;
  margin: 0 auto clamp(40px, 5vw, 60px);
  text-align: center;
}
.section__head--left { margin-left: 0; text-align: left; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); }

.text-center { text-align: center; }
.mt-lg { margin-top: clamp(32px, 5vw, 56px); }

/* Repère visuel des contenus à compléter par vos soins */
.ph {
  background: rgba(255, 209, 102, .38);
  outline: 1px dashed #D99A00;
  outline-offset: 1px;
  border-radius: 4px;
  padding: 0 .25em;
  color: inherit;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 3. Boutons et sur-titres
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .95em 1.8em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(5px); }

/* Reflet lumineux au survol */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }

.btn--cta {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 10px 24px rgba(238, 75, 43, .35);
}
.btn--cta:hover {
  background: var(--cta-dark);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(238, 75, 43, .45);
}

.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(0, 102, 255, .28); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0, 102, 255, .38); }

.btn--ghost { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--blue); transform: translateY(-3px); }

.btn--outline { border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }

.btn--light { background: #fff; color: var(--violet); }
.btn--light:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0, 0, 0, .18); }

.btn--sm { padding: .7em 1.35em; font-size: .98rem; }

.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }
.text-center .btn-group, .btn-group--center { justify-content: center; }

.eyebrow {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  font-family: var(--font-title);
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::after {
  content: "";
  width: 46px;
  height: 8px;
  background: currentColor;
  -webkit-mask: var(--wave) center / 46px 8px no-repeat;
          mask: var(--wave) center / 46px 8px no-repeat;
}
.eyebrow--left { align-items: flex-start; }
.is-dark .eyebrow { color: #BDEFFF; }

/* 4. En-tête et navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background-color .35s, box-shadow .35s, height .35s;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}
.site-header.is-scrolled {
  --header-h: 68px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 6px 24px rgba(22, 26, 51, .08);
}

.brand {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  transition: color .3s;
}
.brand img { width: 42px; height: 42px; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand strong { font-weight: 900; }
.site-header.is-scrolled .brand { color: var(--ink); }

.nav__list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__row { display: flex; align-items: center; }

.nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
  transition: color .3s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.site-header.is-scrolled .nav__link { color: var(--ink); }
.site-header.is-scrolled .nav__link:hover,
.site-header.is-scrolled .nav__link.is-active { color: var(--blue); }

.nav__toggle {
  display: grid;
  place-items: center;
  margin-left: -10px;
  padding: 6px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: #fff;
  cursor: pointer;
  transition: color .3s, background-color .3s;
}
.nav__toggle .icon { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.site-header.is-scrolled .nav__toggle { color: var(--ink); }
.nav__item--has-sub.is-open .nav__toggle .icon { transform: rotate(180deg); }

.nav__item--has-sub { position: relative; }
.nav__sub { margin: 0; padding: 10px; list-style: none; }

.nav__sublink {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .25s, color .25s, transform .25s;
}
.nav__sublink .icon {
  width: 36px; height: 36px;
  padding: 8px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--blue);
  transition: background-color .25s, color .25s;
}
.nav__sublink:hover, .nav__sublink.is-active { background: var(--soft); color: var(--blue); }
.nav__sublink:hover .icon, .nav__sublink.is-active .icon { background: var(--grad); color: #fff; }

.nav__item--cta { margin-left: 10px; }
.nav__item--cta .btn.is-active { box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 10px 24px rgba(238, 75, 43, .35); }
.site-header.is-scrolled .nav__item--cta .btn.is-active { box-shadow: 0 0 0 3px rgba(238, 75, 43, .3); }

.burger {
  position: relative;
  z-index: 3;
  display: none;
  width: 48px; height: 48px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.site-header.is-scrolled .burger { background: var(--soft); color: var(--ink); }
.burger__bars, .burger__bars::before, .burger__bars::after {
  display: block;
  width: 22px; height: 2.5px;
  border-radius: 3px;
  background: currentColor;
  transition: transform .35s var(--ease), opacity .2s;
}
.burger__bars { position: relative; }
.burger__bars::before, .burger__bars::after { content: ""; position: absolute; left: 0; }
.burger__bars::before { top: -7px; }
.burger__bars::after { top: 7px; }
.burger[aria-expanded="true"] .burger__bars { background: transparent; }
.burger[aria-expanded="true"] .burger__bars::before { transform: translateY(7px) rotate(45deg); background: currentColor; }
.burger[aria-expanded="true"] .burger__bars::after { transform: translateY(-7px) rotate(-45deg); background: currentColor; }

/* Navigation bureau */
@media (min-width: 1024px) {
  .nav__sub {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    min-width: 320px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav__sub::before { /* pont invisible pour ne pas perdre le survol */
    content: "";
    position: absolute;
    left: 0; right: 0; top: -16px;
    height: 16px;
  }
  .nav__item--has-sub:hover .nav__sub,
  .nav__item--has-sub.is-open .nav__sub {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
  .nav__item--has-sub:hover .nav__toggle .icon { transform: rotate(180deg); }
}

/* Navigation mobile */
@media (max-width: 1023px) {
  .burger { display: grid; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 2;
    padding: calc(var(--header-h) + 20px) 24px 40px;
    overflow-y: auto;
    background: var(--grad);
    visibility: hidden;
    transform: translateX(100%);
    transition: transform .45s var(--ease), visibility .45s;
  }
  .nav.is-open { visibility: visible; transform: none; }

  body.menu-open .site-header { background: transparent; box-shadow: none; }
  body.menu-open .site-header .brand { color: #fff; }
  body.menu-open .site-header .burger { background: rgba(255, 255, 255, .18); color: #fff; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__item { border-bottom: 1px solid rgba(255, 255, 255, .18); }
  .nav__row { justify-content: space-between; }
  .nav__link,
  .site-header.is-scrolled .nav__link,
  .site-header.is-scrolled .nav__link:hover,
  .site-header.is-scrolled .nav__link.is-active {
    padding: 14px 0;
    color: #fff;
    font-size: 1.45rem;
  }
  .nav__link::after { left: 0; right: auto; width: 32px; bottom: 8px; }

  .nav__toggle,
  .site-header.is-scrolled .nav__toggle {
    width: 44px; height: 44px;
    margin: 0;
    background: rgba(255, 255, 255, .18);
    color: #fff;
  }
  .nav__toggle .icon { width: 22px; height: 22px; }

  .nav__sub { display: none; margin-bottom: 14px; border-radius: 18px; background: rgba(255, 255, 255, .12); }
  .nav__item--has-sub.is-open .nav__sub { display: block; animation: slideDown .35s var(--ease); }
  .nav__sublink { color: #fff; }
  .nav__sublink .icon { background: rgba(255, 255, 255, .18); color: #fff; }
  .nav__sublink:hover, .nav__sublink.is-active { background: rgba(255, 255, 255, .16); color: #fff; }
  .nav__sublink:hover .icon, .nav__sublink.is-active .icon { background: #fff; color: var(--blue); }

  .nav__item--cta { margin: 26px 0 0; border: 0; }
  .nav__item--cta .btn { width: 100%; font-size: 1.15rem; padding: 1em; }
}

/* 5. Héros, courbes et formes décoratives
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 150px;
  overflow: hidden;
  background: var(--grad);
  color: #fff;
  text-align: center;
}
.hero__logo {
  width: clamp(88px, 12vw, 120px);
  height: auto;
  margin: 0 auto 26px;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 40, 120, .35);
}
.hero .eyebrow { color: #fff; font-size: clamp(.85rem, 1.6vw, 1rem); }
.hero__title {
  margin: 0 0 .12em;
  color: #fff;
  font-size: clamp(3.2rem, 12vw, 8rem);
  letter-spacing: .04em;
  line-height: 1;
  text-shadow: 0 10px 40px rgba(0, 40, 120, .25);
}
.hero__subtitle {
  margin: 0 auto 2.2rem;
  max-width: 34ch;
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 2.8vw, 1.8rem);
  font-weight: 700;
  line-height: 1.35;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(70px, 10vw, 120px);
  z-index: 2;
  width: 28px; height: 44px;
  border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 20px;
  transform: translateX(-50%);
}
.hero__scroll::before {
  content: "";
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: scrollHint 2s ease-in-out infinite;
}

/* Entrée du héros au chargement */
.hero-in { animation: heroIn 1s var(--ease) both; animation-delay: var(--delay, 0s); }

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 90px)) 0 clamp(110px, 14vw, 170px);
  overflow: hidden;
  background: var(--grad);
  color: rgba(255, 255, 255, .92);
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
.page-hero .eyebrow { color: #fff; }
.page-hero .lead { max-width: 700px; margin: 0 auto 1.8rem; }
.page-hero--short { padding-bottom: clamp(90px, 11vw, 130px); }

.breadcrumb { margin-bottom: 1.4rem; font-size: .92rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; opacity: .7; }
.breadcrumb a { color: #fff; text-decoration: none; opacity: .85; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.breadcrumb [aria-current] { font-weight: 700; }

/* Séparateurs de sections en courbe */
.curve {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 1;
  width: 100%;
  height: clamp(48px, 8vw, 110px);
  fill: var(--white);
  pointer-events: none;
}
.curve--top { top: -1px; bottom: auto; transform: rotate(180deg); }
.curve--soft { fill: var(--soft); }
.curve--violet { fill: var(--violet); }
.curve--footer { fill: var(--footer); }

/* Formes décoratives flottantes */
.deco {
  position: absolute;
  left: var(--x, 0);
  top: var(--y, 0);
  z-index: 0;
  width: var(--s, 40px);
  height: var(--s, 40px);
  color: var(--c, #fff);
  opacity: var(--o, .45);
  pointer-events: none;
  animation: float var(--t, 9s) ease-in-out var(--d, 0s) infinite;
}
.deco--diamond { --r: 45deg; border: 3px solid currentColor; border-radius: 7px; transform: rotate(45deg); }
.deco--diamond-fill { --r: 45deg; background: currentColor; border-radius: 7px; transform: rotate(45deg); }
.deco--circle { border: 3px solid currentColor; border-radius: 50%; }
.deco--disc { background: currentColor; border-radius: 50%; }
.deco--dots {
  width: var(--s, 120px);
  height: var(--s, 120px);
  background-image: radial-gradient(currentColor 2.2px, transparent 2.8px);
  background-size: 18px 18px;
}
.deco--wave {
  width: var(--s, 92px);
  height: calc(var(--s, 92px) * .2);
  background: currentColor;
  -webkit-mask: var(--wave-long) center / 100% 100% no-repeat;
          mask: var(--wave-long) center / 100% 100% no-repeat;
}
.deco--glow {
  width: var(--s, 400px);
  height: var(--s, 400px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22) 0%, transparent 70%);
  opacity: 1;
  animation-duration: 14s;
}
.deco--cross {
  background:
    linear-gradient(currentColor, currentColor) center / 100% 3px no-repeat,
    linear-gradient(currentColor, currentColor) center / 3px 100% no-repeat;
}

/* 6. Composants
   ========================================================================== */

/* Réalisations en blocs alternés (accueil) */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  margin-bottom: clamp(56px, 8vw, 100px);
}
.showcase__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.showcase__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.showcase:hover .showcase__media img { transform: scale(1.05); }
.showcase__panel {
  position: relative;
  z-index: 2;
  margin-left: -80px;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-lg);
  transition: transform .5s var(--ease);
}
.showcase:hover .showcase__panel { transform: translateY(-6px); }
.showcase__panel h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.showcase__panel::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -40px;
  width: 150px; height: 150px;
  border: 3px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
}
.showcase--reverse .showcase__media { order: 2; }
.showcase--reverse .showcase__panel { margin-left: 0; margin-right: -80px; }
.panel--violet { background: var(--grad-violet); }
.panel--blue { background: linear-gradient(135deg, #0066FF, #3B82F6); }
.panel--cyan { background: linear-gradient(135deg, #0B7FA3, #0A9CC9); }

.tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: .35em 1em;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 800;
  color: inherit;
  text-decoration: none;
}
.link-arrow .icon { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.link-arrow:hover .icon, a:hover > .link-arrow .icon { transform: translateX(6px); }

/* Bloc expertises (fond violet) */
.expertises-block {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}
.xp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.xp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.xp-grid > li { display: flex; }

.xp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .85);
  font-size: .96rem;
  text-decoration: none;
  transition: transform .4s var(--ease), background-color .4s, color .4s, box-shadow .4s;
}
.xp-card h3 { margin-bottom: .45em; color: #fff; font-size: 1.15rem; transition: color .4s; }
.xp-card p { flex: 1; }
.xp-card:hover {
  background: #fff;
  color: var(--text);
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(20, 8, 70, .35);
}
.xp-card:hover h3 { color: var(--ink); }
.xp-card__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 102, 255, .3);
  transition: transform .5s var(--ease);
}
.xp-card__icon .icon { width: 28px; height: 28px; }
.xp-card:hover .xp-card__icon { transform: rotate(-8deg) scale(1.08); }
.xp-card .link-arrow { margin-top: 16px; font-size: .92rem; color: #A9ECFF; transition: color .4s; }
.xp-card:hover .link-arrow { color: var(--blue); }
.xp-card:hover .link-arrow .icon { transform: translateX(6px); }

.xp-card--light {
  padding: 32px;
  border-color: var(--line);
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
}
.xp-card--light h3 { color: var(--ink); font-size: 1.3rem; }
.xp-card--light .link-arrow { color: var(--blue); }
.xp-card--light:hover { border-color: transparent; box-shadow: var(--shadow-lg); }

/* Cartes bleues « Ce que nous faisons » */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.blue-card {
  position: relative;
  height: 100%;
  padding: 38px 32px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #3B82F6 0%, #2563EB 100%);
  color: rgba(255, 255, 255, .93);
  box-shadow: 0 18px 40px rgba(59, 130, 246, .3);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.blue-card:hover { transform: translateY(-8px); box-shadow: 0 28px 55px rgba(59, 130, 246, .42); }
.blue-card h3 { color: #fff; font-size: 1.45rem; }
.blue-card__num {
  position: absolute;
  top: 4px; right: 20px;
  font-family: var(--font-title);
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, .13);
}
.blue-card__icon {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  transition: transform .5s var(--ease), background-color .4s;
}
.blue-card__icon .icon { width: 30px; height: 30px; }
.blue-card:hover .blue-card__icon { transform: scale(1.1) rotate(8deg); background: rgba(255, 255, 255, .28); }
.blue-card::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 170px; height: 170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  transition: transform .6s var(--ease);
}
.blue-card:hover::after { transform: scale(1.4); }
.blue-card ul { margin: 1em 0 0; padding: 0; list-style: none; }
.blue-card li { position: relative; padding-left: 26px; margin-bottom: .35em; font-size: .97rem; }
.blue-card li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .8);
  transform: rotate(45deg) scale(.7);
}

/* Cartes d'information (valeurs, publics…) */
.info-card {
  position: relative;
  height: 100%;
  padding: 34px 30px;
  border-top: 5px solid var(--accent, var(--blue));
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.info-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.info-card__icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent, var(--blue)) 12%, #fff);
  color: var(--accent, var(--blue));
  transition: transform .5s var(--ease);
}
.info-card__icon .icon { width: 28px; height: 28px; }
.info-card:hover .info-card__icon { transform: rotate(-10deg) scale(1.08); }
.info-card h3 { font-size: 1.3rem; }
.accent-violet { --accent: var(--violet); }
.accent-blue { --accent: var(--blue); }
.accent-cyan { --accent: var(--teal); }
.accent-cta { --accent: var(--cta); }

/* Liste « Ce que ça comprend » */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature {
  display: flex;
  gap: 18px;
  height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.feature:hover { transform: translateY(-5px); border-color: transparent; box-shadow: var(--shadow-lg); }
.feature__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px; height: 52px;
  border-radius: 15px;
  background: var(--grad);
  color: #fff;
  transition: transform .5s var(--ease);
}
.feature:hover .feature__icon { transform: rotate(-10deg); }
.feature h3 { margin-bottom: .3em; font-size: 1.12rem; }
.feature p { font-size: .97rem; }

/* Frise / déroulé en étapes */
.timeline {
  --steps: 4;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--steps), minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline::before, .timeline::after {
  content: "";
  position: absolute;
  top: 38px;
  left: calc(50% / var(--steps));
  right: calc(50% / var(--steps));
  height: 4px;
  border-radius: 4px;
  background: var(--line);
}
.timeline::after {
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.8s var(--ease) .2s;
}
.js .timeline[data-reveal] { opacity: 1; transform: none; }
.timeline.is-visible::after { transform: scaleX(1); }
.timeline__step { position: relative; z-index: 1; text-align: center; }
.timeline__dot {
  display: grid;
  place-items: center;
  width: 80px; height: 80px;
  margin: 0 auto 22px;
  border: 4px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 900;
  transition: background .5s, border-color .5s, color .5s, transform .5s var(--ease);
  transition-delay: calc(var(--delay, 0s) + .3s);
}
.timeline__dot .icon { width: 30px; height: 30px; }
.timeline.is-visible .timeline__dot { border-color: #fff; background: var(--grad); color: #fff; box-shadow: 0 12px 28px rgba(0, 102, 255, .3); }
.timeline__step:hover .timeline__dot { transform: scale(1.08); transition-delay: 0s; }
.timeline__num {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-title);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cta);
}
.timeline__step h3 { font-size: 1.2rem; }
.timeline__step p { font-size: .97rem; }

/* FAQ en accordéon */
.faq { display: grid; gap: 14px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow .35s, border-color .35s;
}
.faq__item.is-open { border-color: transparent; box-shadow: var(--shadow-lg); }
.faq__q { margin: 0; font-size: 1.1rem; }
.faq__q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 22px 24px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.faq__q button:hover { color: var(--blue); }
.faq__icon {
  position: relative;
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--soft);
  transition: background-color .35s, transform .35s var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 2.5px;
  margin: -1.25px 0 0 -7px;
  border-radius: 2px;
  background: var(--blue);
  transition: transform .35s var(--ease), background-color .35s;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon { background: var(--blue); transform: rotate(180deg); }
.faq__item.is-open .faq__icon::before, .faq__item.is-open .faq__icon::after { background: #fff; }
.faq__item.is-open .faq__icon::after { transform: rotate(0); }
.faq__a > div { padding: 0 24px 24px; }
.js .faq__a {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .45s var(--ease), visibility .45s;
}
.js .faq__a > div { min-height: 0; overflow: hidden; }
.js .faq__item.is-open .faq__a { grid-template-rows: 1fr; visibility: visible; }

/* Bandeau d'appel à l'action */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 7vw, 80px) clamp(24px, 6vw, 72px);
  border-radius: 34px;
  background: var(--grad-cta);
  color: rgba(255, 255, 255, .9);
  text-align: center;
  box-shadow: 0 30px 60px rgba(75, 38, 200, .28);
}
.cta-band > :not(.deco) { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 600px; margin: 0 auto 2rem; font-size: 1.12rem; }
.cta-band .eyebrow { color: #fff; }

/* Mise en page à deux colonnes */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.photo-frame { position: relative; max-width: 480px; margin-inline: auto; }
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  z-index: -1;
  border-radius: var(--radius-lg);
  background: var(--grad);
}
.photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.photo-frame .deco { z-index: -2; }
.split__content .btn-group { margin-top: 1.6rem; }

.check-list { margin: 1.2em 0; padding: 0; list-style: none; }
.check-list li { position: relative; margin-bottom: .6em; padding-left: 36px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .2em;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--grad);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 8px; top: calc(.2em + 6px);
  width: 8px; height: 12px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* Chiffres clés / engagements */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.stats li { padding: 18px; border-radius: var(--radius); background: var(--soft); text-align: center; }
.stats strong { display: block; font-family: var(--font-title); font-size: 1.6rem; font-weight: 900; color: var(--blue); line-height: 1.2; }
.stats span { font-size: .9rem; }

/* 7. Pages spécifiques
   ========================================================================== */

/* Réalisations filtrables */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: clamp(32px, 5vw, 50px);
}
.filter {
  padding: .7em 1.4em;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.filter:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.filter[aria-pressed="true"] { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 10px 22px rgba(0, 102, 255, .28); }

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.project { display: flex; }
.project[hidden] { display: none; }
.project.is-entering { animation: popIn .5s var(--ease) both; }
.project__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.project__card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.project__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.project__card:hover .project__media img { transform: scale(1.07); }
.project__badge {
  position: absolute;
  top: 16px; left: 16px;
  padding: .3em .9em;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}
.project__badge--vitrine { color: var(--violet); }
.project__badge--ecommerce { color: var(--blue); }
.project__badge--seo { color: var(--teal); }
.project__body { display: flex; flex: 1; flex-direction: column; padding: 26px; }
.project__body h3 { margin-bottom: .4em; font-size: 1.25rem; }
.project__body p { flex: 1; font-size: .97rem; }
.project__body .link-arrow { margin-top: 14px; color: var(--blue); font-size: .95rem; }
.projects__intro {
  max-width: 720px;
  margin: 0 auto 28px;
  padding: 16px 22px;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--text);
  font-size: .97rem;
  text-align: center;
}
.project__demo {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.form-card {
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field label, .field .label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: .96rem;
  font-weight: 700;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .25s, box-shadow .25s;
}
.field select {
  -webkit-appearance: none;
          appearance: none;
  padding-right: 46px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230066FF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 16px center / 18px;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #C5D1EC; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, .15);
}
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--cta); }
.field__hint { margin-top: 6px; color: var(--muted); font-size: .86rem; }
.req { color: var(--cta); }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; }
.checkbox input { flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); }
.honeypot { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.form__note { color: var(--muted); font-size: .86rem; }

.contact-card {
  position: relative;
  padding: clamp(28px, 4vw, 40px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--grad-violet);
  color: rgba(255, 255, 255, .9);
  box-shadow: 0 24px 50px rgba(75, 38, 200, .3);
}
.contact-card h2 { color: #fff; font-size: 1.6rem; }
.contact-card > :not(.deco) { position: relative; z-index: 1; }
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.contact-list .icon-wrap {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .16);
}
.contact-list strong { display: block; color: #fff; font-family: var(--font-title); }
.contact-list a { color: #fff; }

.zone-card { margin-top: 26px; padding: clamp(26px, 4vw, 36px); border-radius: var(--radius-lg); background: var(--soft); }
.zone-card h2 { font-size: 1.45rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0 0; padding: 0; list-style: none; }
.chips li {
  padding: .35em .95em;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(22, 26, 51, .06);
  transition: transform .3s var(--ease), background-color .3s, color .3s;
}
.chips li:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

/* Pages de texte (mentions légales, confidentialité) */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; font-size: 1.15rem; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose .notice {
  margin-bottom: 2.4rem;
  padding: 18px 22px;
  border-left: 4px solid #D99A00;
  border-radius: 12px;
  background: #FFF8E6;
  font-size: .95rem;
}

/* Page simple centrée (merci, 404) */
.simple-page { text-align: center; }
.simple-page .big-num {
  font-family: var(--font-title);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  text-shadow: 0 16px 40px rgba(0, 40, 120, .3);
}

/* 8. Pied de page
   ========================================================================== */
.site-footer {
  position: relative;
  padding: clamp(110px, 14vw, 160px) 0 0;
  overflow: hidden;
  background: var(--footer);
  color: rgba(255, 255, 255, .72);
  font-size: .97rem;
}
.site-footer .curve--top { fill: var(--white); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
}
.site-footer .brand { margin-bottom: 18px; color: #fff; }
.footer-title {
  position: relative;
  margin-bottom: 1.1em;
  padding-bottom: 12px;
  color: #fff;
  font-size: 1.1rem;
}
.footer-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 36px; height: 7px;
  background: var(--cyan);
  -webkit-mask: var(--wave) left center / 36px 7px no-repeat;
          mask: var(--wave) left center / 36px 7px no-repeat;
}
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: .55em; }
.footer-links a, .footer-contact a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  transition: color .25s, padding-left .25s;
}
.footer-links a:hover { color: #fff; padding-left: 6px; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact { margin: 0; padding: 0; list-style: none; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: .9em; }
.footer-contact .icon { width: 20px; height: 20px; margin-top: 4px; color: var(--cyan); }

.socials { display: flex; gap: 10px; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transition: background .3s, transform .3s var(--ease);
}
.socials a:hover { background: var(--grad); transform: translateY(-4px) rotate(-6deg); }
.socials .icon { width: 20px; height: 20px; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 30px;
  padding: 24px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .9rem;
}
.site-footer__bottom p { margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.legal-links a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.legal-links a:hover { color: #fff; text-decoration: underline; }

.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border: 0;
  border-radius: 50%;
  background: var(--cta);
  color: #fff;
  box-shadow: 0 10px 24px rgba(238, 75, 43, .4);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity .35s, transform .35s var(--ease), visibility .35s, background-color .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--cta-dark); transform: translateY(-4px); }
.to-top .icon { transform: rotate(180deg); }

/* 9. Animations
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-18px) rotate(calc(var(--r, 0deg) + 10deg)); }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
@keyframes scrollHint {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* 10. Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .expertises-block { grid-template-columns: 1fr; }
  .expertises-block .section__head--left { max-width: 680px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .projects, .xp-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .cards-3 { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .split, .contact-layout { grid-template-columns: 1fr; }
  .split--reverse-mobile .split__media { order: 2; }

  .showcase, .showcase--reverse { grid-template-columns: 1fr; }
  .showcase--reverse .showcase__media { order: 0; }
  .showcase__panel, .showcase--reverse .showcase__panel { margin: -60px 16px 0; }

  .timeline { grid-template-columns: 1fr; gap: 26px; }
  .timeline::before, .timeline::after {
    top: 10px; bottom: 10px;
    left: 38px; right: auto;
    width: 4px; height: auto;
  }
  .timeline::after { transform: scaleY(0); transform-origin: top; }
  .timeline.is-visible::after { transform: scaleY(1); }
  .timeline__step { display: grid; grid-template-columns: 80px 1fr; gap: 20px; text-align: left; }
  .timeline__dot { margin: 0; }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }
  .xp-grid, .xp-grid--3, .projects { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .stats { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .deco--hide-sm { display: none; }
  .btn-group .btn { flex: 1 1 100%; }
  .photo-frame::before { inset: 16px -12px -16px 12px; }
  .hero__scroll { display: none; }
  .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(30px); }
}

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .timeline::after { transform: none; }
}
