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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #ffffff;
}

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

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

/* ========== HEADER ========== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
  display: flex;
  align-items: center;        /* aligne verticalement l'image et le texte */
  gap: 0.6rem;               /* espace entre l'image et le texte */
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a365d;
  text-decoration: none;
}

.logo img {
  height: 50px;              /* hauteur fixe, largeur auto pour garder les proportions */
  width: auto;
}

.logo span {
  color: #e67e22;
  font-weight: 600;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-list a {
    color: #2d3748;
    transition: color 0.2s;
}

.nav-list a:hover {
    color: #e67e22;
}

.btn-login {
    background: #1a365d;
    color: #fff !important;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: background 0.3s;
    font-weight: 600;
}

.btn-login:hover {
    background: #e67e22;
    color: #fff;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #1a365d;
    border-radius: 3px;
    transition: 0.3s;
}

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

    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-list {
        flex-direction: column;
        padding: 1.5rem 0;
        gap: 1rem;
    }
}

/* ========== SECTIONS COMMUNES ========== */
.section {
    padding: 6rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #e67e22;
    margin-top: 0.5rem;
    border-radius: 2px;
}

.section-subtitle {
    color: #718096;
    font-size: 1.1rem;
    max-width: 600px;
}

/* ========== BOUTONS ========== */
.btn-primary {
    display: inline-block;
    background: #e67e22;
    color: #fff;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #d35400;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #1a365d;
    border: 2px solid #1a365d;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #1a365d;
    color: #fff;
}

/* ========== HERO ========== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.9) 0%, rgba(26, 54, 93, 0.7) 100%),
                url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    color: #fff;
    margin-top: 80px; /* compensation header fixe */
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1 1 500px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text .highlight {
    color: #e67e22;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1 1 400px;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ========== AVANTAGES ========== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: #1a365d;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
}

.feature-card h3 {
    margin-bottom: 0.8rem;
    color: #1a365d;
}

/* ========== PROGRAMME ========== */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.program-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.program-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.program-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.program-card-body {
    padding: 1.5rem;
}

.program-card-body h4 {
    color: #1a365d;
    margin-bottom: 0.5rem;
}

.program-card-body ul {
    list-style: none;
    margin-top: 0.8rem;
}

.program-card-body ul li {
    margin-bottom: 0.4rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.program-card-body ul li i {
    color: #e67e22;
    font-size: 0.8rem;
}

/* ========== TÉMOIGNAGES ========== */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    font-style: italic;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: #e67e22;
    line-height: 1;
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: serif;
}

.testimonial-author {
    margin-top: 1.5rem;
    font-weight: 600;
    color: #1a365d;
    font-style: normal;
}

/* ========== CTA ========== */
.cta {
    background: #1a365d;
    color: #fff;
    text-align: center;
    border-radius: 20px;
    padding: 4rem 2rem;
    margin: 4rem auto;
    max-width: 1000px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.cta h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta .btn-primary {
    background: #e67e22;
    font-size: 1.1rem;
    padding: 1rem 2.8rem;
}

/* ========== FOOTER ========== */
.main-footer {
    background: #1a202c;
    color: #cbd5e0;
    padding: 4rem 2rem 1rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #cbd5e0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #e67e22;
}

.social-links a {
    font-size: 1.3rem;
    margin-right: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #2d3748;
    color: #718096;
}

/* ========== RESPONSIVE GLOBAL ========== */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .section {
        padding: 4rem 1.5rem;
    }
}
