/* Variables CSS basées sur la charte graphique */
:root {
    --bleu-nuit: #1A2B4C;
    --dore: #d7ae54;
    --vert: #4CAF50;
    --gris-clair: #F5F5F5;
    --noir-textuel: #333333;
    --gris-secondaire: #757575;
    --jaune-clair: #e8d4a8;

    --font-titre: 'Montserrat', sans-serif;
    --font-texte: 'Open Sans', sans-serif;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-texte);
    color: var(--noir-textuel);
    background-color: var(--gris-clair);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

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

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

/* Header Sticky */
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bleu-nuit);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar {
    padding: 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 30px;
}

/* Logo centré */
.logo-container {
    flex: 0 0 auto;
}

.logo {
    height: 60px;
    width: auto;
    display: block;
}

/* Menu principal */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-family: var(--font-titre);
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--dore);
}

.nav-item:not(.dropdown) .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--dore);
    transition: width 0.3s ease;
}

.nav-item:not(.dropdown) .nav-link:hover::after {
    width: 100%;
}

/* Menu déroulant */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bleu-nuit);
    min-width: 350px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 15px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(-10px);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-header {
    padding: 8px 25px;
    color: var(--dore);
    font-family: var(--font-titre);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    margin-bottom: 5px;
    pointer-events: none;
}

.dropdown-link {
    display: block;
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    font-family: var(--font-texte);
    font-size: 14px;
    font-weight: 400;
    transition: background-color 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
    text-transform: none;
    letter-spacing: normal;
}

.dropdown-link:hover {
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--dore);
    padding-left: 30px;
}

/* Bouton CTA dans le menu */
.nav-cta {
    flex: 0 0 auto;
}

/* Menu burger (mobile) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

/* Boutons */
.button {
    padding: 14px 35px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-titre);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.button:hover::before {
    width: 300px;
    height: 300px;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.button:active {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, var(--dore) 0%, #c99a45 100%);
    color: var(--bleu-nuit);
}

.button-secondary {
    background: linear-gradient(135deg, var(--vert) 0%, #3d8b40 100%);
    color: white;
}

.button-large {
    padding: 18px 45px;
    font-size: 18px;
    font-weight: 700;
}

/* Contenu principal */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Section Hero */
.hero-section {
    background: linear-gradient(135deg, var(--bleu-nuit) 0%, #2d4a7c 100%);
    color: white;
    padding: 140px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(215, 174, 84, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(76, 175, 80, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-titre);
    font-weight: 700;
    font-size: 56px;
    margin-bottom: 25px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 45px;
    color: rgba(255, 255, 255, 0.95);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Sections de contenu */
.content-section {
    padding: 100px 0;
    background-color: white;
    position: relative;
}

.content-section:nth-child(even) {
    background: linear-gradient(135deg, var(--gris-clair) 0%, #fafafa 100%);
}

.content-section h2 {
    font-family: var(--font-titre);
    font-weight: 700;
    font-size: 42px;
    margin-bottom: 40px;
    color: var(--bleu-nuit);
    position: relative;
    display: inline-block;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--dore) 0%, var(--vert) 100%);
    border-radius: 2px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--bleu-nuit) 0%, #1a2438 100%);
    color: white;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--dore) 50%, transparent 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    margin-bottom: 20px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.footer-badge {
    margin-top: 20px;
}

.ia-act-badge-footer {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.ia-act-badge-footer:hover {
    transform: scale(1.05);
}

.footer-title {
    font-family: var(--font-titre);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--dore);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--dore);
}

.footer-cta {
    margin-top: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-legal-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--dore);
}

/* Classes utilitaires de la charte */
.highlight {
    background-color: var(--jaune-clair);
    padding: 2px 5px;
    border-radius: 3px;
}

a {
    color: var(--vert);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    color: var(--dore);
    text-decoration: underline;
}

.surlignage-example {
    border-left: 4px solid var(--dore);
    padding-left: 15px;
    margin: 15px 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-menu {
        gap: 25px;
    }

    .nav-link {
        font-size: 14px;
    }

    .hero-title {
        font-size: 36px;
    }

    .content-section h2 {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-content {
        flex-wrap: wrap;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

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

    .nav-item {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        padding: 15px 0;
    }

    .nav-cta {
        display: none;
    }

    /* Menu déroulant mobile */
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: 100%;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.2);
        display: none;
        margin-top: 10px;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-link {
        padding: 12px 20px;
        font-size: 13px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .button {
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-legal {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 45px;
    }

    .hero-section {
        padding: 80px 0 60px;
    }

    .content-section {
        padding: 50px 0;
    }

    .content-section h2 {
        font-size: 24px;
    }
}

/* Section Partenaires */
.partners-section {
    background: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--vert) 0%, var(--dore) 50%, var(--vert) 100%);
}

.partners-header {
    text-align: center;
    margin-bottom: 60px;
}

.partners-header h2 {
    font-family: var(--font-titre);
    font-weight: 700;
    font-size: 36px;
    color: var(--bleu-nuit);
    margin-bottom: 15px;
}

.partners-header p {
    font-size: 18px;
    color: var(--gris-secondaire);
    max-width: 600px;
    margin: 0 auto;
}

/* Carrousel des partenaires */
.partners-carousel {
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.partners-track {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 40px;
    align-items: center;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.partner-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 180px;
    flex-shrink: 0;
    width: 280px;
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--dore);
}

.partner-card img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Responsive Partenaires */
@media (max-width: 768px) {
    .partners-section {
        padding: 60px 0;
    }

    .partners-header h2 {
        font-size: 28px;
    }

    .partners-header p {
        font-size: 16px;
    }

    .partners-carousel {
        max-width: 100%;
        margin: 0 20px;
    }
    
    .partners-track {
        gap: 20px;
        animation-duration: 25s;
    }
    
    .partner-card {
        padding: 30px 20px;
        min-height: 140px;
        width: 240px;
    }

    .partners-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .partner-card img {
        max-height: 80px;
    }
}
