:root {
    --primary-color: #003459;
    --secondary-color: #FFC700;
    --background-color: #FAF5EB;
    --text-color: #003459;
    --footer-bg: #003459;
    --footer-text: #FAF5EB;
    --button-bg: #FFC700;
    --button-text: #003459;
    --button-hover-bg: #003459;
    --button-hover-text: #FAF5EB;
    --light-gray: #FFF8E7;
    --white: #ffffff;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background-color: var(--background-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transform: translateY(-100%);
    animation: slideDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(250, 245, 235, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    position: relative;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--white);
    animation: pulse 2s infinite;
    position: relative;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

.logo-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--white);
    border-radius: 50%;
    animation: rotate 8s linear infinite;
    opacity: 0.3;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0;
    padding-left: 0.5rem;
}

/* Style alternatif pour le logo */
.logo-text.alt {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 52, 89, 0.2);
    position: relative;
}

.logo-text.alt::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.7;
}

.logo-text.alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.1;
}

@keyframes logoAppear {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects */
.logo-text:hover {
    text-shadow: 0 0 30px rgba(0, 52, 89, 0.2);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.logo-text.alt:hover {
    text-shadow: 0 0 25px rgba(0, 52, 89, 0.3);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Suppression des règles de soulignement */
.logo-text::after,
.logo-container:hover .logo-text::after {
    display: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Navigation */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    width: 30px;
    height: 30px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: 0.3s;
    position: absolute;
    left: 2px;
}

.menu-toggle span:nth-child(1) {
    top: 5px;
}

.menu-toggle span:nth-child(2) {
    top: 13px;
}

.menu-toggle span:nth-child(3) {
    top: 21px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 13px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 13px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
    position: relative;
}

.nav-links a {
    color: var(--primary-color);
    font-weight: 600;
    background: transparent;
    border-radius: 20px;
    transition: color 0.3s, background 0.3s;
    padding: 0.5rem 1.2rem;
    font-size: 1.08rem;
    cursor: pointer;
    display: inline-block;
    margin-right: 0.3rem;
    text-decoration: none;
}

.nav-links li:last-child a {
    margin-right: 0;
}

.nav-links a.active {
    background: var(--secondary-color);
    color: var(--primary-color) !important;
}

.nav-links a:hover:not(.active) {
    color: var(--secondary-color);
    background: transparent;
}

/* Hero Section */
.hero {
    padding: 8rem 0;
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    display: flex;
    align-items: center;
    gap: 5rem;
    position: relative;
    animation: fadeInUp 1s ease-out forwards;
}

.hero-left {
    flex: 1;
    text-align: left;
    align-self: center;
}

.hero-right {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: slideInRight 1s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-image {
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
    width: 100%;
    max-width: 800px;
}

.hero-image img, .hero-masked-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    animation: none;
    transition: transform 0.5s ease;
    box-shadow: 0 15px 40px rgba(0, 52, 89, 0.15);
    border-radius: 15px;
    max-width: none;
}

.hero-svg {
    width: 100%;
    height: auto;
    display: block;
}

.hero-illustration {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    clip-path: path('M 100 50 C 120 20, 180 20, 200 50 C 220 80, 180 120, 150 100 C 120 80, 80 80, 100 50 Z');
}

.hero-image::before,
.hero-image::after {
    display: none !important;
    content: none !important;
}

.hero-tag {
    font-size: 1.8rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    animation: slideInLeft 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-tag::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 40%;
    height: 3px;
    background: var(--secondary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-tag:hover::after {
    width: 50%;
    transform: translateX(20%);
    box-shadow: 0 0 10px var(--secondary-color);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
}

.title-part {
    display: inline-block;
    margin: 0 0.2rem;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.title-part:nth-child(1) { animation-delay: 0.4s; }
.title-part:nth-child(2) { animation-delay: 0.6s; }
.title-part:nth-child(3) { animation-delay: 0.8s; }

.title-part.highlight {
    color: var(--secondary-color);
    position: relative;
}

/* Suppression de la soulignement */
.title-part.highlight::after {
    display: none;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
    font-weight: 500;
    opacity: 1;
    transform: none;
    animation: slideInRight 1s ease-out;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
    font-weight: 400;
    animation: fadeIn 1.2s ease-out 1s forwards;
    opacity: 0;
}

.hero-cta {
    margin-top: 3rem;
    animation: fadeIn 1.5s ease-out 1.2s forwards;
    opacity: 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.4rem 3.5rem;
    background-color: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 52, 89, 0.2);
    border: none;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 52, 89, 0.3);
    background-color: var(--button-hover-bg);
    color: var(--button-hover-text);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(10px);
}

/* Hero Section Features */
.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 6rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-features.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature {
    padding: 2.5rem;
    text-align: center;
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid rgba(0, 52, 89, 0.08);
    transform: translateY(0) scale(1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 52, 89, 0.1);
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 199, 0, 0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 52, 89, 0.2);
    border-color: rgba(255, 199, 0, 0.7);
}

.feature:hover::before {
    transform: translateX(100%);
}

.feature i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.feature:hover i {
    transform: scale(1.15);
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #FFC700;
}

.feature p {
    color: #003459;
    font-size: 0.9rem;
}

@keyframes highlightLine {
    to {
        transform: scaleX(1);
    }
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 70%;
    }
    50% {
        border-radius: 40% 30% 60% 70% / 70% 40% 30% 60%;
    }
    75% {
        border-radius: 70% 40% 30% 60% / 40% 50% 60% 30%;
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes tagLine {
    to {
        transform: scaleX(1);
    }
}

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

@keyframes rotate3D {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    25% {
        transform: rotateY(5deg) rotateX(2deg);
    }
    50% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    75% {
        transform: rotateY(-5deg) rotateX(-2deg);
    }
    100% {
        transform: rotateY(0deg) rotateX(0deg);
    }
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }

    .hero-content {
        gap: 2rem;
    }

    .hero-text {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .hero-left {
        text-align: center;
        align-self: center;
        margin-bottom: 3rem;
    }

    .hero-right {
        flex: none;
        width: 100vw;
        max-width: none;
        margin: 0 -15px;
    }

    .hero-image {
        width: 100%;
        max-width: none;
    }

    .hero-image img, .hero-masked-img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        max-width: none;
        border-radius: 0;
    }

    .hero-subtitle {
        margin: 0 auto;
    }

    .hero-tag {
        font-size: 1.8rem;
        letter-spacing: 1.5px;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        margin-bottom: 1.5rem;
    }

    .hero-cta {
        margin-top: 1.5rem;
    }

    .hero-image::before {
        width: 150%;
        height: 150%;
    }

    .hero-image::after {
        width: 140%;
        height: 140%;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--background-color);
        flex-direction: column;
        padding: 2rem 0;
        animation: slideDown 0.3s ease-out;
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
        padding: 0.8rem 0;
    }

    .nav-links a {
        display: inline-block;
        padding: 0.8rem 2rem;
        color: var(--primary-color);
        font-size: 1.2rem;
    }

    .nav-links a::before {
        border-radius: 20px;
    }

    .nav-links a.active {
        background: #FFC700;
        color: #003459 !important;
    }

    .nav-links a:hover:not(.active) {
        color: #FFC700;
        background: transparent;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .feature {
        padding: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
    }

    .menu-toggle span {
        background-color: #003459;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .hero-image {
        margin: 0 auto;
    }

    .hero-left {
        align-self: center;
    }

    .africa-ia-section {
        padding: 0.7rem 0 0.7rem 0;
    }
    .africa-ia-content {
        flex-direction: column;
        gap: 2rem;
    }
    .africa-ia-image img {
        max-width: 250px;
    }
    .africa-ia-text {
        text-align: center;
        margin: 0 auto;
    }
    .africa-ia-text h2 {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }
    .africa-ia-text h2::after {
        width: 50px;
        height: 3px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 0.5rem;
    }
    .africa-ia-text p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        max-width: 95vw;
    }
}

/* Featured Articles */
.featured-articles {
    padding: 4rem 0;
    background-color: var(--background-color);
}

.featured-articles h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--background-color);
    padding: 1.5rem 0;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .footer {
        padding: 1rem 0;
        margin-top: 3rem;
    }
}

/* Section Afrique IA */
.africa-ia-section {
    background: var(--background-color) !important;
    padding: 5rem 0;
}

.africa-ia-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    flex-wrap: wrap;
}

.africa-ia-text {
    flex: 1 1 400px;
    max-width: 600px;
    padding: 1rem 0;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.africa-ia-text.visible {
    opacity: 1;
    transform: translateX(0);
}

.africa-ia-text h2 {
    color: var(--secondary-color);
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.15;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    text-fill-color: initial;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.africa-ia-text h2.visible {
    opacity: 1;
    transform: translateY(0);
}

.africa-ia-text h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 5px;
    background: var(--secondary-color);
    border-radius: 2px;
    margin: 0.8rem 0 0 0;
    margin-left: 0;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.africa-ia-text h2.visible::after {
    opacity: 1;
    transform: scaleX(1);
}

.africa-ia-text p {
    color: var(--text-color);
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: 400;
    margin-bottom: 0;
    max-width: 520px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.6s, transform 0.6s ease 0.6s;
}

.africa-ia-text p.visible {
    opacity: 1;
    transform: translateY(0);
}

.africa-ia-text p strong {
    color: var(--primary-color);
    font-weight: 700;
}

.africa-ia-image {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.africa-ia-image img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 18px;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0, 52, 89, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.africa-ia-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 52, 89, 0.2);
}

/* Section Galerie d'images */
.gallery-section {
    background: var(--background-color);
    padding: 4rem 0;
    perspective: none;
    overflow: hidden;
}

.gallery-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    text-fill-color: initial;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-color);
    margin: 0 auto 3rem auto;
    font-weight: 400;
    max-width: 700px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.gallery-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    transform-style: flat;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.gallery-image {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    opacity: 0;
    transform: none;
    transition: opacity 0.8s ease, transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 52, 89, 0.08);
    padding: 1rem;
}

.gallery-image.visible {
    opacity: 1;
    transform: none;
}

.gallery-image img, .gallery-image .hero-masked-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    margin-bottom: 0.8rem;
}

.gallery-image:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 52, 89, 0.15);
}

.gallery-image:hover img, .gallery-image:hover .hero-masked-img {
    transform: scale(1.05);
}

.gallery-img-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.3rem 0;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.gallery-image.visible .gallery-img-title {
    opacity: 1;
    transform: translateY(0);
}

.gallery-img-desc {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    line-height: 1.6;
    max-width: 350px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}

.gallery-image.visible .gallery-img-desc {
    opacity: 1;
    transform: translateY(0);
}

/* Effet de parallaxe au scroll */
.gallery-image {
    will-change: transform, opacity;
}

@media (max-width: 900px) {
    .gallery-content {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        padding: 0 1rem;
    }
    
    .gallery-image {
        width: 100%;
        max-width: 450px;
        transform: none !important;
        transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.6s ease;
    }
    
    .gallery-image:hover {
        transform: scale(1.02);
        box-shadow: 0 10px 20px rgba(0, 52, 89, 0.1);
    }
    
    .gallery-image:hover img, .gallery-image:hover .hero-masked-img {
        transform: scale(1.03);
    }

    .gallery-img-title {
        font-size: 1.2rem;
        margin-top: 0.6rem;
    }

    .gallery-img-desc {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
}

.newsletter-section {
    background: linear-gradient(135deg, var(--background-color) 0%, #fff 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="%23003459" fill-opacity="0.05"/></svg>');
    opacity: 0.5;
    z-index: 1;
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 52, 89, 0.15);
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(0, 52, 89, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 52, 89, 0.2);
}

.newsletter-text {
    width: 100%;
    text-align: center;
}

.newsletter-text h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.newsletter-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.newsletter-text p {
    color: var(--text-color);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.newsletter-form {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    height: 50px;
    min-height: 50px;
    max-height: 50px;
    resize: none;
    box-sizing: border-box;
    padding: 0 1.5rem;
    border: 2px solid rgba(0, 52, 89, 0.1);
    border-radius: 25px;
    font-size: 1.1rem;
    outline: none;
    flex: 1 1 300px;
    background: #fff;
    transition: all 0.3s ease;
    min-width: 0;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(255, 199, 0, 0.1);
}

.newsletter-form button {
    padding: 0 2rem;
    height: 50px;
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 199, 0, 0.2);
}

.newsletter-form button:hover {
    background: var(--button-hover-bg);
    color: var(--button-hover-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 199, 0, 0.3);
}

.newsletter-socials {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.newsletter-socials span {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary-color);
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(0, 52, 89, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 52, 89, 0.1);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 52, 89, 0.2);
}

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

    .newsletter-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
        border-radius: 20px;
    }

    .newsletter-text h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .newsletter-text p {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-form input[type="email"],
    .newsletter-form button {
        width: 100%;
        height: 45px;
    }

    .newsletter-socials {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
}

/* Simple Footer */
.simple-footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}

.simple-footer p {
    margin: 0;
}

/* Section Vidéo */
.video-section {
    background: linear-gradient(135deg, var(--background-color) 0%, #fff 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="%23003459" fill-opacity="0.05"/></svg>');
    opacity: 0.5;
    z-index: 1;
}

.video-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.video-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 1rem;
}

.video-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.video-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    font-weight: 400;
}

.video-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 52, 89, 0.25);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0, 52, 89, 0.3);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #000;
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 52, 89, 0.2), transparent);
    z-index: 1;
    pointer-events: none;
}

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

.video-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
}

.video-feature {
    text-align: center;
    padding: 2.5rem 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 52, 89, 0.1);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 52, 89, 0.1);
}

.video-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.video-feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 52, 89, 0.15);
    border-color: var(--secondary-color);
}

.video-feature:hover::before {
    opacity: 0.05;
}

.video-feature i {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.video-feature:hover i {
    transform: scale(1.2) rotate(5deg);
}

.video-feature h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.video-feature p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .video-section {
        padding: 4rem 0;
    }

    .video-title {
        font-size: 2rem;
        padding-bottom: 0.8rem;
    }

    .video-title::after {
        width: 60px;
        height: 3px;
    }

    .video-description {
        font-size: 1.1rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .video-container {
        border-radius: 12px;
        margin: 0 1rem;
    }

    .video-wrapper {
        border-radius: 12px;
    }

    .video-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        margin-top: 4rem;
        width: 100%;
    }

    .video-feature {
        padding: 2rem 1.5rem;
        border-radius: 15px;
        margin: 0;
        width: 100%;
        box-shadow: 0 8px 20px rgba(0, 52, 89, 0.1);
        border: 1px solid rgba(0, 52, 89, 0.1);
    }

    .video-feature i {
        font-size: 2.4rem;
        margin-bottom: 1.2rem;
    }

    .video-feature h3 {
        font-size: 1.3rem;
    }

    .video-feature p {
        font-size: 1rem;
    }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Titres et accents */
h1, h2, h3, h4, h5, h6, .highlight, .article-meta .category {
    color: var(--secondary-color) !important;
}

/* Cartes et sections */
.articles-grid, .article-card, .featured-articles, .newsletter-section, .gallery-section, .video-section {
    background: var(--background-color) !important;
}

/* Assurer la cohérence des styles pour hero-masked-img si utilisé */
.hero-masked-img {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M121.089 0C174.339 0 200 65.9669 200 126.582C200 171.887 160.89 200 121.089 200C67.5113 200 0 187.57 0 126.582C0 53.4983 56.886 0 121.089 0Z" fill="black"/></svg>');
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M121.089 0C174.339 0 200 65.9669 200 126.582C200 171.887 160.89 200 121.089 200C67.5113 200 0 187.57 0 126.582C0 53.4983 56.886 0 121.089 0Z" fill="black"/></svg>');
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    background: transparent;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Ajout des styles pour le menu mobile */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
} 