/* 
   STRUCTURE GLOBALE DU TEMPLATE 
   Ce fichier définit la structure commune à tous les sites.
   Il utilise les variables CSS (--theme-*) définies dans le fichier de thème spécifique.
*/

/* --- Utilitaires --- */
body, p {
    font-family: var(--theme-font-sans);
    color: var(--theme-text-color);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4em;
    -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Typographie Standard — Maquette Styletypo UniNE Droit --- */

/* TMain — Titre principal de page (28px Light) */
h1, .title-main {
    font-family: var(--theme-font-sans);
    font-weight: 300;
    --own-font-size: 30px;
    font-size: var(--own-font-size);
    color: var(--theme-title-color);
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0;
}

/* T2 — Titre de section (24px Bold) */
h2, .title-secondary {
    font-family: var(--theme-font-sans);
    font-weight: 700;
    --own-font-size: 24px;
    font-size: var(--own-font-size);
    color: var(--theme-title-color);
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0;
}

/* T3 — Sous-section (21px Bold) */
h3, .title-h3 {
    font-family: var(--theme-font-sans);
    font-weight: 700;
    --own-font-size: 21px;
    font-size: var(--own-font-size);
    color: var(--theme-title-color);
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0;
}

/* T4 — Paragraphe titré (18px Bold Italic) */
h4, .title-h4 {
    font-family: var(--theme-font-sans);
    font-weight: 700;
    --own-font-size: 18px;
    font-size: var(--own-font-size);
    font-style: italic;
    color: var(--theme-title-color);
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0;
}

/* T5 — Sous-paragraphe (18px Italic) */
h5, .title-h5 {
    font-family: var(--theme-font-sans);
    font-weight: 700;
    --own-font-size: 15px;
    font-size: var(--own-font-size);
    font-style: italic;
    color: var(--theme-title-color);
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0;
}

/* T6 — Meta / dates (15px Italic) */
h6, .title-h6 {
    font-family: var(--theme-font-sans);
    font-weight: 600;
    --own-font-size: 15px;
    font-size: var(--own-font-size);
    font-style: normal;
    color: var(--theme-title-color);
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0;
}

/* Override Bootstrap bolder → bold */
strong, b {
    font-weight: 700;
}

/* ==========================================================================
   Typographie de flux — Espacement contextuel (override Bootstrap)
   Principe : margin-top via adjacent sibling, jamais margin-bottom.
   Loi de proximité : un titre colle à son contenu, s'éloigne du précédent.
   ========================================================================== */

/* Reset margin-bottom Bootstrap sur les éléments de flux */
p, ul, ol, blockquote, pre, figure, hr {
    margin-top: 0;
    margin-bottom: 0;
}

/* --- Espacement de base entre éléments de flux --- */
p + p,
p + ul, p + ol, p + figure,
ul + p, ol + p, figure + p,
ul + ul, ul + ol, ul + figure,
ol + ul, ol + ol, ol + figure,
figure + ul, figure + ol, figure + figure,
blockquote + p, blockquote + ul, blockquote + ol, blockquote + figure {
    margin-top: 1em;
}

/* --- Titres après du contenu : rupture visuelle forte --- */
p + h1, ul + h1, ol + h1, blockquote + h1, figure + h1 { margin-top: 2em; }
p + h2, ul + h2, ol + h2, blockquote + h2, figure + h2 { margin-top: 2em; }
p + h3, ul + h3, ol + h3, blockquote + h3, figure + h3 { margin-top: 1.75em; }
p + h4, ul + h4, ol + h4, blockquote + h4, figure + h4 { margin-top: 1.5em; }
p + h5, ul + h5, ol + h5, blockquote + h5, figure + h5 { margin-top: 1.25em; }
p + h6, ul + h6, ol + h6, blockquote + h6, figure + h6 { margin-top: 1em; }

/* --- Titre → contenu : proximité (le titre colle à ce qu'il introduit) --- */
h1 + p, h1 + ul, h1 + ol, h1 + figure { margin-top: 0.75em; }
h2 + p, h2 + ul, h2 + ol, h2 + figure { margin-top: 0.5em; }
h3 + p, h3 + ul, h3 + ol, h3 + figure { margin-top: 0.4em; }
h4 + p, h4 + ul, h4 + ol, h4 + figure { margin-top: 0.3em; }
h5 + p, h5 + ul, h5 + ol, h5 + figure { margin-top: 0.25em; }
h6 + p, h6 + ul, h6 + ol, h6 + figure { margin-top: 0.25em; }

/* --- Titre suivi d'un sous-titre --- */
h1 + h2 { margin-top: 0.75em; }
h2 + h3 { margin-top: 0.5em; }
h3 + h4 { margin-top: 0.5em; }
h4 + h5 { margin-top: 0.25em; }
h5 + h6 { margin-top: 0.25em; }

/* --- Blockquote : espacement renforcé --- */
p + blockquote, ul + blockquote, ol + blockquote, figure + blockquote { margin-top: 1.5em; }
blockquote + blockquote { margin-top: 1em; }

/* --- HR : séparateur de section --- */
p + hr, ul + hr, ol + hr, blockquote + hr, figure + hr,
h1 + hr, h2 + hr, h3 + hr, h4 + hr, h5 + hr, h6 + hr { margin-top: 2em; }
hr + p, hr + ul, hr + ol, hr + blockquote, hr + figure,
hr + h1, hr + h2, hr + h3, hr + h4, hr + h5, hr + h6 { margin-top: 2em; }

/* --- Listes : espacement interne entre items --- */
li + li {
    margin-top: 0.25em;
}

/* --- .pagebreak : élément transparent dans le flux (saut de page PDF) ---
   Le combinateur + travaille sur le DOM, pas sur le rendu visuel.
   display:none ne rend pas l'élément invisible aux sélecteurs.
   On doit donc dupliquer les règles avec .pagebreak comme intermédiaire. */
.pagebreak {
    display: block;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
}

:is(p, ul, ol, blockquote) + .pagebreak + :is(p, ul, ol) { margin-top: 1em; }

:is(p, ul, ol, blockquote) + .pagebreak + h1 { margin-top: 2em; }
:is(p, ul, ol, blockquote) + .pagebreak + h2 { margin-top: 2em; }
:is(p, ul, ol, blockquote) + .pagebreak + h3 { margin-top: 1.75em; }
:is(p, ul, ol, blockquote) + .pagebreak + h4 { margin-top: 1.5em; }
:is(p, ul, ol, blockquote) + .pagebreak + h5 { margin-top: 1.25em; }
:is(p, ul, ol, blockquote) + .pagebreak + h6 { margin-top: 1em; }

h1 + .pagebreak + :is(p, ul, ol) { margin-top: 0.75em; }
h2 + .pagebreak + :is(p, ul, ol) { margin-top: 0.5em; }
h3 + .pagebreak + :is(p, ul, ol) { margin-top: 0.4em; }
h4 + .pagebreak + :is(p, ul, ol) { margin-top: 0.3em; }
:is(h5, h6) + .pagebreak + :is(p, ul, ol) { margin-top: 0.25em; }

h1 + .pagebreak + h2 { margin-top: 0.75em; }
h2 + .pagebreak + h3 { margin-top: 0.5em; }
h3 + .pagebreak + h4 { margin-top: 0.5em; }
h4 + .pagebreak + h5 { margin-top: 0.25em; }
h5 + .pagebreak + h6 { margin-top: 0.25em; }

:is(p, ul, ol) + .pagebreak + blockquote { margin-top: 1.5em; }
blockquote + .pagebreak + blockquote { margin-top: 1em; }

/* --- Classes Typographiques Spécifiques --- */

/* TCover — Titre hero/bannière (44px Light, blanc) */
.cover-title, 
.cover h1 {
    font-family: var(--theme-font-sans);
    font-weight: 300;
    font-size: 44px;
    color: var(--theme-white-color);
    text-align: center;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

/* TCoverSubtitle — Sous-titre hero (21px Bold, blanc) */
.cover-subtitle {
    font-family: var(--theme-font-sans);
    font-weight: 700;
    font-size: 21px;
    color: var(--theme-white-color);
    text-align: center;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.semi-small {
    font-size: calc(var(--own-font-size, 1em) * 0.9);
}
.extra-small {
    font-size: calc(var(--own-font-size, 1em) * 0.7);
}

/* T1 — Titre de contenu (27px Bold) */
.title-content {
    font-weight: 700;
    font-size: 27px;
}

/* T4surtitle — Surtitre / label de type (18px Italic) */
.surtitle {
    font-family: var(--theme-font-sans);
    font-weight: 400;
    font-size: 18px;
    font-style: italic;
    color: var(--theme-text-color);
    display: block;
}

/* T4surtitle variante majuscules */
.surtitle-upper {
    font-family: var(--theme-font-sans);
    font-weight: 400;
    font-size: 18px;
    font-style: italic;
    color: var(--theme-text-color);
    text-transform: uppercase;
    display: block;
}

/* T4straight — h4 sans italique (18px Bold) */
.h4-straight, .title-h4-straight {
    font-family: var(--theme-font-sans);
    font-weight: 700;
    font-size: 18px;
    font-style: normal;
    color: var(--theme-title-color);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

/* T6signature — Signature auteur (15px Bold Italic) */
.signature {
    font-family: var(--theme-font-sans);
    font-weight: 700;
    font-size: 15px;
    font-style: italic;
    color: var(--theme-primary);
}

a.signature {
    color: var(--theme-primary);
}
a.signature:hover {
    color: var(--theme-link-hover-color);
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover {
    color: var(--theme-link-color);
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--theme-secondary);
    color: var(--theme-white-color);
    position: relative;
    /* Note: Pas de z-index ici pour permettre aux cards-overlap de chevaucher la cover */
}

/* Navigation et dropdowns ont besoin d'un z-index élevé pour passer au-dessus du contenu */
.site-header .navbar-custom {
    position: relative;
    z-index: 300;
}

.site-header .dropdown-menu {
    z-index: 310;
}

.top-bar {
    padding: 1.5rem 0;
}

/* Top bar header avec logos et menu sur la même ligne */
.top-bar-header {
    display: flex !important;
    align-items: center !important;
    padding: 1.5rem 0 !important;
    position: relative !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.top-bar-logo-left {
    flex: 0 0 auto !important;
    width: auto !important;
    order: 1 !important;
}

.top-bar-logo-right {
    flex: 0 0 auto !important;
    width: auto !important;
    order: 3 !important;
}

/* Logo principal réduit */
.top-bar-header .logo-main {
    height: 28px !important;
    max-height: 28px !important;
    width: auto !important;
    display: block;
}

/* Logo secondaire garde sa taille normale */
.top-bar-header .top-bar-logo-right img {
    height: 35px !important;
    max-height: 35px !important;
    width: auto !important;
    display: block;
}

/* Navigation centrée entre les logos */
.top-bar-header .top-bar-nav {
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    position: static !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    order: 2 !important;
    height: auto !important;
    line-height: normal !important;
}

.top-bar-header .top-bar-menu {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: auto !important;
}

.top-bar-header .top-bar-menu li {
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}

.top-bar-header .nav-link {
    white-space: nowrap !important;
}

.navbar-custom {
    padding: 0;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 1rem 1.5rem !important;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Chevron for dropdowns */
.nav-link-chevron::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    margin-left: 6px;
    opacity: 0.8;
    transition: transform 0.2s ease;
}

/* Override Bootstrap caret for dropdowns */
.nav-link-chevron.dropdown-toggle::after {
    border-top: none;
    border-left: none;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    vertical-align: middle;
}

/* Rotate chevron when expanded */
.nav-link-chevron[aria-expanded="true"]::after {
    transform: rotate(225deg);
    margin-top: 0;
}

/* --- Dropdown Menu Styles --- */
/* Positionner le parent pour le centrage */
.navbar-custom .nav-item.dropdown {
    position: relative;
}

.navbar-custom .dropdown-menu {
    border-radius: 0; /* Coins à angle droit */
    border: none;
    background-color: var(--theme-white-color);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.4);
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 1050; /* Au-dessus du hero-section */
    /* Centrer sous le point central du parent */
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    /* Positionner sous le lien */
    top: 100% !important;
    margin-top: 0;
}

/* Flèche vers le haut (triangle) - centrée et plus grande */
.navbar-custom .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid var(--theme-white-color);
}

.navbar-custom .dropdown-menu .dropdown-item {
    color: var(--theme-text-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.6rem 1.2rem;
    transition: background-color 0.2s, color 0.2s;
}

.navbar-custom .dropdown-menu .dropdown-item:hover,
.navbar-custom .dropdown-menu .dropdown-item:focus {
    background-color: transparent;
    color: var(--theme-primary);
}

.navbar-custom .dropdown-menu .dropdown-item.active {
    background-color: transparent;
    color: var(--theme-primary);
}

/* Header light: dropdown */
.header-light .navbar-custom .dropdown-menu {
    background-color: var(--theme-white-color);
}

.header-light .navbar-custom .dropdown-menu::before {
    border-bottom-color: var(--theme-white-color);
}


/* Header Light (Pages internes sans Hero) */
.header-light {
    background-color: var(--theme-white-color) !important;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.header-light .navbar-custom .nav-link {
    color: var(--theme-text-dark) !important;
}

.header-light .navbar-custom .nav-link:hover,
.header-light .navbar-custom .nav-link.active {
    color: var(--theme-primary) !important;
}

/* Logos */
.h-logo-unine {
    height: 35px;
    width: auto;
}

/* --- Navigation Mobile --- */
@media (max-width: 991.98px) {
    /* Réduction taille logos mobile */
    .h-logo-unine, 
    .header-light .h-logo-unine {
        height: 20px !important;
    }
    
    .w-logo-header {
        width: 160px !important;
    }

    /* Correction pour le menu mobile en overlay pleine largeur */
    .navbar-collapse-mobile {
        position: absolute;
        top: 100%;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 100vw !important;
        z-index: 9999 !important;
        background-color: #ffffff !important;
        padding: 0;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        border-top: 1px solid rgba(0,0,0,0.05);
        visibility: visible !important;
    }

    /* On s'assure que le header-nav-bar est la seule référence */
    .header-nav-bar {
        position: relative !important;
        z-index: 1000 !important;
    }
    
    /* On remet un container à l'intérieur pour l'alignement */
    .navbar-collapse-mobile .navbar-custom {
        padding: 0;
    }
    
    /* Ajuster les couleurs de texte pour le fond blanc */
    .navbar-collapse-mobile .nav-link {
        color: #333333 !important;
        padding: 1rem var(--bs-gutter-x, 0.75rem) !important; /* Padding horizontal remis ici */
        border-bottom: 1px solid rgba(0,0,0,0.05);
        font-weight: 600 !important;
        text-align: left !important;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 0.8rem;
    }
    
    /* Sous-menus en mode accordéon toujours ouverts */
    .navbar-collapse-mobile .dropdown-menu {
        display: block !important; /* Toujours ouvert sur mobile */
        position: static !important;
        transform: none !important;
        width: 100% !important;
        box-shadow: none !important;
        background-color: transparent !important; /* Suppression du fond */
        border: none !important;
        margin: 0 !important;
        padding: 0 !important; /* On gère le décalage via les items */
    }
    
    .navbar-collapse-mobile .dropdown-item {
        color: #333333 !important;
        padding: 1rem var(--bs-gutter-x, 0.75rem) !important;
        padding-left: 2.5rem !important; /* Décalage marqué pour le 2ème niveau */
        text-transform: uppercase !important; /* Même typo que niveau 1 */
        font-weight: 600 !important; /* Même typo que niveau 1 */
        letter-spacing: 1px;
        font-size: 0.8rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        white-space: normal !important;
        width: 100%;
        display: block;
    }
    
    .navbar-collapse-mobile .dropdown-menu::before {
        display: none !important;
    }

    .navbar-collapse-mobile .navbar-nav {
        align-items: stretch !important; /* Pour que les items prennent toute la largeur */
        width: 100%;
    }

    /* Cacher le chevron sur mobile car tout est ouvert */
    .navbar-collapse-mobile .nav-link-chevron::after {
        display: none !important;
    }

    /* --- Burger Menu Animé --- */
    .burger-menu-btn {
        border: none !important;
        padding: 10px !important;
        background: transparent !important;
    }

    .burger-icon {
        width: 24px;
        height: 18px;
        position: relative;
        transform: rotate(0deg);
        transition: .5s ease-in-out;
        cursor: pointer;
    }

    .burger-icon span {
        display: block;
        position: absolute;
        height: 2px;
        width: 100%;
        background: #ffffff;
        border-radius: 9px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }

    /* Couleur sombre pour le header light */
    .header-light .burger-icon span {
        background: #333333;
    }

    .burger-icon span:nth-child(1) { top: 0px; }
    .burger-icon span:nth-child(2) { top: 8px; }
    .burger-icon span:nth-child(3) { top: 16px; }

    /* Animation vers la croix quand ouvert */
    .burger-menu-btn:not(.collapsed) .burger-icon span:nth-child(1) {
        top: 8px;
        transform: rotate(135deg);
    }

    .burger-menu-btn:not(.collapsed) .burger-icon span:nth-child(2) {
        opacity: 0;
        left: -40px;
    }

    .burger-menu-btn:not(.collapsed) .burger-icon span:nth-child(3) {
        top: 8px;
        transform: rotate(-135deg);
    }
}

/* --- Hero Section --- */
.hero-section {
    background-color: var(--theme-secondary);
    color: white;
    text-align: center;
    padding: 5rem 0 9rem 0;
    position: relative;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

/* Note: .hero-title supprimé - utiliser .cover-title */

/* --- Cards Section (Chevauchement) --- */
.cards-overlap-section {
    margin-top: -5rem;
    position: relative;
    z-index: 10;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--theme-white-color);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--theme-card-border-radius);
    padding: 3rem 2.5rem; /* Increased padding */
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    position: relative; /* For absolute positioning of arrow */
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-icon-wrapper {
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.feature-icon {
    max-height: 100%;
    max-width: 100%;
}

/* Feature icons (font) */
.feature-icon-wrapper > i {
    font-size: 60px;
    line-height: 1;
    color: var(--theme-primary);
}

/* Note: .feature-title supprimé - utiliser .title-secondary */
/* Note: .feature-text supprimé - utiliser texte standard + .text-muted si besoin */

.feature-arrow {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    color: var(--theme-primary);
    font-size: 1.5rem; /* Larger arrow */
    font-weight: 300;
    line-height: 1;
}

/* --- Section Titre Centré --- */
.section-heading {
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--theme-primary);
    font-weight: 300;
    font-size: 28px;
    line-height: 1.3;
}

/* --- Analysis Cards --- */
.analysis-card {
    background: var(--theme-bg-off-white);
    border: none;
    border-left: 4px solid var(--theme-primary-light); /* Fixed border width */
    padding: 20px;
    height: 100%;
    position: relative;
    transition: background-color 0.2s;
}

.analysis-card:hover {
    background-color: var(--theme-bg-lighter);
}

/* Note: .analysis-meta supprimé - utiliser .surtitle */
/* Note: .analysis-title supprimé - utiliser .title-h3 */
/* Note: .analysis-author supprimé - utiliser .semi-small .text-muted */

.analysis-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Note: Les styles globaux .btn (padding, border-radius, font) sont dans bootstrap-overrides.css */
.btn-cta {
    background-color: var(--theme-primary);
    color: var(--theme-white-color);
    border: none;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(var(--theme-primary-rgb), 0.2);
}

.btn-cta:hover {
    background-color: var(--theme-link-hover-color);
    color: var(--theme-white-color);
}


/* --- Actions --- */
.item-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: color 0.2s;
    color: var(--theme-text-muted);
}

.action-btn:hover {
    color: var(--theme-primary);
}

.action-btn img {
    width: 24px; 
    height: 24px;
}

.action-btn i {
    font-size: 20px;
}


/* --- About Us Section --- */
/* Note: .about-title supprimé - utiliser .title-main ou .title-secondary */
/* Note: .about-text supprimé - utiliser texte standard + .text-muted si besoin */

.team-grid-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}
.team-row-3 {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}
.team-row-2 {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}
.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    background-color: var(--theme-border-color);
    object-fit: cover;
}


/* --- Footer --- */
.site-footer {
    background-color: var(--theme-secondary) !important;
    padding: 4rem 0 .5rem 0;
    color: var(--theme-white-color);
    font-size: 14px;
}

.footer-col-title {
    color: var(--theme-white-color);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: none;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0rem;
}

.footer-list a {
    color: rgba(255,255,255, 0.7);
    font-weight: 300;
    text-decoration: none;
}

.footer-list a:hover {
    color: var(--theme-white-color);
}

.footer-list a i.fal,
.footer-list a i.fa-sharp,
.footer-list a i.fa-thin
{
    font-size: 0.65em;
    vertical-align: super;
    position: relative;
    top: 0.2em;
    margin-left: 0.1em;
}

.copyright {
    margin-top: 3rem;
    font-size: 12px;
    color: rgba(255,255,255, 0.4);
}

.footer-address {
    color: rgba(255,255,255, 0.7);
    font-style: normal;
    line-height: 1.6;
    font-weight: 300;
}

.site-footer .copyright
{
    padding: 2rem 0 0 0;
}

/* --- Dev Banner (Mode test) --- */
.dev-banner {
    border: none;
    padding: 0;
    display: flex;
    height: 20px;
    justify-content: center;
    align-items: stretch;
    background: repeating-linear-gradient(
        140deg,
        var(--dev-alternate-color),
        var(--dev-alternate-color) 20px,
        var(--dev-color) 20px,
        var(--dev-color) 40px
    );
    border: 4px solid var(--dev-color);
}

.dev-banner .inner-banner {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 100%;
    background-color: var(--dev-color);
    color: var(--dev-text-color);
}

.dev-banner .inner-banner i {
    margin-right: 5px;
}

.dev-banner.staging {
    --dev-color: #ffcc00;
    --dev-alternate-color: #000;
    --dev-text-color: #000;
}

.dev-banner.dev {
    --dev-color: #e61e5a;
    --dev-alternate-color: #fff;
    --dev-text-color: #fff;
}

body.dev-banner-body.dev {
    --dev-color: #e61e5a;
}

body.dev-banner-body.staging {
    --dev-color: #ffcc00;
}

body.dev-banner-body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000000;
    border: 4px solid var(--dev-color);
}

/* ==========================================================================
   Breadcrumb Multisite
   ========================================================================== */

.breadcrumb-multisite {
    font-size: 0.8125rem;
    line-height: 1.3;
    margin-bottom: 6px;
    margin-top: -0.25em;
}

.breadcrumb-multisite .breadcrumb-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.breadcrumb-multisite .breadcrumb-item {
    color: var(--theme-text-muted, #6c757d);
    text-decoration: none;
}

.breadcrumb-multisite a.breadcrumb-item:hover {
    color: var(--theme-primary, #C60A64);
    text-decoration: underline;
}

.breadcrumb-multisite .breadcrumb-separator {
    color: var(--theme-text-muted, #6c757d);
    margin: 0 0.5rem;
}

.breadcrumb-multisite .breadcrumb-item.current {
    color: var(--theme-text-dark, #333);
    font-weight: 400;
}

/* ==========================================================================
   Sidebar Widgets - Blocs multisite
   ========================================================================== */

.sidebar-widget {
    border-left: 1px solid var(--theme-border-medium);
    padding-left: 1rem;
}

.sidebar-widget .bloc {
    display: flow-root;
}

.sidebar-widget .bloc-title {
    margin-top: -0.275em;
}

/* Titre type soutien (plus discret) */
.sidebar-widget .bloc-soutien .bloc-title {
    color: var(--theme-text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Liens dans le contenu du bloc en couleur primary */
.sidebar-widget .bloc-content a,
.sidebar-widget .bloc-text a {
    color: var(--theme-primary);
}

.sidebar-widget .bloc-content a:hover,
.sidebar-widget .bloc-text a:hover {
    color: var(--theme-link-hover-color);
    text-decoration: underline;
}

/* Icône du bloc */
.sidebar-widget .bloc-icon {
    width: 22px;
    text-align: center;
}
.sidebar-widget .bloc-icon img {
    max-width: 22px;
    max-height: 22px;
}

/* ==========================================================================
   Auteurs & Jurisprudence Blocks
   ========================================================================== */
.author-photo {
    width: 80px;
    height: 80px;
    overflow: hidden;
}

.author-photo.big {
    width: 120px;
    height: 120px;
    overflow: hidden;
}

.author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--theme-border-light) !important;
}

.author-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

.author-photo-list-wrapper {
    width: 80px;
    height: 80px;
}
.author-photo-list-wrapper > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-photo-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Bouton archive newsletter --- */
.btn-newsletter-archive {
    border-radius: 15px;
    min-height: 75px;
}

.btn-newsletter-archive small {
    font-weight: 400;
    line-height: 1.4em;
}
