/*
Theme Name: Lucas Gitano Family
Theme URI: https://melodigitale.fr
Description: Thème enfant de Twenty Twenty-Five pour Lucas Gitano Family, prêt pour le plugin Mélodigitale.
Template: twentytwentyfive
Version: 1.0.0
Author: VG Production
Author URI: https://melodigitale.fr
Text Domain: melodigitale-ecole
Requires at least: 6.6
Requires PHP: 7.4
*/

/*
 * Ce fichier ne contient aucune couleur ni police écrite en dur : tout vient de la palette et des polices
 * de theme.json (générées depuis charte.json). Pour changer l'habillage, modifier charte.json, jamais ce fichier.
 *
 * Sommaire
 *   1. Variables lues par le plugin Mélodigitale
 *   2. Base (texte, liens, focus, ancres)
 *   3. Sections et cartes
 *   4. Boutons
 *   5. Textes (petit titre, lien souligné, listes, citations, FAQ)
 *   6. Emplacements de photos
 *   7. En-tête et pied de page
 *   8. Pages de texte et articles
 *   9. Blog (cartes, pagination, thèmes)
 *  10. Mobile
 */

/* ═════ 1. Variables lues par le plugin Mélodigitale ═════ */
:root {
	--mdl-on-or: var(--wp--preset--color--sur-or);              /* texte posé sur l'accent */
	--mdl-on-noir: var(--wp--preset--color--sur-sombre);        /* texte posé sur le sombre */
	--mdlms-head-bg: var(--wp--preset--color--creme);           /* en-tête de l'espace élève : fond */
	--mdlms-head-fg: var(--wp--preset--color--noir);            /* … texte */
	--mdlms-head-accent: var(--wp--preset--color--or);          /* … accent */
	--wp--preset--font-family--instrument-serif: var(--wp--preset--font-family--titres); /* ancien nom encore lu par le plugin */
	--filet: var(--wp--preset--color--ivoire);
}

/* ═════ 2. Base ═════ */
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:is(h1, h2, h3) em { color: var(--wp--preset--color--or-texte); }

a { text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 150ms ease; }
:where(a, button, summary, input, select, textarea, .wp-element-button):focus-visible { outline: 2px solid var(--wp--preset--color--or); outline-offset: 2px; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Sections pleine largeur collées les unes aux autres */
:is(main, .wp-block-post-content) > .alignfull { margin-block-start: 0; margin-block-end: 0; }
header.wp-block-template-part, footer.wp-block-template-part { margin-block-start: 0; }

/* ═════ 3. Sections et cartes ═════ */
/* Sur fond sombre (section-sombre, carte-sombre) : titres clairs, accent éclairci */
:is(.is-style-section-sombre, .is-style-carte-sombre) :is(h1, h2, h3, h4) em,
:is(.is-style-section-sombre, .is-style-carte-sombre) .is-style-petit-titre { color: var(--wp--preset--color--or-clair); }
:is(.is-style-section-sombre, .is-style-carte-sombre) :where(a, button, summary, .wp-element-button):focus-visible { outline-color: var(--wp--preset--color--or-clair); }
:is(.is-style-section-sombre, .is-style-carte-sombre) { --filet: var(--wp--preset--color--filet-sombre); }
:is(.is-style-section-sombre, .is-style-carte-sombre) .has-gris-texte-color { color: var(--wp--preset--color--sur-sombre) !important; }

/* Une grille placée dans une pile (groupe vertical) prend toute la largeur : sinon elle se mesure comme si elle était de largeur nulle */
.is-layout-flex > :is(.is-layout-grid, .is-layout-constrained) { width: 100%; }

/* Cartes : hauteur égale dans une grille, un lien dans le titre rend toute la carte cliquable */
:is(.is-style-carte, .is-style-carte-sombre, .is-style-carte-accent) { position: relative; height: 100%; }
:is(.is-style-carte, .is-style-carte-sombre, .is-style-carte-accent) > :is(.is-style-lien-fleche, .wp-block-buttons):last-child { margin-top: auto !important; }
.carte-cliquable { transition: transform 150ms ease, box-shadow 150ms ease; }
.carte-cliquable:hover { transform: translateY(-2px); box-shadow: var(--wp--preset--shadow--douce); }
.carte-cliquable :is(h2, h3) a { color: inherit; text-decoration: none; }
.carte-cliquable :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* Carte mise en avant (formule recommandée) */
.is-style-carte.mise-en-avant { border-color: var(--wp--preset--color--or); box-shadow: 0 0 0 1px var(--wp--preset--color--or), var(--wp--preset--shadow--douce); }

/* ═════ 4. Boutons ═════ */
.wp-element-button, .wp-block-button__link { transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.wp-block-button.is-style-contour .wp-block-button__link:hover { background: var(--wp--preset--color--noir); border-color: var(--wp--preset--color--noir); color: var(--wp--preset--color--creme); }
:is(.is-style-section-sombre, .is-style-carte-sombre) .wp-block-button.is-style-contour .wp-block-button__link:hover { background: var(--wp--preset--color--creme); border-color: var(--wp--preset--color--creme); color: var(--wp--preset--color--noir); }

/* ═════ 5. Textes ═════ */
/* Lien souligné « Découvrir → » */
p.is-style-lien-fleche a { display: inline-block; padding-bottom: 3px; border-bottom: 1px solid currentColor; }
p.is-style-lien-fleche a:hover { color: var(--wp--preset--color--or-texte); }
:is(.is-style-section-sombre, .is-style-carte-sombre) p.is-style-lien-fleche a:hover { color: var(--wp--preset--color--or-clair); }

/* Numéro d'étape */
p.is-style-numero { font-family: var(--wp--preset--font-family--titres); font-size: var(--wp--preset--font-size--x-large); line-height: 1; color: var(--wp--preset--color--or-texte); }
:is(.is-style-section-sombre, .is-style-carte-sombre) p.is-style-numero { color: var(--wp--preset--color--or-clair); }

/* Liste à coches */
ul.is-style-coches { list-style: none; padding-left: 0; }
ul.is-style-coches li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--filet); margin: 0 !important; }
ul.is-style-coches li:first-child { border-top: 0; }
ul.is-style-coches li::before { content: "✓"; position: absolute; left: 2px; font-weight: 700; color: var(--wp--preset--color--or-texte); }
:is(.is-style-section-sombre, .is-style-carte-sombre) ul.is-style-coches li::before { color: var(--wp--preset--color--or-clair); }

/* Citation (témoignages) */
.wp-block-quote { font-style: normal; }
.wp-block-quote p { margin: 0; }
.wp-block-quote cite { display: block; margin-top: var(--wp--preset--spacing--s); font-family: var(--wp--preset--font-family--texte); font-size: var(--wp--preset--font-size--small); font-style: normal; color: var(--wp--preset--color--gris-texte); }
.wp-block-quote cite strong { color: var(--wp--preset--color--noir); }
.wp-block-quote.is-style-sans-filet { border: 0; padding-left: 0; }

/* FAQ (bloc Détails) */
.wp-block-details { border-top: 1px solid var(--filet); padding: 0; }
.wp-block-details:last-of-type { border-bottom: 1px solid var(--filet); }
.wp-block-details summary { display: flex; justify-content: space-between; align-items: center; gap: var(--wp--preset--spacing--m); padding: 20px 0; cursor: pointer; list-style: none; font-weight: 600; color: var(--wp--preset--color--noir); }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--wp--preset--color--or-texte); }
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details > :not(summary) { color: var(--wp--preset--color--gris-texte); }
.wp-block-details > :last-child { margin-bottom: 20px; }

/* ═════ 6. Emplacements de photos ═════ */
.wp-block-image.photo-ronde img { border-radius: 50%; }
.wp-block-image.photo-arche img { border-radius: 400px 400px var(--wp--custom--arrondi) var(--wp--custom--arrondi); }

/* ═════ 7. En-tête et pied de page ═════ */
.entete-site { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--wp--preset--color--creme) 94%, transparent) !important; backdrop-filter: blur(10px); }
.admin-bar .entete-site { top: 32px; }
@media (max-width: 782px) { .admin-bar .entete-site { top: 46px; } }
.entete-site .wp-block-navigation a:hover { color: var(--wp--preset--color--or-texte); }
.entete-site .wp-block-navigation .current-menu-item > a { box-shadow: inset 0 -2px 0 var(--wp--preset--color--or); }
/* Avec un logo, le nom du site s'efface (il reste lu par les lecteurs d'écran via le texte alternatif du logo) */
.wp-block-site-logo:has(img) + .wp-block-site-title { display: none; }
.lien-connexion a { color: var(--wp--preset--color--gris-texte); text-decoration: none; font-weight: 500; }
.lien-connexion a:hover { color: var(--wp--preset--color--noir); }

.pied-site a { color: var(--wp--preset--color--sur-sombre); text-decoration: none; }
.pied-site a:hover { color: var(--wp--preset--color--creme); text-decoration: underline; }
.pied-site .wp-block-site-title a { color: var(--wp--preset--color--creme); }
.pied-site .pied-bas { color: var(--wp--preset--color--sur-sombre); opacity: .85; }

/* ═════ 8. Pages de texte et articles ═════ */
:is(.contenu-texte, .contenu-article) :where(ul, ol):not(.is-style-coches) { padding-left: var(--wp--preset--spacing--m); }
:is(.contenu-texte, .contenu-article) li + li { margin-top: var(--wp--preset--spacing--xs); }
:is(.contenu-texte, .contenu-article) .wp-block-table :is(th, td) { border-color: var(--filet); padding: 12px; text-align: left; vertical-align: top; }
.contenu-texte h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); }
.contenu-texte h3 { font-family: var(--wp--preset--font-family--texte); font-size: var(--wp--preset--font-size--body); font-weight: 600; }
.contenu-article h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); }

/* ═════ 9. Blog ═════ */
.ariane, .meta-article { color: var(--wp--preset--color--gris-texte); }
.ariane a { color: inherit; text-decoration: none; }
.ariane a:hover { color: var(--wp--preset--color--noir); }
.post-categorie, .post-categorie a { font-size: var(--wp--preset--font-size--eyebrow); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--wp--preset--color--or-texte); }

.carte-article { overflow: hidden; }
.carte-article .wp-block-post-featured-image { margin: 0; }
.carte-article .wp-block-post-featured-image img { border-radius: 0; }
.carte-article .post-categorie { position: relative; z-index: 1; }
.carte-article .wp-block-post-excerpt__excerpt { margin: 0; color: var(--wp--preset--color--gris-texte); }
.carte-article .wp-block-post-title a { color: inherit; text-decoration: none; }
.carte-article .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.carte-article > .corps-carte { flex: 1; }
.wp-block-post-template.is-layout-grid > li { display: flex; }
.wp-block-post-template.is-layout-grid > li > .carte-article { width: 100%; }

.pagination-blog { align-items: center; margin-top: var(--wp--preset--spacing--xl); padding-top: var(--wp--preset--spacing--l); border-top: 1px solid var(--filet); }
.pagination-blog .wp-block-query-pagination-numbers { display: flex; gap: 8px; }
.pagination-blog .page-numbers { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border: 1px solid var(--filet); border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--wp--preset--color--noir); }
.pagination-blog a.page-numbers:hover { border-color: var(--wp--preset--color--noir); }
.pagination-blog .page-numbers.current { background: var(--wp--preset--color--noir); border-color: var(--wp--preset--color--noir); color: var(--wp--preset--color--creme); }
.pagination-blog .page-numbers.dots { border: 0; }
.pagination-blog a { font-weight: 600; text-decoration: none; }

.liste-themes { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.liste-themes li a { display: inline-block; padding: 10px 18px; border: 1px solid var(--wp--preset--color--noir); border-radius: 999px; color: var(--wp--preset--color--noir); text-decoration: none; font-weight: 500; }
.liste-themes li a:hover { background: var(--wp--preset--color--noir); color: var(--wp--preset--color--creme); }

/* ═════ 10. Mobile : tout s'empile, boutons pleine largeur ═════ */
@media (max-width: 781px) {
	.is-layout-grid:not(.garder-colonnes) { grid-template-columns: 1fr !important; }
	main .wp-block-buttons > .wp-block-button, main .wp-block-buttons > .wp-block-button .wp-block-button__link { width: 100%; }
}
@media (max-width: 599px) {
	.entete-site .entete-actions { display: none; } /* « Connexion » reste dans le menu et le pied de page */
}


/* ═════ 11. Habillage Lucas Gitano Family (maquette « Accueil v2 ») ═════
 * Affiche de tablao : Archivo étroit en capitales pour les titres, rouge flamenco, papier d'affiche, noir tablao.
 * Les couleurs viennent de la palette (charte.json) ; seules les transparences sont écrites ici.
 * Sommaire : a. typographie · b. en-tête · c. sections et cartes · d. composants de la maquette · e. pied de page · f. espace élève
 */
:root {
	--mdlms-head-bg: var(--wp--preset--color--noir);
	--mdlms-head-fg: var(--wp--preset--color--creme);
	--mdlms-head-accent: var(--wp--preset--color--or);
	--lgf-carte-nuit: #231915;          /* carte posée sur une section sombre */
	--lgf-gris-chaud: #BFAF9F;          /* liens secondaires sur fond sombre */
	--lgf-filet-rose: #E6C3BA;          /* bordure des cartes sur la section teintée */
}

/* — a. Typographie — */
:where(h1, h2, .wp-block-post-title) { font-stretch: 68%; text-transform: uppercase; letter-spacing: -0.005em; }
h1, .wp-block-post-title { line-height: 1.02; }
h2 { line-height: 1.04; }
h3 { font-weight: 800; font-stretch: 72%; text-transform: uppercase; line-height: 1.06; }
:where(h4, h5, h6) { text-transform: none; }
.contenu-texte h2, .contenu-article h2 { line-height: 1.1; }
.contenu-texte h3 { text-transform: none; font-stretch: 100%; }
a:hover { color: var(--wp--preset--color--or-survol); }
strong { font-weight: 700; }

.is-style-petit-titre { font-weight: 700 !important; letter-spacing: .2em !important; }
.is-style-petit-titre.avec-filet { display: flex; align-items: center; gap: 12px; }
.is-style-petit-titre.avec-filet::before { content: ""; flex: none; width: 32px; height: 2px; background: currentColor; }
.is-style-chapo { color: var(--wp--preset--color--noir); line-height: 1.55 !important; }

.wp-element-button, .wp-block-button__link { font-weight: 700; line-height: 1.3; }
.wp-block-button.is-style-contour .wp-block-button__link { border-width: 2px; padding: 14px 26px; }

/* — b. En-tête : noir tablao semi-transparent, menu en capitales — */
.entete-site { background: rgb(22 15 12 / .88) !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: rgb(243 234 216 / .14) !important; color: var(--wp--preset--color--creme); padding-top: 10px !important; padding-bottom: 10px !important; }
.entete-site .wp-block-site-logo img { height: 64px; width: auto; }
.entete-site .wp-block-site-title a { color: var(--wp--preset--color--creme); }
.entete-site .wp-block-navigation { font-size: 15px; font-weight: 600; font-stretch: 90%; text-transform: uppercase; letter-spacing: .04em; }
.entete-site .wp-block-navigation :where(a, .wp-block-navigation-item__content),
.entete-site .wp-block-navigation__responsive-container-open { color: var(--wp--preset--color--creme); }
.entete-site .wp-block-navigation a:hover { color: var(--wp--preset--color--or-clair); }
.entete-site .wp-block-navigation .current-menu-item > a { box-shadow: inset 0 -2px 0 var(--wp--preset--color--or); }
.entete-site .wp-block-navigation__responsive-container.is-menu-open :where(a, .wp-block-navigation-item__content) { color: var(--wp--preset--color--noir); }
.entete-site .lien-connexion { font-size: 15px; font-weight: 600; font-stretch: 90%; text-transform: uppercase; letter-spacing: .04em; }
.entete-site .lien-connexion a { color: var(--lgf-gris-chaud); }
.entete-site .lien-connexion a:hover { color: var(--wp--preset--color--creme); }
.entete-site .wp-block-button__link { font-size: 15px; font-stretch: 90%; text-transform: uppercase; letter-spacing: .04em; }
.entete-site :where(a, button):focus-visible { outline-color: var(--wp--preset--color--or-clair); }
.entete-site .mdl-langues a, .entete-site .mdl-langues { color: var(--lgf-gris-chaud); }

/* — c. Sections et cartes — */
:is(.is-style-section-sombre, .is-style-carte-sombre) .is-style-chapo { color: var(--wp--preset--color--sur-sombre); }
:is(.is-style-section-sombre, .is-style-carte-sombre) :is(strong, .stat-label, .wp-block-quote) { color: var(--wp--preset--color--creme); }
.is-style-section-sombre .is-style-carte-sombre { background: var(--lgf-carte-nuit) !important; border: 1px solid var(--wp--preset--color--filet-sombre); }
.is-style-section-accent .is-style-carte { border-color: var(--lgf-filet-rose); }
.is-style-section-alternee .is-style-carte { border-color: var(--wp--preset--color--separateur); }
.carte-cliquable:hover { box-shadow: none; transform: none; border-color: var(--wp--preset--color--or) !important; }
.alignfull.hero { overflow: hidden; }

/* Carte avec image en haut, collée aux bords */
.carte-media { padding: 0 !important; overflow: hidden; }
.carte-media > :is(.wp-block-image, .wp-block-embed) { margin: 0 !important; position: relative; }
.carte-media > .wp-block-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0 !important; }
.carte-media > .wp-block-embed .wp-block-embed__wrapper { border-radius: 0; }
.carte-media > .corps-carte { flex: 1; padding: var(--wp--preset--spacing--l); }
.carte-media > .corps-carte > :is(.wp-block-buttons, .is-style-lien-fleche):last-child { margin-top: auto !important; padding-top: var(--wp--preset--spacing--s); }
.mise-en-avant { outline: 3px solid var(--wp--preset--color--or); outline-offset: -3px; }
.pastille-carte { position: absolute; top: 16px; right: 16px; z-index: 2; margin: 0 !important; padding: 6px 14px; border-radius: 999px; background: var(--wp--preset--color--or); color: var(--wp--preset--color--sur-or); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; }
.meta-carte { margin-top: auto !important; padding-top: var(--wp--preset--spacing--s); font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--gris-texte); }
.is-style-section-sombre .meta-carte { color: var(--lgf-gris-chaud); }

/* Vidéos : coins arrondis, vignette avec bouton lecture */
.wp-block-embed.is-type-video .wp-block-embed__wrapper { border-radius: var(--wp--custom--arrondi); overflow: hidden; background: #2A1F1A; }
.vignette-video { position: relative; }
.vignette-video::after { content: ""; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; pointer-events: none;
	background: var(--wp--preset--color--or) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Cpath d='M0 0l16 10L0 20z' fill='%23FFF8EC'/%3E%3C/svg%3E") no-repeat 55% 50% / 16px 20px; }

/* Grand numéro (étapes) et chiffres clés */
p.is-style-numero, .chiffre { font-weight: 900; font-stretch: 62%; line-height: .9 !important; color: var(--wp--preset--color--or-texte); }
p.is-style-numero { font-size: 88px !important; }
.chiffre { font-size: clamp(60px, 6vw, 88px) !important; line-height: .95 !important; margin: 0 !important; }
.stat { border-top: 4px solid var(--wp--preset--color--noir); padding-top: var(--wp--preset--spacing--m); }
.stat-label { margin: 0 !important; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--wp--preset--color--noir); }
.stat-texte { margin: 0 !important; font-size: 15px; line-height: 1.5; color: var(--wp--preset--color--gris-texte); }

/* Listes à coches : pastilles rouges ; dans une carte, simple coche */
ul.is-style-coches li { display: flex; gap: 16px; align-items: flex-start; padding: 12px 0 12px 0; font-weight: 600; }
ul.is-style-coches li::before { position: static; flex: none; width: 28px; height: 28px; margin-top: -1px; border-radius: 50%; background: var(--wp--preset--color--or); color: var(--wp--preset--color--sur-or); font-size: 15px; display: flex; align-items: center; justify-content: center; }
:is(.is-style-carte, .is-style-carte-sombre, .corps-carte) ul.is-style-coches li { border: 0; padding: 4px 0; gap: 12px; font-size: 16px; }
:is(.is-style-carte, .is-style-carte-sombre, .corps-carte) ul.is-style-coches li::before { width: auto; height: auto; margin: 0; background: none; color: var(--wp--preset--color--or-texte); font-weight: 800; }
.is-style-carte-sombre ul.is-style-coches li::before { color: var(--wp--preset--color--or-clair) !important; }
ul.is-style-coches.croix li::before { content: "✕"; background: var(--wp--preset--color--ivoire-sourd); }
.liste-sur-carte { background: var(--wp--preset--color--blanc); color: var(--wp--preset--color--noir); border-radius: var(--wp--custom--arrondi); padding: 16px 32px !important; }
.liste-sur-carte li { border-top-color: var(--wp--preset--color--ivoire) !important; }

/* Citations : témoignages en Archivo semi-étroit, « grande phrase » en capitales rouges */
.wp-block-quote { border: 0; padding: 0; margin: 0; }
.wp-block-quote p { font-weight: 700; font-stretch: 80%; font-size: 26px; line-height: 1.3; color: var(--wp--preset--color--noir); text-wrap: pretty; }
.wp-block-quote cite { margin-top: var(--wp--preset--spacing--s); font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--gris-texte); }
.wp-block-quote cite strong { color: inherit; }
.temoignage-vedette { max-width: 900px; margin-inline: auto !important; text-align: center; padding: var(--wp--preset--spacing--m) 0; }
.temoignage-vedette p { font-size: clamp(26px, 3vw, 34px); line-height: 1.25; text-wrap: balance; }
.citation-geante p { font-weight: 900; font-stretch: 68%; font-style: italic; text-transform: uppercase; font-size: clamp(44px, 5.4vw, 72px); line-height: 1; color: var(--wp--preset--color--or-texte); }
.citation-geante cite { font-size: 20px; letter-spacing: 0; text-transform: none; color: var(--wp--preset--color--noir); }
.filet-haut { border-top: 2px solid var(--wp--preset--color--noir); padding-top: var(--wp--preset--spacing--xl); }
:is(.is-style-section-sombre, .is-style-carte-sombre) .wp-block-quote p { color: var(--wp--preset--color--creme); }
:is(.is-style-section-sombre, .is-style-carte-sombre) .wp-block-quote cite { color: var(--lgf-gris-chaud); }
.is-style-carte .wp-block-quote p, .corps-carte .wp-block-quote p { font-size: 22px; }

/* — d. Composants de la maquette — */
/* Bandeau rouge sous l'accueil */
.bandeau { overflow: hidden; white-space: nowrap; padding: 16px 0 !important; background: var(--wp--preset--color--or); color: var(--wp--preset--color--sur-or); }
.bandeau p { margin: 0; display: flex; justify-content: center; gap: 28px; font-weight: 900; font-stretch: 68%; font-size: 28px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }

/* Photo en arche de l'accueil, disque rouge derrière, pastille « film » */
.hero-media { position: relative; width: 100%; max-width: 460px; margin-inline: auto; }
.hero-media::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: var(--wp--preset--color--or); top: -6%; right: -10%; }
.hero-media .wp-block-image { margin: 0; position: relative; }
.hero-media .wp-block-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 0 0; border: 6px solid var(--wp--preset--color--creme); background: #2A1F1A; }
.pastille-film { position: absolute; left: -16px; bottom: 32px; margin: 0 !important; z-index: 2; }
.pastille-film a { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px; background: var(--wp--preset--color--creme); color: var(--wp--preset--color--noir) !important; font-size: 15px; font-weight: 700; text-decoration: none; }
.pastille-film a::before { content: ""; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--wp--preset--color--or) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 16'%3E%3Cpath d='M0 0l13 8L0 16z' fill='%23FFF8EC'/%3E%3C/svg%3E") no-repeat 58% 50% / 13px 16px; }
.pastille-film a:hover { color: var(--wp--preset--color--or-texte) !important; }
@media (max-width: 599px) { .pastille-film { left: 0; } .hero-media::before { right: -4%; } }

/* Deux photos superposées (présentation) */
.duo-photos { position: relative; width: 100%; max-width: 520px; margin-inline: auto; padding-bottom: 64px; }
.duo-photos > .wp-block-image { margin: 0; }
.duo-photos > .wp-block-image:first-child { width: 82%; }
.duo-photos > .wp-block-image:first-child img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% center; border-radius: 999px 999px var(--wp--custom--arrondi) var(--wp--custom--arrondi); }
.duo-photos > .wp-block-image:last-child { position: absolute; right: 0; bottom: 0; width: 52%; }
.duo-photos > .wp-block-image:last-child img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--wp--custom--arrondi); border: 6px solid var(--wp--preset--color--creme-fonce); }
.is-style-section-sombre .duo-photos > .wp-block-image:last-child img { border-color: var(--wp--preset--color--noir); }

/* Carte d'offre rouge (« c'est offert ») */
.carte-offre { border-radius: 24px !important; padding: clamp(40px, 6vw, 96px) clamp(24px, 5vw, 64px) !important; }
.carte-offre :is(h2, h2 em, .is-style-petit-titre, .is-style-chapo) { color: var(--wp--preset--color--sur-or) !important; }
.carte-offre .wp-block-button:not(.is-style-contour) .wp-block-button__link { background: var(--wp--preset--color--noir); color: var(--wp--preset--color--sur-or); }
.carte-offre .wp-block-button:not(.is-style-contour) .wp-block-button__link:hover { background: #000; }

/* Formulaire et prix dans une carte claire */
.carte-formulaire { background: var(--wp--preset--color--blanc); color: var(--wp--preset--color--encre); border-radius: var(--wp--custom--arrondi); padding: var(--wp--preset--spacing--l) !important; }
.carte-formulaire :is(h2, h3, label, strong) { color: var(--wp--preset--color--noir); }
.prix { font-weight: 900; font-stretch: 62%; font-size: clamp(56px, 7vw, 96px) !important; line-height: .95 !important; color: var(--wp--preset--color--or-texte); margin: 0 !important; }

/* Liens fléchés de la maquette : soulignés, épais */
p.is-style-lien-fleche a { border: 0; padding: 0; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; font-weight: 700; }
.is-style-section-sombre p.is-style-lien-fleche a { color: var(--wp--preset--color--creme); }
.is-style-section-sombre p.is-style-lien-fleche a:hover { color: var(--wp--preset--color--or-clair); }

/* — e. Pied de page — */
.pied-site { color: var(--lgf-gris-chaud) !important; font-size: 15px; line-height: 1.6; }
.pied-site a { color: var(--lgf-gris-chaud) !important; }
.pied-site a:hover { color: var(--wp--preset--color--creme) !important; text-decoration: none; }
.pied-site .is-style-petit-titre { color: var(--wp--preset--color--creme) !important; margin-bottom: 8px; }
.pied-site .wp-block-site-logo img { height: 80px; width: auto; }
.pied-site .pied-bas { opacity: 1; color: var(--lgf-gris-chaud); font-size: 13px; }

/* — f. Espace élève : sur les fonds rosés, pistes et textes secondaires plus marqués — */
.mdlms, .mdl-coach { --muted: var(--wp--preset--color--gris-texte); }
:is(.mdlms, .mdl-coach) :is(.mdlms-progress, .mdl-coach-xp) { background: rgb(22 15 12 / .16); }
:is(.mdlms, .mdl-coach) .mdl-coach-ring circle:not(.is-fill) { stroke: rgb(22 15 12 / .16); }
:is(.mdlms, .mdl-coach) :is(.l0, .mdl-coach-legend span.l0) { background: rgb(22 15 12 / .1); }
.mdl-coach-resume small { color: var(--wp--preset--color--or-clair); }
.mdlms li:not(.is-done):not(.is-current) > a .mdlms-state { color: var(--wp--preset--color--ivoire-sourd); }
:is(.mdlms, .mdl-coach) :is(h1, h2) { text-transform: uppercase; font-stretch: 68%; }

/* Compléments : légende des témoignages (nom + contexte), prix dans une carte, pied de page sur mobile */
.wp-block-quote cite span { display: block; margin-top: 4px; font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 15px; }
.prix-carte { margin: 0 !important; font-weight: 900; font-stretch: 62%; font-size: 40px; line-height: 1; color: var(--wp--preset--color--or-texte); }
.is-style-carte-sombre .prix-carte { color: var(--wp--preset--color--or-clair); }
@media (max-width: 781px) {
	.pied-site .is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.pied-site .is-layout-grid > :first-child { grid-column: 1 / -1; }
	.bandeau p { justify-content: flex-start; font-size: 22px; }
}
/* Boutons pleins sur fond sombre : rouge flamenco comme sur fond clair (le style de section les passait en rose) */
:is(.is-style-section-sombre, .is-style-carte-sombre) .wp-block-button:not(.is-style-contour) .wp-block-button__link { background: var(--wp--preset--color--or); color: var(--wp--preset--color--sur-or); }
:is(.is-style-section-sombre, .is-style-carte-sombre) .wp-block-button:not(.is-style-contour) .wp-block-button__link:hover { background: #E0223F; color: var(--wp--preset--color--sur-or); }
.entete-site .wp-block-button__link { white-space: nowrap; }
/* Titres d'en-tête très longs (pages de vente) ; titre collé à gauche des sections de texte */
h1.titre-long { font-size: clamp(2.5rem, 4.6vw, 4rem) !important; }
@media (min-width: 782px) { .titre-colle { position: sticky; top: 120px; } }
.wp-block-columns:has(> .wp-block-column > .titre-colle) { align-items: stretch !important; }
/* Listes à coches : la puce est posée à gauche, le texte (gras compris) coule normalement */
ul.is-style-coches li { display: block; position: relative; padding: 12px 0 12px 44px; }
ul.is-style-coches li::before { position: absolute; left: 0; top: 11px; }
:is(.is-style-carte, .is-style-carte-sombre, .corps-carte) ul.is-style-coches li { padding: 4px 0 4px 26px; }
:is(.is-style-carte, .is-style-carte-sombre, .corps-carte) ul.is-style-coches li::before { top: 4px; }
.carte-media > :is(.wp-block-image, .wp-block-embed, .pastille-carte) { flex-shrink: 0; }
.carte-media > .corps-carte { flex-shrink: 0; }
.carte-media > :is(.wp-block-image, .wp-block-embed) { flex: none !important; }
.carte-media, .corps-carte, :is(.is-style-carte, .is-style-carte-sombre).is-vertical { flex-wrap: nowrap !important; }
.titre-colle h2 { font-size: clamp(2rem, 3.4vw, 2.875rem); }
.bandeau span { flex: none; white-space: nowrap; }

/* ═════ 12. Variété des pages (retours du 4 novembre) ═════ */
/* Photos des sections de texte : rectangle arrondi ou arche */
.wp-block-image.photo-section img, .wp-block-image.photo-arche img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.wp-block-image.photo-section img { border-radius: var(--wp--custom--arrondi); }
.wp-block-image.photo-arche img { border-radius: 999px 999px var(--wp--custom--arrondi) var(--wp--custom--arrondi); }
.wp-block-column > .wp-block-image.photo-section, .wp-block-column > .wp-block-image.photo-arche { margin: 0; }

/* Longue liste sur deux colonnes, dans une carte */
.liste-colonnes { padding: var(--wp--preset--spacing--l) !important; }
@media (min-width: 782px) { .liste-colonnes ul { columns: 2; column-gap: 48px; } .liste-colonnes li { break-inside: avoid; } }
.liste-colonnes ul.is-style-coches li:first-child { border-top: 1px solid var(--filet); }
.liste-colonnes ul.is-style-coches li { border-top: 1px solid var(--filet); }

/* Encadrés sur fond sombre */
.is-style-section-sombre .is-style-carte-sombre h3 { color: var(--wp--preset--color--creme); }

/* Badge de garantie */
.badge-garantie { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 148px; height: 148px; margin: 0 auto 8px !important; border-radius: 50%; border: 3px solid var(--wp--preset--color--or-clair); outline: 1px dashed var(--wp--preset--color--or-clair); outline-offset: 6px; color: var(--wp--preset--color--creme); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; line-height: 1; }
.badge-garantie strong { font-size: 64px; font-stretch: 62%; font-weight: 900; letter-spacing: 0; color: var(--wp--preset--color--or-clair); line-height: .9; }

/* Page d'optin : un écran, guitare floutée en fond */
.hero-optin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--wp--preset--spacing--xl) !important; padding-bottom: var(--wp--preset--spacing--xl) !important;
	background: linear-gradient(rgb(22 15 12 / .78), rgb(22 15 12 / .88)), url(/wp-content/uploads/2026/11/Guitare_Floue_foncee.jpg) center / cover !important; }
.hero-optin .logo-optin { margin-bottom: var(--wp--preset--spacing--s); }
.hero-optin .wp-block-image.image-optin { margin: 0; }
.hero-optin .wp-block-image.image-optin img { width: 100%; border-radius: var(--wp--custom--arrondi); box-shadow: 0 20px 60px rgb(0 0 0 / .45); }
.bouton-optin .mdm-buy { margin: 0; text-align: center; }
.bouton-optin .mdm-btn { width: 100%; padding: 20px 28px; font-size: 18px; font-weight: 700; border-radius: 999px; }
.single-mdm_optin footer .pied-site { margin-top: 0; }

/* ═════ 13. Retours du 4 novembre (2) ═════ */
/* Menu : le même noir plein que l'en-tête de page */
.entete-site { background: var(--wp--preset--color--noir) !important; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: var(--wp--preset--color--noir) !important; }
/* Logo centré en haut des pages de vente et de remerciement */
.entete-landing { background: var(--wp--preset--color--noir); }
.entete-landing .wp-block-site-logo img { height: 72px; width: auto; }
/* Survol des boutons pleins : le fond fonce, le texte reste clair */
.wp-block-button:not(.is-style-contour) .wp-block-button__link:is(:hover, :focus),
.wp-element-button:not(.wp-block-button__link):is(:hover, :focus),
.mdm-btn:is(:hover, :focus) { color: var(--wp--preset--color--sur-or) !important; }
/* Plus aucune image en forme de porte (arche) : rectangles arrondis */
.hero-media .wp-block-image img, .duo-photos > .wp-block-image:first-child img, .wp-block-image.photo-arche img, .wp-block-image.photo-arche img { border-radius: var(--wp--custom--arrondi) !important; }
.hero-media .wp-block-image img { aspect-ratio: 4 / 5; }
.stat-label a { color: inherit; text-decoration: none; } .stat-label a:hover { color: var(--wp--preset--color--or-texte); }
/* Cartes produit : prix et lien alignés en pied de carte */
.pied-carte { margin-top: auto !important; padding-top: var(--wp--preset--spacing--s); border-top: 1px solid var(--filet); }
.pied-carte .prix-carte { font-size: 32px; }
.pied-carte .is-style-lien-fleche { margin: 0; }
.corps-carte { display: flex; }
/* Image de garantie de la boutique */
.wp-block-image.image-garantie { margin: 0 auto !important; max-width: 300px; }
.wp-block-image.image-garantie img { width: 100%; height: auto; }
.wp-block-image.photo-libre img { width: 100%; height: auto; border-radius: var(--wp--custom--arrondi); }
/* Valeur à la carte d'un module et prix barré (pages de vente) */
.valeur-carte { margin: 0 !important; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--or-texte); }
.is-style-carte-sombre .valeur-carte, .is-style-section-sombre .valeur-carte { color: var(--wp--preset--color--or-clair); }
.prix-barre { margin: 0 !important; font-weight: 900; font-stretch: 62%; font-size: clamp(32px, 4vw, 48px); line-height: 1; opacity: .6; }
.prix-barre s, p s { text-decoration-thickness: 3px; text-decoration-color: var(--wp--preset--color--or); }
/* Répertoire Solos Signature : volets par univers, morceaux en colonnes */
.repertoire details { border-bottom: 1px solid var(--wp--preset--color--separateur); padding: var(--wp--preset--spacing--s) 0; }
.repertoire summary { cursor: pointer; font-weight: 800; font-size: 20px; }
ul.liste-repertoire { columns: 3 240px; column-gap: 32px; list-style: none; padding: 0; margin-top: var(--wp--preset--spacing--s); font-size: 15px; }
ul.liste-repertoire li { break-inside: avoid; padding: 4px 0; }
/* Mise en page (demande de Victor, 05/11) : tout bloc plus étroit que la grille est centré (hors en-tête),
   et les colonnes sont centrées verticalement */
main section:not(.hero) .is-content-justification-left.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { margin-left: auto !important; margin-right: auto !important; }
main .wp-block-columns { align-items: center !important; }
main .wp-block-columns > .wp-block-column { align-self: center !important; }
/* Section sur photo plein écran (pages de vente) */
.wp-block-cover.section-photo { margin: 0 !important; padding: var(--wp--preset--spacing--section) var(--wp--preset--spacing--m); }
.wp-block-cover.section-photo, .wp-block-cover.section-photo :is(h2, p, li) { color: #FFF8EC; }
.wp-block-cover.section-photo h2 em { color: var(--wp--preset--color--or-clair); }
.wp-block-cover.section-photo p { font-size: 20px; line-height: 1.6; }
/* Comparatif de formules : éléments non inclus barrés, pastille sur la formule mise en avant */
ul.is-style-coches li.non { opacity: .55; }
ul.is-style-coches li.non::before { content: "✕"; background: var(--wp--preset--color--ivoire-sourd); color: var(--wp--preset--color--or-texte); }
ul.is-style-coches li.non s { text-decoration-thickness: 1px; text-decoration-color: currentColor; }
.is-style-carte-sombre.mise-en-avant > p.is-style-petit-titre:first-child { align-self: flex-start; background: var(--wp--preset--color--or); color: #FFF8EC; padding: 6px 14px; border-radius: 999px; }
