/* ==========================================================================
   Style « Qonto » (29/10, branche style-qonto) : validé sur l'accueil par Magali, étendu à tout le site (classe body.mdb-style-qonto).
   Repris du prototype mandyben-formation.pages.dev/v/qonto (mesures : _projet/docs/comparatif-qonto.md) :
   titres Inter Tight 600 resserrés et plus grands, texte Geist, gris chauds + anthracite + orange, sections aérées,
   hero photo sombre, domaines en bento photo, apparition douce au défilement.
   Noir pur à la demande de Benoit (--mdb-noir). Pas appliqué : libellés Geist Mono, zoom des images, reflet animé des boutons.
   ========================================================================== */

body.mdb-style-qonto {
	--mdb-noir: #000000;            /* noir pur (Benoit, 29/10) : titres, texte, boutons pleins, hero, blocs sombres, pied de page */
	--mdb-marine: var(--mdb-noir);
	--mdb-blanc: #FFFFFF;
	--mdb-creme: #F5F3EF;           /* sable clair, en alternance */
	--mdb-sable: #E9E4DC;           /* beige des tuiles et cartes */
	--mdb-carte: #F5F3EF;
	--mdb-ligne: #E6E2DA;
	--mdb-texte-2: #5C5A55;         /* gris chaud, contraste 6,8:1 sur blanc, 6,2:1 sur sable */
	--mdb-texte-sur-marine: #D9D6CF; /* 14,9:1 sur noir ; orange #F08C00 sur noir : 8,6:1 */
	--mdb-orange: #F08C00;          /* orange du prototype, texte anthracite dessus */
	--mdb-orange-pale: #FDF0DE;
	--mdb-font-texte: 'Geist', system-ui, sans-serif;
	--mdb-section: clamp(56px, 7.8vw, 112px);
	--mdb-max: 1400px;              /* conteneur 1240 px */
	--q-ease: cubic-bezier(.2, .8, .2, 1);
	font-size: 1.55rem;
	letter-spacing: -0.015em;
}

/* Titres : demi-gras, très resserrés, plus grands */
body.mdb-style-qonto :is(h1, h2, h3, h4) { font-weight: 600; }
body.mdb-style-qonto main h2 { font-size: clamp(3rem, 3.75vw, 5.4rem); line-height: 1.04; letter-spacing: -0.045em; }
body.mdb-style-qonto h3 { font-weight: 600; letter-spacing: -0.03em; }
body.mdb-style-qonto .mdb-zone-titre > p, body.mdb-style-qonto .mdb-zone-titre--action > div > p { font-size: 1.7rem; color: var(--mdb-texte-2); }
body.mdb-style-qonto :is(.mdb-tuile strong, .mdb-chiffre strong, .mdb-session-carte__date, .mdb-reassurance strong, .mdb-module__num) { font-weight: 600; }
body.mdb-style-qonto .mdb-chiffre strong { font-size: clamp(3.6rem, 4vw, 5.4rem); letter-spacing: -0.05em; }
body.mdb-style-qonto .mdb-carte h3 { font-size: 2.1rem; letter-spacing: -0.03em; }

/* Boutons : graisse 500, transition souple */
body.mdb-style-qonto .mdb-btn { font-weight: 500; transition: transform .35s var(--q-ease), box-shadow .35s var(--q-ease), background-color .3s, color .3s, border-color .3s; }
body.mdb-style-qonto .mdb-btn:hover { transform: translateY(-2px); }
body.mdb-style-qonto .mdb-nav .bricks-nav-menu > li > a, body.mdb-style-qonto .mdb-nav .bricks-nav-menu > li > .brx-submenu-toggle > a { font-weight: 500; }

/* Cartes : sans ombre, radius 16 */
body.mdb-style-qonto .mdb-carte { border-radius: 16px; }
body.mdb-style-qonto a.mdb-carte, body.mdb-style-qonto a.mdb-tuile { transition: transform .35s var(--q-ease), box-shadow .35s var(--q-ease); }

/* --------------------------------------------------------------------------
   Hero : photo sombre en pleine largeur, titre blanc, carte de recherche
   -------------------------------------------------------------------------- */
body.mdb-style-qonto .mdb-hero--photo { position: relative; isolation: isolate; overflow: hidden; background: var(--mdb-marine); color: #fff; padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(48px, 8vw, 120px); }
body.mdb-style-qonto .mdb-hero__fond { position: absolute; inset: 0; z-index: -2; }
body.mdb-style-qonto .mdb-hero__fond img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.mdb-style-qonto .mdb-hero--photo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .7) 45%, rgba(0, 0, 0, .42) 100%); }
body.mdb-style-qonto .mdb-hero--photo .mdb-grille { align-items: center; row-gap: 40px; }
body.mdb-style-qonto .mdb-hero--photo .mdb-hero__accroche { color: #fff; font-weight: 600; font-size: clamp(4.2rem, 4.3vw, 6.2rem); letter-spacing: -0.05em; line-height: 1.01; }
body.mdb-style-qonto .mdb-hero--photo .mdb-hero__h1 { color: #fff; font-family: var(--mdb-font-texte); font-weight: 500; font-size: 1.9rem; letter-spacing: -0.02em; }
body.mdb-style-qonto .mdb-hero--photo .mdb-hero__intro { color: rgba(255, 255, 255, .78); font-size: 1.8rem; }
body.mdb-style-qonto .mdb-hero--photo .mdb-hero__tel { color: rgba(255, 255, 255, .78); }
body.mdb-style-qonto .mdb-hero--photo .mdb-hero__tel .mdb-lien { color: #fff; }
body.mdb-style-qonto .mdb-hero--photo .mdb-btn--secondaire { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .5); }
body.mdb-style-qonto .mdb-hero--photo .mdb-btn--secondaire:hover { background: #fff; color: var(--mdb-marine); }
body.mdb-style-qonto .mdb-hero--photo .trait__ligne path { stroke: var(--mdb-orange); }
body.mdb-style-qonto .mdb-hero--photo .mdb-accueil__reperes .mdb-badge { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; }
body.mdb-style-qonto .mdb-hero--photo .mdb-accueil__reperes .mdb-badge--pale::before { background: var(--mdb-orange); }
/* Carte de recherche « Que voulez-vous apprendre ? » */
body.mdb-style-qonto .mdb-hero__carte { background: rgba(255, 255, 255, .97); color: var(--mdb-marine); border-radius: 20px; padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 16px; box-shadow: 0 1px 2px rgba(29, 29, 27, .04), 0 24px 48px -24px rgba(0, 0, 0, .45); }
body.mdb-style-qonto .mdb-hero__carte .mdb-recherche-accueil { max-width: none; }
body.mdb-style-qonto .mdb-hero__carte .mdb-recherche-accueil label { font-family: var(--mdb-font-titre); font-weight: 600; font-size: 2.2rem; letter-spacing: -0.03em; }
body.mdb-style-qonto .mdb-hero__carte .mdb-recherche-accueil__champ { border-color: var(--mdb-ligne); background: var(--mdb-creme); box-shadow: none; }
body.mdb-style-qonto .mdb-suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
body.mdb-style-qonto .mdb-suggestions a { display: inline-flex; align-items: center; min-height: 3.6rem; padding: 0 14px; border-radius: var(--mdb-r-pill); background: #fff; border: 1px solid var(--mdb-ligne); color: var(--mdb-marine); font-size: 1.4rem; font-weight: 500; text-decoration: none; transition: background-color .2s, border-color .2s, transform .35s var(--q-ease); }
body.mdb-style-qonto .mdb-suggestions a:hover { background: var(--mdb-creme); border-color: var(--mdb-marine); transform: translateY(-1px); }
body.mdb-style-qonto .mdb-suggestions a:focus-visible { outline: 3px solid var(--mdb-orange); outline-offset: 2px; }

/* Bandeau de confiance (chiffres clés) collé sous le hero */
body.mdb-style-qonto .mdb-accueil__reassurance { padding-top: 0; padding-bottom: 0; }
body.mdb-style-qonto .mdb-accueil__reassurance .mdb-chiffres { border-top: 0; padding: 32px 0; }

/* Sections sable en alternance */
body.mdb-style-qonto .mdb-section--creme { background: var(--mdb-creme); }
body.mdb-style-qonto .bloc-creme { border-radius: 20px; }

/* --------------------------------------------------------------------------
   Domaines en bento photo (accueil)
   -------------------------------------------------------------------------- */
.mdb-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(26rem, auto); gap: 16px; }
.mdb-bento__carte { position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--mdb-ligne); text-decoration: none; color: var(--mdb-marine); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s cubic-bezier(.2, .8, .2, 1); }
.mdb-bento__carte:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(29, 29, 27, .04), 0 24px 48px -24px rgba(29, 29, 27, .22); }
.mdb-bento__carte:focus-visible { outline: 3px solid var(--mdb-orange); outline-offset: 3px; }
.mdb-bento__tete { display: flex; flex-direction: column; gap: 4px; padding: 20px 56px 16px 20px; }
.mdb-bento__tete strong { font-family: var(--mdb-font-titre); font-weight: 600; font-size: 2.1rem; line-height: 1.1; letter-spacing: -0.035em; }
.mdb-bento__tete span { font-size: 1.4rem; color: var(--mdb-texte-2); }
.mdb-bento__fleche { position: absolute; top: 16px; right: 16px; width: 3.2rem; height: 3.2rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--mdb-creme); }
.mdb-bento__fleche svg { width: 1.6rem; height: 1.6rem; min-height: 0; transform: rotate(-45deg); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.mdb-bento__carte:hover .mdb-bento__fleche svg { transform: rotate(0deg); }
.mdb-bento__photo { margin-top: auto; flex: 1; min-height: 12rem; display: flex; }
.mdb-bento__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Deux grandes cartes (2 × 2) : 4 + 4 + 12 cases = 5 rangées pleines de 4 */
.mdb-bento > :nth-child(1), .mdb-bento > :nth-child(8) { grid-column: span 2; grid-row: span 2; }
.mdb-bento > :nth-child(1) .mdb-bento__tete strong, .mdb-bento > :nth-child(8) .mdb-bento__tete strong { font-size: clamp(2.6rem, 2.6vw, 3.6rem); }
@media (max-width: 991px) {
	.mdb-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(22rem, auto); }
	.mdb-bento > :nth-child(1), .mdb-bento > :nth-child(8) { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 479px) { .mdb-bento { gap: 10px; grid-auto-rows: minmax(19rem, auto); } .mdb-bento__tete { padding: 14px 48px 12px 14px; } .mdb-bento__tete strong { font-size: 1.8rem; } }

/* --------------------------------------------------------------------------
   Apparition douce au défilement : fondu + léger glissement, 450 ms, une seule fois (inc/style-qonto.php)
   Sans JavaScript ou avec prefers-reduced-motion : tout reste visible, sans mouvement.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
	html.mdb-reveal-actif .mdb-reveal { opacity: 0; transform: translateY(16px); transition: opacity .45s var(--q-ease, ease), transform .45s var(--q-ease, ease); transition-delay: var(--mdb-d, 0s); }
	html.mdb-reveal-actif .mdb-reveal.is-in { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Accueil : cartes plus denses et homogènes (retour de Magali, 29/10)
   -------------------------------------------------------------------------- */
/* Chiffres clés : rangée compacte avec séparateurs, au lieu de 3 chiffres éparpillés */
body.mdb-style-qonto .mdb-chiffres { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0; }
body.mdb-style-qonto .mdb-chiffre { padding: 4px 24px; border-left: 1px solid var(--mdb-ligne); }
body.mdb-style-qonto .mdb-chiffre:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 599px) { body.mdb-style-qonto .mdb-chiffre { border-left: 0; padding: 12px 0; border-top: 1px solid var(--mdb-ligne); } body.mdb-style-qonto .mdb-chiffre:first-child { border-top: 0; } }
/* Votre parcours : cartes plus compactes, flèche en ligne, gouttière 16 px */
body.mdb-style-qonto .mdb-parcours { gap: 16px; margin-top: 8px; }
body.mdb-style-qonto .mdb-parcours__carte { min-height: 0; padding: 22px 22px 52px; background: var(--mdb-creme); border: 1px solid var(--mdb-ligne); border-radius: 16px; }
body.mdb-style-qonto .mdb-parcours__carte strong { font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; }
body.mdb-style-qonto .mdb-parcours__fleche { left: 22px; bottom: 20px; }
/* Grilles de cartes : gouttière 16 px partout */
body.mdb-style-qonto :is(.mdb-cartes, .mdb-cartes--tendances, .mdb-sessions-accueil, .mdb-tuiles-domaines) { gap: 16px; }
/* Bento : rangées de hauteur égale pour un remplissage homogène */
body.mdb-style-qonto .mdb-bento { grid-auto-rows: 24rem; }
@media (max-width: 991px) { body.mdb-style-qonto .mdb-bento { grid-auto-rows: 21rem; } }
@media (max-width: 479px) { body.mdb-style-qonto .mdb-bento { grid-auto-rows: 18rem; } }
body.mdb-style-qonto .mdb-bento__photo { min-height: 0; }

/* --------------------------------------------------------------------------
   Rythme vertical : 112 px entre sections de contenu, mais les appels à l'action se lisent comme des respirations
   (bandeau Titres pro, Financer, bloc marine éléphant) : 56-64 px autour, padding interne compact
   -------------------------------------------------------------------------- */
body.mdb-style-qonto .mdb-section:has(> .mdb-conteneur > :is(.bloc-marine, .mdb-financer, .mdb-bandeau)) { padding-top: clamp(28px, 4.4vw, 64px); padding-bottom: clamp(28px, 4.4vw, 64px); }
body.mdb-style-qonto :is(.bloc-marine, .mdb-financer, .mdb-bandeau) { padding: clamp(24px, 3vw, 40px) clamp(20px, 3.4vw, 48px); }
body.mdb-style-qonto .bloc-marine { background: var(--mdb-noir); border-radius: 20px; }
body.mdb-style-qonto .mdb-financer { border-radius: 20px; }
body.mdb-style-qonto .mdb-bandeau-guide { margin-top: 20px; }
body.mdb-style-qonto .bloc-marine h2, body.mdb-style-qonto .mdb-financer h2, body.mdb-style-qonto .mdb-bandeau h2 { font-size: clamp(2.6rem, 2.8vw, 4rem); }

/* --------------------------------------------------------------------------
   Catalogue : tuiles de domaines horizontales, photo sur 1/4, titre et nombre de fiches sur 3/4 ; icône en secours
   -------------------------------------------------------------------------- */
body.mdb-style-qonto .mdb-tuiles-domaines { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
body.mdb-style-qonto .mdb-tuiles-domaines .mdb-tuile { display: grid; grid-template-columns: 1fr 3fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-content: center; padding: 0 14px 0 0; min-height: 7.6rem; overflow: hidden; background: #fff; border: 1px solid var(--mdb-ligne); border-radius: 14px; }
body.mdb-style-qonto .mdb-tuiles-domaines .mdb-tuile__photo, body.mdb-style-qonto .mdb-tuiles-domaines .mdb-tuile__visuel { grid-row: 1 / 3; align-self: stretch; margin: 0; }
body.mdb-style-qonto .mdb-tuiles-domaines .mdb-tuile__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.mdb-style-qonto .mdb-tuiles-domaines .mdb-tuile__visuel { display: flex; align-items: center; justify-content: center; background: var(--mdb-creme); }
body.mdb-style-qonto .mdb-tuiles-domaines .mdb-tuile strong { align-self: end; padding-top: 12px; font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
body.mdb-style-qonto .mdb-tuiles-domaines .mdb-tuile > span:last-child { align-self: start; padding-bottom: 12px; }
@media (max-width: 767px) { body.mdb-style-qonto .mdb-tuiles-domaines > * { width: 25rem; } }

/* Fiches accompagnement : page sur sable chaud, blocs internes blancs */
body.mdb-style-qonto.type-accompagnement { background: var(--mdb-creme); }
