/* ============================================================
   GLOBAL.CSS — Design System & Utilities
   Structure :
   3. Reset & Base
   4. Typographie
   5. Boutons
   6. Backgrounds & Overlays
   7. Layout (containers, margins inline)
   8. Flex utilities
   9. Grid system (nouveau CSS Grid + legacy flex grid)
   10. Spacing (gap, margin, padding)
   11. Sizing & Display utilities
   12. Border radius, shadows, misc
   13. Animations d'entrée
   14. Overflow / Scroll custom
   15. Footer legacy
   ============================================================ */


/* ============================================================
   3. RESET & BASE
   ============================================================ */
:root {
    overscroll-behavior: none;
}
*{
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-y: auto;
    box-sizing: border-box;
    /* font-size: 1rem; */
}
body{
    margin: 0px;
    overflow-x: clip;
}

img, picture, figure {
    object-fit: cover;
}
picture img, figure img{
    max-width: 100%;
}
figure{
    width: auto;
    margin-inline: 0px;
}
main{
    background: var(--color-white);
}

select {
    padding: 8px;
    border-radius: 8px;
    border-color: var(--color-primary);
    color: var(--color-primary);
}


/* ============================================================
   4. TYPOGRAPHIE
   ============================================================ */

/* --- Titres --- */

/* :host : mêmes titres dans le header que l'app rend dans un Shadow DOM, où body n'existe pas */
body h1, body h2, body h3, body h4,
:host h1, :host h2, :host h3, :host h4 {
    font-family: 'Cabinet';
    font-weight: 750;
    color: var(--color-primary);
    margin: 0;
    width: fit-content;
    box-shadow: none;
}

h1, .titre1 { font-size: clamp(30px, 4.5vw, 58px); }
h2, .titre2 { font-size: clamp(24px, 3.75vw, 48px); line-height: 1.35; }
h3, .titre3 { font-size: clamp(20px, 2.5vw, 32px); }
h4, .titre4 { font-size: clamp(18px, 1.875vw, 24px); }

h1 strong, h2 strong, h3 strong, h4 strong {
    font-weight: 750;
}

h2 strong {
    /* color: var(--color-tertiary); */
    color: transparent;
    background: var(--gradient-titre);
    background-clip: text;
}
h3 strong, h4 strong{
    color: transparent;
    background: var(--color-tertiary);
    background-clip: text;
}

h1 .gold, h2 .gold, h3 .gold, h4 .gold {
    color: transparent;
    background: var(--gradient-titre);
    background-clip: text;
}

/* Soulignement doré animé sous les h1 */
h1 strong {
    position: relative;
    z-index: 2;
    text-wrap: nowrap;
}

h1 strong::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 6px;
    width: calc(100% + 16px);
    transform: translateX(-8px) skewX(-24deg);
    border-radius: 6px;
    height: 20px;
    background: var(--gradient-titre-h1);
    z-index: -1;
}

/* Underline animé sous les h2 */
section:not(.fond-bleu):not([style*="var(--fond-bleu)"]) h2:not(.titre3)::after {
    content: "";
    display: block;
    transform: translateX(-8px);
    height: 3px;
    background: var(--gradient-titre);
    border-radius: 16px;
    margin-top: 4px;
    width: 0;
    transition: width var(--h2-underline-duration, 0.6s) var(--h2-underline-easing, ease-out);
}

section:not(.fond-bleu):not([style*="var(--fond-bleu)"]) h2:not(.titre3).underline-anim::after {
    width: calc(100% + 16px);
}

.background-primary h2::after,
.fond-bleu h2::after,
h2.no-subline::after {
    display: none;
}

h2.h2-underlines {
    position: relative;
}

h2.h2-underlines::after {
    width: 0;
    transition: none;
}

 h2:not(.titre3) .h2-underline {
    position: absolute;
    left: 0;
    width: 0;
    height: 3px;
    border-radius: 16px;
    background: var(--gradient-titre);
    pointer-events: none;
    transition: width var(--h2-ligne-duree, 0.6s) var(--h2-underline-easing, ease-out) var(--h2-ligne-delai, 0ms);
}

h2.h2-chars-visible .h2-underline {
    width: var(--h2-ligne-largeur, 0);
}

h2:not(.titre3) .h2-underline-v {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    border-radius: 16px;
    background: var(--gradient-titre);
    pointer-events: none;
    display: none;
    transition: height var(--h2-bar-duree, 0.6s) var(--h2-underline-easing, ease-out);
}

h2.h2-chars-visible .h2-underline-v {
    height: var(--h2-bar-hauteur, 0);
}

h2.h2-underline-vertical {
    padding-left: 20px;
    line-height: 1.25;
}

h2.h2-underline-vertical .h2-underline {
    display: none;
}

h2.h2-underline-vertical .h2-underline-v {
    display: block;
}

h2.h2-chars .h2-char {
    opacity: 0;
    transition: opacity var(--h2-char-fade, 150ms) ease-out;
    transition-delay: var(--h2-char-delay, 0ms);
}

h2.h2-chars-visible .h2-char {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    h2.h2-chars .h2-char {
        opacity: 1;
        transition: none;
    }
}

section[id] {
    scroll-margin-top: 160px;
}

/* --- Corps de texte --- */

p,
a,
li,
li a {
    font-family: 'Satoshi';
    font-weight: 400;
    margin: 0;
    font-size: 18px;
}

p, p span, li {
    color: var(--color-primary);
}

a {
    text-decoration: none;
}

p a,
li a {
    color: var(--color-tertiary);
    font-weight: 600;
    text-decoration: underline;
    transition: 0.3s;
}

p a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

p a:active {
    scale: 0.94;
}

b, strong  { font-weight: 700; }
.italic    { font-style: italic; }

[class*="bloc-"] p,
[class*="bloc-"] li,
[class*="bloc-"] span {
    font-size: inherit;
}

/* --- Tailles utilitaires --- */

.text-24 { font-size: clamp(20px, 1.875vw, 24px) !important; }
.text-20 { font-size: clamp(18px, 1.5625vw, 20px) !important; }
.text-18 { font-size: clamp(16px, 1.4vw, 18px) !important; }
.text-16 { font-size: clamp(14px, 1.25vw, 16px) !important; }
.text-14 { font-size: 14px !important; }
.text-12 { font-size: 12px !important; }

.t-white, .t-white p, .t-white a, .t-white p a { color: white; }
.t-primary   { color: var(--color-primary); }
.t-secondary { color: var(--color-secondary); }

.text-center {
    width: fit-content;
    margin-inline: auto;
    text-align: center;
}

.text-start {
    text-align: start;
}

.margin-auto {
    margin-inline: auto;
}


/* ============================================================
   5. BOUTONS
   ============================================================ */

.button {
    height: fit-content;
    text-decoration: none;
    padding: 14px 44px 14px 24px;
    border-radius: 80px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    width: fit-content;
    min-width: fit-content;
    display: inline-block;
    font-weight: 500;
    font-size: 18px;
    /* text-align: center; */
    font-family: "Satoshi";
}

button.button {
    outline: none;
    border: none;
    font-weight: 400;
}

.button:active { scale: 0.94; }
.button:focus  { color: currentColor; }

.button.small {
    padding: 8px 36px 8px 16px;
    gap: 6px;
    font-size: 16px;
    font-weight: 400;
}

/* Hover : décalage du padding */
.button:hover,
a:hover .button,
button:hover .button {
    padding: 14px 24px 14px 44px;
    text-decoration: none;
}

.button.small:hover {
    padding: 8px 16px 8px 36px;
    font-weight: 500;
}

/* Flèches animées */
.button::after,
.button::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    width: 8px;
    height: 8px;
    border-right: solid 2px;
    border-bottom: solid 2px;
    transition: 0.3s right, 0.3s left, 0.1s filter;
}

.button::after  { right: 20px; }
.button::before { left: -16px; filter: blur(2px); }

.button:hover::after,
a:hover .button::after,
button:hover .button::after {
    right: -24px;
    filter: blur(2px);
}

.button:hover::before,
a:hover .button::before,
button:hover .button::before {
    left: 16px;
    filter: blur(0);
}

/* Variantes de couleur */
.button.primary {
    background: var(--gradient-primary);
    color: var(--color-white);
}
.button.primary.outline{
    background: transparent;
    color: var(--color-primary);
    box-shadow: 0 0 0px 2px var(--color-primary);
}

.button.secondary {
    background: var(--gradient-button);
    color: var(--color-primary);
}
.button.secondary.outline{
    background: transparent;
    color: var(--color-secondary);
    box-shadow: 0 0 0px 2px var(--color-secondary);
}

.button.tertiary {
    background-color: transparent;
    color: var(--color-primary);
    box-shadow: inset 0 0 0 2px var(--color-primary);
}
.button.tertiary.outline{
    background: transparent;
    color: var(--color-tertiary);
    box-shadow: 0 0 0px 2px var(--color-tertiary);
}

.button.white {
    background-color: var(--color-white);
    color: var(--color-primary);
}
.button.white.outline{
    background: transparent;
    color: var(--color-white);
    box-shadow: 0 0 0px 2px var(--color-white);
}

.button.silver {
    background: var(--gradient-silver);
    color: var(--color-primary);
}

.button.secondary:hover,
a:hover .button.secondary,
button:hover .button.secondary {
    filter: brightness(1.1);
}

.button.silver:hover,
a:hover .button.silver,
button:hover .button.silver {
    filter: brightness(0.9);
}

.button.white:hover,
.button.tertiary:hover,
.button.primary:hover,
a:hover .button.white,
a:hover .button.tertiary,
a:hover .button.primary,
button:hover .button.white,
button:hover .button.tertiary,
button:hover .button.primary {
    background: var(--gradient-secondary);
    color: var(--color-primary);
    border: 0;
    box-shadow: inset 0 0 0 0 var(--color-secondary);
}

/* Bouton avec icône */
.button.icon {
    padding: 14px 24px 14px 44px;
    text-align: left;
}

.button.icon img {
    position: absolute;
    width: 18px;
    height: 18px;
    object-fit: contain;
    left: 16px;
    transition: 0.3s right, 0.3s left, 0.1s filter;
}

.button.icon:hover img {
    left: -20px;
    filter: blur(2px);
}

.button.icon::after { display: none; }

a:hover .button img {
    left: -24px;
    filter: blur(2px);
}

/* Boutons drapeaux */
.button.suisse::after,
.button.france::after,
.button.icon img {
    width: 22px;
    height: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    right: 14px;
    border: none;
}

.button.suisse::after,
.button.france::after {
    height: 22px;
}

.button.suisse::after {
    content: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMjAgMzIwIj4NCjxwYXRoIGZpbGw9IiNkNTJiMWUiIGQ9Im0wLDBoMzIwdjMyMGgtMzIweiIvPg0KPGcgZmlsbD0iI2ZmZiI+DQo8cGF0aCBkPSJtNjAsMTMwaDIwMHY2MGgtMjAweiIvPg0KPHBhdGggZD0ibTEzMCw2MGg2MHYyMDBoLTYweiIvPg0KPC9nPg0KPC9zdmc+DQo=');
}

.button.france::after {
    width: 20px;
    content: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5MDAgNjAwIj4NCjxwYXRoIGZpbGw9IiNlZDI5MzkiIGQ9Im0wLDBoOTAwdjYwMGgtOTAweiIvPg0KPHBhdGggZmlsbD0iI2ZmZiIgZD0ibTAsMGg2MDB2NjAwaC02MDB6Ii8+DQo8cGF0aCBmaWxsPSIjMDAyMzk1IiBkPSJtMCwwaDMwMHY2MDBoLTMwMHoiLz4NCjwvc3ZnPg0K');
}
.button.suisse:hover::after,
.button.france:hover::after {
    right: -24px;
}

/* Bouton outline blanc */
.button.white.border {
    background: transparent;
    box-shadow: inset 0 0 0 2px var(--color-white);
    color: var(--color-white);
}

/* Bouton underline */
.button.underline {
    color: var(--color-primary);
    border-radius: 0;
    border-bottom: solid 2px var(--color-primary);
}
.button.underline.white {
    color: var(--color-white) !important;
    border-radius: 0;
    border-bottom: solid 2px var(--color-white);
    background: transparent;
}
.button.underline.white::after, .button.underline.white::before{
    border-color: var(--color-white) !important;
}

/* Bouton external */
.button.external::after {
    transform: translateY(-50%) rotate(-90deg);
    width: 10px;
    height: 10px;
}

.button.external:hover::after {
    transform: translateY(-50%) rotate(-45deg);
}

.button.external::before {
    width: 10px;
    height: 10px;
}


/* ============================================================
   6. BACKGROUNDS & OVERLAYS
   ============================================================ */

.background-primary   { background: var(--gradient-primary); }
.background-secondary { background: var(--gradient-secondary); }
.fond-bleu            { background-color: var(--fond-bleu); }
.fond-jaune           { background-color: var(--fond-jaune); }
.fond-silver          { background-color: var(--fond-silver); }
.fond-lsp             { background-color: var(--fond-lsp); }
.fond-jaune-gradient  { background: linear-gradient(338deg, rgba(249, 243, 220, 1) 0%, rgba(224, 198, 101, 0.8) 100%); }

/* Images de fond avec overlay */
.background-image-50,
.background-image-80,
.background-image-blue,
.background-image-blue-black {
    position: relative;
    overflow: hidden;
}

.background-image-50 *,
.background-image-80 *,
.background-image-blue *,
.background-image-blue-black * {
    position: relative;
    z-index: 1;
}

/* Lisibilité du texte blanc sur photo : le dégradé de l'overlay ne garantit pas
   toujours un contraste suffisant selon la zone de la photo en dessous */
.background-image-50 .t-white,
.background-image-80 .t-white,
.background-image-blue .t-white,
.background-image-blue-black .t-white {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.background-image-50::after,
.background-image-80::after,
.background-image-blue::after,
.background-image-blue-black::after {
    content: "";
    z-index: 0;
    position: absolute;
    inset: 0;
    transition: 0.7s;
}

.background-image-50::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%),
                var(--bg-url) lightgray 50% / cover no-repeat;
}

.background-image-80::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%),
                var(--bg-url) lightgray 50% / cover no-repeat;
}

.background-image-blue::after {
    background: linear-gradient(215deg, rgba(32, 74, 124, 0.4) 0%, rgba(27, 48, 72, 0.65) 100%),
                var(--bg-url) lightgray 50% / cover no-repeat;
}

.background-image-blue-black::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(28, 56, 89, 0.85) 99.95%),
                var(--bg-url) lightgray 50% / cover no-repeat;
}

.bg-anim:hover::after {
    filter: blur(2px) brightness(0.5);
    scale: 1.05;
}


/* ============================================================
   7. LAYOUT (containers, margins inline)
   ============================================================ */

.margin-inline-120,
.margin-inline-250,
.margin-inline-300 {
    margin-inline: auto;
    width: 100%;
}

.margin-inline-120 { padding-inline: 40px;  max-width: 1800px; }
.margin-inline-250 { padding-inline: 64px;  max-width: 1600px; }
.margin-inline-300 { padding-inline: 80px;  max-width: 1500px; }

.padding-inline-120 { padding-inline: 5vw; }
.padding-inline-250 { padding-inline: 8vw; }
.padding-inline-300 { padding-inline: 10vw; }

.margin-block-40 { padding-block: 40px; }
.margin-block-80 { padding-block: 80px; }

.max-800  { max-width: 800px; }
.max-900  { max-width: 900px; }
.max-1000 { max-width: 1000px; }
.max-1100 { max-width: 1100px; }
.max-1200 { max-width: 1024px; }
.max-1400 { max-width: 1400px; }


/* ============================================================
   8. FLEX UTILITIES
   ============================================================ */

.flex-row            { display: flex; }
.flex-row-reverse    { flex-direction: row-reverse; }
.flex-column         { display: flex; flex-direction: column; }
.flex-column-reverse { display: flex; flex-direction: column-reverse; }
.flex-row-center     { display: flex; justify-content: center; align-items: center; }
.flex-column-center  { display: flex; flex-direction: column; justify-content: center; align-items: center; }

.justify-center   { justify-content: center; }
.justify-start    { justify-content: start; }
.justify-end      { justify-content: end; }
.justify-stretch  { justify-content: stretch; }
.justify-sb       { justify-content: space-between; }

.align-center   { align-items: center; }
.align-start    { align-items: start; }
.align-end      { align-items: end; }
.align-stretch  { align-items: stretch; }
.flex-img       { align-items: stretch; }


/* ============================================================
   9. GRID SYSTEM (nouveau CSS Grid)
   ============================================================ */

/*
   NOUVEAU SYSTÈME : basé sur CSS Grid natif.
   - .grid           : conteneur grid de base
   - .grid-auto-*    : colonnes auto-adaptatives (pas de media query nécessaire)
   - .grid-cols-*    : colonnes fixes quand on veut un contrôle précis
   - .grid-md-cols-* : override tablette
   - .grid-sm-cols-* : override mobile
   
   Pour les layouts asymétriques (ex: 2/3 + 1/3), utiliser les classes
   legacy .row-wrap + .grid-* ou du flex.
*/

.grid {
    display: grid;
    gap: 32px;
}

/* --- Auto-fit : les colonnes se réorganisent toutes seules --- */
/* Petits éléments (icônes, stats, badges) : min 150px */
.grid-auto-xs { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* Éléments compacts (features, valeurs) : min 220px */
.grid-auto-sm { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Éléments standards (cartes, témoignages) : min 300px */
.grid-auto-md { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Éléments larges (cartes produit, articles) : min 400px */
.grid-auto-lg { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }

/* --- Colonnes fixes --- */
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }

/* --- Layouts asymétriques courants --- */
.grid-2-1  { grid-template-columns: 2fr 1fr; }  /* 66% / 33% */
.grid-1-2  { grid-template-columns: 1fr 2fr; }  /* 33% / 66% */
.grid-3-1  { grid-template-columns: 3fr 1fr; }  /* 75% / 25% */
.grid-1-3  { grid-template-columns: 1fr 3fr; }  /* 25% / 75% */
.grid-3-2  { grid-template-columns: 3fr 2fr; }  /* 60% / 40% */
.grid-2-3  { grid-template-columns: 2fr 3fr; }  /* 40% / 60% */

/* --- Span : un enfant prend plusieurs colonnes --- */
.col-span-2    { grid-column: span 2; }
.col-span-3    { grid-column: span 3; }
.col-span-full { grid-column: 1 / -1; }

/* --- Alignement des enfants dans la grid --- */
.grid-items-start   { align-items: start; }
.grid-items-center  { align-items: center; }
.grid-items-end     { align-items: end; }
.grid-items-stretch { align-items: stretch; }


/* ============================================================
   9b. GRID LEGACY (ancien système flex — rétrocompatibilité)
   À utiliser uniquement pour les pages déjà intégrées.
   Pour les nouveaux blocs, privilégier le système .grid ci-dessus.
   ============================================================ */

.row-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 32px;
}

.grid-3  { width: calc(25% - 32px); }
.grid-4  { width: calc(33.333333% - 32px); }
.grid-6  { width: calc(50% - 32px); }
.grid-8  { width: calc(66.666666% - 32px); }
.grid-9  { width: calc(75% - 32px); }
.grid-12 { width: 100%; }

.gap-16 .grid-3  { width: calc(25% - 16px); }
.gap-16 .grid-4  { width: calc(33.333333% - 16px); }
.gap-16 .grid-6  { width: calc(50% - 16px); }
.gap-16 .grid-8  { width: calc(66.666666% - 16px); }
.gap-16 .grid-9  { width: calc(75% - 16px); }


/* ============================================================
   10. SPACING (gap, margin, padding)
   ============================================================ */

/* Gap */
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-40 { gap: 40px; }
.gap-64 { gap: 64px; }

/* Margin */
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.mb-64 { margin-bottom: 64px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-64 { margin-top: 64px; }

/* Padding */
.p-16  { padding: 16px; }
.p-24  { padding: 24px; }
.p-32  { padding: 32px; }
.p-64  { padding: 64px; }
.py-16 { padding-block: 16px; }
.py-32 { padding-block: 32px; }
.py-40 { padding-block: 40px; }
.py-64 { padding-block: 64px; }
.py-80 { padding-block: 80px; }
.px-16 { padding-inline: 16px; }
.px-32 { padding-inline: 32px; }
.px-64 { padding-inline: 64px; }
.pb-16 { padding-bottom: 16px; }
.pb-32 { padding-bottom: 32px; }
.pb-64 { padding-bottom: 64px; }
.pt-16 { padding-top: 16px; }
.pt-32 { padding-top: 32px; }
.pt-64 { padding-top: 64px; }


/* ============================================================
   11. SIZING & DISPLAY UTILITIES
   ============================================================ */

.icon-80  { width: 80px; height: 80px; object-fit: contain; }
.icon-50  { width: 50px; height: 50px; object-fit: contain; }
.icon-32  { width: 32px; height: 32px; object-fit: contain; }
.icon-24  { width: 24px; height: 24px; object-fit: contain; }

.img-50      { width: 50%; }
.img-80      { width: 80%; }
.img-100     { width: 100%; }
picture img{
    width: 100%;
}
.img-contain { object-fit: contain; }
.h-50        { height: 50px; }
.d-none      { display: none; }

.zindex-2   { position: relative; z-index: 2; }
.p-relative { position: relative; }
.p-relative * { z-index: 2; }


/* ============================================================
   12. BORDER RADIUS, SHADOWS, MISC
   ============================================================ */

.br-16 { border-radius: 16px; }
.br-24 { border-radius: 24px; }
.br-32 { border-radius: 32px; }

/* Imagify remplace l'<img> par un <picture> et lui reporte les classes :
   le rayon se pose alors sur le conteneur, que l'image déborde à angles vifs. */
picture.br-16,
picture.br-24,
picture.br-32 {
    display: block;
    overflow: hidden;
}

picture.br-16 img,
picture.br-24 img,
picture.br-32 img {
    border-radius: inherit;
}

.shadow-20 { box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.10); }

/* Vidéo insérée dans le flux d'un contenu éditorial. La feuille du bloc
   texte_video n'est pas chargée ici : contenu_editorial n'a pas de CSS dédié. */
.editorial-video {
    margin: 0;
    overflow: hidden;
}

.editorial-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.editorial-video figcaption {
    margin-top: 12px;
    font-size: 16px;
    opacity: 0.8;
}

/* Tableaux saisis à la main dans un texte. Ceux qui ont une classe ([ac-summary],
   [ac-history]...) gardent leurs propres styles : :not([class]) les écarte. */
.contenu-texte table:not([class]) {
    width: 100%;
    margin-block: 24px;
    border: 1px solid color-mix(in srgb, var(--color-primary) 10%, transparent);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-white);
    color: var(--color-primary);
    font-family: var(--font-body, 'Satoshi');
    font-size: inherit;
    line-height: 1.4;
}

.contenu-texte table:not([class]):first-child { margin-top: 0; }
.contenu-texte table:not([class]):last-child  { margin-bottom: 0; }

.contenu-texte table:not([class]) :is(th, td) {
    padding: 16px;
    text-align: left;
    vertical-align: top;
    font-size: inherit;
}

.contenu-texte table:not([class]) th {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 700;
    vertical-align: middle;
}

.contenu-texte table:not([class]) tr + tr > * {
    border-top: 1px solid color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.contenu-texte table:not([class]) :is(th, td) + :is(th, td) {
    border-left: 1px solid color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.contenu-texte table:not([class]) th + th {
    border-left-color: color-mix(in srgb, var(--color-white) 20%, transparent);
}

.contenu-texte table:not([class]) tbody tr:nth-child(even) {
    background: color-mix(in srgb, var(--fond-bleu) 50%, transparent);
}

.contenu-texte table:not([class]) :is(th, td) > :first-child { margin-top: 0; }
.contenu-texte table:not([class]) :is(th, td) > :last-child  { margin-bottom: 0; }


/* ============================================================
   13. ANIMATIONS D'ENTRÉE
   ============================================================ */

img.img-anim,
.anim-entrance {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 0.6s ease-out;
    will-change: opacity, filter;
}

img.img-anim.is-visible,
.anim-entrance.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.anim-entrance.dl-100.is-visible { transition-delay: 100ms; }
.anim-entrance.dl-200.is-visible { transition-delay: 200ms; }
.anim-entrance.dl-300.is-visible { transition-delay: 300ms; }
.anim-entrance.dl-400.is-visible { transition-delay: 400ms; }
.anim-entrance.dl-500.is-visible { transition-delay: 500ms; }
.anim-entrance.dl-600.is-visible { transition-delay: 600ms; }


/* ============================================================
   14. OVERFLOW / SCROLL CUSTOM (scrollbar dorée)
   ============================================================ */

.overflow-y-scroll {
    overflow-x: scroll;
    overflow-y: visible;
}

.scroll-desktop {
    overflow-x: auto;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.scroll-desktop:active {
    cursor: grabbing;
}

/* Masque la scrollbar sur desktop, garde le scroll fonctionnel */
@media (min-width: 769px) {
    .scroll-desktop::-webkit-scrollbar {
        display: none;
    }
    .scroll-desktop {
        scrollbar-width: none;
    }
}


/* ============================================================
   15. FOOTER (legacy container overrides)
   ============================================================ */

@media (min-width: 768px) {
    .footer_link .container { width: 750px; }
}

@media (min-width: 1200px) {
    .footer_link .container { width: 1170px; }
}

.pagination { flex-wrap: wrap; }

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
    border-radius: 48px;
    background: var(--color-white);
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    font-family: "Satoshi";
}

.pagination a.page-numbers:hover {
    border-color: var(--color-primary);
    background: var(--fond-bleu, #e2f0ff);
    color: var(--color-primary);
}

.pagination .page-numbers.current {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-white);
}

.pagination .page-numbers.dots {
    min-width: 0;
    padding: 0 4px;
    border: 0;
    background: none;
}


/* ============================================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ============================================================ */

@media (max-width: 1024px) {

    /* Typo */
    h1, .titre1 { font-size: 40px; }
    h2, .titre2 { font-size: 36px; }
    h3, .titre3 { font-size: 26px; }
    h4, .titre4 { font-size: 22px; }
    .text-24    { font-size: 20px !important; }
    .text-20    { font-size: 18px !important; }
    .text-16    { font-size: 16px !important; }

    /* Layout */
    .container {
        padding-right: 0;
        padding-left: 0;
    }

    .margin-inline-120 { padding-inline: 4vw; }
    .margin-inline-250 { padding-inline: 6vw; }
    .margin-inline-300 { padding-inline: 6vw; }

    /* Flex responsive */
    .flex-md-column         { flex-direction: column; }
    .flex-md-row            { flex-direction: row; }
    .flex-md-column-reverse { flex-direction: column-reverse; }
    .flex-md-row-reverse    { flex-direction: row-reverse; }
    .d-md-none              { display: none; }
    .flex-img               { align-items: center; }

    .justify-md-center  { justify-content: center; }
    .justify-md-start   { justify-content: start; }
    .justify-md-end     { justify-content: end; }
    .justify-md-stretch { justify-content: stretch; }
    .align-md-center    { align-items: center; }
    .align-md-start     { align-items: start; }
    .align-md-end       { align-items: end; }
    .align-md-stretch   { align-items: stretch; }

    .text-md-center {
        width: fit-content;
        margin-inline: auto;
        text-align: center;
    }

    /* Grid responsive (nouveau système) */
    .grid-md-cols-1 { grid-template-columns: 1fr; }
    .grid-md-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-md-cols-3 { grid-template-columns: repeat(3, 1fr); }

    /* Layouts asymétriques : empilés en tablette */
    .grid-2-1, .grid-1-2,
    .grid-3-1, .grid-1-3,
    .grid-3-2, .grid-2-3 {
        grid-template-columns: 1fr;
    }

    /* Span reset en tablette */
    .col-md-span-1    { grid-column: span 1; }
    .col-md-span-full { grid-column: 1 / -1; }

    /* Grid responsive (legacy) */
    .grid-md-3  { width: calc(25% - 16px); }
    .grid-md-4  { width: calc(33.333333% - 16px); }
    .grid-md-6  { width: calc(50% - 16px); }
    .grid-md-8  { width: calc(66.666666% - 16px); }
    .grid-md-9  { width: calc(75% - 16px); }
    .grid-md-12 { width: 100%; }

    .gap-16 .grid-md-3  { width: calc(25% - 16px); }
    .gap-16 .grid-md-4  { width: calc(33.333333% - 16px); }
    .gap-16 .grid-md-6  { width: calc(50% - 16px); }
    .gap-16 .grid-md-8  { width: calc(66.666666% - 16px); }
    .gap-16 .grid-md-9  { width: calc(75% - 16px); }
    .gap-16 .grid-md-12 { width: 100%; }

    /* Spacing responsive */
    .p-md-16  { padding: 16px; }
    .p-md-32  { padding: 32px; }
    .p-md-64  { padding: 64px; }
    .py-md-16 { padding-block: 16px; }
    .py-md-32 { padding-block: 32px; }
    .py-md-40 { padding-block: 40px; }
    .py-md-64 { padding-block: 64px; }
    .py-md-80 { padding-block: 80px; }
    .px-md-16 { padding-inline: 16px; }
    .px-md-32 { padding-inline: 32px; }
    .px-md-64 { padding-inline: 64px; }
    .pb-md-16 { padding-bottom: 16px; }
    .pb-md-32 { padding-bottom: 32px; }
    .pb-md-64 { padding-bottom: 64px; }
    .pt-md-16 { padding-top: 16px; }
    .pt-md-32 { padding-top: 32px; }
    .pt-md-64 { padding-top: 64px; }

    .gap-md-8  { gap: 8px; }
    .gap-md-16 { gap: 16px; }
    .gap-md-32 { gap: 32px; }
    .gap-md-40 { gap: 40px; }
    .gap-md-64 { gap: 64px; }

    /* Overflow scroll horizontal */
    .ox-md-scroll {
        overflow-x: scroll;
        padding-bottom: 8px;
        max-width: 100%;
    }

    .ox-md-scroll::-webkit-scrollbar { height: 6px; }

    .ox-md-scroll::-webkit-scrollbar-thumb {
        background-color: var(--color-secondary);
        border-radius: 10px;
    }

    .ox-md-scroll::-webkit-scrollbar-track {
        background-color: rgba(0, 0, 0, 0.075);
        border-radius: 10px;
    }
}


/* ============================================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================ */

@media (max-width: 768px) {

    /* Layout */
    .margin-inline-120 { padding-inline: 0px; }
    .margin-inline-250 { padding-inline: 0px; }
    .margin-inline-300 { padding-inline: 0px; }
    .margin-block-80   { padding-block: 60px; }

    /* Flex responsive */
    .flex-sm-column         { flex-direction: column; }
    .flex-sm-row            { flex-direction: row; }
    .flex-sm-column-reverse { flex-direction: column-reverse; }
    .flex-sm-row-reverse    { flex-direction: row-reverse; }
    .d-sm-none              { display: none; }

    .justify-sm-center  { justify-content: center; }
    .justify-sm-start   { justify-content: start; }
    .justify-sm-end     { justify-content: end; }
    .justify-sm-stretch { justify-content: stretch; }
    .align-sm-center    { align-items: center; }
    .align-sm-start     { align-items: start; }
    .align-sm-end       { align-items: end; }
    .align-sm-stretch   { align-items: stretch; }

    .text-sm-center {
        width: fit-content;
        margin-inline: auto;
        text-align: center;
    }

    /* Grid responsive (nouveau système) */
    .grid-sm-cols-1 { grid-template-columns: 1fr; }
    .grid-sm-cols-2 { grid-template-columns: repeat(2, 1fr); }

    /* Span reset en mobile */
    .col-sm-span-1    { grid-column: span 1; }
    .col-sm-span-full { grid-column: 1 / -1; }

    /* Grid responsive (legacy) */
    .grid-sm-3  { width: calc(25% - 16px); }
    .grid-sm-4  { width: calc(33.333333% - 16px); }
    .grid-sm-6  { width: calc(50% - 16px); }
    .grid-sm-8  { width: calc(66.666666% - 16px); }
    .grid-sm-9  { width: calc(75% - 16px); }
    .grid-sm-12 { width: 100%; }

    .gap-16 .grid-sm-3  { width: calc(25% - 16px); }
    .gap-16 .grid-sm-4  { width: calc(33.333333% - 16px); }
    .gap-16 .grid-sm-6  { width: calc(50% - 16px); }
    .gap-16 .grid-sm-8  { width: calc(66.666666% - 16px); }
    .gap-16 .grid-sm-9  { width: calc(75% - 16px); }
    .gap-16 .grid-sm-12 { width: 100%; }

    /* Spacing responsive */
    .p-sm-16  { padding: 16px; }
    .p-sm-32  { padding: 32px; }
    .p-sm-64  { padding: 64px; }
    .py-sm-16 { padding-block: 16px; }
    .py-sm-32 { padding-block: 32px; }
    .py-sm-40 { padding-block: 40px; }
    .py-sm-64 { padding-block: 64px; }
    .py-sm-80 { padding-block: 80px; }
    .px-sm-16 { padding-inline: 16px; }
    .px-sm-32 { padding-inline: 32px; }
    .px-sm-64 { padding-inline: 64px; }
    .pb-sm-16 { padding-bottom: 16px; }
    .pb-sm-32 { padding-bottom: 32px; }
    .pb-sm-64 { padding-bottom: 64px; }
    .pt-sm-16 { padding-top: 16px; }
    .pt-sm-32 { padding-top: 32px; }
    .pt-sm-64 { padding-top: 64px; }

    .gap-sm-8  { gap: 8px; }
    .gap-sm-16 { gap: 16px; }
    .gap-sm-32 { gap: 32px; }
    .gap-sm-40 { gap: 40px; }
    .gap-sm-64 { gap: 64px; }

    /* Overflow scroll horizontal */
    .ox-sm-scroll {
        overflow-x: scroll;
        padding-bottom: 8px;
        max-width: 100%;
    }

    .ox-sm-scroll::-webkit-scrollbar { height: 6px; }

    .ox-sm-scroll::-webkit-scrollbar-thumb {
        background-color: var(--color-secondary);
        border-radius: 10px;
    }

    .ox-sm-scroll::-webkit-scrollbar-track {
        background-color: rgba(0, 0, 0, 0.075);
        border-radius: 10px;
    }

    /* ---- Tableaux sous 768px ----
       Mode posé en PHP dans data-mobile (inc/tableaux.php), commun au bloc tableau (.tableau)
       et aux tableaux saisis dans un texte (.contenu-texte, ceux sans classe seulement).
       Couleurs en variables, définies par chacun (tableau.css, plus haut ici) :
       --tableau-zebre, --tableau-filet, --tableau-titre ; sur la ligne, --fond-zebre (une sur
       deux) et --fond-ligne (couleur imposée par l'éditeur du bloc). */

    /* tableau : la grille tient dans l'écran, colonnes calées sur leur contenu */
    :is(.tableau, .contenu-texte) table[data-mobile="tableau"] {
        table-layout: auto;
    }

    :is(.tableau, .contenu-texte) table[data-mobile="tableau"] tr > :is(th, td) {
        padding: 12px;
        font-size: 16px;
        overflow-wrap: break-word;
    }

    /* empile et cartes : plus de grille, chaque ligne en bloc */
    :is(.tableau, .contenu-texte) table:is([data-mobile="empile"], [data-mobile="cartes"]),
    :is(.tableau, .contenu-texte) table:is([data-mobile="empile"], [data-mobile="cartes"]) :is(thead, tbody, tfoot, tr, th, td) {
        display: block;
    }

    :is(.tableau, .contenu-texte) table:is([data-mobile="empile"], [data-mobile="cartes"]) {
        width: 100%;
        table-layout: auto;
    }

    :is(.tableau, .contenu-texte) table:is([data-mobile="empile"], [data-mobile="cartes"]) tr {
        border: 0;
    }

    :is(.tableau, .contenu-texte) table:is([data-mobile="empile"], [data-mobile="cartes"]) tr > :is(th, td) {
        border: 0;
        border-radius: 0;
        text-align: left;
    }

    :is(.tableau, .contenu-texte) table:is([data-mobile="empile"], [data-mobile="cartes"]) tbody tr > [data-vide] {
        display: none;
    }

    :is(.tableau, .contenu-texte) table:is([data-mobile="empile"], [data-mobile="cartes"]) {
        border: 0;
        border-radius: 0;
        overflow: visible;
        background: none;
    }

    :is(.tableau, .contenu-texte) table:is([data-mobile="empile"], [data-mobile="cartes"]) thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    :is(.tableau, .contenu-texte) table:is([data-mobile="empile"], [data-mobile="cartes"]) tbody {
        display: grid;
        gap: 12px;
    }

    :is(.tableau, .contenu-texte) table:is([data-mobile="empile"], [data-mobile="cartes"]) tbody tr {
        border: 1px solid var(--tableau-filet);
        border-radius: 16px;
        overflow: hidden;
    }

    :is(.tableau, .contenu-texte) table:is([data-mobile="empile"], [data-mobile="cartes"]) tbody tr > :is(th, td) {
        padding: 12px 16px;
        background: var(--fond-ligne, var(--color-white));
        color: var(--color-primary);
    }

    :is(.tableau, .contenu-texte) table:is([data-mobile="empile"], [data-mobile="cartes"]) tbody tr > :is(th, td) + :is(th, td) {
        border-top: 1px solid var(--tableau-filet);
    }

    :is(.tableau, .contenu-texte) table:is([data-mobile="empile"], [data-mobile="cartes"]) tbody tr > :first-child {
        background: var(--fond-ligne, var(--tableau-titre));
    }

    :is(.tableau, .contenu-texte) table:is([data-mobile="empile"], [data-mobile="cartes"]) tbody tr > :first-child,
    :is(.tableau, .contenu-texte) table:is([data-mobile="empile"], [data-mobile="cartes"]) tbody tr > :first-child :is(p, li, span) {
        font-weight: 700;
    }

    :is(.tableau, .contenu-texte) table:is([data-mobile="empile"], [data-mobile="cartes"]) tbody tr:not(:has(> :not(:first-child):not([data-vide]))) > :first-child {
        background: var(--fond-ligne, var(--color-white));
    }

    :is(.tableau, .contenu-texte) table:is([data-mobile="empile"], [data-mobile="cartes"]) tbody tr:not(:has(> :not(:first-child):not([data-vide]))) > :first-child,
    :is(.tableau, .contenu-texte) table:is([data-mobile="empile"], [data-mobile="cartes"]) tbody tr:not(:has(> :not(:first-child):not([data-vide]))) > :first-child :is(p, li, span) {
        font-family: var(--font-body, 'Satoshi');
        font-weight: 400;
    }

    :is(.tableau, .contenu-texte) table[data-mobile="cartes"] tbody tr > :first-child,
    :is(.tableau, .contenu-texte) table[data-mobile="cartes"] tbody tr > :first-child :is(p, li, span) {
        font-family: var(--font-titres, 'Cabinet');
    }

    :is(.tableau, .contenu-texte) table[data-mobile="cartes"] [data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        font-family: var(--font-body, 'Satoshi');
        font-size: 16px;
        font-weight: 700;
        opacity: .75;
    }

    :is(.tableau, .contenu-texte) table[data-mobile="defile"] {
        border-collapse: separate;
        border-spacing: 0;
    }

    :is(.tableau, .contenu-texte) table[data-mobile="defile"] tr > :is(th, td) {
        min-width: 160px;
    }

    :is(.tableau, .contenu-texte) table[data-mobile="defile"] tr > :first-child {
        position: sticky;
        left: 0;
        z-index: 1;
        min-width: 120px;
        max-width: 40vw;
        box-shadow: 6px 0 8px -6px rgba(28, 64, 109, .3);
    }

    :is(.tableau, .contenu-texte) table[data-mobile="defile"] tbody tr > td:first-child {
        background:
            linear-gradient(var(--fond-ligne, var(--fond-zebre, transparent)), var(--fond-ligne, var(--fond-zebre, transparent))),
            var(--color-white);
    }

    .tableau table[data-mobile="defile"] {
        table-layout: auto;
        overflow: clip;
    }

    .tableau table[data-mobile="defile"] tr > :is(th, td) {
        border-width: 0 0 1px 1px;
    }

    .tableau table[data-mobile="defile"] tr > :first-child {
        border-left-width: 0;
    }

    .contenu-texte table:not([class]) {
        display: block;
        width: max-content;
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--color-secondary) transparent;
    }

    .contenu-texte table:not([class]) :is(th, td) {
        min-width: 200px;
    }

    .contenu-texte table:not([class]) :is(th, td):first-child {
        min-width: 120px;
    }
}


/* ============================================================
   RESPONSIVE — SMALL MOBILE (max-width: 450px)
   ============================================================ */

@media (max-width: 768px) {
    section > .margin-inline-120, section > .padding-inline-120,
    section > .margin-inline-250, section > .padding-inline-250,
    section > .margin-inline-300, section > .padding-inline-300 {
        padding-inline: 24px;
        /* padding-block: 48px; */
    }
    .button{
        text-align: center;
    }
}


.breadcrumb-custom > span{
    display: flex;
    gap: 8px;
}
.breadcrumb-custom img{
    height: 16px;
}
.breadcrumb-custom *{
    font-size: clamp(16px, 1.4vw, 18px);
}
.breadcrumb-custom a:hover{
    text-decoration: underline;
}



.hero-produits{
    width: 100vw;
    background: var(--gradient-primary);
    padding-block: 232px 32px;
}
@media screen and (max-width:1024px){
    .hero-produits{
        padding-block: 185px 22px;
    }
}
@media screen and (max-width:768px){
    .hero-produits{
        padding-block: 160px 16px;
    }
    .hero-produits > .margin-inline-120{
        padding-inline: 24px;
    }
}
.hero-produits .breadcrumb-produits{
    color: var(--color-white);
}
.hero-produits .breadcrumb-produits .breadcrumb_last{
    font-weight: 700;
    font-family: "Satoshi";
}
.hero-produits .breadcrumb-produits a:hover{
    text-decoration: underline;
}

.bloc-boutons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}
.bloc-boutons--centre {
    justify-content: center;
}


/* ============================================================
   16. ACCORDEON (editorial-content)
   ============================================================ */
.accordeon-item {
    border-bottom: 1px solid var(--color-primary);
    opacity: 0.9;
}

.accordeon-item:first-child {
    border-top: 1px solid var(--color-primary);
}

.accordeon-titre {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
    font-weight: 700;
    text-align: left;
    transition: opacity 0.2s ease;
    font-size: 24px;
    font-family: "Cabinet";
}

.accordeon-titre:hover {
    opacity: 0.7;
}

.accordeon-icon {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-top: -4px;
}

.accordeon-item.is-open .accordeon-icon {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.accordeon-contenu {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.accordeon-item.is-open .accordeon-contenu {
    grid-template-rows: 1fr;
}

.accordeon-contenu-inner {
    overflow: hidden;
}

.accordeon-contenu-inner > *:first-child {
    margin-top: 0;
}

.accordeon-contenu-inner > *:last-child {
    margin-bottom: 20px;
}

.lp-hero .bloc-chiffres-cles{
    background: var(--gradient-primary) !important;
}

.scroll-arrows {
    position: relative;
}

.scroll-arrows__track {
    overscroll-behavior-x: contain;
}

.scroll-arrow {
    display: none;
    position: absolute;
    top: 50%;
    z-index: 12;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-primary) 5%, transparent), 0 4px 12px rgba(0, 0, 0, .12);
    color: var(--color-primary);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color .2s, opacity .2s;
}

.scroll-arrows.has-scroll .scroll-arrow {
    display: flex;
}

.scroll-arrows.has-scroll > .scroll-arrows__track {
    padding-top: 8px;
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 20px;
}

.scroll-arrow--prev { left: 8px; }
.scroll-arrow--next { right: 8px; }

@media screen and (min-width:1024px){
    .scroll-arrow:hover:not(:disabled) {
        background: var(--fond-bleu, #E2F0FF);
    }
}

.scroll-arrow:disabled {
    opacity: .1;
    cursor: default;
    pointer-events: none;
}

.scroll-arrow svg {
    width: 26px;
    height: 26px;
}


.ac-summary,
.ac-history {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    border: 1px solid rgba(28, 65, 109, 0.12);
    border-radius: 12px;
    overflow: hidden;
    font-family: 'Satoshi';
    /* margin: 24px 0; */
}

.ac-summary-caption,
.ac-history-caption {
    caption-side: top;
    text-align: left;
    padding: 16px 20px;
    font-family: 'Cabinet';
    font-weight: 700;
    font-size: 18px;
    color: var(--color-white);
    background: var(--color-primary);
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid rgb(255 255 255 / .1);
}

.ac-summary tbody {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    grid-auto-rows: minmax(64px, auto);
    align-items: center;
}

.ac-summary-row {
    display: contents;
}

.ac-summary-row th,
.ac-summary-row td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(28, 65, 109, 0.1);
    font-size: 16px;
    height: 100%;
    display: flex;
    align-items: center;
}

.ac-summary-row:last-child th,
.ac-summary-row:last-child td {
    border-bottom: none;
}

.ac-summary-row:nth-of-type(2) .ac-summary-label,
.ac-summary-row:nth-of-type(4) .ac-summary-label {
    border-left: 1px solid rgba(28, 65, 109, 0.1);
}

.ac-summary-row:last-of-type .ac-summary-label {
    grid-column: 1 / span 2;
}

.ac-summary-row:last-of-type .ac-summary-value {
    grid-column: 3 / span 2;
    justify-content: end;
}

.ac-summary-label {
    text-align: left;
    font-weight: 500;
    color: var(--color-primary);
}

.ac-summary-value {
    text-align: right;
    font-family: 'Cabinet';
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--color-primary);
}

.ac-summary-notice,
.ac-history-notice {
    padding: 12px 20px;
    text-align: center;
    font-size: 16px;
    font-style: italic;
    color: rgba(28, 65, 109, 0.6);
    background: rgba(226, 240, 255, 0.3);
}

.ac-history thead th {
    padding: 14px 20px;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: 'Cabinet';
    font-weight: 700;
    font-size: 16px;
    text-align: left;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.ac-history thead th:last-child {
    border-right: none;
}

.ac-history-row th,
.ac-history-row td {
    padding: 14px 20px;
    font-size: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(28, 65, 109, 0.1);
}

.ac-history-row:last-of-type th,
.ac-history-row:last-of-type td {
    border-bottom: none;
}

.ac-history-row:nth-of-type(even) {
    background: rgba(226, 240, 255, 0.5);
}

.ac-history-period {
    font-weight: 600;
    color: var(--color-primary);
}

.ac-history-high,
.ac-history-low {
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
}

.ac-history-variation {
    font-family: 'Cabinet';
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ac-summary-value--up,
.ac-history-variation--up {
    color: #1B7A3D;
}

.ac-summary-value--down,
.ac-history-variation--down {
    color: #C0392B;
}

@media (max-width: 768px) {
    .ac-summary-row th,
    .ac-summary-row td,
    .ac-history-row th,
    .ac-history-row td,
    .ac-history thead th,
    .ac-summary-caption,
    .ac-history-caption {
        padding: 12px 16px;
    }

    .ac-history {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ac-summary tbody {
        grid-template-columns: 1fr auto;
    }

    .ac-summary-row:nth-of-type(2) .ac-summary-label,
    .ac-summary-row:nth-of-type(4) .ac-summary-label {
        border-left: none;
    }

    .ac-summary-row:last-of-type .ac-summary-label,
    .ac-summary-row:last-of-type .ac-summary-value {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    section[id] {
        scroll-margin-top: 100px;
    }
}
