/*
 * Les sections de l'accueil medelio pharma (blocs et patterns).
 *
 * Charge sur l'accueil et dans l'iframe de l'editeur, apres static/css/kit.css
 * dont il reprend les alias (--petrole, --sh-1...). Reference :
 * brief-rebranding/maquettes-medelio-pharma/maquette-home.html et le
 * document « comportements a integrer ».
 */

.gmf-blocs, .editor-styles-wrapper .is-root-container { overflow-x: clip; }

/* Le bouton du coeur porte les classes du kit (includes/lib/blocs.php) : la
   bibliotheque du coeur le veut en inline-block, le kit en flex. */
.wp-block-button__link.btn { display: inline-flex; }

/* ------------------------------------------------- Apparitions au scroll */

/* translate et scale independants de transform : un survol qui transforme
   l'element ne se bat pas avec son apparition. */
.rv, .rv-zoom {
  transition: opacity .7s var(--ease-out), translate .9s var(--ease-out), scale .9s var(--ease-out);
}
/* Une photo est visible d'emblee, sans attendre son apparition (retours du 28/10). */
html.js .rv:not(.is-in, :has(img)) { opacity: 0; translate: 0 26px; }
html.js .rv-zoom:not(.is-in, :has(img), img) { opacity: 0; scale: .96; }
html.rv-secours .rv, html.rv-secours .rv-zoom { opacity: 1 !important; translate: none !important; scale: none !important; }
/* Dans l'editeur, tout est visible : on y compose, on n'y anime pas. */
.editor-styles-wrapper .rv, .editor-styles-wrapper .rv-zoom { opacity: 1 !important; translate: none !important; scale: none !important; }

@media (prefers-reduced-motion: reduce) {
  html.js .rv:not(.is-in), html.js .rv-zoom:not(.is-in) { opacity: 1; translate: none; scale: none; }
}

/* ------------------------------------------------------ Pause globale */

/* Le bouton pause fige toute animation CSS de la page (WCAG 2.2.2) ; les
   boucles en JavaScript lisent le meme etat (resources/js/blocs/etat.ts). */
html.anim-off .gmf-blocs *, html.anim-off .gmf-blocs *::before, html.anim-off .gmf-blocs *::after {
  animation-play-state: paused !important;
}

/* -------------------------------------------------------- Mise en page */

.gmf-blocs { --gouttiere: clamp(12px, 2.4vw, 32px); --pb: var(--wp--custom--espace--bloc); --pc: var(--wp--custom--espace--carte); }
.gmf-blocs > * { box-sizing: border-box; max-width: var(--wp--custom--page--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }
@media (max-width: 560px) { .gmf-blocs { --pc: 20px; } }

/* ------------------------------------------------------------------- Hero */

.mp-hero { padding-top: 12px; }
.mp-hero__carte {
  position: relative; isolation: isolate; overflow: clip; display: flex; flex-direction: column;
  height: calc(100svh - 108px); max-height: 1000px; background: var(--blanc);
  border-radius: var(--r-carte); outline: 1px solid var(--sable); outline-offset: -1px;
}
.mp-hero__grille {
  flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(24px, 4vh, 56px) var(--pb);
}
.mp-hero__grille > *, .mp-hero__texte > * { margin: 0; }
.mp-hero__texte { position: relative; z-index: 2; }

.mp-hero__titre {
  font-size: var(--wp--preset--font-size--titre-hero); line-height: 1.02; letter-spacing: -.035em;
  font-weight: 300; color: var(--petrole); text-wrap: balance;
}
.mp-hero__titre :is(strong, mark) { font-weight: 700; }

.mp-hero__actions { margin-top: clamp(20px, 3.2vh, 32px) !important; gap: 10px 18px; }

/* Les attributs : Indication, Posologie, Effet recherche. */
.mp-poso { margin-top: clamp(20px, 3.6vh, 36px) !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.mp-poso > * { margin: 0; padding: 14px 16px 0 0; }
.mp-poso > * + * { padding-left: 16px; border-left: 1px solid var(--line); }
.mp-poso p { margin: 0; }
.mp-poso__dt { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.mp-poso__dd { margin-top: 4px !important; font-size: 14.5px; font-weight: 700; line-height: 1.4; color: var(--petrole); }

/* Le visuel : cercle jaune, disque rose, photo calee (resources/js/blocs/hero-visuel.ts). */
.mp-hv { position: relative; padding: 24px 0 36px; }
.mp-hv__photo { position: relative; height: min(580px, calc(100svh - 240px)); }
.mp-hv__img {
  position: absolute; bottom: 0; left: 50%; height: 90%; width: auto; max-width: none; translate: -46% 0;
  -webkit-mask: linear-gradient(to bottom, #000 82%, transparent 100%); mask: linear-gradient(to bottom, #000 82%, transparent 100%);
}
.mp-hv__soleil {
  position: absolute; z-index: -1; width: clamp(520px, 62vw, 880px); aspect-ratio: 1; border-radius: 50%;
  background: var(--jaune); top: 80%; left: -10%; transform: translateY(-50%);
}
.mp-hv__lune {
  position: absolute; z-index: -1; width: clamp(140px, 16vw, 220px); aspect-ratio: 1; border-radius: 50%;
  background: var(--rose); right: -4%; top: 2%;
}
.mp-hv__carte {
  position: absolute; z-index: 2; display: flex; gap: 12px; align-items: center; padding: 14px 16px;
  background: var(--blanc); border-radius: var(--r-interne); box-shadow: var(--sh-hover);
}
.mp-hv__carte b { display: block; color: var(--petrole); font-size: 15px; line-height: 1.25; }
.mp-hv__carte .k { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.mp-hv__carte .k2 { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.mp-hv__c1 { right: -6%; bottom: 4%; width: min(290px, 78%); animation: mp-flotte 6s ease-in-out infinite; }
.mp-hv__c1 > div { flex: 1; min-width: 0; }
.mp-hv__c2 { left: -9%; top: 4%; min-width: 230px; animation: mp-flotte 7s ease-in-out -2.5s infinite; }
.mp-hv__c2 b { font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.mp-hv__vignette { width: 52px; height: 52px; border-radius: var(--r-visuel); flex: none; transition: background .5s; }
.mp-hv__vignette--jaune { background: linear-gradient(135deg, var(--jaune-l), var(--sable-l)); }
.mp-hv__vignette--bleu-clair { background: linear-gradient(135deg, var(--bleu), var(--bleu-50)); }
.mp-hv__vignette--bleu { background: linear-gradient(135deg, var(--wp--preset--color--turquoise), var(--bleu)); }
.mp-hv__barre { display: block; height: 6px; margin-top: 8px; border-radius: 999px; background: color-mix(in srgb, var(--petrole) 8%, transparent); overflow: hidden; }
.mp-hv__barre i { display: block; height: 100%; border-radius: 999px; background: var(--petrole); transition: width .9s var(--ease-out); }
.mp-hv__ic { width: 44px; height: 44px; border-radius: 50%; background: var(--bleu-50); color: var(--petrole); display: grid; place-items: center; flex: none; }
.mp-hv__ic .ico { width: 22px; height: 22px; }
.mp-hv__swap { transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.mp-hv__swap.out { opacity: 0; transform: translateY(6px); }

/* Les cards flottent de 8 px. transform et non translate : le calage pose translate. */
@keyframes mp-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Arrivee : titre, boutons, attributs puis visuel, a 0,1 s d'ecart. En CSS et
   non au scroll : l'animation part au premier affichage, sans attendre
   l'hydratation (la photo du hero est l'element LCP). */
@keyframes mp-entree { from { opacity: 0; translate: 0 26px; } }
@keyframes mp-entree-zoom { from { opacity: 0; scale: .96; } }
.mp-hero__texte > * { animation: mp-entree .8s var(--ease-out) both; }
.mp-hero__texte > :nth-child(2) { animation-delay: .1s; }
.mp-hero__texte > :nth-child(3) { animation-delay: .2s; }
.mp-hero .mp-hv { animation: mp-entree-zoom .9s var(--ease-out) .3s both; }
.editor-styles-wrapper .mp-hero *, .editor-styles-wrapper .mp-hero { animation: none !important; }

@media (max-width: 980px) {
  .mp-hero__carte { height: auto; max-height: none; }
  .mp-hero__grille { grid-template-columns: minmax(0, 1fr); }
  .mp-hv__photo { height: clamp(300px, 72vw, 480px); }
  .mp-hv__img { height: 92%; }
  .mp-hv__soleil { left: 50%; top: 52%; width: 120%; transform: translate(-50%, -50%); }
  .mp-hv__lune { right: 0; top: -2%; }
  .mp-hv__c1 { display: none; }
  .mp-hv__c2 { left: 0; top: -6%; }
}
@media (max-width: 700px) {
  .mp-hero__actions { flex-direction: column; align-items: stretch; }
  .mp-hero__actions .wp-block-button, .mp-hero__actions .btn { width: 100%; }
}
@media (max-width: 560px) {
  .mp-poso { grid-template-columns: minmax(0, 1fr); }
  .mp-poso > * + * { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-height: 640px) { .mp-hero__carte { height: auto; } }

/* ------------------------------------------------------ Bandeau defilant */

.mp-defilant { position: relative; z-index: 6; margin-top: 0 !important; overflow: hidden; padding-block: 16px; background: var(--blanc); border-top: 1px solid var(--line); }
.mp-defilant__piste { display: inline-block; white-space: nowrap; font-size: 15px; font-weight: 700; color: var(--petrole); will-change: transform; }
.mp-defilant__piste i {
  display: inline-block; width: 16px; height: 7px; margin: 0 14px; vertical-align: middle; border-radius: 999px;
  background: linear-gradient(90deg, var(--petrole) 50%, var(--bleu) 50%);
}

/* ------------------------------------------------------------ Flacon 3D */
/* Le calque du flacon (flacon.ts) : plein ecran, au-dessus de la page, sous
   l'en-tete ; il ne capte rien. html.pre3d masque photo et cartes des le HTML,
   html.is3d dit que le flacon est la. Cercle et disque reprennent la place de
   la maquette 3D. */
.gmf-flacon { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 40; pointer-events: none; opacity: 0; transition: opacity .4s; }
.is3d .gmf-flacon { opacity: 1; }
.pre3d .mp-hv__photo, .pre3d .mp-hv__carte { visibility: hidden; }
.pre3d .mp-hv__soleil { top: 46%; left: 12%; }
.pre3d .mp-hv__lune { left: -8%; right: auto; top: auto; bottom: 4%; }
.is3d .mp-pause { position: relative; z-index: 41; }
/* Les chiffres a droite : le flacon se pose a leur gauche. */
.is3d .mp-chiffres { width: min(820px, 62%); margin-left: auto; min-height: clamp(300px, 36vh, 360px); align-items: center; }
.is3d .mp-chiffre__valeur { font-size: clamp(34px, 3.1vw, 46px); }

/* ---------------------------------------------------------- Chiffres cles */

.mp-chiffres-section { padding-top: 20px; }
/* Un titre masque (.sr) sort du flux : il ne doit pas ecarter le bloc suivant. */
.gmf-blocs .sr + * { margin-block-start: 0; }
.mp-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mp-chiffres > * { margin: 0; }
.mp-chiffre {
  display: grid; gap: 6px; padding: var(--pc); background: var(--blanc);
  border-radius: var(--r-carte); outline: 1px solid var(--sable); outline-offset: -1px;
}
.mp-chiffre__valeur {
  font-size: var(--wp--preset--font-size--chiffre); line-height: 1; font-weight: 900; letter-spacing: -.03em;
  color: var(--petrole); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.mp-chiffre__libelle { font-size: 15px; color: var(--ink-2); }

/* Mobile : une carte par chiffre, le chiffre au-dessus du texte. */
@media (max-width: 700px) { .mp-chiffres { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* ------------------------------------------------ Titres de section (Light + Bold) */

.gmf-blocs h2.wp-block-heading:not(.sr), .editor-styles-wrapper h2.wp-block-heading {
  margin: 0; max-width: 20ch; font-size: var(--wp--preset--font-size--titre-section);
  line-height: 1.04; letter-spacing: -.03em; font-weight: 300; color: var(--petrole); text-wrap: balance;
}
.gmf-blocs h2.wp-block-heading :is(strong, mark), .editor-styles-wrapper h2.wp-block-heading :is(strong, mark) { font-weight: 700; }

/* Une section ordinaire : la respiration du haut de la maquette. Le meme espace
   (espace--section) precede chaque titre de section, bande ou non (retours du 28/10). */
.mp-section { padding-top: var(--wp--custom--espace--section); }

/* ------------------------------------------------------------- Expert */

.mp-expert {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: stretch;
  padding: 8px; background: var(--blanc); border-radius: var(--r-carte); outline: 1px solid var(--sable); outline-offset: -1px;
}
.mp-expert > * { margin: 0; }
.mp-expert__texte { display: flex; flex-direction: column; gap: 18px; justify-content: center; padding: var(--pb) var(--pb) var(--pb) 0; }
.mp-expert__texte > * { margin: 0; }
.mp-chapeau { font-size: 17px; color: var(--ink-2); max-width: 56ch; }

/* Photo en medaillon : cercle jaune, disque rose, legende posee en bas. */
.wp-block-image.is-style-medaillon {
  position: relative; isolation: isolate; overflow: hidden; margin: 0; min-height: 560px;
  background: var(--sable-l); border-radius: var(--r-interne);
}
.wp-block-image.is-style-medaillon::before, .wp-block-image.is-style-medaillon::after { content: ""; position: absolute; z-index: -1; aspect-ratio: 1; border-radius: 50%; }
.wp-block-image.is-style-medaillon::before { width: 120%; left: -4%; top: 18%; background: var(--jaune); }
.wp-block-image.is-style-medaillon::after { width: 34%; right: -8%; top: 6%; background: var(--rose); }
.wp-block-image.is-style-medaillon img { position: absolute; inset: auto 0 0 0; width: 100%; height: auto; max-height: 100%; object-fit: contain; object-position: 50% 100%; }
.wp-block-image.is-style-medaillon figcaption {
  position: absolute; z-index: 1; left: 8px; right: 8px; bottom: 8px; margin: 0; padding: 14px 16px; text-align: left;
  display: grid; gap: 2px; background: var(--blanc); border-radius: var(--r-interne); box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--petrole-900) 40%, transparent);
  font-size: 13.5px; line-height: 1.4; color: var(--ink-2);
}
.wp-block-image.is-style-medaillon figcaption strong { display: block; font-size: 17px; color: var(--petrole); }

/* Citation a trait rose. */
.wp-block-quote.is-style-trait-rose {
  margin: 6px 0 0; padding: 0 0 0 20px; border: 0; border-left: 4px solid var(--rose);
  font-size: var(--wp--preset--font-size--citation); line-height: 1.3; font-weight: 700; font-style: italic; color: var(--petrole);
}
.wp-block-quote.is-style-trait-rose p { margin: 0; font-size: inherit; }

/* Pictos ronds : le SVG de la mediatheque sur un disque bleu pale. */
.wp-block-image.is-style-picto { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin: 0; border-radius: 50%; background: var(--bleu-50); }
.wp-block-image.is-style-picto img { width: 20px; height: 20px; }

.mp-pictos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; margin-top: 18px !important; }
.mp-pictos > * { margin: 0; }
.mp-picto { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.mp-picto > * { margin: 0; }
.mp-picto p { font-size: 15px; font-weight: 700; color: var(--petrole); }

@media (max-width: 980px) {
  .mp-expert { grid-template-columns: minmax(0, 1fr); }
  .mp-expert__texte { padding: calc(var(--pc) - 8px) calc(var(--pc) - 8px) var(--pc); }
  .wp-block-image.is-style-medaillon { min-height: 0; display: flex; flex-direction: column; }
  .wp-block-image.is-style-medaillon img { position: relative; inset: auto; max-width: 420px; margin: 24px auto 0; }
  .wp-block-image.is-style-medaillon figcaption { position: relative; left: auto; right: auto; bottom: auto; margin: -48px 8px 8px; }
}
@media (max-width: 560px) { .mp-pictos { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------- Bandes pleine largeur */

/* Une bande sort du conteneur de la page ; son contenu y rentre par .mp-in. */
.gmf-blocs > .mp-bande { max-width: none; padding-inline: 0; margin-top: var(--wp--custom--espace--section); }
.mp-in { box-sizing: border-box; max-width: var(--wp--custom--page--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }
.mp-bande--petrole { background: var(--petrole); color: var(--blanc); }
.mp-bande--petrole h2.wp-block-heading { color: var(--blanc) !important; }
.mp-bande--petrole :focus-visible { outline-color: var(--jaune); }

/* Paragraphe « Lien flèché » dans l'editeur (au rendu, ses liens prennent .c-link). */
.editor-styles-wrapper .is-style-lien a { font-weight: 700; font-size: 15px; color: var(--petrole); }
.mp-bande--petrole .is-style-lien a, .mp-bande--petrole .c-link { color: var(--blanc); }

/* --------------------------------------------------- Rail des familles */

.mp-rail-section { padding-block: 0; }
.mp-rail__colle { display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 3vw, 40px); padding-block: var(--wp--custom--espace--section); }
.mp-rail__colle > * { margin-block: 0; }
.mp-rail__entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; width: 100%; }
.mp-rail__entete > * { margin: 0; }
.mp-rail__sous { margin: 12px 0 0 !important; max-width: 56ch; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.5; color: var(--blanc); }
.mp-rail__entete .is-style-lien { flex: none; }

.mp-rail__bloc { --gut: calc(max((100vw - var(--wp--custom--page--largeur)) / 2, 0px) + var(--gouttiere)); }
/* Defilement au doigt, aimante sur chaque carte, sans barre ; les fleches font le reste (rail.ts). */
.mp-rail__vp {
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gut); scrollbar-width: none; padding-block: 24px 40px; margin-block: -24px -40px;
}
.mp-rail__vp::-webkit-scrollbar { display: none; }
.mp-rail__piste { display: flex; gap: 20px; width: max-content; padding-inline: var(--gut); }

.mp-rail__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; padding-inline: var(--gut); }
.mp-rail__fleche {
  width: 52px; height: 52px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--blanc); color: var(--petrole); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--petrole-900) 60%, transparent);
  transition: background-color .2s, color .2s, transform .2s var(--ease-out);
}
.mp-rail__fleche .ico { width: 22px; height: 22px; transition: transform .25s var(--ease-out); }
.mp-rail__fleche.is-prec .ico { rotate: 180deg; }
@media (hover: hover) {
  .mp-rail__fleche:hover:not([aria-disabled="true"]) { background: var(--jaune); }
  .mp-rail__fleche:hover:not([aria-disabled="true"]) .ico { transform: translateX(3px); }
  .mp-rail__fleche.is-prec:hover:not([aria-disabled="true"]) .ico { transform: translateX(-3px); }
}
.mp-rail__fleche:active:not([aria-disabled="true"]) { transform: scale(.94); }
.mp-rail__fleche:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; }
.mp-rail__fleche[aria-disabled="true"] { background: transparent; color: color-mix(in srgb, var(--blanc) 45%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--blanc) 25%, transparent); cursor: default; }
@media (max-width: 620px) { .mp-rail__fleche { width: 48px; height: 48px; } }
@media (forced-colors: active) { .mp-rail__fleche { border: 1px solid ButtonText; } }

.mp-fam {
  position: relative; flex: none; scroll-snap-align: start; width: clamp(272px, calc((100vw - 2 * var(--gut) - 60px) / 3.35), 360px); display: flex; flex-direction: column; padding: 12px;
  background: var(--blanc); border-radius: var(--r-carte); box-shadow: var(--wp--custom--ombre-sur-petrole--repos);
  transition: box-shadow .45s var(--ease-out);
}
.mp-fam:hover { box-shadow: var(--wp--custom--ombre-sur-petrole--survol); }
.mp-fam:has(a:focus-visible) { outline: 3px solid var(--jaune); outline-offset: 4px; }
.mp-fam a:focus-visible { outline: none; }
.mp-fam__ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-visuel); background: var(--fond); }
.mp-fam__in { position: absolute; inset: 0; transition: transform .7s var(--ease-out); }
.mp-fam:hover .mp-fam__in { transform: scale(1.06); }
.mp-fam__disque { position: absolute; z-index: 0; aspect-ratio: 1; height: 165%; left: 34%; top: 22%; border-radius: 50%; background: var(--disque); }
.mp-fam__img { position: absolute; z-index: 1; inset: 0 0 0 auto; width: auto; height: 100%; max-width: none; object-fit: fill; }
.mp-fam__img.is-plein { inset: 0; width: 100%; object-fit: cover; object-position: 50% 100%; }
.mp-fam__bd { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 16px calc(var(--pc) - 12px) calc(var(--pc) - 12px); }
.mp-fam__bd h3 { margin: 0; min-height: calc(2em * 1.12); font-size: 22px; line-height: 1.12; letter-spacing: -.015em; font-weight: 700; color: var(--petrole); }
.mp-fam__p { flex: 1; margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.mp-fam__cnt { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--petrole) !important; }
/* Toute la carte est cliquable : le lien couvre la carte. */
.mp-fam__cnt::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--r-carte); }
.mp-fam:hover .c-link .u { background-size: 0 1.5px; background-position: right bottom; }
.mp-fam:hover .c-link .ar { transform: translateX(4px); }

/* Les sept tuiles : fond et disque, dans theme.json. */
.mp-fam--bleu { --fond: var(--wp--custom--tuile--bleu--fond); --disque: var(--wp--custom--tuile--bleu--disque); }
.mp-fam--sable { --fond: var(--wp--custom--tuile--sable--fond); --disque: var(--wp--custom--tuile--sable--disque); }
.mp-fam--rose { --fond: var(--wp--custom--tuile--rose--fond); --disque: var(--wp--custom--tuile--rose--disque); }
.mp-fam--turquoise { --fond: var(--wp--custom--tuile--turquoise--fond); --disque: var(--wp--custom--tuile--turquoise--disque); }
.mp-fam--jaune { --fond: var(--wp--custom--tuile--jaune--fond); --disque: var(--wp--custom--tuile--jaune--disque); }
.mp-fam--peche { --fond: var(--wp--custom--tuile--peche--fond); --disque: var(--wp--custom--tuile--peche--disque); }
.mp-fam--lin { --fond: var(--wp--custom--tuile--lin--fond); --disque: var(--wp--custom--tuile--lin--disque); }


/* ------------------------------------------------ En-tete de section */

.mp-sh { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, 3vw, 40px) !important; }
.mp-sh > * { margin: 0; }
/* Le titre reste en haut de la rangee : un voisin plus haut que lui (bouton pause) ne le fait pas descendre. */
.mp-sh > .wp-block-heading { align-self: flex-start; }

/* ---------------------------------------------------------- Bouton pause */

.mp-pause {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--blanc); color: var(--petrole); box-shadow: inset 0 0 0 1px var(--sable);
}
.mp-pause:hover { box-shadow: inset 0 0 0 1.5px var(--petrole); }
.mp-pause .ico { width: 16px; height: 16px; }
.mp-pause__pl, html.anim-off .mp-pause__pa { display: none; }
html.anim-off .mp-pause__pl { display: block; }

/* -------------------------------------------------------------- Formats */

.mp-formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mp-formats > * { margin: 0; }
.mp-fmt {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 440px; border-radius: var(--r-carte); box-shadow: var(--sh-1);
}
.mp-fmt--petrole { background: var(--petrole); color: var(--blanc); }
.mp-fmt--bleu { background: var(--bleu); color: var(--petrole); }
.mp-fmt__art { position: relative; height: 270px; overflow: hidden; }
.mp-fmt__disque { position: absolute; z-index: 0; width: 340px; height: 340px; right: -90px; top: -130px; border-radius: 50%; background: var(--jaune); }
.mp-fmt--bleu .mp-fmt__disque { display: none; }
.mp-fmt--bleu::before {
  content: ""; position: absolute; z-index: 0; width: 340px; height: 340px; right: -110px; bottom: -150px;
  border-radius: 50%; background: var(--blanc); pointer-events: none;
}
.mp-fmt__img { position: absolute; z-index: 1; right: 0; width: auto; max-width: none; pointer-events: none; }
.mp-fmt__img.is-bas { bottom: 6%; height: 92%; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); }
.mp-fmt__img.is-haut { top: 0; height: 100%; -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 96%); mask-image: linear-gradient(to bottom, #000 45%, transparent 96%); }

/* La carte sujet : etiquette fixe, sujet qui change par fondu (formats.ts). */
.mp-fmt__sujet {
  position: absolute; z-index: 2; left: var(--pb); top: 40px; width: max-content; max-width: min(300px, 62%);
  display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--r-interne);
  background: color-mix(in srgb, var(--blanc) 95%, transparent); box-shadow: 0 24px 48px -24px color-mix(in srgb, var(--petrole-900) 60%, transparent);
}
.mp-fmt__etiquette { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 10.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.mp-fmt__swap { display: block; font-size: 14px; line-height: 1.3; color: var(--petrole); transition: opacity .36s var(--ease-out), transform .36s var(--ease-out); }
.mp-fmt__swap.out { opacity: 0; transform: translateY(6px); }
.mp-fmt__direct { width: 7px; height: 7px; border-radius: 50%; background: var(--rose-fonce); animation: mp-direct 1.6s ease-in-out infinite; }
@keyframes mp-direct { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.mp-fmt__bd { position: relative; z-index: 1; display: grid; gap: 10px; max-width: 52ch; padding: 0 var(--pb) var(--pb); }
.mp-fmt__bd > * { margin: 0; }
.mp-fmt__bd .kicker { margin-bottom: -8px; }
.mp-fmt--petrole .kicker { color: var(--jaune); }
.mp-fmt__bd h3 { font-size: var(--wp--preset--font-size--titre-format); line-height: 1.6; letter-spacing: -.025em; font-weight: 700; color: inherit; }
.mp-fmt__bd h3 a { color: inherit; text-decoration: none; }
.mp-fmt__etendu::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.mp-fmt__bd p { font-size: 15.5px; }
.mp-fmt--petrole .mp-fmt__bd p { color: var(--sur-fonce); }
.mp-fmt--bleu .mp-fmt__bd p { color: var(--ink); }
.mp-fmt .c-link { color: inherit; }
.mp-fmt:hover .c-link .u { background-size: 0 1.5px; background-position: right bottom; }
.mp-fmt:hover .c-link .ar { transform: translateX(4px); }
.mp-fmt:has(a:focus-visible) { outline: 3px solid var(--petrole); outline-offset: 4px; }
.mp-fmt a:focus-visible { outline: none; }

@media (max-width: 980px) {
  .mp-formats { grid-template-columns: minmax(0, 1fr); }
  /* Cartes sur une colonne : le rond blanc de la classe virtuelle reste dans le coin, sans toucher le texte. */
  .mp-fmt--bleu::before { width: 150px; height: 150px; right: -70px; bottom: -80px; }
}
@media (max-width: 560px) {
  .mp-fmt__sujet { display: none; }
  .mp-fmt__img.is-bas { height: 94%; }
}

/* ------------------------------------------------------------- Diagnostic */

.mp-bande--sable { background: var(--sable); }
.mp-bande--sable, .mp-bande--jaune { padding-block: var(--wp--custom--espace--section); }

.mp-diag { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.mp-diag > * { margin: 0; }
.mp-diag__gauche, .mp-ordo { position: sticky; top: 96px; }
.mp-diag__intro > * { margin: 0; }
.gmf-blocs .mp-diag h2.wp-block-heading, .editor-styles-wrapper .mp-diag h2.wp-block-heading { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.025em; max-width: none; }
.mp-diag__sous { margin-top: 10px !important; font-size: 15px; color: var(--ink-2); }

.mp-diag__sym { display: grid; gap: 8px; margin-top: 22px; }
.mp-sym {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 16px; border: 0;
  border-radius: var(--r-carte); background: var(--blanc); color: var(--petrole); box-shadow: inset 0 0 0 1px var(--line);
  font: 700 15px/1.35 var(--f); text-align: left; cursor: pointer;
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.mp-sym:hover { background: var(--sable-l); box-shadow: none; }
.mp-sym:active { transform: scale(.985); }
.mp-sym:focus-visible { outline: 3px solid var(--petrole); outline-offset: 2px; }
.mp-sym .box { border-color: var(--petrole); background: var(--blanc); color: var(--petrole); }
.mp-sym[aria-pressed="true"] { background: var(--petrole); color: var(--blanc); box-shadow: none; }
.mp-sym[aria-pressed="true"]:hover { background: var(--petrole-900); }
.mp-sym[aria-pressed="true"] .box { background: var(--blanc); border-color: var(--blanc); }
.mp-sym[aria-pressed="true"] .box .ico { stroke-dashoffset: 0; }

/* L'ordonnance, inclinee de 1 degre sur ordinateur (document de comportements). */
.mp-ordo {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 18px; min-height: 460px; padding: var(--pc);
  background: var(--blanc); border: 1px solid var(--line); border-radius: var(--r-carte);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--petrole) 5%, transparent), 0 24px 48px -28px color-mix(in srgb, var(--petrole-900) 25%, transparent);
}
@media (min-width: 981px) { .mp-ordo { rotate: 1deg; } }
.mp-ordo > * { margin: 0; }
.mp-ordo__h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mp-ordo__h > b { font-size: 18px; color: var(--petrole); }
.mp-ordo__r { text-align: right; font-size: 12.5px; color: var(--ink-2); }
.mp-ordo__r b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--petrole); }
.mp-ordo__pour { font-size: 14px; color: var(--ink-2); }
.mp-ordo__pour b { color: var(--petrole); }
.mp-ordo__rx { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.mp-ordo__rx li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 14px;
  border-radius: var(--r-interne); background: var(--sable-l); animation: mp-rx .45s var(--ease-out);
}
.mp-ordo__rx b { display: block; font-size: 15px; color: var(--petrole); }
.mp-ordo__rx li span { font-size: 13.5px; color: var(--ink-2); }
.mp-ordo__rx .c-link { font-size: 13.5px; }
.mp-ordo__rx .mp-ordo__vide {
  grid-template-columns: 1fr; padding: 26px 16px; background: transparent; border: 1.5px dashed var(--line-2);
  text-align: center; font-size: 14.5px; color: var(--ink-2); animation: none;
}
@keyframes mp-rx { from { opacity: 0; translate: 0 6px; } }
.mp-ordo__f { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.mp-ordo__compte { margin-right: auto; font-size: 13.5px; color: var(--ink-2); }
.mp-ordo__compte b { color: var(--petrole); font-variant-numeric: tabular-nums; }

/* La barre mobile du diagnostic. */
.mp-dgbar {
  position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px;
  border-radius: 999px; background: var(--petrole); color: var(--blanc); font-weight: 700; font-size: 15px;
  box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--petrole-900) 67%, transparent); transform: translateY(140%); transition: transform .35s var(--ease-out);
}
.mp-dgbar.is-on { transform: none; }
.mp-dgbar a {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--jaune); color: var(--petrole); text-decoration: none; font-size: 14.5px;
}
.mp-dgbar a:focus-visible { outline: 3px solid var(--blanc); outline-offset: 2px; }
@media (min-width: 981px) { .mp-dgbar { display: none; } }
.editor-styles-wrapper .mp-dgbar { display: none; }

/* Fenetre d'envoi de l'ordonnance : un <dialog> natif (focus piege, Echap,
   fond inerte). Les marges internes vivent sur .mp-envoi__in : un clic dont la
   cible est le <dialog> lui-meme est donc un clic sur le fond, qui ferme. */
.mp-envoi {
  /* margin: auto centre le <dialog> modal ; la remise a zero globale des marges l'annulait. */
  width: min(580px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0;
  border-radius: var(--r-carte); background: var(--blanc); color: var(--ink); box-shadow: var(--sh-2);
}
.mp-envoi::backdrop { background: color-mix(in srgb, var(--petrole-900) 55%, transparent); }
.mp-envoi__in { display: grid; gap: 18px; padding: clamp(22px, 4vw, 34px); }
.mp-envoi__h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.mp-envoi__h h3 { margin: 0; font-size: clamp(22px, 2.4vw, 26px); line-height: 1.2; color: var(--petrole); }
.mp-envoi__f { display: grid; gap: 16px; }
.mp-envoi__f[hidden], .mp-envoi__merci[hidden] { display: none; }
.mp-envoi p { margin: 0; }
.mp-envoi__rx { margin: 0; padding: 12px 18px 12px 38px; border-radius: var(--r-interne); background: var(--sable-l); font-weight: 700; color: var(--petrole); }
.mp-envoi__grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.mp-envoi__large { grid-column: 1 / -1; }
.mp-envoi .ck { align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.mp-envoi .ck a { position: relative; z-index: 2; color: var(--petrole); text-decoration: underline; text-underline-offset: 3px; }
.mp-envoi__etat { font-size: 14.5px; font-weight: 700; color: var(--err); }
.mp-envoi__etat:empty { display: none; }
.mp-envoi__f > .btn { justify-self: start; }
.mp-envoi__merci { display: grid; gap: 18px; justify-items: start; outline: none; }
/* Envoi en cours (diagnostic.ts) : la fleche cede la place a la roue, les champs s'attenuent. */
.mp-envoi__f[aria-busy="true"] .btn .ar { display: none; }
.mp-envoi__f[aria-busy="true"] :is(.mp-envoi__grille, .ck) { opacity: .55; pointer-events: none; transition: opacity .2s; }
@media (max-width: 560px) { .mp-envoi__grille { grid-template-columns: 1fr; } .mp-envoi__f > .btn { justify-self: stretch; } }

@media (max-width: 980px) {
  .mp-diag { grid-template-columns: minmax(0, 1fr); }
  .mp-diag__gauche, .mp-ordo { position: static; }
}

/* ----------------------------------------------------------- Financement */

.mp-fins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mp-fins > * { margin: 0; }
.mp-fi {
  --ph: 215px; --pt: 36px;
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 12px;
  min-height: 440px; padding: calc(var(--ph) + var(--pt) + 12px) var(--pb) var(--pb); border-radius: var(--r-carte);
}
.mp-fi > * { margin: 0; position: relative; z-index: 1; }
.mp-fi--a { background: var(--g-text); color: var(--blanc); }
.mp-fi--b { background: var(--bleu); color: var(--petrole); }
/* Disque decoratif qui deborde en haut a droite, derriere la photo. */
.mp-fi::before { content: ""; position: absolute; z-index: -1; width: 240px; aspect-ratio: 1; right: -100px; top: -136px; border-radius: 50%; background: var(--rose); }
.mp-fi--b::before { background: var(--blanc); }
/* Icone ronde en haut a gauche. */
.mp-fi > .mp-fi__ic { position: absolute; z-index: 2; top: var(--pb); left: var(--pb); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--blanc); }
.mp-fi__ic img { width: 24px; height: 24px; }
/* Photo detouree en haut a droite, fondue en bas et sur le bord droit. */
.mp-fi > .mp-fi__ph { position: absolute; z-index: 0; top: var(--pt); right: clamp(16px, 9%, 72px); height: var(--ph); width: auto; max-width: 80%; pointer-events: none; }
.mp-fi__ph img {
  height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: right top;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 98%), linear-gradient(to left, transparent 0, #000 14%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 55%, transparent 98%), linear-gradient(to left, transparent 0, #000 14%); mask-composite: intersect;
}
.mp-fi--a .kicker { color: var(--jaune); }
.mp-fi h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; color: inherit; }
.mp-fi p:not(.kicker) { font-size: 15.5px; max-width: 48ch; }
.mp-fi--a p:not(.kicker) { color: var(--sur-fonce); }
.mp-fi--b p:not(.kicker) { color: var(--ink); }
/* Logos des financeurs sur tuiles blanches, toujours cales en bas. */
.mp-fi__logos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto !important; }
.mp-fi__logos > * { margin: 0; }
.mp-fi__logos .wp-block-image { display: grid; place-items: center; height: 48px; padding: 0 12px; border-radius: var(--r-visuel); background: var(--blanc); }
.mp-fi__logos img { display: block; height: 36px; width: auto; }
.mp-fi-suite { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 48px) !important; }

/* ----------------------------------------------------------------- Avis */

.mp-bande--jaune { background: var(--jaune); }
.mp-avis-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mp-avis-grille > * { margin: 0; min-width: 0; }
.mp-avis { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: var(--pc); background: var(--blanc); border-radius: var(--r-carte); }
.mp-avis__etoiles { display: flex; gap: 2px; color: var(--or); }
.mp-avis__etoiles .ico { width: 17px; height: 17px; }
.mp-avis__etoiles .is-vide { opacity: .25; }
.mp-avis blockquote { flex: 1; margin: 0; padding: 0; border: 0; font-size: 15.5px; line-height: 1.6; font-style: normal; font-weight: 400; color: var(--ink); overflow-wrap: anywhere; }
.mp-avis figcaption { display: flex; align-items: center; gap: 12px; }
.mp-avis figcaption > div { min-width: 0; }
.mp-avis figcaption b { display: block; font-size: 15px; color: var(--petrole); }
.mp-avis figcaption span { font-size: 13.5px; color: var(--ink-2); }
.mp-avis__av { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bleu-50); color: var(--petrole) !important; font-weight: 900; font-size: 15px !important; }

/* ------------------------------------------------------ Appel a l'action */

.mp-cta {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px); align-items: center; padding: var(--pb); border-radius: var(--r-carte); background: var(--g-text); color: var(--blanc);
}
.mp-cta > * { margin: 0; }
.mp-cta::before {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: -180px; bottom: -300px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--bleu) 30%, transparent) 0%, transparent 70%); transition: transform 1.2s var(--ease-out);
}
.mp-cta:hover::before { transform: translate(80px, -40px); }
.mp-cta__texte > * { margin: 0; }
.gmf-blocs .mp-cta h2.wp-block-heading, .editor-styles-wrapper .mp-cta h2.wp-block-heading { margin-top: 0; color: var(--blanc); font-size: clamp(32px, 4vw, 52px); line-height: 1.05; max-width: 17ch; }
.mp-cta__texte p { margin-top: 16px !important; font-size: 17px; color: var(--sur-fonce); max-width: 46ch; }
.mp-cta__texte .wp-block-buttons { margin-top: 28px !important; }

.mp-feuillet {
  position: relative; padding: 24px 24px 20px 32px; border-radius: var(--r-carte); background: var(--blanc); color: var(--ink);
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--ink) 60%, transparent);
  -webkit-mask: radial-gradient(circle 6px at 0 12px, #0000 98%, #000) 0 0 / 100% 24px repeat-y;
  mask: radial-gradient(circle 6px at 0 12px, #0000 98%, #000) 0 0 / 100% 24px repeat-y;
}
.mp-feuillet__h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--petrole); }
.mp-feuillet__h b { font-size: 17px; color: var(--petrole); }
.mp-feuillet__h span { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.mp-feuillet dl { display: grid; margin: 0; }
.mp-feuillet dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.mp-feuillet dt { padding-top: 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.mp-feuillet dd { margin: 0; font-weight: 700; color: var(--petrole); }
.mp-feuillet__oui { background: linear-gradient(transparent 60%, var(--jaune) 60%); }
.mp-feuillet__f { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 88px; margin-top: 14px; }
.mp-feuillet__sig { font: italic 700 18px/1.1 var(--f); color: var(--petrole); }
.mp-feuillet__tampon {
  display: grid; place-items: center; align-content: center; gap: 2px; width: 88px; height: 88px; border-radius: 50%;
  box-shadow: inset 0 0 0 2.5px var(--teal-ui), inset 0 0 0 6px var(--blanc), inset 0 0 0 7.5px var(--teal-ui);
  color: var(--teal-ui); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-12deg); opacity: .9;
}
.mp-feuillet__tampon .ico { width: 26px; height: 26px; }

@media (max-width: 980px) {
  .mp-fins, .mp-avis-grille, .mp-cta { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .mp-fi { --ph: 180px; --pt: 28px; } }

/* ------------------------------------------------------------------- FAQ */

.mp-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.mp-faq > * { margin: 0; }
.mp-faq__gauche { position: sticky; top: 96px; }
.mp-faq__gauche > * { margin: 0; }
.mp-faq__gauche p:not(.is-style-lien) { margin-top: 16px !important; color: var(--ink-2); }
.mp-faq__gauche .is-style-lien { margin-top: 8px !important; }
.mp-faq__gauche .mp-faq__sous { max-width: 40ch; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; }
.mp-faq__gauche .mp-faq__plus { margin-top: 28px !important; font-weight: 700; color: var(--petrole); }
.mp-faq__liste { display: grid; gap: 10px; counter-reset: faq; }
.mp-faq__liste > * { margin: 0; }

/* Accordeon natif : plusieurs questions ouvertes a la fois, sans JavaScript. */
.wp-block-details.is-style-faq {
  counter-increment: faq; background: var(--blanc); border-radius: var(--r-carte); box-shadow: var(--sh-1);
  outline: 1px solid var(--sable); outline-offset: -1px; transition: box-shadow .45s var(--ease-out);
  interpolate-size: allow-keywords;
}
.wp-block-details.is-style-faq[open] { box-shadow: var(--sh-2); }
.wp-block-details.is-style-faq > summary {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 40px; gap: 10px; align-items: center; padding: 18px var(--pc);
  list-style: none; cursor: pointer; border-radius: var(--r-carte); font: 700 18px/1.35 var(--f); color: var(--petrole);
}
.wp-block-details.is-style-faq > summary::-webkit-details-marker { display: none; }
/* Numero decoratif, masque aux lecteurs d'ecran (texte alternatif vide). */
.wp-block-details.is-style-faq > summary::before {
  content: counter(faq, decimal-leading-zero); content: counter(faq, decimal-leading-zero) / "";
  font-size: 15px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums;
}
/* Pastille « + » : sable clair au repos, rose clair au survol, rose ouverte ; le + tourne en x. */
.wp-block-details.is-style-faq > summary::after {
  content: ""; width: 40px; height: 40px; border-radius: 50%;
  background:
    linear-gradient(var(--petrole), var(--petrole)) center / 14px 2px no-repeat,
    linear-gradient(var(--petrole), var(--petrole)) center / 2px 14px no-repeat,
    var(--sable-l);
  transition: background-color .3s, transform .45s var(--ease-out);
}
.wp-block-details.is-style-faq > summary:hover::after { background-color: var(--rose-l); }
.wp-block-details.is-style-faq > summary:hover::after {
  background: linear-gradient(var(--petrole), var(--petrole)) center / 14px 2px no-repeat, linear-gradient(var(--petrole), var(--petrole)) center / 2px 14px no-repeat, var(--rose-l);
}
.wp-block-details.is-style-faq[open] > summary::after {
  transform: rotate(135deg);
  background: linear-gradient(var(--petrole), var(--petrole)) center / 14px 2px no-repeat, linear-gradient(var(--petrole), var(--petrole)) center / 2px 14px no-repeat, var(--rose);
}
.wp-block-details.is-style-faq > summary:focus-visible { outline: 3px solid var(--petrole); outline-offset: 2px; }
/* Depliage en hauteur (0,45 s) la ou le navigateur sait animer ::details-content ; ailleurs, instantane. */
.wp-block-details.is-style-faq::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete; }
.wp-block-details.is-style-faq[open]::details-content { block-size: auto; }
.wp-block-details.is-style-faq > :not(summary) { margin: 0; padding: 0 var(--pc) var(--pc) calc(var(--pc) + 54px); font-size: 15.5px; color: var(--ink-2); max-width: 68ch; }
/* Reponse en plusieurs paragraphes ou puces : ecart de texte, pas de carte. */
.wp-block-details.is-style-faq > :not(summary, :last-child) { padding-bottom: .75em; }

@media (max-width: 980px) {
  .mp-faq { grid-template-columns: minmax(0, 1fr); }
  .mp-faq__gauche { position: static; }
}
@media (max-width: 720px) { .wp-block-details.is-style-faq > :not(summary) { padding-left: var(--pc); } }

/* ------------------------------------------------------------ Newsletter */

/* Bande bleue, disque blanc en bas a gauche et rond jaune en haut a droite (maquette). */
.mp-nl {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: var(--r-carte); background: var(--bleu); color: var(--petrole);
}
.mp-nl > * { margin: 0; }
.mp-nl::before, .mp-nl::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.mp-nl::before { width: 300px; height: 300px; left: -110px; bottom: -170px; background: var(--blanc); opacity: .35; }
.mp-nl::after { width: 120px; height: 120px; right: -34px; top: -42px; background: var(--jaune); }
.mp-nl__texte > * { margin: 0; }
.gmf-blocs .mp-nl h2.wp-block-heading, .editor-styles-wrapper .mp-nl h2.wp-block-heading { margin-top: 0; color: var(--petrole); font-size: clamp(30px, 3.6vw, 48px); line-height: 1.06; }
.mp-nl__texte p { margin-top: 16px !important; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.55; max-width: 46ch; }

.mp-nl__f { display: grid; gap: 10px; padding: clamp(20px, 2.4vw, 28px); border-radius: 16px; background: var(--blanc); box-shadow: 0 24px 48px -28px color-mix(in srgb, var(--petrole-900) 40%, transparent); }
.mp-nl__f p { margin: 0; }
.mp-nl__lbl { font-weight: 700; font-size: 15px; color: var(--ink); }
.mp-nl__ligne { display: flex; flex-wrap: wrap; gap: 10px; }
.mp-nl__ligne .input { flex: 1 1 220px; min-width: 0; border-radius: 999px; }
.mp-nl__ligne .btn { flex: none; }
.mp-nl__f .ck { align-items: flex-start; min-height: 0; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.mp-nl__f .ck em { font-style: normal; color: var(--ink-2); }
.mp-nl__f .ck > input, .mp-nl__f .ck .box { width: 20px; height: 20px; }
.mp-nl__f .ck .box { margin-top: 1px; border-width: 1.5px; }
.mp-nl__err { font-size: 13.5px; color: var(--err); }
/* Choix du pixel de suivi : a la taille du texte de la newsletter. */
.mp-nl__f .choix legend { font-size: 13.5px; }
.mp-nl__f .choix .help { font-size: 12.5px; }
.mp-nl__poso { margin-top: 4px !important; font-size: 14px; color: var(--ink-2); }
.mp-nl__poso b { color: var(--petrole); }
.mp-nl__rgpd { font-size: 12.5px; color: var(--ink-2); }
.mp-nl__rgpd a { color: var(--petrole); text-decoration: underline; text-underline-offset: 2px; }
.mp-nl__ok { padding: 14px 16px; border-radius: 12px; background: var(--bleu-50); color: var(--petrole); font-size: 15px; outline: none; }
.mp-nl__f[hidden], .mp-nl__f [hidden] { display: none; }
.mp-nl__f.is-done > :not(.mp-nl__ok) { display: none; }
.mp-nl__f[aria-busy="true"] .btn .ar { opacity: .4; }

@media (max-width: 980px) { .mp-nl { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .mp-nl__ligne .input, .mp-nl__ligne .btn { flex: 1 1 100%; justify-content: center; }
  .mp-nl::after { width: 84px; height: 84px; right: -28px; top: -30px; }
}
