/*
Theme Name: LAMA Lab Academic Theme
Theme URI: https://lama-lab.netlify.app/
Author: Laboratoire d'Analyse Mathématique et Applications (LAMA)
Description: Thème officiel sur-mesure pour le Laboratoire d'Analyse Mathématique et Applications (FSA Agadir, Université Ibn Zohr). Esthétique académique or et bleu marine, typographie Cormorant Garamond & Inter, support LaTeX et portail de publication chercheur.
Version: 1.0.0
Text Domain: lama-theme
*/

:root {
    --navy: #0a1d37;
    --navy2: #12315a;
    --blue: #1d5ea8;
    --gold: #b8914a;
    --gold2: #d9b877;
    --ivory: #f8f7f3;
    --white: #ffffff;
    --ink: #18222f;
    --mute: #637084;
    --line: #e4e1d8;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14.5px;
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100vw;
    width: 100%;
}

@media (max-width: 768px) {
    html {
        font-size: 13.5px;
    }
}

body {
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--ivory);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100vw;
    width: 100%;
    position: relative;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.25s;
}

a:hover {
    color: var(--gold);
}

/* CONTENEUR RESPONSIVE HARMONISÉ PAR ÉCRAN (.wrap) */
.wrap {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding-left: 24px;
    padding-right: 24px;
}

/* 1. Écrans larges et très haute résolution (Desktops 1400px+ / 2K / 4K) */
@media (min-width: 1400px) {
    .wrap {
        max-width: 1280px;
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* 2. Ordinateurs portables et de bureau standards (1200px à 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .wrap {
        max-width: 1140px;
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* 3. Petits ordinateurs portables & tablettes paysage (992px à 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .wrap {
        max-width: 960px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* 4. Tablettes portrait (768px à 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .wrap {
        max-width: 720px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* 5. Grands smartphones & phablettes (576px à 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .wrap {
        max-width: 540px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* 6. Smartphones compacts (< 576px) */
@media (max-width: 575px) {
    .wrap {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* TOPBAR */
.topbar {
    background: #06142a;
    color: #a9b8cd;
    font-size: 0.78rem;
    letter-spacing: 0.4px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.topbar .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 38px;
    height: auto;
    padding-top: 6px;
    padding-bottom: 6px;
    gap: 16px;
    flex-wrap: wrap;
}

.topbar a {
    color: #a9b8cd;
}

.topbar a:hover {
    color: var(--gold2);
}

.topbar .l, .topbar .r {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* HEADER & NAVBAR */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 14px rgba(10, 29, 55, 0.08);
    border-bottom: 1px solid var(--line);
    width: 100%;
    max-width: 100%;
}

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 14px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
    flex-shrink: 0;
}

.mark {
    width: 44px;
    height: 44px;
    background: var(--navy);
    color: var(--gold2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 1.75rem;
    border-bottom: 3px solid var(--gold);
    font-style: italic;
    border-radius: 4px;
    flex-shrink: 0;
}

.brand b {
    font-family: var(--serif);
    font-size: 1.6rem;
    letter-spacing: 2px;
    font-weight: 700;
    display: block;
    line-height: 1;
    color: var(--navy);
}

.brand small {
    font-size: 0.62rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--mute);
    display: block;
    margin-top: 3px;
}

@media (max-width: 640px) {
    .brand small {
        display: none !important;
    }
}

/* BOUTON MOBILE TOGGLE HAMBURGER */
.mobile-nav-toggle {
    display: none;
    background: rgba(10, 29, 55, 0.04);
    border: 1px solid rgba(10, 29, 55, 0.15);
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.mobile-nav-toggle:hover {
    background: rgba(217, 184, 119, 0.15);
    border-color: var(--gold);
}

.nav-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
}

.nav-toggle-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.25s ease;
}

.mobile-nav-toggle.is-active .nav-toggle-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-nav-toggle.is-active .nav-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.is-active .nav-toggle-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* NAVIGATION DESKTOP */
nav.main-nav {
    display: flex;
    align-items: center;
}

nav.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2px;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

nav.main-nav a {
    color: var(--navy);
    font-size: 0.74rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-weight: 600;
    padding: 8px 9px;
    display: block;
    position: relative;
    white-space: nowrap;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}

nav.main-nav a:hover {
    color: var(--gold);
    background: rgba(217, 184, 119, 0.08);
}

nav.main-nav a.btn.fill {
    padding: 8px 14px;
    font-size: 0.72rem;
    letter-spacing: 0.8px;
    margin-left: 4px;
}

/* NAVIGATION DESKTOP COMPACTE (>= 1241px) — le .wrap est plafonné à 1280px, la version
   "pleine" (sous-titre + liens larges) ne tient jamais : on garde la version compacte partout */
@media (min-width: 1241px) {
    .brand small {
        display: none;
    }
    .brand b {
        font-size: 1.4rem;
        letter-spacing: 1.5px;
    }
    nav.main-nav ul {
        gap: 0;
    }
    nav.main-nav a {
        font-size: 0.68rem;
        letter-spacing: 0.3px;
        padding: 6px 5px;
    }
    .desktop-portal-btn {
        padding: 6px 10px !important;
        font-size: 0.68rem !important;
    }
    .header-actions {
        gap: 8px;
    }
}

/* MENU DÉROULANT MOBILE & TABLETTE (<= 1240px) */
@media (max-width: 1240px) {
    .mobile-nav-toggle {
        display: flex;
    }

    nav.main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 18px 45px rgba(10, 29, 55, 0.16);
        border-top: 2px solid var(--gold);
        border-bottom: 1px solid var(--line);
        padding: 18px 24px 24px;
        z-index: 9999;
        box-sizing: border-box;
    }

    nav.main-nav.is-open {
        display: block !important;
        animation: lamaNavSlideDown 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    nav.main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        width: 100%;
    }

    nav.main-nav li {
        width: 100%;
    }

    nav.main-nav a {
        display: block;
        padding: 10px 12px;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
        border-bottom: 1px solid rgba(228, 225, 216, 0.6);
        white-space: normal;
    }

    nav.main-nav li:last-child a {
        border-bottom: none;
    }

    nav.main-nav a.btn.fill {
        margin-top: 12px;
        text-align: center;
        display: block;
        width: 100%;
        padding: 12px 20px;
        box-sizing: border-box;
    }
}

@keyframes lamaNavSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    font: 600 0.76rem var(--sans);
    letter-spacing: 1.6px;
    text-transform: uppercase;
    border: 1px solid var(--gold);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn.fill {
    background: linear-gradient(135deg, #c5a059 0%, #d9b877 50%, #b8914a 100%);
    color: #06152a !important;
    border-color: #d9b877;
    box-shadow: 0 4px 16px rgba(184, 145, 74, 0.28);
    font-weight: 700;
}

.btn.fill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 145, 74, 0.42);
    color: #06152a !important;
    filter: brightness(1.06);
}

.btn.line {
    color: var(--navy);
    background: transparent;
    border: 1px solid rgba(10, 29, 55, 0.25);
}

.btn.line:hover {
    background: rgba(184, 145, 74, 0.1);
    border-color: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
}

.btn.dark {
    background: var(--navy);
    color: #fff !important;
    border-color: var(--navy);
}

.btn.dark:hover {
    background: var(--navy2);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(10, 29, 55, 0.25);
}

/* HERO SECTION - DESIGN SOPHISTIQUÉ & LUMINEUX */
.hero {
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 72vh;
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: radial-gradient(circle at 75% 20%, rgba(29, 94, 168, 0.45) 0%, transparent 55%),
                radial-gradient(circle at 15% 85%, rgba(217, 184, 119, 0.16) 0%, transparent 45%),
                linear-gradient(168deg, #07172c 0%, #0d284a 55%, #081a33 100%);
}

.hero::after {
    content: "LAMA";
    position: absolute;
    right: -1%;
    bottom: -7%;
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(8rem, 22vw, 20rem);
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 1px rgba(217, 184, 119, 0.22);
    pointer-events: none;
    letter-spacing: 0.04em;
    z-index: 0;
}

.hero svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}

.hero svg path {
    stroke-dasharray: 1800;
    stroke-dashoffset: 1800;
    animation: draw 7s ease forwards;
}

.hero svg circle {
    transform-origin: 900px 300px;
    animation: breathe 16s ease-in-out infinite;
}
.hero svg circle:nth-child(2) { animation-delay: -4s; }
.hero svg circle:nth-child(3) { animation-delay: -8s; }
.hero svg circle:nth-child(4) { animation-delay: -12s; }

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.045); }
}

.hero .wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 48px;
    padding-top: 42px;
    padding-bottom: 84px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.hero-intro {
    padding-top: 6px;
}

.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px;
    background: rgba(217, 184, 119, 0.12);
    border: 1px solid rgba(217, 184, 119, 0.35);
    border-radius: 30px;
    color: #ecd5a5;
    font-size: 0.72rem;
    letter-spacing: 2.4px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hero .eyebrow::before {
    content: "✦";
    color: var(--gold2);
    font-size: 0.75rem;
}

.hero h1 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2.2rem, 4.2vw, 3.6rem);
    letter-spacing: -0.012em;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero h1 em {
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(90deg, #fcedc5 0%, #d9b877 50%, #fcedc5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 8px rgba(217, 184, 119, 0.3));
}

.hero .sub {
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: 580px;
    color: #d6e2f0;
    margin: 18px 0 30px;
    font-weight: 300;
    letter-spacing: 0.2px;
}

/* RIGHT COLUMN .hr */
.hr {
    display: flex;
    flex-direction: column;
}

/* HERO SLIDER .hs */
.hs {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    border: 1px solid rgba(217, 184, 119, 0.45);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

.hs .sl {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #06142a;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
}

.hs .sl:not(.tx)::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 20, 42, 0.15) 0%, rgba(6, 20, 42, 0.45) 50%, rgba(6, 20, 42, 0.92) 100%);
    pointer-events: none;
    z-index: 1;
}

.hs .sl.tx {
    cursor: default;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(29, 94, 168, 0.45));
}

.hs .sl.on {
    opacity: 1;
    z-index: 1;
}

.hs .cp {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 44px 24px 20px;
    background: linear-gradient(transparent 0%, rgba(6, 20, 42, 0.94) 85%);
    color: #fff;
}

.hs .cp small {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold2);
    margin-bottom: 5px;
    font-weight: 600;
}

.hs .cp b {
    font: 600 1.25rem/1.3 var(--serif);
    color: #fff;
    display: block;
}

.hs .dots {
    position: absolute;
    right: 16px;
    top: 16px;
    display: flex;
    gap: 7px;
    z-index: 2;
}

.hs .dots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid var(--gold2);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s;
}

.hs .dots button.on {
    background: var(--gold2);
    transform: scale(1.2);
}

.hs .nv {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(217, 184, 119, 0.6);
    border-radius: 4px;
    background: rgba(6, 20, 42, 0.65);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.hs:hover .nv, .hs .nv:focus {
    opacity: 1;
}

.hs .pv { left: 12px; }
.hs .nx { right: 12px; }
.hs .nv:hover {
    background: var(--gold);
    color: #06152a;
    border-color: var(--gold);
}

.hs .sl.on::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    background: var(--gold2);
    animation: pgr 5s linear forwards;
}

.hs:hover .sl.on::after {
    animation-play-state: paused;
}

@keyframes pgr {
    from { width: 0; }
    to { width: 100%; }
}

/* AGENDA PANEL IN HERO */
.hero .panel {
    margin-top: 18px;
    padding: 22px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 3px solid var(--gold);
    border-radius: 6px;
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.hero .panel h3 {
    font-style: italic;
    font-weight: 500;
    font-size: 1.45rem;
    margin-bottom: 14px;
    color: var(--gold2);
    font-family: var(--serif);
}

.hero .panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero .panel li {
    list-style: none;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.92rem;
}

.hero .panel li:first-child {
    border-top: none;
}

.hero .panel li span {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold2);
    margin-bottom: 2px;
    font-weight: 600;
}

.hero .panel li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.hero .panel li a:hover {
    color: var(--gold2);
}

/* Agenda : rangée pleine largeur sous l'intro + le slider */
.hero .wrap {
    align-items: center;
    row-gap: 36px;
}

.hero .panel.hero-agenda {
    grid-column: 1 / -1;
    margin-top: 0;
    padding: 22px 28px 24px;
}

.hero .panel.hero-agenda ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.hero .panel.hero-agenda li {
    padding: 4px 22px;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.5;
}

.hero .panel.hero-agenda li:first-child {
    padding-left: 0;
    border-left: none;
}

.hero .panel.hero-agenda li span {
    margin-bottom: 6px;
}

@media (max-width: 1080px) {
    .hero .panel.hero-agenda ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 14px;
    }
    .hero .panel.hero-agenda li:nth-child(odd) {
        padding-left: 0;
        border-left: none;
    }
    .hero .panel.hero-agenda li:nth-child(n+3) {
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 600px) {
    .hero .panel.hero-agenda {
        padding: 18px 20px;
    }
    .hero .panel.hero-agenda ul {
        grid-template-columns: 1fr;
        row-gap: 0;
    }
    .hero .panel.hero-agenda li,
    .hero .panel.hero-agenda li:nth-child(n) {
        padding: 10px 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .hero .panel.hero-agenda li:first-child {
        border-top: none;
    }
}

/* STATS (CHIFFRES CLÉS DU LABORATOIRE) */
.stats {
    margin-top: -62px;
    position: relative;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

.stats .box {
    background: linear-gradient(180deg, #ffffff 0%, #fdfcf9 100%);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    box-shadow: 0 25px 60px -10px rgba(10, 29, 55, 0.15), 0 2px 6px rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(217, 184, 119, 0.45);
    border-top: 4px solid var(--gold);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.stat {
    padding: 24px 12px 20px;
    text-align: center;
    border-right: 1px solid rgba(235, 230, 220, 0.9);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    box-sizing: border-box;
}

.stat:last-child {
    border-right: none;
}

.stat:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

.stat-emblem {
    font-size: 1.25rem;
    line-height: 1;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(184, 145, 74, 0.2));
    transition: transform 0.3s ease;
}

.stat:hover .stat-emblem {
    transform: scale(1.15);
}

.stat b {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(2rem, 3.2vw, 3.1rem);
    color: var(--navy);
    display: block;
    line-height: 1;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.stat:hover b {
    color: var(--gold);
    transform: scale(1.05);
}

.stat span {
    font-size: 0.70rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #4b586e;
    margin-top: 8px;
    font-weight: 700;
    display: block;
    line-height: 1.35;
    word-break: break-word;
}

.stat-sub {
    font-size: 0.68rem;
    color: var(--gold);
    font-weight: 600;
    margin-top: 4px;
    display: block;
    letter-spacing: 0.3px;
}

/* PORTAILS DE NAVIGATION SCIENTIFIQUE (.qk-gateway) */
.qk-gateway {
    padding: 34px 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.qk-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.qk-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid rgba(217, 184, 119, 0.35);
    border-top: 3px solid var(--gold);
    border-radius: 10px;
    padding: 18px 16px 16px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(10, 29, 55, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    min-height: 140px;
    min-width: 0;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}

.qk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(10, 29, 55, 0.1);
    border-color: rgba(184, 145, 74, 0.7);
    border-top-color: var(--navy);
    background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);
}

.qk-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.qk-card-badge {
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(217, 184, 119, 0.12);
    border: 1px solid rgba(217, 184, 119, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.qk-card:hover .qk-card-badge {
    transform: scale(1.08);
    background: rgba(217, 184, 119, 0.25);
}

.qk-card-eyebrow {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--gold);
}

.qk-card-main {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.qk-card-title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--navy);
    line-height: 1.25;
    transition: color 0.2s ease;
}

.qk-card:hover .qk-card-title {
    color: var(--blue);
}

.qk-card-sub {
    font-size: 0.74rem;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.3;
}

.qk-card-arrow {
    align-self: flex-end;
    font-size: 1.1rem;
    color: #cbd5e0;
    font-family: var(--sans);
    transition: transform 0.3s ease, color 0.3s ease;
    line-height: 1;
}

.qk-card:hover .qk-card-arrow {
    transform: translateX(4px);
    color: var(--gold);
}

/* RUBAN D'EXCELLENCE ACADÉMIQUE */
.lama-prestige-strip {
    padding: 16px 0 24px;
}

.prestige-card {
    background: linear-gradient(135deg, #0a1d37 0%, #112d53 60%, #0d2342 100%);
    border-radius: 12px;
    border: 1px solid rgba(217, 184, 119, 0.4);
    box-shadow: 0 16px 40px rgba(10, 29, 55, 0.12);
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.prestige-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold2), var(--gold), transparent);
}

.prestige-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.prestige-seal {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(217, 184, 119, 0.15);
    border: 1.5px solid rgba(217, 184, 119, 0.5);
    color: var(--gold2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.prestige-credo-wrap {
    display: flex;
    flex-direction: column;
}

.prestige-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold2);
    margin-bottom: 6px;
}

.prestige-headline {
    font-family: var(--serif);
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: #f1f5f9;
    line-height: 1.45;
    margin: 0;
}

.prestige-tags {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.prestige-tag-item {
    text-align: center;
}

.prestige-tag-item b {
    display: block;
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--gold2);
    font-weight: 700;
}

.prestige-tag-item span {
    display: block;
    font-size: 0.66rem;
    color: #94a3b8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.prestige-tag-sep {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
}

/* SECTION PRÉSENTATION & PILIERS */
.presentation-sec {
    padding: 55px 0;
    background: #ffffff;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.18fr 1fr;
    gap: 68px;
    align-items: start;
}

.about-left .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 2.2px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.about-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(2.1rem, 3.8vw, 2.85rem);
    color: var(--navy);
    line-height: 1.18;
    margin: 0 0 24px;
}

.about-lead-box {
    border-left: 3px solid var(--gold);
    padding: 12px 0 12px 20px;
    margin-bottom: 20px;
    background: rgba(246, 243, 235, 0.45);
    border-radius: 0 8px 8px 0;
}

.about-lead-text {
    font-size: 1.12rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.8;
    margin: 0;
}

.about-body-text {
    font-size: 1.02rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 26px;
}

.about-footer-meta {
    padding-top: 22px;
    border-top: 1px solid #ede8de;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.about-seal-badge {
    display: flex;
    align-items: center;
    gap: 14px;
}

.about-seal-badge .badge-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.about-seal-badge strong {
    display: block;
    font-family: var(--serif);
    font-size: 0.98rem;
    color: var(--navy);
}

.about-seal-badge small {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
}

.about-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* PILIERS DE RECHERCHE */
.pillars-col {
    display: grid;
    gap: 18px;
}

.pillar-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);
    border: 1px solid rgba(217, 184, 119, 0.35);
    border-top: 3px solid var(--gold);
    border-radius: 10px;
    padding: 24px 26px 22px;
    box-shadow: 0 4px 18px rgba(10, 29, 55, 0.04);
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.pillar-card:hover {
    background: #ffffff;
    transform: translateX(6px) translateY(-2px);
    box-shadow: 0 16px 36px rgba(10, 29, 55, 0.09);
    border-color: rgba(184, 145, 74, 0.7);
    border-top-color: var(--navy);
}

.pillar-watermark {
    position: absolute;
    right: 20px;
    top: 12px;
    font-family: var(--serif);
    font-size: 2.8rem;
    font-weight: 700;
    color: rgba(184, 145, 74, 0.16);
    font-style: italic;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.pillar-card:hover .pillar-watermark {
    color: rgba(184, 145, 74, 0.3);
    transform: scale(1.08);
}

.pillar-icon {
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(217, 184, 119, 0.14);
    border: 1px solid rgba(217, 184, 119, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.pillar-card:hover .pillar-icon {
    transform: scale(1.1);
}

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

.pillar-content h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 6px;
    line-height: 1.25;
}

.pillar-content p {
    margin: 0;
    font-size: 0.93rem;
    color: #556377;
    line-height: 1.62;
}

/* SECTION MOT DU DIRECTEUR */
.quote {
    background: radial-gradient(circle at 50% 25%, #fdfbf7 0%, #f6f2e8 100%);
    border-top: 1px solid rgba(217, 184, 119, 0.35);
    border-bottom: 1px solid rgba(217, 184, 119, 0.35);
    text-align: center;
    padding: 44px 0;
    position: relative;
}

.quote-container {
    max-width: 900px;
    margin: 0 auto;
}

.qm {
    font-family: var(--serif);
    font-size: 7.5rem;
    line-height: 0.45;
    color: var(--gold);
    opacity: 0.55;
    height: 50px;
    user-select: none;
}

.qt {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.48rem, 2.7vw, 2.15rem);
    line-height: 1.52;
    color: var(--navy);
    margin: 22px 0 32px;
}

.qa {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.qa-avatar-seal {
    font-size: 1.6rem;
    margin-bottom: 4px;
    line-height: 1;
}

.qa b {
    display: block;
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.4px;
}

.qa span {
    font-size: 0.74rem;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
}

/* RESPONSIVE HERO & TRANSITIONS */
@media(max-width: 1160px) {
    .qk-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
    .stats .box {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .stat:nth-child(3) {
        border-right: none;
    }
    .stat:nth-child(4), .stat:nth-child(5) {
        border-top: 1px solid rgba(235, 230, 220, 0.9);
    }
    .stat:last-child {
        grid-column: span 2;
        border-right: none;
    }
}

@media(max-width: 1080px) {
    .hero { min-height: auto; }
    .hero::after { font-size: 7rem; bottom: -2%; }
    .hero .wrap { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 70px; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .prestige-card { flex-direction: column; align-items: flex-start; gap: 20px; }
    .prestige-tags { width: 100%; justify-content: space-around; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
}

@media(max-width: 768px) {
    .stats .box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat { border-bottom: 1px solid rgba(235, 230, 220, 0.9); }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(3) { border-top: none; }
    .stat:last-child { grid-column: span 2; border-bottom: none; border-right: none; }
    .qk-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media(max-width: 520px) {
    .stats .box { grid-template-columns: 1fr; }
    .stat { border-right: none !important; border-bottom: 1px solid rgba(235, 230, 220, 0.9); padding: 18px 12px; }
    .stat:last-child { grid-column: span 1; border-bottom: none; }
    .qk-cards-grid { grid-template-columns: 1fr; gap: 10px; }
    .prestige-tags { flex-direction: column; gap: 12px; }
    .prestige-tag-sep { display: none; }
}

/* SECTIONS */
section {
    padding: 55px 0;
}

@media (max-width: 991px) {
    section {
        padding: 45px 0;
    }
}

@media (max-width: 575px) {
    section {
        padding: 35px 0;
    }
}

.dark {
    background: radial-gradient(circle at 18% 10%, rgba(29, 94, 168, 0.45) 0%, transparent 60%),
                radial-gradient(circle at 85% 90%, rgba(217, 184, 119, 0.22) 0%, transparent 55%),
                linear-gradient(172deg, #07172c 0%, #0d284a 50%, #081a33 100%);
    color: #fff;
    position: relative;
}

.white {
    background: #fff;
}

.head {
    margin-bottom: 28px;
    max-width: 820px;
}

/* SPOTLIGHT ANNUAIRE DES MEMBRES */
.members-spotlight-bar {
    margin-top: 36px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(217, 184, 119, 0.1) 100%);
    border: 1px solid rgba(217, 184, 119, 0.35);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.head .eyebrow::before {
    content: "✦";
    font-size: 0.75rem;
    color: var(--gold);
}

.dark .head .eyebrow {
    color: var(--gold2);
}

.dark .head .eyebrow::before {
    color: var(--gold2);
}

.head h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.75rem, 2.8vw, 2.4rem);
    color: var(--navy);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.head h2::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, rgba(217, 184, 119, 0.2) 100%);
    margin-top: 14px;
    border-radius: 2px;
}

.dark .head h2 {
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

.dark .head h2::after {
    background: linear-gradient(90deg, var(--gold2) 0%, rgba(217, 184, 119, 0.15) 100%);
}

.head p {
    color: #4b5868;
    margin-top: 14px;
    font-size: 0.95rem;
    line-height: 1.65;
    font-weight: 400;
}

.dark .head p {
    color: #cbd8e8;
}

/* RESEARCH AXES GRID */
.axes-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .axes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 640px) {
    .axes-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.axe-card {
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.75) 0%, rgba(6, 17, 34, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 4px solid var(--gold2);
    border-radius: 12px;
    min-width: 0;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
    padding: 24px 18px 20px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.axe-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at top right, rgba(217, 184, 119, 0.12), transparent 70%);
    pointer-events: none;
    border-radius: 0 12px 0 0;
}

.axe-card:hover {
    background: linear-gradient(180deg, rgba(14, 34, 62, 0.88) 0%, rgba(8, 22, 42, 0.96) 100%);
    border-color: rgba(217, 184, 119, 0.45);
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 24px rgba(217, 184, 119, 0.12);
}

.axe-card-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.axe-sigle-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-family: var(--serif);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    border-radius: 6px;
    border: 1px solid;
    text-transform: uppercase;
}

.axe-index-tag {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.axe-title {
    font-family: var(--serif);
    font-size: 1.32rem;
    font-weight: 600;
    margin: 0 0 14px;
    color: #ffffff;
    line-height: 1.28;
    min-height: 54px;
    display: flex;
    align-items: center;
}

/* BLOC RESPONSABLE D'ÉQUIPE (ÉLÉGANT & PRESTIGIEUX) */
.axe-leader-block {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 16px;
    background: rgba(4, 13, 26, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.25s ease;
    box-sizing: border-box;
    min-height: 78px;
}

.axe-card:hover .axe-leader-block {
    background: rgba(6, 18, 36, 0.85);
    border-color: rgba(217, 184, 119, 0.35);
}

.axe-leader-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1.5px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.axe-leader-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.axe-leader-role {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gold2);
    font-weight: 700;
    line-height: 1.2;
}

.axe-leader-name {
    font-size: 0.92rem;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    display: block;
    line-height: 1.25;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: normal;
}

.axe-leader-arrow {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--gold2);
    margin-left: 4px;
    transition: transform 0.2s ease;
    vertical-align: middle;
}

.axe-leader-name:hover {
    color: var(--gold2) !important;
}

.axe-leader-name:hover .axe-leader-arrow {
    transform: translateX(3px);
}

.axe-leader-grade {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.25;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    margin-top: 1px;
}

.axe-desc {
    font-size: 0.88rem;
    color: #a0aec0;
    line-height: 1.6;
    margin: 0 0 20px;
    flex-grow: 1;
}

.axe-card-footer {
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.axe-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #cbd5e1 !important;
    text-decoration: none;
    transition: all 0.22s ease;
}

.axe-footer-arrow {
    transition: transform 0.2s ease;
}

.axe-footer-btn:hover {
    color: var(--gold2) !important;
}

.axe-footer-btn:hover .axe-footer-arrow {
    transform: translateX(4px);
}

/* SPOTLIGHT RESPONSABLE CARD DANS L'ANNUAIRE DES MEMBRES */
.spotlight-topline {
    margin-bottom: 8px;
}

.spotlight-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 4px;
}

.spotlight-leader-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    margin: 14px 0 16px;
    background: rgba(5, 16, 31, 0.75);
    border: 1px solid rgba(217, 184, 119, 0.35);
    border-radius: 8px;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.spotlight-leader-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(217, 184, 119, 0.18), rgba(10, 29, 55, 0.75));
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    flex-shrink: 0;
}

.spotlight-leader-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spotlight-leader-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--gold2);
}

.spotlight-leader-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.spotlight-leader-name a {
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.spotlight-leader-name a:hover {
    color: var(--gold2) !important;
}

.spotlight-leader-grade {
    color: #cbd5e1;
    font-size: 0.84rem;
}

.spotlight-leader-email {
    color: var(--gold2) !important;
    font-size: 0.82rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.spotlight-leader-email:hover {
    text-decoration: underline;
}

/* BADGES DE STATUT ACADÉMIQUE DE LEADERSHIP */
.badge.badge-leader {
    background: rgba(217, 184, 119, 0.18) !important;
    color: #f5d78e !important;
    border: 1px solid rgba(217, 184, 119, 0.5) !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
}

.badge.badge-director {
    background: linear-gradient(135deg, rgba(217, 184, 119, 0.28) 0%, rgba(184, 145, 74, 0.45) 100%) !important;
    color: #ffffff !important;
    border: 1px solid var(--gold) !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   MODULE STATISTIQUE DES PUBLICATIONS & GRAPHE ANNUEL (LAMA)
   ========================================================================== */

.lama-pub-chart-wrapper {
    background: #ffffff;
    border: 1px solid rgba(217, 184, 119, 0.4);
    border-top: 4px solid var(--gold);
    border-radius: 12px;
    padding: 30px 32px 26px;
    margin-bottom: 34px;
    box-shadow: 0 8px 30px rgba(10, 29, 55, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.lama-pub-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 26px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(228, 225, 216, 0.8);
    padding-bottom: 18px;
}

.chart-eyebrow {
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.chart-title {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.25;
    margin: 0 0 4px;
}

.chart-sub {
    font-size: 0.88rem;
    color: #6d7b8f;
    margin: 0;
    max-width: 650px;
}

.chart-total-badge {
    background: linear-gradient(135deg, rgba(29, 94, 168, 0.08) 0%, rgba(217, 184, 119, 0.12) 100%);
    border: 1px solid rgba(217, 184, 119, 0.4);
    border-radius: 8px;
    padding: 10px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.chart-total-badge .total-num {
    font-family: var(--serif);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.chart-total-badge .total-lbl {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 3px;
}

.lama-pub-chart-body {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 24px;
}

/* HISTOGRAMME */
.lama-pub-histogram {
    position: relative;
    background: #fbfbf9;
    border: 1px solid #ebe6dc;
    border-radius: 8px;
    padding: 24px 20px 16px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.histogram-grid-lines {
    position: absolute;
    inset: 20px 20px 45px 20px;
    pointer-events: none;
}

.histogram-grid-lines .grid-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px dashed rgba(228, 225, 216, 0.9);
}

.histogram-grid-lines .grid-line span {
    position: absolute;
    right: 0;
    top: -9px;
    font-size: 0.65rem;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.histogram-bars-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 140px;
    gap: 16px;
    padding: 0 10px;
}

.hist-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 90px;
    cursor: pointer;
    transition: transform 0.25s ease;
    outline: none;
    user-select: none;
}

.hist-col:hover,
.hist-col:focus-visible {
    transform: translateY(-3px);
}

.hist-bar-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hist-val-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    background: var(--navy);
    color: #ffffff;
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(10, 29, 55, 0.2);
}

.hist-val-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--navy);
}

.hist-col:hover .hist-val-tooltip,
.hist-col.active .hist-val-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.hist-bar {
    width: 100%;
    max-width: 44px;
    background: linear-gradient(180deg, #d9b877 0%, #b8914a 100%);
    border-radius: 6px 6px 2px 2px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
    box-shadow: 0 3px 10px rgba(184, 145, 74, 0.2);
    position: relative;
}

.hist-col:hover .hist-bar {
    filter: brightness(1.12);
    box-shadow: 0 8px 20px rgba(184, 145, 74, 0.4);
}

.hist-col.active .hist-bar {
    background: linear-gradient(180deg, var(--gold2) 0%, var(--navy) 100%);
    box-shadow: 0 8px 24px rgba(10, 29, 55, 0.35);
}

.hist-col.is-peak .hist-bar {
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: linear-gradient(180deg, #f0cf8d 0%, #c59b4c 100%);
}

.hist-bar-num {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hist-label {
    margin-top: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.hist-year {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.hist-col.active .hist-year {
    color: var(--gold);
}

.hist-peak-badge {
    font-size: 0.60rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #8c6a28;
    background: rgba(184, 145, 74, 0.16);
    padding: 1px 5px;
    border-radius: 10px;
    line-height: 1.2;
}

/* KPIS */
.lama-pub-kpis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.kpi-card {
    background: #fdfcf9;
    border: 1px solid #eae5db;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.25s ease;
}

.kpi-card:hover {
    background: #ffffff;
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 29, 55, 0.05);
}

.kpi-icon {
    font-size: 1.45rem;
    line-height: 1;
    flex-shrink: 0;
}

.kpi-info {
    display: flex;
    flex-direction: column;
}

.kpi-val {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
}

.kpi-lbl {
    font-size: 0.70rem;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.25;
}

/* BARRE DE FILTRES PAR ANNÉE */
.lama-pub-filter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(228, 225, 216, 0.8);
    padding-top: 18px;
}

.filter-pills-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #64748b;
}

.lama-pub-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pub-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--navy);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.80rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sans);
}

.pub-pill:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(217, 184, 119, 0.08);
}

.pub-pill.active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--gold2);
    box-shadow: 0 3px 10px rgba(10, 29, 55, 0.18);
}

.pub-pill .pill-count {
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.70rem;
    font-weight: 700;
}

.pub-pill.active .pill-count {
    background: rgba(217, 184, 119, 0.25);
    color: #ffffff;
}

.lama-pub-filter-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: #475569;
    font-weight: 600;
}

.btn-reset-filter {
    background: transparent;
    border: 1px dashed var(--gold);
    color: #8c6a28;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 0.74rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-reset-filter:hover {
    background: var(--gold);
    color: #ffffff;
    border-style: solid;
}

/* RESPONSIVE CHARTS */
@media (max-width: 991px) {
    .lama-pub-chart-body {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .lama-pub-chart-wrapper {
        padding: 22px 20px 20px;
    }
}

@media (max-width: 575px) {
    .lama-pub-kpis {
        grid-template-columns: 1fr;
    }
    .histogram-bars-container {
        gap: 8px;
    }
    .hist-bar {
        max-width: 34px;
    }
}

/* BANDEAU STATISTIQUE DES PUBLICATIONS */
.lama-pub-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 38px;
    background: #ffffff;
    border: 1px solid #eae5db;
    border-top: 3px solid var(--gold);
    border-radius: 8px;
    padding: 22px 24px;
    box-shadow: 0 4px 18px rgba(10, 29, 55, 0.04);
    width: 100%;
    box-sizing: border-box;
}

.pub-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid #efebe3;
    padding: 6px 14px;
    min-width: 0;
    box-sizing: border-box;
}

.pub-stat-item:last-child {
    border-right: none;
}

.pub-stat-val {
    font-family: var(--serif);
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 6px;
}

.pub-stat-label {
    font-size: 0.74rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
}

@media (max-width: 800px) {
    .lama-pub-stats-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .pub-stat-item:nth-child(2) {
        border-right: none;
    }
}
@media (max-width: 480px) {
    .lama-pub-stats-strip {
        grid-template-columns: 1fr;
    }
    .pub-stat-item {
        border-right: none;
        border-bottom: 1px solid #efebe3;
        padding-bottom: 14px;
    }
    .pub-stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* ARTICLES LIST (PUBLICATIONS SCIENTIFIQUES) */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.article-card {
    background: #ffffff;
    border: 1px solid #eae5db;
    border-radius: 8px;
    padding: 26px 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    min-width: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 18px rgba(10, 29, 55, 0.04);
}

.article-card > div:first-child,
.article-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
}

@media (max-width: 991px) {
    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .article-card {
        padding: 20px 16px;
    }
}

.article-card:hover {
    border-color: rgba(184, 145, 74, 0.45);
    box-shadow: 0 18px 45px rgba(10, 29, 55, 0.1);
    transform: translateY(-5px);
}

.article-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold2) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover::after {
    transform: scaleX(1);
}

.article-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.article-meta-top .article-meta-year,
.article-meta-top > span:last-child {
    font-size: 0.82rem;
    color: var(--mute);
    white-space: nowrap !important;
    flex-shrink: 0;
    margin-left: auto;
    font-weight: 600;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 10px;
    background: rgba(29, 94, 168, 0.08);
    color: var(--blue);
    font-weight: 700;
    border-radius: 4px;
    border: 1px solid rgba(29, 94, 168, 0.2);
    white-space: nowrap !important;
    flex-shrink: 0;
    line-height: 1.2;
}

.badge.g {
    background: rgba(184, 145, 74, 0.12);
    color: #875e18;
    border-color: rgba(184, 145, 74, 0.3);
    white-space: nowrap !important;
    flex-shrink: 0;
}

.article-card h3 {
    font-family: var(--serif);
    font-size: 1.22rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.32;
    margin-bottom: 12px;
}

.article-card h3 a {
    color: var(--navy);
    transition: color 0.2s ease;
}

.article-card h3 a:hover {
    color: var(--blue);
}

.article-authors {
    font-size: 0.88rem;
    color: #6d7b8f;
    margin-bottom: 14px;
    font-style: italic;
}

.article-excerpt {
    font-size: 0.92rem;
    color: #4a5768;
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1 1 auto;
}

.article-excerpt .katex {
    font-size: 1.05em;
}

.article-excerpt .katex-display {
    margin: 12px 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0;
}

.article-card h3 .katex {
    font-size: 0.9em;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding-top: 16px;
    border-top: 1px solid #ebe6dc;
    font-size: 0.82rem;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
}

.article-footer .article-journal,
.article-footer > span:first-child {
    color: var(--navy);
    font-weight: 500;
    font-size: 0.84rem;
    flex: 1 1 140px;
    min-width: 0;
    line-height: 1.45;
    word-break: break-word;
}

.article-footer .article-actions,
.article-footer > div:last-child {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
    white-space: nowrap !important;
}

.article-footer .article-actions a,
.article-footer > div:last-child a {
    white-space: nowrap !important;
    flex-shrink: 0;
}

.article-read-link {
    font-weight: 600;
    font-size: 0.82rem;
    margin-left: 4px;
    color: var(--blue);
    white-space: nowrap !important;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.article-read-link:hover {
    color: var(--gold);
    transform: translateX(2px);
}

/* Badges d'affiliation des articles (LAMA vs Externe) */
.badge.badge-in-lab {
    background: rgba(184, 145, 74, 0.14);
    color: #8c6a28;
    border: 1px solid rgba(184, 145, 74, 0.35);
    font-size: 0.68rem;
    font-weight: 700;
}

.badge.badge-external {
    background: #edf2f7;
    color: #4a5568;
    border: 1px solid #cbd5e0;
    font-size: 0.68rem;
    font-weight: 700;
}

.author-pubs-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.author-pubs-filter-bar .arch-pill {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #cbd5e0;
    background: #ffffff;
    color: var(--navy);
}

.author-pubs-filter-bar .arch-pill:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.author-pubs-filter-bar .arch-pill.active {
    background: var(--navy);
    color: #ffffff;
    border-color: var(--navy);
}

/* SINGLE ARTICLE VIEW */
.single-article-header {
    background: var(--navy);
    color: #fff;
    padding: 70px 0 60px;
    position: relative;
}

.single-article-header h1 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    line-height: 1.18;
    margin: 16px 0;
    font-weight: 600;
}

.single-article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    color: #b4c2d6;
    font-size: 0.85rem;
}

.article-main-body {
    background: #fff;
    padding: 60px 0;
}

.article-content {
    font-size: 0.98rem;
    line-height: 1.75;
    color: #243040;
}

.article-content h2, .article-content h3 {
    font-family: var(--serif);
    color: var(--navy);
    margin: 36px 0 16px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-meta-box {
    background: var(--ivory);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    padding: 24px 28px;
    margin: 36px 0;
}

.article-meta-box h4 {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 10px;
}

/* ==========================================================================
   MODULE DE CITATION SCIENTIFIQUE & LATEX (BIBTEX)
   ========================================================================== */
.article-citation-box {
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--gold);
    border-radius: 8px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(10, 29, 55, 0.05);
    overflow: hidden;
}

.citation-header {
    background: linear-gradient(135deg, var(--navy) 0%, #0d274c 100%);
    color: #ffffff;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.citation-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.citation-icon {
    font-size: 1.8rem;
    color: var(--gold2);
    line-height: 1;
}

.citation-title {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: #ffffff !important;
    margin: 0;
    line-height: 1.2;
}

.citation-subtitle {
    font-size: 0.78rem;
    color: #a0aec0;
    display: block;
    margin-top: 2px;
}

.citation-nav-tabs {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.28);
    padding: 4px;
    border-radius: 6px;
}

.citation-tab-btn {
    background: transparent;
    border: none;
    color: #cbd5e0;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.citation-tab-btn:hover {
    color: #ffffff;
}

.citation-tab-btn.active {
    background: var(--gold);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.tab-badge-latex {
    background: rgba(255, 255, 255, 0.25);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.citation-panel {
    display: none;
    padding: 20px 24px;
    background: #fcfdfd;
}

.citation-panel.active {
    display: block;
}

.citation-code-wrapper {
    background: #081528;
    border: 1px solid #1a2e4a;
    border-radius: 6px;
    padding: 16px 20px;
    overflow-x: auto;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.citation-code-wrapper pre {
    margin: 0;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #e2e8f0;
}

.citation-code-wrapper code {
    background: transparent !important;
    padding: 0 !important;
    color: inherit;
    font-family: inherit;
}

.citation-text-wrapper {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-left: 3px solid var(--blue);
    border-radius: 4px;
    padding: 14px 18px;
    font-size: 0.94rem;
    line-height: 1.6;
    color: #2d3748;
}

.citation-text-wrapper p {
    margin: 0;
}

.citation-actions-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.citation-copy-btn {
    background: linear-gradient(135deg, var(--navy) 0%, #15335b 100%);
    color: #ffffff !important;
    border: 1px solid var(--navy);
    padding: 9px 18px;
    border-radius: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.22s ease;
}

.citation-copy-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 145, 74, 0.3);
}

.citation-copy-btn.copied {
    background: #047857 !important;
    border-color: #047857 !important;
    color: #ffffff !important;
}

.citation-download-btn {
    background: #ffffff;
    color: var(--navy) !important;
    border: 1px solid #cbd5e1;
    padding: 9px 16px;
    border-radius: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.citation-download-btn:hover {
    background: #f1f5f9;
    border-color: var(--navy);
    color: var(--navy) !important;
}

.citation-copy-status {
    font-size: 0.82rem;
    font-weight: 600;
    color: #047857;
}

.citation-details-table {
    border-top: 1px solid #edf2f7;
    background: #fafbfc;
    padding: 16px 24px;
    display: grid;
    gap: 8px;
    font-size: 0.86rem;
}

.detail-row {
    display: flex;
    gap: 12px;
}

.detail-label {
    min-width: 140px;
    font-weight: 700;
    color: #4a5568;
    flex-shrink: 0;
}

.detail-value {
    color: #1a202c;
    flex: 1;
}

/* MODAL DE CITATION UNIVERSELLE */
.lama-citation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 13, 26, 0.75);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.lama-citation-modal-overlay.open {
    display: flex;
    opacity: 1;
}

.lama-citation-modal-content {
    background: #ffffff;
    border-radius: 10px;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(20px) scale(0.97);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 10;
}

.modal-close-btn:hover {
    opacity: 1;
    color: var(--gold2);
}

.author-bio-card {
    background: #fff;
    border: 1px solid var(--line);
    padding: 30px;
    margin-top: 50px;
    display: flex;
    gap: 24px;
    align-items: center;
}

.author-avatar-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: var(--gold2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 1.8rem;
    flex: none;
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--gold2);
}

/* PORTAL & FORMS (ESPACE CHERCHEUR) */
.lama-portal-auth-card {
    max-width: 580px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--gold);
    border-radius: 8px;
    padding: 38px 34px;
    box-shadow: 0 20px 50px rgba(10, 29, 55, 0.08);
}

.lama-portal-header {
    text-align: center;
    margin-bottom: 24px;
}

.lama-portal-header .lama-mark {
    width: 48px;
    height: 48px;
    background: var(--navy);
    color: var(--gold2);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 1.8rem;
    border-bottom: 2px solid var(--gold);
    border-radius: 4px;
}

.lama-portal-header h2 {
    font-family: var(--serif);
    font-size: 1.85rem;
    color: var(--navy);
    margin-bottom: 6px;
}

.lama-portal-header p {
    font-size: 0.88rem;
    color: var(--mute);
}

/* SWITCHER TABS (CONNEXION / INSCRIPTION) */
.lama-auth-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 26px;
    background: #edf0f4;
    padding: 5px;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .lama-auth-tabs {
        flex-direction: column;
    }
}

.lama-auth-tab {
    flex: 1;
    text-align: center;
    padding: 11px 16px;
    border: 0;
    background: transparent;
    font: 600 0.84rem var(--sans);
    letter-spacing: 0.6px;
    color: var(--mute);
    cursor: pointer;
    border-radius: 6px;
    transition: 0.25s;
}

.lama-auth-tab:hover {
    color: var(--navy);
}

.lama-auth-tab.active {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 4px 12px rgba(10, 29, 55, 0.18);
}

/* AUTH FORMS */
.lama-auth-form {
    display: grid;
    gap: 18px;
}

.lama-auth-form .lama-form-group {
    display: flex;
    flex-direction: column;
}

.lama-auth-form label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    letter-spacing: 0.4px;
}

.lama-auth-form input[type="text"],
.lama-auth-form input[type="email"],
.lama-auth-form input[type="tel"],
.lama-auth-form input[type="password"],
.lama-auth-form input[type="number"],
.lama-auth-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: #fff;
    font: inherit;
    font-size: 0.94rem;
    border-radius: 6px;
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lama-auth-form input:focus,
.lama-auth-form select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 145, 74, 0.15);
}

.lama-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.lama-password-wrapper input {
    padding-right: 44px !important;
}

.lama-toggle-pwd {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 6px 8px;
    opacity: 0.65;
    transition: opacity 0.2s;
}

.lama-toggle-pwd:hover {
    opacity: 1;
}

.lama-form-group-checkbox {
    display: flex;
    align-items: center;
    font-size: 0.88rem;
    color: #435266;
}

.lama-form-group-checkbox input {
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--gold);
}

.lama-forgot-link {
    font-size: 0.82rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
}

.lama-forgot-link:hover {
    text-decoration: underline;
    color: var(--navy);
}

.lama-auth-info-box {
    padding: 14px 16px;
    background: #fff8e6;
    border: 1px solid #f2e2be;
    border-left: 4px solid var(--gold);
    border-radius: 6px;
    font-size: 0.84rem;
    color: #6d5218;
    line-height: 1.55;
    margin: 4px 0;
}

.lama-auth-alert {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 22px;
    font-size: 0.9rem;
    line-height: 1.55;
}

.lama-auth-alert.error {
    background: #fff0f0;
    border: 1px solid #f0c4c4;
    border-left: 4px solid #d9383a;
    color: #9f2d32;
}

.lama-auth-alert.warning {
    background: #fff9ea;
    border: 1px solid #f3e4b7;
    border-left: 4px solid #b8914a;
    color: #7a5c1e;
}

.lama-auth-alert.success {
    background: #edf8f0;
    border: 1px solid #b9e0c2;
    border-left: 4px solid #28a745;
    color: #1e6333;
}

.lama-tabs {
    display: flex;
    border-bottom: 2px solid var(--line);
    margin-bottom: 28px;
    gap: 8px;
}

.lama-tab-btn {
    background: none;
    border: 0;
    padding: 12px 20px;
    font: 600 0.8rem var(--sans);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--mute);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: 0.25s;
}

.lama-tab-btn:hover {
    color: var(--navy);
}

.lama-tab-btn.active {
    color: var(--navy);
    border-bottom-color: var(--gold);
}

.lama-workspace-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    padding: 24px 30px;
    margin-bottom: 26px;
    box-shadow: 0 10px 30px rgba(10, 29, 55, 0.05);
}

.lama-user-badge {
    display: flex;
    align-items: center;
    gap: 18px;
}

.lama-user-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.author-avatar-circle.has-photo,
.lama-user-avatar.has-photo,
.lama-member-avatar.has-photo {
    padding: 0;
    overflow: hidden;
    background: #ffffff;
}

.author-avatar-circle.has-photo img,
.lama-user-avatar.has-photo img,
.lama-member-avatar.has-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.doctoral-inst-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08) !important;
}

.topbar-inst-link:hover {
    opacity: 0.88;
}

.lama-user-meta {
    font-size: 0.88rem;
    color: var(--mute);
    margin-top: 2px;
}

.lama-card {
    background: #fff;
    border: 1px solid var(--line);
    padding: 36px;
    box-shadow: 0 14px 40px rgba(10, 29, 55, 0.05);
}

.lama-card-header {
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
}

.lama-card-header h2 {
    font-family: var(--serif);
    font-size: 1.85rem;
    color: var(--navy);
}

.lama-submission-form {
    display: grid;
    gap: 20px;
}

.lama-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.lama-form-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.lama-submission-form input[type="text"],
.lama-submission-form input[type="email"],
.lama-submission-form input[type="url"],
.lama-submission-form input[type="number"],
.lama-submission-form input[type="file"],
.lama-submission-form select,
.lama-submission-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line);
    background: #fff;
    font: inherit;
    font-size: 0.95rem;
    border-radius: 2px;
    color: var(--ink);
    transition: border-color 0.2s;
}

.lama-submission-form input:focus,
.lama-submission-form select:focus,
.lama-submission-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.lama-submission-form textarea {
    resize: vertical;
    line-height: 1.6;
}

.lama-form-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 14px;
}

.lama-articles-list {
    display: grid;
    gap: 14px;
}

.lama-article-item {
    padding: 18px 22px;
    background: var(--ivory);
    border: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.lama-article-info h4 {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--navy);
    margin: 4px 0;
}

.lama-status-badge {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #278838;
}

.lama-notice {
    padding: 14px 20px;
    border-radius: 3px;
    margin-bottom: 22px;
    font-size: 0.92rem;
}

.lama-notice.success {
    background: #edf8f0;
    border-left: 4px solid #3ca85a;
    color: #1e6333;
}

/* CTA BANNER APPEL À PUBLICATION */
.lama-cta-banner {
    background: radial-gradient(circle at 80% 20%, rgba(217, 184, 119, 0.16) 0%, transparent 50%),
                linear-gradient(165deg, #07172c 0%, #0d284a 55%, #081a33 100%);
    color: #ffffff;
    padding: 68px 0;
    border-top: 3px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.lama-cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d9b877' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.lama-cta-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.lama-cta-banner .eyebrow {
    color: var(--gold2);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lama-cta-banner .eyebrow::before {
    content: "✦";
    color: var(--gold2);
}

.lama-cta-banner h3 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    color: #ffffff;
    font-weight: 600;
    line-height: 1.2;
}

.lama-cta-banner p {
    color: #cbd8e8;
    margin-top: 8px;
    font-size: 1rem;
    max-width: 640px;
    line-height: 1.6;
}

/* FOOTER */
footer.site-footer {
    background: #05101f;
    color: #a0b2c8;
    padding: 60px 0 32px;
    border-top: 1px solid rgba(217, 184, 119, 0.25);
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.fgrid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
    margin-bottom: 44px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1100px) {
    .fgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .fgrid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

.fgrid > div {
    min-width: 0;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}

footer h5 {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
    position: relative;
}

footer h5::after {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    background: var(--gold);
    margin-top: 8px;
    border-radius: 1px;
}

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

footer li {
    font-size: 0.92rem;
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}

footer li:hover {
    transform: translateX(3px);
}

footer a {
    color: #a0b2c8;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--gold2);
}

.copy {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 26px;
    font-size: 0.82rem;
    color: #798b9e;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.copy-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.6;
}

.copy-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.copy-inst-link {
    color: #cbd5e1 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.copy-inst-link:hover {
    color: var(--gold2) !important;
}

.copy-social-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.copy-social-txt {
    font-size: 0.78rem;
    color: #94a3b8;
}

.copy-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1 !important;
    text-decoration: none;
    transition: all 0.22s ease;
}

.copy-social-icon.icon-facebook:hover {
    background: #1877f2;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.4);
}

.copy-social-icon.icon-linkedin:hover {
    background: #0a66c2;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(10, 102, 194, 0.4);
}

.copy-sys-txt {
    font-size: 0.78rem;
    color: #64748b;
}

/* FOOTER INLINE AFFILIATION TAGS */
.footer-affil-inline {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.footer-affil-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gold2);
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-affil-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-affil-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #cbd5e1 !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.footer-affil-tag:hover {
    color: #ffffff !important;
    background: rgba(217, 184, 119, 0.18);
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* FOOTER SOCIAL BOX (FACEBOOK & LINKEDIN) */
.footer-social-box {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.footer-social-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.footer-social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.footer-social-btn .social-svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.footer-social-btn:hover .social-svg {
    transform: scale(1.12);
}

.footer-social-btn.btn-facebook {
    background: rgba(24, 119, 242, 0.16);
    color: #93c5fd !important;
    border: 1px solid rgba(24, 119, 242, 0.45);
}

.footer-social-btn.btn-facebook:hover {
    background: #1877f2;
    color: #ffffff !important;
    border-color: #1877f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.45);
}

.footer-social-btn.btn-linkedin {
    background: rgba(10, 102, 194, 0.16);
    color: #93c5fd !important;
    border: 1px solid rgba(10, 102, 194, 0.45);
}

.footer-social-btn.btn-linkedin:hover {
    background: #0a66c2;
    color: #ffffff !important;
    border-color: #0a66c2;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(10, 102, 194, 0.45);
}

/* FOOTER INSTITUTIONAL AFFILIATIONS SECTION (UIZ, FSA, CEDOC) */
.footer-institutions-section {
    margin: 36px 0 32px;
    padding: 30px 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0%, rgba(10, 29, 55, 0.45) 100%);
    border: 1px solid rgba(217, 184, 119, 0.22);
    border-radius: 14px;
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

.footer-inst-header {
    margin-bottom: 24px;
    text-align: center;
}

.footer-inst-badge-wrap {
    margin-bottom: 8px;
}

.footer-inst-badge {
    display: inline-block;
    padding: 3px 12px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--gold2);
    background: rgba(217, 184, 119, 0.12);
    border: 1px solid rgba(217, 184, 119, 0.3);
    border-radius: 999px;
}

.footer-inst-heading {
    font-family: var(--serif);
    font-size: 1.28rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: 0.2px;
}

.footer-inst-sub {
    font-size: 0.84rem;
    color: #94a3b8;
    margin: 0 auto;
    max-width: 720px;
    line-height: 1.5;
}

.footer-institutions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    box-sizing: border-box;
    width: 100%;
}

.footer-inst-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(8, 22, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    min-width: 0;
    box-sizing: border-box;
}

.footer-inst-card:hover {
    transform: translateY(-3px);
    background: rgba(14, 34, 62, 0.9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.inst-card-uiz:hover {
    border-color: rgba(217, 184, 119, 0.6);
}

.inst-card-fsa:hover {
    border-color: rgba(56, 189, 248, 0.6);
}

.inst-card-ced:hover {
    border-color: rgba(52, 211, 153, 0.6);
}

.inst-card-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.inst-card-uiz .inst-card-icon {
    background: rgba(217, 184, 119, 0.15);
    color: var(--gold2);
    border: 1px solid rgba(217, 184, 119, 0.3);
}

.inst-card-fsa .inst-card-icon {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.inst-card-ced .inst-card-icon {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.footer-inst-card:hover .inst-card-icon {
    transform: scale(1.08);
}

.inst-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.inst-card-role {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
}

.inst-card-name {
    font-size: 0.96rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    word-break: break-word;
}

.inst-card-link {
    font-size: 0.76rem;
    color: #7dd3fc;
    margin-top: 3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.inst-arrow {
    transition: transform 0.2s ease;
}

.footer-inst-card:hover .inst-arrow {
    transform: translateX(4px);
}

@media (max-width: 960px) {
    .footer-institutions-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .footer-institutions-section {
        padding: 22px 18px;
    }
}

@media (max-width: 600px) {
    .copy {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .copy-right {
        width: 100%;
        justify-content: space-between;
    }
    .footer-inst-card {
        padding: 14px 16px;
    }
}


@media (max-width: 900px) {
    .hero .wrap, .fgrid, .lama-form-grid {
        grid-template-columns: 1fr;
    }
    .topbar .l {
        display: none;
    }
    .topbar .r {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    nav.main-nav:not(.is-open) {
        display: none;
    }
}

/* DOCTORAL RELATIONSHIP STYLES */
.lama-doctoral-reg-box,
#doctorant_reg_fields {
    transition: all 0.3s ease;
}

.author-encadrant-box,
.author-doctorants-box {
    box-shadow: 0 2px 6px rgba(10, 29, 55, 0.04);
}

.author-encadrant-box a:hover {
    color: var(--gold) !important;
}

.author-doctorants-box a.badge:hover {
    border-color: var(--blue) !important;
    background: #eaf1fb !important;
}

.lama-supervised-box {
    box-shadow: 0 4px 15px rgba(10, 29, 55, 0.04);
}

/* =========================================
   ACTUALITÉS (NEWS) & ÉVÉNEMENTS (EVENTS)
   ========================================= */

/* ACTUALITÉS (NEWS) */
.newsgrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.nw {
    background: #ffffff;
    border: 1px solid #e7e2d6;
    border-top: 4px solid var(--gold);
    border-radius: 8px;
    padding: 30px 26px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 18px rgba(10, 29, 55, 0.04);
    position: relative;
    min-width: 0;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 991px) {
    .newsgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .newsgrid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .nw {
        padding: 22px 18px;
    }
}

.nw:hover {
    border-color: rgba(184, 145, 74, 0.5);
    box-shadow: 0 18px 42px rgba(10, 29, 55, 0.1);
    transform: translateY(-5px);
}

.nw .cat {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    font: 700 0.68rem var(--sans);
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #875e18;
    background: rgba(184, 145, 74, 0.12);
    border: 1px solid rgba(184, 145, 74, 0.3);
    border-radius: 20px;
    padding: 3px 11px;
    margin-bottom: 8px;
}

.nw .dt {
    font-size: 0.8rem;
    color: #6d7b8f;
    margin: 2px 0 10px;
    font-weight: 500;
}

.nw h4 {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.28;
}

.nw h4 a {
    color: var(--navy);
    transition: color 0.2s ease;
}

.nw h4 a:hover {
    color: var(--blue);
}

.nw p {
    font-size: 0.93rem;
    color: #4b5868;
    margin-top: 10px;
    line-height: 1.65;
}

/* ÉVÉNEMENTS (EVENTS) */
.evfeat {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(10, 29, 55, 0.08);
    margin-bottom: 34px;
    border: 1px solid #e7e2d6;
    border-top: 4px solid var(--gold);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.35s ease;
}

.evfeat:hover {
    box-shadow: 0 24px 60px rgba(10, 29, 55, 0.12);
}

.evfeat .ph {
    min-height: 380px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.evfeat .tx {
    padding: 44px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.evfeat h3 {
    font-family: var(--serif);
    font-size: 2.15rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.2;
    margin: 10px 0 12px;
}

.evfeat h3 a {
    color: var(--navy);
    transition: color 0.2s ease;
}

.evfeat h3 a:hover {
    color: var(--blue);
}

.evfeat p {
    color: #4b5868;
    line-height: 1.7;
    font-size: 0.98rem;
}

.ph {
    background-size: cover;
    background-position: center;
    background-color: var(--navy2);
    position: relative;
    overflow: hidden;
}

.ph.empty {
    background-image: linear-gradient(135deg, #07172c, #1d5ea8);
}

.ph.empty::before {
    content: "🏛  Séminaire & Colloque LAMA";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(217, 184, 119, 0.9);
    font: 600 0.78rem var(--sans);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.evgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 26px;
    width: 100%;
    box-sizing: border-box;
}

.evc {
    background: #ffffff;
    border: 1px solid #e7e2d6;
    border-top: 3px solid var(--gold);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 18px rgba(10, 29, 55, 0.04);
    min-width: 0;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}

.evc:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(10, 29, 55, 0.12);
    border-color: rgba(184, 145, 74, 0.5);
}

.evc .ph {
    height: 200px;
    transition: transform 0.4s ease;
}

.evc:hover .ph {
    transform: scale(1.03);
}

.evc .tx {
    padding: 24px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.evc h4 {
    font-family: var(--serif);
    font-size: 1.38rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.28;
    margin: 8px 0;
}

.evc h4 a {
    color: var(--navy);
    transition: color 0.2s ease;
}

.evc h4 a:hover {
    color: var(--blue);
}

.evc .dt {
    font-size: 0.82rem;
    color: #6d7b8f;
    margin-bottom: 6px;
    font-weight: 500;
}

.evc p {
    font-size: 0.92rem;
    color: #4b5868;
    margin-top: 8px;
    line-height: 1.65;
}

/* REJOINDRE */
.join {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
    width: 100%;
    box-sizing: border-box;
}

.jc {
    background: #ffffff;
    border: 1px solid #e7e2d6;
    border-left: 4px solid var(--gold);
    border-radius: 6px;
    padding: 30px 26px;
    box-shadow: 0 4px 18px rgba(10, 29, 55, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    min-width: 0;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 991px) {
    .join {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    .join .jc:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .join {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .join .jc:last-child {
        grid-column: span 1;
    }
    .jc {
        padding: 22px 18px;
    }
}

.jc:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 38px rgba(10, 29, 55, 0.09);
    border-left-color: var(--blue);
}

.jc h3 {
    font-family: var(--serif);
    font-size: 1.48rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 10px;
}

.jc p {
    font-size: 0.94rem;
    color: #4b5868;
    line-height: 1.68;
}

/* CONTACT */
.contact-section {
    padding: 55px 0;
    background: linear-gradient(180deg, #fbfaf8 0%, #f6f3eb 100%);
    border-top: 1px solid #eae5db;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 48px;
    width: 100%;
    box-sizing: border-box;
}

.contact-info p {
    margin-bottom: 22px;
    color: #4b5868;
    font-size: 0.98rem;
    line-height: 1.65;
}

.contact-info b {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
    font-weight: 700;
}

.contact-map {
    margin-top: 18px;
    height: 180px;
    background: linear-gradient(135deg, #eef3fa 0%, #e2ebf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 0.9rem;
    border: 1px solid #d5dfec;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: inset 0 2px 6px rgba(10, 29, 55, 0.04);
}

/* NOUVEAU COMPOSANT : CARTE INTERACTIVE GOOGLE MAPS */
.contact-map-card {
    margin-top: 22px;
    background: #ffffff;
    border: 1px solid #d9e3f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(10, 29, 55, 0.06);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-map-card:hover {
    box-shadow: 0 8px 26px rgba(10, 29, 55, 0.1);
    border-color: #cbd5e1;
}

.contact-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e8eef6;
    flex-wrap: wrap;
}

.contact-map-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-map-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.contact-map-venue {
    display: block;
    font-size: 0.92rem;
    color: var(--navy, #0a1d37);
    line-height: 1.25;
}

.contact-map-sub {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
}

.contact-map-gps {
    font-size: 0.75rem;
    font-family: monospace;
    color: #7a5c1e;
    background: #fff8e6;
    border: 1px solid #fae6be;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.contact-map-frame-wrap {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.contact-map-frame-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.contact-map-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    background: #ffffff;
    border-top: 1px solid #e8eef6;
    flex-wrap: wrap;
}

.contact-map-address-hint {
    font-size: 0.8rem;
    color: #475569;
    font-weight: 500;
}

.contact-map-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-map-link {
    font-size: 0.76rem !important;
    padding: 6px 12px !important;
    border-color: #cbd5e1 !important;
    color: var(--navy, #0a1d37) !important;
    text-decoration: none !important;
    background: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: all 0.2s ease !important;
}

.btn-map-link:hover {
    border-color: var(--gold, #b8914a) !important;
    color: var(--gold, #b8914a) !important;
}

.btn-map-dir {
    font-size: 0.76rem !important;
    padding: 6px 14px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-weight: 600 !important;
}

@media (max-width: 600px) {
    .contact-map-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .contact-map-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .contact-map-buttons {
        width: 100%;
    }
    .contact-map-buttons a {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #dcd6c8;
    background: #ffffff;
    font: inherit;
    font-size: 0.95rem;
    border-radius: 6px;
    color: var(--ink);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 145, 74, 0.18);
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

@media (max-width: 900px) {
    .evfeat {
        grid-template-columns: 1fr;
    }
    .evfeat .ph {
        min-height: 240px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ANNUAIRE DES MEMBRES PAR ÉQUIPE (AVEC ONGLETS, ORCID, RESEARCHGATE, SCOPUS)
   ========================================================================== */

.lama-team-tabs-wrapper {
    margin-top: 35px;
}

/* BARRE D'ONGLETS DES ÉQUIPES */
.lama-team-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 16px;
    margin-bottom: 30px;
}

.lama-team-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #e4eaf5;
    padding: 10px 18px;
    font-family: var(--sans);
    font-size: 0.86rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lama-team-tab-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    transform: translateY(-2px);
}

.lama-team-tab-btn.active {
    background: var(--gold);
    color: #ffffff;
    border-color: var(--gold2);
    box-shadow: 0 4px 14px rgba(184, 145, 74, 0.35);
    font-weight: 600;
}

.lama-team-tab-btn .tab-count {
    display: inline-block;
    padding: 2px 7px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
}

.lama-team-tab-btn.active .tab-count {
    background: #ffffff;
    color: var(--navy);
}

/* BANNIÈRE DE PRÉSENTATION DE L'ÉQUIPE SÉLECTIONNÉE */
.lama-team-spotlight {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 4px solid var(--gold2);
    padding: 22px 28px;
    border-radius: 4px;
    margin-bottom: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.lama-team-spotlight .spotlight-info h3 {
    font-family: var(--serif);
    font-size: 1.45rem;
    color: #ffffff;
    margin-bottom: 6px;
}

.lama-team-spotlight .spotlight-info p {
    color: #cbd7e8;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
    max-width: 800px;
}

.lama-team-spotlight .spotlight-sigle-badge {
    font-family: var(--serif);
    font-size: 2.5rem;
    font-style: italic;
    color: var(--gold2);
    opacity: 0.85;
    flex: none;
}

/* GRILLE DES CARTES DE CHERCHEURS */
.lama-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

/* CARTE CHERCHEUR */
.lama-member-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: 6px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(10, 29, 55, 0.06);
    transition: all 0.3s ease;
    position: relative;
    min-width: 0;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}

.lama-member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(10, 29, 55, 0.12);
    border-top-color: var(--blue);
}

.lama-member-card-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.lama-member-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy2), var(--navy));
    color: var(--gold2);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 600;
    flex: none;
    box-shadow: 0 4px 10px rgba(10, 29, 55, 0.15);
}

.lama-member-main-info {
    flex: 1;
    min-width: 0;
}

.lama-member-meta-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.lama-member-meta-badges .badge.team-tag {
    background: var(--navy);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 2px;
}

.lama-member-meta-badges .badge.grade-tag {
    background: #eef3fa;
    color: var(--blue);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 2px;
}

.lama-member-name {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.25;
    margin: 0 0 4px;
}

.lama-member-name a {
    color: var(--navy);
    text-decoration: none;
}

.lama-member-name a:hover {
    color: var(--blue);
}

.lama-member-field {
    font-size: 0.80rem;
    color: #4b5a6d;
    line-height: 1.45;
    margin-top: 6px;
    background: #fafaf8;
    padding: 6px 10px;
    border-radius: 4px;
    border-left: 2px solid var(--gold2);
}

/* CADRE SPÉCIFIQUE POUR LES DOCTORANTS */
.lama-member-thesis-box {
    background: #fffcf4;
    border: 1px solid #fae6be;
    border-left: 3px solid var(--gold);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.84rem;
    margin: 12px 0;
}

.lama-member-thesis-box .thesis-row {
    color: #7a5c1e;
    margin-bottom: 4px;
}

.lama-member-thesis-box .thesis-row a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
}

.lama-member-thesis-box .thesis-topic {
    color: #3b4757;
    font-size: 0.82rem;
    line-height: 1.4;
    margin: 4px 0;
}

.lama-member-thesis-box .thesis-meta {
    font-size: 0.76rem;
    font-weight: 600;
    color: #875d14;
    margin-top: 4px;
}

/* IDENTIFIANTS SCIENTIFIQUES (ORCID, RESEARCHGATE, SCOPUS) */
.lama-member-sc-ids {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin: 14px 0 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.sc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sc-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.sc-badge.orcid {
    background: #a6ce39;
    color: #ffffff;
}

.sc-badge.orcid:hover {
    background: #95ba31;
    color: #ffffff;
}

.sc-badge.rg {
    background: #00ccbb;
    color: #ffffff;
}

.sc-badge.rg:hover {
    background: #00b3a4;
    color: #ffffff;
}

.sc-badge.scopus {
    background: #ff7700;
    color: #ffffff;
}

.sc-badge.scopus:hover {
    background: #e66b00;
    color: #ffffff;
}

.sc-badge.scholar {
    background: #4285f4;
    color: #ffffff;
}

.sc-badge.email {
    background: #eef3fa;
    color: var(--navy);
    border: 1px solid var(--line);
}

.sc-badge.email:hover {
    background: #e2ecf9;
}

/* PIED DE CARTE & ARTICLES */
.lama-member-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    margin-top: auto;
    font-size: 0.85rem;
}

.articles-summary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.articles-count {
    color: var(--navy);
    font-weight: 500;
}

.btn-toggle-articles {
    background: none;
    border: none;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background 0.2s;
}

.btn-toggle-articles:hover {
    background: #eef3fa;
    text-decoration: underline;
}

.btn-author-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    transition: color 0.2s;
}

.btn-author-link:hover {
    color: var(--navy);
    text-decoration: underline;
}

/* ACCORDÉON / DROPDOWN DES ARTICLES DU MEMBRE */
.lama-member-articles-dropdown {
    margin-top: 14px;
    padding: 14px 16px;
    background: #f8f9fb;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 0.82rem;
}

.lama-member-articles-dropdown h5 {
    font-family: var(--sans);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--mute);
    margin-bottom: 8px;
}

.lama-member-articles-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lama-member-articles-dropdown li {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.lama-member-articles-dropdown li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.lama-member-articles-dropdown .art-title {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    display: block;
    line-height: 1.35;
    margin-bottom: 2px;
}

.lama-member-articles-dropdown .art-title:hover {
    color: var(--blue);
    text-decoration: underline;
}

.lama-member-articles-dropdown .art-meta {
    color: var(--mute);
    font-size: 0.76rem;
}

.lama-member-articles-dropdown .art-doi {
    display: inline-block;
    padding: 1px 5px;
    background: #eef3fa;
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 2px;
    text-decoration: none;
}

@media (max-width: 768px) {
    .lama-team-nav {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 12px;
    }
    .lama-members-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SÉLECTEUR DE LANGUE BILINGUE (FRANÇAIS / ANGLAIS)
   ========================================================================== */

.lama-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1;
    vertical-align: middle;
}

.lama-lang-switcher.topbar {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.lama-lang-switcher .lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.75);
}

.lama-lang-switcher .lang-pill:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.lama-lang-switcher .lang-pill.active {
    background: var(--gold);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.lama-lang-switcher .lang-pill .flag {
    font-size: 0.85rem;
    line-height: 1;
}

.lama-lang-switcher .lang-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.7rem;
}

/* Switcher dans la barre de navigation principale */
.lama-lang-switcher.header,
.lama-lang-switcher.nav {
    background: #eef3fa;
    border: 1px solid rgba(10, 29, 55, 0.12);
    box-shadow: 0 1px 3px rgba(10, 29, 55, 0.05);
    padding: 3px 4px;
    gap: 2px;
}

.lama-lang-switcher.header .lang-pill,
.lama-lang-switcher.nav .lang-pill {
    color: var(--navy);
    padding: 5px 10px;
    font-size: 0.74rem;
    font-weight: 600;
    opacity: 0.72;
    border-radius: 12px;
    line-height: 1;
}

.lama-lang-switcher.header .lang-pill:hover,
.lama-lang-switcher.nav .lang-pill:hover {
    color: var(--navy);
    background: rgba(10, 29, 55, 0.06);
    opacity: 1;
}

.lama-lang-switcher.header .lang-pill.active,
.lama-lang-switcher.nav .lang-pill.active {
    background: var(--navy);
    color: var(--gold2);
    box-shadow: 0 2px 6px rgba(10, 29, 55, 0.22);
    opacity: 1;
    font-weight: 700;
}

.lama-lang-switcher.header .lang-pill .flag,
.lama-lang-switcher.nav .lang-pill .flag {
    font-size: 0.85rem;
    line-height: 1;
}

.lama-lang-switcher.header .lang-sep,
.lama-lang-switcher.nav .lang-sep {
    color: rgba(10, 29, 55, 0.2);
    font-size: 0.68rem;
    padding: 0 1px;
}

/* Header Actions & Responsive */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.desktop-portal-btn {
    padding: 8px 16px !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.8px !important;
    white-space: nowrap;
}

@media (max-width: 1240px) {
    .header-actions .desktop-portal-btn {
        display: none !important;
    }
    .mobile-nav-portal {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .lama-lang-switcher.header {
        padding: 2px 3px;
    }
    .lama-lang-switcher.header .lang-pill {
        padding: 4px 6px;
        font-size: 0.7rem;
        gap: 3px;
    }
    .header-actions {
        gap: 8px;
    }
}

/* ==========================================================================
   MODULE ARCHIVES SCIENTIFIQUES & PATRIMOINE DE RECHERCHE
   ========================================================================== */
.lama-archive-section {
    padding: 60px 0 55px;
    background: radial-gradient(circle at 12% 15%, rgba(29, 94, 168, 0.4) 0%, transparent 55%),
                radial-gradient(circle at 88% 85%, rgba(217, 184, 119, 0.18) 0%, transparent 50%),
                linear-gradient(172deg, #07172c 0%, #0d284a 50%, #081a33 100%);
    color: #ffffff;
    border-top: 1px solid rgba(217, 184, 119, 0.2);
    position: relative;
}

.lama-archive-explorer-wrapper {
    margin-top: 30px;
}

/* Stats Bar */
.lama-archive-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    gap: 16px;
    margin-bottom: 28px;
    width: 100%;
    box-sizing: border-box;
}

.lama-archive-stats-bar .stat-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(217, 184, 119, 0.2);
    border-top: 3px solid var(--gold2);
    padding: 20px 22px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 0;
    box-sizing: border-box;
}

.lama-archive-stats-bar .stat-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold2);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.lama-archive-stats-bar .stat-num {
    font-family: var(--serif);
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--gold2);
    line-height: 1;
}

.lama-archive-stats-bar .stat-lbl {
    font-size: 0.82rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Toolbar & Filters */
.lama-archive-toolbar {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 22px 24px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lama-archive-search-box {
    position: relative;
    width: 100%;
}

.lama-archive-search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #a0aec0;
    pointer-events: none;
}

.lama-archive-search-box input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 12px 42px 12px 42px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: var(--sans);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.lama-archive-search-box input:focus {
    border-color: var(--gold);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(184, 145, 74, 0.2);
}

.lama-archive-search-box input::placeholder {
    color: #718096;
}

.lama-archive-search-box .btn-clear-search {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
}

.lama-archive-search-box .btn-clear-search:hover {
    color: #ffffff;
}

.lama-archive-filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.lama-archive-filter-group .filter-group-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-width: 65px;
}

.lama-archive-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lama-archive-pills .arch-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sans);
}

.lama-archive-pills .arch-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.lama-archive-pills .arch-pill.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(184, 145, 74, 0.35);
}

.lama-archive-pills .arch-pill .pill-count {
    background: rgba(0, 0, 0, 0.2);
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.9;
}

.lama-archive-pills .arch-pill.active .pill-count {
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

/* Specific team pills border highlights */
.lama-archive-pills .arch-pill.team-etc.active { background: #b8914a; border-color: #b8914a; }
.lama-archive-pills .arch-pill.team-eaf.active { background: #1d5ea8; border-color: #1d5ea8; }
.lama-archive-pills .arch-pill.team-eap.active { background: #0d7d74; border-color: #0d7d74; }
.lama-archive-pills .arch-pill.team-erema.active { background: #914ab8; border-color: #914ab8; }

/* Barre de tri & modes de vue */
.lama-archive-sort-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.lama-archive-sort-group .sort-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lama-archive-sort-group .sort-selector-wrapper label {
    color: var(--gold2);
    font-weight: 600;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lama-archive-sort-group select#lama-archive-sort-select {
    background: #091c33;
    color: #ffffff;
    border: 1px solid var(--gold);
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 0.86rem;
    font-family: var(--sans);
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.lama-archive-sort-group select#lama-archive-sort-select:hover,
.lama-archive-sort-group select#lama-archive-sort-select:focus {
    border-color: var(--gold2);
    box-shadow: 0 0 10px rgba(217, 184, 119, 0.3);
}

.lama-archive-view-modes {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lama-archive-view-modes .view-modes-label {
    color: #cbd7e8;
    font-size: 0.82rem;
    margin-right: 2px;
}

.arch-view-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd7e8;
    padding: 6px 13px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sans);
}

.arch-view-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.arch-view-btn.active {
    background: var(--gold);
    color: #ffffff;
    border-color: var(--gold);
    box-shadow: 0 2px 8px rgba(184, 145, 74, 0.35);
}

/* Bandeaux de groupement d'archives (Année & Catégorie) */
.lama-archive-group-header {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    margin: 25px 0 6px;
    background: linear-gradient(90deg, rgba(29, 94, 168, 0.3) 0%, rgba(6, 21, 39, 0.5) 100%);
    border-left: 4px solid var(--gold2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lama-archive-group-header .group-title {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.lama-archive-group-header.cat-group.these {
    border-left-color: #3b82f6;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.25) 0%, rgba(6, 21, 39, 0.5) 100%);
}

.lama-archive-group-header.cat-group.habilitation {
    border-left-color: #eab308;
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.22) 0%, rgba(6, 21, 39, 0.5) 100%);
}

.lama-archive-group-header.cat-group.evenement {
    border-left-color: #10b981;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.22) 0%, rgba(6, 21, 39, 0.5) 100%);
}

/* Status counter */
.lama-archive-status {
    font-size: 0.88rem;
    color: #a0aec0;
    margin-bottom: 16px;
    padding: 0 4px;
}

.lama-archive-status strong {
    color: var(--gold2);
}

/* Grille des cartes d'archives (Homogène avec la grille des articles) */
.lama-archive-items-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.arch-card {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

@media (max-width: 991px) {
    .lama-archive-items-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .lama-archive-items-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .arch-card {
        padding: 20px 16px;
    }
}

.arch-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(217, 184, 119, 0.45);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    transform: translateY(-5px);
}

.arch-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold2) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.arch-card:hover::after {
    transform: scaleX(1);
}

.arch-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.arch-card-year {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold2);
    line-height: 1;
}

.arch-badge-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.arch-badge-cat.these {
    background: rgba(184, 145, 74, 0.22);
    color: #f5d78e;
    border: 1px solid rgba(217, 184, 119, 0.45);
}

.arch-badge-cat.habilitation {
    background: rgba(29, 94, 168, 0.28);
    color: #90cdf4;
    border: 1px solid rgba(66, 153, 225, 0.5);
}

.arch-badge-cat.evenement {
    background: rgba(13, 125, 116, 0.28);
    color: #62d8cc;
    border: 1px solid rgba(13, 125, 116, 0.5);
}

.arch-card-title {
    font-family: var(--serif);
    font-size: 1.24rem;
    line-height: 1.35;
    margin: 0 0 14px;
    font-weight: 600;
}

.arch-card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.arch-card-title a:hover {
    color: var(--gold2);
}

.arch-card-meta-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.86rem;
    color: #cbd5e0;
}

.arch-card-meta-list .meta-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1.4;
}

.arch-card-meta-list .meta-item .icon {
    font-size: 0.88rem;
    flex-shrink: 0;
}

.arch-card-meta-list .meta-item .lbl {
    color: var(--gold2);
    font-weight: 600;
    white-space: nowrap;
}

.arch-card-meta-list .meta-item .val {
    color: #e2e8f0;
}

.arch-card-excerpt {
    font-size: 0.86rem;
    color: #94a3b8;
    line-height: 1.55;
    margin-bottom: 18px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.arch-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
    margin-top: auto;
}

.arch-card-tag {
    font-size: 0.74rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.btn-arch-read {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold2);
    text-decoration: none;
    transition: transform 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-arch-read:hover {
    color: #ffffff;
    transform: translateX(3px);
}

/* Ancienne liste en lignes (pour compatibilité) */
.lama-archive-items-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lama-archive-row {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--gold);
    border-radius: 6px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 22px;
    transition: all 0.25s ease;
}

.lama-archive-row:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
    border-left-color: var(--gold2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.row-meta-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 68px;
    flex-shrink: 0;
}

.arch-badge-year {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold2);
    line-height: 1;
}

.arch-badge-team {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.arch-badge-team.team-etc { background: rgba(184, 145, 74, 0.2); color: #e2ba6f; border: 1px solid rgba(184, 145, 74, 0.4); }
.arch-badge-team.team-eaf { background: rgba(29, 94, 168, 0.25); color: #8bbaf3; border: 1px solid rgba(29, 94, 168, 0.45); }
.arch-badge-team.team-eap { background: rgba(13, 125, 116, 0.25); color: #62d8cc; border: 1px solid rgba(13, 125, 116, 0.45); }
.arch-badge-team.team-erema { background: rgba(145, 74, 184, 0.25); color: #d79bf5; border: 1px solid rgba(145, 74, 184, 0.45); }

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

.arch-item-title {
    font-family: var(--serif);
    font-size: 1.22rem;
    line-height: 1.35;
    margin: 0 0 6px;
}

.arch-item-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.arch-item-title a:hover {
    color: var(--gold2);
}

.arch-item-authors {
    font-size: 0.88rem;
    color: #cbd5e0;
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.arch-item-authors .icon {
    font-size: 0.8rem;
    opacity: 0.8;
}

.arch-item-journal {
    font-size: 0.84rem;
    color: #a0aec0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.arch-item-journal em {
    color: #e2e8f0;
}

.arch-item-journal .badge-index {
    background: rgba(255, 255, 255, 0.08);
    color: #a0aec0;
    font-size: 0.68rem;
    padding: 1px 6px;
    border-radius: 3px;
    font-style: normal;
}

.arch-item-excerpt {
    font-size: 0.86rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 6px;
}

.row-actions-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.row-actions-right .badge {
    font-size: 0.74rem;
    padding: 4px 10px;
}

.btn-copy-citation {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e0;
    font-size: 0.74rem;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-family: var(--sans);
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-copy-citation:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-copy-citation.copied {
    background: #1b5e20;
    color: #ffffff;
    border-color: #2e7d32;
}

.btn-read-link {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--gold2);
    text-decoration: none;
    transition: transform 0.2s;
}

.btn-read-link:hover {
    transform: translateX(3px);
    text-decoration: underline;
}

/* Empty State */
.lama-archive-empty-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    color: #ffffff;
}

.lama-archive-empty-box h4 {
    font-family: var(--serif);
    font-size: 1.4rem;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 820px) {
    .lama-archive-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .row-meta-left {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .row-actions-right {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 10px;
    }
}

/* ==========================================================================
   MODULE ASSISTANT VIRTUEL INTELLIGENT (LAMA AI ASSISTANT)
   ========================================================================== */
.lama-ai-app-container {
    font-family: var(--sans);
    line-height: 1.5;
}

/* Bouton Déclencheur Flottant */
.lama-ai-launcher-btn {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 99999;
    background: linear-gradient(135deg, var(--navy), #061527);
    border: 2px solid var(--gold);
    border-radius: 50px;
    padding: 12px 22px;
    cursor: pointer;
    box-shadow: 0 10px 32px rgba(10, 29, 55, 0.5), 0 0 15px rgba(184, 145, 74, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    outline: none;
}

.lama-ai-launcher-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 40px rgba(10, 29, 55, 0.6), 0 0 25px rgba(184, 145, 74, 0.5);
    border-color: var(--gold2);
}

.lama-ai-launcher-btn .launcher-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.lama-ai-launcher-btn .launcher-icon {
    font-size: 1.25rem;
    filter: drop-shadow(0 0 6px rgba(184, 145, 74, 0.8));
    animation: aiSparkle 3s ease-in-out infinite;
}

.lama-ai-launcher-btn .launcher-text {
    background: linear-gradient(90deg, #ffffff, var(--gold2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lama-ai-launcher-btn.open {
    border-color: #63b3ed;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

@keyframes aiSparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(10deg); }
}

/* Boîte Modale de Chat */
.lama-ai-modal-box {
    position: fixed;
    bottom: 92px;
    right: 26px;
    width: 440px;
    max-width: calc(100vw - 36px);
    height: 600px;
    max-height: calc(100vh - 120px);
    z-index: 99999;
    background: #061527;
    background-image: radial-gradient(circle at 10% 10%, rgba(184, 145, 74, 0.08) 0%, transparent 40%),
                      radial-gradient(circle at 90% 90%, rgba(29, 94, 168, 0.1) 0%, transparent 50%);
    border: 1px solid rgba(184, 145, 74, 0.35);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 1px rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: aiSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes aiSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* En-tête */
.lama-ai-header {
    background: #0a1d37;
    border-bottom: 2px solid var(--gold);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lama-ai-header .header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lama-ai-header .ai-avatar-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #061527, #1d5ea8);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lama-ai-header .ai-title {
    font-family: var(--serif);
    font-size: 1.18rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.lama-ai-header .ai-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: #cbd5e0;
    margin-top: 2px;
}

.lama-ai-header .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #48bb78;
    box-shadow: 0 0 8px #48bb78;
    animation: aiPulse 2s infinite;
}

@keyframes aiPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.lama-ai-header .header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lama-ai-header .btn-ai-header {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.lama-ai-header .btn-ai-header:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.lama-ai-header .btn-close-ai {
    font-size: 1.4rem;
    line-height: 1;
}

/* Corps des Messages */
.lama-ai-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

.lama-ai-body::-webkit-scrollbar {
    width: 6px;
}
.lama-ai-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.lama-ai-body::-webkit-scrollbar-thumb {
    background: rgba(184, 145, 74, 0.35);
    border-radius: 4px;
}
.lama-ai-body::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

.ai-message {
    display: flex;
    gap: 12px;
    max-width: 90%;
    animation: aiMsgFadeIn 0.2s ease-out;
}

@keyframes aiMsgFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-message.ai-bot {
    align-self: flex-start;
}

.ai-message.ai-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-msg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a1d37, #1d5ea8);
    border: 1px solid var(--gold);
    color: var(--gold2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ai-msg-bubble {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 3px solid var(--gold);
    border-radius: 10px;
    padding: 14px 16px;
    color: #e2e8f0;
    font-size: 0.92rem;
    line-height: 1.6;
    word-break: break-word;
}

.ai-message.ai-user .ai-msg-bubble {
    background: linear-gradient(135deg, #1d5ea8, #0a1d37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-left: none;
    border-right: 3px solid var(--gold2);
    color: #ffffff;
}

.ai-msg-bubble p {
    margin: 0 0 8px;
}
.ai-msg-bubble p:last-child {
    margin-bottom: 0;
}

.ai-msg-bubble strong {
    color: #ffffff;
    font-weight: 600;
}

.ai-msg-bubble a {
    color: var(--gold2);
    text-decoration: underline;
    font-weight: 500;
}

.ai-msg-bubble a:hover {
    color: #ffffff;
}

.welcome-heading {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Suggestions Rapides (Chips) */
.ai-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.ai-chip {
    background: rgba(184, 145, 74, 0.12);
    border: 1px solid rgba(184, 145, 74, 0.35);
    color: #e2ba6f;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--sans);
    text-align: left;
}

.ai-chip:hover {
    background: var(--gold);
    color: #ffffff;
    border-color: var(--gold);
    transform: translateY(-1px);
}

/* Indicateur de Frappe (Typing dots) */
.ai-typing-indicator .typing-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 4px;
}

.ai-typing-indicator .typing-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    animation: aiBounce 1.4s infinite ease-in-out both;
}

.ai-typing-indicator .typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-indicator .typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes aiBounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Zone de Saisie Footer */
.lama-ai-footer {
    background: #081a30;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 18px 10px;
}

.ai-input-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 6px 10px 6px 12px;
    transition: border-color 0.2s;
}

.ai-input-row:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(184, 145, 74, 0.2);
}

.ai-input-row textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.92rem;
    font-family: var(--sans);
    resize: none;
    outline: none;
    max-height: 120px;
    line-height: 1.4;
    padding: 4px 0;
}

.ai-input-row textarea::placeholder {
    color: #718096;
}

.ai-send-btn {
    background: var(--gold);
    border: none;
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ai-send-btn:hover {
    background: var(--gold2);
    transform: scale(1.05);
}

.ai-send-btn .send-icon {
    font-size: 0.95rem;
    transform: rotate(0deg);
}

.ai-sub-notice {
    font-size: 0.7rem;
    color: #718096;
    text-align: center;
    margin-top: 6px;
}

/* Responsive sur Petits Écrans / Mobiles */
@media (max-width: 520px) {
    .lama-ai-launcher-btn {
        bottom: 18px;
        right: 18px;
        padding: 10px 16px;
    }

    .lama-ai-launcher-btn .launcher-text {
        display: none;
    }

    .lama-ai-modal-box {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100vw;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        border: none;
    }
}

/* ==========================================================================
   MODULE FORMULES LATEX & RENDU MATHÉMATIQUE POUR VISITEURS (KATEX)
   ========================================================================== */

/* Amélioration de la typographie et lisibilité KaTeX pour les visiteurs */
.katex {
    font-size: 1.08em;
    text-rendering: geometricPrecision;
}

/* Formules en ligne : alignement harmonieux sans décaler les lignes */
p .katex, li .katex, span .katex {
    white-space: nowrap;
}

/* Carte Mathématique pour Équations Centrées (Display Math) */
.lama-math-card {
    position: relative;
    background: #fbfcfd;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: 24px 28px 18px;
    margin: 24px 0;
    box-shadow: 0 4px 16px rgba(10, 29, 55, 0.04);
    overflow-x: auto;
    transition: all 0.25s ease;
}

.lama-math-card:hover {
    border-color: #cbd5e0;
    border-left-color: var(--gold2);
    box-shadow: 0 6px 22px rgba(10, 29, 55, 0.08);
}

/* Équations centrées KaTeX */
.lama-math-card .katex-display {
    margin: 8px 0 10px;
    padding: 0;
    text-align: center;
    color: var(--navy);
}

.lama-math-card .katex-display > .katex {
    font-size: 1.25em;
    line-height: 1.4;
}

/* Barre d'outils au survol (Copier LaTeX / Voir Code) */
.lama-math-toolbar {
    position: absolute;
    top: 8px;
    right: 10px;
    display: flex;
    gap: 6px;
    opacity: 0.75;
    transition: opacity 0.2s ease;
    z-index: 5;
}

.lama-math-card:hover .lama-math-toolbar {
    opacity: 1;
}

.btn-math-action {
    background: #ffffff;
    border: 1px solid #cbd5e0;
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--sans);
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.btn-math-action:hover {
    background: #f1f5f9;
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-1px);
}

.btn-math-action.copied {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #ffffff !important;
}

.btn-math-action.active {
    background: var(--navy) !important;
    border-color: var(--navy) !important;
    color: var(--gold2) !important;
}

/* Aperçu du code source LaTeX brut (quand le visiteur clique sur </> Code) */
.lama-math-code-preview {
    background: #091728;
    color: #e2ba6f;
    border: 1px solid rgba(184, 145, 74, 0.35);
    border-radius: 6px;
    padding: 12px 16px;
    margin: 14px 0 6px;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 0.84rem;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Formules dans les contextes à thème sombre (Archives, En-têtes, Chat IA) */
.lama-archive-section .lama-math-card,
.ai-msg-bubble .lama-math-card,
.dark .lama-math-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--gold2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.lama-archive-section .lama-math-card:hover,
.ai-msg-bubble .lama-math-card:hover,
.dark .lama-math-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(184, 145, 74, 0.4);
}

.lama-archive-section .lama-math-card .katex-display,
.ai-msg-bubble .lama-math-card .katex-display,
.dark .lama-math-card .katex-display {
    color: #ffffff;
}

.lama-archive-section .btn-math-action,
.ai-msg-bubble .btn-math-action,
.dark .btn-math-action {
    background: rgba(6, 21, 39, 0.85);
    border-color: rgba(255, 255, 255, 0.18);
    color: #cbd5e0;
}

.lama-archive-section .btn-math-action:hover,
.ai-msg-bubble .btn-math-action:hover,
.dark .btn-math-action:hover {
    background: var(--navy);
    color: var(--gold2);
    border-color: var(--gold);
}

/* Responsiveness des équations sur mobiles */
@media (max-width: 640px) {
    .lama-math-card {
        padding: 20px 14px 14px;
        margin: 16px 0;
    }

    .lama-math-card .katex-display > .katex {
        font-size: 1.1em;
    }

    .lama-math-toolbar {
        top: 4px;
        right: 6px;
    }

    .btn-math-action {
        font-size: 0.68rem;
        padding: 2px 6px;
    }
}

/* =========================================================================
   BANDEAU D'ACTUALITÉS DÉFILANT (.tick) - DESIGN SOPHISTIQUÉ & PRESTIGE
   ========================================================================= */
.tick {
    display: flex;
    align-items: stretch;
    background: linear-gradient(90deg, #061426 0%, #0a1f38 30%, #0d284a 50%, #0a1f38 70%, #061426 100%);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(217, 184, 119, 0.45);
    box-shadow: 0 4px 18px rgba(5, 16, 32, 0.28);
    font-size: .86rem;
    height: 44px;
    overflow: hidden;
    position: relative;
    z-index: 99;
}

.tick-l {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px 0 18px;
    background: linear-gradient(135deg, #c5a059 0%, #d9b877 50%, #b8914a 100%);
    color: #06142a;
    font-weight: 800;
    letter-spacing: 1.8px;
    font-size: .70rem;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 2px 0 12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 3;
    text-decoration: none;
}

.tick-l:hover {
    color: #06142a;
    filter: brightness(1.06);
}

.tick-l-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #06142a;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(6, 20, 42, 0.25);
    animation: tickDotPulse 2s ease-in-out infinite;
}

@keyframes tickDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.tick-l-star {
    font-size: 0.65rem;
    opacity: 0.8;
}

.tick-w {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

/* Diapositives : une actualité à la fois, glissement horizontal */
.tick-s {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 0 26px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(calc(var(--dir, 1) * 48px));
    transition: opacity .45s ease, transform .55s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear .55s;
    -webkit-user-drag: none;
}

.tick-s.on {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: opacity .45s ease .08s, transform .55s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}

.tick-s.out {
    transform: translateX(calc(var(--dir, 1) * -48px));
}

.tick-s::before {
    content: "◆";
    color: #d9b877;
    font-size: 0.48rem;
    opacity: 0.85;
    flex: none;
}

.tick-s:hover b {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(217, 184, 119, 0.5);
}

/* Barre de progression de l'auto-défilement */
.tick-p {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: rgba(217, 184, 119, 0.12);
    pointer-events: none;
}

.tick-p > span {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #b8914a, #d9b877);
    transform-origin: left;
    transform: scaleX(0);
    animation: tickProgress 5.5s linear forwards;
}

.tick.stop .tick-p > span {
    animation-play-state: paused;
}

@keyframes tickProgress {
    to { transform: scaleX(1); }
}

.tick-s i {
    font-style: normal;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(217, 184, 119, 0.14);
    border: 1px solid rgba(217, 184, 119, 0.35);
    color: #ecd5a5;
    transition: all 0.25s ease;
}

.tick-s:hover i {
    background: rgba(217, 184, 119, 0.26);
    border-color: #d9b877;
    color: #ffffff;
}

.tick-s i {
    flex: none;
}

.tick-s b {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.86rem;
    color: #e2e8f0;
    letter-spacing: 0.15px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.tick-s em {
    flex: none;
    font-style: normal;
    color: #8da2bd;
    font-size: 0.76rem;
    font-variant-numeric: tabular-nums;
    opacity: 0.85;
}

.tick-s em::before {
    content: "·";
    margin-right: 8px;
    color: rgba(217, 184, 119, 0.6);
}

/* Contrôles : compteur + précédent / pause / suivant */
.tick-c {
    flex: none;
    display: flex;
    align-items: stretch;
    border-left: 1px solid rgba(217, 184, 119, 0.22);
    position: relative;
    z-index: 3;
}

.tick-n {
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #8da2bd;
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

.tick-b {
    flex: none;
    width: 38px;
    background: rgba(255, 255, 255, 0.04);
    border: 0;
    border-left: 1px solid rgba(217, 184, 119, 0.14);
    color: #d9b877;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#tickB {
    font-size: 0.62rem;
    letter-spacing: -1px;
}

.tick-b:hover {
    background: rgba(217, 184, 119, 0.2);
    color: #ffffff;
    box-shadow: inset 0 0 12px rgba(217, 184, 119, 0.3);
}

.tick-b:focus-visible,
.tick-s:focus-visible,
.tick-l:focus-visible {
    outline: 2px solid #d9b877;
    outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
    .tick-s,
    .tick-s.on {
        transition: none;
        transform: none;
    }
    .tick-p {
        display: none;
    }
}

@media (max-width: 640px) {
    .tick {
        height: 40px;
    }
    .tick-l-txt {
        display: none;
    }
    .tick-l {
        padding: 0 16px 0 14px;
    }
    .tick-s {
        padding: 0 10px 0 14px;
        gap: 7px;
    }
    .tick-s::before,
    .tick-s em,
    .tick-n,
    #tickB {
        display: none;
    }
    .tick-s i {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
    .tick-s b {
        font-size: 0.8rem;
    }
    .tick-b {
        width: 34px;
    }
}

@media (max-width: 380px) {
    .tick-s i {
        display: none;
    }
}

@media print {
    .tick {
        display: none;
    }
}

/* ==========================================================================
   ESPACE CHERCHEUR : ASSISTANT D'IMPORTATION DE CV & AUTO-REMPLISSAGE D'ARTICLES
   Strictement confidentiel : Fichier non publié, extraction directe des articles
   ========================================================================== */

.lama-cv-import-box {
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 4px 18px rgba(10, 29, 55, 0.05);
    position: relative;
    transition: box-shadow 0.25s ease;
}

.lama-cv-import-box:hover {
    box-shadow: 0 6px 24px rgba(10, 29, 55, 0.08);
}

.lama-cv-box-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f3f6;
    flex-wrap: wrap;
}

.lama-cv-header-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    min-width: 260px;
}

.lama-cv-header-icon {
    font-size: 1.5rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(217, 184, 119, 0.25);
}

.lama-cv-header-title {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--navy);
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
}

.lama-cv-header-sub {
    font-size: 0.84rem;
    color: var(--mute);
    margin: 0;
    line-height: 1.45;
}

/* Badge de confidentialité stricte (Fichier privé non publié) */
.lama-cv-privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 8px 14px;
    flex-shrink: 0;
    cursor: help;
    transition: all 0.2s ease;
}

.lama-cv-privacy-badge:hover {
    background: #d1fae5;
    border-color: #6ee7b7;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.lama-cv-privacy-badge .lock-emoji {
    font-size: 1.2rem;
    line-height: 1;
}

.lama-cv-privacy-badge .privacy-text {
    display: flex;
    flex-direction: column;
}

.lama-cv-privacy-badge .privacy-text strong {
    font-size: 0.8rem;
    font-weight: 700;
    color: #065f46;
    letter-spacing: 0.2px;
}

.lama-cv-privacy-badge .privacy-text small {
    font-size: 0.7rem;
    color: #047857;
    line-height: 1.2;
}

/* Zone de glisser-déposer (Dropzone) */
.lama-cv-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    padding: 22px 18px;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
    margin-bottom: 16px;
}

.lama-cv-dropzone:hover {
    border-color: var(--gold);
    background: #fffdf9;
    box-shadow: 0 4px 14px rgba(184, 145, 74, 0.08);
}

.lama-cv-dropzone.dragover {
    border-color: var(--blue);
    background: #eff6ff;
    transform: scale(1.008);
    box-shadow: 0 6px 20px rgba(29, 94, 168, 0.15);
}

.lama-dropzone-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.lama-dropzone-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.lama-cv-dropzone:hover .lama-dropzone-icon {
    transform: translateY(-2px);
    background: #e0f2fe;
}

.lama-dropzone-copy .drop-title {
    font-size: 0.96rem;
    color: var(--navy);
    font-weight: 500;
}

.lama-dropzone-copy .drop-title strong {
    color: var(--blue);
    font-weight: 700;
}

.lama-dropzone-copy .drop-sub {
    font-size: 0.78rem;
    color: var(--mute);
    margin-top: 3px;
}

.lama-dropzone-copy .drop-browse-link {
    color: var(--gold);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.lama-dropzone-footer {
    margin-top: 12px;
    padding-top: 10px;
}

.btn-toggle-paste {
    background: transparent;
    border: none;
    color: var(--mute);
    font-size: 0.78rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.btn-toggle-paste:hover {
    color: var(--navy);
}

/* Barre rapide DOI / Citation unique */
.lama-quick-doi-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f1f5f9;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.lama-quick-doi-bar .doi-icon {
    font-size: 1.15rem;
    color: var(--gold);
}

.lama-quick-doi-bar input {
    width: 100%;
    padding: 9px 12px;
    font-size: 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    color: var(--navy);
    outline: none;
    transition: border-color 0.2s ease;
}

.lama-quick-doi-bar input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(29, 94, 168, 0.15);
}

.lama-quick-doi-bar button {
    padding: 9px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 4px;
    cursor: pointer;
}

/* Indicateur de chargement / Spinner */
#lama_cv_loading {
    padding: 28px 16px;
    text-align: center;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin: 16px 0;
}

.lama-cv-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid var(--blue);
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: lama-cv-spin 0.8s linear infinite;
}

@keyframes lama-cv-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#lama_cv_loading .loading-msg {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

#lama_cv_loading .loading-sub {
    font-size: 0.8rem;
    color: var(--mute);
    max-width: 520px;
    margin: 0 auto;
}

/* Carte de résultats des articles détectés */
.lama-cv-results-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-left: 4px solid var(--gold);
    border-radius: 6px;
    padding: 20px;
    margin-top: 18px;
    box-shadow: 0 4px 16px rgba(10, 29, 55, 0.06);
    animation: fadeInDown 0.3s ease;
}

.lama-cv-results-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.btn-bulk-import {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 20px !important;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(10, 29, 55, 0.25) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-bulk-import:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 29, 55, 0.35) !important;
}

.lama-cv-articles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 6px;
}

.lama-cv-articles-list::-webkit-scrollbar {
    width: 6px;
}

.lama-cv-articles-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.lama-cv-article-row {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    transition: all 0.2s ease;
}

.lama-cv-article-row:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.lama-cv-row-main {
    flex: 1;
    min-width: 0;
}

.lama-cv-row-title {
    font-size: 0.92rem;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 4px;
}

.lama-cv-row-meta {
    font-size: 0.79rem;
    color: #64748b;
    line-height: 1.4;
}

.lama-cv-row-meta a.badge {
    display: inline-block;
    padding: 1px 6px;
    background: #e2e8f0;
    color: #334155;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
}

.lama-detected-coauthors {
    margin-top: 6px;
    font-size: 0.77rem;
    color: #0369a1;
    font-weight: 600;
}

.lama-detected-coauthors .badge {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 12px;
}

.lama-cv-row-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-fill-form {
    padding: 7px 12px !important;
    font-size: 0.78rem !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: var(--navy) !important;
    transition: all 0.2s ease !important;
}

.btn-fill-form:hover {
    background: #f1f5f9 !important;
    border-color: var(--navy) !important;
}

.btn-single-import {
    padding: 7px 12px !important;
    font-size: 0.78rem !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    background: var(--blue) !important;
    color: #ffffff !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

.btn-single-import:hover {
    background: #174d8a !important;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .lama-cv-box-header {
        flex-direction: column;
    }
    .lama-cv-privacy-badge {
        width: 100%;
        justify-content: flex-start;
    }
    .lama-cv-results-top {
        flex-direction: column;
        align-items: stretch;
    }
    .lama-cv-article-row {
        flex-direction: column;
        align-items: stretch;
    }
    .lama-cv-row-actions {
        margin-top: 10px;
        justify-content: flex-end;
    }
}

/* ==========================================================================
   ESPACE CHERCHEUR : ÉDITION ET MISE À JOUR DU PROFIL MEMBRE
   ========================================================================== */

.lama-workspace-top-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-edit-profile-action {
    border-color: var(--gold) !important;
    color: #875d14 !important;
    background: #fffcf4 !important;
    font-size: 0.82rem !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-edit-profile-action:hover {
    background: var(--gold) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(184, 145, 74, 0.3) !important;
}

.lama-profile-shortcut-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: #fdfbf7;
    border: 1px solid #fae6be;
    border-left: 4px solid var(--gold);
    border-radius: 6px;
    margin-bottom: 22px;
    transition: box-shadow 0.2s ease;
}

.lama-profile-shortcut-banner:hover {
    box-shadow: 0 3px 12px rgba(184, 145, 74, 0.08);
}

.lama-profile-field-section {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 22px 24px;
    margin-bottom: 22px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(10, 29, 55, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lama-profile-field-section:hover {
    border-color: #cbd5e1;
    box-shadow: 0 3px 10px rgba(10, 29, 55, 0.04);
}

.lama-profile-section-title {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f3f6;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.btn-save-profile {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 30px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    box-shadow: 0 3px 10px rgba(10, 29, 55, 0.2) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-save-profile:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(10, 29, 55, 0.3) !important;
}

.badge-edit-profile {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge-edit-profile:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35) !important;
}


