/********** UGG — Design System **********/

/* ===================================================
   TOKENS — alias sémantiques sur la marque déjà définie
   dans css/bootstrap.min.css (--bs-primary/--bs-secondary/
   --bs-light/--bs-dark). On ne redéfinit pas ces variables
   Bootstrap (utilisées par des centaines de classes
   utilitaires bg-primary/text-primary/btn-primary sur tout
   le site) : on les nomme, et on ajoute les tons manquants.
   =================================================== */
:root {
    --bs-tertiary: #797E88;

    --ugg-ink: var(--bs-dark);        /* #051311 — texte principal */
    --ugg-paper: var(--bs-light);     /* #FDF8EA — fond clair */
    --ugg-gold: var(--bs-primary);    /* #FFAC00 — accent primaire */
    --ugg-teal: var(--bs-secondary);  /* #1A685B — accent secondaire */
    --ugg-teal-soft: #2f8f7c;         /* variante claire du teal, surfaces sombres */
    --ugg-clay: #B5502E;              /* accent tertiaire — ton okoumé, usage sobre */

    /* statuts sémantiques (admin/dashboard), dérivés de la famille de marque */
    --status-ok: var(--ugg-teal);
    --status-pending: var(--ugg-gold);
    --status-danger: var(--ugg-clay);

    --ugg-line: rgba(5, 19, 17, .14);
}


/* ===================================================
   TYPOGRAPHIE — une seule famille institutionnelle,
   hiérarchie par la graisse et l'espacement plutôt que
   par un second style décoratif.
   =================================================== */
body {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--ugg-ink);
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -.01em;
    text-wrap: balance;
}

.display-1, .display-2, .display-3 {
    letter-spacing: -.02em;
}

.ugg-mono {
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-variant-numeric: tabular-nums;
}

/* Liste sans icône — remplace les puces "fa-check" décoratives */
.ugg-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ugg-list li {
    position: relative;
    padding: 8px 0 8px 20px;
    border-bottom: 1px solid var(--ugg-line);
    color: var(--ugg-ink);
}

.ugg-list li:last-child { border-bottom: none; }

.ugg-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 8px;
    height: 1.5px;
    background: var(--ugg-gold);
}

:focus-visible {
    outline: 3px solid var(--ugg-gold);
    outline-offset: 2px;
}


/* ===================================================
   MOUVEMENT — respect de prefers-reduced-motion
   =================================================== */
@media (prefers-reduced-motion: reduce) {
    .wow {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}


/* ===================================================
   REGISTRE — remplace la grille icône+compteur générique
   Traitement "grand livre" : chiffres tabulaires, filets
   fins, plus proche du registre d'une association officielle
   qu'un bloc de stats marketing.
   =================================================== */
.ugg-register {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid var(--ugg-line);
    border-bottom: 1px solid var(--ugg-line);
}

.ugg-register__item {
    flex: 1 1 0;
    min-width: 150px;
    padding: 30px 24px;
    text-align: center;
    border-left: 1px solid var(--ugg-line);
}

.ugg-register__item:first-child { border-left: none; }

.ugg-register__num {
    font-family: 'Public Sans', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1;
    color: var(--ugg-teal);
    font-variant-numeric: tabular-nums;
}

.ugg-register__label {
    display: block;
    margin-top: 10px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--bs-tertiary);
}

.ugg-register--inverse {
    border-color: rgba(255, 255, 255, .18);
}

.ugg-register--inverse .ugg-register__item { border-left-color: rgba(255, 255, 255, .18); }
.ugg-register--inverse .ugg-register__num { color: var(--ugg-gold); }
.ugg-register--inverse .ugg-register__label { color: rgba(255, 255, 255, .65); }

@media (max-width: 575.98px) {
    .ugg-register__item { flex: 1 1 50%; border-left: none; border-top: 1px solid var(--ugg-line); }
    .ugg-register__item:nth-child(odd) { border-right: 1px solid var(--ugg-line); }
}


/* ===================================================
   BANDE STATISTIQUE SOMBRE — chiffres larges plein cadre,
   sans filets, légende descriptive. Distincte du .ugg-register
   (registre sobre) et du .ugg-stat-grid (cartes icônes/accueil) —
   pour une page où l'on veut un impact visuel fort et direct.
   =================================================== */
.ugg-stat-band {
    background: var(--ugg-ink);
    padding: 64px 0;
}

.ugg-stat-band__row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.ugg-stat-band__item {
    flex: 1 1 200px;
    min-width: 170px;
}

.ugg-stat-band__num {
    font-family: 'Public Sans', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
    margin-bottom: 14px;
}

.ugg-stat-band__desc {
    font-size: .86rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .6);
    max-width: 230px;
}

@media (max-width: 767.98px) {
    .ugg-stat-band { padding: 48px 0; }
    .ugg-stat-band__row { gap: 32px; }
}


/* ===================================================
   CARTE DU GABON — silhouette géographique réelle en style
   "réseau de connectivité" (contour lumineux + constellation de
   nœuds générée dans le tracé exact du pays), en fond plein cadre
   de toute la section Mission/Vision (a-propos) — pas une carte
   encadrée, le dégradé sombre remplace le fond de section entier.
   =================================================== */
.gabon-section {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 74% 18%, var(--ugg-teal-soft) 0%, var(--ugg-teal) 38%, #08201a 78%, var(--ugg-ink) 100%);
}

.gabon-section > .container-fluid {
    position: relative;
    z-index: 1;
}

.gabon-net-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    height: 104%;
    width: auto;
    pointer-events: none;
    animation: gabonFloat 6s ease-in-out infinite;
}

.gabon-map {
    height: 100%;
    width: auto;
    display: block;
    margin: 0 auto;
}

.gabon-map-outline {
    fill: none;
    stroke: #fff;
    stroke-width: 3.5;
    stroke-linejoin: round;
    filter: url(#gabonGlow);
    opacity: .85;
}

.gabon-map-shadow { opacity: .8; }

.gabon-net-line {
    stroke: rgba(255, 255, 255, .35);
    stroke-width: 1.4;
}

.gabon-net-dot {
    fill: #fff;
    filter: url(#gabonGlow);
    animation: gabonPulse 2.6s ease-in-out infinite;
}

/* Texte Mission/Vision — inversé pour rester lisible sur le fond sombre */
.gabon-section h2 { color: #fff; }
.gabon-section > .container-fluid p { color: rgba(255, 255, 255, .75); }
.gabon-section .ugg-list li {
    color: rgba(255, 255, 255, .88);
    border-bottom-color: rgba(255, 255, 255, .16);
}

@media (max-width: 991.98px) {
    .gabon-net-bg { height: 70%; opacity: .5; }
}

/* La centrage (translate -50%/-50%) doit rester présent à chaque étape
   de l'animation, sinon l'anim de flottement l'écrase et décentre la carte. */
@keyframes gabonFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50%      { transform: translate(-50%, -50%) translateY(-8px); }
}

@keyframes gabonPulse {
    0%, 100% { opacity: .55; r: 6; }
    50%      { opacity: 1;   r: 8.5; }
}


/* ===================================================
   STAT CARDS — grille icône + compteur (page d'accueil)
   Traitement chiffré et coloré, distinct du .ugg-register
   plus sobre utilisé ailleurs sur le site.
   =================================================== */
.ugg-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.ugg-stat-card {
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ugg-stat-card--gold { background: var(--ugg-gold); color: var(--ugg-ink); }
.ugg-stat-card--teal { background: var(--ugg-teal); color: var(--ugg-paper); }

.ugg-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, .25);
}

.ugg-stat-card--gold .ugg-stat-icon { background: rgba(5, 19, 17, .12); }

.ugg-stat-num {
    font-family: 'Public Sans', sans-serif;
    font-size: clamp(1.9rem, 3.4vw, 2.4rem);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ugg-stat-label {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .5px;
    opacity: .85;
}

@media (max-width: 575.98px) {
    .ugg-stat-card { padding: 22px 18px; }
}


/* ===================================================
   AXES D'ACTION — cartes photo + étiquette + accent
   =================================================== */
.axis-card {
    background: #fff;
    height: 100%;
}

.axis-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.axis-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 1.1s cubic-bezier(.25, .8, .25, 1);
}

.axis-card:hover .axis-photo img { transform: scale(1.1); }

.axis-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,19,17,.72) 0%, rgba(5,19,17,.14) 46%, transparent 70%);
}

.axis-tag {
    position: absolute;
    left: 18px;
    bottom: 14px;
    z-index: 2;
    color: #fff;
    font-family: 'Public Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.axis-accent { height: 3px; }
.axis-accent-gold      { background: var(--ugg-gold); }
.axis-accent-teal      { background: var(--ugg-teal); }
.axis-accent-clay      { background: var(--ugg-clay); }
.axis-accent-teal-soft { background: var(--ugg-teal-soft); }

.axis-card-body { padding: 22px 22px 26px; }
.axis-card-body p { color: var(--ugg-ink); opacity: .72; font-size: .92rem; line-height: 1.6; }


/* ===================================================
   PILL DE STATUT — admin / dashboard
   =================================================== */
.ugg-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    line-height: 1.8;
}

.ugg-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.ugg-pill--ok      { color: var(--status-ok);      background: color-mix(in srgb, var(--status-ok) 14%, transparent); }
.ugg-pill--pending { color: var(--status-pending);  background: color-mix(in srgb, var(--status-pending) 18%, transparent); }
.ugg-pill--danger  { color: var(--status-danger);   background: color-mix(in srgb, var(--status-danger) 14%, transparent); }


/* ===================================================
   UTILITAIRES GÉNÉRAUX
   =================================================== */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.fw-bold { font-weight: 700 !important; }
.fw-medium { font-weight: 600 !important; }
.fw-normal { font-weight: 400 !important; }


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-family: 'Public Sans', sans-serif;
    font-weight: 600;
}

.btn-square { width: 28px; height: 28px; }
.btn-sm-square { width: 34px; height: 34px; }
.btn-lg-square { width: 40px; height: 40px; }

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-xxs-square {
    width: 24px;
    height: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
}

.btn-xxs-square i {
    line-height: 1;
    font-size: 8px;
}

/*** Top Bar ***/
/* Une seule ligne, quelle que soit la largeur : le nom ne passe jamais sur deux
   lignes ; les coordonnées se retirent progressivement quand la place manque
   (adresse d'abord, puis email/téléphone sur tablette et mobile). */
.top-bar {
    padding: 14px 90px;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 62px;
}

.top-bar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
}

.top-bar-brand img {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.top-bar-name {
    color: var(--bs-primary);
    font-weight: 800;
    font-size: clamp(14px, 1.45vw, 21px);
    line-height: 1.1;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.top-bar-contacts {
    display: flex;
    align-items: center;
    gap: 28px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    text-decoration: none;
}

.top-bar-item .top-bar-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    color: var(--bs-dark);
    font-size: 14px;
}

.top-bar-item .lbl {
    display: block;
    color: var(--bs-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.3;
}

.top-bar-item .val {
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
}

a.top-bar-item:hover .val { color: var(--bs-primary); }

.top-bar-social {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (max-width: 1399.98px) {
    .top-bar { padding: 12px 40px; }
    .top-bar-contacts { gap: 20px; }
}

@media (max-width: 1199.98px) {
    .top-bar-item.tb-address { display: none; }
}

@media (max-width: 991.98px) {
    .top-bar { padding: 10px 16px; }
    .top-bar-inner { justify-content: center; min-height: 52px; }
    .top-bar-contacts { display: none; }
    .top-bar-name { font-size: clamp(13px, 4.2vw, 20px); }
}

@media (max-width: 380px) {
    .top-bar-brand { gap: 8px; }
    .top-bar-brand img { width: 34px; height: 34px; }
}


/*** Nav Bar ***/
.nav-bar {
    padding: 0 90px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 20px 0;
    color: var(--bs-dark);
    font-size: 18px;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-white);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 1399.98px) {
    .nav-bar { padding: 0 40px; } /* même marge que la barre du haut : bords alignés */
}

@media (max-width: 991.98px) {
    .nav-bar { padding: 0 16px; }

    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 20px;
        border-top: 1px solid var(--bs-white);
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Hero — photo plein cadre avec léger zoom continu ***/
.hero-slider {
    position: relative;
    height: 86vh;
    min-height: 540px;
    max-height: 780px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 0;
    overflow: hidden;
    background-size: 0 0;        /* l'image n'est peinte que par le calque ::before */
    background-repeat: no-repeat;
}

.hero-slide.active { opacity: 1; z-index: 1; }

/* Seule la PHOTO zoome : le calque ::before reprend l'image de la diapositive.
   Le texte, posé au-dessus, ne bouge jamais. */
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;   /* image de la diapositive (attribut style) */
    background-size: cover;
    background-position: center;
    animation: heroZoom 10s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide::before { animation: none; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(5, 19, 17, .88) 0%, rgba(5, 19, 17, .62) 40%, rgba(5, 19, 17, .28) 75%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Bloc texte à hauteur fixe : chaque partie a une place réservée (titre sur
   2 lignes, texte sur 3), donc le paragraphe et les boutons restent exactement
   au même endroit d'une diapositive à l'autre, quel que soit l'écran. */
.hero-text {
    max-width: 760px;
    --title-lines: 2;
    --lead-lines: 3;
}

@media (min-width: 1400px) {
    .hero-text { max-width: 880px; }
}

.hero-title {
    color: #fff;
    font-size: clamp(30px, 3.8vw, 54px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.01em;
    text-transform: uppercase;
    margin: 0 0 20px;
    min-height: calc(var(--title-lines) * 1.08em);
    display: flex;
    align-items: flex-end;   /* titre court : il s'aligne sur le bas de sa zone */
    text-wrap: balance;
}

.hero-lead {
    color: rgba(255, 255, 255, .92);
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 0 32px;
    min-height: calc(var(--lead-lines) * 1.6em);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 767.98px) {
    .hero-text { --title-lines: 3; --lead-lines: 4; }
    .hero-title { font-size: clamp(26px, 7.2vw, 40px); margin-bottom: 16px; }
    .hero-lead { font-size: 16px; margin-bottom: 26px; }
    /* Sur mobile le texte occupe toute la largeur : voile uniforme pour la lisibilité */
    .hero-overlay { background: linear-gradient(180deg, rgba(5, 19, 17, .62) 0%, rgba(5, 19, 17, .84) 100%); }
    .hero-actions .btn { flex: 1 1 0; text-align: center; padding: 14px 10px !important; white-space: nowrap; }
}

/* Téléphone : boutons empilés pleine largeur (même hauteur sur toutes les diapositives) */
@media (max-width: 575.98px) {
    .hero-actions { flex-direction: column; gap: 10px; }
    .hero-actions .btn { width: 100%; flex: none; }
    .hero-text { --lead-lines: 4; }
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
    transition: background .25s, transform .25s;
}

.hero-dot.active { background: var(--ugg-gold); transform: scale(1.25); }

@media (max-width: 991.98px) {
    .hero-slider { height: 72vh; min-height: 460px; }
}

.page-header {
    background: linear-gradient(rgba(5, 19, 17, .82), rgba(5, 19, 17, .82)), url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .4);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 16px;
    color: var(--ugg-gold);
}

.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, .75);
}

.page-header h1 {
    color: #fff;
}


/*** Video ***/
.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--ugg-teal);
}

.btn-play:before,
.btn-play:after {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--ugg-teal);
}

.btn-play:before {
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    z-index: 1;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--bs-white);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% { transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1); opacity: 1; }
    100% { transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2); opacity: 0; }
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: var(--bs-white);
    background: #000000;
    opacity: 1;
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    font-family: 'Public Sans', sans-serif;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: 2px;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 0px;
    top: 5px;
    left: -40px;
    border-top: 2px solid var(--ugg-gold);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 0px;
    bottom: 6px;
    left: -60px;
    border-bottom: 2px solid var(--ugg-gold);
    z-index: -1;
}

.section-title.text-start::before { width: calc(100% + 40px); left: 0; }
.section-title.text-start::after { width: calc(100% + 60px); left: 0; }


/*** About ***/
.about-img {
    position: relative;
}

.about-img::before,
.about-img::after {
    position: absolute;
    content: "";
    width: 33%;
    height: 90px;
    background: var(--bs-white);
}

.about-img::before { top: 0px; left: 0px; }
.about-img::after { right: 0px; bottom: 0px; }


/*** Donation (mur des contributeurs / axes d'action) ***/
.donation-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
    transition: .5s;
}

.donation-item:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.donation-item .donation-progress {
    width: 80px;
}

.donation-item .progress .progress-bar {
    height: 20px;
    overflow: visible;
    transition: 3s;
    background-color: var(--ugg-teal);
}


/*** Team — carte photo pleine largeur, icônes + biographie
     révélées au survol (et toujours visibles au clavier/tactile) ***/
.team-card {
    position: relative;
    aspect-ratio: 550 / 650;
    overflow: hidden;
    background: var(--ugg-paper);
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
    transition: box-shadow .3s;
}
.team-card:hover { box-shadow: 0 12px 34px rgba(5, 19, 17, .16); }

.team-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform .5s ease, filter .4s ease;
}
.team-card:hover .team-card-photo,
.team-card:focus-within .team-card-photo { transform: scale(1.06); filter: brightness(.55); }

.team-card-info {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 18px 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 19, 17, .85) 100%);
    transition: opacity .3s ease, transform .3s ease;
}
.team-card-role {
    display: block;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--ugg-gold);
    margin-bottom: 4px;
}
.team-card-name {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.25;
}
.team-card:hover .team-card-info,
.team-card:focus-within .team-card-info {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

.team-card-icons {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    transition: opacity .3s ease;
}
.team-card:hover .team-card-icons,
.team-card:focus-within .team-card-icons { opacity: 1; }

.team-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(253, 248, 234, .12);
    border: 1.5px solid rgba(253, 248, 234, .5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    text-decoration: none;
    padding: 0;
    cursor: pointer;
    transform: translateY(10px);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.team-card:hover .team-card-icon,
.team-card:focus-within .team-card-icon { transform: translateY(0); opacity: 1; }
.team-card:hover .team-card-icon:nth-child(1) { transition-delay: .04s; }
.team-card:hover .team-card-icon:nth-child(2) { transition-delay: .09s; }
.team-card:hover .team-card-icon:nth-child(3) { transition-delay: .14s; }

.team-card-icon:hover,
.team-card-icon:focus-visible { background: var(--ugg-gold); border-color: var(--ugg-gold); color: var(--ugg-ink); }

/* Tactile : pas de hover fiable — infos + icônes toujours visibles */
@media (hover: none) {
    .team-card-info { opacity: 1; transform: none; }
    .team-card-icons { opacity: 1; position: static; inset: auto; background: var(--ugg-ink); padding: 10px; gap: 10px; }
    .team-card-icon { opacity: 1; transform: none; }
}


/*** Testimonial ***/
.testimonial-title {
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.testimonial-img {
    position: relative;
    padding: 45px 0 45px 90px;
    z-index: 0;
}

.testimonial-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--ugg-gold);
    z-index: -1;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.testimonial-carousel .owl-prev,
.testimonial-carousel .owl-next {
    width: 45px;
    height: 45px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--bs-white);
    background: var(--ugg-teal);
    transition: .5s;
}

.testimonial-carousel .owl-prev:hover,
.testimonial-carousel .owl-next:hover {
    color: var(--ugg-teal);
    background: var(--bs-white);
}

@media (max-width: 767.98px) {
    .testimonial-carousel .owl-nav { top: 6.3rem; }
}


/* ===================================================
   HISTORIQUE DES PRÉSIDENTS — TIMELINE
   Recolorée avec les tokens de marque (l'ancienne version
   utilisait un orange/navy hors-marque et des variables
   --primary/--secondary non définies nulle part).
   =================================================== */

.hist-timeline {
    position: relative;
    padding: 10px 0 10px;
    margin: 0 auto;
}

.hist-line-bg {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--ugg-line);
    transform: translateX(-50%);
    z-index: 0;
}

.hist-line-progress {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom, var(--ugg-gold), var(--ugg-teal));
    transform: translateX(-50%);
    z-index: 1;
    transition: height 0.25s ease-out;
}

.hist-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 64px;
    position: relative;
}

.hist-col-left {
    flex: 0 0 calc(50% - 30px);
    max-width: calc(50% - 30px);
    padding-right: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.hist-date {
    display: block;
    font-family: 'Public Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ugg-gold);
    margin-bottom: 6px;
}

.hist-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ugg-ink);
    margin-bottom: 14px;
    line-height: 1.4;
}

.hist-sep {
    color: var(--bs-tertiary);
    font-weight: 300;
    margin: 0 4px;
}

.hist-lieu {
    font-family: 'Public Sans', sans-serif;
    font-weight: 400;
    color: var(--bs-tertiary);
    font-size: 0.88rem;
}

.hist-desc {
    font-size: 13.5px;
    color: #5a5a6a;
    line-height: 1.85;
    margin: 0;
    border-left: 3px solid var(--ugg-teal);
    padding-left: 14px;
}

.hist-center {
    flex: 0 0 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hist-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #ccc;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.hist-dot::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.4s ease;
}

.hist-dot::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--ugg-gold);
    opacity: 0;
    transform: scale(0.6);
}

.hist-dot.hist-dot--past {
    background: var(--ugg-teal);
    border-color: var(--ugg-teal);
    transform: scale(1.1);
}

.hist-dot.hist-dot--past::before { background: transparent; }
.hist-dot.hist-dot--past::after { display: none; }

.hist-dot.hist-dot--current {
    border-color: var(--ugg-gold);
    transform: scale(1.4);
}

.hist-dot.hist-dot--current::before { background: var(--ugg-gold); }

.hist-dot.hist-dot--current::after {
    opacity: 0.5;
    transform: scale(1);
    animation: histPulse 1.5s ease-out infinite;
}

@keyframes histPulse {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(2.4); opacity: 0; }
}

.hist-col-right {
    flex: 0 0 calc(50% - 30px);
    max-width: calc(50% - 30px);
    padding-left: 50px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.hist-photo-frame {
    position: relative;
    width: 480px;
    height: 280px;
    border-radius: 4px;
    border: 2px solid var(--ugg-teal);
    padding: 5px;
    background: #fff;
    overflow: hidden;
    flex-shrink: 0;
}

.hist-photo {
    position: absolute;
    inset: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    object-fit: cover;
    object-position: center top;
    border-radius: 3px;
    display: block;
    transition: transform 0.4s ease;
}

.hist-photo-frame:hover .hist-photo {
    transform: scale(1.04);
}

@media (max-width: 991.98px) {
    .hist-col-left { padding-right: 30px; }
    .hist-col-right { padding-left: 30px; }
    .hist-date { font-size: .9rem; }

    .hist-photo-frame { width: 200px; height: 250px; }
}

@media (max-width: 767.98px) {
    .hist-line-bg,
    .hist-line-progress {
        left: 20px;
        transform: none;
    }

    .hist-row {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 55px;
        margin-bottom: 48px;
    }

    .hist-center {
        position: absolute;
        left: 1px;
        top: 10px;
    }

    .hist-col-left,
    .hist-col-right {
        flex: none;
        max-width: 100%;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .hist-col-right { margin-top: 20px; }

    .hist-photo-frame { width: 160px; height: 200px; }
}


/*** Footer ***/
.footer {
    color: var(--bs-tertiary);
    background: linear-gradient(rgba(5, 19, 17, .95), rgba(5, 19, 17, .95)), url(../img/bg-footer.jpg) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--bs-tertiary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--bs-light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, .1);
}


/*** Bureau — Fiche Biographique ***/
.bio-member-photo {
    width: 180px;
    height: 100%;
    min-height: 270px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.bio-poste {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ugg-gold);
    margin-top: 3px;
}

.bio-info-side {
    flex: 1;
    min-width: 0;
    max-height: 70vh;
    overflow-y: auto;
}

.bio-text {
    font-size: 0.93rem;
    line-height: 1.9;
    color: #5a5a6a;
    border-left: 3px solid var(--ugg-gold);
    padding-left: 16px;
    margin: 0;
    white-space: pre-line;
}


@media (max-width: 575.98px) {
    .bio-content-row { flex-direction: column; }
    .bio-member-photo { width: 100%; min-height: 220px; }
}
