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

.hero-section {
    position: relative;
    width: 100vw;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 0;
    margin-top: 0
}

.hero-section+* {
    margin-top: 0 !important
}

.navbar {
    flex-shrink: 0
}

footer {
    margin-top: 0 !important;
    flex-shrink: 0
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: 2
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    max-width: 1200px;
    padding: 1.5rem;
    margin: 0 auto
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, .8), 2px 2px 4px rgba(0, 0, 0, .9), 1px 1px 2px #000, 0 0 20px rgba(0, 0, 0, .7), 0 0 40px rgba(0, 0, 0, .5);
    line-height: 1.2;
    color: #fff
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .8), 1px 1px 2px rgba(0, 0, 0, .9), 0 0 15px rgba(0, 0, 0, .7), 0 0 30px rgba(0, 0, 0, .5)
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, .8), 0 0 10px rgba(0, 0, 0, .6), 0 0 20px rgba(0, 0, 0, .4);
    width: 100%;
    margin-left: auto;
    margin-right: auto
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all .3s ease;
    border: 2px solid transparent;
    max-width: none
}

.btn-primary {
    background: linear-gradient(135deg, #004e92, #06c);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 78, 146, .3)
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 78, 146, .4)
}

.btn-secondary {
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .2)
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .95);
    color: #004e92;
    transform: translateY(-2px);
    border-color: #fff;
    box-shadow: 0 8px 25px rgba(255, 255, 255, .3)
}

.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap
}

.hero-stats .stat-card {
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    text-align: center;
    min-width: 120px;
    transition: transform .3s ease
}

.hero-stats .stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, .2)
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    display: block;
    margin-bottom: .5rem
}

.hero-stats .stat-label {
    font-size: .9rem;
    color: #e3f2fd;
    font-weight: 500
}

.hero-sectors {
    margin-top: 3rem;
    text-align: center
}

.sectors-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .7)
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto
}

.sector-item {
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem
}

.sector-item i {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: .5rem
}

.sector-item span {
    font-size: .9rem;
    font-weight: 500;
    color: #fff;
    text-align: center;
    line-height: 1.3
}

.actualites-section {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .1)
}

.actualites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem
}

.actualites-card {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    position: relative;
    cursor: pointer;
    transition: all .3s ease;
    overflow: hidden;
    border: 1px solid rgba(0, 78, 146, .1);
    border-left: 4px solid #004e92;
    display: flex;
    flex-direction: column;
    height: 100%
}

.actualites-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
    border-color: rgba(0, 78, 146, .2);
    outline: 0
}

.actualites-card-image {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #004e92, #06c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden
}

.actualites-card-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    position: relative
}

.actualites-card h3 {
    font-size: 1rem;
    color: #000428;
    margin-bottom: .6rem;
    font-weight: 600;
    line-height: 1.3
}

.actualites-card p {
    font-size: .95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: .8rem
}

.actualites-card-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .6rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: .8rem;
    color: #666;
    margin-top: auto
}

.actualites-card-date {
    display: flex;
    align-items: center;
    gap: .5rem
}

.actualites-card.event {
    border-left-color: #ff6b35
}

.actualites-card.event .actualites-card-image {
    background: linear-gradient(135deg, #ff6b35, #ff8c42)
}

.actualites-card.results {
    border-left-color: #28a745
}

.actualites-card.results .actualites-card-image {
    background: linear-gradient(135deg, #28a745, #34ce57)
}

.actualites-card.partnership {
    border-left-color: #6f42c1
}

.actualites-card.partnership .actualites-card-image {
    background: linear-gradient(135deg, #6f42c1, #8e44ad)
}

.actualites-card.project {
    border-left-color: #17a2b8
}

.actualites-card.project .actualites-card-image {
    background: linear-gradient(135deg, #17a2b8, #20c997)
}

.actualites-card.general {
    border-left-color: #004e92
}

.actualites-card.general .actualites-card-image {
    background: linear-gradient(135deg, #004e92, #06c)
}

.actualites-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .8);
    z-index: 2000;
    overflow: auto;
    padding: 2rem 1rem;
    backdrop-filter: blur(5px)
}

.actualites-modal.active {
    display: flex;
    align-items: center;
    justify-content: center
}

.actualites-modal-content {
    background: #fff;
    border-radius: 20px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3)
}

.actualites-modal-header {
    background: linear-gradient(135deg, #004e92, #06c);
    color: #fff;
    padding: 1.2rem 2rem;
    border-radius: 20px 20px 0 0;
    position: relative
}

.actualites-modal-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600
}

.actualites-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, .2);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all .3s ease
}

.actualites-modal-close:hover {
    background: rgba(255, 255, 255, .3);
    transform: scale(1.1)
}

.actualites-modal-body {
    padding: 1.5rem
}

.actualites-modal-body p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem
}

.actualites-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: .9rem;
    color: #666
}

.actualites-modal-date {
    display: flex;
    align-items: center;
    gap: .5rem
}

@media(max-width:800px) {
    body {
        min-height: 100vh;
        overflow-y: auto
    }

    .hero-section {
        width: 100vw;
        min-height: calc(100vh - 70px - 100px);
        margin-left: calc(-50vw + 50%);
        margin-bottom: 0
    }

    .hero-content {
        padding: 1rem;
        max-width: 90%;
        overflow-y: visible
    }

    .hero-title {
        font-size: 2.5rem
    }

    .hero-subtitle {
        font-size: 1.2rem
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center
    }

    .hero-stats {
        gap: 1rem
    }

    .hero-stats .stat-card {
        padding: 1rem 1.5rem;
        min-width: 100px
    }

    .hero-stats .stat-number {
        font-size: 2rem
    }

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

    .sector-item {
        padding: .8rem
    }

    .sector-item i {
        font-size: 1.5rem
    }

    .sector-item span {
        font-size: .8rem
    }

    .actualites-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:1200px) {
    .actualites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem
    }
}

/* Fix couleur CTA Découvrir nos formations */
.hero-buttons .btn-primary,
.hero-buttons .btn-primary:hover,
.hero-buttons .btn-primary:focus {
    color: #fff !important;
    text-decoration: none !important
}

.hero-buttons .btn-primary i,
.hero-buttons .btn-primary span,
.hero-buttons .btn-primary:hover i,
.hero-buttons .btn-primary:hover span,
.hero-buttons .btn-primary:focus i,
.hero-buttons .btn-primary:focus span {
    color: #fff !important
}

.hero-buttons .btn-primary i::before,
.hero-buttons .btn-primary:hover i::before,
.hero-buttons .btn-primary:focus i::before {
    color: #fff !important
}

/* CTA home: hover tweaks */
.hero-buttons .btn-primary:hover,
.hero-buttons .btn-primary:focus {
    background: linear-gradient(135deg, #003a75, #0052a6) !important
}

.hero-buttons .btn-primary:hover i,
.hero-buttons .btn-primary:hover span,
.hero-buttons .btn-primary:focus i,
.hero-buttons .btn-primary:focus span {
    color: #fff !important
}

.hero-buttons .btn-secondary:hover,
.hero-buttons .btn-secondary:focus {
    text-decoration: none !important
}