/* ===== Fonts ===== */
/* @font-face {
    font-family: 'HelveticaNeue';
    src: url('../fonts/HelveticaNeueLTPro-Lt.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HelveticaNeue';
    src: url('../fonts/HelveticaNeueLTPro-Roman.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HelveticaNeue';
    src: url('../fonts/HelveticaNeueLTPro-Md.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HelveticaNeue';
    src: url('../fonts/HelveticaNeueLTPro-Bd.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
} */


@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== Lingot 3D (Three.js) ===== */
#lingot-3d-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    width: 50vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;

}

#lingot-3d-wrapper canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}





@media (max-width: 1240px) {
    #lingot-3d-wrapper {
        opacity: 0.75;
        width: 35vw;
    }
}

@media (max-width: 850px) {
    #lingot-3d-wrapper {
        width: 80vw;
        height: 60vh;
        position: absolute;
        top: 6rem;
         opacity: 0.4;
    }
}

:root {
    --accent: #C45B28;
    --black: #020202;
    --beige: #f9f8f4;
    --gray: #999;
    --white: #fff;
    --gray-light: #e0e0e0;
    --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}


.uc { text-transform: uppercase;}
p.breadcrumb { font-size: max(0.6rem,12px); margin: -3rem 0 2rem 0; font-weight: 300;}
p.breadcrumb a { font-weight: 600; color: var(--black);}
span.gbg { font-weight: 580; white-space: nowrap;}
span.gbg span { font-weight: 250; margin: -0.1em;}

strong span.gbg , p.blink span.gbg  , p.btn-arrow span.gbg  , #bande-alerte span.gbg { font-weight: 700; }
strong span.gbg  span , p.blink span.gbg  span , p.btn-arrow span.gbg  span , #bande-alerte span.gbg  span { font-weight: 320; }

#bande-alerte { position: fixed; top: -3em; opacity: 0; pointer-events: none; left: 0; width: 100%; background-color: var(--black); color: var(--white); padding: 1em 0; box-sizing: border-box; z-index: 10000; font-size: 0.7rem; font-size: max(0.65rem,16px); font-weight: 700; transition: top 0.25s, opacity 0.25s; }
#bande-alerte .container { display: flex;  align-items: center; gap: 1em 1em;}
#bande-alerte p { flex: 1; line-height: 1; margin: 0 0;}
#bande-alerte p.btn-arrow.fill { flex: 0;}
#bande-alerte p.btn-arrow.fill a:before  { background: var(--accent);  box-shadow: 0 0 0 1px var(--black); }
#bande-alerte p + p {  font-size: max(0.7rem,18px);}
.scrolled #bande-alerte { top: 0; opacity: 1; pointer-events: fill; }

.flex-tab { display: flex; gap: 0.2em;}

p.small { font-size: 0.75rem;}
ul.small { font-size: 0.75rem;}

table.classic { width:100%; font-size: 0.75rem; margin: 1rem 0 1rem -10px; border-spacing: 10px 0;}

table.classic td , table.classic th { border-bottom: 1px solid var(--black); padding: 0.4em 0; line-height: 100%;vertical-align: top; }
table.chiffres td , table.chiffres th { text-align: right;}
table.chiffres th { border-bottom-width: 3px; font-weight: 500; vertical-align: bottom; }

table.chiffres td.al-l , table.chiffres th.al-l { text-align: left;}

table.chiffres tr.total td {border-top: 2px solid var(--black); border-bottom-width: 3px; font-weight: 500;}

@media (max-width: 640px) {
#bande-alerte .container { flex-wrap: wrap; flex-direction:column;  justify-content: left; align-items: flex-start;}
}

html {
    font-size: 22pt;
    scroll-behavior: smooth;
    scroll-padding-top: 3.5rem;
    font-size: clamp(14px, 4.6vw, 24pt);
}


ul.classic { list-style: none; line-height: 1.35;}
ul.classic li { padding-left: 1.5em;}
ul.classic li:before { content:"—"; position: absolute; margin-left: -1.5em;}

a { cursor: pointer; color:var(--black); transition:color 0.2s}


h3 a , .texte h3 a { color:var(--accent)}


a:hover { color: var(--accent);}
sup { font-size: 60%; line-height: 0; white-space: nowrap;}
h1, .h1, h2, h3 {
    font-size: clamp(1.4rem, 11vw, 2.1rem);
    font-weight: 800;
    line-height: 1;
    margin: 1.4em 0 0.6em 0;
}

 h2, .h2 {
    font-size: clamp(1.2rem, 9vw, 1.6rem);
    font-weight: 800;
    line-height: 1.1;
}

h3 , .h3 {
    font-size: 1.1rem;
    color: var(--accent);
    line-height: 1.3;
     margin: 1rem 0 0.6rem 0;
}


h1.publications-title { margin-top: 0;}

div.relative-blink { position: relative; box-sizing: content-box;
    --blink-shape-w: 4rem;
    --blink-shape-h: 8em;
    --blink-shape-skew: 1.5rem;
}

div.relative-blink::before {
    content: "";
    float: left;
    width: var(--blink-shape-w);
    height: var(--blink-shape-h);
    shape-outside: polygon(
        0 0,
        100% 0,
        calc(100% - var(--blink-shape-skew)) 100%,
        0 100%
    );
}

div.relative-blink .slash {
    opacity: 0;
    animation: slashSlideIn 0.5s ease forwards;
}

div.relative-blink p.blink,


div.relative-blink p.btn-arrow {
    opacity: 0;
    transform: translateX(30px);
    animation: blinkSlideIn 0.6s ease forwards;
}

div.relative-blink .slash:nth-child(1) { animation-delay: 0.2s; }
div.relative-blink .slash:nth-child(2) { animation-delay: 0.3s; }
div.relative-blink .slash:nth-child(3) { animation-delay: 0.4s; }
div.relative-blink p.blink { animation-delay: 0.4s; }
div.relative-blink p.btn-arrow { animation-delay: 0.5s; }


@keyframes slashSlideIn {
    from { opacity: 0; left: 2rem; }
    to { opacity: 1; }
}

@keyframes blinkSlideIn {
     from { opacity: 0; transform: translateX(1.8rem);}
    to { opacity: 1; transform: translateX(0); }
}

div.relative-blink span.slash { content: ""; position: absolute; background: var(--accent); height: 100%; width: clamp(5px, 0.34rem, 13px); transform: skewX(-18deg) translateZ(0); left: 0.4rem;}
div.relative-blink span.slash + .slash { margin-left: calc(clamp(5px, 0.34rem, 13px) + 0.36rem);}
div.relative-blink span.slash + .slash  + .slash { margin-left: calc(clamp(5px, 0.34rem, 13px) + 0.36rem + clamp(5px, 0.34rem, 13px) + 0.36rem);}


p.blink { font-weight: 700; font-size: min(1rem , 6vw); /* animation: blinkColor 1.2s ease-in-out infinite alternate;  */}




@keyframes blinkColor { from { color: var(--accent); } to { color: var(--black); } }
@keyframes blinkBGColor { from { background-color: var(--accent); } to { background-color: var(--black); } }


p.blink + p { margin-top: 1.2rem; margin-left: -0.7rem;}
p.blink .line  { display: block; }


@media (max-width: 850px) {
p.blink .line { display: inline !important; }


}

p.blink + p a  {}

p.btn-arrow.fill a span { color: #FFF; transition: background-color 0.25s, box-shadow 0.2s; box-shadow: 0 0 0 0 transparent; padding:0.25em 0.8em 0.25em 1.7em; margin-left: -1.8em; border-radius: 2em; min-height: 1.8em; line-height: 1.3; white-space: normal;  position: relative; display: inline-flex; align-items: center;}
p.btn-arrow.fill a:hover span { color: #FFF;  z-index: 2; color: var(--accent);  box-shadow: 0 0 0 clamp(2px,0.16em,16px) var(--accent); transition: background-color 0.25s, box-shadow 0.2s 0.05s;}



p.btn-arrow.fill a { position: relative; gap: 0; }
p.btn-arrow.fill a span { color: var(--white);}
p.btn-arrow.fill a svg {  background-color: transparent; z-index: 3; transition: stroke 0.25s;}
p.btn-arrow.fill a:hover svg { stroke:var(--accent)}
p.btn-arrow.fill a:before , p.btn-arrow.fill a:after  { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--beige); box-shadow: 0 0 0 1px var(--beige); border-radius: 2rem;}
p.btn-arrow.fill a:before  { background: var(--accent);  }

p.blink + p.btn-arrow.fill a:before  { animation: blinkBGColor 1.2s ease-in-out infinite alternate;}

p.btn-arrow.fill a:after { width: 30%; opacity: 0; transition: all 0.25s;}
p.btn-arrow.fill a:hover:after { width: 100%; opacity: 1;}

p.btn-arrow { font-size: min(85%,1rem);}

#svg-background-container {pointer-events: none; mask: url(../images/gradient-mask.png) no-repeat right bottom; mask-size: contain;   width: 110%; max-width: 1500px;  max-height: 620px; position: fixed; top: 10.8rem; height: calc(100% - 4rem);  right: 0;   }
#svg-background {  width: auto; height: auto; max-height: 100%; max-width: 100%; opacity: 0; display: block; position: absolute; bottom: 0; right: -1.5rem; }

@media (min-width: 1600px) {
#svg-background-container { right: 8%; }
}

@media (min-height: 1100px) {
#svg-background-container { top: calc(10.5rem + 10vh); height: calc(100% - 8vh - 8rem);  }
}

#content {
    overflow-x: clip;
    position: relative;
}

body {
    font-family: var(--font);
    font-weight: 250;
    color: var(--black);
    background: var(--beige);
    line-height: 1.15;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Header ===== */
.site-header {
    position: relative;
    padding: 2rem 0 1px 0;
    z-index: 102;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 103;
}

.logo img {
    height: 1.5rem;
    height:clamp(32px, 1.5rem, 64px);
    width: auto;
    filter: brightness(0);
}

/* Hamburger */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px;
    position: relative;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 36px;
    height: 4px;
    background: var(--black);
    transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--beige);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    display: flex;
    align-items: flex-start;
    pointer-events: none;
}

.main-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: fill;
}

body.menu-open {
    overflow: hidden;
}

.main-nav ul {
    list-style: none;
    max-width: 1500px;
    margin: 0 auto;
    padding:100px 2rem 0 2rem;
    padding-top: clamp(64px, 5.5rem, 150px);
    width: 100%;

    font-size: 1.2rem;
    font-size: clamp(18px, 1.25rem, 6.5vh);
}

.main-nav li {
    margin-bottom: 12px;
}

.main-nav a {
    text-decoration: none;
        color: var(--black);
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--accent);
}

p.btn-arrow { display: flex; justify-content: left; margin: 0.9em 0; min-height: 1.8em; }
p.btn-arrow + p.btn-arrow { margin-top: -0.45rem; }
p.btn-arrow a { display: flex; align-items: center; gap: 0.5em; text-decoration: none; }
p.btn-arrow a svg { background-color: var(--accent); width: 1.8em; height: 1.8em; min-width: 1.8em; border-radius: 50%; padding: 0.4em; position: relative;  transition: transform 0.2s; }
p.btn-arrow a svg path { transition: transform 0.25s; }
p.btn-arrow a svg .arrow-line { stroke-dasharray: 14; stroke-dashoffset: -14; transition: stroke-dashoffset 0.25s, transform 0.25s; }
p.btn-arrow a span { font-weight: 700; color: var(--accent); font-size: 1em; transition: color 0.2s; }

p.btn-arrow a:hover svg {  }
p.btn-arrow a:hover svg path { transform: translateX(4px); }
p.btn-arrow a:hover svg .arrow-line { stroke-dashoffset: 0; transform: translateX(2.5px); }
p.btn-arrow a:hover span { color: var(--black); }

/* ===== Hero ===== */


.hero-intro {
    font-size: 1rem;
    margin-bottom: 50px;
}

p , ul.classic { line-height: 1.35; margin: 0.5em 0;}

 strong {
    color: var(--accent);
    font-weight: 700;
}

/* Divisions */
.divisions {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.division-item {
    display: flex;
    align-items: baseline;
    gap: 0.3em;
    position: relative;
    z-index: 5;
    pointer-events: none;
    font-size: clamp(1.4rem, 13vw, 2.3rem);
    line-height: 1;
    user-select: none;
}


/* Division content — invisible par défaut, ne prend pas de place */
.division-content {
    height: 0;
    overflow: hidden;
    visibility: hidden;
    margin: 0;
    padding: 0;
    transition: height 0.25s,
                margin 0.25s;
}

/* Active = prend sa place dans le flux mais reste invisible */
.division-content.active {
   
    visibility: hidden;
    margin:1rem 0;
    padding: 1px;
    border: none;
    /* Compenser l'espace de la border du clone avec du margin */
}

.wrap {
    margin: 1.2rem;
}

.division-content .wrap p , .division-clone .wrap p , .division-exists .wrap p {
    margin:0.8rem 0;
}

/* Clone animé en absolute */

.division-exists { margin: 1.5rem 0;}
.division-clone , .division-exists {
    position: relative;
    border: clamp(3px, 0.2rem, 8px) solid var(--accent);
    padding: 1px;
    pointer-events: fill;
    z-index: 4;
    background: var(--white);
    background: transparent;
    backdrop-filter: blur(6px);
    background:#f9f8f488; 
    box-sizing:content-box;

}

.encart { border: clamp(3px, 0.2rem, 8px) solid var(--accent);
    padding: 1px; backdrop-filter: blur(6px);
    background:#f9f8f488;  margin: 1.5rem 0;
    opacity: 0;
    transform: translateX(2rem);
    transition: opacity 0.7s ease, transform 0.7s ease;}

.encart.in-view {
    opacity: 1;
    transform: translateX(0);
}


.division-clone {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    overflow: hidden;
    transform-origin: left center;
    transition: top 0.25s,
                left 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease;
}




.accent { color: var(--accent);}
.black { color: var(--black);}



.division-clone.visible {
    opacity: 1;
}



.division-name  {

    font-weight: 800;
    letter-spacing: -0.02em;
    
    color: var(--black);
    pointer-events: fill;
}

.division-name a { color: var(--black); text-decoration: none; position: relative; transition: color 0.25s; }
.division-name a:before { position: absolute; top: 0; left: 0;}

.division-slashes {

    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.08em;

    transition: letter-spacing 0.25s , margin-left 0.25s , color 0.25s;
}

.division-item:hover .division-name a  , .division-item.actif .division-name a { color: var(--accent); }
.division-item:hover .division-slashes , .division-item.actif .division-slashes { letter-spacing: 0.08em; margin-left: 0.15em;  }

/* ===== Key Figures ===== */
.key-figures {
    padding: 0;
    margin:2rem 0;
}



.key-figures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 40px;
        max-width: 35rem;
}

.key-figure-number {
    display: block;
    font-size: clamp(1.8rem, 14vw, 3rem);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    color: var(--black);
    margin-bottom: 8px;
}

.key-figure-number small {
    font-size: 75%;
    vertical-align: baseline;
}

.key-figure-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--black);
    max-width: 10em;
}

.key-figures-text {
    font-size: 1rem;

    color: var(--black);
    max-width:37rem;

}




@media (max-width: 968px) {


    .key-figures-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



@media (max-width: 768px) {


    .key-figures-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Gold Chart ===== */
.gold-chart-section {
    padding: 0 0;
    user-select: none;
    margin-top: 2rem;
}

.gold-chart-wrapper {
    margin:1rem -0.7rem -0.2rem -0.9rem;
}

.gold-chart-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 1rem;
    margin-top: -0.3rem;
    flex-wrap: wrap;
}

.gold-chart-tabs {
    margin-left: auto;
}

.gold-chart-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--black);
}

.gold-chart-change {
    font-size: 0.8rem;
    font-weight: 700;
}

.gold-chart-change.up { color: #2a9d2a; }
.gold-chart-change.down { color: #d32f2f; }

.gold-chart-container {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 15rem;
    margin-bottom: 1rem;
}

.gold-chart-container canvas {
    width: 100%;
    height: 100%;
    cursor: default;
}

.gold-chart-tooltip {
    display: none;
    position: absolute;
    background: var(--black);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: max(0.5rem, 12px);
    line-height: 1.4;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
}

.gold-chart-tooltip .tooltip-price {
    color: var(--white);
    font-weight: 700;
    font-size: max(0.6rem, 14px);
    display: block;
}

.gold-chart-tooltip .tooltip-date {
    color: rgba(255,255,255,0.6);
    font-size: max(0.4rem, 10px);
    display: block;
}

.gold-chart-tabs {
    display: flex;
    gap: 4px;
}

.gold-tab {
    background: none;
    border: none;
    padding: 0.5em 0.5em;
    display: block;
    text-align: center;
    min-width: 3em;
    font-family: var(--font);
    font-size: max(0.55rem, 13px);
    font-weight: 700;
    color: var(--gray);
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.gold-tab:hover {
    color: var(--black);
    background: rgba(0, 0, 0, 0.04);
}

.gold-tab.active {
    color: var(--accent);
    background: rgba(196, 91, 40, 0.1);
}

.gold-tab-dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    transition: border-color 0.2s;
}

.gold-tab-value {
    border-radius: 4px 0 0 4px !important;
    margin: -1px 0 -1px -1px;
}

.gold-tab-arrow {
    background: none;
    border: none;
    border-left: 1px solid var(--gray-light);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    cursor: pointer;
    padding: 0 8px;
    display: flex;
    align-items: center;
    color: var(--gray);
    transition: color 0.2s, background 0.2s;
    border-radius: 0 4px 4px 0;
    font-family: var(--font);
}

.gold-tab-arrow:hover {
    color: var(--black);
    background: rgba(0, 0, 0, 0.04);
}

.gold-tab-arrow svg {
    width: 8px;
    height: 8px;
    transition: transform 0.2s;
}

.gold-tab-dropdown.open .gold-tab-arrow svg {
    transform: rotate(180deg);
}

.gold-tab-dropdown:has(.gold-tab-value.active) {
    border-color: rgba(196, 91, 40, 0.3);
}

.gold-tab-dropdown .gold-tab-value.active {
    color: var(--accent);
    background: rgba(196, 91, 40, 0.1);
}

.gold-tab-dropdown .gold-tab-value.active + .gold-tab-arrow {
    background: rgba(196, 91, 40, 0.1);
    color: var(--accent);
    border-left-color: rgba(196, 91, 40, 0.3);
}

.gold-tab-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    padding: 4px;
    z-index: 20;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.gold-tab-menu .gold-tab  { padding-left: 0.8em;}

.gold-tab-dropdown.open .gold-tab-menu {
    display: flex;
    min-width: 2.5em;
}

.gold-tab-menu .gold-tab {
    white-space: nowrap;
    text-align: left;
}

@media (max-width: 768px) {
    .gold-chart-section {
        padding: 60px 0;
    }

    .gold-chart-container {
        height: 220px;
    }

    .gold-tab {
        padding: 6px 10px;
    }
}

/* ===== Divisions Page ===== */



.division-block {
    margin-bottom: 60px;
}

.division-block-header {
    display: flex;
    align-items: baseline;
    gap: 0.3em;
    margin-bottom: 24px;
}

.division-block-name {
    margin:0.5rem 0;
}





@media (max-width: 768px) {
    .divisions-page {
        padding: 40px 0 60px;
    }

    .division-block {
        margin-bottom: 40px;
    }
}

/* ===== Publications ===== */
.publications {
    padding: 0 0 0;
}


.has-tab { padding-left: 1.5em;}
.has-tab .tab { position: absolute; margin-left: -1.5em;}

.nowrap { white-space: nowrap;}

.texte a { color: var(--black); text-decoration: underline; transition: color 0.2s;}
.texte a:hover { color: var(--accent);}
.publications-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.publications-sidebar {
    flex: 0 0 25%;
    min-width: 260px;
    position: sticky;
    margin-top: 1rem;
    top: 2rem;
    top: 3.5rem;
    align-self: flex-start;
}

.publications-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.publications-nav-item {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 10px 18px;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
    border-radius: 2rem;
    transition: background 0.2s, color 0.2s;
}

.publications-nav-item svg {
    width: 0.9rem;
    height: 0.9rem;
    min-width: 0.9rem;
    flex-shrink: 0;
    color: var(--accent);
}

.publications-nav-item svg path {
    transition: transform 0.25s;
}

.publications-nav-item svg .arrow-line {
    stroke-dasharray: 14;
    stroke-dashoffset: -14;
    transition: stroke-dashoffset 0.25s, transform 0.25s;
}

.publications-nav-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.publications-nav-item:hover svg path,
.publications-nav-item.active svg path {
    transform: translateX(2px);
}

.publications-nav-item:hover svg .arrow-line,
.publications-nav-item.active svg .arrow-line {
    stroke-dashoffset: 0;
    transform: translateX(1.5px);
}

.publications-nav-item.active {
    color: var(--accent);
    background: rgba(196, 91, 40, 0.1);
}

.publications-content {
    flex: 1;
    min-width: 0;
}

.documents-group {
    margin-bottom: 40px;
}

.documents-group-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 16px;
}

.document-item,
.texte a.document-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    text-decoration: none;
    color: var(--black);
    border-bottom: 1px solid var(--gray-light);
    transition: color 0.2s, background 0.2s;
}

.document-item:hover {
    color: var(--accent);
    background: #FFFD;
}

.document-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-top: 2px;
}

.document-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--accent);
    stroke: var(--accent);
    stroke-width: 0.15;
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.document-meta {
    display: block;
    font-size: max(0.5rem, 12px);
    font-weight: 400;
    color: #555;
    margin-top: 2px;
}

.publications-empty {
    font-size: 0.8rem;
    color: var(--gray);
}

.hidden-doc {
    display: none;
}

.documents-group.show-all .hidden-doc {
    display: flex;
}

.hidden-group {
    display: none;
}

.documents-groups-wrapper.show-all .hidden-group {
    display: block;
}

.btn-voir-plus {
    display: block;
    margin-top: 12px;
    background: none;
    border: none;
    font-family: var(--font);
    font-size: max(0.55rem, 13px);
    font-weight: 700;
    color: var(--accent);
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s;
}

.btn-voir-plus:hover {
    color: var(--black);
}

/* ===== Graphique dividende ===== */
.dividend-chart-section {
    margin-top: 1rem;
    user-select: none;
}
.dividend-chart-container {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 15rem;
    margin: -1.2rem -0.4rem -0.2rem -0.4rem;
}
.dividend-chart-container canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===== Page Augmentation de capital ===== */

h3.with-badge { display: flex; align-items: flex-start; gap: 0.6rem; }
.badge-num {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    margin-top: -0.1rem;
}
p.warning {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    border: clamp(3px, 0.2rem, 8px) solid var(--accent);
    margin: 0.8rem 0;
}
p.warning .warning-icon {
    flex: 0 0 1.4rem;
    width: 1.4rem;
    height: 1.4rem;
    color: var(--accent);
    margin-top: 0.05rem;
}
.capital h2 { margin-top: 2.4rem; }
.capital-lead { font-size: 1.05rem; line-height: 1.4; margin: 1rem 0 0.6rem; }
.capital-baseline { font-size: 1.1rem; line-height: 1.3; color: var(--accent); margin: 0.4rem 0 1.4rem; }
.capital-quote { border-left: 3px solid var(--accent); padding: 0.6rem 0 0.6rem 1.2rem; margin: 1.4rem 0; font-style: italic; color: #333; }
.capital-quote p + p { margin-top: 0.8rem; }

/* Accordéon : séparateurs top/bottom */
.accordion {
    border-top: 1px solid var(--gray-light);
    margin: 0;
}
.accordion:last-of-type { border-bottom: 1px solid var(--gray-light); }
.accordion > summary {
    list-style: none;
    cursor: pointer;
    padding: 0.9rem 2.6rem 0.9rem 0;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.3;
    position: relative;
    user-select: none;
    color: var(--black);
}
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary::after {
    content: "+";
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent);
    line-height: 1;
}
.accordion[open] > summary::after { content: "−"; }
.accordion > summary:hover { color: var(--accent); }
.accordion-body { padding: 0 0 1rem; font-size: 0.85rem; }
.accordion-body p { margin: 0 0 0.6rem; }

/* Frise (calendrier horizontal) */
.frise {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 1.6rem 0 2rem;
    padding: 0;
}
.frise-step {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.frise-date {
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.1;
    height: 0.8rem;
    white-space: nowrap;
    margin-bottom: 0.5rem;
    padding: 0 0.3rem;
    color: var(--black);
}
.frise-step.is-key .frise-date { font-weight: 700; }
.frise-marker {
    position: relative;
    width: 100%;
    height: 1.6rem;
    flex: 0 0 auto;
    margin-bottom: 0.6rem;
}
.frise-marker::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-light);
}
.frise-step:first-child .frise-marker::before { left: 50%; }
.frise-step:last-child .frise-marker::before { right: 50%; }
.frise-marker::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--black);
    transform: translateX(-50%);
}
.frise-step.is-key .frise-marker::after { width: 3px; background: var(--accent); }
.frise-text {
    font-size: 0.62rem;
    line-height: 1.25;
    padding: 0 0.3rem;
    color: #333;
}
.frise-step.is-key .frise-text { font-weight: 700; color: var(--black); }

/* Frise — tablette : police plus petite */
@media (max-width: 900px) {
    .frise-date { font-size: 0.65rem; }
    .frise-text { font-size: 0.58rem; }
}

/* Frise — mobile : passage en vertical */
@media (max-width: 640px) {
    .frise { flex-direction: column; gap: 0; }
    .frise-step {
        flex-direction: row;
        align-items: stretch;
        text-align: left;
        gap: 0.8rem;
        padding: 0;
    }
    .frise-date {
        flex: 0 0 5.5rem;
        height: auto;
        margin: 0;
        padding: 0.6rem 0;
        font-size: 0.7rem;
        line-height: 1.2;
    }
    .frise-marker {
        width: 1rem;
        height: auto;
        flex: 0 0 1rem;
        margin: 0;
    }
    .frise-marker::before {
        left: 50%;
        right: auto;
        top: 0;
        bottom: 0;
        width: 1px;
        height: auto;
        background: var(--gray-light);
    }
    .frise-marker::after {
        left: 50%;
        top: 1rem;
        bottom: auto;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        transform: translateX(-50%);
        background: var(--black);
    }
    .frise-step.is-key .frise-marker::after { width: 10px; height: 10px; background: var(--accent); }
    .frise-step:first-child .frise-marker::before { top: 1rem; }
    .frise-step:last-child .frise-marker::before { bottom: calc(100% - 1rem); }
    .frise-text {
        flex: 1;
        font-size: 0.75rem;
        padding: 0.6rem 0;
    }
}

h1, h2, h3 , h4 { clear: left;}

 img.habillage { float: left; max-width: 38%; max-height: 5.4rem; height: auto; width: auto; margin: -0.1rem 0.8rem 0 0;}

@media (max-width: 768px) {
    .publications {
        padding: 40px 0 60px;
    }

    .publications-layout {
        flex-direction: column;
        gap: 30px;
    }

    .publications-sidebar {
        flex: none;
        position: static;
        width: 100%;
        order: -1;
    }

    .publications-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .publications-nav-item {
        padding: 8px 12px;
        font-size: max(0.55rem, 13px);
    }
}

/* ===== Contact ===== */

section { margin: 3.5rem 0; position: relative;}



.contact-title {
    margin-bottom: 0.4rem;
}

.contact-subtitle {
    font-size: 1rem;
    color: var(--black);
    margin-bottom: 40px;
    font-size: 1rem;
}

/* Form */

.form-group {
    margin-bottom: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 0;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--black);
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--accent);
    outline: none;
    transition: border-color 0.2s;
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    font-weight: 600;
    color: var(--black);
    transition: color 1.2s;
    opacity:0.2;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    color: var(--black);
    opacity:0.3;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--black);
    border-bottom-width: 2px;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

.form-rgpd {
    margin-top: 1.5rem;
}

.form-rgpd label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    font-size: max(0.6rem, 13px);
    line-height: 1.4;
    color: var(--black);
}

.form-rgpd input[type="checkbox"] {
    flex-shrink: 0;
    width: 0.85rem;
    height: 0.85rem;
    margin-top: 3px;
    accent-color: var(--accent);
    cursor: pointer;
}

.form-rgpd a {
    color: var(--accent);
    text-decoration: underline;
}

.form-rgpd a:hover {
    color: var(--black);
}

.btn-submit {
    background: var(--accent);
    color: var(--beige);
    border: 1px solid var(--accent);
    padding: 10px 32px;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 2rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-submit:hover {
    background: var(--black);
    color: var(--beige);
    border-color: var(--black);
}

/* Honeypot anti-spam : caché visuellement mais accessible */
.form-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Champs en erreur */
.form-group.has-error input,
.form-group.has-error textarea {
    border-bottom-color: #c0392b;
}

.form-group.has-error input::placeholder,
.form-group.has-error textarea::placeholder {
    color: #c0392b;
    opacity: 0.6;
}

/* Feedback (succès / erreur / chargement) */
.form-feedback {
    margin-top: 1rem;
    min-height: 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
}

.form-feedback.is-loading { color: var(--black); opacity: 0.6; }
.form-feedback.is-success { color: #1e8449; }
.form-feedback.is-error   { color: #c0392b; }

/* État envoi en cours : on désactive le clic sur le bouton */
.contact-form.is-sending .btn-arrow a {
    pointer-events: none;
    opacity: 0.6;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--black);
    color: var(--beige);
    padding: 40px 0 30px;
}

#back-to-top {
    position: fixed;
    bottom: 2.3rem;
    right: max(1.5rem, calc((100vw - 1500px) / 2 - 1.5rem));
    z-index: 50;
    background-color: var(--accent);
    width: 1.8rem;
    height: 1.8rem;
    border: none;
    border-radius: 50%;
    padding: 0.4rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.2s;

}




@media (max-width: 1588px) {
  #back-to-top {  box-shadow:0 0 3px 1px #0002 }
}



body.scrolled #back-to-top {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top svg {
    width: 100%;
    height: 100%;
}

#back-to-top svg path {
    transition: transform 0.25s;
}

#back-to-top svg .arrow-line {
    stroke-dasharray: 14;
    stroke-dashoffset: -14;
    transition: stroke-dashoffset 0.25s, transform 0.25s;
}

#back-to-top:hover svg path {
    transform: translateY(-3px);
}

#back-to-top:hover svg .arrow-line {
    stroke-dashoffset: 0;
    transform: translateY(-2px);
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 0
}

.footer-logo img {
    height: 1.2rem;
    height:clamp(28px, 1.25rem, 64px);
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: max(0.45rem, 12px);
    font-weight: 600;
    margin:0.5rem 0;
}

.footer-nav a {
    color: var(--beige);
    text-decoration: underline 2px solid;
    text-decoration-color: #FFF0;
    text-underline-offset: -0.2em;
    transition: all 0.2s;

}





.footer-nav a:hover {
    color: var(--beige);
    text-decoration-color: var(--beige);
    text-underline-offset: 0.25em;
}

.footer-sep {
    color: var(--beige);
    font-size: max(0.5rem, 12px);
}



.footer-bottom small {
    color: #FFF;
    font-size: max(0.45rem, 12px);
    font-weight: 400;
}





.site-footer .navs { display: flex; gap: 1rem; }
nav.footer-logos { flex: 1; display: flex; justify-content: right; gap: 0.75rem; align-items: center;}
nav.footer-logos a { opacity: 0.7; transition: opacity 0.2s; display: block;}
nav.footer-logos a:hover { opacity: 1;}
nav.footer-logos img { height: 1.7rem; display: block;}
nav.footer-logos img.big { height: 2.3rem;}
nav.footer-logos img.social { height: 0.9rem; margin: 0 -0.1rem;}
nav.footer-logos hr { height: 0.8rem; width: 1px; border: none; background: #FFF; opacity: 0.4; margin: 0 0.5rem;}






/* ===== Responsive ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .main-nav ul {
        padding: 16px 1.5rem 1.5rem;
        padding-top: clamp(72px, 5.5rem, 150px);
        
    }





    .menu-toggle {
    gap: 4px;
    padding: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

    /* Footer mobile */
    .footer-top {
        align-items: center;
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 6px;
        align-items: center;
        width: 100%;
        max-width: 400px;
    }

    .footer-sep {
        display: none;
    }

    .footer-nav a {
        display: block;
        width: 100%;
        background: #FFF1;
        padding: 6px 16px;
        border-radius: 4px;
    }

    .site-footer .navs { display: block;}
    .site-footer nav + nav { margin: 1.5rem 0 1rem 0;}

    .footer-bottom {
        text-align: center;
    }
}

@media (min-width: 1100px) {
    .line { display: block;}
}

@media (min-width: 769px) {
    .site-header .container {
        align-items: center;
    }

    .footer-top {
        flex-direction: column;
    }


}





