/* =========================================================
   VARIABLES GLOBALES (IDENTITÉ VISUELLE)
========================================================= */
:root {
    --red-main: #B11226;
    --red-dark: #8F0E1D;
    --gray-dark: #1F2937;
    --gray-light: #F3F4F6;
    --white-soft: #FAFAFA;
    --accent-yellow: #FBBF24; /* Ajout d'une couleur d'accentuation */
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white-soft);
    color: var(--gray-dark);
    line-height: 1.6;
}


/* =========================================================
   HERO (PREMIÈRE IMPRESSION)
========================================================= */
.hero {
    padding: 8rem 1.5rem 6rem; /* Padding augmenté */
    background: linear-gradient(135deg, var(--red-dark), var(--red-main));
    color: white;
    position: relative;
    overflow: hidden;
}

/* Effet de fond optionnel (forme abstraite) */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%238F0E1D' fill-opacity='0.3' d='M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,128C672,107,768,85,864,96C960,107,1056,149,1152,154.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    opacity: 0.4;
    pointer-events: none;
}


.hero-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    gap: 4rem; /* Espacement augmenté */
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hero p {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA GÉNÉRIQUE */
.cta {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* CTA HERO (Primaire) */
.hero .cta {
    background: var(--accent-yellow); /* Utilisation de la couleur d'accentuation */
    color: var(--gray-dark);
}

.hero .cta:hover {
    background: #e5a910; /* Jaune légèrement plus foncé */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.hero-image img {
    width: 100%;
    border-radius: 1.5rem; /* Rayon plus grand */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* Ombre plus prononcée */
    transform: rotate(-2deg); /* Légère rotation pour le dynamisme */
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: rotate(0deg) scale(1.02); /* Effet au survol */
}


/* =========================================================
   SECTIONS GÉNÉRIQUES
========================================================= */
section {
    scroll-margin-top: 100px; /* Ajusté */
}

.section {
    padding: 5rem 1.5rem; /* Padding augmenté */
    max-width: 1000px;
    margin: auto;
    text-align: center;
}

.section.alt {
    background: white;
}

.section h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--red-main);
}

.section p {
    max-width: 720px;
    margin: auto;
    font-size: 1.1rem;
    color: var(--gray-dark);
}

/* =========================================================
   FEATURES (POURQUOI NOUS)
========================================================= */
.features {
    list-style: none;
    margin-top: 3rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Grille responsive */
}

.features li {
    background: white;
    padding: 1.5rem;
    border-radius: 0.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: left;
    display: flex;
    align-items: flex-start;
}

.features li::before {
    content: '✔️';
    margin-right: 0.8rem;
    color: var(--red-main);
    font-size: 1.2rem;
    flex-shrink: 0;
}


/* =========================================================
   STEPS (COMMENT ÇA MARCHE)
========================================================= */
.steps {
    margin-top: 3rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.steps div {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* Numéro d'étape stylisé */
.steps div strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--red-main);
}

/* =========================================================
   FORMULAIRE D’INSCRIPTION
========================================================= */
.cta-final {
    background: var(--red-dark); /* Changement de fond pour plus d'impact */
    color: white;
    border-radius: 1.5rem;
    padding: 4rem 1.5rem;
    margin: 4rem auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 800px;
}

.cta-final h2 {
    color: white; /* Titre en blanc */
}

.form {
    max-width: 500px; /* Légèrement plus large */
    margin: 2.5rem auto 0;
    display: grid;
    gap: 1rem;
}

.form input,
.form textarea {
    padding: 1rem; /* Padding plus grand */
    border-radius: 0.5rem;
    border: 2px solid transparent; /* Bordure transparente par défaut */
    background: white;
    font-size: 1rem;
    color: var(--gray-dark);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form textarea {
    resize: vertical;
    min-height: 120px;
}

.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--accent-yellow); /* Focus avec la couleur d'accent */
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.3); /* Ombre jaune */
}

/* BOUTON ENVOYER */
.form button {
    background: var(--accent-yellow);
    color: var(--gray-dark);
    border: none;
    padding: 1.2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form button:hover {
    background: #e5a910;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.success {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--accent-yellow); /* Succès en jaune sur fond rouge */
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
}

/* =========================================================
   ACCESSIBILITÉ & MICRO-UX
========================================================= */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent-yellow); /* Focus en jaune */
    outline-offset: 3px;
}

/* =========================================================
   DESKTOP & RESPONSIVE
========================================================= */
@media (min-width: 768px) {
    .section h2 {
        font-size: 2.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (min-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        text-align: left;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        margin-left: 0;
        margin-right: 0;
    }

    .steps {
        grid-template-columns: repeat(3, 1fr); /* Force 3 colonnes sur desktop */
    }
}

/* --- AJOUTS CSS POUR LE NOUVEAU DESIGN --- */

/* Badge Nouveau */
.badge {
    background: #FEF3C7;
    color: #D97706;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--red-main);
    position: relative;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--accent-yellow);
    opacity: 0.3;
    z-index: -1;
    transform: rotate(-1deg);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cta.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Trust Badges */
.trust-badges {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Stats Strip */
.stats-strip {
    background: var(--gray-dark);
    color: white;
    display: flex;
    justify-content: space-around;
    padding: 3rem 1rem;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 2.5rem;
    color: var(--accent-yellow);
    font-weight: 800;
}

/* Pricing Cards */
.bg-gray {
    background: var(--gray-light);
}

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

.price-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.price-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-yellow);
}

.price-card.popular {
    border: 2px solid var(--red-main);
    transform: scale(1.05);
    z-index: 2;
}

.price-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.badge-pop {
    background: var(--red-main);
    color: white;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-dark);
    margin: 1rem 0;
}

.price small {
    font-size: 1rem;
    color: #6b7280;
}

.price-features {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
}

.price-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.price-features li.disabled {
    color: #9ca3af;
    text-decoration: line-through;
}

.btn-full, .btn-outline {
    display: block;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.btn-full {
    background: var(--red-main);
    color: white;
}

.btn-full:hover {
    background: var(--red-dark);
}

.btn-outline {
    border: 2px solid var(--gray-dark);
    color: var(--gray-dark);
}

.btn-outline:hover {
    background: var(--gray-dark);
    color: white;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 1rem;
    transition: 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

/* Modern Steps */
.steps-modern {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.step-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--white-soft);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

/* Testimonials */
.bg-dark {
    background: var(--gray-dark);
    color: white;
}

.bg-dark h2 {
    color: white;
}

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

.testimonial {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    font-style: italic;
}

.testimonial .user {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    font-style: normal;
}

.testimonial img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* Footer */
.footer {
    background: #111827;
    color: #9ca3af;
    padding: 3rem 1.5rem;
    text-align: center;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer strong {
    color: white;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .trust-badges {
        justify-content: center;
    }

    .stats-strip {
        gap: 1rem;
    }

    .stat-item {
        width: 45%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

/* --- NAVBAR & LAYOUT --- */
.nav-container {
    max-width: 1100px;
    margin: auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Espacement entre les éléments */
}

/* --- LIENS CLASSIQUES --- */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--red-main);
}

/* --- BOUTON CTA (S'INSCRIRE) --- */
.nav-cta {
    background: var(--red-main);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem; /* Forme de pilule */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(177, 18, 38, 0.2);
}

.nav-cta:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(177, 18, 38, 0.3);
}

/* --- DROPDOWN LANGUES --- */
.lang-dropdown {
    position: relative;
    z-index: 100;
}

/* Le bouton visible */
.lang-btn {
    background: transparent;
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.8rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    color: var(--gray-dark);
    transition: all 0.2s;
}

.lang-btn:hover {
    background: var(--gray-light);
    border-color: #d1d5db;
}

.lang-btn .chevron {
    transition: transform 0.2s;
    opacity: 0.6;
}

/* La liste déroulante */
.lang-list {
    position: absolute;
    top: 120%; /* Juste en dessous du bouton */
    right: 0;
    background: white;
    min-width: 160px;
    border-radius: 0.6rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
    border: 1px solid #f3f4f6;

    /* Animation simple */
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: all 0.2s ease;
}

/* Affichage au survol */
.lang-dropdown:hover .lang-list {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.lang-dropdown:hover .chevron {
    transform: rotate(180deg);
}

/* Éléments de la liste */
.lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: var(--gray-dark);
    font-size: 0.9rem;
    transition: background 0.2s;
}

.lang-item:hover {
    background: var(--gray-light);
    color: var(--red-main);
}

.lang-item.active {
    background: #FEF2F2; /* Rouge très pâle */
    color: var(--red-main);
    font-weight: 700;
}

/* Ajustement des drapeaux */
.flag-icon {
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
    width: 1.2em;
    line-height: 1em;
}

/* RESPONSIVE: Cacher les liens textes sur mobile pour garder le layout propre */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-right {
        gap: 0.8rem;
    }

    .lang-btn span {
        display: none;
    }

    /* Montre juste le drapeau sur mobile */
}

.nav-login {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--red-main);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-login:hover {
    background-color: rgba(177, 18, 38, 0.08);
    color: var(--red-main);
}

.nav-login-icon {
    font-size: 0.95rem;
    opacity: 0.85;
}

