/* --- VARIABLES ET STYLES GLOBAUX --- */
:root {
    --light-green-bg: #d7e1d5; 
    --dark-green-text: #32620e; 
    --grey-border: #d9d9d9;     
    
    --dark-blue-legacy: #0d2c4a; 
    --white: #ffffff;

    --font-body: 'Montserrat', sans-serif;
    --font-title: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden; /* Empêche le défilement horizontal */
}

body {
    margin: 0; 
    padding: 0; 
    font-family: var(--font-body);
    color: var(--dark-green-text);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

h1, h2, h3 {
    font-family: var(--font-title);
    color: var(--dark-green-text);
    line-height: 1.2;
}
h4 {
    font-family: var(--font-body);
    color: var(--dark-green-text);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 40px; }
h3 { font-size: 1.5rem; }

section {
    padding: 60px 0;
    position: relative;
}

/* --- HEADER --- */
.site-header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--grey-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-link {
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--dark-green-text);
    font-size: 1.2rem;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.site-header nav a {
    text-decoration: none;
    color: var(--dark-green-text);
    margin-left: 25px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.site-header nav a:hover {
    opacity: 0.7;
}

.cta-button {
    background: var(--dark-green-text);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--light-green-bg);
    color: var(--dark-green-text) !important;
}

/* --- MENU HAMBURGER --- */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    width: 30px;
    height: 3px;
    background-color: var(--dark-green-text);
    border-radius: 5px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}


/* --- HERO SECTION (AVEC ACCENTS ET VAGUE) --- */
#hero {
    background-color: var(--light-green-bg);
    text-align: center;
    padding-top: 60px;
    padding-bottom: 140px; /* Espace pour la vague en bas */
    position: relative;
    overflow: hidden;
}

#hero::before { /* Accent en haut à gauche */
    content: '';
    position: absolute;
    background-image: url('assets/img/feuilles-bg.png'); /* Correction du nom d'image */
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
    width: 220px;
    height: 220px;
    top: 2%;
    left: 2%;
    transform: rotate(-30deg);
}

#hero::after { /* Vague du bas */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Hauteur de la vague */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,20 350,100 500,60 C650,20 850,100 1000,60 L1000,100 L0,100 Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
    filter: drop-shadow(0 -2px 0 var(--dark-green-text)); /* Trait de contraste pour la vague */
    z-index: 2; /* S'assure que la vague est au-dessus de la feuille si elle se chevauche */
}

/* NOUVELLE RÈGLE pour la feuille en bas à droite */
.hero-leaf-bottom {
    position: absolute;
    bottom: 2%;
    right: 2%;
    width: 250px;
    height: 250px;
    background-image: url('assets/img/feuilles-bg.png'); /* Correction du nom d'image */
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(20deg) scaleX(-1);
    z-index: 1; /* S'assure que la feuille est en dessous du contenu principal et de la vague */
    pointer-events: none;
}


#hero .subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 20px auto 40px auto;
}

.hero-cta-button {
    display: inline-block;
    background: var(--dark-green-text);
    color: var(--white) !important;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.prototype-showcase {
    margin-top: 40px;
}

.prototype-showcase h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 3px solid var(--white);
}

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

.secondary-cta-button {
    background: transparent;
    border: 2px solid var(--dark-green-text);
    color: var(--dark-green-text);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.secondary-cta-button:hover {
    background: var(--dark-green-text);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


/* --- FEATURES SECTION --- */
#features { background: var(--white); }
.concept-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; text-align: left; }
.concept-intro h3 { margin-bottom: 15px; }
.concept-how ul { list-style: none; }
.concept-how ul li { padding-left: 25px; position: relative; margin-bottom: 10px; }
.concept-how ul li::before { content: '✓'; color: var(--dark-green-text); position: absolute; left: 0; font-weight: 700; }
.section-divider { text-align: center; margin: 60px 0; }
.section-divider h3 { display: inline-block; position: relative; }
.section-divider h3::before, .section-divider h3::after { content: ''; position: absolute; top: 50%; width: 100px; height: 1px; background: var(--grey-border); }
.section-divider h3::before { right: 100%; margin-right: 15px; }
.section-divider h3::after { left: 100%; margin-left: 15px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.feature-card { text-align: center; padding: 20px; background: var(--light-green-bg); border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.feature-card .icon { font-size: 2.5rem; margin-bottom: 15px; }

/* --- PROBLEM SOLUTION SECTION --- */
#problem-solution {
    background: var(--white);
    overflow: hidden;
}
#problem-solution::before {
    content: '';
    position: absolute;
    top: -20px;
    right: 5%;
    width: 180px;
    height: 180px;
    background-image: url('assets/img/feuilles-bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(25deg) scaleX(-1);
    opacity: 0.7;
    z-index: 1;
}
.storytelling-text {
    max-width: 800px;
    margin: 20px auto 0 auto;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.8;
    background-color: var(--white);
    border-left: 5px solid var(--dark-green-text);
    padding: 2em 2.5em;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
    position: relative;
}
.storytelling-text p {
    margin-bottom: 1.5em;
    position: relative;
}
.storytelling-text::before {
    content: '“';
    position: absolute;
    top: 0.2em;
    left: 0.1em;
    font-family: var(--font-title);
    font-size: 6em;
    color: var(--light-green-bg);
    line-height: 1;
}

.cta-storytelling {
    text-align: center;
    margin-top: 30px;
}

.section-punchline {
    text-align: center;
    font-size: 1.3rem;
    font-family: var(--font-body);
    font-weight: 700;
    max-width: 700px;
    margin: -20px auto 40px auto;
    color: var(--dark-green-text);
}

/* --- PROCESS SECTION --- */
#process { background: var(--light-green-bg); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; margin-top: 50px; }
.process-step { background: var(--white); padding: 30px 20px; border-radius: 12px; border: 1px solid var(--grey-border); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.process-step:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.process-step span { display: flex; justify-content: center; align-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--dark-green-text); color: var(--white); font-weight: 700; font-size: 1.8rem; margin: 0 auto 20px auto; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.process-step h3 { margin-bottom: 10px; }

/* --- DIPLOMAS SECTION --- */
#diplomas {
    background: var(--light-green-bg);
}

.diplomas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.diploma-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--grey-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diploma-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.diploma-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* --- TRUST SECTION --- */
#trust { background: var(--white); text-align: center; }
#trust h2 { margin-bottom: 50px; }
.trust-grid { display: grid; grid-template-columns: 1.2fr 1.8fr; gap: 40px; align-items: flex-start; }
.trust-card { background: var(--white); padding: 30px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border: 1px solid var(--grey-border); }
.about-me { text-align: center; }
.about-me img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; border: 3px solid var(--dark-green-text); }
.about-me p { font-size: 0.95rem; color: var(--dark-blue-legacy); }
.social-proof { text-align: left; }
.social-proof h4 { color: var(--dark-green-text); margin-bottom: 15px; }
.social-proof p { margin-bottom: 25px; font-size: 0.95rem; color: var(--dark-blue-legacy); }
.logos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Crée 3 colonnes de largeur strictement égale */
    align-items: center;    /* Centre les logos verticalement */
    justify-items: center;  /* Centre les logos horizontalement DANS leur colonne */
    gap: 20px;              /* Ajoute un peu d'espace si les logos sont trop larges */
    padding: 0 20px;        /* Ajoute un peu d'air sur les côtés du conteneur */
}

.logos-grid img {
    max-height: 70px;       /* Ajustez la hauteur maximale comme désiré */
    max-width: 100%;        /* Empêche un logo de déborder de sa colonne */
    width: auto;
    object-fit: contain;
}
.small-text { font-size: 0.8rem; color: #777; margin-top: 20px; text-align: left; }

/* --- PRICING SECTION --- */
#pricing { background: var(--white); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch; }
.pricing-card { background: var(--white); padding: 30px; border-radius: 12px; border: 1px solid var(--grey-border); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.pricing-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.pricing-card.recommended { border: 2px solid var(--dark-green-text); transform: scale(1.05); position: relative; }
.badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--dark-green-text); color: var(--white); padding: 5px 15px; border-radius: 50px; font-size: 0.9rem; font-weight: 700; }
.pricing-card .price { font-size: 2.2rem; font-weight: 700; color: var(--dark-blue-legacy); margin: 15px 0; }
.pricing-card .description { margin-bottom: 25px; flex-grow: 1; }
.pricing-card ul { list-style: none; text-align: left; margin-bottom: 20px; }
.pricing-card ul li { margin-bottom: 10px; padding-left: 25px; position: relative; }
.pricing-card ul li::before { content: '✓'; color: var(--dark-green-text); position: absolute; left: 0; font-weight: 700; }
.vat-mention { text-align: center; margin-top: 30px; font-size: 0.9rem; color: #888; }

/* --- CONTACT SECTION --- */
#contact { background: var(--white); text-align: center; }
#contact p { max-width: 600px; margin: 0 auto; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 800px; margin: 40px auto 0 auto; text-align: left; }
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.contact-form label { font-weight: 700; margin-bottom: 5px; }
.contact-form input, .contact-form textarea { padding: 12px; border: 1px solid var(--grey-border); border-radius: 8px; font-family: var(--font-body); font-size: 1rem; background-color: #f7f9f7; color: var(--dark-green-text); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--dark-green-text); }
.submit-button { width: 100%; padding: 15px; background: var(--dark-green-text); color: var(--white); border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: all 0.3s ease; }
.submit-button:hover { opacity: 0.85; }
#form-status { text-align: center; margin-top: 20px; font-weight: 700; }

/* --- FOOTER (MIS À JOUR) --- */
.site-footer { 
    background: var(--dark-green-text); 
    color: var(--white); 
    text-align: center; 
    padding: 20px 0; 
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer-content p {
    margin: 0;
    text-align: center;
}

/* NOUVEAU bloc pour aligner les liens légaux */
.footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Permet le retour à la ligne sur mobile */
}

/* Style pour le séparateur entre les liens */
.footer-legal-links span {
    color: #c0c7b6; /* Même couleur que les liens pour la cohérence */
    margin: 0 5px;
}

/* Style pour les liens (Mentions Légales & Politique de Confidentialité) */
.footer-link { /* J'ai retiré 'footer a.' pour simplifier */
    color: #c0c7b6;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Style pour les icônes sociales */
.footer-social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.footer-social-links a {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.footer-social-links a:hover {
    opacity: 0.7;
}

.footer-social-links img {
    width: 28px;
    height: 28px;
    vertical-align: middle;
}

/* --- MODAL STYLES --- */
.modal { display: none; position: fixed; z-index: 200; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(5px); }
.modal.active { display: flex; justify-content: center; align-items: center; }
.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 800px;
    position: relative;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}
.close-button { color: #aaa; position: absolute; top: 15px; right: 25px; font-size: 35px; font-weight: bold; cursor: pointer; transition: color 0.3s ease; }
.close-button:hover, .close-button:focus { color: var(--dark-green-text); text-decoration: none; }
.modal-content h2 { font-size: 2rem; margin-bottom: 15px; color: var(--dark-blue-legacy); }
.modal-description { font-size: 1rem; margin-bottom: 25px; color: #555; max-width: 600px; margin-left: auto; margin-right: auto; }
.modal-iframe-wrapper { max-width: 400px; margin: 30px auto 0 auto; }


/* --- BOUTON BACK TO TOP --- */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--dark-green-text);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

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

/* --- TRANSITIONS DE SECTION EN VAGUE --- */
.wave-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,100 350,20 500,60 C650,100 850,20 1000,60 L1000,0 L0,0 Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
    filter: drop-shadow(0 2px 0 var(--dark-green-text));
}

.wave-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,20 350,100 500,60 C650,20 850,100 1000,60 L1000,100 L0,100 Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
    filter: drop-shadow(0 -2px 0 var(--dark-green-text));
}

.wave-top {
    padding-top: 140px;
}
.wave-bottom {
    padding-bottom: 140px;
}

/* --- STYLE POUR LA CASE À COCHER --- */
.form-group-checkbox {
    display: flex;
    align-items: center;
    text-align: left;
    margin-top: -10px; /* Réduit l'espace avec le champ du dessus */
    margin-bottom: 20px;
}
.form-group-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--dark-green-text); /* Style la coche avec votre couleur principale */
}
.form-group-checkbox label {
    font-size: 0.9rem;
    font-weight: normal;
    color: #555;
    cursor: pointer;
}

/* --- RESPONSIVITÉ --- */

/* TABLETTES (max-width: 1024px) */
@media (max-width: 1024px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid, .process-grid, .diplomas-grid { grid-template-columns: 1fr; }
    .pricing-card, .diploma-card { margin-bottom: 20px; }
    .pricing-card.recommended { transform: scale(1); }
    .concept-intro, .trust-grid { grid-template-columns: 1fr; }
    .about-me, .social-proof, .small-text { text-align: center; }
}

/* MOBILES (max-width: 768px) */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    section { padding: 40px 0; }
    .container { padding: 0 15px; }
    
    .site-header nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
    }

    .site-header nav.nav-open {
        transform: translateX(0);
    }

    .site-header nav a {
        margin: 20px 0;
        font-size: 1.5rem;
    }

    .hamburger-menu {
        display: flex;
    }
    
    .hamburger-menu.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger-menu.is-active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .features-grid { grid-template-columns: 1fr; }
    .contact-form { grid-template-columns: 1fr; }
    .section-divider h3::before, .section-divider h3::after { width: 50px; }
    
    .footer-content {
        flex-direction: column; /* Empile les éléments verticalement */
        justify-content: center;
    }

    .footer-content p {
        text-align: center;
        order: 2; /* Met le copyright en bas */
    }

    .footer-social-links {
        order: 1; /* Met les icônes en haut */
    }
    
    /* MODALE EN PLEIN ÉCRAN SUR MOBILE */
    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .modal-content h2 {
        font-size: 1.5rem;
        padding: 20px 20px 0 20px;
    }
    
    .modal-description {
        padding: 0 20px;
    }

    .modal-iframe-wrapper {
        flex-grow: 1;
        width: 100%;
        max-width: 100%;
        margin-top: 15px;
        margin-bottom: 0;
    }
    
    /* Ajustements des vagues pour mobile */
    .wave-top::before,
    .wave-bottom::after {
        height: 50px;
    }
    .wave-top {
        padding-top: 90px;
    }
    .wave-bottom {
        padding-bottom: 90px;
    }

    .storytelling-text {
        padding: 1.5em;
    }

    /* Cache les feuilles décoratives sur mobile */
    #hero::before, #problem-solution::before, .hero-leaf-bottom { /* J'ai ajouté .hero-leaf-bottom ici */
        display: none;
    }
}