/* =========================================================
   Bibliothèque de blocs — styles communs à tous les thèmes.
   Les thèmes peuvent les ajuster dans leur style.css (chargé après).
   ========================================================= */
.blk { padding: clamp(40px, 6vw, 76px) 0; position: relative; }
.blk-clair { background: var(--paper); }
.blk-teinte { background: var(--light); }
.blk-couleur { background: var(--primary); color: #fff; }
.blk-sombre { background: var(--dark); color: #E9ECF5; }
.blk-couleur h2, .blk-couleur h3, .blk-sombre h2, .blk-sombre h3 { color: #fff; }
.blk-couleur a:not(.btn), .blk-sombre a:not(.btn) { color: #fff; }
.blk-couleur .muted, .blk-sombre .muted, .blk-couleur .meta, .blk-sombre .meta { color: rgba(255,255,255,.78); }
.blk-couleur .btn:not(.btn-accent):not(.btn-light):not(.btn-wa), .blk-sombre .btn:not(.btn-accent):not(.btn-light):not(.btn-wa) { border-color: #fff; color: #fff; }
.blk-head { max-width: 720px; margin-bottom: 26px; }
.blk-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.blk-couleur .blk-head p, .blk-sombre .blk-head p { color: rgba(255,255,255,.82); }
.blk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.blk-actions:empty { display: none; }
.blk { --t0: var(--primary); --t1: var(--accent); --t2: var(--sun); --t3: var(--leaf); --t4: #19A7B5; }
.tone-0 { --tc: var(--t0); } .tone-1 { --tc: var(--t1); } .tone-2 { --tc: var(--t2); } .tone-3 { --tc: var(--t3); } .tone-4 { --tc: var(--t4); }
.bicon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 18px; background: color-mix(in srgb, var(--tc, var(--primary)) 16%, #fff); color: var(--tc, var(--primary)); flex-shrink: 0; }
.bicon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.blk svg.ic { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Diaporama */
.blk-slider { padding: 0; }
.slider { position: relative; overflow: hidden; background: var(--dark); color: #fff; }
.slides { position: relative; height: clamp(340px, 60vw, 520px); }
.slider-grand .slides { height: clamp(420px, 72vw, 680px); }
.slider-plein .slides { height: min(92vh, 900px); min-height: 420px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; display: flex; align-items: flex-end; }
.slide.on { opacity: 1; z-index: 1; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72)); }
.slide-text { position: relative; z-index: 2; padding-bottom: clamp(56px, 8vw, 90px); }
.slide-text h2 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 3vw, 3.2rem); max-width: 18ch; margin-bottom: .3em; }
.slide-text p { max-width: 56ch; font-size: 1.1rem; opacity: .95; }
.sl-prev, .sl-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--dark); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sl-prev { left: 14px; } .sl-next { right: 14px; }
.sl-prev svg, .sl-next svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.sl-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 8px; }
.sl-dots button { width: 11px; height: 11px; border-radius: 999px; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; transition: width .25s; }
.sl-dots button[aria-current] { background: #fff; width: 30px; }
@media (max-width: 640px) { .sl-prev, .sl-next { display: none; } }

/* Grande bannière */
.blk-hero { padding: 0; }
.bhero-inner { display: grid; gap: 32px; align-items: center; padding-top: clamp(48px, 8vw, 100px); padding-bottom: clamp(48px, 8vw, 100px); position: relative; z-index: 1; }
.bhero-title { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.6rem); max-width: 16ch; }
.bhero-lede { font-size: 1.15rem; max-width: 54ch; }
.bhero-pic img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (min-width: 900px) { .bhero-cote .bhero-inner { grid-template-columns: 1.1fr 1fr; } }
.bhero-centre .bhero-inner { text-align: center; justify-items: center; }
.bhero-centre .blk-actions { justify-content: center; }
.bhero-fond { background: var(--bg) center/cover; color: #fff; position: relative; }
.bhero-fond::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,30,.8), rgba(10,14,30,.25)); }
.bhero-fond .bhero-title { color: #fff; }
.bhero-fond .btn-ghost { color: #fff; }

/* Appel à l'action, annonce, compte à rebours, citation */
.bcta { display: grid; gap: 20px; align-items: center; }
@media (min-width: 860px) { .bcta { grid-template-columns: 1.5fr 1fr; } .bcta .blk-actions { justify-content: flex-end; margin: 0; } }
.bcta h2 { margin-bottom: .2em; }
.bcta p { margin: 0; font-size: 1.1rem; opacity: .92; }
.blk-announce { padding: 16px 0; }
.bannounce { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; justify-content: center; text-align: center; }
.bannounce p { margin: 0; font-weight: 700; font-size: 1.05rem; }
.bannounce .btn { padding: 7px 16px; }
.bcount { text-align: center; }
.bcount h2 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); }
.countdown { display: flex; justify-content: center; gap: clamp(8px, 2vw, 18px); margin: 22px 0 8px; flex-wrap: wrap; }
.countdown div { min-width: 86px; padding: 16px 10px; border-radius: 18px; background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.18); }
.blk-clair .countdown div, .blk-teinte .countdown div { background: var(--paper); border-color: var(--line); }
.countdown b { display: block; font: 800 clamp(2rem, 1.4rem + 2.6vw, 3rem)/1 var(--font-head); color: var(--sun); font-variant-numeric: tabular-nums; }
.blk-clair .countdown b, .blk-teinte .countdown b { color: var(--accent); }
.countdown span { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.countdown.done { font: 800 1.6rem var(--font-head); color: var(--sun); }
.bcount-date { opacity: .8; }
.bcount .blk-actions { justify-content: center; }
.bquote { text-align: center; max-width: 900px; margin: 0 auto; }
.bquote blockquote { margin: 0; font: 700 clamp(1.4rem, 1rem + 2vw, 2.3rem)/1.35 var(--font-head); color: var(--dark); position: relative; padding-top: 40px; }
.bquote blockquote::before { content: "“"; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 6rem; line-height: 1; color: var(--accent); }
.blk-couleur .bquote blockquote, .blk-sombre .bquote blockquote { color: #fff; }
.bquote figcaption { margin-top: 14px; font-weight: 700; color: var(--accent); }

/* Texte, texte + photo, colonnes */
.btext { max-width: 820px; }
.btext.centre { text-align: center; margin-inline: auto; }
.btext.centre .prose { margin-inline: auto; }
.btxtimg { display: grid; gap: 32px; align-items: center; }
.btxtimg img { width: 100%; border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
@media (min-width: 860px) { .btxtimg { grid-template-columns: 1fr 1fr; gap: 56px; } .btxtimg.pic-left img { order: -1; } }
.bcolumns { display: grid; gap: 28px; }
@media (min-width: 800px) { .bcolumns.cols-2 { grid-template-columns: 1fr 1fr; } .bcolumns.cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* Cartes, points forts, besoins */
.bcards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bcards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .bcards.cols-3 { grid-template-columns: repeat(3, 1fr); } .bcards.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.bcard { display: flex; flex-direction: column; gap: 8px; background: var(--paper); color: var(--ink); text-decoration: none; border-radius: calc(var(--radius) + 6px); padding: 22px; border: 1px solid var(--line); border-top: 5px solid var(--tc, var(--primary)); transition: transform .15s, box-shadow .15s; }
a.bcard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,26,51,.12); color: var(--ink); }
.bcard img { width: calc(100% + 44px); margin: -22px -22px 6px; max-width: none; aspect-ratio: 16/10; object-fit: cover; border-radius: calc(var(--radius) + 2px) calc(var(--radius) + 2px) 0 0; }
.bcard h3 { margin: 4px 0 0; }
.bcard p { margin: 0; color: var(--muted); }
.bmore { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--tc, var(--accent)); }
.bfeatures { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 32px; }
@media (min-width: 760px) { .bfeatures { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .bfeatures { grid-template-columns: repeat(3, 1fr); } }
.bfeatures li { display: flex; gap: 16px; align-items: flex-start; }
.bfeatures h3 { margin: 4px 0 4px; }
.bfeatures p { margin: 0; color: var(--muted); }
.blk-couleur .bfeatures p, .blk-sombre .bfeatures p, .blk-couleur .bcard p { color: inherit; opacity: .85; }
.bsupport { display: grid; gap: 20px; }
@media (min-width: 720px) { .bsupport { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
.bsup { background: var(--paper); color: var(--ink); border-radius: calc(var(--radius) + 6px); padding: 26px 22px; border: 2px solid color-mix(in srgb, var(--tc) 40%, transparent); display: flex; flex-direction: column; gap: 8px; }
.bsup .amount { font: 800 1.8rem/1 var(--font-head); color: var(--tc); margin: 0; }
.bsup h3 { margin: 0; color: var(--dark); }
.bsup p { margin: 0; color: var(--muted); }
.bsup .btn { margin-top: auto; align-self: flex-start; }

/* Compteurs, étapes, chronologie */
.bcounters { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); text-align: center; }
.bcounters strong { display: block; font: 800 clamp(2.4rem, 1.6rem + 3vw, 3.6rem)/1 var(--font-head); color: var(--sun); }
.blk-clair .bcounters strong, .blk-teinte .bcounters strong { color: var(--primary); }
.bcounters span { display: block; margin-top: 8px; opacity: .88; }
.bsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: st; }
@media (min-width: 800px) { .bsteps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.bsteps li { counter-increment: st; position: relative; padding: 64px 20px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); color: var(--ink); }
.bsteps li::before { content: counter(st); position: absolute; top: 18px; left: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font: 800 1.1rem/36px var(--font-head); text-align: center; }
.bsteps h3 { margin: 0 0 4px; } .bsteps p { margin: 0; color: var(--muted); }
.btimeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; max-width: 820px; }
.btimeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--line); }
.btimeline li { position: relative; padding: 0 0 26px 44px; display: grid; gap: 2px; }
.btimeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 25px; height: 25px; border-radius: 50%; background: var(--paper); border: 5px solid var(--accent); }
.btimeline .when { font: 800 1rem var(--font-head); color: var(--accent); }
.btimeline h3 { margin: 0; } .btimeline p { margin: 4px 0 0; color: var(--muted); }

/* Onglets, FAQ */
.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tablist button { border: 2px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 9px 18px; font: 700 1rem var(--font-body); cursor: pointer; }
.tablist button[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.tabpanel { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: 24px; }
.bfaq-wrap { max-width: 860px; }
.bfaq details { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.bfaq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 700; font-size: 1.05rem; position: relative; }
.bfaq summary::-webkit-details-marker { display: none; }
.bfaq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--light); color: var(--primary); font: 800 1.3rem/28px var(--font-body); text-align: center; transition: transform .2s; }
.bfaq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--accent); color: #fff; }
.bfaq details > .prose { padding: 0 20px 16px; }

/* Témoignages */
.btesti { display: grid; gap: 20px; }
@media (min-width: 760px) { .btesti { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.btesti figure { margin: 0; background: var(--paper); color: var(--ink); border-radius: calc(var(--radius) + 10px); padding: 26px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 8px 24px rgba(20,26,51,.06); position: relative; }
.btesti figure::before { content: "“"; position: absolute; top: 4px; right: 20px; font: 800 4.5rem/1 var(--font-head); color: var(--tc); opacity: .35; }
.btesti blockquote { margin: 0; font-size: 1.06rem; line-height: 1.6; }
.btesti figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.btesti figcaption img, .avatar-s { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.avatar-s { display: inline-flex; align-items: center; justify-content: center; background: var(--tc); color: #fff; font: 800 1.2rem var(--font-head); }
.btesti figcaption span { display: flex; flex-direction: column; } .btesti small { color: var(--muted); }

/* Liens, tableau */
.blinks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 820px; }
.blinks a { display: flex; gap: 14px; align-items: center; padding: 14px 18px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.blinks a:hover { border-color: var(--accent); }
.blinks a > svg { color: var(--accent); }
.blinks span { display: flex; flex-direction: column; } .blinks small { color: var(--muted); }
.btable-wrap { overflow-x: auto; max-width: 860px; }
.btable { width: 100%; border-collapse: collapse; background: var(--paper); color: var(--ink); border-radius: var(--radius); overflow: hidden; }
.btable th, .btable td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.btable th { background: var(--primary); color: #fff; }
.btable td:first-child { font-weight: 700; white-space: nowrap; }

/* Photos, galerie, vidéo, logos */
.bimage { margin: 0 auto; }
.bimage img { width: 100%; border-radius: var(--radius); }
.bimage.full img { border-radius: 0; max-height: 80vh; object-fit: cover; }
.blk-image:has(.full) { padding: 0; }
.bimage figcaption { text-align: center; color: var(--muted); padding-top: 10px; }
.bgallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.bgallery a { display: block; border-radius: var(--radius); overflow: hidden; }
.bgallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.bgallery a:hover img { transform: scale(1.06); }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8,10,20,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.lb img { max-width: 100%; max-height: 82vh; border-radius: 8px; }
.lb p { color: #fff; margin-top: 12px; }
.lb button { position: absolute; top: 14px; right: 14px; border: 0; width: 44px; height: 44px; border-radius: 50%; background: #fff; font-size: 1.5rem; cursor: pointer; }
.bvideo { max-width: 900px; }
.bvideo.with-text { max-width: var(--wrap); display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .bvideo.with-text { grid-template-columns: 1fr 1.4fr; } }
.blogos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 22px 44px; align-items: center; justify-content: center; }
.blogos img { max-height: 64px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.blogos a:hover img, .blogos img:hover { filter: none; opacity: 1; }

/* Contact, carte, WhatsApp, réseaux, intégration */
.bcontact { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .bcontact { grid-template-columns: 1fr 1.2fr; } }
.bcontact-info { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 12px; }
.bcontact-info li { display: flex; gap: 12px; align-items: flex-start; }
.bcontact-info svg { color: var(--accent); margin-top: 3px; }
.bcontact-form { background: var(--paper); color: var(--ink); border-radius: calc(var(--radius) + 8px); padding: 24px; border: 1px solid var(--line); display: grid; gap: 12px; }
.bcontact-form label { display: grid; gap: 4px; font-weight: 700; }
.bcontact-form input, .bcontact-form textarea { font: inherit; padding: 11px 13px; border: 2px solid var(--line); border-radius: 12px; background: #fff; width: 100%; }
.bcontact-form .row2 { display: grid; gap: 12px; }
@media (min-width: 560px) { .bcontact-form .row2 { grid-template-columns: 1fr 1fr; } }
.bcontact-form .btn { justify-self: start; }
.bmap-frame { border-radius: calc(var(--radius) + 6px); overflow: hidden; border: 1px solid var(--line); background: var(--light); }
.bmap-frame iframe, .bembed iframe { width: 100%; height: 100%; border: 0; display: block; }
.bembed iframe { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.bwa { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; background: #E7F8EE; color: #10391F; border-radius: calc(var(--radius) + 12px); padding: 26px; }
.bwa h2 { color: #10391F; margin: 0 0 4px; } .bwa p { margin: 0; }
.bwa > div { flex: 1 1 260px; }
.bwa-ic { width: 64px; height: 64px; border-radius: 50%; background: #1F9D55; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.bsocial { text-align: center; }
.bsocial ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.soc { display: inline-block; padding: 11px 20px; border-radius: 999px; color: #fff !important; font-weight: 700; text-decoration: none; }
.soc-facebook { background: #1877F2; } .soc-youtube { background: #E62117; } .soc-tiktok { background: #111; } .soc-instagram { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); } .soc-whatsapp { background: #1F9D55; }

/* Boutons, espace */
.bbuttons.centre { text-align: center; }
.bbuttons.centre .blk-actions { justify-content: center; }
.blk-spacer { padding: 0; }
.bspacer { display: flex; align-items: center; justify-content: center; }
.sp-petit { height: 24px; } .sp-moyen { height: 56px; } .sp-grand { height: 110px; }
.bspacer span { display: block; width: min(var(--wrap), 92%); }
.line-ligne span { height: 2px; background: var(--line); }
.line-taptap span { height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--primary) 0 22%, var(--accent) 22% 44%, var(--sun) 44% 62%, var(--leaf) 62% 80%, var(--accent) 80%); }
.line-vague span { height: 16px; background: radial-gradient(circle at 10px -4px, transparent 12px, var(--accent) 13px 15px, transparent 16px) 0 0/20px 16px repeat-x; }
@media (prefers-reduced-motion: reduce) { .slide, .bgallery img, .bcard { transition: none; } }
.blk.blk-couleur .btn-ghost, .blk.blk-sombre .btn-ghost, .bhero-fond .btn-ghost { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; box-shadow: none; }
.blk.blk-couleur .btn-ghost:hover, .blk.blk-sombre .btn-ghost:hover { background: #fff; color: var(--dark); }
.blk.blk-couleur .btn-light, .blk.blk-sombre .btn-light { background: #fff; border-color: #fff; color: var(--dark); }

/* =========================================================
   v2.7 : menus à plusieurs niveaux, photos et contenus insérés, actualités
   ========================================================= */
:root { --img-radius: var(--radius, 12px); --img-shadow: 0 8px 22px rgba(20, 24, 60, .10); --img-border: 0 solid transparent; --img-pad: 0px; --img-bg: transparent; }

/* ---- Barre du haut ---- */
.top-bar { background: var(--dark); color: #fff; font-size: .88rem; }
.top-bar .top-menu { list-style: none; margin: 0; padding: 6px 0; display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: flex-end; }
.top-bar a, .top-bar .menu-heading { color: #fff; text-decoration: none; font-weight: 700; opacity: .92; }
.top-bar a:hover { opacity: 1; text-decoration: underline; }
.top-bar .sub-menu, .top-bar .sub-toggle { display: none; }

/* ---- Menu principal : sous-menus ---- */
.main-nav .nav-menu li { position: relative; }
.main-nav .menu-heading { display: block; padding: 10px 0; font-weight: 700; color: var(--dark); cursor: pointer; }
.main-nav .sub-toggle { position: absolute; top: 4px; right: 0; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; border-radius: 10px; color: inherit; }
.main-nav .sub-toggle span { display: block; width: 9px; height: 9px; margin: 0 auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.main-nav li.is-open > .sub-toggle span { transform: rotate(-135deg) translate(-2px, -2px); }
.main-nav .nav-menu .sub-menu { display: none; list-style: none; margin: 0; padding: 0 0 6px 16px; border-left: 2px solid var(--line); }
.main-nav .nav-menu li.is-open > .sub-menu { display: block; }
.main-nav .nav-menu .has-sub > a, .main-nav .nav-menu .has-sub > .menu-heading { padding-right: 46px; }
.main-nav .nav-menu .sub-menu a, .main-nav .nav-menu .sub-menu .menu-heading { font-weight: 600; font-size: .95rem; padding: 8px 0; }
.main-nav .nav-menu:has(.has-sub) { grid-template-columns: 1fr !important; }
@media (min-width: 1000px) {
  .main-nav .nav-menu > li > .sub-toggle { position: static; display: inline-block; width: 22px; height: 22px; vertical-align: middle; margin-left: -18px; padding: 0; }
  .main-nav .nav-menu .has-sub > a, .main-nav .nav-menu .has-sub > .menu-heading { padding-right: 22px; display: inline-block; }
  .main-nav .nav-menu .sub-menu { position: absolute; top: 100%; left: -14px; z-index: 60; min-width: 230px; padding: 8px; border: 0; background: var(--paper, #fff); border-radius: 14px; box-shadow: 0 18px 40px rgba(20, 24, 60, .18); display: none !important; flex-direction: column; gap: 0; }
  .main-nav .nav-menu .sub-menu .sub-menu { top: -8px; left: 100%; margin-left: 6px; }
  .main-nav .nav-menu li:hover > .sub-menu, .main-nav .nav-menu li:focus-within > .sub-menu, .main-nav .nav-menu li.is-open > .sub-menu { display: flex !important; }
  .main-nav .nav-menu .sub-menu li { width: 100%; }
  .main-nav .nav-menu .sub-menu a, .main-nav .nav-menu .sub-menu .menu-heading { display: block; padding: 9px 12px; border-radius: 10px; background: transparent !important; color: var(--dark) !important; text-align: left; white-space: nowrap; }
  .main-nav .nav-menu .sub-menu a:hover { background: var(--light, #F2F4FB) !important; }
  .main-nav .nav-menu .sub-menu a[aria-current="page"]::after { display: none; }
  .main-nav .nav-menu .sub-menu .sub-toggle { position: absolute; top: 6px; right: 4px; width: 26px; height: 26px; }
  .main-nav .nav-menu .sub-menu .sub-toggle span { transform: rotate(-45deg) translate(-1px, -1px); }
  .main-nav .nav-menu .sub-menu .has-sub > a { padding-right: 34px; }
}

/* ---- Photos insérées (style selon le thème) ---- */
.ep-img { margin: 1.4em auto; max-width: 100%; }
.ep-img img { display: block; width: 100%; height: auto; border-radius: var(--img-radius); box-shadow: var(--img-shadow); border: var(--img-border); padding: var(--img-pad); background: var(--img-bg); box-sizing: border-box; }
.ep-img figcaption { margin-top: .5em; font-size: .9rem; color: var(--muted, #5A5F80); text-align: center; }
.ep-size-small { width: 320px; } .ep-size-medium { width: 560px; } .ep-size-large { width: 900px; }
.ep-size-full { width: 100%; }
@media (min-width: 700px) {
  .ep-align-left { float: left; margin: .3em 1.6em 1em 0; max-width: 50%; }
  .ep-align-right { float: right; margin: .3em 0 1em 1.6em; max-width: 50%; }
}
.prose::after { content: ""; display: table; clear: both; }

/* ---- Vidéos et publications de réseaux sociaux ---- */
.ep-embed { margin: 1.4em auto; max-width: 900px; clear: both; }
.ep-embed .video-load, .ep-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--img-radius); overflow: hidden; position: relative; background: #111827 linear-gradient(135deg, var(--primary, #2B2F8F), var(--dark, #1C1F5A)); cursor: pointer; padding: 0; }
.ep-embed.is-tall { max-width: 520px; }
.ep-embed.is-tall .video-load, .ep-embed.is-tall iframe { aspect-ratio: 4 / 5; background: var(--light, #F2F4FB); }
.ep-embed--tiktok .video-load, .ep-embed--tiktok iframe { aspect-ratio: 9 / 16; max-height: 740px; }
.ep-embed .video-load img { width: 100%; height: 100%; object-fit: cover; }
.ep-embed-badge { position: absolute; left: 14px; top: 14px; background: #fff; color: var(--dark, #1C1F5A); font-weight: 800; border-radius: 999px; padding: 6px 12px; font-size: .9rem; }
.ep-embed .play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: rgba(0,0,0,.6); }
.ep-embed .play::after { content: ""; position: absolute; left: 27px; top: 21px; border-left: 20px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.ep-embed figcaption { font-size: .88rem; color: var(--muted, #5A5F80); margin-top: .45em; text-align: center; }

/* ---- Documents ---- */
.ep-doc { display: flex; gap: 14px; align-items: center; margin: 1.1em 0; padding: 14px 16px; border: 2px solid var(--line, #E6E8F2); border-radius: var(--radius, 14px); text-decoration: none; color: inherit; background: var(--paper, #fff); max-width: 640px; clear: both; }
.ep-doc:hover { border-color: var(--primary); }
.ep-doc-ext { flex-shrink: 0; display: grid; place-items: center; width: 52px; height: 60px; border-radius: 8px; background: var(--primary, #2B2F8F); color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .02em; }
.ep-doc-text { display: grid; gap: 2px; min-width: 0; }
.ep-doc-text strong { overflow-wrap: anywhere; }
.ep-doc-text span { font-size: .85rem; color: var(--muted, #5A5F80); }

/* ---- Actualités : catégories, barre latérale, mises en page ---- */
.news-layout { display: grid; gap: 34px; }
@media (min-width: 1000px) { .news-layout.side-right { grid-template-columns: minmax(0, 1fr) 300px; } .news-layout.side-left { grid-template-columns: 300px minmax(0, 1fr); } .news-layout.side-left .news-side { order: -1; } }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.cat-chips a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--light, #F2F4FB); color: var(--dark); text-decoration: none; font-weight: 700; font-size: .92rem; }
.cat-chips a[aria-current="true"] { background: var(--primary); color: #fff; }
.news-side { display: grid; gap: 22px; align-content: start; }
.news-side section { background: var(--light, #F2F4FB); border-radius: var(--radius, 16px); padding: 18px 20px; }
.news-side h2 { font-size: 1.1rem; margin: 0 0 10px; }
.news-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.news-side li { padding-left: calc(var(--d, 0) * 14px); }
.news-side a { color: var(--dark); text-decoration: none; font-weight: 600; }
.news-side a:hover { text-decoration: underline; }
.news-side .count { color: var(--muted); font-weight: 400; font-size: .85rem; }
.post-grid.layout-list { grid-template-columns: 1fr !important; }
.post-grid.layout-list .post-card { display: grid; grid-template-columns: 220px 1fr; align-items: start; }
@media (max-width: 640px) { .post-grid.layout-list .post-card { grid-template-columns: 1fr; } }
.post-grid.layout-magazine > :first-child { grid-column: 1 / -1; }
.pin-badge { display: inline-block; background: var(--accent, #FF6B35); color: #fff; font-weight: 800; font-size: .75rem; border-radius: 999px; padding: 3px 9px; margin-bottom: 6px; }
.post-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.post-cats a { font-size: .85rem; font-weight: 700; color: var(--primary); text-decoration: none; background: var(--light, #F2F4FB); border-radius: 999px; padding: 4px 11px; }
.cat-desc { margin: -6px 0 18px; color: var(--muted); }
/* Les photos principales des actualités suivent aussi le style de photo du thème */
.page-body img.feature { border-radius: var(--img-radius); box-shadow: var(--img-shadow); border: var(--img-border); padding: var(--img-pad); background: var(--img-bg); box-sizing: border-box; }
.main-nav .menu-heading { font-weight: 600; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .main-nav .nav-menu > li > .menu-heading { border: 0; padding: 6px 0; font-size: .97rem; } }

/* =========================================================
   Menus placés (2.15) : barre sous l'en-tête, avant le pied de page, bloc « Menu », barre du téléphone
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ext-ic { display: inline-block; margin-left: 4px; font-size: .8em; opacity: .7; text-decoration: none; }
.menu-bar { background: var(--light, #F2F4FB); border-bottom: 1px solid var(--line, #E6E8F2); position: relative; z-index: 9; }
.menu-before_footer { border-top: 1px solid var(--line, #E6E8F2); border-bottom: 0; padding: 6px 0; }
.blk .menu-bar { background: transparent; border: 0; }
.menu-bar-list { list-style: none; margin: 0; padding: 8px 0; display: flex; gap: 6px 22px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.menu-bar-list::-webkit-scrollbar { display: none; }
.menu-bar-list > li { position: relative; flex-shrink: 0; }
.menu-bar-list a, .menu-bar-list .menu-heading { display: inline-flex; align-items: center; padding: 6px 2px; color: var(--ink, #1E2147); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.menu-bar-list a:hover { color: var(--accent, #FF6B35); }
.menu-bar-list a[aria-current="page"] { color: var(--primary, #2B2F8F); }
.menu-bar-list .sub-toggle { display: none; }
.menu-bar-list .sub-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 70; min-width: 210px; list-style: none; margin: 0; padding: 8px; background: var(--paper, #fff); border-radius: 12px; box-shadow: 0 16px 36px rgba(20,24,60,.16); }
.menu-bar-list .sub-menu a { display: block; padding: 8px 10px; border-radius: 8px; font-weight: 600; }
.menu-bar-list .sub-menu a:hover { background: var(--light, #F2F4FB); }
@media (min-width: 900px) {
  .menu-bar-list { flex-wrap: wrap; overflow: visible; }
  .menu-bar-list > li:hover > .sub-menu, .menu-bar-list > li:focus-within > .sub-menu { display: block; }
}
.mba-centre .menu-bar-list { justify-content: center; }
.mba-droite .menu-bar-list { justify-content: flex-end; }
.mba-etale .menu-bar-list { justify-content: space-between; }
@media (max-width: 899px) { .mba-centre .menu-bar-list, .mba-droite .menu-bar-list, .mba-etale .menu-bar-list { justify-content: flex-start; } }
/* Styles */
.mbs-pastilles .menu-bar-list > li > a { padding: 7px 16px; border-radius: 999px; background: var(--paper, #fff); border: 1px solid var(--line, #E6E8F2); }
.mbs-pastilles .menu-bar-list > li > a:hover, .mbs-pastilles .menu-bar-list > li > a[aria-current="page"] { background: var(--primary, #2B2F8F); border-color: var(--primary, #2B2F8F); color: #fff; }
.mbs-boutons .menu-bar-list > li > a { padding: 9px 18px; border-radius: var(--radius, 10px); background: var(--primary, #2B2F8F); color: #fff; }
.mbs-boutons .menu-bar-list > li:first-child > a { background: var(--accent, #FF6B35); color: var(--on-accent, #fff); }
.mbs-boutons .menu-bar-list > li > a:hover { filter: brightness(1.08); color: #fff; }
.mbs-onglets .menu-bar-list { gap: 0 26px; padding-bottom: 0; }
.mbs-onglets .menu-bar-list > li > a { padding: 10px 2px 12px; border-bottom: 3px solid transparent; }
.mbs-onglets .menu-bar-list > li > a:hover, .mbs-onglets .menu-bar-list > li > a[aria-current="page"] { border-bottom-color: var(--accent, #FF6B35); }
/* Barre du haut (styles et alignement choisis) */
.top-bar .top-menu { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 6px 0; }
.top-bar.mba-centre .top-menu { justify-content: center; }
.top-bar.mba-gauche .top-menu { justify-content: flex-start; }
.top-bar.mba-droite .top-menu { justify-content: flex-end; }
.top-bar.mba-etale .top-menu { justify-content: space-between; }
.top-bar.mbs-pastilles .top-menu > li > a, .top-bar.mbs-boutons .top-menu > li > a { padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.14); }
.top-bar.mbs-boutons .top-menu > li:first-child > a { background: var(--accent, #FF6B35); color: var(--on-accent, #fff); }
/* Barre fixe du téléphone */
.mobile-bar { display: none; }
@media (max-width: 899px) {
  .mobile-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--paper, #fff); border-top: 1px solid var(--line, #E6E8F2); box-shadow: 0 -8px 24px rgba(15,20,40,.10); padding-bottom: env(safe-area-inset-bottom, 0); }
  .mobile-bar ul { list-style: none; margin: 0; padding: 0; display: flex; }
  .mobile-bar li { flex: 1; min-width: 0; }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px 9px; font-size: .72rem; font-weight: 700; color: var(--muted, #5A5F80); text-decoration: none; text-align: center; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; }
  .mobile-bar .mb-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--light, #F2F4FB); color: var(--primary, #2B2F8F); font-size: .85rem; font-weight: 800; }
  .mobile-bar a[aria-current="page"] { color: var(--primary, #2B2F8F); }
  .mobile-bar a[aria-current="page"] .mb-dot { background: var(--primary, #2B2F8F); color: #fff; }
  body:has(.mobile-bar) { padding-bottom: 70px; }
  body:has(.mobile-bar) .wa-float, body:has(.mobile-bar) .ep-wa-btn, body:has(.mobile-bar) .ep-wa, body:has(.mobile-bar) .ep-share { bottom: 84px; }
  body:has(.mobile-bar):has(.ep-wa) .wa-float { bottom: 148px; }
}
html.is-dark .menu-bar, html.is-dark .mobile-bar { background: var(--light); }
html.is-dark .menu-bar-list a, html.is-dark .mobile-bar a { color: var(--ink); }

/* 2.16 : lecteurs audio et vidéo */
.ep-embed.is-audio { max-width: 760px; }
.ep-embed.is-audio .video-load, .ep-embed.is-audio iframe { aspect-ratio: auto; height: 166px; }
.ep-embed--spotify.is-audio iframe, .ep-embed--spotify.is-audio .video-load { height: 152px; }
.ep-embed--mixcloud.is-audio iframe { height: 120px; }
.ep-embed-badge .ic { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.ep-audio { margin: 1.2em auto; max-width: 760px; background: var(--light, #F2F4FB); border: 1px solid var(--line, #E2E5F0); border-radius: var(--radius, 12px); padding: 12px 14px; }
.ep-audio figcaption { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0 0 8px; color: var(--ink, #1D2233); }
.ep-audio figcaption .ic { width: 18px; height: 18px; color: var(--primary); flex: none; }
.ep-audio audio { width: 100%; display: block; }
.ep-video { margin: 1.2em auto; max-width: 960px; }
.ep-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--img-radius, 12px); }
.ep-video figcaption { font-size: .88rem; color: var(--muted); margin-top: .45em; text-align: center; }
.bvgal-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .bvgal-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } .bvgal-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.bvgal-grid > * { margin: 0; max-width: none; min-width: 0; }
.baudio-card { display: grid; gap: 22px; background: var(--paper, #fff); border: 1px solid var(--line, #E2E5F0); border-radius: calc(var(--radius, 12px) + 6px); padding: clamp(16px, 3vw, 28px); box-shadow: 0 14px 40px rgba(15, 20, 40, .08); }
@media (min-width: 760px) { .baudio-card.has-cover { grid-template-columns: 240px minmax(0, 1fr); align-items: start; } }
.baudio-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--img-radius, 12px); box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.baudio-main h2 { margin: 0 0 .3em; }
.baudio-text { color: var(--muted); margin: 0 0 14px; }
.ep-player-now { display: flex; align-items: center; gap: 14px; }
.ep-player-btn { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent, #FF6B35); color: var(--on-accent, #fff); cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.ep-player-btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.ep-ic-play { width: 0; height: 0; border-left: 17px solid currentColor; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 4px; }
.is-playing .ep-ic-play { width: 16px; height: 20px; border: 0; margin: 0; background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
.ep-player-info { flex: 1; min-width: 0; }
.ep-player-info strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-player-bar { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ep-player-bar input[type=range] { flex: 1; min-width: 0; accent-color: var(--accent, #FF6B35); }
.ep-tracks { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line, #E2E5F0); }
.ep-tracks li { display: flex; align-items: center; border-bottom: 1px solid var(--line, #E2E5F0); }
.ep-track { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 11px 6px; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.ep-track:hover .ep-track-t { text-decoration: underline; text-underline-offset: 3px; }
.ep-track.is-current { font-weight: 800; }
.ep-track-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--light, #F2F4FB); font-size: .78rem; font-weight: 800; }
.ep-track.is-current .ep-track-n { background: var(--accent, #FF6B35); color: var(--on-accent, #fff); }
.ep-track-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ep-track-t small { display: block; font-weight: 500; color: var(--muted); }
.ep-track-dl { flex: none; padding: 8px 12px; text-decoration: none; font-weight: 800; color: var(--muted); }
.baudio-embeds { margin-top: 18px; }
html.is-dark .baudio-card, html.is-dark .ep-audio { background: var(--light); }
