/* ===== NOTRE MISSION ===== */
.mission-section {
    position: relative;
    background: #ffffff;
    overflow: visible;
}

.mission-band {
    position: relative;
    min-height: 215px;
    background: #ea580c;
    overflow: visible;
}

.mission-container {
    width: 100%;
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    min-height: 215px;
    display: flex;
    align-items: center;
    overflow: visible;
}

.mission-content {
    position: relative;
    z-index: 3;
    width: min(640px, 100%);
    padding: 28px 0 25px;
}

.mission-label {
    margin-bottom: 2px;
    color: #172033;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
}

.mission-text {
    margin: 0;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    line-height: 1.37;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.mission-text strong {
    font-weight: 800;
}

.mission-image-clip {
    position: absolute;
    z-index: 4;
    width: 360px;
    height: 267px;
    right: 70px;
    top: -52px;
    overflow: hidden;
    pointer-events: none;
}

.mission-image {
    display: block;
    position: absolute;
    width: 360px;
    max-width: none;
    height: auto;
    right: 0;
    top: 0;
    pointer-events: none;
    user-select: none;
}

.mission-section::after {
    content: "";
    display: block;
    height: 36px;
    background: #f8fafc;
}

@media (max-width: 1100px) {
    .mission-image-clip {
        width: 320px;
        height: 257px;
        right: 20px;
        top: -42px;
    }
    .mission-image { width: 320px; }
    .mission-content { width: min(600px, calc(100% - 250px)); }
    .mission-text { font-size: 18px; }
}

@media (max-width: 768px) {
    .mission-band, .mission-container { min-height: 255px; }
    .mission-container { padding: 0 24px; align-items: flex-end; }
    .mission-content { width: 100%; padding: 95px 0 24px; }
    .mission-label { font-size: 14px; }
    .mission-text { font-size: 16px; line-height: 1.42; max-width: 100%; }
    .mission-image-clip { width: 230px; height: 192px; right: 8px; top: -38px; }
    .mission-image { width: 230px; }
}

@media (max-width: 480px) {
    .mission-band, .mission-container { min-height: 300px; }
    .mission-container { padding: 0 20px; }
    .mission-content { padding-top: 105px; }
    .mission-image-clip { width: 190px; height: 160px; right: 0; top: -30px; }
    .mission-image { width: 190px; }
    .mission-text { font-size: 15px; line-height: 1.43; }
    .mission-section::after { height: 24px; }
}

/* ===== CORRECTIONS CSS SPÉCIFIQUES SLIDER & MOBILE ===== */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    transform: scale(1); /* Point de départ du zoom */
}

.hero-slide.active {
    opacity: 1;
    /* Animation de zoom progressif sur la durée du slide (6 secondes) */
    animation: kenBurnsZoom 6s ease-out forwards;
}

/* Définition de l'effet de zoom avant (Ken Burns) */
@keyframes kenBurnsZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08); /* Zoom subtil de 8% */
    }
}

.hero-gradient {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.5) 50%, rgba(15, 23, 42, 0.8) 100%);
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: #ea580c;
    width: 30px;
    border-radius: 5px;
}

.slider-dot:hover {
    background-color: rgba(234, 88, 12, 0.8);
}

/* CORRECTION CRITIQUE : Afficher TOUT le texte du sous-titre, sans troncature, même sur mobile */
@media (max-width: 768px) {
    #hero-subtitle {
        display: block !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: horizontal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: normal !important;
        max-height: none !important;
    }
}

/* ===== NOS PARTENAIRES ===== */
.partners-section {
    position: relative;
    background: #ffffff;
    padding: 88px 0 92px;
    overflow: hidden;
}

.partners-section::before {
    content: "";
    position: absolute;
    top: -140px;
    left: 50%;
    width: 420px;
    height: 420px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(234, 88, 12, 0.07) 0%, rgba(234, 88, 12, 0) 70%);
    pointer-events: none;
}

.partners-heading {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 48px;
}

.partners-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #ea580c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.partners-kicker::before,
.partners-kicker::after {
    content: "";
    width: 28px;
    height: 1.5px;
    background: #ea580c;
    opacity: 0.8;
}

.partners-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.partners-subtitle {
    max-width: 650px;
    margin: 14px auto 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}

.partners-marquee {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
    padding: 18px 0 28px;
    mask-image: linear-gradient(to right, transparent 0, black 7%, black 93%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 7%, black 93%, transparent 100%);
}

.partners-track {
    display: flex;
    width: max-content;
    gap: 18px;
    animation: partnersScroll 28s linear infinite;
    will-change: transform;
}

.partners-marquee:hover .partners-track,
.partners-marquee:focus-within .partners-track {
    animation-play-state: paused;
}

@keyframes partnersScroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 9px)); }
}

.partner-card {
    position: relative;
    flex: 0 0 190px;
    width: 190px;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.045);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.partner-card:hover,
.partner-card:focus-within {
    transform: translateY(-7px);
    border-color: rgba(234, 88, 12, 0.35);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.11);
}

.partner-logo {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    display: block;
    width: auto;
    max-width: 145px;
    height: auto;
    max-height: 62px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.72;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.partner-card:hover .partner-logo img,
.partner-card:focus-within .partner-logo img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.06);
}

/* ===== TOOLTIP PARTENAIRES ===== */
.partner-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    z-index: 30;
    width: max-content;
    max-width: 220px;
    padding: 9px 13px;
    border-radius: 9px;
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 7px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    white-space: nowrap;
}

.partner-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 10px;
    height: 10px;
    background: #0f172a;
    transform: translateX(-50%) rotate(45deg);
}

.partner-card:hover .partner-tooltip,
.partner-card:focus-within .partner-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.partner-card.tooltip-active .partner-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.partner-placeholder {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .partners-section { padding: 68px 0 72px; }
    .partners-heading { margin-bottom: 30px; }
    .partners-subtitle { padding: 0 12px; font-size: 14px; }
    .partners-track { gap: 12px; animation-duration: 22s; }
    .partner-card { flex-basis: 155px; width: 155px; height: 112px; padding: 16px 12px; border-radius: 14px; }
    .partner-logo { height: 60px; }
    .partner-logo img { max-width: 115px; max-height: 52px; }
    
    .partner-tooltip {
        bottom: auto;
        top: calc(100% + 8px);
        transform: translate(-50%, -5px);
        white-space: normal;
    }

    .partner-tooltip::after {
        top: -5px;
        bottom: auto;
    }

    .partner-card:hover .partner-tooltip,
    .partner-card:focus-within .partner-tooltip,
    .partner-card.tooltip-active .partner-tooltip {
        transform: translate(-50%, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .partners-track { animation: none; }
}

/* ===== MODULE OVERLAPPING ===== */
.overlap-module-wrapper {
    position: relative;
    z-index: 20;
    margin-top: -50px;
    margin-bottom: 100px;
    padding: 0 24px;
}

.overlap-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.overlap-content {
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.overlap-text h3 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.overlap-text p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 32px;
}

.overlap-video {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: #0f172a;
}

.overlap-video img,
.overlap-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

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

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(234, 88, 12, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.4);
    z-index: 10;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(234, 88, 12, 1);
}

.video-play-btn svg {
    width: 32px;
    height: 32px;
    fill: white;
    margin-left: 4px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #ea580c;
    color: white;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.read-more-btn:hover {
    background: #c2410c;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.3);
}

@media (max-width: 968px) {
    .overlap-content {
        grid-template-columns: 1fr;
        padding: 40px;
        gap: 32px;
    }
    .overlap-text h3 {
        font-size: 26px;
    }
}

@media (max-width: 640px) {
    .overlap-module-wrapper {
        margin-top: -60px;
        margin-bottom: 80px;
        padding: 0 16px;
    }
    .overlap-content {
        padding: 24px;
    }
    .overlap-text h3 {
        font-size: 22px;
    }
}

/* ===== SECTION AVANTAGES ===== */
.advantages-section {
    background: white;
    padding: 80px 0 100px;
}

.advantages-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.advantages-left h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 24px;
}

.advantages-left h2 .highlight-orange {
    color: #ea580c;
}

.advantages-intro {
    font-size: 17px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 540px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-item {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border-color: #e2e8f0;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: #c4e6fa;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: #1e81bd;
    stroke-width: 1.5;
    fill: none;
}

.service-name {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.advantages-right {
    position: relative;
}

.advantages-illustration {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
    .advantages-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .advantages-right {
        order: -1;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .advantages-section {
        padding: 60px 0 80px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== MODULE PROMOTIONNEL ===== */
.promo-module {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 80px 0 100px;
}

.promo-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 0.32fr 0.42fr 0.26fr;
    gap: 24px;
    align-items: stretch;
}

.promo-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
}

.promo-card-left {
    grid-row: span 1;
}

.promo-card-center {
    grid-row: span 1;
}

.promo-card-right-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.promo-card-inner {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.promo-card-dark {
    background: #0f172a;
    color: white;
}

.promo-card-light {
    background: white;
}

.promo-image-container {
    width: 100%;
    height: 280px;
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.promo-title .orange {
    color: #ea580c;
}

.promo-title .dark {
    color: #0f172a;
}

.promo-title .blue {
    color: #2563eb;
}

.promo-text {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.promo-card-dark .promo-text {
    color: #cbd5e1;
}

.promo-card-center .promo-title {
    font-size: 22px;
    margin-bottom: 8px;
}

.promo-card-center .promo-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #ea580c;
    margin-bottom: 16px;
}

.promo-card-center .promo-description {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 20px;
}

.promo-card-center .promo-note {
    font-size: 13px;
    font-weight: 700;
    color: #ea580c;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.promo-card-image-container {
    width: 100%;
    margin-top: auto;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-card-image {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    object-position: center;
    display: block;
}

@media (max-width: 1024px) {
    .promo-container {
        grid-template-columns: 1fr;
    }
    .promo-card-right-stack {
        flex-direction: row;
    }
    .promo-card-inner {
        min-height: 400px;
    }
}

@media (max-width: 640px) {
    .promo-module {
        padding: 60px 0 80px;
    }
    .promo-card-right-stack {
        flex-direction: column;
    }
    .promo-image-container {
        height: 220px;
    }
}

/* ===== SECTION ACTUALITÉS ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Line clamp pour tronquer le texte des articles (et non du hero) */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#featured-article-container,
#articles-grid-container,
#recent-articles-grid {
    width: 100%;
}

#featured-article-container article,
#articles-grid-container article,
#recent-articles-grid article {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

#featured-article-container article:hover,
#articles-grid-container article:hover,
#recent-articles-grid article:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

#featured-article-container article img,
#articles-grid-container article img,
#recent-articles-grid article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

#featured-article-container article:hover img,
#articles-grid-container article:hover img,
#recent-articles-grid article:hover img {
    transform: scale(1.05);
}

#featured-article-container .absolute.top-4,
#articles-grid-container .absolute.top-4,
#recent-articles-grid .absolute.top-4 {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ea580c;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}