/* ==================== MLK GLOBAL STRATEGIES - STYLESHEET ==================== */

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --paris-m: #0e046b;
    --japanese-laurel: #1a7909;
    --apple: #539832;
    --primary-blue: #0e046b;
    --primary-teal: #1a7909;
    --dark-blue: #0a033d;
    --light-gray: #F5F7FA;
    --text-dark: #2C3E50;
    --text-light: #5a6c7d;
    --white: #FFFFFF;
    --gold: #539832;
    --accent-green: #1a7909;
    --light-green: #539832;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* SCROLL PROGRESS BAR */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--gold));
    width: 0%;
    z-index: 10000;
    transition: width 0.1s;
}

/* HEADER & NAVIGATION */
header {
    background: transparent !important;
    box-shadow: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 1rem 0;
    transition: all 0.3s ease;
    width: 100%;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(8px);
}

/* Header transparent sur toutes les pages avec hero */
body:not(.home-page) header {
    background: transparent !important;
    box-shadow: none !important;
}

body:not(.home-page) header.scrolled {
    background: rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(8px);
}

body:not(.home-page) header .nav-links a {
    color: var(--white);
}

body:not(.home-page) header.scrolled .nav-links a {
    color: var(--white);
}

body:not(.home-page) header .mobile-menu-btn {
    color: var(--white);
}

body:not(.home-page) header.scrolled .mobile-menu-btn {
    color: var(--white);
}

/* Header transparent sur la page d'accueil, même après scroll */
.home-page header {
    background: transparent !important;
    box-shadow: none !important;
}

.home-page header.scrolled {
    background: rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(8px);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 2rem;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.logo img {
    height: 100px;
    width: auto;
    transition: height 0.3s ease;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-accent {
    color: var(--primary-teal);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

/* Language Toggle Button */
#langToggle {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 1rem;
}

#langToggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Masquer le bouton de fermeture sur desktop */
.close-menu-btn {
    display: none !important;
}

.nav-links a {
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled .nav-links a {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.home-page header.scrolled .nav-links a {
    color: var(--white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-teal), var(--gold));
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

header:not(.scrolled) .nav-links a:hover,
header:not(.scrolled) .nav-links a.active {
    color: var(--gold);
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-blue));
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold), var(--primary-blue));
    transition: left 0.3s;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button span {
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.mobile-menu-btn {
    display: none !important;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--white);
    transition: all 0.3s;
    z-index: 1001;
    position: relative;
    width: 45px;
    height: 45px;
    padding: 0;
    line-height: 1;
    align-items: center;
    justify-content: center;
}

header.scrolled .mobile-menu-btn {
    color: var(--primary-blue);
}

.home-page header.scrolled .mobile-menu-btn {
    color: var(--white);
}

/* HERO SECTIONS */
/* Image de fond par défaut pour les pages (services) - Position ajustée pour éviter de couper les mains */
.hero {
    background: linear-gradient(135deg, rgba(14, 4, 107, 0.6) 0%, rgba(10, 3, 61, 0.6) 100%),
                url('../imgs/Mlk main.jpg');
    background-position: center 50%;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 6rem 1.5rem;
    padding-top: 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-attachment: scroll; /* Optimisé pour meilleures performances */
    margin-top: 0;
}

/* Image de fond pour la page d'accueil - Position ajustée pour éviter de couper les têtes */
.home-page .hero {
    background: linear-gradient(135deg, rgba(14, 4, 107, 0.6) 0%, rgba(10, 3, 61, 0.6) 100%),
                url('../imgs/Image back mlk.jpg');
    background-position: center 15%;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Image de fond pour la page À propos */
.about-page .hero {
    background: linear-gradient(135deg, rgba(14, 4, 107, 0.6) 0%, rgba(10, 3, 61, 0.6) 100%),
                url('../imgs/image back 2 mlk.jpg');
    background-position: center 30%;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Image de fond pour la page Publications */
.articles-page .hero {
    background: linear-gradient(135deg, rgba(14, 4, 107, 0.6) 0%, rgba(10, 3, 61, 0.6) 100%),
                url('../imgs/vue-aerienne-de-homme-affaires-utilisation-ordinateur-portable.jpg');
    background-position: center 50%;
    background-size: cover;
    background-repeat: no-repeat;
}

.articles-page .hero .hero-main-title {
    margin-top: 0.5rem;
}

/* Image de fond pour la page Contact */
.contact-page .hero {
    background: linear-gradient(135deg, rgba(14, 4, 107, 0.6) 0%, rgba(10, 3, 61, 0.6) 100%),
                url('../imgs/gros-plan-de-homme-affaires-utilisation-telephone-portable.jpg');
    background-position: center 30%;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Optimisation des images de fond pour toutes les tailles d'écran */
@media (prefers-reduced-motion: reduce) {
    .hero {
        background-attachment: scroll;
    }
}

/* Optimisation pour les écrans tactiles (mobile/tablette) */
@media (hover: none) and (pointer: coarse) {
    .hero {
        background-attachment: scroll;
    }
}

/* Animation pour les notifications */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Animations d'affichage des pages */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation de la page entière au chargement */
body {
    animation: fadeIn 0.6s ease-out;
}

/* Animation du contenu principal */
main {
    animation: fadeIn 0.8s ease-out;
}

/* Classes d'animation pour les sections */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-up.animated {
    transform: translateY(0);
}

.fade-in-down {
    transform: translateY(-30px);
}

.fade-in-down.animated {
    transform: translateY(0);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-left.animated {
    transform: translateX(0);
}

.fade-in-right {
    transform: translateX(30px);
}

.fade-in-right.animated {
    transform: translateX(0);
}

.scale-in {
    transform: scale(0.95);
}

.scale-in.animated {
    transform: scale(1);
}

/* Animation du hero au chargement */
.hero {
    animation: fadeIn 1s ease-out;
}

.hero-content {
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Animation pour les profils d'associés */
.associe-profile {
    animation: fadeInUp 0.5s ease-out;
}

.associes-sidebar {
    animation: fadeInLeft 0.6s ease-out 0.2s both;
}

.associes-content {
    animation: fadeInRight 0.6s ease-out 0.3s both;
}

/* Animation des sections au chargement initial (seulement si pas déjà animée) */
body.loaded section:not(.hero) {
    animation: fadeInUp 0.8s ease-out both;
}

body.loaded section:not(.hero):nth-of-type(1) {
    animation-delay: 0.1s;
}

body.loaded section:not(.hero):nth-of-type(2) {
    animation-delay: 0.2s;
}

body.loaded section:not(.hero):nth-of-type(3) {
    animation-delay: 0.3s;
}

body.loaded section:not(.hero):nth-of-type(4) {
    animation-delay: 0.4s;
}

body.loaded section:not(.hero):nth-of-type(5) {
    animation-delay: 0.5s;
}

/* Désactiver les animations pour les utilisateurs qui préfèrent la réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}

.hero.fullscreen {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 160px;
}

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

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-weight: 600;
}

.hero-tagline {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-teal), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    margin-bottom: 1.2rem;
    font-weight: 500;
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* BUTTONS */
.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-blue));
    color: var(--white);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold), var(--primary-blue));
    transition: left 0.3s;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.home-partnership-strip {
    background: linear-gradient(180deg, rgba(14, 4, 107, 0.04) 0%, var(--light-gray) 45%, var(--white) 100%);
    padding: 3.25rem 0 3.75rem;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    border-bottom: 1px solid rgba(14, 4, 107, 0.06);
}

.home-partnership-strip .section-title p {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.home-partnership-strip__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin: 1.5rem auto 2rem;
    max-width: 920px;
}

.partnership-tag {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(14, 4, 107, 0.18);
    background: var(--white);
    color: var(--primary-blue);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(14, 4, 107, 0.06);
}

.home-partnership-strip__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.btn-outline-navy {
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
}

.btn-outline-navy:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 4, 107, 0.2);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
    border-color: var(--gold);
}

/* SECTIONS */
section {
    padding: 3.5rem 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
    position: relative;
    display: inline-block;
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-weight: 600;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--gold));
    border-radius: 2px;
}

.section-title p {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 1.2rem;
    line-height: 1.7;
}

/* GRIDS */
.services-grid,
.articles-grid,
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.services-detailed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

@media (max-width: 968px) {
    .services-detailed-grid {
        grid-template-columns: 1fr;
    }
}

.leadership-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: start;
}

.leadership-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
}

@media (max-width: 968px) {
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .leadership-grid > div:first-child {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        width: 100%;
    }
    
    .leadership-grid img {
        width: 100%;
        max-width: 400px;
        height: auto;
        max-height: none;
        object-fit: cover;
        object-position: center 30%;
        margin: 0 auto;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .leadership-grid img {
        max-width: 100%;
        width: 100%;
    }
    
    .leadership-grid > div:first-child {
        padding: 0;
    }
}

/* SERVICE CARDS */
.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-teal), var(--gold));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-blue));
    color: var(--white);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.service-icon svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.service-list {
    list-style: none;
    margin: 1.5rem 0;
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

.service-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--japanese-laurel), var(--apple));
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ARTICLE CARDS */
.article-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.article-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.article-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s;
}

/* Portrait (à la une) : remplit le bloc sans bande blanche sous l’image, recadrage tête/épaules */
.article-image.article-image--portrait {
    height: auto;
    aspect-ratio: 3 / 4;
    max-height: 400px;
}

.article-image.article-image--portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 12%;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-blue), var(--gold));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-content {
    padding: 2.5rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-content h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-weight: 600;
}

.article-link {
    color: var(--gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.article-link:hover {
    gap: 1rem;
}

/* Article detail (publication interne) — même principe que articles.html : hero + section blanche */
.article-detail-page .hero .article-back {
    margin-bottom: 1.25rem;
}

.article-detail-page .hero .article-back a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.article-detail-page .hero .article-back a:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.article-detail-page .hero .article-detail-meta {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.article-detail-page .hero .article-detail-lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

.article-detail-page .article-detail-section {
    background: var(--white);
    padding: 2rem 0 4rem;
}

.article-detail-section .article-back {
    margin-bottom: 1rem;
}

.article-detail-section .article-back a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.article-detail-section .article-back a:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.article-detail-section .article-detail-meta {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.article-page-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-blue);
    font-size: clamp(1.35rem, 3.5vw, 2rem);
    line-height: 1.3;
    margin: 0 0 0.75rem;
}

.article-byline {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0 0 1.75rem;
    font-style: italic;
}

.article-byline:has(+ .article-thesis-desc) {
    margin-bottom: 0.75rem;
}

.article-thesis-desc {
    color: var(--text-light);
    font-size: 1.0625rem;
    line-height: 1.75;
    margin: 0 0 1.75rem;
    max-width: 52rem;
}

.article-reprint-note {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    padding: 1rem 1.15rem;
    background: rgba(14, 4, 107, 0.06);
    border-left: 4px solid var(--gold);
    border-radius: 0 8px 8px 0;
}

.article-reprint-note a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: underline;
}

.article-prose ol.article-prose-list {
    margin: 0 0 1.5rem 1.25rem;
    padding: 0;
    list-style: decimal;
}

.article-prose ol.article-prose-list li {
    margin-bottom: 1.25rem;
    padding-left: 0.35rem;
}

.article-detail-page .article-detail {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.article-detail figure {
    margin: 0 0 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(14, 4, 107, 0.12);
}

.article-detail figure img {
    width: 100%;
    height: auto;
    display: block;
}

.article-detail-figure--portrait {
    max-height: min(72vh, 640px);
}

.article-detail-figure--portrait img {
    width: 100%;
    height: 100%;
    max-height: min(72vh, 640px);
    object-fit: cover;
    object-position: center 20%;
}

/* Mise en avant « à la une » (accueil + liste publications) */
.home-featured-publication {
    background: linear-gradient(180deg, rgba(14, 4, 107, 0.06) 0%, var(--white) 100%);
    padding: 3rem 0 3.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.35);
    border-bottom: 1px solid rgba(14, 4, 107, 0.08);
}

.home-featured-publication__inner {
    position: relative;
    padding: 2rem 2rem 2.25rem;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 12px 48px rgba(14, 4, 107, 0.14);
    border-left: 5px solid var(--gold);
}

.home-featured-publication__badge {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-blue));
    border-radius: 999px;
}

.home-featured-publication__grid {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 2.5rem;
    align-items: center;
}

.home-featured-publication__media {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-featured-publication__media:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 44px rgba(14, 4, 107, 0.22);
}

.home-featured-publication__media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    max-height: 420px;
    object-fit: cover;
    object-position: center 25%;
    display: block;
}

.home-featured-publication__kicker {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.75rem;
}

.home-featured-publication__title {
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 600;
    color: var(--primary-blue);
    line-height: 1.28;
    margin: 0 0 1rem;
}

.home-featured-publication__excerpt {
    color: var(--text-light);
    line-height: 1.75;
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
}

.home-featured-publication__cta {
    display: inline-flex;
}

.articles-featured-spotlight {
    background: linear-gradient(135deg, rgba(14, 4, 107, 0.07) 0%, rgba(212, 175, 55, 0.08) 50%, var(--light-gray) 100%);
    padding: 2.5rem 0 3rem;
}

.articles-featured-spotlight__inner {
    padding: 2rem 2.25rem;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 16px 56px rgba(14, 4, 107, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.45);
    outline: 2px solid rgba(14, 4, 107, 0.06);
    outline-offset: 4px;
}

.articles-featured-spotlight__badge {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 0.4rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    background: linear-gradient(90deg, var(--primary-blue), var(--gold));
    border-radius: 999px;
}

.articles-featured-spotlight__grid {
    display: grid;
    grid-template-columns: minmax(240px, 380px) 1fr;
    gap: 2.5rem;
    align-items: center;
}

.articles-featured-spotlight__media {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.articles-featured-spotlight__media:hover {
    transform: scale(1.02);
}

.articles-featured-spotlight__media img {
    width: 100%;
    min-height: 300px;
    max-height: 440px;
    object-fit: cover;
    object-position: center 22%;
    display: block;
}

.articles-featured-spotlight__kicker {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0 0 0.6rem;
}

.articles-featured-spotlight__title {
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 600;
    color: var(--primary-blue);
    line-height: 1.25;
    margin: 0 0 1rem;
}

.articles-featured-spotlight__excerpt {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
}

.article-card--accent {
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.article-card--accent .article-image {
    box-shadow: inset 0 0 0 2px rgba(212, 175, 55, 0.25);
}

/* Carte « à la une » : même retrait que .article-content (2.5rem) pour aligner photo et texte */
.article-card--accent .article-image.article-image--portrait {
    width: auto;
    margin: 1.75rem 2.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    outline: 1px solid rgba(212, 175, 55, 0.2);
}

@media (max-width: 900px) {
    .home-featured-publication__grid,
    .articles-featured-spotlight__grid {
        grid-template-columns: 1fr;
    }

    .home-featured-publication__media img {
        max-height: 320px;
    }

    .articles-featured-spotlight__media img {
        max-height: 360px;
    }
}

.article-prose .article-references {
    margin: 1.5rem 0 0;
    padding-left: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.65;
}

.article-prose .article-references li {
    margin-bottom: 0.65rem;
}

.article-prose {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-dark);
}

.article-prose p {
    margin-bottom: 1.25rem;
}

.article-prose h2,
.article-prose .article-prose-subheading {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--primary-blue);
    margin: 2rem 0 1rem;
}

/* STATS */
.stats {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.stat-item h3 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-teal), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-item p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* CONTACT PAGE */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.map-container {
    height: 500px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* CONTACT FORM */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-teal);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* FOOTER */
footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 0fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding-top: 1.5rem;
}

.footer-logo img {
    height: 120px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    transition: opacity 0.3s;
}

.footer-logo img:hover {
    opacity: 1;
}

.footer-section h3 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    opacity: 0.9;
    transition: all 0.3s;
    display: inline-block;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--gold);
    transform: translateX(5px);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-3px);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    opacity: 0.8;
}

.footer-web-dev-credit {
    margin-top: 1.25rem;
    padding: 0 1rem;
}

.footer-web-dev-credit__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}

.footer-web-dev-credit__title {
    font-weight: 700;
    color: var(--gold);
}

.footer-web-dev-credit__name {
    font-weight: 600;
    color: var(--white);
}

.footer-web-dev-credit__sep {
    opacity: 0.5;
    padding: 0 0.15rem;
}

.footer-web-dev-credit__link {
    color: var(--gold);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s, opacity 0.2s;
}

.footer-web-dev-credit__link:hover {
    color: var(--white);
    opacity: 1;
}

/* SCROLL TO TOP */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--gold), var(--primary-blue));
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

#scrollToTop.show {
    opacity: 1;
    visibility: visible;
}

#scrollToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .services-grid,
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    /* Contact page responsive */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .map-container {
        height: 400px;
    }

    /* Contact page titles responsive */
    .contact-grid h2 {
        font-size: 2rem !important;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(14, 4, 107, 0.98) 0%, rgba(10, 3, 61, 0.98) 100%);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.5);
        z-index: 10000;
        overflow-y: auto;
        margin: 0;
        transform: translateZ(0);
        -webkit-overflow-scrolling: touch;
    }
    
    /* Masquer le bouton de fermeture sur desktop - dans le media query mobile */
    @media (max-width: 768px) {
        .close-menu-btn {
            position: fixed;
            top: 1.5rem;
            right: 2rem;
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: var(--white);
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 2rem;
            font-weight: 300;
            line-height: 1;
            transition: all 0.3s;
            z-index: 10001;
            padding: 0;
            margin: 0;
        }
    }
    
    @media (max-width: 768px) {
        .close-menu-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            border-color: var(--gold);
            transform: rotate(90deg);
        }
    }
    
    .nav-links a {
        color: var(--white) !important;
        font-size: 1.3rem;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: center;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        color: var(--gold) !important;
    }

    .nav-links.active {
        display: flex !important;
    }
    
    @media (max-width: 768px) {
        .nav-links.active .close-menu-btn {
            display: flex !important;
        }
    }
    
    /* S'assurer que le menu est toujours au-dessus de tout */
    body.menu-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
    }
    
    body.menu-open .nav-links {
        display: flex !important;
    }
    
    .mobile-menu-btn {
        display: flex !important;
        z-index: 10002;
        position: relative;
    }
    
    .mobile-menu-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: var(--gold);
    }
    
    .logo img {
        height: 80px;
    }
    
    .cta-button {
        display: none;
    }
    
    header {
        padding: 0.8rem 0;
    }

    .services-grid,
    .articles-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-buttons a {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }

    /* Contact page mobile */
    .contact-form {
        padding: 1.5rem 1rem;
    }

    .contact-grid h2 {
        font-size: 1.8rem !important;
        margin-bottom: 1rem !important;
    }

    .map-container {
        height: 300px;
    }

    /* Contact info cards mobile */
    .contact-grid > div > div[style*="background"] {
        padding: 1.5rem !important;
    }

    .contact-grid > div > div[style*="background"] > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }

    .contact-grid > div > div[style*="background"] > div[style*="display: flex"] > div[style*="width: 50px"] {
        margin: 0 auto !important;
    }

    /* Formulaire responsive */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Évite le zoom sur iOS */
    }
}

/* Support pour tablettes */
@media (min-width: 481px) and (max-width: 768px) {
    .contact-grid {
        gap: 2.5rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .map-container {
        height: 400px;
    }
}

/* Responsive pour les éléments inline de la page contact */
@media (max-width: 768px) {
    /* Titres responsive */
    .contact-grid h2[style*="font-size: 2.5rem"] {
        font-size: 2rem !important;
    }

    /* Cartes de contact responsive */
    .contact-grid > div > div[style*="background: var(--light-gray)"] {
        padding: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Items de contact responsive */
    .contact-grid > div > div[style*="background: var(--light-gray)"] > div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .contact-grid > div > div[style*="background: var(--light-gray)"] > div[style*="display: flex"] > div[style*="width: 50px"] {
        margin: 0 auto !important;
    }

    .contact-grid > div > div[style*="background: var(--light-gray)"] > div[style*="display: flex"] > div:last-child {
        width: 100% !important;
    }

    /* Carte rendez-vous responsive */
    .contact-grid > div > div[style*="background: var(--primary-blue)"] {
        padding: 1.5rem !important;
    }

    .contact-grid > div > div[style*="background: var(--primary-blue)"] h4 {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 480px) {
    .contact-grid h2[style*="font-size: 2.5rem"] {
        font-size: 1.6rem !important;
        margin-bottom: 1rem !important;
    }

    .contact-grid > div > div[style*="background: var(--light-gray)"] {
        padding: 1rem !important;
    }

    .contact-grid > div > div[style*="background: var(--light-gray)"] > div[style*="display: flex"] > div > h4 {
        font-size: 1rem !important;
    }

    .contact-grid > div > div[style*="background: var(--primary-blue)"] {
        padding: 1.25rem !important;
    }

    .contact-grid > div > div[style*="background: var(--primary-blue)"] h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }

    .contact-grid > div > div[style*="background: var(--primary-blue)"] p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }
}


/* Support pour les très petits écrans */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    section {
        padding: 1.5rem 0.75rem;
    }

    .container {
        padding: 0 0.75rem;
    }
}

/* Support pour l'orientation paysage sur mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    section {
        padding: 2rem 1.5rem;
    }
}

/* Support pour les tablettes en mode portrait */
@media (min-width: 481px) and (max-width: 768px) {
    .services-grid,
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

/* Support pour les tablettes en mode paysage et petits écrans desktop */
/* Media query pour écrans moyens (tablettes et petits ordinateurs portables) */
@media (min-width: 769px) and (max-width: 1366px) {
    body {
        font-size: 0.95rem;
    }

    .hero {
        padding: 5rem 1.5rem;
        padding-top: 130px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-tagline {
        font-size: 1.3rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    section {
        padding: 3rem 1.5rem;
    }

    .section-title h2 {
        font-size: 1.9rem;
    }

    .section-title {
        margin-bottom: 2.5rem;
    }

    .services-grid,
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .btn-primary, .btn-secondary {
        padding: 0.9rem 1.8rem;
        font-size: 0.9rem;
    }
}

/* YOUTUBE LAYOUT - Style similaire à YouTube */
.youtube-layout {
    display: grid;
    grid-template-columns: 402px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.youtube-main {
    width: 100%;
}

.youtube-player-container {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.youtube-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
}

.youtube-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Façade miniature : même ancrage que l'iframe (wrapper en ratio 16:9, height: 0) */
.youtube-video-wrapper #ytFacade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: #000;
}

.youtube-video-wrapper #ytFacade img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.youtube-video-wrapper #ytFacade .yt-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: rgba(255, 0, 0, 0.85);
    border: none;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.youtube-video-info {
    padding: 1.5rem;
}

.youtube-video-info h3 {
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-weight: 600;
}

.youtube-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.youtube-video-info p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.youtube-sidebar {
    width: 100%;
}

.youtube-sidebar h4 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.youtube-playlist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.youtube-playlist-item {
    display: flex;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
    opacity: 1;
}

.youtube-playlist-item.hidden {
    display: none;
}

.youtube-playlist-item.visible {
    display: flex;
}

.youtube-playlist-item.active {
    background-color: rgba(14, 4, 107, 0.1);
    border-left: 3px solid var(--primary-blue);
    opacity: 1;
}

.youtube-playlist-item:not(.active) {
    opacity: 0.7;
}

.youtube-playlist-item:not(.active):hover {
    opacity: 1;
    background-color: rgba(0,0,0,0.05);
}

.btn-show-more:hover {
    background: var(--dark-blue) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 4, 107, 0.3);
}

.btn-show-less:hover {
    background: var(--text-light) !important;
    background-color: #666 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.youtube-playlist-item:hover {
    background-color: rgba(0,0,0,0.05);
}

.youtube-thumbnail {
    position: relative;
    width: 168px;
    min-width: 168px;
    height: 94px;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}

.youtube-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.youtube-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.youtube-playlist-item:hover .youtube-play-overlay {
    opacity: 1;
}

.youtube-playlist-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0.25rem;
}

.youtube-playlist-info h5 {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    line-height: 1.3;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.youtube-channel {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
}

/* Responsive pour mobile */
@media (max-width: 968px) {
    .youtube-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .youtube-sidebar {
        order: 2;
    }
    
    .youtube-main {
        order: 1;
    }
    
    .youtube-playlist {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .youtube-playlist-item {
        flex-direction: column;
    }
    
    .youtube-thumbnail {
        width: 100%;
        height: auto;
        padding-bottom: 56.25%;
        position: relative;
    }
    
    .youtube-thumbnail img {
        position: absolute;
        top: 0;
        left: 0;
    }
}
