/* ==========================================================================
   MA3 — STYLES
   ========================================================================== */

/* ==========================================================================
   GÉNÉRAL
   ========================================================================== */

:root {
  --gris-barre: #000;
}

.grecaptcha-badge {
  display: none !important;
}
h2 {
  padding-bottom: 0 !important;
}
#page-container {
  overflow-x: hidden;
}
.footer-lien a:link,
.footer-lien a:visited {
  color: #fff;
}
.footer-lien a:hover {
  text-decoration: underline;
}

/* Menu principal */
#ma3-nav { font-weight: 500; }
/* Menu principal, survol : le mot monte et le même mot arrive par le bas (span posé par initNavRoll) */
.nav-roll { position: relative; display: inline-block; padding-bottom: .12em; margin-bottom: -.12em; overflow: hidden; vertical-align: bottom; }
/* à la sortie, le texte reste roulé : il revient sans animation (invisible, même mot) et roule à nouveau au survol suivant, comme les onglets */
.nav-roll > span { display: block; }
.nav-roll::after { content: attr(data-t); content: attr(data-t) / ""; position: absolute; left: 0; top: 0; white-space: nowrap; transform: translateY(135%); }   /* 135 % : les accents (À, É) de la copie du dessous ne dépassent pas sous le mot */
@media (hover: hover) {
  a:hover > .nav-roll > span { transform: translateY(-135%); } a:hover > .nav-roll::after { transform: none; }
  a:hover > .nav-roll > span, a:hover > .nav-roll::after { transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
}
a:focus-visible > .nav-roll > span { transform: translateY(-135%); } a:focus-visible > .nav-roll::after { transform: none; }
a:focus-visible > .nav-roll > span, a:focus-visible > .nav-roll::after { transition: transform .45s cubic-bezier(.7, 0, .2, 1); }

/* ==========================================================================
   TITRES H2 : APPARITION MOT PAR MOT
   ========================================================================== */
.js-reveal h2,
.js-reveal .single-project h1 {
  opacity: 0;                /* le JS découpe le titre puis le réaffiche */
}
.js-reveal .no-blur h2,
.js-reveal h2.no-blur {
  opacity: 1;
}

/* Mots masqués (titres H2 + carrousel des raisons) */
.rw-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;     /* évite de couper les lettres à jambage (p, g, j) */
  margin-bottom: -0.1em;
}
.rw-word {
  display: inline-block;
  will-change: transform;
}

/* ==========================================================================
   IMAGES : REVEAL (.img-reveal) + REMPLISSAGE DE COLONNE (.img-fill)
   ========================================================================== */
/* Image en fond avec img-reveal (rangée, section ou colonne sans image) : calque intérieur posé par ma3-custom.js */
.js-reveal .img-reveal:not(img):not(:has(img)):not(.et_pb_image) { opacity: 0; }   /* évite le flash avant l'animation */
.ir-box { position: relative; overflow: hidden; isolation: isolate; }
.ir-box > .ir-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.js-reveal .img-reveal .et_pb_image_wrap {
  opacity: 0;
}
.img-reveal .et_pb_image_wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.et_pb_row:has(> .et_pb_column > .img-fill) {
  align-items: stretch;
}
.et_pb_column:has(> .img-fill) {
  display: flex;
  flex-direction: column;
}
.img-fill {
  flex: 1 1 auto;
  width: 100%;
  min-height: 300px;
  margin-bottom: 0 !important;
}
.img-fill .et_pb_image_wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.img-fill picture {                 /* Imagify (WebP) glisse un <picture> autour de l'image : il remplit le cadre lui aussi */
  position: absolute !important;
  inset: 0;
  display: block !important;
  width: 100%;
  height: 100%;
}
.img-fill img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
/* Tablette (colonnes empilées) : pleine largeur, format paysage */
@media (max-width: 1024px) {
  .et_pb_column:has(> .img-fill) {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
  }
  .img-fill {
    min-height: 0 !important;
  }
  .img-fill .et_pb_image_wrap {
    height: auto !important;
    aspect-ratio: 4 / 3;            /* format de la photo sur tablette */
  }
}

/* Tablette portrait : moins haute (pleine largeur, 4/3 prenait trop de hauteur) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .img-fill .et_pb_image_wrap {
    aspect-ratio: 16 / 9;
  }
}
/* Mobile : format portrait */
@media (max-width: 767px) {
  .img-fill .et_pb_image_wrap {
    aspect-ratio: 4 / 5;
  }
}

/* H1 : interligne 1,1 (Divi met 1em sur tous les titres ; le rouleau du H1 suit, sa hauteur est calculée sur l'interligne) */
body h1 { line-height: 1.1em; }

/* ==========================================================================
   COMPTEUR À ROULEAUX (.counter-roll)
   ========================================================================== */
.counter-roll .cr-wrap {
  display: inline-flex;
  align-items: flex-start;
  overflow: hidden;
  line-height: 1.1;
  height: 1.1em;
  vertical-align: bottom;
  font-variant-numeric: tabular-nums;
}
.counter-roll .cr-col {
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.counter-roll .cr-col span,
.counter-roll .cr-static {
  display: block;
  height: 1.1em;
  line-height: 1.1;
}
.counter-roll .cr-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   BARRE QUI S'ALLONGE (.line-grow)
   ========================================================================== */
.line-grow {
  width: 100%;
}
.line-grow .lg-bar {
  display: block;
  width: 100%;               /* sans animation : barre pleine largeur */
  height: 1px;
  background: var(--gris-barre);
}
.js-reveal .line-grow .lg-bar {
  width: 0;                  /* point de départ de l'animation */
}
/* Barre blanche (sur fond sombre ou photo) : classe line-grow-blanc sur le module Code ou sur la div .line-grow */
.line-grow-blanc .lg-bar { background: #fff; }

/* ==========================================================================
   BOUTON EXTENSIBLE (.btn-expand)
   ========================================================================== */
.btn-expand.be-ready,
.btn-expand .be-ready {
  --be-size: 43px;
  --be-bg: #000;
  --be-color: #fff;
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  width: var(--be-size);
  height: var(--be-size);
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--be-bg) !important;
  color: var(--be-color) !important;
  font-family: 'Haffer-medium', Helvetica, Arial, Lucida, sans-serif !important;
  font-size: 16px !important;
  font-weight: 500;
  line-height: 1 !important;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
}
/* Neutralise l'icône et l'effet de survol natifs de Divi */
.btn-expand.be-ready::before,
.btn-expand.be-ready::after,
.btn-expand .be-ready::before,
.btn-expand .be-ready::after {
  display: none !important;
}
.be-ready .be-label {
  position: absolute;
  left: 20px;
  opacity: 0;
  pointer-events: none;
}
.be-ready .be-icon {
  flex: 0 0 var(--be-size);
  width: var(--be-size);
  height: var(--be-size);
  display: flex;
  align-items: center;
  justify-content: center;
}
.be-ready .be-icon svg {
  width: 18px;
  height: 18px;
}

/* Variante retour : calée à droite, se déploie vers la gauche */
.et_pb_code:has(.btn-back) {
  flex: 0 0 auto;            /* le bouton ne se fait jamais écraser par le titre */
  margin-left: auto;
  margin-bottom: 0 !important;
}
.btn-back.be-ready {
  justify-content: flex-start;          /* le rond ← reste collé au bord gauche */
}
.btn-back.be-ready .be-label {
  left: calc(var(--be-size) - 4px);     /* texte juste à droite de la flèche */
}
/* Apparition en fondu : masqué jusqu'à l'animation (seulement le module Code du bouton) */
.js-reveal .et_pb_code:has(> .et_pb_code_inner > .btn-expand),
.js-reveal .et_pb_code:has(> .et_pb_code_inner > .btn-sweep),
.js-reveal .fade-in,
.js-reveal .et_pb_image:has(img[src*="/arrow2.svg"]),   /* flèche « Nos créations en témoignent » : même apparition */
.js-reveal .hero-appear,                 /* hero : apparaît après le menu, le H1 et les boutons */
.js-reveal .ma3-hero-sync,               /* animation du hero : idem (masquée jusqu'à son apparition) */
.js-reveal .ma3-pres-hero,               /* hero Présentation [ma3_pres_hero] : idem */
.js-reveal .ma3-app-hero,                /* hero Application [ma3_app_hero] : idem */
.js-reveal .ma3-app-idee .ai-card,       /* [ma3_app_idee] : les cartes entrent au scroll */
.js-reveal .ma3-frise .mst-card,         /* [ma3_app_etapes] : idem */
.js-reveal .single-project .et_pb_section:has(h1) .et_pb_row:has(.line-grow) .et_pb_group,   /* infos du projet : apparition en fondu */
.js-reveal .single-project .et_pb_section:not(:has(h1)) .et_pb_row:has(.line-grow) .et_pb_group:not(.et_pb_group .et_pb_group) {   /* titre « Témoignage » en bas : simple fondu */
  opacity: 0;
}
/* ==========================================================================
   BOUTON À REMPLISSAGE (.btn-sweep)
   ========================================================================== */
.btn-sweep {
  --bs-bg: transparent;      /* fond au repos */
  --bs-border: #fff;         /* contour */
  --bs-text: #fff;           /* texte + flèche au repos */
  --bs-fill: #f5f5f5;        /* couleur qui remplit le bouton au survol */
  --bs-text-hover: #161616;  /* texte + flèche au survol */
  --bs-speed: 0.35s;         /* vitesse de l'animation */
  --bs-ease: cubic-bezier(0.65, 0, 0.35, 1);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 28px;
  border: 1px solid var(--bs-border);
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
  background: var(--bs-bg);
  color: var(--bs-text);
  font-family: 'Haffer-medium', Helvetica, Arial, Lucida, sans-serif !important;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--bs-speed) var(--bs-ease);
}
/* Le fond qui glisse depuis la gauche */
.btn-sweep::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--bs-fill);
  transform: translateX(-101%);
  transition: transform var(--bs-speed) var(--bs-ease);
}
.btn-sweep:hover,
.btn-sweep:focus-visible {
  color: var(--bs-text-hover);
}
.btn-sweep:hover::before,
.btn-sweep:focus-visible::before {
  transform: translateX(0);
}
/* Flèche : rotation au survol */
.btn-sweep svg {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  transition: transform var(--bs-speed) var(--bs-ease);
}
.btn-sweep:hover svg,
.btn-sweep:focus-visible svg {
  transform: rotate(45deg);
}

/* Variante fond blanc : noir plein → se remplit de blanc */
.btn-sweep--black {
  --bs-bg: #000;
  --bs-border: #000;
  --bs-text: #fff;
  --bs-fill: #fff;
  --bs-text-hover: #000;
}
/* Variante fond blanc : contour noir → se remplit de noir */
.btn-sweep--outline {
  --bs-bg: #fff;
  --bs-border: #000;
  --bs-text: #000;
  --bs-fill: #000;
  --bs-text-hover: #fff;
}
/* Variante fond sombre : blanc plein → se remplit de noir, texte blanc */
.btn-sweep--white {
  --bs-bg: #fff;
  --bs-border: #fff;
  --bs-text: #000;
  --bs-fill: #000;
  --bs-text-hover: #fff;
}
/* Flèches des boutons : même épaisseur de trait partout */
.be-ready .be-icon svg path,
.btn-sweep svg path {
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
}

/* ==========================================================================
   FLÈCHES DE CARROUSEL (expertises, raisons, témoignages)
   ========================================================================== */
.ma3-prev, .ma3-next,
.reasons-prev, .reasons-next,
.testi-prev, .testi-next,
.mst-prev, .mst-next,
.rsn-prev, .rsn-next {
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;            /* le rond coupe la flèche qui sort (effet cylindre) */
  transition: opacity 0.3s ease;
}
:is(.ma3-prev, .ma3-next, .reasons-prev, .reasons-next, .testi-prev, .testi-next, .mst-prev, .mst-next, .rsn-prev, .rsn-next)[disabled] {
  opacity: 0.25;
  cursor: default;
}
/* Icône avant et après la mise en place de l'effet cylindre par le JS */
:is(.ma3-prev, .ma3-next, .reasons-prev, .reasons-next, .testi-prev, .testi-next, .mst-prev, .mst-next, .rsn-prev, .rsn-next) > svg,
.nav-inner {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}
.nav-inner svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   CARTES PROJET [ma3_projets]
   ========================================================================== */
.titre-carte-projet {
  font-family: 'Haffer-medium', Helvetica, Arial, Lucida, sans-serif !important;
  font-size: var(--gvid-smj4en40ez, clamp(1.125rem, calc(0.001493 * (100vw - 360px) + 18px), 1.25rem)) !important;   /* text-2 (valeur de secours : Divi ne déclare pas la variable sur les pages projet) */
  font-weight: 500 !important;
  line-height: 1.1em !important;
  color: #fff !important;
}
.categorie-projet {
  font-family: 'Haffer-medium', Helvetica, Arial, Lucida, sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.1em !important;
  color: var(--gcid-primary-color) !important;
}

/* Tags : verre dépoli clair */
.categorie-projet .pg-term,
.ma3-pgrid .pg-soon-tag,
.pj-leg {
  background-color: rgba(255, 255, 255, 0.6) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 100px !important;
  padding: 12px 20px !important;
  color: #000 !important;
}
/* Survol : titre en cylindre (cartes projet + cartes expertises) */
.titre-carte-projet .tr-mask,
.slide-title .tr-mask {
  position: relative;
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;      /* évite de couper les lettres à jambage */
}
.titre-carte-projet .tr-line,
.slide-title .tr-line {
  display: block;
}
.titre-carte-projet .tr-clone,
.slide-title .tr-clone {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

/* Survol : flèche en diagonale */
.arrow-vignette-projet {
  overflow: hidden;            /* le rond coupe la flèche qui sort */
}
.arrow-vignette-projet .ar-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.arrow-vignette-projet .ar-clone {
  position: absolute;
  inset: 0;
}
/* Grille de projets [ma3_projets] : rayon 8 px, écart 16 px, contenu posé sur l'image */
.ma3-pgrid { display: grid; grid-template-columns: repeat(var(--pg-cols, 2), minmax(0, 1fr)); gap: 16px; }
.et_pb_module:has(> .et_pb_code_inner > .ma3-pgrid), .et_pb_module:has(> .et_pb_code_inner > .ma3-pfiltres), .et_pb_module:has(> .et_pb_code_inner > .line-grow) { align-self: stretch; width: 100%; }   /* colonne Divi centrée : le module ne se réduit pas à la largeur de son contenu */
.ma3-pgrid { width: 100%; }
.pg-card { position: relative; overflow: hidden; border-radius: 8px; container-type: inline-size; }
.js-reveal .ma3-pgrid .pg-card { opacity: 0; }                     /* entrée l'une après l'autre (ma3-custom.js) */
.ma3-pgrid .pg-card.is-out { display: none; }   /* ordre aléatoire : cartes non tirées */
.pg-link { position: relative; display: block; color: inherit; text-decoration: none; }
.pg-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3;   /* un peu moins haut que les vignettes (768 × 609) : l'image est légèrement recadrée */
  background: #f4f4f4; }
.pg-media img { display: block; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
html.ma3-dark .pg-media, html.ma3-dark .pg-card { background: #1b1b1d; }   /* mode sombre : fond sombre sous limage, sinon le gris clair déborde dun demi-pixel au bord (liseré blanc sur iPhone) */
.pg-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; margin: clamp(18px, 6cqi, 35px); pointer-events: none; }
.pg-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ma3-pgrid .titre-carte-projet { margin: 0; padding: 0; }
.pg-card.pg-titre-noir .titre-carte-projet { color: #000 !important; }   /* vignette claire : titre noir (champ ACF du projet), y compris en mode sombre */
.ma3-pgrid .arrow-vignette-projet { flex: none; box-sizing: border-box; width: 33px; height: 33px; padding: 9px; border-radius: 999px; background: #000; color: #fff; transform: rotate(-45deg); }
.ma3-pgrid .arrow-vignette-projet svg { display: block; width: 100%; height: 100%; }
.ma3-pgrid .categorie-projet { display: flex; flex-wrap: wrap; gap: 10px; line-height: 1.1em; }
.ma3-pgrid .categorie-projet .pg-term { display: inline-block; border: 0; font-weight: 400; }
/* Filtres [ma3_projets_filtres] : interrupteur (curseur noir qui glisse) à gauche, nombre de projets à droite, au-dessus de la grille.
   Au défilement, quand il touche le menu, il passe dans une barre blanche accrochée sous le header (.pf-bar, créée par le JS). */
.pf-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; }
.pf-count { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 0; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1; color: #6e6e78; white-space: nowrap; }
.pf-nb { display: inline-block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; vertical-align: bottom; text-align: right; }   /* masque du rouleau des chiffres */
.pf-count b { display: block; min-width: 1.2ch; font-size: 32px; font-weight: 500; line-height: 1; color: #9b72c6; }
.pf-annees { margin-left: 6px; }
html.ma3-dark .pf-count { color: #a8a8b0; }
.pf-sw { position: relative; display: inline-flex; max-width: 100%; padding: 6px; border-radius: 99px; background: var(--gcid-p5ip98bem3, #f5f5f5); overflow-x: auto; scrollbar-width: none; }
.pf-sw::-webkit-scrollbar { display: none; }
.pf-btn { position: relative; z-index: 1; flex: none; padding: 15px 24px 17px;   /* 1 px plus haut : les minuscules paraissent centrées dans la capsule */
  border: 0; border-radius: 99px; background: none; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 500; line-height: 1.1; color: #000; white-space: nowrap; cursor: pointer; transition: background .35s, color .45s; }
.pf-btn[aria-pressed="true"] { color: #fff; }
.pf-knob { position: absolute; top: 6px; left: 0; width: 0; height: 0; border-radius: 99px; background: #000; transition: transform .55s cubic-bezier(.7, 0, .2, 1), width .55s cubic-bezier(.7, 0, .2, 1); }   /* curseur qui glisse, comme l'interrupteur [ma3_duel_switch] */
.pf-btn:focus-visible { outline: 2px solid #9b72c6; outline-offset: 2px; }
/* survol : rouleau vers le haut ; à la sortie (ou après un clic) le texte reste tel quel (retour sans animation, invisible), il roule à nouveau au survol suivant */
.pf-btn .nav-roll > span, .pf-btn .nav-roll::after { transition: none; }
.pf-btn .nav-roll::after { top: 0; transform: translateY(135%); }   /* le texte du dessous s'arrête pile à la place de l'original : pas de saut de 1 px à la sortie */
@media (hover: hover) { .pf-btn:hover > .nav-roll > span { transform: translateY(-135%); } .pf-btn:hover > .nav-roll::after { transform: none; } .pf-btn:hover > .nav-roll > span, .pf-btn:hover > .nav-roll::after { transition: transform .45s cubic-bezier(.7, 0, .2, 1); } }
.pf-btn:focus-visible > .nav-roll > span { transform: translateY(-135%); } .pf-btn:focus-visible > .nav-roll::after { transform: none; } .pf-btn:focus-visible > .nav-roll > span, .pf-btn:focus-visible > .nav-roll::after { transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
.ma3-pgrid .pg-card.is-filtered { display: none; }
.js-reveal .ma3-pfiltres { opacity: 0; }   /* apparition après le H1 (ma3-custom.js) */
/* Dans le header, à côté du logo (ordinateur) : capsule resserrée, sans le nombre de projets ; --pf-left posé par le JS */
.pf-hd-slot { position: absolute; left: var(--pf-left, 50%); top: 50%; transform: translateY(-50%); }
.pf-hd-slot:empty { display: none; }
.pf-hd-slot .pf-in { animation: pf-hd-in .5s cubic-bezier(.2, .8, .2, 1); }
.pf-hd-slot .pf-sw { padding: 3px; }
.pf-hd-slot .pf-knob { top: 3px; }
.pf-hd-slot .pf-btn { padding: 9px 16px 10px; font-size: 14px; }
.pf-hd-slot .pf-count { display: none; }
@keyframes pf-hd-in { from { opacity: 0; transform: translateY(12px); } }
/* Barre sous le menu (mobile, ou header trop étroit) : le header perd son trait noir, la barre le reprend en bas */
.pf-bar { position: fixed; z-index: 99980; left: 0; right: 0; top: var(--pf-top, 0px); display: flex; justify-content: center; padding: 10px 2.5%; background: #fff; border-bottom: 1px solid #000; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility 0s linear .3s; }
.pf-bar.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s ease; }
html.pf-stuck .ma3-hd.is-stuck { border-bottom-color: transparent; transition: background-color .4s ease-in-out, border-color 0s; }
html.ma3-dark .pf-bar { background: var(--dm-bg); border-bottom-color: var(--dm-line); }
html.ma3-dark .pf-sw { background: #232326; }
html.ma3-dark .pf-btn:not([aria-pressed="true"]) { color: #c9c9cf; }
html.ma3-dark .pf-knob { background: #f2f0ec; }
html.ma3-dark .pf-btn[aria-pressed="true"] { color: #111; }
@media (max-width: 980px) {   /* mobile : le header défile avec la page, la barre se colle en haut de l'écran, à gauche du burger */
  .pf-bar { justify-content: flex-start; min-height: 82px; align-items: center; padding: 10px calc(2.5% + 66px) 10px 2.5%; }
  .pf-bar .pf-in { width: auto !important; min-width: 0; }
  .pf-bar .pf-count { display: none; }                           /* barre mobile : la place va aux filtres */
}
@media (max-width: 767px) {
  .pf-btn { padding: 13px 16px 15px; font-size: 14px; }
}
/* Liste déroulante des filtres : mobile seulement, à la place des boutons (même capsule grise) */
.pf-sel { display: none; position: relative; }
.pf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pf-sel select { -webkit-appearance: none; appearance: none; display: block; width: 100%; margin: 0; padding: 15px 56px 17px 24px; border: 0; border-radius: 99px;
  background: var(--gcid-p5ip98bem3, #f5f5f5); font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 500; line-height: 1.1; color: #000; cursor: pointer; }   /* 16 px : l'iPhone ne zoome pas au toucher */
.pf-sel svg { position: absolute; right: 22px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: #000; pointer-events: none; }
.pf-sel select { box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .25s ease; }
.pf-sel select:focus, .pf-sel select:focus-visible { outline: none; box-shadow: inset 0 0 0 1px #000; }   /* au toucher : bordure noire */
html.ma3-dark .pf-sel select { background: #232326; color: #f2f0ec; }
html.ma3-dark .pf-sel select:focus, html.ma3-dark .pf-sel select:focus-visible { box-shadow: inset 0 0 0 1px #f2f0ec; }
html.ma3-dark .pf-sel svg { color: #f2f0ec; }
@media (max-width: 767px) {
  .pf-sw { display: none; }
  .pf-sel { display: block; flex: 1 1 0; min-width: 0; }
  .ma3-pfiltres .pf-in { flex-wrap: nowrap; align-items: center; gap: 16px; }   /* ©2024—2026 à droite de la liste */
  .pf-bar .pf-in { flex: 1; }
  .pf-bar .pf-sel select { padding-top: 13px; padding-bottom: 15px; }
}
@media (min-width: 1025px) { .ma3-pgrid[data-colonnes="3"] .pg-media { aspect-ratio: 6 / 5; } }   /* ordinateur, 3 par ligne : vignettes plus hautes, toujours en paysage */
@media (max-width: 1024px) { .ma3-pgrid[data-colonnes="3"], .ma3-pgrid[data-colonnes="4"] { grid-template-columns: 1fr; } }   /* 3 colonnes : une seule sous 1024 px */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) { .ma3-pgrid[data-colonnes="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ma3-pgrid[data-colonnes="3"] .pg-card.pg-3e { display: none; } }   /* tablette portrait : 3 colonnes → 2, et 3 cartes → 2 */
@media (max-width: 640px) { .ma3-pgrid { grid-template-columns: 1fr; } }                                                          /* 2 colonnes : une seule sous 640 px */
@media (max-width: 980px) { .pg-content { margin: 20px; } }
/* ----- Mobile ----- */
@media (max-width: 767px) {
.categorie-projet {
  font-size: 13px !important;
}
}
/* ----- Tablette portrait ----- */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
.categorie-projet {
  font-size: 13px !important;
}
}

/* ==========================================================================
   CARROUSEL EXPERTISES (.ma3-carousel-section)
   ========================================================================== */

/* En-tête : titre + flèches */
.ma3-carousel-head {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between;
  gap: 24px;
}
.ma3-carousel-section .et_pb_code_inner:has(.ma3-prev) {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Carrousel : aligné à gauche, déborde à droite */
.ma3-carousel {
  --c-width: 0.8;              /* secours sans JS : largeur des lignes Divi (80 % = 0.8) */
  --c-max: 1280px;             /* secours sans JS : largeur max des lignes Divi */
  --c-gap: 16px;               /* espace entre les cartes */
  --c-card: clamp(260px, 25vw, 450px);   /* cartes du carrousel un peu plus petites (avant : 28vw, 500 px max) */
  --c-edge: calc((100vw - min(100vw * var(--c-width), var(--c-max))) / 2);
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

/* La colonne devient la piste qui défile */
.ma3-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: var(--c-gap) !important;
  width: 100% !important;
  max-width: none !important;
  padding-left: var(--c-edge) !important;
  padding-right: var(--c-edge) !important;
  overflow-x: auto;
  overflow-y: hidden;          /* la piste ne capture pas le scroll vertical */
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--c-edge);
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.ma3-track::-webkit-scrollbar {
  display: none;
}

/* Carte : image en fond, texte par-dessus */
.ma3-track > .ma3-slide {
  flex: 0 0 var(--c-card) !important;
  width: var(--c-card) !important;
  max-width: none !important;
  margin: 0 !important;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 550 / 680;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 32px !important;
  color: #fff;
  cursor: pointer;
}
.js-reveal .ma3-track > .ma3-slide {
  opacity: 0;                  /* cachées avant leur apparition une par une */
}

/* Image : remplit toute la carte */
.ma3-slide .slide-bg {
  position: absolute !important;
  inset: 0;
  z-index: 0;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
}
.ma3-slide .slide-bg .et_pb_image_wrap,
.ma3-slide .slide-bg img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
}

/* Voile sombre au repos (uniforme) */
.ma3-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* Dégradé du survol : noir plus dense en bas → voile léger en haut */
.ma3-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 85%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* Contenu au-dessus de l'image et du voile */
.ma3-slide > .et_pb_module:not(.slide-bg) {
  position: relative;
  z-index: 2;
  margin-bottom: 0 !important;
}

/* Haut de carte : numéro + titre */
.ma3-slide .slide-head {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px !important;
}
.ma3-slide .slide-num p {
  font-size: 14px;
  line-height: 1;
  padding-top: 8px;
  color: #fff;
}
.ma3-slide .slide-title p,
.ma3-slide .slide-title h3 {
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}

/* Bas de carte : description + flèche */
.ma3-slide .slide-desc p {
  font-size: 16px;
  line-height: 1.4;
  max-width: none;
  color: #fff;
}
.ma3-slide .slide-arrow {
  flex: 0 0 auto;                     /* le module prend la taille du rond, pas plus */
}
.ma3-slide .slide-arrow .et_pb_code_inner {
  display: flex;
  justify-content: flex-end;          /* le rond se cale à droite */
}
.ma3-slide .slide-link {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ma3-slide .slide-link svg {
  width: 11px;
  height: 11px;
}
/* Toute la carte cliquable via la flèche */
.ma3-slide .slide-link::before {
  content: "";
  position: absolute;
  inset: -2000px;
}

/* Survol (ordinateur uniquement) */
@media (hover: hover) {
  .ma3-slide .slide-bg img {
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .ma3-slide .slide-foot {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
	  gap: 12px !important; 
  }
  .ma3-slide:hover::before { opacity: 1; }
  .ma3-slide:hover .slide-bg img {
    transform: scale(1.06);
  }
  .ma3-slide:hover .slide-foot {
    opacity: 1;
    transform: none;
    transition-delay: 0.08s;
  }
}
/* Écrans tactiles (pas de survol) : dégradé toujours visible pour lire le texte */
@media (hover: none) {
  .ma3-slide::before {
    opacity: 1;
  }
}

/* ----- Tablette paysage (iPad Pro paysage, petits portables) ----- */
@media (min-width: 1025px) and (max-width: 1366px) {
  .ma3-carousel { --c-card: 31vw; }       /* ≈ 425 px sur un iPad Pro paysage (avant : 34vw) */
}

/* ----- Tablette portrait (iPad, iPad Pro portrait) ----- */
@media (min-width: 768px) and (max-width: 1024px) {
  .ma3-carousel { --c-card: 38vw; }       /* 2 cartes + le début de la 3e (indique qu il y a une suite) ; ≈ 290 px sur un iPad, ≈ 390 px sur un iPad Pro portrait (avant : 46vw) */
}

/* ----- Mobile ----- */
@media (max-width: 767px) {
  .ma3-carousel {
    --c-card: 82vw;
    --c-gap: 16px;
    --c-edge: 16px;
  }
}

/* ==========================================================================
   CARROUSEL DES RAISONS (.ma3-reasons)
   ========================================================================== */
.ma3-reasons {
  padding: clamp(64px, 9vw, 120px) 24px clamp(40px, 5vw, 56px) !important;
}

/* Colonne : diapositives superposées + flèches en dessous */
.js-reveal .reasons-track {
  display: grid !important;
  grid-template-columns: 1fr;
  justify-items: center;
  row-gap: clamp(48px, 7vw, 120px);
  max-width: 820px;
	/*margin: 0 auto !important;*/
}

/* Diapositive */
.reason-slide {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  row-gap: 20px;
  align-self: center;
}
.js-reveal .reason-slide {
  grid-row: 1;
  grid-column: 1;
  margin: 0 !important;
  visibility: hidden;
}
.js-reveal .reason-slide.is-active {
  visibility: visible;
}
.reason-slide > .et_pb_module {
  margin: 0 !important;
}

/* Placement : numéro à gauche, phrase + paragraphe à droite */
.reason-slide .reason-num   { grid-column: 1; grid-row: 1; padding-top: 0.9em; }
.reason-slide .reason-title { grid-column: 2; grid-row: 1; }
.reason-slide .reason-desc  { grid-column: 2; grid-row: 2; }

/* Introduction (sans numéro) : centrée */
.reason-slide:not(:has(.reason-num)) {
  grid-template-columns: 1fr;
  text-align: center;
}
.reason-slide:not(:has(.reason-num)) .reason-title {
  grid-column: 1;
}
.reason-slide:not(:has(.reason-num)) .reason-title p {
  max-width: 760px;
  margin: 0 auto;
}

/* Flèches */
.js-reveal .reasons-nav {
  grid-row: 2;
  grid-column: 1;
}
.reasons-nav .et_pb_code_inner {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ----- Mobile : texte plus petit, numéro au-dessus de la phrase ----- */
@media (max-width: 767px) {
 
  .reason-slide {
    grid-template-columns: 1fr !important;
    row-gap: 14px !important;
  }
  .reason-slide .reason-num   { grid-column: 1; grid-row: 1; padding-top: 0; }
  .reason-slide .reason-title { grid-column: 1; grid-row: 2; }
  .reason-slide .reason-desc  { grid-column: 1; grid-row: 3; }

 
}

/* ==========================================================================
   SLIDER DE TÉMOIGNAGES (.ma3-testi)
   Colonne gauche : titre — Colonne droite : flèches, puis logo + témoignage,
   puis barre de progression
   ========================================================================== */

/* ----- Colonne de droite : flèches en haut à droite, contenu en dessous ----- */
.ma3-testi .testi-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
}
.ma3-testi .testi-nav .et_pb_code_inner {
  display: flex;
  gap: 12px;
}

/* ----- Bloc logo + témoignage, côte à côte ----- */
.ma3-testi .testi-body {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: clamp(32px, 4vw, 72px) !important;
  width: 100% !important;
  margin-top: 40px;                      /* espace sous les flèches */
}
.ma3-testi .testi-body .testi-logos {
  flex: 0 0 clamp(160px, 16vw, 240px);   /* largeur réservée au logo */
  margin: 0 !important;
 min-height: 95px;                /* même hauteur que sur la homepage, quel que soit le logo */
    align-items: center;             /* logo centré verticalement dans cette zone */
  }
.ma3-testi .testi-body .testi-card {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  margin: 0 !important;
  background: none !important;
  padding: 0 !important;
}

/* ----- Logos superposés au même endroit ----- */
.js-reveal .ma3-testi .testi-logos,
.js-reveal .ma3-testi .testi-logos-stack {
  display: grid !important;
  place-items: center;
}
.js-reveal .ma3-testi .testi-logo {
  grid-area: 1 / 1;
  margin: 0 !important;
}
.ma3-testi .testi-logo {
  will-change: opacity, transform;
}
.ma3-testi .testi-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 100px;
	filter: brightness(0);          /* logos en noir et blanc */
}
.ma3-testi .testi-logo img.is-tall {
  max-height: 130px;                     /* logos verticaux ou carrés */
}

/* ----- Témoignages superposés : le bloc prend la hauteur du plus long ----- */
.js-reveal .ma3-testi .testi-slides {
  display: grid !important;
}
.js-reveal .ma3-testi .testi-slide {
  grid-area: 1 / 1;
  margin: 0 !important;
  visibility: hidden;
}
.js-reveal .ma3-testi .testi-slide.is-active {
  visibility: visible;
}

/* Sans animations (JS bloqué ou désactivé, « réduire les animations ») : sliders au repos,
   1er logo + 1er témoignage et 1re raison seulement, sans flèches (au lieu de tout empiler) */
html:not(.js-reveal) .ma3-testi .testi-logo:not(:first-child),
html:not(.js-reveal) .ma3-testi .testi-slide:not(:first-child),
html:not(.js-reveal) .ma3-testi .testi-nav,
html:not(.js-reveal) .ma3-reasons .reason-slide:not(:first-child),
html:not(.js-reveal) .ma3-reasons .reasons-nav { display: none !important; }

/* ----- Barre de progression (créée par le JS, sous le bloc logo + témoignage) ----- */
.ma3-testi .testi-progress {
  position: relative;
  width: 100%;
  height: 3px;
  margin-top: 36px;
  background: var(--gcid-rz4lyrnbbd);    /* barre de fond */
  overflow: hidden;
  pointer-events: none;
}
.ma3-testi .testi-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gcid-pnytn4mxu4);    /* barre qui avance */
  transform-origin: left;
  transform: scaleX(0);
}

/* ----- blockquote et cite : neutralise le style par défaut (Divi / navigateur) ----- */
.ma3-testi blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  quotes: none;
  font: inherit;
  color: inherit;
}
.ma3-testi blockquote::before,
.ma3-testi blockquote::after {
  content: none;                         /* pas de guillemets ajoutés automatiquement */
}
.ma3-testi blockquote p {
  margin: 0;
  padding: 0;
}
.ma3-testi cite {
  font: inherit;
  font-style: normal;                    /* le navigateur met cite en italique par défaut */
  color: inherit;
}

/* ----- Typographie ----- */
.ma3-testi .testi-text p {
  font-family: 'Haffer-medium', Helvetica, Arial, Lucida, sans-serif;
  color: var(--gcid-primary-color) !important;
  font-size: 16px;
  line-height: 1.3em;
}
.ma3-testi .testi-name {
  margin-top: 48px;
}
.ma3-testi .testi-name cite {
  font-family: 'Haffer-medium', Helvetica, Arial, Lucida, sans-serif;
  color: var(--gcid-primary-color) !important;
  font-size: 16px;
  line-height: 1.3em;
}
.ma3-testi .testi-role p {
  font-family: 'Haffer-regular', Helvetica, Arial, Lucida, sans-serif;
  color: var(--gcid-primary-color) !important;
  opacity: 0.6;
  font-size: 14px;
  line-height: 1.3em;
  text-transform: uppercase;
}
/* ----- Tablette ----- */
@media (max-width: 1024px) {
  .ma3-testi .testi-right { align-items: stretch !important; }
  .ma3-testi .testi-nav .et_pb_code_inner { justify-content: flex-end; }
}
/* ----- Tablette (768 à 1024 px) : colonnes empilées, témoignage sur toute la largeur ----- */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Ordre : contenu, puis barre, puis flèches (comme sur mobile) */
  .ma3-testi .testi-body     { order: 1; }
  .ma3-testi .testi-progress { order: 2; }
  .ma3-testi .testi-nav {
    order: 3;
    width: 100% !important;
    align-self: stretch !important;
    margin-top: 10px !important;
  }
	.ma3-testi {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }
.ma3-testi .testi-body {
    gap: 18px !important;
  }	
  .ma3-testi > .et_pb_column {
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    margin-right: 0 !important;
  }
  .ma3-testi .testi-right {
    margin-top: 0px;
	  gap: 18px !important;
  }
  .ma3-testi .testi-body .testi-logos {
    flex: 0 0 200px;                  /* colonne du logo */
  }
  .ma3-testi .testi-body .testi-card {
    max-width: 560px;                 /* longueur de ligne confortable pour le texte */
  }
  /* Logos un peu plus petits sur tablette */
  .ma3-testi .testi-logo img {
    max-width: 140px;
    max-height: 76px;
  }
  .ma3-testi .testi-logo img.is-tall {
    max-height: 100px;                /* logos verticaux ou carrés */
  }
}

/* ----- Mobile : logo centré, témoignage à gauche, flèches sous la barre ----- */
@media (max-width: 767px) {
  .ma3-testi .testi-body {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
    margin-top: 0px;
  }
  .ma3-testi .testi-body .testi-logos {
    flex: 0 0 auto;
    width: 100% !important;          /* le bloc prend toute la largeur… */
    justify-items: center;           /* …et le logo se centre dedans */
  }
  .ma3-testi .testi-logo img {
    max-width: 130px;
    max-height: 68px;
  }
  .ma3-testi .testi-logo img.is-tall {
    max-height: 95px;                /* logos verticaux ou carrés */
  }
  .ma3-testi .testi-name {
    margin-top: 28px;
  }

  /* Ordre : contenu, puis barre, puis flèches */
  .ma3-testi .testi-body     { order: 1; }
  .ma3-testi .testi-progress { order: 2; margin-top: 0px; }
  .ma3-testi .testi-nav {
    order: 3;
    width: 100% !important;
    align-self: stretch !important;
    margin-top: 0px !important;
  }
  .ma3-testi .testi-nav .et_pb_code_inner {
    justify-content: flex-end;       /* flèches en bas à droite */
  }
}
/* ==========================================================================
   CARROUSEL DE LOGOS (.ma3-marquee)
   ========================================================================== */
.ma3-marquee {
  --mq-card-w: 220px;           /* largeur d'une case */
  --mq-card-h: 130px;           /* hauteur d'une case */
  --mq-logo-max-w: 115px;       /* taille max des logos horizontaux */
  --mq-logo-max-h: 50px;
  --mq-logo-max-h-tall: 70px;   /* hauteur max des logos verticaux ou carrés */
  --mq-hover-bg: #161616;       /* fond au survol */
  --mq-border: #e0e0e0;         /* couleur des séparateurs */
  overflow: hidden;
  width: 100%;
  border-top: 1px solid var(--mq-border);
  border-bottom: 1px solid var(--mq-border);
}
.mq-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.mq-card {
  position: relative;
  flex: 0 0 var(--mq-card-w);
  height: var(--mq-card-h);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--mq-border);   /* séparateur entre deux logos */
}
/* Fond noir arrondi qui apparaît au survol */
.mq-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  background: var(--mq-hover-bg);
  opacity: 0;
  transition: opacity 0.35s ease;
}
/* Logo : forcé en noir, passe en blanc au survol */
.mq-card img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: var(--mq-logo-max-w);
  max-height: var(--mq-logo-max-h);
  filter: brightness(0);
  transition: filter 0.35s ease;
}
/* Logos verticaux ou carrés : un peu plus hauts, pour un poids visuel équivalent */
.mq-card img.is-tall {
  max-height: var(--mq-logo-max-h-tall);
}
.mq-card:hover::before { /*opacity: 1;*/ }
.mq-card:hover img { /*filter: brightness(0) invert(1); */}

/* Tablette portrait : bandeau plus petit (entre ordinateur et mobile) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .ma3-marquee {
    --mq-card-w: 175px;
    --mq-card-h: 105px;
    --mq-logo-max-w: 95px;
    --mq-logo-max-h: 40px;
    --mq-logo-max-h-tall: 56px;
  }
}
@media (max-width: 767px) {
  .ma3-marquee {
    --mq-card-w: 160px;
    --mq-card-h: 100px;
    --mq-logo-max-w: 90px;
    --mq-logo-max-h: 38px;
    --mq-logo-max-h-tall: 54px;
  }
}

/* ==========================================================================
   FAQ (.ma3-faq)
   ========================================================================== */
.ma3-faq {
  --faq-color: #fff;                         /* texte et flèches */
  --faq-border: rgba(255, 255, 255, 0.45);   /* cadre au repos */
  --faq-border-hover: #fff;                  /* cadre au survol / ouvert */
  --faq-bg-hover: rgba(255, 255, 255, 0.04); /* léger éclaircissement au survol */
  --faq-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--faq-color);
}
.faq-item {
  border: 1px solid var(--faq-border);
  border-radius: var(--faq-radius);
  transition: border-color 0.35s ease, background-color 0.35s ease;
}
.js-reveal .faq-item {
  opacity: 0;                                /* apparition une par une (JS) */
}
.faq-item:hover,
.faq-item.is-open {
  border-color: var(--faq-border-hover);
}
.faq-item:hover {
  background-color: var(--faq-bg-hover);
}

/* Question : H3 neutralisé + bouton */
.faq-h {
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit;
  line-height: inherit;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  border: 0;
  background: none;
  color: inherit;
  font-family: 'Haffer-medium', Helvetica, Arial, Lucida, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}
.faq-q:focus-visible {
  outline: 2px solid var(--faq-color);
  outline-offset: -6px;
  border-radius: var(--faq-radius);
}

/* Flèche : → fermé, ↓ ouvert */
.faq-icon {
  position: relative;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.faq-icon svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.faq-item.is-open .faq-icon {
  transform: rotate(90deg);
}

/* Réponse : repliée seulement quand le JS est actif */
.faq-a {
  overflow: hidden;
}
.js-reveal .faq-a {
  height: 0;
}
.faq-a-inner {
  padding: 0 40px 44px;
  max-width: 820px;
}
.faq-a-inner p {
  margin: 0 0 1em;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  color: inherit;
}
.faq-a-inner p:last-child {
  margin-bottom: 0;
}
/* La question et sa flèche ne prennent pas la couleur des H3 de Divi */
.ma3-faq .faq-h,
.ma3-faq .faq-q {
  color: var(--faq-color) !important;
}
@media (max-width: 767px) {
  .faq-q { padding: 24px; }
  .faq-a-inner { padding: 0 24px 28px; }
}

/* ==========================================================================
   BADGE ROTATIF (.ma3-badge)
   ========================================================================== */
.ma3-badge {
  --badge-size: 280px;                     /* taille du badge */
  --badge-color: #fff;                     /* couleur du texte */
  --badge-ring: rgba(255, 255, 255, 0.35); /* couleur du cercle fin */
  --badge-logo: 34%;                       /* taille du logo, en % du badge */
  position: relative;
  width: var(--badge-size);
  max-width: 80vw;
  aspect-ratio: 1;
  color: var(--badge-color);
}
.js-reveal .ma3-badge {
  opacity: 0;                              /* caché avant son apparition */
}
.badge-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.badge-ring text {
  fill: currentColor;
  font-family: 'Haffer-medium', Helvetica, Arial, Lucida, sans-serif;
  font-size: 21px;                         /* taille du texte (à l'échelle du badge) */
  font-weight: 500;
  letter-spacing: 0; 
  text-transform: uppercase;
}
.badge-ring .badge-border {
  fill: none;
  stroke: var(--badge-ring);
  stroke-width: 1;
}
.badge-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.badge-logo {
  width: var(--badge-logo);
  height: auto;
  filter: brightness(0) invert(1);         /* logo forcé en blanc */
}

@media (max-width: 767px) {
  .ma3-badge { --badge-size: 240px; }
}
/* Footer : badge un peu plus petit (280 → 230 px ordinateur, 240 → 190 px mobile) */
.et-l--footer .ma3-badge { --badge-size: 230px; }
@media (max-width: 767px) {
  .et-l--footer .ma3-badge { --badge-size: 190px; }
}

/* ==========================================================================
   HERO (.ma3-hero) : H1 animé avec rouleau + bandeau de tags
   ========================================================================== */

/* ----- Réglages ----- */
.ma3-hero {
  --h1-size: clamp(70px, 6vw, 92px);   /* taille du H1 : min, idéal, max */
  --h1-line: 11.6;                     /* longueur de la 2e ligne, en « tailles de police » */
  --h1-margin-min: 40px;               /* marge gauche minimale du titre */
  --hero-shift: 6vh;                   /* décalage du titre vers le bas (proportionnel à l'écran) */

  /* Mise en page : 100 % de l'écran, en colonne */
  min-height: 100vh;
  min-height: 100svh;                  /* mobile : ignore la barre d'adresse du navigateur */
  display: flex !important;
  flex-direction: column !important;
}
/* Classe « hero-auto » à ajouter dans Divi (à côté de ma3-hero) : la section garde ses animations mais prend la hauteur de son contenu ; ses marges se règlent dans Divi */
.ma3-hero.hero-auto { min-height: 0; }
/* Homepage : pas de marge haute. Pages service (.hero-svc) : marge haute réglée dans Divi, + hauteur du menu transparent */
.ma3-hero:not(.hero-svc):not(.hero-auto) { padding-top: 0 !important; padding-bottom: 0 !important; }   /* hero-auto : marges réglées dans Divi */

.ma3-hero:not(.hero-svc) > .et_pb_row:last-child { margin-top: 0 !important; }   /* homepage : tags collés en bas du hero plein écran ; pages service : marges réglées dans Divi */

/* ----- Éléments cachés avant l'animation d'arrivée ----- */
.js-reveal .ma3-hero .hero-kicker,
.js-reveal .ma3-hero h1,
.js-reveal .ma3-hero .ma3-marquee--tags {
  opacity: 0;
}

/* ----- Ligne du titre : prend la place disponible, centre son contenu, décale vers le bas ----- */
.ma3-hero:not(.hero-svc) > .et_pb_row:first-child {   /* homepage seulement ; pages service : rangée gérée dans Divi */
  flex: 1 1 auto;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

/* ----- Ligne des tags : reste en bas, sans s'étirer ----- */
.ma3-hero > .et_pb_row:last-child {
  flex: 0 0 auto;
}

/* ----- Étiquette + titre : départ au 1/3 si possible, sinon la marge se réduit ----- */
.ma3-hero .hero-kicker,
.ma3-hero .hero-title {
  margin-left: max(var(--h1-margin-min), min(33.333%, 100% - var(--h1-size) * var(--h1-line))) !important;
  width: auto !important;
  max-width: none !important;
}
.ma3-hero:not(.hero-svc) .hero-title + .et_pb_text {   /* sous-titre juste sous le H1 : aligné sur le titre (sa largeur reste réglée dans Divi) */
  margin-left: max(var(--h1-margin-min), min(33.333%, 100% - var(--h1-size) * var(--h1-line))) !important;
}
.ma3-hero .et_pb_column:has(.hero-title) {
  container-type: inline-size;         /* sert de référence de largeur au titre */
}

/* ----- H1 : gros, toujours sur 2 lignes, jamais plus large que la place disponible ----- */
.ma3-hero .hero-title h1 {
  font-size: min(var(--h1-size), (100cqw - var(--h1-margin-min)) / var(--h1-line)) !important;
  white-space: nowrap;                 /* pas d'autre retour à la ligne que le <br> */
  padding-bottom: 0 !important;
}
/* Titre sans <br> (ex. Stratégie, texte pris dans ACF) : retour à la ligne automatique, lignes équilibrées */
.ma3-hero .hero-title h1:not(:has(br)) { white-space: normal; text-wrap: balance; }

/* ----- H1 : rouleau du dernier mot ----- */
.h1-slot {
  --slot-accent: #9b72c6;              /* couleur des mots qui défilent */
  display: inline-block;
  vertical-align: top;
  height: 1.1em;                       /* secours pour les anciens navigateurs */
  height: calc(1lh + 0.1em);           /* = l'interligne du H1 + la même marge que les autres mots */
  clip-path: inset(0 -100vw 0 0);
}
.h1-slot-list {
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.h1-slot-list span {
  display: block;
  height: 1.1em;
  height: calc(1lh + 0.1em);
  line-height: inherit;                /* même interligne que le H1 */
  white-space: nowrap;
  color: var(--slot-accent);
}
.h1-slot-list span:first-child,
.h1-slot-list span:last-child {
  color: inherit;                      /* le mot de départ et le mot final reprennent la couleur du titre */
}
/* H1 en boucle : les mots du rouleau restent tous violets, y compris le mot de départ (« attirer. ») */
h1[data-roll-loop] .h1-slot-list span { color: var(--slot-accent); }

/* ----- H1 en boucle (data-roll-loop) : barre de progression créée par le JS sous le titre ----- */
.roll-prog { display: flex; gap: 6px; margin-top: 16px; opacity: 0; }
.roll-prog i { width: 48px; height: 3px; border-radius: 2px; background: #e6e6e6; overflow: hidden; }
.roll-prog b { display: block; height: 100%; background: var(--slot-accent, #9b72c6); transform: scaleX(0); transform-origin: left; }
html.ma3-dark .roll-prog i { background: #333; }

/* ----- Hero de page service (.ma3-hero.hero-svc) : titre à gauche, accroche à droite (hauteur réglée dans Divi) ----- */
.ma3-hero.hero-svc {
  --h1-margin-min: 0px;
}
.ma3-hero.hero-svc .hero-kicker,
.ma3-hero.hero-svc .hero-title { margin-left: 0 !important; }
/* H1 sans rouleau : classe « h1-plein » sur le module du titre (ou sur le <h1>) ; le titre passe à la ligne tout seul dans sa colonne */
.ma3-hero .hero-title.h1-plein h1,
.ma3-hero .hero-title h1.h1-plein { white-space: normal; text-wrap: balance; }
/* ----- « Vous vous reconnaissez ? » [ma3_symptomes] : 4 cartes « symptômes » avec un petit visuel chacune ----- */
.ma3-symptomes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sy-card { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 22px 22px 26px; border-radius: var(--gvid-1j485jt6w2, 16px); background: var(--gcid-p5ip98bem3, #f4f4f4); color: #000 !important; text-decoration: none; transition: background .45s ease, color .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.js-reveal .sy-card { opacity: 0; }                  /* cachées jusqu'à leur entrée l'une après l'autre (ma3-custom.js) */
.sy-card.sy-in { transition: none !important; }     /* pendant l'entrée animée */
.sy-card:hover { background: #000; color: #fff !important; transform: translateY(-6px); }
.sy-top { display: flex; justify-content: space-between; align-items: center; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1; }
.sy-n { color: #6e6e6e; transition: color .45s ease; }
.sy-card:hover .sy-n { color: #8a8a8a; }
.sy-tag { padding: 6px 12px; border-radius: 99px; background: #111; color: #fff; font-size: 12px; line-height: 1; transition: background .45s ease, color .45s ease; }
.sy-card h3 { margin: 0 0 auto; padding: 0; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.3; color: inherit; }
.sy-cta { display: inline-flex; align-items: center; gap: 12px; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.2; }
.sy-cta i { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #000; background: #000; color: #fff; transition: background .4s ease, border-color .4s ease, transform .4s ease; }
.sy-cta svg { width: 12px; height: 12px; }
.sy-card:hover .sy-cta i { background: #fff; border-color: #fff; color: #000; transform: rotate(45deg); }

/* Petit écran de chaque carte : le problème, montré */
.sy-visual { position: relative; height: 178px; padding: 16px; border-radius: 12px; background: #fff; color: #000; overflow: hidden; font-family: "Haffer-regular", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1.35; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.sy-visual p { margin: 0; padding: 0; }
.sy-card:hover .sy-visual { transform: scale(1.02); }
.sy-line { display: block; height: 7px; border-radius: 4px; background: #ececf0; }
/* 1. Google : le site n'apparaît qu'en page 4 */
.sy-v-google .q { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; margin-bottom: 14px; border-radius: 99px; box-shadow: 0 1px 6px rgba(0, 0, 0, .12); }
.sy-v-google .q svg { width: 11px; height: 11px; flex: none; }
.sy-v-google .r { display: grid; grid-template-columns: 14px 1fr; gap: 4px 8px; align-items: center; margin-bottom: 10px; }
.sy-v-google .r b { width: 14px; height: 14px; border-radius: 50%; background: #ececf0; grid-row: span 2; }
.sy-v-google .r .sy-line:last-child { width: 70%; height: 5px; }
.sy-v-google .you { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 8px; background: var(--gcid-pnytn4mxu4, #9c6cc4); color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; }
.sy-v-google .you em { font-style: normal; color: #fff; }
/* 2. Un site daté */
.sy-v-old { padding: 0; background: #fff; }
.sy-v-old .bar { display: flex; gap: 4px; padding: 8px 10px; background: #fff; }   /* barre du navigateur en blanc : se détache du fond de la carte */
.sy-v-old .bar i { width: 6px; height: 6px; border-radius: 50%; background: #c8c8c8; }
.sy-v-old .body { padding: 12px; }
.sy-v-old .hero { height: 54px; border-radius: 4px; background: repeating-linear-gradient(45deg, #dfe2f7 0 6px, var(--gcid-rz4lyrnbbd, #ebedfc) 6px 12px); margin-bottom: 10px; }
.sy-v-old .sy-line { background: #e3e3e3; margin-bottom: 6px; }
.sy-v-old .foot { position: absolute; left: 12px; bottom: 10px; color: #8a8a8a; font-size: 12px; }
.sy-v-old .stamp { position: absolute; right: 12px; bottom: 32px; padding: 6px 10px; border-radius: 6px; color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 12px; transform: rotate(-7deg); background: var(--gcid-pnytn4mxu4, #9c6cc4); }
/* 3. Changer un texte : devis et délai */
.sy-v-edit { display: flex; flex-direction: column; gap: 6px; padding: 12px; background: #fff; }
.sy-v-edit .me { align-self: flex-end; max-width: 86%; padding: 7px 10px !important; border-radius: 12px 12px 3px 12px; background: var(--gcid-rz4lyrnbbd, #ebedfc); color: #000; }
.sy-v-edit .them { align-self: flex-start; max-width: 90%; padding: 7px 10px !important; border-radius: 12px 12px 12px 3px; background: #fff; background: var(--gcid-p5ip98bem3, #f5f5f5); }
.sy-v-edit .them strong { display: block; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; }
.sy-v-edit .wait { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: var(--gcid-pnytn4mxu4, #9c6cc4); color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 12px; }
.sy-v-edit .wait svg { width: 11px; height: 11px; }
/* 4. Prestataire injoignable, site hors ligne */
.sy-v-down .msg { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; margin-bottom: 6px; border-radius: 8px; background: var(--gcid-p5ip98bem3, #f5f5f5); }
.sy-v-down .msg span { color: #6e6e6e; font-size: 12px; }
.sy-v-down .err { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; background: var(--gcid-pnytn4mxu4, #9c6cc4); color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; }
.sy-v-down .err::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); animation: sy-pulse 1.6s ease-in-out infinite; }
/* Visuels simplifiés : une légende et un chiffre en grand, sur fond violet clair */
.sy-visual.sy-big { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; background: var(--gcid-rz4lyrnbbd, #ebedfc); }
.sy-big small { font-size: 13px; line-height: 1.2; color: #4a4a4a; }
.sy-big strong { font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; font-size: 46px; line-height: 1; letter-spacing: -.02em; color: #000; }
@keyframes sy-pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } }

html.ma3-dark .sy-visual, html.ma3-dark .hsy-scene, html.ma3-dark .ma3-pres-anim, html.ma3-dark .ma3-pres-hero, html.ma3-dark .ma3-app-hero, html.ma3-dark .ac-box, html.ma3-dark .me-visual { --gcid-p5ip98bem3: #f5f5f5; --gcid-rz4lyrnbbd: #ebedfc; --gcid-s53uwlrvje: #ecf8ef; --gcid-irhl82b2ls: #65a869; }   /* illustrations : gardent les gris et le lavande clairs du mode clair */
html.ma3-dark .sy-card { background: var(--dm-surface); color: #f2f0ec !important; border: 1px solid #26262b; }   /* même fond au repos que les cartes sans lien */
html.ma3-dark .sy-cta i { background: var(--dm-text); border-color: var(--dm-text); color: #111; }   /* rond fléché clair en mode sombre, comme les boutons de la home */
html.ma3-dark .sy-card:hover .sy-cta i { background: #f2f0ec; border-color: #f2f0ec; color: #000; }   /* bouton clair sur la carte noire */
html.ma3-dark .sy-card:hover { background: #000; color: #f2f0ec !important; }   /* carte avec lien : passe en noir au survol */
html.ma3-dark .sy-tag { background: #262626; color: #f2f0ec; }
@media (max-width: 1200px) { .ma3-symptomes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .ma3-symptomes { grid-template-columns: 1fr; } .sy-card:hover { transform: none; } }

/* ----- « MA3 conçoit et refond… » [ma3_chiffres] : 3 cartouches chiffrés (lavande, vert, noir) ----- */
.ma3-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ch-card { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 290px; padding: 28px 26px; border-radius: 12px; }
.ch-card--lav { background: var(--gcid-rz4lyrnbbd, #ebedfc); color: #000; }
.ch-card--green { background: var(--gcid-s53uwlrvje, #ecf8ef); color: #000; }
.ch-card--grey { background: var(--gcid-p5ip98bem3, #f5f5f5); color: #000; }   /* 3e carte : gris (avec le lavande et le vert) */
.ch-num { display: flex; align-items: flex-end; gap: 6px; margin: 0; padding: 0 !important; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: calc(39.4px + 1.27vw); line-height: 1; letter-spacing: normal; color: inherit; }   /* même taille que les chiffres de « A propos » (home) : 57,7 px à 1440 px */
.ch-pre { margin-bottom: .08em; color: #9b72c6; font-size: .65em; line-height: 1.1; }   /* « + », « × », « h » : plus petits que le chiffre, posés sur sa ligne de base */
.ch-card--green .ch-pre { color: #3fa45b; }
.ch-card--grey .ch-pre { color: #000; }   /* 3e carte : sans couleur (« h » noir) */
@media (max-width: 767px) { .ch-pre { margin-bottom: 0; font-size: 1em; line-height: 1.1; } }   /* mobile : « + », « × », « h » à la taille du chiffre, même hauteur de ligne que le rouleau (1.1) : même ligne de base */
.ch-foot { display: flex; flex-direction: column; gap: 14px; }
.ch-foot p { margin: 0; padding: 0 !important; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 17px; line-height: 1.2em; color: inherit; }
.ch-sites { display: flex; }
.ch-sites img, .ch-sites span { flex: none; width: 46px; height: 46px; max-width: none; margin-left: -12px; border-radius: 50%; border: 2px solid var(--gcid-rz4lyrnbbd, #ebedfc); }
.ch-sites img { object-fit: cover; }
.ch-sites > :first-child { margin-left: 0; }
.ch-sites span { display: grid; place-items: center; background: #9b72c6; color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 12px; }
.ch-bars { display: flex; align-items: flex-end; gap: 5px; height: 46px; }
.ch-bars i { width: 12px; border-radius: 3px 3px 0 0; background: rgba(63, 164, 91, .3); }
.ch-bars i:last-child { background: #3fa45b; }
.ch-live { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 8px 14px; border-radius: 99px; background: #000; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1; white-space: nowrap; color: #fff; }
.ch-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3fa45b; box-shadow: 0 0 0 4px rgba(63, 164, 91, .3); }   /* point vert : en ligne */
/* Mode sombre : mêmes cartouches que « A propos » de la homepage (fonds clairs, texte noir) */
html.ma3-dark .ch-card--lav { background: #c2c3e6; color: #000; }
html.ma3-dark .ch-card--green { background: #c1dec8; color: #000; }
html.ma3-dark .ch-card--lav .ch-pre { color: #9c6cc4; }
html.ma3-dark .ch-card--green .ch-pre { color: #65a869; }
html.ma3-dark .ch-card--green .ch-bars i { background: rgba(101, 168, 105, .35); }
html.ma3-dark .ch-card--green .ch-bars i:last-child { background: #65a869; }
html.ma3-dark .ch-sites img, html.ma3-dark .ch-sites span { border-color: #c2c3e6; }
/* ----- Petites cartes chiffrées [ma3_stats] (À propos) : comme les cartes « A propos » de la homepage (coins 8 px, chiffre 57,7 px à 1440 px, « + » de même taille, texte 17 px), 4 par ligne ----- */
.et_pb_module:has(> .et_pb_code_inner > .ma3-stats) { align-self: stretch; width: 100%; }   /* remplit sa colonne Divi */
.ma3-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stc-card { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 230px; padding: 24px; border-radius: 8px; color: #000; }
.stc-card--lav { background: var(--gcid-rz4lyrnbbd, #ebedfc); }
.stc-card--green { background: var(--gcid-s53uwlrvje, #ecf8ef); }
.stc-card--peach { background: #fdf0e6; }   /* pêche des étapes [ma3_etapes] */
.stc-card--grey { background: var(--gcid-p5ip98bem3, #f5f5f5); }
.stc-num { display: flex; align-items: flex-end; margin: 0; padding: 0 !important; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: calc(39.4px + 1.27vw); line-height: 1.1; color: inherit; }   /* même taille que la homepage */
.stc-pre { color: #9c6cc4; line-height: 1.1; }   /* « + » : taille du chiffre, violet (vert sur la carte verte), comme la homepage */
.stc-card--green .stc-pre { color: #65a869; }
.stc-card--peach .stc-pre { color: #e3874a; }   /* orange, accordé au fond pêche */
.stc-txt { margin: 0; padding: 0 !important; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 17px; line-height: 1.2em; color: inherit; }
html.ma3-dark .stc-card--lav { background: #c2c3e6; }
html.ma3-dark .stc-card--green { background: #c1dec8; }
html.ma3-dark .stc-card--peach { background: #ecd8c8; }
html.ma3-dark .stc-card { color: #000; }
@media (max-width: 1100px) { .ma3-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .ma3-stats { gap: 10px; }
  .stc-card { gap: 20px; min-height: 160px; padding: 20px 18px; }
  .stc-num { font-size: 40px; }
  .stc-txt { font-size: 15px; }
}
@media (max-width: 1200px) { .ma3-chiffres { grid-template-columns: 1fr 1fr; } .ch-card--grey { grid-column: span 2; min-height: 0; } }
@media (max-width: 640px)  { .ma3-chiffres { grid-template-columns: 1fr; } .ch-card--grey { grid-column: auto; } .ch-card { min-height: 230px; } }

/* ----- L'équipe [ma3_equipe] : l'interlocuteur au centre, les autres cartes sortent de derrière lui ----- */
.et_pb_module:has(> .et_pb_code_inner > .ma3-equipe) { align-self: stretch; width: 100%; }   /* remplit sa colonne Divi */
.eqp-stage { display: flex; justify-content: center; gap: 12px; padding-top: 14px; }   /* place pour la capsule au-dessus de l'interlocuteur */
.eqp-card { box-sizing: border-box; position: relative; flex: 1 1 0; min-width: 0; max-width: 280px; padding: 0; background: none; color: #fff; }   /* pas de carte : la photo seule, le texte dessous (section sur fond noir) */
.eqp-card.is-lead { z-index: 3; }   /* même taille que les autres cartes : seule la capsule le distingue */
.eqp-pt { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: var(--gvid-1j485jt6w2, 8px); }
.eqp-pt img, .eqp-pt video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eqp-dim { position: absolute; inset: 0; z-index: 1; background: #000; opacity: 0; pointer-events: none; }   /* voile des cartes du fond pendant l'entrée (ma3-custom.js) */
.eqp-ph--lav { background: var(--gcid-rz4lyrnbbd, #ebedfc); color: #9c6cc4; }
.eqp-ph--green { background: var(--gcid-s53uwlrvje, #ecf8ef); color: #65a869; }
.eqp-ph--peach { background: #fdf0e6; color: #e3874a; }
.eqp-ph--grey { background: var(--gcid-p5ip98bem3, #f5f5f5); color: #8a8a94; }
.eqp-pt.eqp-ph b { font-size: clamp(48px, 5vw, 84px); line-height: 1; letter-spacing: -.03em; }
.eqp-card h3 { margin: 14px 0 2px; padding: 0; font-size: 21px; line-height: 1.2; color: inherit; }
.eqp-card p { margin: 0; padding: 0; color: #b9b9c2; font-size: 15px; line-height: 1.3; }
.eqp-lead { position: absolute; left: 50%; top: -14px; z-index: 1; transform: translateX(-50%); padding: 7px 12px; border-radius: 99px; background: #9c6cc4; color: #fff; font-size: 12px; line-height: 1; white-space: nowrap; }   /* capsule violette (charte) */
.eqp-foot { display: flex; justify-content: center; margin: 36px 0 0; padding: 0; }
.eqp-foot > span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 99px; background: var(--gcid-p5ip98bem3, #f5f5f5); font-size: 15px; line-height: 1; }
.eqp-foot i { display: flex; }
.js-reveal .eqp-card, .js-reveal .eqp-foot > span { opacity: 0; }   /* cachés jusqu'à l'animation (ma3-custom.js) */
html.ma3-dark .eqp-card { color: #f2f0ec; }
html.ma3-dark .eqp-card p { color: #a8a8b0; }
html.ma3-dark .eqp-foot > span { background: #232326; }
@media (max-width: 1000px) {
  /* grille 2 colonnes, toutes les lignes à la hauteur de la plus haute carte : cartes identiques */
  .eqp-stage { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); grid-auto-rows: 1fr; justify-content: center; gap: 12px; }
  .eqp-card { max-width: none; }
  .eqp-card.is-lead { order: -1; }   /* en premier, dans la grille comme les autres */
}
@media (max-width: 767px) {
  .eqp-stage { gap: 8px; }
  .eqp-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eqp-card h3 { font-size: 17px; }
  .eqp-card p { font-size: 14px; }
}

/* ----- Réseau d'experts [ma3_reseau] : les experts du projet glissent de gauche à droite, en boucle ----- */
.et_pb_module:has(> .et_pb_code_inner > .ma3-reseau) { align-self: stretch; width: 100%; }   /* remplit sa colonne Divi */
.rsn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; }
.rsn-in { display: block; }
.rsn-p { position: relative; display: inline-block; padding: 11px 20px; border: 1px solid #2c2c32; border-radius: 99px; background: #141416; color: #e9e9ee; font-size: 16px; line-height: 1.2; white-space: nowrap; transition: background .6s, color .6s, border-color .6s; will-change: transform; }
.rsn-p.on { border-color: #9c6cc4; background: #9c6cc4; color: #fff; }
.rsn-team { padding: 30px; border: 1px solid #26262b; border-radius: var(--gvid-1j485jt6w2, 8px); background: #111113; color: #fff; }   /* fond noir de la section : la carte se détache à peine */
.rsn-lab { margin: 0; padding: 0; color: #8a8a94; font-size: 14px; line-height: 1; }
.rsn-title { margin: 10px 0 22px; padding: 0; font-size: 26px; line-height: 1.15; color: #fff; }
.rsn-join { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; min-height: 100px; }   /* hauteur calée sur le projet le plus long (ma3-custom.js) : la carte ne change pas de taille */
.rsn-base { padding: 11px 20px; border: 1px solid #4a4a52; border-radius: 99px; color: #fff; font-size: 16px; line-height: 1.2; white-space: nowrap; }
.rsn-plus { display: flex; align-items: center; padding: 0 2px; color: #8a8a94; font-size: 20px; line-height: 1; }   /* entre l'équipe et les experts du projet */
.rsn-tot { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 0; padding: 20px 0 0; border-top: 1px solid #26262b; color: #8a8a94; font-size: 16px; line-height: 1.3; }
.rsn-tot b { flex: none; color: #fff; font-size: 36px; line-height: 1; font-weight: inherit; white-space: nowrap; }   /* « + » et chiffre toujours sur la même ligne */
.rsn-sw { position: relative; display: block; overflow: hidden; }
.rsn-tot .rsn-sw { display: inline-block; vertical-align: bottom; }
.rsn-sw > span { display: block; }
.rsn-sw > span + span { position: absolute; left: 0; right: 0; top: 0; }
.rsn-team { position: relative; }
.rsn-team .hsy-pause { box-shadow: inset 0 0 0 1px #3a3a40; }   /* pastille « En pause » (survol) : filet pour se détacher de la carte noire */
.ma3-reseau.is-paused .hsy-pause { opacity: 1; transform: none; }
.js-reveal .rsn-team { opacity: 0; }   /* cachés jusqu'à l'entrée (ma3-custom.js) */
/* mode sombre : la section noire devient claire, le bloc repasse en version claire */
/* mode sombre : rien à changer, la carte est déjà dessinée pour une section noire (exclue du mode sombre dans ma3-custom.js) */
@media (max-width: 767px) {
  .rsn-p, .rsn-base { padding: 7px 11px; font-size: 13px; }
  .rsn-team { padding: 22px 18px; }
  .rsn-title { font-size: 21px; }
  .rsn-tot b { font-size: 32px; }
}

/* ==========================================================================
   CHECKLIST [ma3_livraison] : reprend la carte blanche de [ma3_acces] (.ac-box, .ac-badge, .ac-checks), rien à redéfinir
   ========================================================================== */
.ma3-livraison { width: 100%; }
.et_pb_module:has(> .et_pb_code_inner > .ma3-livraison) { align-self: stretch; width: 100%; }   /* colonne Divi en flex centré : le module prend toute la largeur */
.ma3-livraison .ac-checks path { stroke-dasharray: 12; }
.js-reveal .ma3-livraison .ac-checks li { opacity: 0; }   /* cachées jusqu'à l'entrée (ma3-custom.js) */


/* ----- Immersion en visio [ma3_immersion] : scène 640 × 400 mise à l'échelle de la colonne (fond et arrondi réglés dans Divi) ----- */
.et_pb_module:has(> .et_pb_code_inner > .ma3-immersion) { align-self: stretch; width: 100%; }   /* remplit sa colonne Divi */
.ma3-immersion { position: relative; width: 100%; aspect-ratio: 640 / 400; overflow: hidden; }
.imv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; }
.imv-in { position: absolute; left: 0; top: 0; width: 640px; height: 400px; transform-origin: 0 0; color: #000; }
.imv-cd { position: absolute; left: 60px; width: 520px; border-radius: var(--gvid-1j485jt6w2, 8px); background: #fff; box-shadow: 0 30px 60px -30px rgba(40, 30, 90, .28); }
.imv-brief, .imv-call { opacity: 0; }   /* sans script (Visual Builder) : seule la recommandation s'affiche */
.js-reveal .imv-reco { opacity: 0; }
.imv-top { display: flex; justify-content: space-between; align-items: center; }
.imv-lab { font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.2; }
.imv-lab--m { color: #6e6e78; }
.imv-chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 99px; background: #f4f4f4; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1; white-space: nowrap; }
.imv-chip--v { background: #9c6cc4; color: #fff; }
.imv-chip svg { width: 12px; height: 12px; }
.imv-big { margin: 22px 0 0; padding: 0; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 30px; line-height: 1.22; letter-spacing: -.01em; color: #000; }
.imv-sk { display: block; height: 9px; margin-top: 12px; border-radius: 5px; background: #ececf0; }
.imv-brief, .imv-reco { padding: 30px 32px 34px; }
.imv-brief .imv-big { margin-bottom: 26px; }
.imv-reco .imv-big { font-size: 29px; }
.imv-call { top: 46px; padding: 22px 26px 34px; }   /* hauteur selon le contenu, centrée par le script */
.imv-ppl { display: flex; justify-content: center; gap: 40px; margin-top: 24px; }   /* les 2 personnes rapprochées */
.imv-p { display: grid; justify-items: center; gap: 10px; }   /* pastille, nom centré dessous, puis l'animation vocale */
.imv-av { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #f4f4f4; color: #6e6e78; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 22px; line-height: 1; }
.imv-av--ma3 { background: #000; color: #fff; font-size: 19px; }
.imv-av::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2.5px solid #9c6cc4; opacity: 0; transform: scale(.94); transition: opacity .3s, transform .3s; }
.imv-name { font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1; }
.imv-bars { display: flex; align-items: center; gap: 3px; height: 18px; opacity: 0; transition: opacity .3s; }
.imv-bars i { width: 3px; height: 100%; border-radius: 2px; background: #9c6cc4; }
.imv-p.on .imv-av::after { opacity: 1; transform: none; }   /* la personne qui parle s'allume */
.imv-p.on .imv-bars { opacity: 1; }
.ma3-immersion .hsy-pause { top: 0; right: 0; }   /* tout en haut à droite */
.ma3-immersion.is-paused .hsy-pause { opacity: 1; transform: none; }

/* ----- Animation du hero synchronisée avec le H1 [ma3_hero_synchro] ----- */
/* Fond, arrondi, marges : réglés dans Divi. Le composant garde seulement son format et son contenu. */
.ma3-hero-sync { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 480px; overflow: hidden; color: #000; font-family: "Haffer-regular", Helvetica, Arial, sans-serif; }
.hsy-scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 5% 8% 13%; visibility: hidden; }   /* bas : place pour la légende */
.hsy-cap { position: absolute; z-index: 3; left: 22px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px !important; border-radius: 99px; background: #000; color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1; overflow: hidden; }
.hsy-cap::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #9b72c6; }
.hsy-cap span { display: inline-block; }
.hsy-scene.is-on { visibility: visible; }
/* Pause au survol : pastille « En pause » + segment de la barre du H1 qui clignote */
.hsy-pause { position: absolute; z-index: 4; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 3px; padding: 8px 13px 8px 11px; border-radius: 99px; background: #000; color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1; opacity: 0; transform: translateY(-4px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.hsy-pause i { width: 3px; height: 10px; border-radius: 1px; background: #9b72c6; }
.hsy-pause i:last-of-type { margin-right: 6px; }
.ma3-hero-sync.is-paused .hsy-pause { opacity: 1; transform: none; }
/* 1. attirer */
.hsy-serp { width: 100%; padding: 16px 18px 8px; border-radius: 14px; background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .3); font-size: 13px; line-height: 1.3; }
.hsy-serp .q { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px; margin-bottom: 10px; border-radius: 99px; box-shadow: 0 1px 8px rgba(0, 0, 0, .12); }
.hsy-serp .q svg { width: 13px; height: 13px; flex: none; }
.hsy-res { position: relative; height: 232px; }
.hsy-res > div { position: absolute; left: 0; right: 0; display: grid; grid-template-columns: 24px 1fr; gap: 4px 12px; align-items: center; padding: 9px 14px; border-radius: 10px; }
.hsy-res b { width: 24px; height: 24px; border-radius: 50%; background: #ececf0; grid-row: span 2; }
.hsy-res .l { height: 8px; border-radius: 4px; background: #ececf0; }
.hsy-res .l + .l { width: 60%; height: 6px; }
.hsy-res .you { padding-right: 60px; background: var(--gcid-rz4lyrnbbd, #ebedfc); }
.hsy-res .you b { background: var(--gcid-pnytn4mxu4, #9c6cc4); }
.hsy-res .you strong { font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; font-size: 15px; line-height: 1.2; color: #1a0dab; }
.hsy-res .you span { font-size: 12px; line-height: 1.35; color: #555; }
.hsy-rank:empty { display: none; }
.hsy-rank { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); padding: 5px 10px; border-radius: 99px; background: var(--gcid-pnytn4mxu4, #9c6cc4); color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-style: normal; font-size: 12px; line-height: 1; }
/* 2. séduire : le coup de cœur. Mini site en nuances de gris (fixe) ; les cœurs rouges et les compteurs sont animés */
.hsy-love { position: relative; width: 86%; }
.hsy-mq { width: 100%; padding: 14px 16px 16px; border-radius: 14px; background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .3); }
.mq-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mq-nav .logo { width: 22px; height: 22px; border-radius: 6px; background: #c6c6cc; }
.mq-nav span { width: 38px; height: 6px; border-radius: 3px; background: #e4e4e8; }
.mq-nav span:first-of-type { margin-left: auto; }
.mq-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: 10px; background: #f1f1f3; }
.mq-txt { display: flex; flex-direction: column; gap: 8px; }
.mq-t { display: flex; flex-direction: column; gap: 7px; margin: 0 0 4px; }   /* titre de la maquette : barres, pas de texte */
.mq-t i { display: block; height: 14px; border-radius: 4px; background: #c6c6cc; }
.mq-t i:last-child { width: 62%; }
.mq-l { display: block; height: 6px; border-radius: 3px; background: #d4d4da; }
.mq-btn { align-self: flex-start; display: block; width: 64px; height: 24px; margin-top: 4px; border-radius: 99px; background: #c6c6cc; }
.mq-img { aspect-ratio: 1 / .8; border-radius: 10px; background: #d9d9de; }
.mq-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.mq-cards div { height: 46px; border-radius: 8px; background: #ececef; }
.mq-cards div:nth-child(2) { background: #e4e4e8; }
.mq-cards div:nth-child(3) { background: #dcdce1; }
.love-hearts { position: absolute; inset: 0; pointer-events: none; }
.love-hearts i { position: absolute; left: 58%; bottom: 22%; width: 34px; height: 34px; opacity: 0; }
.love-hearts svg { display: block; width: 100%; height: 100%; fill: #e0483e; filter: drop-shadow(0 6px 10px rgba(224, 72, 62, .35)); }
.love-stat { position: absolute; padding: 14px 20px; border-radius: 14px; background: #fff; color: #000; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .5); }
.love-stat small { display: block; margin-bottom: 6px; font-size: 13px; line-height: 1.2; color: #8a8a8a; }
.love-stat b { font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; font-size: 28px; line-height: 1; }
.love-stat.st1 { left: 0; right: 0; bottom: -10%; width: fit-content; margin: 0 auto; padding: 10px 15px; }
.love-stat.st1 small { font-size: 12px; }
.love-stat.st1 b { font-size: 20px; }
.love-stat.st2 { right: -5%; top: -10%; background: #fff; color: #000; }
/* 3. engager */
.hsy-notifs { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.hsy-notifs > div { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .94); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .3); font-size: 13px; line-height: 1.35; }
.hsy-notifs i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--gcid-pnytn4mxu4, #9c6cc4); color: #fff; font-style: normal; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 15px; }
.hsy-notifs strong { display: block; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; font-size: 14px; }
.hsy-notifs em { align-self: start; font-style: normal; color: #6e6e6e; font-size: 12px; }
@media (max-width: 1100px) {   /* moins de hauteur : 3 résultats au lieu de 4, recherche plus compacte */
  .hsy-mq { padding: 10px 12px 12px; }
  .mq-nav { margin-bottom: 10px; }
  .mq-hero { padding: 12px; }
  .mq-cards { margin-top: 8px; }
  .hsy-res > div:nth-child(3) { display: none; }
  .hsy-serp { padding: 12px 14px 4px; }
  .hsy-serp .q { height: 30px; margin-bottom: 6px; font-size: 12px; }
  .hsy-res > div { padding: 7px 12px; }
  .hsy-res .you strong { font-size: 13px; }
  .hsy-res .you span { display: none; }
}
@media (max-width: 980px) {
  .ma3-hero-sync { aspect-ratio: 4 / 3.6; }
  .hsy-scene { padding: 5% 5% 17%; }
  .hsy-cap { left: 14px; bottom: 14px; font-size: 12px; padding: 8px 13px !important; }
  .mq-t { gap: 6px; }
  .mq-t i { height: 11px; }
  .mq-cards div { height: 34px; }
  .hsy-love { width: 92%; }
  .love-stat.st1 { bottom: -8%; }
  .love-stat.st2 { right: -2%; }
  .love-stat { padding: 10px 14px; border-radius: 12px; }
  .love-stat small { margin-bottom: 4px; font-size: 12px; }
  .love-stat b { font-size: 21px; }
  .love-stat.st1 { padding: 8px 12px; }
  .love-stat.st1 small { font-size: 12px; }
  .love-stat.st1 b { font-size: 16px; }
  .love-hearts i { width: 28px; height: 28px; }
  .hsy-notifs > div { grid-template-columns: 34px 1fr; padding: 12px 14px; }
  .hsy-notifs i { width: 34px; height: 34px; }
  .hsy-notifs em { display: none; }
}

   /* 1re ligne (2e enfant, après l en-tête) en blanc translucide, puis une sur deux */

/* Mention sous le tableau : carte blanche, pastille violette + phrase sur une ligne */
   /* .97 : le mode sombre garde la carte claire sur le lavande */

/* ----- Accessibilité et autonomie [ma3_acces] : deux cartes jumelles ----- */
.ma3-acces { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.ac-card { display: flex; flex-direction: column; gap: 18px; padding: clamp(26px, 3vw, 40px); border-radius: 16px; color: #000; }
.ac-card.is-lav { background: var(--gcid-rz4lyrnbbd, #ebedfc); }
.ac-card.is-grey { background: var(--gcid-p5ip98bem3, #f5f5f5); }
html.ma3-dark .ac-card.is-grey { border: 1px solid #26262b; }   /* mode sombre : liseret pour la détacher du fond (comme les cartes .sy-card) */
.ac-tag { align-self: flex-start; padding: 7px 12px; border-radius: 99px; background: #9b72c6; color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1; }
.ac-card h3 { margin: 0; padding: 0 !important; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; color: #000; }   /* même taille que les autres H3 (26 px max) */
.ac-card p { margin: 0; padding: 0 !important; font-size: 16px; line-height: 1.4em; color: #000; }
.ac-box { position: relative; padding: 8px 20px; border-radius: 12px; background: #fff; box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .35); }
.ac-badge { position: absolute; top: -12px; right: 18px; padding: 6px 11px; border-radius: 99px; background: #000; color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1; }
@media (max-width: 767px) { .ac-badge { font-size: 12px; } }   /* mobile : taille d'avant */
.ac-checks, .ac-keys { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.ac-checks li, .ac-keys li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 0; border-bottom: 1px solid rgba(0, 0, 0, .07); font-size: 14px; line-height: 1.2; color: #000; }
.ac-checks li:last-child, .ac-keys li:last-child { border-bottom: 0; }
.ac-checks li { font-family: "Haffer-medium", Helvetica, Arial, sans-serif; }
.ac-checks i { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gcid-s53uwlrvje, #ecf8ef); color: var(--gcid-irhl82b2ls, #65a869); }   /* mêmes coches que le comparatif */
.ac-checks svg { width: 11px; height: 11px; }
.ac-checks .ac-more { font-family: inherit; font-size: 18px; letter-spacing: 2px; color: #9a9aa6; }
.ac-checks .ac-more i { background: #ececf0; }
.ac-keys li { justify-content: space-between; gap: 12px; }
.ac-keys b { flex: none; padding: 6px 11px; border-radius: 99px; background: var(--gcid-s53uwlrvje, #ecf8ef); color: var(--gcid-irhl82b2ls, #65a869); font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; font-size: 12px; line-height: 1; }   /* pastilles vertes, comme les coches */
.ac-keys .ac-url { justify-content: flex-start; gap: 8px; margin: 8px 0 4px; padding: 10px 14px; border: 0; border-radius: 99px; background: #f4f4f4; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 13px; }
.ac-keys .ac-url svg { width: 12px; height: 12px; color: #3fa45b; }
.ac-card .ac-gain { font-size: 16px; color: #333; }
.ac-gain strong { font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; color: #000; }
@media (max-width: 980px) { .ma3-acces { grid-template-columns: 1fr; } }
/* [ma3_pres_formats] : à droite, le compte à rebours jusqu'au jour J (fil violet qui se remplit, pastilles lavande, jour J plein) */
.ac-tl { position: relative; padding: 14px 0 6px; }
.ac-tl::before, .ac-tl-fill { content: ""; position: absolute; left: 10px; top: 24px; bottom: 26px; width: 2px; background: #ececf0; }
.ac-tl-fill { background: #9b72c6; transform-origin: top; }
.ac-tl ul { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.ac-tl li { position: relative; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; margin: 0; padding: 9px 0; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.2; color: #000; }
.ac-tl li::before { content: ""; position: relative; z-index: 1; width: 10px; height: 10px; margin-left: 6px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #9b72c6; }
.ac-tl li b { padding: 6px 11px; border-radius: 99px; background: var(--gcid-rz4lyrnbbd, #ebedfc); color: #9b72c6; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; font-size: 12px; line-height: 1; white-space: nowrap; }
.ac-tl li.is-j::before { background: #9b72c6; }
.ac-tl li.is-j b { background: #9b72c6; color: #fff; }

/* ----- Deux formules de la page Stratégie [ma3_strat_offres] : cartes de [ma3_acces], deux encarts blancs (Étapes, Livrables) l'un sous l'autre ----- */
.so-stack { display: flex; flex-direction: column; gap: 26px; margin-top: auto; padding-top: 14px; }   /* encarts alignés en bas des deux cartes */
.so-box { padding-top: 18px; }
.so-pill { position: absolute; top: -12px; left: 18px; padding: 6px 11px; border-radius: 99px; background: #9b72c6; color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1; }
@media (max-width: 767px) { .so-pill { font-size: 12px; } }
.so-mot { background: linear-gradient(#9b72c6, #9b72c6) no-repeat 0 100% / 0% 3px; padding-bottom: 2px; transition: background-size .6s cubic-bezier(.4, 0, .2, 1) .35s; }   /* dernier mot du titre : soulignement violet qui se trace à l'arrivée (comme .mpa-key) */
.so-mot.hl { background-size: 100% 3px; }

/* ----- Tableau de veille [ma3_veille] (après la mise en ligne) : illustration, le noir y est accepté ----- */
.ma3-veille { position: relative; padding: 26px 28px 10px; border-radius: var(--gvid-1j485jt6w2, 16px); background: #111; border: 1px solid #262626; color: #fff; font-size: 14px; line-height: 1.3; }
.vl-st { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid #262626; }
.vl-ok { display: flex; align-items: center; gap: 10px; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 16px; color: #fff; }
.vl-ok i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #65a869; box-shadow: 0 0 0 4px rgba(101, 168, 105, .2); animation: vl-beat 2.4s ease-in-out infinite; }
@keyframes vl-beat { 50% { box-shadow: 0 0 0 7px rgba(101, 168, 105, 0); } }
.vl-up { text-align: right; line-height: 1; }
.vl-up b { display: block; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; font-size: 30px; color: #fff; }
.vl-up small { display: block; margin-top: 4px; font-size: 12px; color: #8a8a8a; }
.vl-win { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 75%, transparent); mask-image: linear-gradient(transparent, #000 10%, #000 75%, transparent); }   /* la ligne qui sort s'efface en haut, celle qui arrive se dévoile en bas */
.vl-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #1d1d1d; color: #bdbdbd; }
.vl-row time { color: #6e6e6e; font-variant-numeric: tabular-nums; }
.vl-row em { font-style: normal; font-size: 12px; line-height: 1; padding: 6px 10px; border-radius: 99px; }
.vl-row em.is-vert { background: rgba(101, 168, 105, .15); color: #8bd18f; }
.vl-row em.is-violet { background: rgba(155, 114, 198, .18); color: #c9a9ea; }

@media (max-width: 767px) {
  .ma3-veille { padding: 20px 18px 6px; font-size: 13px; }
  .vl-up b { font-size: 24px; }
  .vl-row { grid-template-columns: 44px 1fr auto; gap: 10px; }
}

/* ----- Encart dépannage [ma3_depannage] (sur fond noir) : même cadre que le tableau de veille ----- */
.ma3-veille--liste { padding-bottom: 12px; }
.ma3-veille--liste .vl-row { grid-template-columns: 1fr auto; }
.ma3-veille--liste .vl-row:last-child { border-bottom: 0; }
.ma3-veille--liste .vl-row a { color: inherit; transition: color .25s; }
.ma3-veille--liste .vl-row a:hover { color: #fff; }
.ma3-depannage { padding: 26px 28px; border-radius: var(--gvid-1j485jt6w2, 16px); background: #111; border: 1px solid #262626; color: #fff; }
.ma3-depannage h3 { margin: 0 0 8px; padding: 0 !important; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.2; color: #fff; }
.ma3-depannage h3 { display: flex; align-items: flex-start; gap: 10px; }
.dp-info { flex: none; width: 20px; height: 20px; margin-top: .1em; color: #9b72c6; }
.ma3-depannage p { margin: 0; padding: 0 !important; font-size: 15px; line-height: 1.4em; color: #a8a8a8; }

/* ----- Interrupteurs (comparatif et étapes) en mode sombre : capsule gris foncé, textes clairs, pastille claire sous l'onglet actif ----- */
html.ma3-dark .dsw-sw, html.ma3-dark .me-tabs { background: #232326; }
html.ma3-dark .dsw-sw button, html.ma3-dark .me-tabs button { color: #c9c9cf; }
html.ma3-dark .dsw-sw button[aria-pressed="true"], html.ma3-dark .me-tabs button[aria-selected="true"] { color: #111; }
html.ma3-dark .dsw-knob, html.ma3-dark .me-knob { background: #f2f0ec; }

/* ----- Comparatif à interrupteur [ma3_duel_switch] ----- */
.et_pb_module:has(> .et_pb_code_inner > .ma3-dsw) { align-self: stretch; width: 100%; }   /* le module Divi prenait la largeur du contenu : le bloc remplit sa colonne, l'espacement se règle dans Divi */
.ma3-dsw { display: flex; flex-direction: column; gap: 35px; width: 100%; }
.dsw-sw { position: relative; display: inline-flex; align-self: flex-start; padding: 6px; border-radius: 99px; background: var(--gcid-p5ip98bem3, #f5f5f5); }
.dsw-sw button { position: relative; z-index: 1; padding: 18px 30px;   /* comme les onglets des étapes (avant : 16px 24px) */
  border: 0; border-radius: 99px; background: none; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.1; color: #000; cursor: pointer; transition: color .45s; }
.dsw-sw button[aria-pressed="true"] { color: #fff; }
.dsw-sw button:focus-visible { outline: 2px solid #9b72c6; outline-offset: 2px; }
/* survol : le texte roule vers le haut ; à la sortie (ou après un clic) il reste tel quel : il revient sans animation,
   ce qui ne se voit pas (même texte), et roule à nouveau au survol suivant */
.dsw-sw .nav-roll > span, .dsw-sw .nav-roll::after { transition: none; }
.dsw-sw .nav-roll::after { top: 0; transform: translateY(135%); }   /* le texte du dessous s'arrête pile à la place de l'original : pas de saut de 1 px à la sortie */
@media (hover: hover) { .dsw-sw button:hover > .nav-roll > span { transform: translateY(-135%); } .dsw-sw button:hover > .nav-roll::after { transform: none; } .dsw-sw button:hover > .nav-roll > span, .dsw-sw button:hover > .nav-roll::after { transition: transform .45s cubic-bezier(.7, 0, .2, 1); } }
.dsw-sw button:focus-visible > .nav-roll > span { transform: translateY(-135%); } .dsw-sw button:focus-visible > .nav-roll::after { transform: none; } .dsw-sw button:focus-visible > .nav-roll > span, .dsw-sw button:focus-visible > .nav-roll::after { transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
.dsw-sw i { position: absolute; left: 30px; right: 30px; bottom: 8px; height: 2px; overflow: hidden; }   /* minuterie : barre violette qui se remplit, comme les étapes du référencement */
.dsw-sw .dsw-lab-m { display: none; }   /* intitulé court : mobile seulement */
@media (max-width: 767px) { .dsw-sw .dsw-lab-d { display: none; } .dsw-sw .dsw-lab-m { display: inline; } }
.dsw-sw b { display: block; height: 100%; background: #9b72c6; transform: scaleX(0); transform-origin: left; }
.dsw-knob { position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 99px; background: #000; transition: transform .55s cubic-bezier(.7, 0, .2, 1), width .55s cubic-bezier(.7, 0, .2, 1); }
.dsw-list { margin: 0 !important; padding: 0 !important; }
.dsw-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid #e3e3e6; }
.dsw-row dt { margin: 0; font-family: "Haffer-regular", Helvetica, Arial, sans-serif; font-weight: 400; font-size: 15px; line-height: 1.3; color: #000; }
.dsw-row dd { display: grid; margin: 0; overflow: hidden; }
.dsw-o, .dsw-n { grid-area: 1 / 1; display: flex; align-items: center; gap: 16px; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.25; }
.dsw-o { color: #8a8a94; }
.dsw-n { color: #000; visibility: hidden; }   /* placée sous la ligne par ma3-custom.js */
.dsw-n { font-size: clamp(16px, 1.2vw, 18px); }   /* réponses MA3 : 18 px max */
.dsw-ok, .dsw-ko { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; }
.dsw-ok { background: var(--gcid-s53uwlrvje, #ecf8ef); color: var(--gcid-irhl82b2ls, #65a869); }
.dsw-ko { background: rgba(214, 69, 69, .12); color: #d64545; }
.dsw-ok svg, .dsw-ko svg { width: 13px; height: 13px; }
html.ma3-dark .dsw-row { border-color: #2a2a2e; }
@media (max-width: 767px) {
  .ma3-dsw { gap: 10px; }
  .dsw-sw { align-self: stretch; } .dsw-sw button { flex: 1; padding: 15px 10px; font-size: 14px; } .dsw-sw i { left: 14px; right: 14px; bottom: 6px; }
  .dsw-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
  .dsw-row dt { font-size: 13px; color: #6e6e6e; }
  .dsw-o, .dsw-n { gap: 12px; font-size: 16px; }
  .dsw-ok, .dsw-ko { width: 24px; height: 24px; }
}

/* ----- Étapes qui défilent [ma3_etapes] (section Référencement) ----- */
.ma3-etapes svg { flex: none; }
.me-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(26px, 4vw, 60px); align-items: stretch; }
.me-right { display: flex; flex-direction: column; justify-content: center; gap: 18px; min-width: 0; }
/* étapes en interrupteur (comme [ma3_duel_switch]) : la pastille noire glisse sous l'étape active, sa barre violette se remplit pendant les 4 s */
.me-tabs { position: relative; display: inline-flex; align-self: flex-start; padding: 6px; border-radius: 99px; background: var(--gcid-p5ip98bem3, #f5f5f5); }
.me-tabs button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 18px 30px;   /* plus d'air entre les étapes (avant : 16px 20px) */
  border: 0; border-radius: 99px; background: none; color: #000; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.1; text-align: left; cursor: pointer; transition: color .45s; }
.me-tabs .n { font-size: 12px; color: #9b72c6; }
.me-tabs button[aria-selected="true"] { color: #fff; }
.me-tabs button:focus-visible { outline: 2px solid #9b72c6; outline-offset: 2px; }
/* survol : rouleau vers le haut ; à la sortie (ou après un clic) le texte reste tel quel (retour sans animation, invisible), il roule à nouveau au survol suivant */
.me-tabs .nav-roll > span, .me-tabs .nav-roll::after { transition: none; }
.me-tabs .nav-roll::after { top: 0; transform: translateY(135%); }   /* le texte du dessous s'arrête pile à la place de l'original : pas de saut à la sortie */
@media (hover: hover) { .me-tabs button:hover > .nav-roll > span { transform: translateY(-135%); } .me-tabs button:hover > .nav-roll::after { transform: none; } .me-tabs button:hover > .nav-roll > span, .me-tabs button:hover > .nav-roll::after { transition: transform .45s cubic-bezier(.7, 0, .2, 1); } }
.me-tabs button:focus-visible > .nav-roll > span { transform: translateY(-135%); } .me-tabs button:focus-visible > .nav-roll::after { transform: none; } .me-tabs button:focus-visible > .nav-roll > span, .me-tabs button:focus-visible > .nav-roll::after { transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
.ma3-etapes:not(.ma3-etapes--solo) .me-tabs .n { display: none; }
.me-knob { position: absolute; top: 0; left: 0; width: 0; height: 0; border-radius: 99px; background: #000; transition: transform .55s cubic-bezier(.7, 0, .2, 1), width .55s cubic-bezier(.7, 0, .2, 1), height .55s cubic-bezier(.7, 0, .2, 1); }
/* détail de l'étape : tous les panneaux dans la même case (hauteur de la plus longue : rien ne saute) */
.me-panels { display: grid; }
.me-p { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 16px; padding-top: 20px; opacity: 0; visibility: hidden; }
.me-p.is-on { opacity: 1; visibility: visible; transition: opacity .35s ease; }   /* simple fondu de la nouvelle étape ; l'ancienne disparaît aussitôt */
.me-badge { align-self: flex-start; padding: 6px 12px; border-radius: 99px; background: #9b72c6; color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1; }
.me-p.is-opt .me-badge { background: #9b72c6; }
.me-p h3 { margin: 0; padding: 0 !important; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; color: #000; }
.me-p ul { display: flex; flex-direction: column; gap: 10px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.me-p li { display: flex; gap: 10px; margin: 0; padding: 0; font-size: 16px; line-height: 1.4em; color: #000; }
.me-p li svg { flex: none; box-sizing: content-box; width: 11px; height: 11px; margin: 0; padding: 5.5px; border-radius: 50%; background: rgba(155, 114, 198, .16); color: #9b72c6; }   /* coche violette sur fond violet clair */

/* scène animée : fond pastel de l'étape (violet, vert, pêche), mêmes cartes d'interface que le hero */
.me-visual { position: relative; min-height: 460px; border-radius: var(--gvid-1j485jt6w2, 16px); overflow: hidden; background: #ebedfc; transition: background .6s ease; font-family: "Haffer-regular", Helvetica, Arial, sans-serif; color: #000; }
.me-visual[data-k="1"] { background: #ecf8ef; }
.me-visual[data-k="2"] { background: #fdf0e6; }
.me-sc { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.me-sc.is-on { opacity: 1; }
.me-sc * { box-sizing: border-box; margin: 0; }
.me-sc .mv-card { position: absolute; border-radius: 14px; background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .3); }
.me-sc .mv-h { padding: 0 !important; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1.2; }
.me-sc .mv-l { height: 7px; border-radius: 4px; background: #ececf0; }
.me-sc .mv-l.big { height: 11px; background: #d9d9e0; }
 .me-sc .w80 { width: 80%; } .me-sc .w70 { width: 70%; } .me-sc .w60 { width: 60%; } .me-sc .w55 { width: 55%; }
/* entrée : les cartes, puis leur contenu ; rejouée à chaque étape (une fois la section à l'écran) */
.me-sc .mv-pop, .me-sc [style*="--d"] { opacity: 0; }
.me-visual.is-run .me-sc.is-on .mv-pop { animation: mv-in .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d); }
.me-visual.is-run .me-sc.is-on [style*="--d"]:not(.mv-pop) { animation: mv-fade .5s ease both; animation-delay: var(--d); }
@keyframes mv-in { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes mv-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* 1 · maquette */
.me-sc .mv-kw { top: 7%; left: 8%; width: 52%; z-index: 2; padding: 16px 18px; }
.me-sc .mv-kw ul { display: flex; flex-direction: column; gap: 9px; margin-top: 12px !important; padding: 0 !important; list-style: none !important; }
.me-sc .mv-kw li { display: flex; align-items: center; gap: 9px; padding: 0; font-size: 13px; line-height: 1.2; }
.me-sc .mv-kw li i { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--gcid-s53uwlrvje, #ecf8ef); color: var(--gcid-irhl82b2ls, #65a869); }   /* mêmes coches que le comparatif */
.me-sc .mv-kw li svg { width: 9px; height: 9px; }
.me-sc .mv-page { top: 22%; right: 8%; width: 66%; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.me-sc .mv-nav { display: flex; align-items: center; gap: 8px; }
.me-sc .mv-nav b { width: 22px; height: 8px; border-radius: 4px; background: #000; margin-right: auto; }
.me-sc .mv-nav span { width: 26px; height: 5px; border-radius: 3px; background: #ececf0; }
.me-sc .mv-zone { position: relative; display: flex; flex-direction: column; gap: 7px; padding: 11px 12px; border-radius: 10px; background: rgba(235, 237, 252, .7); }
.me-sc .mv-row { display: flex; align-items: center; gap: 8px; padding: 0 !important; }
.me-sc .mv-row .mv-l { flex: none; }
.me-sc code { flex: none; padding: 3px 5px; border-radius: 4px; background: #fff; color: #9b72c6; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1; }   /* balises : H1, H2, meta, alt */
.me-sc .mv-zone em, .me-sc .mv-cols em { position: absolute; top: -9px; right: 10px; padding: 4px 9px; border-radius: 99px; background: #000; color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-style: normal; font-size: 12px; line-height: 1; }
.me-sc .mv-cols { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.me-sc .mv-cols span { position: relative; height: 34px; border-radius: 8px; background: #f4f4f4; }
.me-sc .mv-cols code { position: absolute; left: 6px; bottom: 6px; }
.me-sc .mv-faq { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-radius: 7px; background: #fff; }
.me-sc .mv-faq span { width: 60%; height: 6px; border-radius: 3px; background: #d9d9e0; }
.me-sc .mv-faq b { font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; font-size: 12px; line-height: 1; color: #9b72c6; }
/* 2 · mise en ligne : bilan centré verticalement ; 4 jauges qui se remplissent puis se cochent, la page qui s'affiche image par image */
.me-sc .mv-center { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 7%; }
.me-sc .vc-card { position: relative; width: 100%; padding: 16px 18px 18px; }
.me-sc .vc-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.me-sc .vc-h p { padding: 0 !important; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.2; }
.me-sc .vc-h span { font-size: 12px; color: #6e6e6e; }
.me-sc .vc-gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.me-sc .vc-g { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12px; line-height: 1.2; }
.me-sc .vc-ring { position: relative; width: 62px; height: 62px; }
.me-sc .vc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.me-sc .vc-ring .t { fill: #ecf8ef; stroke: #e6efe8; stroke-width: 4; }
.me-sc .vc-ring .v { fill: none; stroke: #3fa45b; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 101; stroke-dashoffset: 101; }
.me-sc .vc-ring i { position: absolute; inset: 0; display: grid; place-items: center; color: #3fa45b; opacity: 0; transform: scale(.5); }
.me-sc .vc-ring i svg { width: 20px; height: 20px; transform: none; }
.me-visual.is-run .me-sc.is-on .vc-g .v { animation: vc-fill .9s cubic-bezier(.3, .7, .2, 1) forwards; animation-delay: var(--d); }
.me-visual.is-run .me-sc.is-on .vc-g i { animation: vc-ok .35s cubic-bezier(.2, .9, .3, 1.4) forwards; animation-delay: calc(var(--d) + .75s); }
@keyframes vc-fill { to { stroke-dashoffset: 0; } }
@keyframes vc-ok { to { opacity: 1; transform: none; } }
.me-sc .vc-film { margin-top: 18px; padding-top: 14px; border-top: 1px solid #ececf0; }
.me-sc .vc-film p { padding: 0 !important; font-size: 12px; color: #6e6e6e; }
.me-sc .vc-frames { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.me-sc .vc-frames span { display: flex; flex-direction: column; gap: 4px; aspect-ratio: 4 / 3; padding: 8px; border-radius: 7px; background: #f4f4f4; box-shadow: inset 0 0 0 1px #ececf0; }
.me-sc .vc-frames i { display: block; height: 5px; border-radius: 3px; background: #d9d9e0; }
.me-sc .vc-frames i + i { width: 60%; }
.me-sc .vc-frames b { display: block; flex: 1; margin-top: 2px; border-radius: 4px; background: #d9d9e0; }   /* aplat gris, comme les barres du dessus */
.me-sc .vc-frames .f3 { background: #fff; box-shadow: inset 0 0 0 1.5px #3fa45b; }
/* 3 · ensuite : le rapport du mois, centré dans la scène */
.me-sc .mv-report { position: relative; width: 100%; padding: 18px 20px 20px; }
.me-sc .mv-rh { display: flex; align-items: center; justify-content: space-between; }
.me-sc .mv-pill { padding: 5px 10px; border-radius: 99px; background: #000; color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1; }
.me-sc .mv-graph { position: relative; margin-top: 16px; }
.me-sc .mv-chart { display: block; width: 100%; height: 120px; }
.me-sc .mv-chart .line { stroke-dasharray: 340; stroke-dashoffset: 340; }
.me-sc .mv-chart .area { opacity: 0; }
.me-visual.is-run .me-sc.is-on .mv-chart .line { animation: mv-draw 1.4s .35s ease forwards; }
.me-visual.is-run .me-sc.is-on .mv-chart .area { animation: mv-fade .8s 1.2s ease forwards; }
@keyframes mv-draw { to { stroke-dashoffset: 0; } }
.me-sc .mv-end { position: absolute; right: -5px; top: calc(14 / 110 * 100% - 5px); width: 10px; height: 10px; border-radius: 50%; background: #9b72c6; box-shadow: 0 0 0 4px rgba(155, 114, 198, .2); opacity: 0; transform: scale(.4); }   /* bout de la courbe : ce mois-ci */
.me-visual.is-run .me-sc.is-on .mv-end { animation: vc-ok .4s 1.7s cubic-bezier(.2, .9, .3, 1.4) forwards, mv-beat 1.8s 2.2s ease-in-out infinite; }
@keyframes mv-beat { 50% { box-shadow: 0 0 0 8px rgba(155, 114, 198, 0); } }
.me-sc .mv-months { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; line-height: 1; color: #9a9aa6; }
.me-sc .mv-months span:last-child { font-family: "Haffer-medium", Helvetica, Arial, sans-serif; color: #000; }
.me-sc .mv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.me-sc .mv-kpis p { display: flex; align-items: center; justify-content: space-between; padding: 10px 11px !important; border-radius: 8px; background: #f4f4f4; font-size: 12px; line-height: 1; }
.me-sc .mv-kpis i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #ecf8ef; color: #3fa45b; }
.me-sc .mv-kpis svg { width: 10px; height: 10px; }
.me-sc .mv-ia { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #ececf0; }
.me-sc .mv-iah { display: inline-flex; align-items: center; gap: 7px; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1; }
.me-sc .mv-iah i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #9b72c6; color: #fff; }
.me-sc .mv-iah svg { width: 10px; height: 10px; }
.me-sc .mv-bots { display: flex; gap: 5px; }
.me-sc .mv-bots b { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 99px; background: #f4f4f4; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; font-size: 12px; line-height: 1; }
.me-sc .mv-bots b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3fa45b; }
@media (max-width: 980px) {
  .me-grid { grid-template-columns: 1fr; }
  .me-visual { min-height: 440px; }
  .me-p { padding-top: 10px; }
  .me-sc .mv-kw { top: 5%; width: 72%; left: 5%; } .me-sc .mv-page { top: 32%; width: 74%; right: 5%; }
  .me-sc .mv-center { padding: 0 5%; } .me-sc .vc-ring { width: 52px; height: 52px; }
}
@media (max-width: 480px) {
  .me-sc .vc-g { font-size: 12px; } .me-sc .vc-ring { width: 46px; height: 46px; }
}
@media (max-width: 600px) {
  .me-tabs { flex-direction: column; align-self: stretch; border-radius: 24px; }   /* trop long sur une ligne : les étapes s'empilent, la pastille glisse de haut en bas */
}

/* ----- Bandeau de tags ----- */
.ma3-marquee--tags {
  --tag-bg: var(--gcid-p5ip98bem3);    /* fond des pastilles */
  --tag-color: #0a0a0a;                /* texte des pastilles */
  --tag-gap: 22px;                     /* espace entre les pastilles */
  border-top: 1px solid var(--gris-barre);
  border-bottom: 1px solid var(--gris-barre);
  padding: 35px 0;
}
.ma3-marquee--tags .mq-track {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mq-tag {
  flex: 0 0 auto;
  padding-right: var(--tag-gap);
  list-style: none;
}
.mq-tag span {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-color);
  font-family: 'Haffer-medium', Helvetica, Arial, Lucida, sans-serif;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

/* ----- Tablette et mobile ----- */
@media (max-width: 980px) {
  .ma3-marquee--tags { padding: 32px 0; }
  .mq-tag span { padding: 11px 20px; font-size: 15px; }
}
/* ----- Mobile : titre plus gros, sans marge à gauche, sur 3 lignes ----- */
@media (max-width: 767px) {
  .ma3-marquee--tags { padding: 20px 0; }
  .ma3-hero .hero-kicker,
  .ma3-hero .hero-title,
  .ma3-hero:not(.hero-svc) .hero-title + .et_pb_text {
    margin-left: 0 !important;
  }
  .ma3-hero .hero-title h1 {
    font-size: min(100cqw / 7.9, 64px) !important;   /* la 1re ligne remplit la largeur */
    white-space: normal;                             /* autorise le passage à la ligne */
  }
  .ma3-hero.hero-svc .hero-title h1 {
    font-size: min(10.5vw, 64px) !important;   /* pages service : même taille que le H1 de l'accueil (sa colonne est plus large, d'où une taille calée sur l'écran) */
  }
}

/* ===== Projets : blocs à la carte ===== */
.ma3-projet {
  --pj-gap: clamp(12px, 1.6vw, 24px);   /* espace entre les images */
  --pj-duo-ratio: 4 / 5;                /* proportion des 2 images côte à côte */
  display: flex;
  flex-direction: column;
  gap: var(--pj-gap);
}
.ma3-projet figure { margin: 0; overflow: hidden; }
.ma3-projet figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image pleine largeur */
.pj-full.pj-auto img { height: auto; }  /* proportion d'origine */
.pj-full.pj-entiere img { height: auto; }   /* toute la largeur, l'image glisse dans un cadre un peu moins haut */
.pj-full.pj-16-9 { aspect-ratio: 16 / 9; }
.pj-full.pj-21-9 { aspect-ratio: 21 / 9; }

/* 2 images côte à côte, toujours à la même hauteur */
.pj-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pj-gap);
}
.pj-duo figure { aspect-ratio: var(--pj-duo-ratio); }
.js-reveal .pj-duo figure img { height: auto; }   /* largeur d'origine : l'image glisse dans un cadre un peu moins haut */
.pj-trio { grid-template-columns: repeat(3, 1fr); }   /* 3 images côte à côte */
/* « 2 colonnes » avec un shortcode : l'animation garde sa propre hauteur, centrée face à l'image ou la vidéo */
.pj-duo:has(.pj-sc) { align-items: center; }
.pj-sc { min-width: 0; }
/* Bloc Shortcode des projets : même cadre que les images et vidéos (arrondi), même apparition */
.ma3-projet .pj-sc {
  border-radius: var(--pj-radius, 8px);
  overflow: hidden;
  isolation: isolate;                 /* garde l'arrondi net pendant l'animation (Safari) */
}
.js-reveal .ma3-projet .pj-sc { opacity: 0; }   /* évite le flash avant l'animation */
/* Shortcode en 16/9 ou 21/9 : l'animation remplit le cadre imposé (elle doit savoir se recadrer, comme Sursauts) */
.pj-sc.pj-full > :not(.pj-leg) { width: 100%; height: 100%; aspect-ratio: auto !important; }
/* [ma3_lottie] : animation Lottie, proportion du fichier ; dans « 2 colonnes », même cadre que les images (recadrée au centre) */
.ma3-lottie { width: 100%; aspect-ratio: var(--lt-ratio, 1); overflow: hidden; }
.ma3-lottie svg { display: block; }
.pj-duo .pj-sc > .ma3-lottie { aspect-ratio: var(--lt-ratio-duo, var(--pj-duo-ratio)); }   /* comme les images voisines : 92 % de la hauteur */

/* Bloc texte */
/* Projets : bloc Texte (titre H2 + tags à gauche, paragraphe à droite) */
.pj-texte {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
  padding: clamp(32px, 5vw, 72px) 0;
}
.pj-texte h2 { margin: 0; padding: 0; line-height:1.2em; }
.pj-texte-body p:last-child { margin-bottom: 0; padding-bottom: 0; }
.pj-texte:not(:has(.pj-texte-head)) .pj-texte-body { grid-column: 2; }   /* paragraphe seul : reste à droite */
.pj-texte-body { line-height:1.4em; }

/* Tags du projet : même design que les pastilles mq-tag de la homepage */
.pj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.pj-texte-head ul{
	    padding: 0;
}
.pj-texte-head {
	  max-width:500px;
}
.pj-tags li { list-style: none; padding: 0; }
.pj-tags span {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--gcid-p5ip98bem3, #f4f4f4);
  color: #0a0a0a;
  font-family: 'Haffer-medium', Helvetica, Arial, Lucida, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.js-reveal .pj-tags li { opacity: 0; }

@media (max-width: 980px) {
  .pj-texte { grid-template-columns: 1fr; }
  .pj-texte:not(:has(.pj-texte-head)) .pj-texte-body { grid-column: auto; }
  .pj-tags span { padding: 11px 20px; font-size: 15px; }
	.pj-full.pj-21-9 { aspect-ratio: 16 / 9; }   /* bandeau moins écrasé sur tablette */	
}

@media (max-width: 767px) {
  .pj-duo,
  .pj-trio { grid-template-columns: 1fr; }  /* les 2 ou 3 images s'empilent sur mobile */
  .pj-full.pj-21-9 { aspect-ratio: 4 / 3; }   /* bandeau plus haut sur mobile */
	.pj-texte h2 {line-height: 1.2em;}
	.pj-texte {    gap: 0px;}
	.pj-texte-head ul{	    padding-bottom: 23px;}
}

/* Projets : coins arrondis + cadre propre pour le reveal */
.ma3-projet { --pj-radius: 8px; }
.ma3-projet figure {
  border-radius: var(--pj-radius);
  isolation: isolate;                 /* garde l'arrondi net pendant l'animation (Safari) */
}
.ma3-projet picture {                 /* balise ajoutée par le plugin WebP */
  display: block;
  width: 100%;
  height: 100%;
}
.js-reveal .ma3-projet .img-reveal { opacity: 0; }   /* évite le flash avant l'animation */

/* Vidéo pleine largeur */
.pj-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pj-video.pj-auto video { height: auto; }
.pj-video video { aspect-ratio: auto 16 / 9; }   /* place réservée avant le chargement (puis proportion réelle de la vidéo) */
.js-reveal .pj-video { opacity: 0; }

/* ==========================================================================
   GALERIE INCLINÉE 3 COLONNES (.ma3-tilt)
   ========================================================================== */
.ma3-tilt {
  --tg-bg: #d6d8e9;          /* fond du cadre */
  --tg-radius: 8px;          /* arrondi du cadre */
  --tg-zoom: 1;              /* zoom des colonnes (plus grand = vues plus serrées) */
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--tg-radius);
  background: var(--tg-bg);
}
.ma3-tilt > img,
.ma3-tilt > picture { position: absolute; opacity: 0; pointer-events: none; }  /* avant construction */
.ma3-tilt .tg-fit,
.ma3-tilt .tg-gallery { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.ma3-tilt .tg-gallery { left: 0; top: 0; will-change: transform; }
.ma3-tilt .tg-col { position: absolute; top: 0; width: 540px; will-change: transform; }
.ma3-tilt .tg-tile {
  position: absolute;
  left: 0;
  width: 540px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(23, 22, 46, .22);
}
.ma3-tilt .tg-tile picture { display: block; }
.ma3-tilt .tg-tile img { display: block; width: 100%; max-width: none; height: auto; }
.js-reveal .ma3-tilt { opacity: 0; }

@media (max-width: 767px) {
  .ma3-tilt { aspect-ratio: 4 / 5; --tg-zoom: 1.7; }
  .ma3-tilt .tg-tile { box-shadow: 0 10px 24px rgba(23, 22, 46, .16); }   /* ombre plus légère */

  /* Pas de calques séparés : la galerie est dessinée en une seule image, une fois */
  .ma3-tilt .tg-gallery,
  .ma3-tilt .tg-col { will-change: auto !important; }
}

/* ==========================================================================
   GALERIE D'IPAD INCLINÉS (.ma3-ipads)
   ========================================================================== */
.ma3-ipads {
  --ip-bg: #c8c5be;            /* fond du cadre (remplacé par la couleur ACF) */
  --ip-radius: 8px;            /* arrondi du cadre */
  --ip-frame: #111;            /* contour des iPad */
  --ip-shadow: #14120e;        /* couleur des ombres (remplacée par la couleur ACF) */
  --ip-zoom: 1;                /* zoom de la grille (plus grand = iPad plus gros) */
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--ip-radius);
  background: var(--ip-bg);
}
.ma3-ipads > img,
.ma3-ipads > picture { position: absolute; opacity: 0; pointer-events: none; }   /* avant construction */
.ma3-ipads .ip-fit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.ma3-ipads .ip-grid { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.ma3-ipads .ip-col { position: absolute; top: 0; width: 420px; }
.ma3-ipads .ip-pad {
  position: absolute;
  left: 0;
  width: 420px;
  height: 576px;               /* iPad portrait (820 × 1180) */
  padding: 5px;                /* contour fin, comme la référence */
  border-radius: 10px;
  background: var(--ip-frame);
  box-shadow: -4px 5px 10px rgba(20, 18, 14, .40), -34px 28px 64px rgba(20, 18, 14, .55);   /* secours (anciens navigateurs) */
  box-shadow: -4px 5px 10px color-mix(in srgb, var(--ip-shadow) 40%, transparent),
              -34px 28px 64px color-mix(in srgb, var(--ip-shadow) 55%, transparent);   /* lumière venant de la droite : ombre décalée vers la gauche (valeurs compensées pour l'inclinaison de 30°) */
}
.ma3-ipads .ip-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
}
.ma3-ipads .ip-screen picture,
.ma3-ipads .ip-screen img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: top;
}
.js-reveal .ma3-ipads { opacity: 0; }

@media (max-width: 767px) {
  .ma3-ipads { aspect-ratio: 4 / 5; --ip-zoom: 1.6; }
  .ma3-ipads .ip-pad {   /* ombre plus légère sur mobile, même direction */
    box-shadow: -3px 4px 8px color-mix(in srgb, var(--ip-shadow) 35%, transparent),
                -18px 16px 36px color-mix(in srgb, var(--ip-shadow) 40%, transparent);
  }
}

/* Galerie Brandbook (.ma3-ipads.ma3-bbook) : pages en paysage, sans contour ni arrondi (taille des pages posée par le script) */
.ma3-bbook .ip-pad { padding: 0; border-radius: 0; background: transparent; }
.ma3-bbook .ip-screen { border-radius: 0; background: #fff; }
.ma3-bbook .ip-screen picture, .ma3-bbook .ip-screen img { object-position: center; }

/* ==========================================================================
   IPAD EN DÉFILEMENT CONTINU (.ma3-ipm) : 2 lignes en sens opposés
   Tailles en « u » : 1u = 1/1000 de la largeur d'un iPad (--pw)
   ========================================================================== */
.ma3-ipm {
  --ipm-bg: #e7d9ce;           /* fond du cadre (remplacé par la couleur ACF) */
  --ipm-radius: 8px;           /* arrondi du cadre */
  --ipm-frame: #2b2b2d;        /* contour métal des iPad (titane foncé, remplacé par la couleur ACF) */
  --ipm-shadow: #14120e;       /* couleur des ombres (remplacée par la couleur ACF) */
  --ipm-speed: 7s;             /* durée de défilement d'un iPad (remplacée par la vitesse ACF) */
  --pw: 39cqw;                 /* largeur d'un iPad */
  --gap: 6.4cqw;               /* espace entre les iPad */
  --u: calc(var(--pw) / 1000);
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--ipm-radius);
  background: var(--ipm-bg);
  container-type: inline-size;
}
.ma3-ipm > img,
.ma3-ipm > picture { position: absolute; opacity: 0; pointer-events: none; }   /* avant construction */

/* Fond image (option ACF) */
.ma3-ipm .ipm-bg { position: absolute; inset: 0; z-index: 0; }
.ma3-ipm .ipm-bg picture,
.ma3-ipm .ipm-bg img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* 2 lignes centrées verticalement */
.ma3-ipm .ipm-rows {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--gap);
}
.ma3-ipm .ipm-track {              /* défilement en boucle géré en JS (GSAP), ralenti au survol */
  display: flex;
  width: max-content;
  will-change: transform;
}
.ma3-ipm .ipm-row:nth-child(2) .ipm-track {
  margin-left: calc((var(--pw) + var(--gap)) / -2);   /* décalée d'un demi-iPad, comme une rangée de briques */
}

/* iPad : contour métal (couleur choisie) > bord en verre noir > écran, comme les iPhone */
.ma3-ipm .ipm-pad {
  flex: none;
  width: var(--pw);
  aspect-ratio: 1180 / 820;              /* iPad en paysage */
  margin-right: var(--gap);              /* marge (pas de gap) : la boucle tombe juste à -50 % */
  padding: calc(7 * var(--u));           /* épaisseur du contour métal */
  border-radius: calc(52 * var(--u));
  /* Métal : plus clair en haut, plus sombre en bas, calculé à partir de la couleur choisie */
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--ipm-frame) 55%, #fff) 0%,
    var(--ipm-frame) 30%,
    color-mix(in srgb, var(--ipm-frame) 80%, #000) 100%);
  /* Fine arête claire, puis ombre venant de la droite (identique pour tous les iPad) */
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--ipm-frame) 40%, #fff),
    calc(-8 * var(--u)) calc(10 * var(--u)) calc(20 * var(--u)) color-mix(in srgb, var(--ipm-shadow) 35%, transparent),
    calc(-60 * var(--u)) calc(48 * var(--u)) calc(105 * var(--u)) color-mix(in srgb, var(--ipm-shadow) 45%, transparent);
}
.ma3-ipm .ipm-bezel {
  position: relative;
  width: 100%;
  height: 100%;
  padding: calc(24 * var(--u));          /* bord en verre noir autour de l'écran */
  border-radius: calc(46 * var(--u));
  background: #050505;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);   /* reflet discret à la jonction métal / verre */
}
.ma3-ipm .ipm-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(20 * var(--u));
  background: #fff;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .15);   /* fin liseré entre le bord et l'écran */
}
.ma3-ipm .ipm-screen::after {            /* léger reflet sur la vitre, en diagonale */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 32%, rgba(255, 255, 255, 0) 33%, rgba(255, 255, 255, 0) 100%);
}
.ma3-ipm .ipm-screen picture,
.ma3-ipm .ipm-screen img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: top;
}
.js-reveal .ma3-ipm { opacity: 0; }
.ma3-ipm.ipm-1 { aspect-ratio: 5 / 2; }   /* 1 seule ligne : cadre moins haut (même marge au-dessus et en dessous) */

@media (max-width: 767px) {
  .ma3-ipm { aspect-ratio: 1 / 1; --pw: 64cqw; --gap: 6cqw; }
  .ma3-ipm.ipm-1 { aspect-ratio: 16 / 9; }
  .ma3-ipm .ipm-pad {                    /* ombre plus légère sur mobile, même direction */
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--ipm-frame) 40%, #fff),
      calc(-5 * var(--u)) calc(7 * var(--u)) calc(14 * var(--u)) color-mix(in srgb, var(--ipm-shadow) 30%, transparent),
      calc(-36 * var(--u)) calc(30 * var(--u)) calc(64 * var(--u)) color-mix(in srgb, var(--ipm-shadow) 35%, transparent);
  }
}

/* ==========================================================================
   IPHONE EN ÉVENTAIL (.ma3-fan)
   ========================================================================== */
.ma3-fan {
  --fan-bg: #cfcfcf;           /* fond du cadre */
  --fan-radius: 8px;           /* arrondi du cadre */
  --fan-frame: #2b2b2d;        /* couleur du contour métal des iPhone (titane foncé par défaut) */
  --fan-shadow: #14120e;       /* couleur des ombres (remplacée par la couleur ACF) */
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--fan-radius);
  background: var(--fan-bg);
}
.ma3-fan > img,
.ma3-fan > picture { position: absolute; opacity: 0; pointer-events: none; }   /* avant construction */
.ma3-fan .fan-fit { position: absolute; z-index: 1; left: 50%; top: 66%; width: 0; height: 0; }   /* décalé vers le bas : l'iPhone de devant sort du cadre */

/* Fond image (option ACF) */
.ma3-fan .fan-bg { position: absolute; inset: 0; z-index: 0; }
.ma3-fan .fan-bg picture,
.ma3-fan .fan-bg img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* Barre d'état sombre (option ACF) */
.ma3-fan.fan-dark { --fan-status-bg: #000; --fan-status-color: #fff; }

/* iPhone : contour métal (couleur choisie) > bord en verre noir > écran */
.ma3-fan .fan-ph {
  position: absolute;
  left: -190px;
  top: -411px;
  width: 380px;
  height: 822px;               /* proportions d'un iPhone (9 / 19,5) */
  padding: 5px;                /* épaisseur du contour métal */
  border-radius: 62px;
  /* Métal : plus clair en haut, plus sombre en bas, calculé à partir de la couleur choisie */
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--fan-frame) 55%, #fff) 0%,
    var(--fan-frame) 30%,
    color-mix(in srgb, var(--fan-frame) 80%, #000) 100%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--fan-frame) 40%, #fff),   /* fine arête claire sur l'extérieur */
    0 40px 70px rgba(0, 0, 0, .22), 0 10px 22px rgba(0, 0, 0, .18);
  will-change: transform;
}
.ma3-fan .fan-bezel {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 10px;               /* bord en verre noir autour de l'écran */
  border-radius: 57px;
  background: #050505;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);   /* reflet discret à la jonction métal / verre */
}
.ma3-fan .fan-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 49px;
  background: #fff;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .15);   /* fin liseré discret entre le contour et l'écran */
}
/* Barre d'état iOS : heure, Dynamic Island, réseau / wifi / batterie */
.ma3-fan .fan-status {
  position: relative;
  z-index: 2;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 30px 0 40px;
  background: var(--fan-status-bg, #fff);
  color: var(--fan-status-color, #000);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ma3-fan .fan-status::before {           /* Dynamic Island */
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 112px;
  height: 32px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
.ma3-fan .fan-icons { display: flex; align-items: center; gap: 6px; }
.ma3-fan .fan-icons svg { display: block; height: 12px; width: auto; fill: currentColor; }
.ma3-fan .fan-view {
  position: absolute;
  left: 0;
  right: 0;
  top: 50px;                             /* sous la barre d'état */
  bottom: 0;
  overflow: hidden;
}
.ma3-fan .fan-screen picture,
.ma3-fan .fan-screen img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: top;
}
.js-reveal .ma3-fan { opacity: 0; }

@media (max-width: 767px) {
  .ma3-fan { aspect-ratio: 6 / 5; }
  .ma3-fan .fan-fit { top: 50%; }      /* l'iPhone de devant sort aussi du cadre sur mobile */
  .ma3-fan .fan-ph { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fan-frame) 40%, #fff), 0 20px 36px rgba(0, 0, 0, .2); }   /* ombre plus légère sur mobile, arête claire conservée */
}

/* 5 iPhone qui se déploient (.ma3-fan.ma3-fan5) : même iPhone, mêmes réglages que l'éventail, autre mise en page */
.ma3-fan.ma3-fan5 { aspect-ratio: 16 / 10; }
.ma3-fan5 .fan-fit { top: 50%; }        /* iPhone centrés verticalement, entièrement dans le cadre */
@media (max-width: 767px) {
  .ma3-fan.ma3-fan5 { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   MOCKUP IPAD + IPHONE (.ma3-devices)
   ========================================================================== */
.ma3-devices {
  --dv-bg: #e4ddd4;            /* fond du cadre */
  --dv-radius: 8px;            /* arrondi du cadre */
  --dv-frame: #2b2b2d;         /* couleur des contours iPad et iPhone (remplacée par la couleur ACF) */
  --dv-shadow: #14120e;        /* couleur des ombres (remplacée par la couleur ACF) */
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--dv-radius);
  background: var(--dv-bg);
  container-type: inline-size;
}
.ma3-devices > img,
.ma3-devices > picture { position: absolute; opacity: 0; }   /* avant construction */

/* Fond image (option ACF) */
.ma3-devices .dv-bg { position: absolute; inset: 0; z-index: 0; }
.ma3-devices .dv-bg picture,
.ma3-devices .dv-bg img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* iPad (paysage) */
.ma3-devices .dv-ipad {
  position: absolute;
  z-index: 1;
  left: 10%;
  top: 13%;
  width: 60%;
  aspect-ratio: 1180 / 820;
  padding: 1.5cqw;
  border-radius: 3.2cqw;
  background: var(--dv-frame);
  /* Lumière venant de la droite : ombre décalée vers la gauche, comme l'éventail */
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--dv-frame) 40%, #fff),
    -0.4cqw 0.5cqw 1cqw color-mix(in srgb, var(--dv-shadow) 35%, transparent),
    -3cqw 2.5cqw 5.5cqw color-mix(in srgb, var(--dv-shadow) 45%, transparent);
  will-change: transform;
}
.ma3-devices .dv-ipad .dv-screen { border-radius: 1.7cqw; }

/* iPhone : contour métal (couleur choisie) > bord en verre noir > écran, comme l'éventail.
   Les tailles sont en « u » : 1u = 1 px d'un iPhone de 380 px de large, mis à l'échelle de --pw */
.ma3-devices .dv-phone {
  --pw: 19cqw;                            /* largeur de l'iPhone */
  --u: calc(var(--pw) / 380);
  position: absolute;
  z-index: 2;
  left: 63%;
  top: 20%;
  width: var(--pw);
  aspect-ratio: 380 / 822;                /* proportions d'un iPhone (9 / 19,5) */
  padding: calc(5 * var(--u));            /* épaisseur du contour métal */
  border-radius: calc(62 * var(--u));
  /* Métal : plus clair en haut, plus sombre en bas, calculé à partir de la couleur choisie */
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--dv-frame) 55%, #fff) 0%,
    var(--dv-frame) 30%,
    color-mix(in srgb, var(--dv-frame) 80%, #000) 100%);
  /* Fine arête claire, puis ombre venant de la droite */
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--dv-frame) 40%, #fff),
    calc(-5 * var(--u)) calc(6 * var(--u)) calc(12 * var(--u)) color-mix(in srgb, var(--dv-shadow) 35%, transparent),
    calc(-40 * var(--u)) calc(32 * var(--u)) calc(70 * var(--u)) color-mix(in srgb, var(--dv-shadow) 45%, transparent);
  will-change: transform;
}
.ma3-devices .dv-bezel {
  position: relative;
  width: 100%;
  height: 100%;
  padding: calc(10 * var(--u));           /* bord en verre noir autour de l'écran */
  border-radius: calc(57 * var(--u));
  background: #050505;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);   /* reflet discret à la jonction métal / verre */
}
.ma3-devices .dv-phone .dv-screen {
  border-radius: calc(49 * var(--u));
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .15);   /* fin liseré discret entre le contour et l'écran */
}

/* Barre d'état iOS : heure, Dynamic Island, réseau / wifi / batterie */
.ma3-devices.dv-dark { --dv-status-bg: #000; --dv-status-color: #fff; }   /* option ACF « barre sombre » */
.ma3-devices .dv-status {
  position: relative;
  z-index: 2;
  height: calc(50 * var(--u));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(4 * var(--u)) calc(30 * var(--u)) 0 calc(40 * var(--u));
  background: var(--dv-status-bg, #fff);
  color: var(--dv-status-color, #000);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: calc(16 * var(--u));
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}
.ma3-devices .dv-status::before {         /* Dynamic Island */
  content: "";
  position: absolute;
  top: calc(11 * var(--u));
  left: 50%;
  width: calc(112 * var(--u));
  height: calc(32 * var(--u));
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
.ma3-devices .dv-icons { display: flex; align-items: center; gap: calc(6 * var(--u)); }
.ma3-devices .dv-icons svg { display: block; height: calc(12 * var(--u)); width: auto; fill: currentColor; }

/* Écrans */
.ma3-devices .dv-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

/* Fenêtre dans laquelle la capture défile */
.ma3-devices .dv-view {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.ma3-devices .dv-phone .dv-view { top: calc(50 * var(--u)); }     /* sous la barre d'état de l'iPhone */

.ma3-devices .dv-view picture,
.ma3-devices .dv-view img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 100%;                       /* une capture courte remplit quand même l'écran */
  object-fit: cover;
  object-position: top;
  will-change: transform;
}
.js-reveal .ma3-devices { opacity: 0; }

@media (max-width: 767px) {
  .ma3-devices { aspect-ratio: 1 / 1; }
  .ma3-devices .dv-ipad { left: 5%; top: 13%; width: 82%; padding: 2cqw; border-radius: 4.4cqw; }
  .ma3-devices .dv-ipad .dv-screen { border-radius: 2.4cqw; }
  .ma3-devices .dv-ipad { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dv-frame) 40%, #fff), -1.2cqw 1.6cqw 3cqw color-mix(in srgb, var(--dv-shadow) 30%, transparent); }   /* ombre plus légère sur mobile, même direction */
  .ma3-devices .dv-phone {
    --pw: 30cqw;
    left: 61%;
    top: 27%;
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--dv-frame) 40%, #fff),
      calc(-3 * var(--u)) calc(4 * var(--u)) calc(8 * var(--u)) color-mix(in srgb, var(--dv-shadow) 30%, transparent),
      calc(-24 * var(--u)) calc(20 * var(--u)) calc(42 * var(--u)) color-mix(in srgb, var(--dv-shadow) 35%, transparent);
  }
}

/* Projets : témoignage lié */
.et_pb_section:has(.pj-testi-empty) { display: none !important; }        /* pas de témoignage : section masquée */
body:has(.pj-testi-empty) .ma3-projet { margin-bottom: clamp(48px, 6vw, 96px); }   /* pas de témoignage : grand espace sous la dernière image, avant la suite */
.ma3-testi:has(.testi-slide:only-child) .testi-progress { display: none; } /* un seul témoignage : pas de barre */

/* ==========================================================================
   MOBILE / TABLETTE (≤ 980px)
   ========================================================================== */
@media (max-width: 980px) {
  html,
  body {
    overflow-x: hidden;
  }
  /* iPhone : « hidden » (le nôtre + celui que Divi écrit en ligne quand la page a des animations) fait de body et de
     #page-container des zones qui défilent : au rechargement Safari s'y perd et on ne peut plus remonter jusqu'au logo.
     « clip » coupe pareil sans créer de zone de défilement. */
  @supports (overflow: clip) {
    html { overflow-x: hidden; overscroll-behavior-x: none; }   /* html reste en « hidden » : sur iPhone, « clip » n'y bloque pas le glissement latéral */
    body { overflow-x: clip !important; overflow-y: visible !important; display: flow-root; }
    #page-container { overflow: clip !important; display: flow-root; }   /* flow-root : la marge de la 1re section reste dedans (sinon tout descend de 29 px) */
  }
  body {
    position: relative;
  }
.ma3-track > .ma3-slide {
    padding: 22px !important;
}
.ma3-marquee--tags {
    --tag-gap: 8px;
}
.ma3-testi .testi-nav {
    width: 100% !important;
    align-self: stretch !important;
  }
  .ma3-testi .testi-nav .et_pb_code_inner {
    justify-content: center;
  }	
}

/* ==========================================================================
   MODE SOMBRE (html.ma3-dark) + SWITCH DU MENU
   ========================================================================== */
:root {
  --dm-bg: #0f0f10;              /* fond principal */
  --dm-surface: #1b1b1d;         /* fonds gris (sections, pastilles) */
  --dm-text: #f2f0ec;            /* texte */
  --dm-muted: rgba(242, 240, 236, .6);
  --dm-line: rgba(242, 240, 236, .18);
}
html.dm-pending body { opacity: 0; }                       /* le temps de repérer les couleurs (évite le flash) */

/* Couleurs globales Divi inversées */
html.ma3-dark {
  --gcid-primary-color: var(--dm-text);
  --gcid-secondary-color: var(--dm-bg);
  --gcid-heading-color: var(--dm-text);
  --gcid-body-color: var(--dm-text);
  --gcid-link-color: var(--dm-text);
  --gcid-p5ip98bem3: var(--dm-surface);
  --gcid-rz4lyrnbbd: #c2c3e6;   /* violet clair en mode sombre (au lieu de #ebedfc) */
  --gcid-s53uwlrvje: #c1dec8;   /* vert clair en mode sombre (au lieu de #ecf8ef) */
  --gcid-ofe1dxvrh0: #4a4a4c;
  --gris-barre: var(--dm-text);
  color-scheme: dark;
}
html.ma3-dark body,
html.ma3-dark #page-container,
html.ma3-dark #main-content,

/* Couleurs écrites en dur par Divi, repérées par le JS */
html.ma3-dark [data-dm-bg="w"] { background-color: var(--dm-bg) !important; }
html.ma3-dark [data-dm-bg="g"] { background-color: var(--dm-surface) !important; }
html.ma3-dark [data-dm-fg="d"] { color: var(--dm-text) !important; }
html.ma3-dark [data-dm-fg="m"] { color: var(--dm-muted) !important; }
html.ma3-dark [data-dm-bd="d"] { border-color: var(--dm-line) !important; }
html.ma3-dark [data-dm-bg="k"] { background-color: #000 !important; }           /* zones noires d'origine : restent noires */
html.ma3-dark [data-dm-fg="l"] { color: #fff !important; }                      /* textes blancs d'origine : restent blancs */

/* Logos : forcés en blanc */
html.ma3-dark .mq-card img,
html.ma3-dark .ma3-testi .testi-logo img { filter: brightness(0) invert(1) !important; }
html.ma3-dark .ma3-marquee { --mq-border: var(--dm-line); }

/* Composants MA3 */
html.ma3-dark .btn-expand.be-ready,
html.ma3-dark .btn-expand .be-ready { --be-bg: var(--dm-text); --be-color: #111; }
html.ma3-dark :is(.ma3-prev, .ma3-next, .testi-prev, .testi-next, .mst-prev, .mst-next) { background: var(--dm-text); color: #111; }   /* flèches des raisons : restent noires (fond violet clair) */
html.ma3-dark .btn-sweep--black { --bs-bg: var(--dm-text); --bs-border: var(--dm-text); --bs-text: #111; --bs-fill: #111; --bs-text-hover: var(--dm-text); }
html.ma3-dark .btn-sweep--outline { --bs-bg: transparent; --bs-border: var(--dm-text); --bs-text: var(--dm-text); --bs-fill: var(--dm-text); --bs-text-hover: #111; }
html.ma3-dark .ma3-marquee--tags { --tag-color: var(--dm-text); }
html.ma3-dark .pj-tags span { color: var(--dm-text); }

/* Barre qui s'allonge : blanche */
html.ma3-dark .line-grow .lg-bar { background: var(--dm-text) !important; }
html.ma3-dark .line-grow-blanc .lg-bar { background: #fff !important; }

/* Cartes expertises : numéro, titre et texte en blanc (sur la photo) */
html.ma3-dark .ma3-slide :is(.slide-num, .slide-title, .slide-desc, .et_pb_text),
html.ma3-dark .ma3-slide :is(.slide-num, .slide-title, .slide-desc, .et_pb_text) * { color: #fff !important; }

/* Icône des guillemets des témoignages : en blanc */
html.ma3-dark .ma3-testi .testi-card .et_pb_image img { filter: brightness(0) invert(1); }

/* Footer : pas de bordure claire entre ses sections */
html.ma3-dark .et-l--footer .et_pb_section { border-color: #000 !important; }

/* ----- Switch soleil / lune ----- */
/* Header : masqué jusqu'à son apparition un par un (JS) */
.js-reveal #ma3-nav > li,
.js-reveal .ma3-hd .ma3-logo img,
.js-reveal .ma3-burger,
.js-reveal .ma3-theme-mobile .ma3-theme-toggle { opacity: 0; }

/* 1re visite : « Testez notre mode sombre » + flèche vers le switch.
   Le bloc est collé sous le switch (top / right calculés en JS) ; tout est positionné depuis son bord droit */
.ma3-theme-hint {
  position: fixed;
  z-index: 100000;
  width: 0;
  height: 0;
  pointer-events: none;
  color: #000;
}
.ma3-theme-hint .th-arrow {
  position: absolute;
  top: 0;
  right: 18px;                           /* la pointe arrive sous la pastille du switch */
  width: 24px;
  height: 34px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ma3-theme-hint .th-arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }   /* masquée avant le tracé (sinon un point reste visible) */
.ma3-theme-hint .th-text {
  position: absolute;
  top: 18px;                             /* centré sur le trait horizontal de la flèche */
  right: 48px;
  display: flex;
  overflow: hidden;                      /* les lettres montent depuis une ligne invisible */
  padding: 2px 0;
  font-family: "Haffer-regular", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 20px;
  white-space: nowrap;
}
.ma3-theme-hint .th-text span { display: block; transform: translateY(110%); }

/* 1. la phrase monte d'un bloc  2. la flèche se dessine jusqu'au switch */
.ma3-theme-hint.is-in .th-text span { animation: th-word .45s cubic-bezier(.2, .8, .3, 1) forwards; }
.ma3-theme-hint.is-in .th-line { animation: th-draw .16s cubic-bezier(.5, 0, .3, 1) .25s forwards; }
.ma3-theme-hint.is-in .th-head { animation: th-draw .08s ease-out .4s forwards; }
.ma3-theme-hint.is-out { opacity: 0; transition: opacity .35s ease; animation: none; }
@keyframes th-word   { to { transform: none; } }
@keyframes th-draw   { from { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
/* « Réduire les animations » respecté (html.ma3-reduced, posé par le JS si RESPECT_REDUCED_MOTION) : message sans animation */
html.ma3-reduced .ma3-theme-hint.is-in, html.ma3-reduced .ma3-theme-hint.is-in * { animation: none !important; transform: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; }

.ma3-theme-li { display: inline-flex !important; align-items: center; }
.ma3-theme-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.ma3-theme-toggle .tt-track {
  position: relative;
  display: block;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .08);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
  transition: background-color .35s ease;
}
.ma3-theme-toggle .tt-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s cubic-bezier(.65, 0, .35, 1), background-color .35s ease, color .35s ease;
}
.ma3-theme-toggle svg { position: absolute; width: 14px; height: 14px; fill: currentColor; transition: opacity .25s ease, transform .35s ease; }
.ma3-theme-toggle .tt-moon { opacity: 0; transform: rotate(-60deg); }
.ma3-theme-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 999px; }
html.ma3-dark .ma3-theme-toggle .tt-track { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
html.ma3-dark .ma3-theme-toggle .tt-knob { transform: translateX(24px); background: var(--dm-text); color: #111; }
html.ma3-dark .ma3-theme-toggle .tt-sun { opacity: 0; transform: rotate(60deg); }
html.ma3-dark .ma3-theme-toggle .tt-moon { opacity: 1; transform: none; }
/* petite flèche noire « Nos créations en témoignent » (image arrow2.svg d'un module Image Divi) : blanche en mode sombre */
html.ma3-dark .et_pb_image img[src*="/arrow2.svg"] { filter: invert(1); }
/* changement de thème : couleurs appliquées d'un coup partout (pas de flash du menu), sauf le switch qui garde son animation */
html.dm-switch *:not(.ma3-theme-toggle):not(.ma3-theme-toggle *), html.dm-switch *::before, html.dm-switch *::after { transition-property: none !important; }
/* survol : le rond s'étire vers l'autre côté (on commence à pousser l'interrupteur) et montre déjà l'icône du mode suivant */
@media (hover: hover) {
  .ma3-theme-toggle .tt-knob { transition: transform .35s cubic-bezier(.65, 0, .35, 1), width .35s cubic-bezier(.65, 0, .35, 1), border-radius .35s ease, background-color .35s ease, color .35s ease; }
  .ma3-theme-toggle:hover .tt-knob { width: 31px; border-radius: 99px; }
  html.ma3-dark .ma3-theme-toggle:hover .tt-knob { transform: translateX(17px); }   /* en sombre, il s'étire vers la gauche */
  .ma3-theme-toggle:hover .tt-sun { opacity: 0; transform: rotate(60deg) scale(.6); }
  .ma3-theme-toggle:hover .tt-moon { opacity: 1; transform: none; }
  html.ma3-dark .ma3-theme-toggle:hover .tt-moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
  html.ma3-dark .ma3-theme-toggle:hover .tt-sun { opacity: 1; transform: none; }
}
/* Mobile : switch à gauche du menu burger, sur une pastille blanche comme le burger */
.ma3-theme-mobile {
  position: absolute;          /* défile avec la page, comme le logo */
  z-index: 100005;
  transform: translateY(-50%);
  line-height: 0;              /* aucune hauteur de ligne en plus : centrage exact */
}
.ma3-theme-mobile .ma3-theme-toggle { display: block; }
.ma3-theme-mobile[hidden] { display: none; }
.ma3-theme-mobile .tt-track { background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
html.ma3-dark .ma3-theme-mobile .tt-track { background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
html.ma3-dark .ma3-theme-mobile .tt-knob { background: #000; color: #fff; }   /* comme le burger : blanc et noir */



/* ==========================================================================
   RETOUR EN HAUT (mobile) : pastille blanche comme le burger, en bas à droite, après un bon bout de page
   ========================================================================== */
.ma3-totop { display: none; }
@media (max-width: 767px) {
  .ma3-totop {
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 9990;
    display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%;
    background: #fff; color: #000; box-shadow: 0 2px 14px rgba(0, 0, 0, .16); cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(14px);
    transition: opacity .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s;
    -webkit-tap-highlight-color: transparent;
  }
  .ma3-totop.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1); }
  .ma3-totop svg { width: 18px; height: 18px; }
  .ma3-totop:focus-visible { outline: 2px solid #9b72c6; outline-offset: 3px; }
  html.ma3-dark .ma3-totop { box-shadow: 0 2px 14px rgba(0, 0, 0, .4); }   /* reste blanc et noir, comme le burger */
}

/* ==========================================================================
   ÉTAPES [ma3_etapes] sur mobile : les 3 étapes à la suite (construit par ma3-custom.js), reliées par une ligne qui se remplit
   ========================================================================== */
.me-stack { display: none; }
@media (max-width: 767px) {
  .ma3-etapes.has-stack .me-grid { display: none; }
  .ma3-etapes.has-stack .me-stack { display: block; }
  .ms-step { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 0 0 44px 34px; }
  .ms-step:last-child { padding-bottom: 0; }
  .ms-step::before, .ms-step::after { content: ""; position: absolute; left: 9px; top: 26px; width: 2px; }
  .ms-step::before { bottom: 0; background: #ececf0; }
  .ms-step::after { height: calc((100% - 26px) * var(--p, 0)); background: #9b72c6; }
  .ms-step .ms-dot { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #d9d9e0; transition: box-shadow .4s; }
  .ms-step .ms-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9b72c6; transform: scale(0); transition: transform .4s cubic-bezier(.2, .9, .3, 1.4); }
  .ms-step.is-seen .ms-dot { box-shadow: inset 0 0 0 2px #9b72c6; }
  .ms-step.is-seen .ms-dot::after { transform: none; }
  .ms-label { display: flex; align-items: baseline; gap: 10px; margin: -1px 0 0; padding: 0 !important; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; font-size: 16px; line-height: 1.2; color: #000; }
  .ms-label .n { font-size: 12px; color: #9b72c6; }
  .ms-text { display: flex; flex-direction: column; gap: 14px; }
  .ms-text .ms-h { margin: 0; padding: 0 !important; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 22px; line-height: 1.15; color: #000; }
  .ms-text ul { display: flex; flex-direction: column; gap: 10px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
  .ms-text li { display: flex; gap: 10px; margin: 0; padding: 0; font-size: 16px; line-height: 1.4em; color: #000; }
  .ms-text > ul > li > svg { flex: none; box-sizing: content-box; width: 11px; height: 11px; margin: 0; padding: 5.5px; border-radius: 50%; background: rgba(155, 114, 198, .16); color: #9b72c6; }
  /* illustrations réduites : la scène 1 (cartes posées en %) garde une hauteur fixe, les scènes 2 et 3 prennent la hauteur de leur carte */
  .ms-step .me-visual { min-height: 340px; }
  .ms-step .me-visual[data-k="0"] .mv-kw { top: 5%; width: 80%; } .ms-step .me-visual[data-k="0"] .mv-page { top: 38%; }   /* « Titre SEO » reste visible sous la carte des recherches */
  .ms-step .me-visual[data-k="2"] .mv-center { padding: 22px 4%; }
  .ms-step .me-sc .mv-report { padding: 16px 14px; }
  .ms-step .me-sc .mv-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .ms-step .me-sc .mv-kpis p { justify-content: center; gap: 4px; padding: 9px 5px !important; font-size: 12px; }
  .ms-step .me-sc .mv-kpis i { flex: none; width: auto; height: auto; background: none; }   /* flèche seule, sans rond : le texte tient dans la pastille */
  .ms-step .me-visual[data-k="1"], .ms-step .me-visual[data-k="2"] { min-height: 0; }
  .ms-step .me-visual[data-k="1"] .me-sc, .ms-step .me-visual[data-k="2"] .me-sc { position: relative; }
  .ms-step .me-visual[data-k="1"] .mv-center, .ms-step .me-visual[data-k="2"] .mv-center { position: relative; inset: auto; padding: 26px 5%; }
  html.ma3-dark .ms-step::before { background: #2a2a2e; }
  html.ma3-dark .ms-step .ms-dot { background: var(--dm-bg, #111); box-shadow: inset 0 0 0 2px #3a3a40; }
}

/* [ma3_visibilite_points] : mêmes coches que les étapes ; [ma3_visibilite_visuel] : illustration seule (sur mobile, hauteur de la carte) */
.me-visual.me-solo, .me-visual.me-solo[data-k] { background: none; }
.me-visual.me-solo { width: 100%; }
.et_pb_module:has(> .et_pb_code_inner > .me-solo) { flex: 1 1 100%; width: 100%; min-width: 0; }   /* colonne Divi en flex horizontal : sinon le module se réduit à 0 (contenu en absolu) */   /* fond réglé dans Divi */
.ma3-visib-badge { display: inline-block; }
.ma3-visib-pts { display: flex; flex-direction: column; gap: 10px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.ma3-visib-pts li { display: flex; gap: 10px; margin: 0; padding: 0; font-size: 16px; line-height: 1.4em; color: #000; }
.ma3-visib-pts li svg { flex: none; box-sizing: content-box; width: 11px; height: 11px; margin: 0; padding: 5.5px; border-radius: 50%; background: rgba(155, 114, 198, .16); color: #9b72c6; }
@media (max-width: 767px) {
  .me-solo { min-height: 0; }
  .me-solo .me-sc { position: relative; }
  .me-solo .mv-center { position: relative; inset: auto; padding: 26px 5%; }
  .me-solo .mv-report { padding: 16px 14px; }
  .me-solo .vc-gauges { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .me-solo .mv-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .me-solo .mv-kpis p { flex-direction: column; gap: 5px; padding: 9px 4px !important; font-size: 12px; text-align: center; }
  .me-solo .mv-kpis i { flex: none; width: auto; height: auto; background: none; }
}

/* Illustrations : aucun texte sous 12 px. Ajustements pour que tout tienne à cette taille */
.me-sc .mv-bots { flex-wrap: wrap; }
@media (max-width: 767px) {
  .ms-step .me-sc .vc-gauges { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }   /* jauges en 2 × 2 : libellés lisibles */
  .ms-step .me-sc .mv-kpis p { flex-direction: column; gap: 5px; padding: 9px 4px !important; text-align: center; }   /* flèche sous le libellé */
}

/* Texte réel des titres animés mot par mot (voir srText dans ma3-custom.js) : invisible, mais lu par les lecteurs d'écran */
.ma3-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ==========================================================================
   MEGA MENU SERVICES (ACF : onglet « Menu services »). Ordinateur : panneau liste + aperçu. Mobile : accordéon dans le menu burger
   ========================================================================== */
.ma3-mega { display: none; }
#ma3-nav .mm-chev { display: inline-block; width: 10px; height: 10px; margin-left: 6px; vertical-align: 0; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
#ma3-nav a[aria-expanded="true"] .mm-chev { transform: rotate(180deg); }
@media (min-width: 981px) {
  #ma3-header .ma3-mega { display: block; position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: #fff; border-top: 1px solid #e3e3e6; box-shadow: 0 40px 60px -40px rgba(0, 0, 0, .25); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
  #ma3-header .ma3-mega:not(.is-on) { pointer-events: none; }                      /* fermé : le panneau invisible ne doit pas capter les clics de la page */
  #ma3-header .ma3-mega:not(.is-on) .mm-pv { visibility: hidden; }                  /* l'aperçu actif est en « visible » : il ressortait du panneau masqué */
  #ma3-header .ma3-mega.is-on { opacity: 1; visibility: visible; transition: opacity .3s ease; }
  .mm-list li, .mm-prev { opacity: 0; transform: translateY(10px); }
  .ma3-mega.is-on .mm-list li, .ma3-mega.is-on .mm-prev { opacity: 1; transform: none; transition: opacity .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(.08s + var(--i, 0) * .06s); }
  .mm-list li:nth-child(2) { --i: 1; } .mm-list li:nth-child(3) { --i: 2; } .mm-list li:nth-child(4) { --i: 3; } .mm-list li:nth-child(5) { --i: 4; } .mm-list li:nth-child(6) { --i: 5; } .mm-list li:nth-child(7) { --i: 6; } .mm-list li:nth-child(8) { --i: 7; } .mm-prev { --i: 4; }
  .mm-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; width: var(--gvid-lq65kpm3od, 90%); max-width: 1440px; margin: 0 auto; padding: 26px 0 52px; color: #000; font-family: "Haffer-regular", Helvetica, Arial, sans-serif; }
  .mm-list { margin: 0 !important; padding: 0 !important; list-style: none !important; }
  .mm-list li { margin: 0; padding: 0; }
  #ma3-header .mm-row { display: flex; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px solid #e3e3e6; color: #6e6e6e; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 26px; line-height: 1.15; cursor: pointer; opacity: 1; transition: color .25s, padding .35s cubic-bezier(.2, .8, .2, 1); }
  #ma3-header .mm-row.is-on { padding-left: 10px; color: #000; }
  .mm-row:focus-visible { outline: 2px solid #9b72c6; outline-offset: 3px; }
  .mm-n { font-size: 12px; color: #9b72c6; }
  .mm-prev { display: grid; }
  .mm-pv { grid-area: 1 / 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
  .mm-pv.is-on { opacity: 1; visibility: visible; transition: opacity .3s ease; }
  .mm-pic { position: relative; min-height: 300px; border-radius: 8px; overflow: hidden; background: #f5f5f5; }
  #ma3-header .mm-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
  .mm-tx { display: flex; flex-direction: column; gap: 16px; }
  .mm-tx p { margin: 0; padding: 0; font-size: 16px; line-height: 1.3; color: #000; }
  .mm-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
  .mm-tags li { padding: 12px 14px; border-radius: 99px; background: #f5f5f5; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1; color: #000; }
  #ma3-header.mm-open { background-color: #fff !important; border-bottom-color: transparent !important; transition: none; box-shadow: none; }   /* header et panneau forment un seul bloc */
  #ma3-header.mm-open .ma3-mega { border-top-color: transparent; }
  html.ma3-dark #ma3-header.mm-open { background-color: var(--dm-bg) !important; }
  .ma3-mega-veil { position: fixed; inset: 0; z-index: 99980; background: rgba(0, 0, 0, .35); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
  .ma3-mega-veil.is-on { opacity: 1; visibility: visible; transition: opacity .3s ease; }
  html.ma3-dark #ma3-header .ma3-mega { background: var(--dm-bg); border-top-color: #2a2a2e; }
  html.ma3-dark #ma3-header .mm-row { border-color: #2a2a2e; color: #a8a8a8; }
  html.ma3-dark #ma3-header .mm-row.is-on, html.ma3-dark .mm-in, html.ma3-dark .mm-tx p { color: var(--dm-text); }
  html.ma3-dark .mm-tags li { background: var(--dm-surface); color: var(--dm-text); }
  html.ma3-dark .mm-pic { background: var(--dm-surface); }
}
.ma3-mega-veil { pointer-events: auto; }
@media (max-width: 980px) {
  .ma3-mega-veil { display: none; }
  #ma3-drawer .mm-sub { display: grid; grid-template-rows: 0fr; margin: 0; padding: 0; transition: grid-template-rows .4s cubic-bezier(.2, .8, .2, 1); }
  #ma3-drawer .mm-sub.is-on { grid-template-rows: 1fr; }
  #ma3-drawer .mm-sub > ul { overflow: hidden; margin: 0; padding: 0; list-style: none; }
  #ma3-drawer .mm-sub li { padding: 0; list-style: none; }
  #ma3-drawer .mm-sub a, #ma3-drawer .mm-sub span.mm-off { display: block; padding: 8px 0; font-size: 18px; line-height: 1.2; }
  #ma3-drawer .mm-sub span.mm-off { opacity: .55; }
  #ma3-drawer .mm-chev { display: inline-block; width: 12px; height: 12px; margin-left: 8px; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
  #ma3-drawer a[aria-expanded="true"] .mm-chev { transform: rotate(180deg); }
}

/* ==========================================================================
   HEADER [ma3_header] (module Code du header du Theme Builder)
   ========================================================================== */
.et-l--header:has(#ma3-header) { position: relative; z-index: 99990; }
.et-l--header:has(#ma3-header) .et_builder_inner_content { position: static !important; }
.et-l--header:has(#ma3-header) .et_pb_section, .et-l--header:has(#ma3-header) .et_pb_row, .et-l--header:has(#ma3-header) .et_pb_column, .et-l--header:has(#ma3-header) .et_pb_module, .et-l--header:has(#ma3-header) .et_pb_code_inner { margin: 0 !important; padding: 0 !important; background: none !important; position: static !important; }   /* le header est en position fixe : ses conteneurs Divi ne prennent aucune place */
body:has(#ma3-header) .ma3-hero.hero-svc { padding-top: 94px; }                        /* Divi l'ajoutait pour son header transparent */
body:has(#ma3-header).single-project .et_pb_section_0_tb_body { margin-top: 93px; }
body:has(#ma3-header) #main-content > .container:first-child { padding-top: 153px; }                         /* pages sans section Divi en tête (articles, biens, archives) : 58 px de Divi + hauteur du header */
@media (max-width: 980px) { body:has(#ma3-header) #main-content > .container:first-child { padding-top: 119px; } }
.ma3-hd { position: fixed; top: 0; left: 0; right: 0; z-index: 99990; background: #fff; border-bottom: 1px solid transparent; transition: background-color .4s ease-in-out, border-color .4s ease 0s; }
.admin-bar .ma3-hd { top: 32px; }
.ma3-hd.is-stuck { border-bottom-color: #000; transition: background-color .4s ease-in-out, border-color .4s ease .6s; }
.ma3-hd-in { display: flex; align-items: center; justify-content: space-between; width: var(--gvid-lq65kpm3od, 90%); max-width: 1440px; height: 95px; margin: 0 auto; transition: height .4s ease-in-out; }
.ma3-hd.is-stuck .ma3-hd-in { height: 61px; }
.ma3-logo { display: block; line-height: 0; }
.ma3-logo img { display: block; width: 85px; height: 59px; transition: width .4s ease-in-out, height .4s ease-in-out; }
.ma3-hd.is-stuck .ma3-logo img { width: 56px; height: 39px; }
#ma3-nav { display: flex; align-items: center; gap: 34px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
#ma3-nav li { margin: 0; padding: 0; }
#ma3-nav a { position: relative; display: inline-block; padding: 8px 0; color: #000; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1; }
#ma3-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
#ma3-nav a:hover::after, #ma3-nav a[aria-expanded="true"]::after, #ma3-nav a.is-current::after { transform: scaleX(1); }   /* is-current : page en cours (ou expertise / projet, sur l'élément parent) */
#ma3-nav a:focus-visible, .ma3-logo:focus-visible { outline: 2px solid #9b72c6; outline-offset: 3px; }
#ma3-nav .ma3-theme-li { display: flex !important; }
.ma3-burger { position: relative; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .16); cursor: pointer; }
.ma3-burger { display: none; position: fixed; top: 5px; right: calc(2.5% + 4px); z-index: 100020; }
.ma3-burger span { position: absolute; left: 13px; right: 13px; top: 50%; height: 2px; background: #000; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.ma3-burger span:first-child { transform: translateY(-5px); } .ma3-burger span:last-child { transform: translateY(3px); }
.ma3-burger[aria-expanded="true"] span:first-child { transform: translateY(-1px) rotate(45deg); }
.ma3-burger[aria-expanded="true"] span:last-child { transform: translateY(-1px) rotate(-45deg); }
.ma3-burger:focus-visible { outline: 2px solid #9b72c6; outline-offset: 3px; }
.ma3-drawer { display: none; }
html.ma3-noscroll { overflow: hidden !important; }
html.ma3-dark .ma3-hd { background: var(--dm-bg); }
html.ma3-dark .ma3-hd.is-stuck { border-bottom-color: var(--dm-line); }
html.ma3-dark #ma3-nav a { color: var(--dm-text); }
html.ma3-dark .ma3-logo img { filter: brightness(0) invert(1); }
@media (max-width: 980px) {
  .ma3-hd { position: absolute; }                         /* mobile : le logo défile avec la page, seul le burger reste fixe */
  .ma3-hd.is-stuck { border-bottom-color: transparent; }
  .ma3-hd-in, .ma3-hd.is-stuck .ma3-hd-in { box-sizing: border-box; width: 95%; height: 61px; padding-left: 4px; }   /* même marge que le burger à droite */
  .ma3-logo img, .ma3-hd.is-stuck .ma3-logo img { width: 69px; height: 48px; }
  .ma3-hd nav { display: none; }
  .ma3-burger { display: block; transition: top .3s ease; }
  .ma3-hd.is-stuck ~ .ma3-burger { top: 16px; }             /* au défilement : décollé du haut de l'écran */
  .ma3-drawer { position: fixed; inset: 0; z-index: 100010; display: block; padding: 0 2.5% 40px; overflow-y: auto; background: #fff; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
  .ma3-drawer.is-on { opacity: 1; visibility: visible; transition: opacity .3s ease; }
  .md-top { display: flex; align-items: center; height: 61px; margin-bottom: 18px; padding-left: 4px; }   /* même hauteur que le header : le logo ne bouge pas */
  .md-list > li { opacity: 0; transform: translateY(10px); }
  .ma3-drawer.is-on .md-list > li { opacity: 1; transform: none; transition: opacity .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(.1s + var(--i, 0) * .07s); }
  .md-list > li:nth-child(2) { --i: 1; } .md-list > li:nth-child(3) { --i: 2; } .md-list > li:nth-child(4) { --i: 3; } .md-list > li:nth-child(5) { --i: 4; } .md-list > li:nth-child(6) { --i: 5; }
  .md-list { margin: 0 !important; padding: 0 2.5% !important; list-style: none !important; }
  .md-list > li { border-bottom: 1px solid #e3e3e6; }
  .md-list > li > a { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; color: #000; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 26px; line-height: 1.15; }
  .md-list .mm-sub a, .md-list .mm-sub span.mm-off { color: #000; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; }
  .md-list .mm-sub li:last-child > * { padding-bottom: 20px; }
  html.ma3-dark .ma3-drawer { background: var(--dm-bg); }
  html.ma3-dark .md-list > li { border-color: #2a2a2e; }
  html.ma3-dark .md-list > li > a, html.ma3-dark .md-list .mm-sub a, html.ma3-dark .md-list .mm-sub span.mm-off { color: var(--dm-text); }
}

/* ==========================================================================
   ANIMATION DU HERO, PAGE STRATÉGIE [ma3_strategie_synchro] (même moteur que [ma3_hero_synchro])
   ========================================================================== */
.ms-card { width: 100%; padding: 16px 18px; border-radius: 14px; background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .3); font-size: 13px; line-height: 1.3; color: #000; }
.ms-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ms-head p { margin: 0; padding: 0 !important; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.2; }
.ms-head span { color: #6e6e6e; font-size: 12px; }
.ms-head b { font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; color: #9b72c6; }
/* 1. claire */
.ms-words { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ms-board { padding: 20px 22px 22px; }
.ms-w { position: relative; padding: 12px 18px; border-radius: 99px; background: #f4f4f4; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1; color: #000; }
.ms-w i { position: absolute; left: 12px; right: 12px; top: 50%; height: 1.5px; background: #000; transform: scaleX(0); transform-origin: left; }
/* 2. unique */
.ms-plot { position: relative; height: 210px; margin-top: 10px; }
.ms-ax { position: absolute; background: #e3e3e6; }
.ms-ax.x { left: 0; right: 0; top: 50%; height: 1px; }
.ms-ax.y { top: 0; bottom: 0; left: 50%; width: 1px; }
.ms-lb { position: absolute; padding: 2px 6px; background: #fff; color: #6e6e6e; font-size: 12px; line-height: 1.2; }
.ms-lb.t { top: 0; left: 50%; transform: translateX(-50%); } .ms-lb.b { bottom: 0; left: 50%; transform: translateX(-50%); }
.ms-lb.l { left: 0; top: 50%; transform: translateY(-50%); padding-left: 0; } .ms-lb.r { right: 0; top: 50%; transform: translateY(-50%); padding-right: 0; }
.ms-plot .ms-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #d9d9e0; }
.ms-you { position: absolute; z-index: 2; width: 22px; height: 22px; border-radius: 50%; background: #9b72c6; box-shadow: 0 0 0 6px rgba(155, 114, 198, .2); }
.ms-trail { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ms-trail path { fill: none; stroke: #9b72c6; stroke-width: .7; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ms-tag { position: absolute; z-index: 3; left: 76%; top: 24%; margin: -40px 0 0 -48px; padding: 6px 10px; border-radius: 99px; background: #9b72c6; color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1; white-space: nowrap; }
/* 3. évidente */
.ms-one { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.ms-phrase small { display: block; margin-bottom: 8px; color: #9b72c6; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1; }
.ms-phrase p { margin: 0; padding: 0 !important; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: clamp(18px, 1.75vw, 24px); line-height: 1.2; }
.ms-sups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ms-sup { position: relative; display: flex; flex-direction: column; gap: 7px; min-height: 92px; padding: 12px; border-radius: 12px; background: #fff; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .3); }
.ms-sup p { margin: 0 0 3px; padding: 0 !important; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1.2; }
.ms-sup i { display: block; height: 6px; border-radius: 3px; background: #ebedfc; }
.ms-sup i + i { width: 66%; }
.ms-sup em { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #ecf8ef; color: #65a869; }
.ms-sup em svg { width: 11px; height: 11px; }
@media (max-width: 767px) {
  .ms-card, .ms-board { padding: 12px 14px; }
  .ms-words { gap: 7px; margin-top: 12px; }
  .ms-w { padding: 7px 11px; font-size: 13px; }
  .ms-plot { height: 150px; }
  .ms-sup { min-height: 76px; padding: 9px; }
  .ms-sups { gap: 6px; }
}

/* ==========================================================================
   DISCUSSION [ma3_discussion] : fond, arrondi et marges du bloc réglés dans Divi
   ========================================================================== */
.ma3-chat { display: flex; flex-direction: column; gap: 10px; }
.mc-b { margin: 0; padding: 10px 14px !important; font-family: "Haffer-regular", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.35; }
.mc-q { align-self: flex-end; max-width: 88%; border-radius: 14px 14px 3px 14px; background: #000; color: #fff; }
.mc-r { align-self: flex-start; max-width: 88%; border-radius: 14px 14px 14px 3px; background: #fff; color: #000; }
.mc-r small { display: block; margin-bottom: 2px; color: #9b72c6; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.2; }
.mc-b { box-shadow: 0 14px 28px -18px rgba(40, 30, 90, .3); }   /* petite ombre portée : un peu de profondeur sur le fond */
.js-reveal .mc-b { opacity: 0; }
html.ma3-dark .mc-q { background: var(--dm-text); color: #111; }
html.ma3-dark .mc-r { background: var(--dm-surface); color: var(--dm-text); }

/* Étapes sans visuel [ma3_etapes visuel="non"] : mêmes onglets, badge et coches que Site internet */
.ma3-etapes--solo .me-grid { grid-template-columns: 1fr; }
.ma3-etapes--solo .me-tabs { flex-wrap: wrap; border-radius: 100px; }
.ma3-etapes--solo .me-tabs .n { color: #9b72c6; }   /* numéro en violet MA3, y compris sur l'onglet actif (pastille noire) */
.me-cum { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #e3e3e6; }
.me-cum small { color: #000; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.2; }
.me-cum small span + span { display: none; }
.me-cum ul { display: flex; flex-direction: row !important; flex-wrap: wrap; gap: 8px 20px !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.ma3-etapes .me-cum li { display: inline-flex; align-items: center; gap: 7px; color: #a0a0a8; font-size: 15px; line-height: 1.2; transition: color .4s; }
.ma3-etapes .me-cum li svg { flex: none; width: 13px; height: 13px; margin: 0 -20px 0 0; color: #65a869; opacity: 0; transition: opacity .4s, margin .4s; }
.ma3-etapes .me-cum li.done { color: #000; } .ma3-etapes .me-cum li.done svg { margin-right: 0; opacity: 1; }
html.ma3-dark .me-cum { border-color: #2a2a2e; }
html.ma3-dark .me-cum small { color: #a8a8a8; }
html.ma3-dark .ma3-etapes .me-cum li { color: #777; }
html.ma3-dark .ma3-etapes .me-cum li.done { color: var(--dm-text); }
@media (max-width: 767px) {                            /* étapes à la suite : seule la décision de l'étape */
  .me-cum { margin-top: 0; }
  .ma3-etapes .me-cum li:not(.now) { display: none; }
  .me-cum small span { display: none; } .me-cum small span + span { display: inline; }
}

/* Animation d'entrée « mb-rise » : garde-la, elle sert aux petits écrans des cartes ([ma3_pres_cartes], [ma3_symptomes]) */
@keyframes mb-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ===== Hero Identité [ma3_logo_anim] : fond et arrondi à régler dans Divi ===== */
.ma3-logo-anim { position: relative; container-type: inline-size; width: 100%; aspect-ratio: 4 / 3; max-height: 480px; overflow: hidden; color: #000; }
.mla-lg { position: absolute; left: 50%; top: 50%; width: min(300px, 42cqw); transform: translate(-50%, -50%); overflow: visible; }
.mla-ln { fill: none; stroke: currentColor; stroke-width: .55; stroke-linejoin: round; }
.mla-fl { fill: currentColor; opacity: 0; }
.mla-hl { stroke: #9b72c6; stroke-width: .4; opacity: 0; }
.mla-hn { fill: #9b72c6; opacity: 0; }
.mla-aa { position: absolute; left: 6%; top: 50%; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: clamp(40px, 9cqw, 110px); line-height: 1; letter-spacing: -.03em; transform: translateY(-50%); opacity: 0; }
.mla-pal { position: absolute; right: 6%; top: 50%; display: flex; flex-direction: column; gap: clamp(6px, .9cqw, 10px); transform: translateY(-50%); }
.mla-pal i { display: block; width: clamp(26px, 5.2cqw, 62px); aspect-ratio: 1; border-radius: 22%; background: #9b72c6; transform: scale(0); }
.mla-pal i + i { background: #000; } .mla-pal i + i + i { background: #ecf8ef; }
.mla-cur { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; opacity: 0; }
.mla-cur svg { display: block; width: 24px; height: 24px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.mla-cur span { position: absolute; left: 20px; top: 20px; padding: 6px 10px; border-radius: 99px; background: #9b72c6; color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1; white-space: nowrap; }
@media (max-width: 767px) { .mla-cur span { font-size: 12px; } }

/* Classe à poser sur un module Divi : centre son texte et ses titres */
.ma3-centre, .ma3-centre h1, .ma3-centre h2, .ma3-centre h3, .ma3-centre p, .ma3-rouleau:not(.ma3-gauche) h1 { text-align: center !important; }
.ma3-centre .h1-slot, .ma3-rouleau .h1-slot { text-align: left; }             /* largeur suivie par le JS : la ligne reste centrée sur le mot affiché */
.ma3-centre .h1-slot-list, .ma3-rouleau .h1-slot-list { width: max-content; }
.ma3-rouleau .h1-slot-list span { color: var(--slot-accent); }   /* tous les mots du rouleau en violet, y compris le premier */
.ma3-rouleau h1[data-roll-once] .h1-slot-list span:last-child { color: inherit; }   /* un seul passage : la phrase finit toute en noir */
.ma3-centre .roll-prog { justify-content: center; }
@media (min-width: 768px) { .ma3-rouleau:not(.ma3-gauche) h1 { position: relative; left: 50%; width: max-content; transform: translateX(-50%); } }   /* reste centré si la ligne dépasse la colonne */

/* ===== Anatomie d'une identité [ma3_anatomie] ===== */
.ma3-anatomie { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.an-r { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid #e3e3e6; color: #000; }
.an-r:first-child { border-top: 1px solid #e3e3e6; }
/* entrée (ma3-custom.js) : le trait du bas de chaque ligne se dessine de gauche à droite, puis numéro, titre et texte */
.ma3-anatomie-tb .an-r { position: relative; }
.js-reveal .ma3-anatomie-tb .an-r > * { opacity: 0; }
.js-reveal .ma3-anatomie-tb .an-r { border-bottom-color: transparent; }
.js-reveal .ma3-anatomie-tb .an-r:first-child { border-top-color: transparent; }
.js-reveal .ma3-anatomie-tb .an-r::after, .js-reveal .ma3-anatomie-tb .an-r:first-child::before { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: #e3e3e6; transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.4, 0, .2, 1); }
.js-reveal .ma3-anatomie-tb .an-r::after { bottom: -1px; }
.js-reveal .ma3-anatomie-tb .an-r:first-child::before { top: -1px; }
.js-reveal .ma3-anatomie-tb .an-r.is-in::after, .js-reveal .ma3-anatomie-tb .an-r.is-in:first-child::before { transform: none; }
html.ma3-dark.js-reveal .ma3-anatomie-tb .an-r::after, html.ma3-dark.js-reveal .ma3-anatomie-tb .an-r:first-child::before { background: #2a2a2e; }
.an-rn { color: #9b72c6; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1; }
.an-r h3 { margin: 0; padding: 0 !important; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.15; color: inherit; }
.an-r p { margin: 0; padding: 0 !important; font-size: 16px; line-height: 1.4; color: #000; }
html.ma3-dark .an-r, html.ma3-dark .an-r:first-child { border-color: #2a2a2e; color: var(--dm-text); }
html.ma3-dark .an-r p { color: var(--dm-text); }
@media (max-width: 767px) { .an-r { grid-template-columns: 34px minmax(0, 1fr); gap: 9px; padding: 18px 0; } .an-r p { grid-column: 2; } }
.an-list { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.an-it { position: relative; padding: 0; border-bottom: 1px solid #e3e3e6; }
.an-it:first-child { border-top: 1px solid #e3e3e6; }
.an-it h3 { margin: 0; padding: 0 !important; font-size: inherit; line-height: inherit; }
.an-btn { display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 18px 0; border: 0; background: none; color: #6e6e6e; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; text-align: left; cursor: pointer; transition: color .3s; }
.an-btn .n { font-size: 13px; color: #9b72c6; }
.an-btn:hover, .an-btn[aria-expanded="true"] { color: #000; }
.an-p { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s ease, visibility .4s; }
.an-it.is-on .an-p { grid-template-rows: 1fr; visibility: visible; }
.an-p p { min-height: 0; margin: 0; padding: 0 !important; overflow: hidden; color: #222; font-size: 16px; line-height: 1.4; }
.an-it.is-on .an-p p { padding-bottom: 18px !important; }
.an-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #9b72c6; transform: scaleX(0); transform-origin: left; }
.an-view { position: relative; min-height: 480px; border-radius: 16px; overflow: hidden; color: #000; }
.an-sc { position: absolute; inset: 0; display: grid; place-items: center; padding: 8%; background: #ebedfc; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
.an-sc[data-k="1"] { background: #f5f5f5; } .an-sc[data-k="2"] { background: #f5f5f5; } .an-sc[data-k="3"] { background: #fdf0e6; }
.an-sc.is-on { opacity: 1; visibility: visible; }
.an-sc.is-on > * > * { animation: an-rise .55s cubic-bezier(.2, .8, .2, 1) both; }
.an-sc.is-on > * > *:nth-child(2) { animation-delay: .08s; } .an-sc.is-on > * > *:nth-child(3) { animation-delay: .16s; } .an-sc.is-on > * > *:nth-child(4) { animation-delay: .24s; }
@keyframes an-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.an-lg { display: block; width: 100%; height: auto; }
.an-s-logo { display: flex; flex-direction: column; align-items: center; gap: 40px; width: min(280px, 70%); }
.an-tailles { display: flex; align-items: flex-end; gap: 22px; }
.an-s-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: min(360px, 100%); }
.an-s-col p { margin: 0; padding: 12px !important; border-radius: 14px; background: #fff; box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .14); font-size: 13px; line-height: 1.2; }
.an-s-col i { display: block; aspect-ratio: 16 / 10; margin-bottom: 10px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.an-s-col b { display: block; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; font-size: 15px; }
.an-s-col span { color: #6e6e6e; }
.an-s-ty { text-align: center; }
.an-s-ty b { display: block; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; font-size: clamp(110px, 13vw, 180px); line-height: 1; letter-spacing: -.03em; }
.an-s-ty p { margin: 12px 0 0; padding: 0 !important; font-size: 18px; line-height: 1.2; }
.an-s-ty small { display: inline-block; margin-top: 16px; padding: 7px 12px; border-radius: 99px; background: #9b72c6; color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1; }
.an-s-photo { position: absolute; inset: 0; }
.an-s-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.an-sc.is-on .an-s-photo > * { animation: none; }
.an-s-fo { position: absolute; inset: -8%; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 8px; }
.an-s-fo i { display: grid; place-items: center; min-height: 0; border-radius: 14px; background: #9b72c6; color: #fff; }
.an-s-fo i:nth-child(3n + 2) { background: #fff; color: #9b72c6; } .an-s-fo i:nth-child(3n) { background: #000; color: #ecf8ef; }
.an-s-fo svg { width: 64%; }
.an-s-fo i:nth-child(2n) svg { transform: rotate(90deg); }
.an-sc.is-on .an-s-fo > * { animation-duration: .4s; }
.an-s-ch { position: relative; width: min(330px, 86%); aspect-ratio: 1 / 1; }
.an-pg { position: absolute; display: flex; flex-direction: column; gap: 8px; width: 56%; aspect-ratio: 3 / 4; padding: 14px; border-radius: 8px; background: #fff; box-shadow: 0 22px 34px -24px rgba(0, 0, 0, .35); }
.an-pg:nth-child(1) { left: 0; top: 4%; transform: rotate(-5deg); } .an-pg:nth-child(2) { left: 24%; top: 12%; z-index: 1; transform: rotate(2deg); } .an-pg:nth-child(3) { right: 0; top: 2%; transform: rotate(6deg); }
.an-pg.v { background: #9b72c6; color: #fff; }
.an-pg .an-lg { width: 46%; margin-bottom: auto; }
.an-pg small { margin-bottom: auto; color: inherit; font-size: 12px; line-height: 1.1; }
.an-pg em { display: block; height: 7px; border-radius: 4px; background: #ececf0; }
.an-pg u { display: block; flex: none; height: 22%; border-radius: 6px; background: #fff; } .an-pg u + u { background: #ecf8ef; } .an-pg u + u + u { background: #000; }
.an-sc.is-on .an-s-ch > * { animation-name: an-fade; }
@keyframes an-fade { from { opacity: 0; } to { opacity: 1; } }
html.ma3-dark .an-it, html.ma3-dark .an-it:first-child { border-color: #2a2a2e; }
html.ma3-dark .an-btn { color: #a8a8a8; } html.ma3-dark .an-btn:hover, html.ma3-dark .an-btn[aria-expanded="true"] { color: var(--dm-text); }
html.ma3-dark .an-p p { color: var(--dm-text); }
@media (max-width: 767px) {
  .ma3-anatomie { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .an-view { order: -1; min-height: 300px; }
  .an-s-logo { gap: 24px; width: 180px; }
  .an-s-col { gap: 10px; } .an-s-col p { padding: 9px !important; } .an-s-col i { aspect-ratio: 16 / 7; margin-bottom: 7px; }
  .an-s-ch { width: 230px; }
}
@media (max-width: 767px) { .ma3-rouleau h1 br, .ma3-hero.hero-svc .hero-title h1 br { display: none; } }   /* le retour à la ligne du titre ne sert que sur ordinateur */


/* ==========================================================================
   HERO PRÉSENTATION COMMERCIALE [ma3_presentation_anim] — fond, arrondi et marges réglés dans Divi
   ========================================================================== */
.ma3-pres-anim { position: relative; container-type: inline-size; width: 100%; padding: 6% 7%; overflow: hidden; color: #000; font-family: "Haffer-regular", Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1.3; }
.mpa-card { border-radius: 14px; background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .3); }
.mpa-sc { position: relative; width: 91%; padding: 10px; }
.mpa-sl { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #f6f6f8; }
.mpa-lb, .mpa-pg { position: absolute; color: #6e6e6e; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1; }
.mpa-lb { left: 5%; top: 8%; }
.mpa-pg { right: 5%; bottom: 8%; }
.mpa-big { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.mpa-m { display: block; overflow: hidden; padding-bottom: .06em; }
.mpa-big b { display: block; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; font-size: min(16cqw, 104px); line-height: 1; letter-spacing: -.04em; color: #9b72c6; }
.mpa-big small { display: block; margin-top: 8px; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: clamp(13px, 2.6cqw, 17px); line-height: 1.2; }
.mpa-chip { position: absolute; right: 5%; top: 7%; padding: 7px 11px; border-radius: 99px; background: #9b72c6; color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1; }
.mpa-nt { position: relative; z-index: 2; width: 70%; margin: -9% 0 0 auto; padding: 14px 16px; }   /* chevauche le bas de l'écran */
.mpa-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.2; }
.mpa-wv { display: inline-flex; align-items: center; gap: 3px; height: 14px; }
.mpa-wv i { width: 3px; height: 100%; border-radius: 2px; background: #9b72c6; transform: scaleY(.25); }
.mpa-txt { font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.45; color: #c4c4ca; }
.mpa-txt span { transition: color .2s; }
.mpa-txt span.on { color: #000; }
.mpa-txt .mpa-key { background: linear-gradient(#9b72c6, #9b72c6) no-repeat 0 100% / 0% 2px; transition: background-size .45s cubic-bezier(.4, 0, .2, 1); }   /* soulignement violet qui se trace */
.mpa-txt .mpa-key.hl { background-size: 100% 2px; }
.mpa-gh { position: absolute; z-index: 4; left: 0; top: 0; padding: 7px 12px; border-radius: 99px; background: #9b72c6; color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1; white-space: nowrap; pointer-events: none; }
@media (max-width: 980px) {
  .ma3-pres-anim { padding: 5%; }
  .mpa-sc { width: 95%; }
  .mpa-nt { width: 82%; margin-top: -7%; padding: 11px 13px; }
  .mpa-txt { font-size: 13px; }
  .mpa-gh { padding: 6px 10px; font-size: 12px; }
}


/* ==========================================================================
   CARTES PRÉSENTATION [ma3_pres_cartes mise="grille"] : les visuels des 4 cartes
   ========================================================================== */
/* compris du premier coup : les barres montent */
@keyframes mbp-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes mbp-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes mbp-slide { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

/* la grille et les cartes de [ma3_symptomes], sans lien donc sans effet de survol */
.ma3-symptomes--pres .sy-card:hover { background: var(--gcid-p5ip98bem3, #f4f4f4); color: #000 !important; transform: none; }
.ma3-symptomes--pres .sy-card:hover .sy-n { color: #6e6e6e; }
.ma3-symptomes--pres .sy-card:hover .sy-visual { transform: none; }
.mpc-tx { display: flex; flex-direction: column; gap: 8px; }
.ma3-symptomes--pres .sy-card .mpc-tx h3 { margin: 0; }
.mpc-tx p { margin: 0; padding: 0 !important; font-size: 16px; line-height: 1.35; color: #222; }
html.ma3-dark .ma3-symptomes--pres .sy-card:hover { background: var(--dm-surface); color: #f2f0ec !important; }
/* mode sombre : cartes sans lien (Application, Présentation) = fond surface, aucun effet au survol */
html.ma3-dark div.sy-card, html.ma3-dark div.sy-card:hover { background-color: var(--dm-surface) !important; color: #f2f0ec !important; transform: none !important; }
html.ma3-dark div.sy-card:hover .sy-visual { transform: none !important; }
html.ma3-dark div.sy-card:hover .sy-n { color: #6e6e6e; }
html.ma3-dark .mpc-tx p { color: inherit; }
/* Cartes Présentation [ma3_pres_cartes] : petits écrans à la façon de [ma3_symptomes] ; entrée unique, pas de boucle */
.ma3-symptomes--pres > .sy-card { min-width: 0; }
.ma3-symptomes--pres .sy-visual b { font-weight: 500; }
.ma3-symptomes--pres .sy-visual .pg { margin-bottom: 8px !important; color: #8a8a8a; font-size: 11px; line-height: 1; }
/* 1. Clarté : un seul chiffre, lisible en un regard */
.sy-v-kpi { display: flex; flex-direction: column; }
.sy-v-kpi .kp { flex: 1; display: flex; align-items: center; gap: 16px; padding: 0 4px; }
.sy-v-kpi svg { flex: none; width: 92px; height: 92px; transform: rotate(-90deg); }
.sy-v-kpi circle { fill: none; stroke: var(--gcid-rz4lyrnbbd, #ebedfc); stroke-width: 9; }
.sy-v-kpi .arc { stroke: var(--gcid-pnytn4mxu4, #9c6cc4); stroke-linecap: round; stroke-dasharray: 251.3; stroke-dashoffset: 80.4; }   /* 68 % */
.sy-v-kpi .kp p { color: #6e6e6e; font-size: 11px; line-height: 1.3; }
.sy-v-kpi strong { display: block; margin-bottom: 4px; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; font-size: 30px; line-height: 1; letter-spacing: -.03em; color: #000; }
/* 2. Rythme : la diapositive se dévoile au fil de la parole */
.sy-v-reveal { display: flex; flex-direction: column; gap: 10px; }
.sy-v-reveal .sl { flex: 1; display: flex; flex-direction: column; gap: 9px; padding: 12px 14px; border-radius: 8px; box-shadow: inset 0 0 0 1px #ececf0; }
.sy-v-reveal .ti { display: block; width: 46%; height: 8px; margin-bottom: 3px; border-radius: 4px; background: #000; }
.sy-v-reveal .bu { display: flex; align-items: center; gap: 8px; }
.sy-v-reveal .bu i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gcid-pnytn4mxu4, #9c6cc4); }
.sy-v-reveal .bu .sy-line { flex: 1; height: 6px; }
.sy-v-reveal .bu.nx i { background: none; box-shadow: inset 0 0 0 1px #c9cdee; }
.sy-v-reveal .bu.nx span { flex: none; width: 58%; height: 7px; border-radius: 4px; border: 1px dashed #c9cdee; }   /* la suite, au prochain clic */
.sy-v-reveal .ck { align-self: flex-start; padding: 5px 9px !important; border-radius: 99px; background: var(--gcid-rz4lyrnbbd, #ebedfc); color: #9c6cc4; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 11px; line-height: 1; }
/* 3. Marque : la même charte sur chaque diapositive */
.sy-v-fan { padding: 0; }
.sy-v-fan .th { position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; gap: 5px; width: 54%; aspect-ratio: 16 / 10; padding: 10px 11px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px #ececf0, 0 10px 22px -14px rgba(0, 0, 0, .3); transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.sy-v-fan .th.a { transform: translate(-92%, -54%) rotate(-7deg); }
.sy-v-fan .th.b { transform: translate(-50%, -62%); }
.sy-v-fan .th.c { transform: translate(-8%, -46%) rotate(6deg); }
.sy-v-fan .ac { display: block; width: 26%; height: 4px; margin-bottom: 2px; border-radius: 2px; background: var(--gcid-pnytn4mxu4, #9c6cc4); }
.sy-v-fan em { font-style: normal; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 18px; line-height: 1; letter-spacing: -.02em; color: #000; }
.sy-v-fan .sy-line { height: 5px; }
/* 4. Outils : modifiable dans le logiciel de vos équipes */
.sy-v-tool { padding: 0; }
.sy-v-tool .tb { display: flex; align-items: center; gap: 4px; padding: 8px 10px; border-bottom: 1px solid #f0f0f4; }
.sy-v-tool .tb > i { width: 6px; height: 6px; border-radius: 50%; background: #d6d6dc; }
.sy-v-tool .seg { display: flex; margin-left: auto; padding: 2px; border-radius: 6px; background: var(--gcid-p5ip98bem3, #f5f5f5); }
.sy-v-tool .seg b { padding: 4px 6px; border-radius: 4px; color: #8a8a8a; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 10px; line-height: 1; white-space: nowrap; }
.sy-v-tool .seg b.on { background: #fff; color: #000; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.sy-v-tool .cv { display: flex; flex-direction: column; gap: 6px; margin: 12px; padding: 16px 14px; border-radius: 6px; background: var(--gcid-p5ip98bem3, #f5f5f5); }
.sy-v-tool .bx { position: relative; align-self: flex-start; margin-bottom: 6px; padding: 5px 8px; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1; }
.sy-v-tool .bx::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--gcid-pnytn4mxu4, #9c6cc4); }   /* le bloc de texte sélectionné */
.sy-v-tool .bx u { display: inline-block; width: 1px; height: 14px; margin-left: 2px; vertical-align: -2px; background: #000; }
.sy-v-tool .bx s { position: absolute; width: 5px; height: 5px; background: #fff; box-shadow: inset 0 0 0 1px var(--gcid-pnytn4mxu4, #9c6cc4); }
.sy-v-tool .h1 { left: -2px; top: -2px; } .sy-v-tool .h2 { right: -2px; top: -2px; } .sy-v-tool .h3 { left: -2px; bottom: -2px; } .sy-v-tool .h4 { right: -2px; bottom: -2px; }
.sy-v-tool .sy-line { height: 6px; background: #e4e4ea; }
/* Entrée, une seule fois (classe is-in posée par initPresGrid) */
.js-reveal .sy-v-kpi .arc { stroke-dashoffset: 251.3; }
.js-reveal .sy-v-kpi strong, .js-reveal .sy-v-reveal .bu, .js-reveal .sy-v-reveal .ck, .js-reveal .sy-v-tool .bx::before, .js-reveal .sy-v-tool .bx s { opacity: 0; }
.js-reveal .sy-v-fan .th { transform: translate(-50%, -54%); }   /* empilées, elles s'ouvrent en éventail à l'entrée */
.js-reveal .is-in .sy-v-fan .th.a { transform: translate(-92%, -54%) rotate(-7deg); }
.js-reveal .is-in .sy-v-fan .th.b { transform: translate(-50%, -62%); }
.js-reveal .is-in .sy-v-fan .th.c { transform: translate(-8%, -46%) rotate(6deg); }
.is-in .sy-v-kpi .arc { animation: pc-arc 1.1s cubic-bezier(.2, .8, .2, 1) .3s forwards; }
.is-in .sy-v-kpi strong { animation: mb-rise .45s cubic-bezier(.2, .8, .2, 1) .5s forwards; }
.is-in .sy-v-reveal .bu { animation: mb-rise .45s cubic-bezier(.2, .8, .2, 1) calc(.35s + var(--i, 0) * .35s) forwards; }
.is-in .sy-v-reveal .ck { animation: mbp-pop .45s cubic-bezier(.3, 1.6, .5, 1) 1.1s forwards; }
.is-in .sy-v-fan .th { transition-delay: .25s; }
.is-in .sy-v-tool .bx::before { animation: mb-fade .3s ease .45s forwards; }
.is-in .sy-v-tool .bx s { animation: mbp-pop .4s cubic-bezier(.3, 1.6, .5, 1) .6s forwards; }
@keyframes pc-arc { from { stroke-dashoffset: 251.3; } to { stroke-dashoffset: 80.4; } }
@keyframes mb-fade { to { opacity: 1; } }

/* Cartes Application [ma3_app_cartes] : même carte que [ma3_pres_cartes], petits écrans à la façon de [ma3_symptomes] ; entrée unique, pas de boucle */
/* 1. Le support respire : les demandes baissent mois après mois */
.sy-v-sup { display: flex; flex-direction: column; gap: 12px; }
.sy-v-sup .hd { display: flex; justify-content: space-between; align-items: center; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; }
.sy-v-sup .hd em { padding: 4px 8px; border-radius: 99px; background: var(--gcid-rz4lyrnbbd, #ebedfc); color: #9c6cc4; font-style: normal; font-size: 12px; line-height: 1; }
.sy-v-sup .ch { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; }
.sy-v-sup .ch span { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 100%; color: #8a8a8a; font-size: 12px; line-height: 1; text-align: center; }
.sy-v-sup .ch i { height: calc(var(--h) * .8); border-radius: 4px 4px 2px 2px; background: #dfe2f7; transform-origin: bottom; }
.sy-v-sup .ch span:last-child { color: #000; }
.sy-v-sup .ch span:last-child i { background: var(--gcid-pnytn4mxu4, #9c6cc4); }
/* 2. Design system : les composants, réutilisés partout */
.sy-v-ds { display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.sy-v-ds .row { display: flex; justify-content: space-between; align-items: center; height: 32px; padding: 0 6px 0 10px; border-radius: 8px; background: var(--gcid-p5ip98bem3, #f5f5f5); color: #6e6e6e; }
.sy-v-ds .btn { padding: 6px 10px; border-radius: 6px; background: var(--gcid-pnytn4mxu4, #9c6cc4); color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1; }
.sy-v-ds .fld { display: flex; align-items: center; width: 74px; height: 22px; padding: 0 7px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px #dcdce4; }
.sy-v-ds .fld i { width: 60%; height: 5px; border-radius: 3px; background: #ececf0; }
.sy-v-ds .tag { padding: 5px 9px; border-radius: 99px; background: var(--gcid-rz4lyrnbbd, #ebedfc); color: #9c6cc4; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1; }
.sy-v-ds .ft { margin-top: auto !important; padding-left: 2px !important; color: #8a8a8a; }
/* carte 02 [ma3_app_cartes] « Un gain concret » : un mini-écran par type de projet, légende violette (boucle : initAppGain) */
.sy-v-gain { display: flex; flex-direction: column; padding: 12px; }
.sy-v-gain .hsy-pause { top: 10px; right: 10px; }   /* en haut à droite, comme partout */
.sy-v-gain.is-paused .hsy-pause { opacity: 1; transform: none; }
.sy-v-gain .gn-stage { position: relative; flex: 1; }
.sy-v-gain .gn-sc { position: absolute; inset: 0; opacity: 0; }
.sy-v-gain .gn-m { opacity: 1; }   /* sans JS : l'écran « métier » */
.sy-v-gain .gn-row { display: flex; align-items: center; gap: 8px; height: 27px; margin: 0 0 5px !important; padding: 0 8px 0 10px !important; border-radius: 6px; background: var(--gcid-p5ip98bem3, #f5f5f5); color: #000; }   /* libellés en noir */
.sy-v-gain .gn-m .gn-row { padding-left: 8px !important; }
.sy-v-gain .gn-m .gn-row i { flex: 1; height: 6px; border-radius: 3px; background: #e3e3e8; transform-origin: left; }
.sy-v-gain .gn-s .gn-row { justify-content: space-between; }
.sy-v-gain .gn-ok { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--gcid-s53uwlrvje, #ecf8ef); color: var(--gcid-irhl82b2ls, #65a869); }
.sy-v-gain .gn-ok svg { width: 9px; height: 9px; }
.sy-v-gain .gn-auto { position: absolute; right: 0; bottom: 0; padding: 5px 9px; border-radius: 99px; background: var(--gcid-rz4lyrnbbd, #ebedfc); color: #9c6cc4; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1; }
.sy-v-gain .gn-tg { position: relative; flex: none; width: 28px; height: 16px; border-radius: 99px; background: #dcdce4; }
.sy-v-gain .gn-tg i { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.sy-v-gain .gn-p { overflow: hidden; }   /* le téléphone sort par le bas (hors champ) */
.sy-v-gain .gn-ph { position: absolute; left: 50%; top: 8px; width: 116px; height: 240px; margin-left: -58px; padding: 9px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 2.5px #111; }   /* proportions d'un téléphone */
.sy-v-gain .gn-ph i { display: block; }
.sy-v-gain .gn-ph .nt { width: 34px; height: 9px; margin: 0 auto 8px; border-radius: 99px; background: #111; }
.sy-v-gain .gn-ph .im { height: 30px; margin-bottom: 6px; border-radius: 8px; background: var(--gcid-rz4lyrnbbd, #ebedfc); }
.sy-v-gain .gn-ph .ln { height: 5px; margin-bottom: 4px; border-radius: 3px; background: #ececf0; }
.sy-v-gain .gn-ph .bt { position: relative; height: 18px; margin-top: 6px; border-radius: 6px; background: #9c6cc4; }
.sy-v-gain .gn-ph .tap { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 2px #fff; transform: scale(0); }
.sy-v-gain .gn-chip { position: absolute; right: 0; top: 46px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px 5px 5px; border-radius: 99px; background: #fff; box-shadow: 0 8px 18px -10px rgba(40, 30, 90, .45); font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1; opacity: 0; }
.sy-v-gain .gn-cap { position: relative; height: 30px; margin: 8px 0 0 !important; border-radius: 8px; background: var(--gcid-pnytn4mxu4, #9c6cc4); color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1; overflow: hidden; }
.sy-v-gain .gn-cap span { position: absolute; left: 10px; right: 10px; top: 0; height: 30px; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.sy-v-gain .gn-cap span + span { transform: translateY(110%); }   /* sans JS : seule la première légende */
.sy-v-gain .gn-cap em { font-style: normal; opacity: .7; }
.sy-v-gain .gn-cap b { font-weight: inherit; }
.sy-v-gain { container-type: inline-size; }
@container (max-width: 200px) { .sy-v-gain .gn-cap b, .sy-v-gain .gn-cap em { display: none; } }   /* carte étroite : le gain seul, sans « Métier · » */
.sy-v-ds .ft strong { font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; color: #000; }
/* 3. Accessible : focus visible, clavier, contraste */
.sy-v-a11y .lb { margin-bottom: 5px !important; color: #6e6e6e; }
.sy-v-a11y .in { position: relative; display: flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px #dcdce4; }
.sy-v-a11y .in i { width: 1px; height: 13px; margin-left: 2px; background: #000; }
.sy-v-a11y .in::after { content: ""; position: absolute; inset: -4px; border-radius: 11px; box-shadow: 0 0 0 2px var(--gcid-pnytn4mxu4, #9c6cc4); }   /* le focus clavier, bien visible */
.sy-v-a11y .kb { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: #6e6e6e; }
.sy-v-a11y .key { padding: 4px 8px 5px; border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 1px #dcdce4, inset 0 -2px 0 #dcdce4; color: #000; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1; }
.sy-v-a11y .ct { position: absolute; left: 16px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 99px; background: var(--gcid-s53uwlrvje, #ecf8ef); color: var(--gcid-irhl82b2ls, #65a869); font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1; }
.sy-v-a11y .ct svg { width: 10px; height: 10px; }
/* 4. Votre marque : l'écran de l'application à vos couleurs */
.sy-v-brand { display: flex; flex-direction: column; justify-content: space-between; }
.sy-v-brand .ap { display: flex; flex-direction: column; gap: 6px; }
.sy-v-brand .who { display: flex; align-items: center; gap: 8px; margin-bottom: 4px !important; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1; }
.sy-v-brand .who i { width: 18px; height: 18px; border-radius: 50%; background: var(--gcid-rz4lyrnbbd, #ebedfc); box-shadow: inset 0 0 0 5px var(--gcid-pnytn4mxu4, #9c6cc4); }
.sy-v-brand .sy-line { height: 6px; }
.sy-v-brand .btn { align-self: flex-start; margin-top: 6px; padding: 8px 12px; border-radius: 99px; background: var(--gcid-pnytn4mxu4, #9c6cc4); color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1; }
.sy-v-brand .sw { display: flex; align-items: center; gap: 5px; padding-top: 10px; border-top: 1px solid #f0f0f4; }
.sy-v-brand .sw i { width: 14px; height: 14px; border-radius: 4px; background: var(--gcid-pnytn4mxu4, #9c6cc4); }
.sy-v-brand .sw i:nth-child(2) { background: var(--gcid-irhl82b2ls, #65a869); } .sy-v-brand .sw i:nth-child(3) { background: #000; }
.sy-v-brand .sw span { margin-left: auto; color: #8a8a8a; font-size: 12px; }
/* Entrée, une seule fois quand la carte arrive (classe is-in posée par initPresGrid) */
.js-reveal .sy-v-sup .ch i { transform: scaleY(0); }
.js-reveal .sy-v-ds .row, .js-reveal .sy-v-ds .ft, .js-reveal .sy-v-a11y .in::after, .js-reveal .sy-v-a11y .ct, .js-reveal .sy-v-brand .btn, .js-reveal .sy-v-brand .sw i { opacity: 0; }
.is-in .sy-v-sup .ch i { animation: mbp-grow .8s cubic-bezier(.2, .8, .2, 1) calc(.2s + var(--i, 0) * .1s) forwards; }
.is-in .sy-v-ds .row, .is-in .sy-v-ds .ft { animation: mb-rise .45s cubic-bezier(.2, .8, .2, 1) calc(.25s + var(--i, 0) * .12s) forwards; }
.is-in .sy-v-a11y .in::after { animation: mbp-pop .45s cubic-bezier(.3, 1.6, .5, 1) .6s forwards; }
.is-in .sy-v-a11y .ct { animation: mb-rise .45s cubic-bezier(.2, .8, .2, 1) .9s forwards; }
.is-in .sy-v-brand .btn { animation: mbp-pop .45s cubic-bezier(.3, 1.6, .5, 1) .45s forwards; }
.is-in .sy-v-brand .sw i { animation: mbp-pop .45s cubic-bezier(.3, 1.6, .5, 1) calc(.65s + var(--i, 0) * .1s) forwards; }
/* Pastille « En pause » de l'animation Présentation */
.ma3-pres-anim.is-paused .hsy-pause { opacity: 1; transform: none; }


/* ==========================================================================
   HERO PRÉSENTATION [ma3_pres_hero] : la diapositive surchargée balayée par un trait violet (fond et arrondi : Divi)
   ========================================================================== */
.ma3-pres-hero { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; max-height: 480px; overflow: hidden; color: #000; font-family: "Haffer-regular", Helvetica, Arial, sans-serif; }
.mph-sl { position: relative; width: 84%; aspect-ratio: 16 / 10; margin-bottom: 4%; border-radius: 10px; background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .3); container-type: inline-size; }
.mph-ly { position: absolute; inset: 0; overflow: hidden; border-radius: 10px; }
.mph-ly > * { position: absolute; display: block; margin: 0 !important; padding: 0; }
.mph-t { border-radius: 3px; background: #000; }
.mph-l { height: 2.2%; border-radius: 99px; background: #d4d4dc; }
.mph-af .mph-l { background: #e2e2e8; }
.mph-im { border-radius: 4px; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .35); }
.mph-im::after { content: ""; position: absolute; left: 14%; bottom: 16%; width: 46%; height: 34%; background: rgba(255, 255, 255, .5); clip-path: polygon(0 100%, 35% 30%, 60% 70%, 78% 45%, 100% 100%); }
.mph-tt { left: 7%; top: 20%; width: 44%; padding: 0 !important; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 4.6cqw; line-height: 1.08; letter-spacing: -.02em; color: #000; }
.mph-base { left: 57%; top: 78%; width: 36%; height: .5%; border-radius: 2px; background: #d9d9e0; }
.mph-b { width: 6.5%; border-radius: 4px 4px 0 0; background: #d0d4f4; transform-origin: bottom; }
.mph-b.v { background: #9b72c6; }
.mph-tag { left: 82%; top: 18%; padding: 1.1cqw 1.6cqw !important; border-radius: 99px; background: #ebedfc; color: #9b72c6; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 2.2cqw; line-height: 1; white-space: nowrap; }
.mph-sw { position: absolute; z-index: 4; top: -4%; bottom: -4%; left: 0; width: 2px; background: #9b72c6; box-shadow: 0 0 0 4px rgba(155, 114, 198, .18); opacity: 0; }
.mph-sw b { position: absolute; top: 50%; left: 50%; width: 3.6cqw; height: 3.6cqw; margin: -1.8cqw 0 0 -1.8cqw; border-radius: 50%; background: #9b72c6; box-shadow: 0 0 0 5px rgba(155, 114, 198, .25); }
.mph-af { clip-path: inset(0 100% 0 0); }
.mph-pill { position: absolute; z-index: 5; left: 22px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 16px !important; border-radius: 99px; background: #000; color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1; overflow: hidden; }
.mph-pill::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #9b72c6; }   /* comme la légende des autres heros */
.mph-pill::before { transition: background .3s ease; }
.mph-pill.is-apres::before { background: #65a869; }   /* « Après » : point vert */
.mph-m { display: block; overflow: hidden; line-height: 1.25; }   /* fenêtre du rouleau : le mot sort entièrement, jambages compris */
.mph-m > span { display: block; white-space: nowrap; }
.ma3-pres-hero.is-paused .hsy-pause { opacity: 1; transform: none; }
@media (max-width: 980px) { .mph-pill { left: 14px; bottom: 14px; padding: 8px 12px !important; font-size: 12px; } }

/* ==========================================================================
   HERO APPLICATION & SAAS [ma3_app_hero] : l'écran devient mobile puis SaaS, l'équipe reste (fond et arrondi : Divi)
   Positions des blocs : dans le JS (initAppHero), en % de l'écran.
   ========================================================================== */
.ma3-app-hero { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; max-height: 480px; overflow: hidden; color: #000; font-family: "Haffer-regular", Helvetica, Arial, sans-serif; container-type: inline-size; }
.ma3-app-hero i, .ma3-app-hero b { display: block; font-style: normal; }
.mah-ap { position: relative; z-index: 2; width: 84%; height: 52.5cqw; margin-bottom: 5%; border-radius: 10px; background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .3); }
.mah-ap > * { position: absolute; display: block; margin: 0 !important; padding: 0; }
.mah-gh { position: absolute; z-index: 1; left: 8%; top: calc(50% - 2.5cqw - 26.25cqw); width: 84%; height: 52.5cqw; border-radius: 10px; background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .25); opacity: 0; }
.mah-sb { background: #f4f4f7; border-radius: 10px 0 0 10px; }
.mah-lg { border-radius: 50%; background: #9b72c6; }
.mah-nv { border-radius: 99px; background: #dcdce4; }
.mah-hd { border-radius: 99px; background: #000; }
.mah-av { border-radius: 50%; background: #ebedfc; }
.mah-ap .mah-ver { padding: .7cqw 1.1cqw !important; border-radius: 99px; background: #ebedfc; color: #9b72c6; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 1.6cqw; line-height: 1; white-space: nowrap; overflow: hidden; }
.mah-ver > span { display: block; }
.mah-kp, .mah-ch, .mah-ls { border-radius: 1.2cqw; background: #f4f4f7; overflow: hidden; }
.mah-kl { position: absolute; left: 12%; top: 22%; width: 46%; height: 9%; border-radius: 99px; background: #d6d6de; }
.mah-kn { position: absolute; left: 12%; bottom: 17%; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 2.4cqw; line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.mah-base { position: absolute; left: 8%; right: 8%; bottom: 14%; height: 1.5%; border-radius: 2px; background: #d6d6de; }
.mah-br { position: absolute; bottom: 14%; width: 9%; border-radius: .5cqw .5cqw 0 0; background: #d0d4f4; transform-origin: bottom; }
.mah-br.v { background: #9b72c6; }
.mah-rw { position: absolute; left: 12%; right: 12%; height: 8%; display: flex; align-items: center; gap: 8%; }
.mah-rw i { flex: none; height: 100%; aspect-ratio: 1; border-radius: 50%; background: #d0d4f4; }
.mah-rw b { height: 55%; border-radius: 99px; background: #d6d6de; }
.mah-pill { position: absolute; z-index: 5; left: 22px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 16px !important; border-radius: 99px; background: #000; color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1; }
.mah-pill::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #9b72c6; }   /* point violet devant le texte, comme sur les autres heros */
.mah-m { display: block; overflow: hidden; line-height: 1.25; }   /* fenêtre du rouleau */
.mah-m > span { display: block; white-space: nowrap; }
.ma3-app-hero.is-paused .hsy-pause { opacity: 1; transform: none; }
/* timeline en segments en bas à droite : un trait par étape, fond discret et remplissage violet (comme la minuterie du réseau) */
.mah-time { position: absolute; z-index: 5; right: 22px; bottom: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 120px; pointer-events: none; }
.mah-time i { display: block; height: 3px; border-radius: 2px; background: rgba(0, 0, 0, .1); overflow: hidden; }   /* fond gris transparent : reste visible sur la colonne lavande */
.mah-time span { display: block; width: 100%; height: 100%; background: var(--gcid-pnytn4mxu4, #9c6cc4); transform: scaleX(0); transform-origin: left; }
@media (max-width: 980px) { .mah-time { right: 14px; bottom: 26px; width: 90px; } }
.mah-time.ai-time { grid-template-columns: repeat(2, 1fr); right: 7%; bottom: 3.5%; width: 84px; }   /* [ma3_app_idee] : 2 étapes (prototype, solution), sous la carte à droite */
.js-reveal .ai-time { opacity: 0; }
.mah-time.mph-time { grid-template-columns: repeat(2, 1fr); width: 84px; }   /* [ma3_pres_hero] : 2 étapes (avant, après), même place que sur le hero Application */
.mah-time.hsy-time { bottom: 36px; }   /* [ma3_hero_synchro] : 3 vues, en face de la légende */
@media (max-width: 980px) { .mah-time.hsy-time { bottom: 28px; } }
.mah-time.imv-time { right: 22px; bottom: 20px; }   /* [ma3_immersion] : dans la scène 640 × 400 (suit sa mise à l'échelle) */
@media (max-width: 980px) { .mah-time.imv-time { right: 22px; bottom: 20px; width: 120px; } }
/* [ma3_reseau] : un segment par projet, en bas à droite de la carte sombre (fond des segments clair sur le noir) */
/* [ma3_reseau] : flèches des cartes expertises (43 px, effet cylindre), en bas à droite ; en blanc sur la carte noire */
.rsn-nav { position: absolute; right: 30px; bottom: 24px; display: flex; gap: 12px; }
.rsn-prev, .rsn-next { background: #fff; color: #111; }
@media (max-width: 767px) { .rsn-nav { right: 18px; bottom: 14px; } }
.ma3-app-idee.is-ready .ai-time { opacity: 1; transition: opacity .5s ease; }
@media (max-width: 980px) { .mah-pill { left: 14px; bottom: 14px; padding: 7px 12px !important; font-size: 12px; } }

/* ==========================================================================
   ANIMATION APPLICATION [ma3_app_idee] : l'idée, le prototype, la solution — même format que [ma3_presentation_anim]
   (fond, arrondi et marges : Divi) ; animation : initAppIdee
   ========================================================================== */
.ma3-app-idee { position: relative; container-type: inline-size; width: 100%; padding: 6% 7%; overflow: hidden; color: #000; font-family: "Haffer-regular", Helvetica, Arial, sans-serif; }
.ma3-app-idee p { margin: 0; padding: 0 !important; }
.ma3-app-idee i, .ma3-app-idee b { font-style: normal; }
.ai-card { border-radius: 14px; background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .3); }
.ai-qc { width: 80%; padding: clamp(18px, 4.5cqw, 30px); }
.ai-lb { display: block; margin-bottom: 10px; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1.2; color: #6e6e78; }
.ma3-app-idee .ai-q { font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; font-size: clamp(20px, 5.4cqw, 34px); line-height: 1.12; letter-spacing: -.02em; color: #000; }
.ai-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.ai-w > span { display: inline-block; }
.ai-caret { display: inline-block; width: 3px; height: .9em; margin-left: 4px; vertical-align: -.08em; border-radius: 2px; background: #9b72c6; }
.ai-res { position: relative; z-index: 2; width: 78%; margin: -5% 0 0 auto; padding: 18px 20px 6px; }   /* chevauche le bas de la carte de l'idée */
.ma3-app-idee .ai-badge { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; padding: 8px 13px !important; border-radius: 99px; overflow: hidden; background: #fdecec; color: #e0564f; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1; transition: background-color .4s, color .4s; }
.ai-fill { position: absolute; inset: 0; background: #f9d4d2; transform-origin: left; opacity: 0; }   /* « prêt » : se remplit d'un coup */
.ai-live { position: relative; display: block; flex: none; width: 0; height: 7px; margin-left: -8px; border-radius: 50%; background: #fff; transition: width .4s ease, margin-left .4s ease; }   /* replié hors solution : il s'ouvre en douceur (pas d'à-coup) */
.ai-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #fff; animation: ai-live 1.8s ease-out infinite; }   /* « en ligne » : le point pulse */
@keyframes ai-live { from { transform: scale(1); opacity: .7; } to { transform: scale(2.8); opacity: 0; } }
.ai-res.is-sol .ai-badge { background: #9b72c6; color: #fff; }
.ai-res.is-sol .ai-live { width: 7px; margin-left: 0; }
.ma3-app-idee .ai-badge.no-tr, .ma3-app-idee .ai-badge.no-tr .ai-live { transition: none !important; }   /* remise à zéro de la boucle : sans transition (sinon flash violet) */
.ai-m { position: relative; display: block; overflow: hidden; line-height: 1.25; }   /* fenêtre du rouleau */
.ai-m > span { display: block; white-space: nowrap; }
.ai-list { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.ai-list li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 11px 0; border-top: 1px solid rgba(0, 0, 0, .07); font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.2; color: #000; }
.ai-ic { position: relative; display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #ececf0; color: #9a9aa6; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1; transition: background-color .3s, color .3s; }
.ai-ic svg { display: none; width: 11px; height: 11px; }
.ai-ic path { stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .35s ease .15s; }
.ai-list li.is-ko .ai-ic { background: #fdecec; color: #e0564f; }
.ai-list li.is-ok .ai-ic { background: #ecf8ef; color: #65a869; }
.ai-list li.is-ok .ai-ic b { display: none; }
.ai-list li.is-ok .ai-ic svg { display: block; }
.ai-list li.is-ok.is-drawn .ai-ic path { stroke-dashoffset: 0; }   /* la coche se trace */
.ma3-app-idee.is-paused .hsy-pause { opacity: 1; transform: none; }

/* ===== [ma3_app_etapes] : la méthode en « stories » : une barre par étape, la carte, la suite annoncée ; pause au survol ===== */
.ma3-frise { position: relative; container-type: inline-size; width: 100%; color: #000; font-family: "Haffer-regular", Helvetica, Arial, sans-serif; }
.ma3-frise p { margin: 0; padding: 0 !important; }
.mst-card { position: relative; display: flex; flex-direction: column; min-height: 300px; margin-bottom: 22px; padding: 46px clamp(24px, 6cqw, 40px) 32px;   /* contenu un peu plus haut ; flèches en bas à droite, dans la carte */ border-radius: 14px; background: #fff; box-shadow: 0 24px 48px -36px rgba(40, 30, 90, .3); }
.mst-bars { display: grid; grid-template-columns: repeat(var(--mst-n, 5), 1fr); gap: 6px; margin-bottom: 26px; }
.mst-bars > span { display: flex; align-items: center; height: 14px; }   /* repères non cliquables */
.mst-bars u { position: relative; display: block; width: 100%; height: 3px; border-radius: 2px; background: #dfe2f7; overflow: hidden; transition: background-color .3s; }
.mst-bars > span[aria-current="true"] u { background: #d6c4ea; }   /* l'étape affichée se repère même en pause (survol, clic sur la flèche) */
.mst-bars u::after { content: ""; position: absolute; inset: 0; background: #9b72c6; transform: scaleX(var(--p, 0)); transform-origin: left; }
.mst-meta { position: relative; display: flex; align-items: center; min-height: 26px; margin-bottom: 10px !important; font-family: "Haffer-regular", Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1; color: #6e6e78; }
.mst-meta b { font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; color: #9b72c6; }   /* le numéro de l'étape en cours ressort */
.ma3-frise .hsy-pause { top: 8px; }                                  /* un peu plus haut, au-dessus des barres */
.ma3-frise.is-paused .hsy-pause { opacity: 1; transform: none; }
.mst-tx { flex: 1; display: grid; }
.mst-t { grid-area: 1 / 1; visibility: hidden; }                      /* empilés : la carte prend la hauteur du plus long */
.mst-t.is-on { visibility: visible; }
.ma3-frise .mst-t h3 { margin: 0; padding: 0; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; font-size: clamp(20px, 4.4cqw, 26px); line-height: 1.15; letter-spacing: -.01em; color: #000; }
.ma3-frise .mst-t p { max-width: 32em; margin-top: 6px; font-family: "Haffer-regular", Helvetica, Arial, sans-serif; font-weight: 400; font-size: 16px; line-height: 1.4em; color: #000; }
.ma3-frise .mst-nx { display: flex; align-items: center; gap: 0; width: 100%; transition: color .3s; margin: 26px 0 0 !important; padding: 28px 120px 0 0 !important; border: 0; border-top: 1px solid rgba(0, 0, 0, .07); background: none; text-align: left; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.2; color: #6e6e78; }
.mst-nx b { font-weight: 500; color: #000; }
.mst-prev, .mst-next { position: absolute; z-index: 3; bottom: 22px; }   /* flèches des avis, toujours visibles, dans la carte en bas à droite (à hauteur de « Ensuite ») */
.mst-next { right: clamp(24px, 6cqw, 40px); } .mst-prev { right: calc(clamp(24px, 6cqw, 40px) + 55px); }
.mst-nx:focus-visible { outline: 2px solid #9b72c6; outline-offset: 4px; border-radius: 4px; }
@media (max-width: 980px) {
  .ma3-app-idee { padding: 5%; }
  .ai-qc { width: 90%; }
  .ai-res { width: 88%; margin-top: -4%; padding: 14px 16px 4px; }
  .ai-list li { font-size: 13px; }
}

/* ==========================================================================
   EFFET VERRE sur les animations à fond clair (initVerre, switch GLASS dans ma3-custom.js)
   Zones lavande, grises, vertes, pêche et cartes gris foncé (#111) ; les fonds noirs purs ne sont pas touchés.
   ========================================================================== */
.vr-host { isolation: isolate; overflow: hidden; }
.vr-host.vr-rel { position: relative; }
.vr-measure, .vr-measure * { transition: none !important; }
.vr-host { --vr-shc: 40, 30, 90; }   /* teinte des ombres ajoutées (chevauchement, bulles) selon le fond */
.vr-green { --vr-shc: 35, 80, 40; }
.vr-peach { --vr-shc: 105, 55, 25; }
.vr-grey { --vr-shc: 0, 0, 0; }
.vr-glow { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.vr-glow b { position: absolute; left: -25%; top: -25%; width: 150%; height: 150%; background: var(--vr-il) no-repeat center / 100% 100%; will-change: transform; }
/* chevauchement de deux cartes : l'ombre d'origine + une ombre légère vers le haut */
.vr-over.vr-rel { position: relative; }
html.ma3-verre .vr-over::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 -12px 30px -16px rgba(var(--vr-shc, 40, 30, 90), .22); pointer-events: none; }
/* cartes « problèmes » [ma3_symptomes] : au survol la carte passe en noir comme avant, les halos s'effacent */
/* le fond s'assombrit en même temps que la carte (même durée, même courbe) : ni halo clair, ni flash */
.sy-card > .vr-glow { transition: filter .45s ease; }
.sy-card.sy-in > .vr-glow { transition: none !important; }   /* pendant l'entrée animée, comme la carte */
.ma3-symptomes:not(.ma3-symptomes--pres) .sy-card:hover > .vr-glow { filter: brightness(0); }
html.ma3-verre .vr-card { background: linear-gradient(165deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .55) 55%, rgba(255, 255, 255, .45)) !important;
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(255, 255, 255, .5), 0 24px 50px -28px rgba(40, 30, 90, .3) !important; }
html.ma3-verre .vr-card.vr-top { background: rgba(255, 255, 255, .55) !important; -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }   /* carte flottante */
html.ma3-verre .vr-soft { background-color: var(--vr-l) !important; }
html.ma3-verre .vr-clear { background-color: transparent !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* thème sombre : comme avant l'effet verre, les animations restent presque inchangées (fonds pastel du mode sombre, cartes claires, textes noirs) ;
   seules les zones grises, qui passent en sombre, perdent leurs halos */
html.ma3-dark .vr-grey > .vr-glow { display: none; }
/* animations qui ont leurs propres cartes sombres en mode sombre (textes clairs) : ce fond sombre, en verre fumé */
html.ma3-dark.ma3-verre .vr-card.vr-dk { background: var(--vr-dk) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .1), 0 24px 50px -28px rgba(0, 0, 0, .6) !important; }
html.ma3-dark.ma3-verre .vr-soft.vr-dk, html.ma3-dark.ma3-verre .vr-clear.vr-dk { background-color: var(--vr-dk) !important; }

/* tablette / mobile : pas de flou d'arrière-plan (saccades sur Safari iPhone), verre plus opaque */
@media (max-width: 980px) {
  html.ma3-verre .vr-card, html.ma3-verre .vr-card.vr-top { background: rgba(255, 255, 255, .9) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ===== TEST 08/11 : bandeau de logos du pré-footer en gris foncé, logos blancs (clair et sombre) =====
   Pour revenir au bandeau clair : supprimer ce bloc. */
.ma3-marquee:not(.ma3-marquee--tags) {
  --mq-border: rgba(242, 240, 236, .18);
  background: #161616;
}
.ma3-marquee:not(.ma3-marquee--tags) .mq-card img { filter: brightness(0) invert(1); }

/* ===== Projets : légende facultative en haut à gauche d'un bloc (champ ACF « Légende ») =====
   Même capsule en verre que les tags des cartes projet (règle .categorie-projet .pg-term, plus haut) */
.ma3-projet .pj-has-leg { position: relative; }
.ma3-projet .pj-leg {
  position: absolute;
  top: clamp(16px, 2vw, 32px);
  left: clamp(16px, 2vw, 32px);
  z-index: 5;
  max-width: calc(100% - 2 * clamp(16px, 2vw, 32px));
  border: 0;
  font-family: 'Haffer-medium', Helvetica, Arial, Lucida, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.1em;
  pointer-events: none;
}
@media (max-width: 767px) { .ma3-projet .pj-leg { font-size: 15px; } }

/* ===== H2 « en teinte » (H2_TEINTE_VIOLET dans ma3-custom.js) : chaque mot part du violet pâle MA3 et prend la couleur du titre au scroll =====
   currentColor = couleur héritée du titre (noir en clair, clair en sombre) ; --h2t va de 1 (violet) à 0 (couleur finale) */
.h2t-violet { --h2t-from: #d8cee3; }                     /* violet pâle tiré du violet MA3 #9b72c6, désaturé (avant : #d7c7ea, puis le lavande #ebedfc trop clair) */
.h2t-violet.h2t-on-dark,
html.ma3-dark .h2t-violet { --h2t-from: #716682; }        /* titres clairs sur fond foncé (sections noires) et mode sombre : violet assombri, pour que l'effet se voie */
.h2t-violet .rw-word { color: color-mix(in srgb, var(--h2t-from) calc(var(--h2t, 0) * 100%), currentColor); }

/* ==========================================================================
   « NOS DESIGNERS, PAS DES PROMPTS » [ma3_prompts] : barres de prompt tapées puis barrées, pastille .ac-badge (comme [ma3_livraison])
   Fond, marges et arrondi de la colonne : réglés dans Divi
   ========================================================================== */
.ma3-prompts { position: relative; width: 100%; }
.et_pb_module:has(> .et_pb_code_inner > .ma3-prompts) { align-self: stretch; width: 100%; }   /* colonne Divi en flex : le module prend toute la largeur (comme [ma3_livraison]), les barres ne rétrécissent pas pendant la frappe */
.ma3-prompts .ac-badge { z-index: 2; right: auto; left: 18px; }   /* à gauche : la pastille « Pause » est en haut à droite */
.ma3-prompts .hsy-pause { top: -12px; right: 18px; z-index: 5; }   /* en haut à droite, comme partout */
.ma3-prompts.is-paused .hsy-pause { opacity: 1; transform: none; }
.mpz-list { display: grid; gap: 20px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.mpz-bar { display: flex; align-items: center; gap: 12px; min-height: 58px; margin: 0; padding: 0 12px 0 20px !important; border-radius: var(--gvid-1j485jt6w2, 8px); background: #fff; box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .35); font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 17px; line-height: 1.2; color: #000; }
.mpz-ico { flex: none; width: 20px; height: 20px; color: #9a9aa6; }
.mpz-t { position: relative; flex: 1; min-width: 0; padding: 8px 0; }
/* trait qui barre le texte : fond de 2 px qui s'étire (suit le texte, même sur 2 lignes) */
.mpz-txt { background: linear-gradient(#000, #000) no-repeat 0 56% / 100% 2px; -webkit-box-decoration-break: clone; box-decoration-break: slice; transition: color .4s; }
.js-reveal .mpz-txt { background-size: 0% 2px; }
.mpz-bar.is-off .mpz-txt { color: #9a9aa6; }
.mpz-send { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #ececf0; color: #9a9aa6; }
.mpz-send svg { width: 14px; height: 14px; }
/* sans script : demandes barrées et grisées, pastille visible (rendu final) */
html:not(.js-reveal) .mpz-txt { color: #9a9aa6; }
.js-reveal .ma3-prompts .mpz-bar, .js-reveal .ma3-prompts .ac-badge { opacity: 0; }   /* cachés jusqu'à l'entrée (ma3-custom.js) */
@media (max-width: 767px) {
  .mpz-list { gap: 14px; }
  .mpz-bar { min-height: 52px; padding: 0 10px 0 16px !important; font-size: 15px; }
  .mpz-ico { width: 17px; height: 17px; }
  .mpz-send { width: 32px; height: 32px; }
}

/* ==========================================================================
   « PETIT BUDGET » [ma3_budget] : carte .ac-box + pastille .ac-badge (comme [ma3_livraison]), curseur de budget et prestations cochées
   Fond, marges et arrondi de la colonne : réglés dans Divi
   ========================================================================== */
.ma3-budget { position: relative; width: 100%; }
.ma3-budget .hsy-pause { top: -12px; right: 18px; z-index: 5; }   /* en haut à droite, comme partout */
.ma3-budget .ac-badge { right: auto; left: 18px; }   /* à gauche : la pastille « Pause » est en haut à droite */
.ma3-budget.is-paused .hsy-pause { opacity: 1; transform: none; }
.ma3-budget .mbg-box { padding: 24px 24px 24px; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; color: #000; }
.mbg-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; }
.mbg-lab { font-size: 15px; line-height: 1.2; color: #6e6e78; }
.mbg-val { padding: 7px 12px; border-radius: 99px; background: #9b72c6; color: #fff; font-size: 13px; line-height: 1; white-space: nowrap; }   /* capsule violette (charte) */
.mbg-track { position: relative; height: 6px; margin: 24px 0 10px; border-radius: 3px; background: #ececf0; }
.mbg-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 3px; background: #9b72c6; }
.mbg-knob { position: absolute; top: 50%; left: 100%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; border: 2px solid #9b72c6; box-shadow: 0 6px 14px -6px rgba(40, 30, 90, .5); }
.mbg-ends { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 1.2; color: #9a9aa6; }
.mbg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 0 !important; padding: 0 !important; list-style: none !important; }
.mbg-tile { display: flex; align-items: center; gap: 9px; min-height: 52px; margin: 0; padding: 8px 12px !important; border-radius: var(--gvid-1j485jt6w2, 8px); border: 1px dashed #d9d9e0; font-size: 15px; line-height: 1.2; color: #c4c4cc; transition: background-color .35s, border-color .35s, color .35s; }
.mbg-tile i { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #f4f4f4; color: #d0d0d6; transition: background-color .35s, color .35s; }
.mbg-tile svg { width: 11px; height: 11px; }
.mbg-tile.is-on { border: 1px solid #ececf0; background: #fff; color: #000; }
.mbg-tile.is-on i { background: var(--gcid-s53uwlrvje, #ecf8ef); color: var(--gcid-irhl82b2ls, #65a869); }   /* mêmes coches que la checklist */
.js-reveal .ma3-budget .mbg-box { opacity: 0; }   /* cachée jusqu'à l'entrée (ma3-custom.js) */
@media (max-width: 767px) {
  .mbg-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .mbg-tile { min-height: 46px; font-size: 14px; }
  .ma3-budget .mbg-box { padding: 22px 16px 16px; }
}

/* INTRO DE LA HOMEPAGE (12/11) : zoom dans le logo (ma3-custom.js, initHero). Voile noir dès le <head> (classe ma3-intro), relayé par le calque .intro-ov */
html.ma3-intro::after { content: ""; position: fixed; inset: 0; z-index: 2147483000; background: #000; pointer-events: none; }
.intro-ov { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; }
.intro-ov svg { display: block; }
.intro-ov--noir { background: #000; }
.intro-ov .io-bar { position: absolute; height: 3px; border-radius: 2px; background: #3a3a3a; overflow: hidden; opacity: 0; }   /* faux loader : barre grise de la largeur du M */
.intro-ov .io-bar b { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
/* Mode sombre : voile inversé (blanc), sinon le M découpé montre une page noire sur fond noir */
html.ma3-intro.ma3-dark::after, .ma3-dark .intro-ov--noir { background: #fff; }
.ma3-dark .intro-ov .io-bar { background: #d9d9d9; }
.ma3-dark .intro-ov .io-bar b { background: #000; }


/* ==========================================================================
   PALETTE D'UN PROJET [ma3_palette projet="amalthee"] : 4 barres de couleur, tailles de texte proportionnelles à la barre
   ========================================================================== */
.ma3-palette { display: grid; grid-template-columns: repeat(var(--pal-n, 4), minmax(0, 1fr)); gap: clamp(12px, 3.6vw, 72px); }   /* en vw, pas en % : un écart vertical en % déborde du cadre */
.ma3-palette .pal-col { position: relative; aspect-ratio: 420 / 655; container-type: inline-size; color: var(--t); }
.ma3-palette .pal-bar { position: absolute; inset: 0; background: var(--c); border-radius: var(--gvid-1j485jt6w2, 8px); }
.ma3-palette .is-light .pal-bar { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.ma3-palette .pal-in { position: relative; height: 100%; box-sizing: border-box; padding: 8cqi; display: flex; flex-direction: column; justify-content: space-between; }
.ma3-palette p, .ma3-palette dl, .ma3-palette dd { margin: 0; padding: 0; }
.ma3-palette .pal-hex { display: block; font-family: "Haffer-regular", Helvetica, Arial, sans-serif; font-size: max(12px, 5.6cqi); line-height: 1.2; letter-spacing: .02em; }
.ma3-palette .pal-name { display: block; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: max(14px, 9.6cqi); line-height: 1.05; letter-spacing: -.01em; margin-top: 1.5cqi; }
.ma3-palette .pal-codes { display: grid; gap: 4.5cqi; }
.ma3-palette dt { font-family: "Haffer-regular", Helvetica, Arial, sans-serif; font-size: max(12px, 5.6cqi); line-height: 1.2; }
.ma3-palette dd { font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: max(12px, 8cqi); line-height: 1.2; margin-top: 1cqi; }
@media (max-width: 767px) {
  .ma3-palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ==========================================================================
   COLLANT [classe ma3-sticky sur un module ou un groupe Divi] : reste en haut de l'écran tant que sa colonne défile
   (remplace le réglage « Position collante » de Divi, qui calcule ses limites une seule fois : faux quand la page change
   de hauteur, ex. filtres des références). Désactivé sur mobile.
   « clip » au lieu de « hidden » sur #page-container : coupe pareil, mais sans créer de zone de défilement qui empêcherait le collant.
   ========================================================================== */
@supports (overflow: clip) {
  #page-container { overflow: clip !important; display: flow-root; }
}
@media (min-width: 768px) {
  .ma3-sticky { position: sticky !important; top: 80px; align-self: flex-start; }
  .et_pb_column:has(> .ma3-sticky) { align-self: stretch; }
}


/* ==========================================================================
   FORMULAIRE DE CONTACT [ma3_contact] : encart blanc (champs et capsules gris clair) ; le fond de couleur derrière, le titre et les marges se règlent dans Divi
   ========================================================================== */
.ma3-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 16px; margin: 0; padding: clamp(24px, 3vw, 40px); border-radius: 12px; background: #fff; box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .35); color: #000; font-family: "Haffer-regular", Helvetica, Arial, sans-serif; }
.ma3-contact .is-full { grid-column: 1 / -1; }
.mct-f { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.mct-f > label, .mct-f > legend { padding: 0; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.2; color: #000; }
.mct-f > legend { margin-bottom: 8px; }
.mct-f small { font-family: "Haffer-regular", Helvetica, Arial, sans-serif; font-size: 13px; color: #4a4a4a; }
.mct-f input, .mct-f textarea { width: 100%; min-height: 54px; margin: 0; padding: 15px 16px; border: 0; border-radius: var(--gvid-1j485jt6w2, 8px); background: #f5f5f5; box-shadow: inset 0 0 0 1px transparent; font: inherit; font-size: 16px; line-height: 1.3; color: #000; transition: box-shadow .2s; }
.mct-f textarea { resize: vertical; line-height: 1.45; }
.mct-f input::placeholder, .mct-f textarea::placeholder { color: #767676; }
.mct-f input:focus, .mct-f textarea:focus { outline: none; box-shadow: inset 0 0 0 1px #000; }
.mct-f [aria-invalid="true"] { box-shadow: inset 0 0 0 1px #c0392b; }
.mct-err { margin: 0 !important; padding: 0 !important; font-size: 13px; line-height: 1.3; color: #c0392b; }
.mct-err:empty { display: none; }
.mct-chips { display: flex; flex-wrap: wrap; gap: 11px; }
.mct-chip { position: relative; cursor: pointer; }
.mct-chip input { position: absolute; opacity: 0; pointer-events: none; }
.mct-chip span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 99px; background: #f5f5f5; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1; color: #000; transition: background .25s, color .25s; }
.mct-chip span::before { content: ""; width: 0; height: 10px; margin-right: -8px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: width .25s, margin .25s; }
.mct-chip:hover span { background: #ececf0; }
.mct-chip input:checked + span { background: #9b72c6; color: #fff; }   /* capsules violettes, comme le reste du site */
.mct-chip input:checked + span::before { width: 10px; margin-right: 0; }
.mct-chip input:focus-visible + span { outline: 2px solid #9b72c6; outline-offset: 2px; }
.mct-consent { display: flex; gap: 12px; align-items: flex-start; font-family: "Haffer-regular", Helvetica, Arial, sans-serif !important; font-size: 14px !important; line-height: 1.45 !important; color: #4a4a4a !important; cursor: pointer; }
.mct-consent input { flex: none; width: 18px; height: 18px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: #9b72c6; box-shadow: none !important; }
.mct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mct-ts:empty { display: none; }
.mct-send { margin-top: 4px; }
.mct-send button { cursor: pointer; }   /* bouton identique aux liens .btn-sweep--black (liseré compris) */
.mct-send button[disabled] { opacity: .55; cursor: wait; }
.mct-status { margin: 0 !important; padding: 0 !important; font-size: 14px; line-height: 1.4; color: #c0392b; }
.mct-status:empty { display: none; }
.mct-done { outline: none; }
.mct-done p { margin: 0; padding: 0 !important; font-size: 16px; line-height: 1.45; color: #4a4a4a; }
.mct-done .mct-done-t { margin-bottom: 6px; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; color: #000; }
.ma3-contact.is-sent > :not(.mct-done) { display: none; }
/* après l'envoi : remerciement centré avec la coche verte ; la colonne de couleur se resserre (JS) */
.ma3-contact.is-sent { display: flex; align-items: center; justify-content: center; text-align: center; }
.ma3-contact.is-sent .mct-done { display: flex; flex-direction: column; align-items: center; max-width: 420px; }
.mct-done-ok { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; background: var(--gcid-s53uwlrvje, #ecf8ef); color: var(--gcid-irhl82b2ls, #65a869); }
.mct-done-ok svg { width: 22px; height: 22px; }
@media (max-width: 767px) { .ma3-contact { grid-template-columns: 1fr; padding: 22px 18px; } }
/* encart blanc posé sur le fond choisi dans Divi (comme les cartes [ma3_acces]) : il reste clair en mode sombre */

/* ----- Colonne de gauche de la page Contact [ma3_contact_infos] ----- */
.ma3-contact-infos { color: #000; }
.mci-person { display: flex; gap: 20px; align-items: center; }
.mci-photo { flex: none; display: block; width: 104px; height: 104px; overflow: hidden; border-radius: var(--gvid-1j485jt6w2, 8px); object-fit: cover; }
.mci-photo img { display: block; width: 100%; height: 100%; border-radius: var(--gvid-1j485jt6w2, 8px); object-fit: cover; }   /* Imagify met la classe sur <picture> (WebP) : on arrondit aussi l'image dedans */
.mci-pill { display: inline-block; padding: 6px 12px; border-radius: 99px; background: #9b72c6; color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1; }
.ma3-contact-infos p { padding: 0 !important; }
.ma3-contact-infos .mci-name { margin: 12px 0 2px; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 26px; line-height: 1.1; color: #000; }
.ma3-contact-infos .mci-role { margin: 0; font-size: 15px; line-height: 1.3; color: #4a4a4a; }
.mci-quote { margin: 32px 0 0; padding: 0; border: 0; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.4; color: #000; quotes: none; }   /* 20 px max */
.mci-quote::before, .mci-quote::after { content: none; }
.ma3-contact-infos .mci-tel { display: grid; gap: 4px; margin: 28px 0 0; padding-top: 24px !important; border-top: 1px solid rgba(0, 0, 0, .1); }   /* léger liseré sous la citation */
html.ma3-dark .ma3-contact-infos .mci-tel { border-top-color: rgba(255, 255, 255, .12); }
.ma3-contact-infos .mci-quote + .mci-lieux { margin-top: 28px; padding-top: 24px !important; border-top: 1px solid rgba(0, 0, 0, .1); }   /* sans téléphone : le liseré reste, au-dessus de la localisation */
html.ma3-dark .ma3-contact-infos .mci-quote + .mci-lieux { border-top-color: rgba(255, 255, 255, .12); }
.mci-tel span { font-size: 14px; line-height: 1.3; color: #4a4a4a; }
.mci-tel a { width: max-content; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; color: #000; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s cubic-bezier(.65, 0, .35, 1); }
.mci-tel a:hover, .mci-tel a:focus-visible { background-size: 100% 1px; }
.mci-cafe { margin-top: 40px; }
.ma3-contact-infos .mci-lieux { margin: 14px 0 0; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.4; color: #000; }   /* villes sur une ligne, sous le téléphone */
.mci-lieux span { font-family: "Haffer-regular", Helvetica, Arial, sans-serif; font-size: 14px; color: #4a4a4a; }
.mci-lieux i { font-style: normal; margin: 0; color: #9b72c6; }
html.ma3-dark .ma3-contact-infos .mci-lieux { color: #f2f0ec; } html.ma3-dark .mci-lieux span { color: #b4b4bb; }
html.ma3-dark .ma3-contact-infos, html.ma3-dark .ma3-contact-infos .mci-name, html.ma3-dark .mci-quote, html.ma3-dark .mci-tel a { color: #f2f0ec; }
html.ma3-dark .ma3-contact-infos .mci-role, html.ma3-dark .mci-tel span { color: #b4b4bb; }


/* ----- Mentions légales [ma3_mentions] : texte de lecture, sections en H2, tableau « intitulé | valeur » (aucun fond ni marge extérieure) ----- */
.ma3-mentions { max-width: 820px; color: #000; font-size: 16px; line-height: 1.6; }
.mlg-sec + .mlg-sec { margin-top: clamp(40px, 5vw, 64px); }
.ma3-mentions h2 { margin: 0 0 18px; padding: 0 !important; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; color: #000; }
.ma3-mentions p { margin: 0 0 14px; padding: 0 !important; color: #333; }
.ma3-mentions a { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.mlg-dl { margin: 0; border-top: 1px solid rgba(0, 0, 0, .1); }
.mlg-dl > div { display: grid; grid-template-columns: 240px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.mlg-dl dt { font-size: 14px; color: #4a4a4a; }
.mlg-dl dd { margin: 0; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; color: #000; }
.ma3-mentions .mlg-maj { margin-top: clamp(40px, 5vw, 64px); font-size: 14px; color: #4a4a4a; }
html.ma3-dark .ma3-mentions, html.ma3-dark .ma3-mentions h2, html.ma3-dark .mlg-dl dd, html.ma3-dark .ma3-mentions a { color: #f2f0ec; }
html.ma3-dark .ma3-mentions p, html.ma3-dark .mlg-dl dt, html.ma3-dark .ma3-mentions .mlg-maj { color: #b4b4bb; }
html.ma3-dark .mlg-dl, html.ma3-dark .mlg-dl > div { border-color: rgba(255, 255, 255, .12); }
@media (max-width: 767px) { .mlg-dl > div { grid-template-columns: 1fr; gap: 2px; } }

/* ----- Liens dans les textes du footer (ex. « Mentions légales ») : même couleur que le texte autour, souligné au survol ----- */
.et-l--footer .et_pb_text_inner a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s cubic-bezier(.65, 0, .35, 1); }
.et-l--footer .et_pb_text_inner a:hover, .et-l--footer .et_pb_text_inner a:focus-visible { background-size: 100% 1px; }
.mct-consent .mct-more { color: #000; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }   /* lien vers la politique de confidentialité, sous le formulaire */

/* ----- Projets « Bientôt disponible » : vignette floutée (fixe, pas d'animation), capsule à la place de la flèche, carte non cliquable ----- */
.pg-card.pg-soon .pg-media img { filter: blur(16px); transform: scale(1.12); }   /* agrandie pour que le flou ne laisse pas de bord clair */
.pg-card.pg-soon .pg-link { cursor: default; }
.ma3-pgrid .pg-soon-tag { flex: none; display: inline-block; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.1em; font-weight: 400; white-space: nowrap; }   /* comme les tags de la carte */
@media (max-width: 767px), (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) { .ma3-pgrid .pg-soon-tag { font-size: 13px; } }


/* ----- Page 404 [ma3_404] : aucun fond ni marge extérieure (réglés dans Divi) ----- */
.ma3-404 { position: relative; color: #000; }
.ma3-404 > * { position: relative; z-index: 1; }
.m404-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 0 !important; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.ma3-404 .m404-h1 { max-width: 15ch; margin: 0; padding: 0; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-weight: 500; font-size: var(--gvid-vsk401y7o3, clamp(2.5rem, 6vw, 6.35rem)); line-height: 1.02; letter-spacing: -.03em; color: #000; text-wrap: balance; }
.ma3-404 .m404-sub { max-width: 520px; margin: 26px 0 0; padding: 0 !important; font-size: var(--gvid-smj4en40ez, 20px); line-height: 1.45; color: #4a4a4a; }
.m404-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 40px; }
.m404-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.m404-links li { margin: 0; padding: 0; }
.m404-links a { font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 16px; color: #000; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s cubic-bezier(.65, 0, .35, 1); }
.m404-links a:hover, .m404-links a:focus-visible { background-size: 100% 1px; }
/* A : compteurs « 404 » */
.m404-big { display: flex; gap: .02em; margin: 0 0 clamp(18px, 3vw, 34px); font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: clamp(120px, 20vw, 280px); line-height: 1; letter-spacing: -.04em; }
.m404-col { display: block; height: 1em; overflow: hidden; }
.m404-strip { display: flex; flex-direction: column; }
.m404-strip span { display: block; height: 1em; text-align: center; }
.m404-col.is-v { color: #9b72c6; }
.js-reveal .ma3-hero .ma3-404 .m404-h1 { opacity: 1; }   /* dans une section .ma3-hero : le titre de la 404 n est pas animé par le hero, il a sa propre entrée */
/* B : fin du titre qui roule */
.m404-b .m404-h1 { max-width: 16ch; }
.m404-roll { position: relative; display: inline-grid; vertical-align: top; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; color: #9b72c6; }
.m404-w { grid-area: 1 / 1; white-space: nowrap; }
.m404-w:not(.is-on) { visibility: hidden; }
.m404-ghost { position: absolute !important; right: 0; bottom: -.12em; z-index: 0 !important; margin: 0; padding: 0 !important; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: clamp(140px, 26vw, 380px); line-height: .8; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(0, 0, 0, .1); pointer-events: none; user-select: none; }
/* C : trois pistes */
.m404-c .m404-h1 { max-width: 18ch; }
.m404-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.m404-card { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 220px; padding: 24px; border-radius: var(--gvid-1j485jt6w2, 8px); background: var(--gcid-rz4lyrnbbd, #ebedfc); color: #000; text-decoration: none; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.m404-card:nth-child(2) { background: var(--gcid-p5ip98bem3, #f5f5f5); }
.m404-card:nth-child(3) { background: var(--gcid-s53uwlrvje, #ecf8ef); }
.m404-card:hover, .m404-card:focus-visible { transform: translateY(-6px); }
.m404-n { font-size: 13px; color: #4a4a4a; }
.m404-tag { align-self: flex-start; padding: 6px 12px; border-radius: 99px; background: #9b72c6; color: #fff; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1; }
.m404-ct { margin-top: auto; max-width: 16ch; font-family: "Haffer-medium", Helvetica, Arial, sans-serif; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; }
.m404-go { position: absolute; top: 22px; right: 22px; display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: #000; color: #fff; }
.m404-go svg { width: 11px; height: 11px; }
.m404-c .m404-actions { margin-top: 32px; }
/* Mode sombre */
html.ma3-dark .ma3-404, html.ma3-dark .ma3-404 .m404-h1, html.ma3-dark .m404-links a { color: #f2f0ec; }
html.ma3-dark .ma3-404 .m404-sub, html.ma3-dark .m404-n { color: #b4b4bb; }
html.ma3-dark .m404-ghost { -webkit-text-stroke-color: rgba(255, 255, 255, .12); }
@media (max-width: 767px) {
  .m404-cards { grid-template-columns: 1fr; }
  .m404-card { min-height: 0; }
  .m404-ghost { display: none; }
}

/* ----- Compteur à rouleaux, version « douce » : chaque rouleau dans une case aux bords fondus ----- */
.counter-roll .cr-soft { overflow: visible; }
.counter-roll .cr-soft .cr-cell { display: block; height: 1.1em; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
