/* Studio : mise en forme choisie sur la page et blocs ajoutés depuis la bibliothèque (admin/studio-modeles.js).
   Ajoutée par edition-build.mjs aux seules pages qui en ont besoin. Couleurs de la charte uniquement : Klein #001CA8,
   Midnight #191970, noir d'aniline #120D16, White Smoke #F5F5F5, Cranberry #950714, rouge #F32837, blanc.
   Les classes de mise en forme passent avant celles du site (!important) : c'est un choix fait sur la page. */

/* ── Tailles : l'échelle du site (v6-titre-xl … texte courant) ── */
.fl-sb-t-xl { font-size: clamp(2.4rem, 1rem + 4.6vw, 5.4rem) !important; }
.fl-sb-t-l { font-size: clamp(2.05rem, 1.15rem + 2.7vw, 3.9rem) !important; }
.fl-sb-t-m { font-size: clamp(1.55rem, 1.2rem + 1vw, 2.2rem) !important; }
.fl-sb-t-s { font-size: clamp(1.25rem, 1.1rem + .45vw, 1.55rem) !important; }
.fl-sb-t-chapo { font-size: clamp(1.18rem, 1.05rem + .48vw, 1.42rem) !important; }
.fl-sb-t-texte { font-size: clamp(1.07rem, 1.02rem + .2vw, 1.16rem) !important; }
.fl-sb-t-petit { font-size: .9rem !important; }
.fl-sb-t-xl:not(span) { line-height: .95 !important; letter-spacing: -.03em; }
.fl-sb-t-l:not(span) { line-height: 1 !important; letter-spacing: -.03em; }
.fl-sb-t-m:not(span) { line-height: 1.08 !important; }
.fl-sb-t-s:not(span) { line-height: 1.16 !important; }
.fl-sb-t-chapo:not(span) { line-height: 1.52 !important; }
.fl-sb-t-texte:not(span), .fl-sb-t-petit:not(span) { line-height: 1.6 !important; letter-spacing: normal; }

/* ── Graisse, italique, alignement, police ── */
.fl-sb-g-gras { font-weight: 700 !important; }
.fl-sb-g-normal { font-weight: 400 !important; }
.fl-sb-i { font-style: italic !important; }
.fl-sb-a-gauche { text-align: left !important; }
.fl-sb-a-centre { text-align: center !important; }
.fl-sb-a-droite { text-align: right !important; }
.fl-sb-a-centre:not(span) { margin-left: auto !important; margin-right: auto !important; }
.fl-sb-a-droite:not(span) { margin-left: auto !important; }
.fl-sb-p-titre { font-family: var(--police-display) !important; }
.fl-sb-p-texte { font-family: var(--police-texte) !important; }

/* ── Couleurs de la charte ; les mots mis en valeur prennent la couleur choisie ── */
.fl-sb-c-klein { color: #001CA8 !important; }
.fl-sb-c-midnight { color: #191970 !important; }
.fl-sb-c-noir { color: #120D16 !important; }
.fl-sb-c-smoke { color: #F5F5F5 !important; }
.fl-sb-c-cranberry { color: #950714 !important; }
.fl-sb-c-rouge { color: #F32837 !important; }
.fl-sb-c-blanc { color: #FFFFFF !important; }
:where(.fl-sb-c-klein, .fl-sb-c-midnight, .fl-sb-c-noir, .fl-sb-c-smoke, .fl-sb-c-cranberry, .fl-sb-c-rouge, .fl-sb-c-blanc) :where(em, i, b, strong, .v6-lapsus) { color: inherit !important; }

/* ── Blocs ajoutés : fonds ── */
.fl-sb-bloc { position: relative; }
.fl-sb-fond-blanc { background-color: #FFFFFF; }
.fl-sb-fond-papier { background-color: #F5F5F5; }
.fl-sb-fond-nuit { background-color: #191970; color: #FFFFFF; }
.fl-sb-fond-klein, .v6-sombre.fl-sb-fond-klein { background-color: #001CA8; color: #FFFFFF; }
.fl-sb-fond-nuit .fl-sb-riche, .fl-sb-fond-klein .fl-sb-riche, .fl-sb-fond-nuit p, .fl-sb-fond-klein p { color: #F5F5F5; }
.fl-sb-fond-klein .v6-surtitre, .fl-sb-fond-nuit .v6-surtitre { color: #F5F5F5; }
.v6-zone.fl-sb-etroit { max-width: 62rem; }
.fl-sb-titre { margin: .35em 0 .45em; max-width: 22ch; }
.fl-sb-etroit .fl-sb-titre { max-width: none; }
.fl-sb-riche { font-size: clamp(1.07rem, 1.02rem + .2vw, 1.16rem); line-height: 1.68; }
.fl-sb-riche > * { margin: 0 0 .9em; }
.fl-sb-riche > :last-child { margin-bottom: 0; }
.fl-sb-riche ul, .fl-sb-riche ol { padding-left: 1.3em; }
.fl-sb-riche li { margin: .25em 0; }
.fl-sb-riche a, .fl-sb-question a { color: #001CA8; text-decoration: underline; text-underline-offset: .18em; }
.fl-sb-fond-nuit .fl-sb-riche a, .fl-sb-fond-klein .fl-sb-riche a { color: #FFFFFF; }
.fl-sb-actions { margin: 1.8rem 0 0; }

/* Texte et image */
.fl-sb-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.fl-sb-duo-gauche .fl-sb-duo-image { order: -1; }
.fl-sb-duo-image { margin: 0; border-radius: 1.2rem; overflow: hidden; aspect-ratio: 4 / 3; background: #F5F5F5; }
.fl-sb-duo-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Cartes */
.fl-sb-cartes { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.4rem; }
.fl-sb-carte { display: flex; flex-direction: column; border-radius: 1.1rem; overflow: hidden; background: #FFFFFF; box-shadow: 0 1px 0 rgba(18, 13, 22, .06), 0 14px 34px -18px rgba(18, 13, 22, .35); color: #120D16; }
.fl-sb-fond-blanc .fl-sb-carte { background: #F5F5F5; box-shadow: none; }
.fl-sb-carte-image { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: #F5F5F5; }
.fl-sb-carte-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.fl-sb-carte:hover .fl-sb-carte-image img { transform: scale(1.04); }
.fl-sb-carte-corps { display: flex; flex-direction: column; gap: .55rem; padding: 1.3rem 1.4rem 1.5rem; flex: 1; }
.fl-sb-carte-corps p { margin: 0; color: rgba(18, 13, 22, .78); }
.fl-sb-carte-titre { margin: 0; font-family: var(--police-display); font-size: clamp(1.2rem, 1.1rem + .35vw, 1.45rem); line-height: 1.15; color: #120D16; }
.fl-sb-carte-lien { margin-top: auto; padding-top: .6rem; display: inline-flex; align-items: center; gap: .5rem; color: #001CA8; font-weight: 700; text-decoration: none; }
.fl-sb-carte-lien:hover { color: #191970; }

/* Chiffres clés */
.fl-sb-chiffres { margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.4rem 2rem; }
.fl-sb-chiffre { margin: 0; padding-top: 1.1rem; border-top: 2px solid #001CA8; }
.fl-sb-fond-nuit .fl-sb-chiffre, .fl-sb-fond-klein .fl-sb-chiffre { border-top-color: rgba(255, 255, 255, .5); }
.fl-sb-chiffre-valeur { margin: 0; font-family: var(--police-display); font-weight: 700; font-size: clamp(2.4rem, 1.4rem + 3vw, 4.2rem); line-height: 1; letter-spacing: -.03em; color: #001CA8; }
.fl-sb-fond-nuit .fl-sb-chiffre-valeur, .fl-sb-fond-klein .fl-sb-chiffre-valeur { color: #FFFFFF; }
.fl-sb-chiffre-libelle { margin: .45rem 0 0; font-size: 1.05rem; color: rgba(18, 13, 22, .72); }
.fl-sb-fond-nuit .fl-sb-chiffre-libelle, .fl-sb-fond-klein .fl-sb-chiffre-libelle { color: #F5F5F5; }

/* Citation */
.fl-sb-citation { margin: 0; padding-left: clamp(1.2rem, 3vw, 2.4rem); border-left: 3px solid #F32837; }
.fl-sb-citation-texte { margin: 0; font-family: var(--police-display); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem); line-height: 1.2; letter-spacing: -.015em; }
.fl-sb-citation figcaption { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; }
.fl-sb-citation-auteur { font-weight: 700; }
.fl-sb-citation-role { color: rgba(18, 13, 22, .65); }
.fl-sb-fond-nuit .fl-sb-citation-role, .fl-sb-fond-klein .fl-sb-citation-role { color: #F5F5F5; }

/* Appel à l'action */
.fl-sb-appel { text-align: center; display: flex; flex-direction: column; align-items: center; }
.fl-sb-appel .fl-sb-titre { max-width: 20ch; }
.fl-sb-appel .v6-chapo { max-width: 46ch; margin: 0; }

/* Galerie */
.fl-sb-galerie { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .9rem; }
.fl-sb-galerie figure { margin: 0; }
.fl-sb-galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: .9rem; background: #F5F5F5; }
.fl-sb-galerie figcaption { margin-top: .45rem; font-size: .92rem; color: rgba(18, 13, 22, .7); }

/* Vidéo */
.fl-sb-video { margin-top: 1.8rem; }

/* Questions fréquentes */
.fl-sb-faq { margin-top: 1.6rem; border-top: 1px solid rgba(18, 13, 22, .14); }
.fl-sb-question { border-bottom: 1px solid rgba(18, 13, 22, .14); }
.fl-sb-question > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; font-family: var(--police-display); font-weight: 600; font-size: clamp(1.08rem, 1rem + .3vw, 1.3rem); }
.fl-sb-question > summary::-webkit-details-marker { display: none; }
.fl-sb-question > summary::after { content: '+'; flex: none; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; background: #F5F5F5; color: #001CA8; font-weight: 700; }
.fl-sb-question[open] > summary::after { content: '−'; background: #001CA8; color: #FFFFFF; }
.fl-sb-question > .fl-sb-riche { padding: 0 0 1.3rem; max-width: 60ch; }
.fl-sb-fond-nuit .fl-sb-faq, .fl-sb-fond-nuit .fl-sb-question, .fl-sb-fond-klein .fl-sb-faq, .fl-sb-fond-klein .fl-sb-question { border-color: rgba(255, 255, 255, .25); }

/* Bandeau photo */
.fl-sb-m-bandeau { display: grid; align-items: end; min-height: clamp(26rem, 62vh, 44rem); overflow: hidden; color: #FFFFFF; background: #120D16; }
.fl-sb-bandeau-fond { position: absolute; inset: 0; }
.fl-sb-bandeau-fond img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fl-sb-bandeau-voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 13, 22, .35), #120D16); }
.fl-sb-bandeau-zone { position: relative; padding-top: clamp(4rem, 8vw, 8rem); padding-bottom: clamp(3rem, 6vw, 6rem); }
.fl-sb-m-bandeau .fl-sb-titre { color: #FFFFFF; max-width: 18ch; }
.fl-sb-m-bandeau .v6-chapo { color: #F5F5F5; max-width: 46ch; }

/* Liste de liens */
.fl-sb-liens { list-style: none; margin: 1.6rem 0 0; padding: 0; border-top: 1px solid rgba(18, 13, 22, .14); }
.fl-sb-liens li { border-bottom: 1px solid rgba(18, 13, 22, .14); }
.fl-sb-liens a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'texte fleche' 'detail fleche'; align-items: center; gap: .15rem 1rem; padding: 1.05rem .2rem; color: inherit; text-decoration: none; }
.fl-sb-lien-texte { grid-area: texte; font-family: var(--police-display); font-weight: 600; font-size: clamp(1.1rem, 1rem + .35vw, 1.35rem); }
.fl-sb-liens small { grid-area: detail; color: rgba(18, 13, 22, .65); font-size: .95rem; }
.fl-sb-liens .v6-fleche { grid-area: fleche; color: #001CA8; transition: transform .2s; }
.fl-sb-liens a:hover .fl-sb-lien-texte { color: #001CA8; }
.fl-sb-liens a:hover .v6-fleche { transform: translateX(4px); }
.fl-sb-fond-nuit .fl-sb-liens, .fl-sb-fond-nuit .fl-sb-liens li, .fl-sb-fond-klein .fl-sb-liens, .fl-sb-fond-klein .fl-sb-liens li { border-color: rgba(255, 255, 255, .25); }
.fl-sb-fond-nuit .fl-sb-liens small, .fl-sb-fond-klein .fl-sb-liens small, .fl-sb-fond-nuit .fl-sb-liens .v6-fleche, .fl-sb-fond-klein .fl-sb-liens .v6-fleche { color: #F5F5F5; }

@media (max-width: 760px) {
  .fl-sb-duo { grid-template-columns: 1fr; }
  .fl-sb-duo-gauche .fl-sb-duo-image { order: 0; }
}
