/* ==========================================================================
   MAX DESIGN GRAPHIQUE — V4
   Couche de présentation chargée après style.css.
   Elle ne change aucun contenu : seulement l'apparence des widgets MAX.
   Principe : moins d'effets (verre dépoli, grain, grille, défilements,
   apparitions floutées), une lueur discrète, des légendes toujours visibles.
   ========================================================================== */

:root {
  --v4-line: rgba(200, 205, 240, .22);
  --v4-card: #26207a;
  --v4-band: #221a72;
  --v4-glow: rgba(0, 254, 255, .14);
}

/* ---------- Fond et effets globaux ---------- */
html body .noise { display: none !important; }
html body .hero-bg {
  background-image: radial-gradient(900px 560px at 82% 10%, var(--v4-glow), transparent 70%) !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  animation: none !important;
}
html body .hero-bg::before,
html body .hero-bg::after { display: none !important; }

/* Apparitions : tout est visible d'emblée, sans flou ni décalage. */
html body .reveal,
html body .reveal.in,
html body .section-head > div,
html body .section-head > p,
html body .svc,
html body .pf,
html body .pf-cta,
html body .testi,
html body .about-img-wrap,
html body .about-text > *,
html body .form > *,
html body .contact > div > *,
html body .hero-left > * {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
}

/* Pastilles qui clignotent : immobiles. */
html body .pip,
html body .dot,
html body .nav-cta .dot { animation: none !important; }

/* ---------- Libellés de section ---------- */
/* Les numéros « 02 · » restent dans le code mais ne s'affichent plus. */
html body .eyebrow {
  font-family: var(--sans) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--accent) !important;
  gap: 0 !important;
}
html body .eyebrow::before { display: none !important; }
html body .eyebrow .idx { display: none !important; }

/* ---------- En-tête ---------- */
html body .nav {
  background: rgba(27, 20, 100, .92) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--v4-line) !important;
}
html body .nav-links {
  background: transparent !important;
  border: 0 !important;
}

/* ---------- Accroche ---------- */
html body .hero-scroll { display: none !important; }
html body .hero-badge {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  font-family: var(--sans) !important;
  font-size: 15px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin-bottom: 14px !important;
}
html body .hero-eyebrow {
  font-family: var(--sans) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin-bottom: 28px !important;
}
html body .hero-eyebrow .line { display: none !important; }
html body .hero-right::after { display: none !important; }
html body .hero-right {
  border-radius: 14px !important;
  overflow: visible !important;
  background: transparent !important;
}
html body .hero-right img { border-radius: 14px !important; filter: none; }
html body .hero-rate {
  background: var(--bg) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--v4-line) !important;
  border-radius: 14px !important;
  box-shadow: 0 0 40px -12px rgba(0, 254, 255, .45) !important;
}
html body .hero-rate small {
  font-family: var(--sans) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: 13px !important;
}
html body .btn,
html body a.btn {
  box-shadow: 0 12px 34px -12px rgba(0, 254, 255, .65) !important;
}
html body .btn-link {
  font-family: var(--sans) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: 16px !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

/* ---------- Bandeau de mots-clés (ex-défilant) ---------- */
html body .marquee {
  background: var(--v4-band) !important;
  padding: 22px 0 !important;
}
html body .marquee-track {
  animation: none !important;
  transform: none !important;
  width: auto !important;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 10px 12px !important;
}
html body .marquee-item.is-dup { display: none !important; }
html body .marquee-item {
  font-family: var(--sans) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--ink-mid) !important;
  border: 1px solid var(--v4-line);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}
html body .marquee-glyph { display: none !important; }

/* ---------- Ligne « Ils m'ont fait confiance » : logos ---------- */
.v4-clients {
  border-top: 1px solid var(--v4-line);
  border-bottom: 1px solid var(--v4-line);
}
.v4-clients-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px var(--pad-x, 24px) 44px;
  text-align: center;
}
html body .v4-clients-title {
  margin: 0 0 26px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-mid);
}
.v4-clients-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 64px;
  color: var(--ink);
}
.v4-client {
  display: flex;
  align-items: center;
  height: var(--h, 48px);
  opacity: .82;
  transition: opacity .2s, color .2s;
}
.v4-client:hover { opacity: 1; color: var(--accent); }
.v4-client svg { display: block; height: 100%; width: auto; }
.v4-client--name {
  display: block;
  height: auto;
  font-family: var(--title);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
}
.v4-client--name span { color: var(--accent); }

/* ---------- Services : une liste avec schémas ---------- */
html body .bento {
  display: block !important;
  border-bottom: 1px solid var(--v4-line);
}
html body .svc {
  display: grid !important;
  grid-template-columns: 88px minmax(0, 1.15fr) minmax(0, 1.35fr) auto;
  align-items: center;
  gap: 12px 40px;
  padding: 30px 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0 !important;
  border-top: 1px solid var(--v4-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
}
html body .svc::before { display: none !important; }
html body .svc:hover { transform: none !important; background: transparent !important; }
html body .svc .head { display: contents !important; }
html body .svc .glyph {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 88px !important;
  height: 88px !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  color: var(--accent) !important;
}
html body .svc:hover .glyph { background: transparent !important; color: var(--accent) !important; }
html body .svc .glyph svg { width: 88px !important; height: 88px !important; }
html body .svc .num {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  font-family: var(--sans) !important;
  font-size: 14px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--ink-mid) !important;
}
html body .svc .ttl {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin: 0 !important;
  font-size: clamp(28px, 2.7vw, 40px) !important;
  line-height: 1.02 !important;
}
html body .svc .ttl .it { display: block !important; color: var(--ink-mute) !important; }
html body .svc .desc {
  grid-column: 3;
  grid-row: 1 / span 2;
  margin: 0 !important;
  font-family: var(--sans) !important;
  font-size: 17px !important;
  color: var(--ink-mid) !important;
}
html body .svc .arr {
  grid-column: 4;
  grid-row: 1 / span 2;
  margin: 0 !important;
  font-family: var(--sans) !important;
  font-size: 15px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--accent) !important;
  white-space: nowrap;
}

/* ---------- Bandeau slogan ---------- */
.v4-slogan {
  background: var(--accent);
  color: var(--bg);
}
.v4-slogan p {
  margin: 0 !important;
  padding: 64px var(--pad-x, 24px);
  font-family: var(--title);
  font-size: clamp(44px, 7.4vw, 116px);
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--bg) !important;
}

/* ---------- Réalisations : légendes toujours visibles ---------- */
html body .pf-grid {
  display: block !important;
  columns: 3 300px;
  column-gap: 24px;
}
html body .pf {
  display: block !important;
  aspect-ratio: auto !important;
  height: auto !important;
  break-inside: avoid;
  margin: 0 0 36px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
html body .pf:hover { transform: none !important; }
html body .pf img {
  position: static !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  border-radius: 14px !important;
  filter: none !important;
  transform: none !important;
}
html body .pf::after,
html body .pf .pf-glow,
html body .pf .pf-zoom { display: none !important; }
html body .pf .pf-overlay,
html body .pf .pf-meta {
  position: static !important;
  inset: auto !important;
  opacity: 1 !important;
  transform: none !important;
  background: none !important;
  padding: 14px 0 0 !important;
}
html body .pf .pf-content { padding: 0 !important; transform: none !important; }
html body .pf-cta {
  break-inside: avoid;
  aspect-ratio: auto !important;
  min-height: 0 !important;
  margin: 0 0 36px !important;
  background: transparent !important;
  border: 1px dashed var(--accent) !important;
}

/* ---------- Réalisations de l'accueil : grille régulière, légendes dessous ---------- */
html body .pf-grid.v4-wk {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 40px 24px !important;
  columns: auto;
}
html body .v4-wk .pf {
  display: block !important;
  aspect-ratio: auto !important;
  height: auto !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  cursor: zoom-in;
}
html body .v4-wk .pf:hover { transform: none !important; }
html body .v4-wk .pf img {
  position: static !important;
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 5 !important;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 14px !important;
  background: var(--v4-card);
  filter: none !important;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1), box-shadow .7s !important;
}
html body .v4-wk .pf:hover img { transform: translateY(-4px) !important; box-shadow: 0 22px 44px -26px rgba(0, 254, 255, .55); }
html body .v4-wk .pf.pf--contain img { object-fit: contain; object-position: 50% 50% !important; background: #fff; padding: 12%; box-sizing: border-box; }
/* Images entières (jamais rognées) : l'image est posée dans son cadre 4:5 ;
   les marges reprennent les couleurs de ses bords (calculées par fx.js), comme si l'image se prolongeait. */
html body .v4-wk .pf:not(.pf--contain) img { object-fit: contain !important; object-position: 50% 50% !important; background: var(--mat, var(--v4-card)) !important; transition: transform .7s cubic-bezier(.2, .7, .2, 1), box-shadow .7s, background .4s !important; }
html body .v4-wk .pf::after,
html body .v4-wk .pf .pf-glow,
html body .v4-wk .pf .pf-zoom { display: none !important; }
html body .v4-wk .pf .pf-overlay,
html body .v4-wk .pf .pf-meta {
  position: static !important;
  inset: auto !important;
  opacity: 1 !important;
  transform: none !important;
  background: none !important;
  padding: 14px 0 0 !important;
}
html body .v4-wk .pf .pf-content { padding: 0 !important; transform: none !important; gap: 2px !important; }
html body .v4-wk .pf .pf-client { font-family: var(--title) !important; font-size: 18px !important; font-weight: 600; line-height: 1.2 !important; }
html body .v4-wk .pf .pf-type { font-size: 14px !important; margin: 0 !important; }
html body .v4-wk .pf .pf-type::before { display: none !important; }
html body .pf-cta.v4-wk-end {
  margin: 56px 0 0 !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  padding: 28px 32px !important;
  background: transparent !important;
  border: 1px dashed var(--accent) !important;
  border-radius: 14px !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px 32px;
}
html body .pf-cta.v4-wk-end:hover { transform: none !important; box-shadow: none !important; }
html body .v4-wk-end .row { display: none !important; }
html body .v4-wk-end .big { margin: 0 !important; font-size: clamp(28px, 3vw, 38px) !important; line-height: 1.1 !important; }
html body .v4-wk-end .big small {
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-mid);
}
.v4-wk-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
@media (max-width: 1000px) {
  html body .pf-grid.v4-wk { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 32px 16px !important; }
}

/* ---------- À propos ---------- */
html body .about-deco { display: none !important; }
html body .about-img-wrap { padding: 0 !important; }
html body .about-img { aspect-ratio: auto !important; }
html body .about-img img { height: auto !important; filter: none !important; }
html body .about-img .ticker {
  background: var(--bg) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  font-family: var(--sans) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: 13px !important;
}
html body .about-square { border-radius: 14px 0 14px 0; }
html body .about-square .lbl,
html body .metric .l {
  font-family: var(--sans) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: 14px !important;
}
html body .metrics { justify-items: start; }
html body .metric { align-items: flex-start !important; text-align: left !important; }

/* ---------- Avis : grille au lieu du carrousel ---------- */
html body .testi-rail {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 24px !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
}
html body .testi {
  flex: none !important;
  width: auto !important;
  background: var(--v4-card) !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}
html body .testi:hover { transform: none !important; }
html body .testi .pill,
html body .testi .rl {
  font-family: var(--sans) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: 13px !important;
}
html body .testi-nav { display: none !important; }

/* ---------- Contact ---------- */
html body .form {
  background: var(--v4-card) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 0 90px -30px rgba(0, 254, 255, .4) !important;
}
html body .form label,
html body .contact-meta,
html body .socials a {
  font-family: var(--sans) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html body .form label { font-size: 14px !important; font-weight: 600 !important; color: var(--ink) !important; }

html body .form .submit {
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
  box-shadow: 0 12px 34px -12px rgba(0, 254, 255, .65) !important;
}
html body .contact-mail { font-family: var(--serif) !important; }

/* ---------- Pied de page et petits libellés : plus de police « machine à écrire » ---------- */
html body .foot-col h5,
html body .foot-base,
html body .foot-base *,
html body .pf-cta .row,
html body .pf-cta .row span,
html body .nav-cta,
html body .socials a,
html body .btn,
html body .submit {
  font-family: var(--sans) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html body .foot-col h5 { font-size: 14px !important; font-weight: 600 !important; color: var(--ink) !important; }
html body .nav-cta { font-size: 14px !important; }

/* ---------- Pages intérieures ---------- */
html body .page-hero .hero-bg,
html body .page-header .hero-bg { opacity: 1 !important; }
html body .breadcrumb,
html body .crumbs,
html body .meta-pill,
html body .filter-btn,
html body .cat-tag,
html body .tag,
html body .pf-type,
html body .pf-client,
html body .cat-eyebrow,
html body .cat-count,
html body .proj-idx,
html body .ticker-item,
html body .corner {
  font-family: var(--sans) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html body .ticker-track { animation: none !important; transform: none !important; flex-wrap: wrap; justify-content: center; width: auto !important; }

/* ---------- Petits libellés : Geist, sans majuscules forcées ni espacement ---------- */
html body .nav-cta,
html body .hero-badge,
html body .hero-eyebrow,
html body .hero-h sup,
html body .btn-link,
html body .hero-rate small,
html body .hero-scroll,
html body .marquee-item,
html body .eyebrow,
html body .process-step .step-n,
html body .pf .pf-type,
html body .pf .pf-corner,
html body .pf-cta .row,
html body .about-square .lbl,
html body .about-img .ticker,
html body .metric .l,
html body .testi .pill,
html body .testi .rl,
html body .socials a,
html body .form label,
html body .form .chip-btn,
html body .foot-brand .meta,
html body .foot-col h5,
html body .foot-base,
html body .lb-caption,
html body .menu-item-mobile-cta .mobile-nav-cta,
html body .crumbs,
html body .hero-about-sub .meta .k,
html body .story-tag,
html body .story-sign small,
html body .story-text .eyebrow,
html body .signature .who,
html body .quote-banner .credit,
html body .section-head .eyebrow,
html body .tl-step .year,
html body .press-card .meta .cat,
html body .press-card .corner,
html body .breadcrumb,
html body .hstat .l,
html body .cat-eyebrow,
html body .cat-count,
html body .cat-tag,
html body .soon-badge,
html body .pill,
html body .stat .l,
html body .filter-btn,
html body .filter-count,
html body .svc-list li,
html body .pf-tag,
html body .pf-badge,
html body .proc-num,
html body .proc-tag,
html body .left-eyebrow,
html body .info-label,
html body .social-btn,
html body .avail-badge,
html body .form-eyebrow,
html body .field label,
html body .form-note,
html body .tech-chip,
html body .product-group h4,
html body .legal-page-wrap .breadcrumb,
html body .legal-page-wrap .meta-pill,
html body .legal-page-wrap .toc-title,
html body .legal-tab,
html body .legal-page-wrap .clause-num,
html body .legal-page-wrap .clause .ref,
html body .legal-page-wrap .clause table th,
html body .legal-page-wrap .info-card .lbl,
html body .hero-sub .summary .k,
html body .proj-idx,
html body .proj-meta,
html body .pic .corner,
html body .ticker-item {
  font-family: var(--sans) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* ---------- Grilles de fond animées des pages intérieures : remplacées par une lueur ---------- */
html body .hero-about-bg,
html body .page-header-bg,
html body .hero-editorial-bg {
  background-image: radial-gradient(900px 520px at 82% 0%, var(--v4-glow), transparent 70%) !important;
  background-size: auto !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  animation: none !important;
}
html body .left-bg::before { display: none !important; }
html body .ticker-item.is-dup { display: none !important; }
html body .ticker-item { border: 1px solid var(--v4-line); border-radius: 999px; padding: 6px 14px; font-size: 14px !important; }
html body .ticker-item .glyph { display: none !important; }

/* ---------- Accroche : à la hauteur de l'écran, photo pleine hauteur à droite ---------- */
@media (min-width: 761px) {
  html body .hero {
    min-height: min(100svh, 1080px) !important;
    padding: 110px 0 40px var(--pad-x) !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, .82fr) !important;
    gap: clamp(40px, 6vw, 104px) !important;
  }
  html body .hero .hero-right {
    margin: 24px 0 0 !important;
    min-height: 520px;
    border-radius: 14px 0 0 14px !important;
  }
  html body .hero .hero-right img { border-radius: 14px 0 0 14px !important; }
}
html body .hero .hero-left { justify-content: center; }
html body .hero .hero-right { overflow: visible !important; }
html body .hero .hero-right img { z-index: 1; object-position: 50% 25%; }
.hero-sq {
  position: absolute;
  left: -24px;
  top: -24px;
  z-index: 0;
  width: 40%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  background: var(--accent);
  border-radius: 14px;
}
html body .hero .hero-rate { left: -28px; right: auto; bottom: 40px; z-index: 2; }
.hero-place {
  list-style: none;
  margin: 48px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--v4-line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-mid);
}
html body .hero-place .hero-badge,
html body .hero-place .hero-eyebrow {
  display: block !important;
  margin: 0 !important;
  color: var(--ink-mid) !important;
  font-weight: 400 !important;
}
.hero-place b { color: var(--ink); font-weight: 600; }
.hero-place li + li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 10px 2px 0;
  vertical-align: middle;
}

/* Les éléments qui arrivent de côté ne doivent jamais créer de défilement horizontal. */
html, html body { overflow-x: hidden; overflow-x: clip; }

/* ---------- Effets d'apparition (assets/js/fx.js) ----------
   Rien n'est masqué tant que le script n'a pas marqué les éléments (data-fx).
   Désactivés pour les visiteurs qui ont réduit les animations et dans l'éditeur Elementor. */
html.fx body [data-fx] {
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1), clip-path 1.1s cubic-bezier(.7, 0, .2, 1) !important;
  transition-delay: var(--d, 0ms) !important;
}
html.fx body [data-fx]:not(.fx-in) { opacity: 0 !important; }
html.fx body [data-fx="up"]:not(.fx-in) { transform: translate3d(0, 36px, 0) !important; }
html.fx body [data-fx="down"]:not(.fx-in) { transform: translate3d(0, -28px, 0) !important; }
html.fx body [data-fx="left"]:not(.fx-in) { transform: translate3d(-56px, 0, 0) !important; }
html.fx body [data-fx="right"]:not(.fx-in) { transform: translate3d(56px, 0, 0) !important; }
/* Mobile : aucune entrée par le côté (sinon la page devient plus large que l'écran et se décale) */
@media (max-width: 900px) {
  html.fx body [data-fx="left"]:not(.fx-in),
  html.fx body [data-fx="right"]:not(.fx-in) { transform: translate3d(0, 32px, 0) !important; }
}
html.fx body [data-fx="zoom"]:not(.fx-in) { transform: scale(.92) !important; }
html.fx body [data-fx="pop"]:not(.fx-in) { transform: translate3d(0, 24px, 0) scale(.86) !important; }
html.fx body [data-fx="tilt"]:not(.fx-in) { transform: perspective(900px) rotateX(10deg) translate3d(0, 40px, 0) !important; transform-origin: 50% 100%; }
html.fx body [data-fx="rise"]:not(.fx-in) { opacity: 1 !important; clip-path: inset(0 0 100% 0); transform: translate3d(0, 40px, 0) !important; }
html.fx body [data-fx="wipe-l"]:not(.fx-in) { opacity: 1 !important; clip-path: inset(0 100% 0 0); }
html.fx body [data-fx="wipe-r"]:not(.fx-in) { opacity: 1 !important; clip-path: inset(0 0 0 100%); }
html.fx body [data-fx="rise"].fx-in,
html.fx body [data-fx="wipe-l"].fx-in,
html.fx body [data-fx="wipe-r"].fx-in { clip-path: inset(-60px -60px -60px -60px); }
html.fx body .svc [data-draw] { transition: stroke-dashoffset 1.6s cubic-bezier(.6, 0, .2, 1); transition-delay: calc(var(--d, 0ms) + 250ms); }
html.fx body .svc [data-dot] { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; transition: opacity .4s, transform .5s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--d, 0ms) + 1200ms); }
html.fx body .svc.fx-in [data-draw] { stroke-dashoffset: 0 !important; }
html.fx body .svc.fx-in [data-dot] { opacity: 1; transform: none; }
/* Photo de l'accroche : animation purement CSS, lancée dès le premier affichage
   (sans attendre le script, donc pas de clignotement) : elle se pose en douceur, puis le carré cyan sort de derrière. */
@keyframes mdg-settle { from { opacity: 0; transform: scale(1.06); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes mdg-tuck { from { opacity: 0; transform: translate3d(32px, 32px, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  body:not(.elementor-editor-active) .hero .hero-right img { animation: mdg-settle 1.6s cubic-bezier(.16, 1, .3, 1) .1s both; }
  body:not(.elementor-editor-active) .hero .hero-sq { animation: mdg-tuck 1.1s cubic-bezier(.16, 1, .3, 1) .7s both; }
}
html body .btn { transition: transform .25s, box-shadow .25s; }
html body a.btn:hover { transform: translateY(-2px); }
html body .testi { transition: transform .35s, box-shadow .35s; }
html body .testi:hover { transform: translateY(-4px) !important; box-shadow: 0 24px 50px -28px rgba(0, 254, 255, .55); }

/* ---------- Page Réalisations : une catégorie par ligne, image et texte en alternance ---------- */
html body .cat-grid { display: block !important; }
html body .cat-card,
html body .cat-card.wide,
html body .cat-card.tall {
  display: grid !important;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  align-items: center;
  gap: 32px 64px;
  min-height: 0 !important;
  padding: 56px 0;
  border: 0 !important;
  border-top: 1px solid var(--v4-line) !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
}
html body .cat-card:first-child { border-top: 0 !important; padding-top: 8px; }
html body .cat-card:nth-child(even) { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); }
html body .cat-card:nth-child(even) .cat-bg { order: 2; }
html body .cat-card .cat-bg {
  position: relative !important;
  inset: auto !important;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  filter: none !important;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1), box-shadow .7s !important;
}
html body .cat-card:hover .cat-bg { transform: translateY(-4px) !important; box-shadow: 0 26px 50px -28px rgba(0, 254, 255, .6); filter: none !important; }
html body .cat-card .cat-overlay,
html body .cat-card .cat-glow,
html body .cat-card .cat-number { display: none !important; }
html body .cat-card .cat-content { position: static !important; padding: 0 !important; gap: 0 !important; }
html body .cat-card .cat-eyebrow { font-family: var(--sans) !important; font-size: 14px !important; font-weight: 500; letter-spacing: 0 !important; text-transform: none !important; margin-bottom: 16px; }
html body .cat-card .cat-eyebrow .pip { display: none; }
html body .cat-card .cat-title,
html body .cat-card.wide .cat-title { font-size: clamp(36px, 4.4vw, 64px) !important; color: var(--ink) !important; }
html body .cat-card .cat-desc { opacity: 1 !important; transform: none !important; margin: 20px 0 0; max-width: 560px; font-size: 16px; }
html body .cat-card .cat-footer { border: 0 !important; padding: 0 !important; margin-top: 24px; justify-content: flex-start !important; gap: 10px 12px; }
html body .cat-card .cat-count { background: none !important; border: 0 !important; padding: 0 8px 0 0 !important; font-family: var(--sans) !important; font-size: 15px !important; font-weight: 600; letter-spacing: 0 !important; text-transform: none !important; color: var(--accent) !important; }
html body .cat-card .cat-tag { font-family: var(--sans) !important; font-size: 13px !important; letter-spacing: 0 !important; text-transform: none !important; padding: 6px 14px !important; color: var(--ink-mid) !important; background: none !important; border: 1px solid var(--v4-line) !important; }
html body .cat-card .cat-arrow { position: static !important; width: auto !important; height: auto !important; background: none !important; border: 0 !important; color: var(--accent) !important; transition: transform .3s !important; }
html body .cat-card:hover .cat-arrow { transform: translateX(6px) !important; }
@media (max-width: 760px) {
  html body .cat-card,
  html body .cat-card.wide,
  html body .cat-card.tall,
  html body .cat-card:nth-child(even) { grid-template-columns: 1fr !important; padding: 40px 0; }
  html body .cat-card:nth-child(even) .cat-bg { order: 0; }
}

/* ---------- Appels à l'action des pages intérieures : bande cyan pleine largeur ---------- */
html body .cta-section,
html body .cta-band,
html body section.cta {
  background: var(--accent) !important;
  color: var(--bg) !important;
  border-width: 0 !important;
  border-image: conic-gradient(var(--accent) 0 0) fill 0 // 0 100vmax !important;
}
html body .cta-section h2,
html body .cta-band h2,
html body section.cta h2,
html body .cta-section h2 .it,
html body .cta-band h2 .it,
html body section.cta h2 .it,
html body .cta-section h2 .ac,
html body .cta-band h2 .ac,
html body section.cta h2 .ac { color: var(--bg) !important; }
html body .cta-section h2 .it,
html body .cta-band h2 .it,
html body section.cta h2 .it { opacity: .62; }
html body .cta-section .sub,
html body .cta-band .sub,
html body section.cta p { color: var(--bg) !important; opacity: .82; }
html body .cta-section a.btn,
html body .cta-band a.btn,
html body section.cta a.btn { background: var(--bg) !important; color: #fff !important; box-shadow: 0 14px 30px -14px rgba(27, 20, 100, .8) !important; }
html body .cta-section a.btn .arrow,
html body .cta-band a.btn .arrow,
html body section.cta a.btn .arrow { background: var(--accent) !important; color: var(--bg) !important; }
html body section.cta a.btn-ghost { background: transparent !important; color: var(--bg) !important; border: 1px solid var(--bg) !important; box-shadow: none !important; }
html body section.cta .mail { color: var(--bg) !important; border-color: var(--bg) !important; }
html body section.cta .eyebrow { color: var(--bg) !important; }

/* ---------- Brochures & magazines : vues alignées sur une ligne ---------- */
html body .gallery.count-3,
html body .gallery.count-4 { grid-auto-rows: auto !important; }
html body .gallery.count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
html body .gallery.count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
html body .gallery.count-3 > .pic,
html body .gallery.count-3 > .pic:nth-child(1) { grid-row: auto !important; aspect-ratio: 9 / 10 !important; }
html body .gallery.count-4 > .pic { aspect-ratio: 3 / 4 !important; }
@media (max-width: 760px) {
  html body .gallery.count-3,
  html body .gallery.count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html body .gallery.count-3 > .pic:nth-child(1) { grid-column: 1 / -1; aspect-ratio: 16 / 11 !important; }
}

/* ---------- Changement de page : fondu court, la nouvelle page monte légèrement ----------
   Navigateurs compatibles (Chrome, Edge, Safari récents) ; ailleurs, navigation normale. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  html body .nav { view-transition-name: mdg-nav; }
  ::view-transition { background: #1b1464; }
  ::view-transition-old(root) { animation: mdg-vt-out .18s ease-out both; }
  ::view-transition-new(root) { animation: mdg-vt-in .34s cubic-bezier(.2, .7, .2, 1) .05s both; }
  ::view-transition-group(mdg-nav) { animation-duration: 0s; }
  @keyframes mdg-vt-out { to { opacity: 0; } }
  @keyframes mdg-vt-in { from { opacity: 0; transform: translateY(12px); } }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  html body .svc {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px 20px;
  }
  html body .svc .glyph,
  html body .svc .glyph svg { width: 64px !important; height: 64px !important; }
  html body .svc .desc,
  html body .svc .arr { grid-column: 1 / -1; grid-row: auto; }
  .v4-clients-list { gap: 24px 36px; }
  .v4-client--logo { height: calc(var(--h, 48px) * .72); }
  html body .hero .hero-right {
    order: 0 !important;
    width: auto !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    height: min(78svh, 560px);
    max-height: none !important;
    margin: 8px 0 64px 24px !important;
    border-radius: 14px !important;
  }
  html body .hero .hero-rate { left: auto; right: 16px; bottom: -24px; }
}

@media (prefers-reduced-motion: reduce) {
  html body * { scroll-behavior: auto !important; }
}
