/* ============================================================
   BORDERRIDE — index.css
   Charte graphique : Vert menthe #1d9e68 + Accent ambre #d97706
   Police : DM Sans (Google Fonts)
   Architecture : Variables → Reset → Layout → Composants → Sections
   ============================================================ */


/* ============================================================
   1. VARIABLES DE DESIGN
   ============================================================ */

:root {
    --primary:        #1d9e68;   /* Vert menthe — CTA, accents, bordures hover */
    --primary-dark:   #0f5535;   /* Vert forêt — états hover des boutons */
    --primary-light:  #3bbf85;   /* Menthe claire — icônes, highlights */
    --primary-bg:     #eaf7f1;   /* Fond menthe très léger — cartes, sections */
    --accent:         #d97706;   /* Ambre — CTA secondaire, badges urgents */
    --accent-bg:      #fef3c7;   /* Fond ambre — badges */
    --text-main:      #111827;   /* Texte principal sombre */
    --text-sub:       #6b7280;   /* Texte secondaire / sous-titres */
    --bg-page:        #f4f4f2;   /* Fond de page (jamais blanc pur) */
    --bg-card:        #ffffff;   /* Fond des cartes */
    --border-light:   #d1fae5;   /* Bordure par défaut des cartes */
    --white:          #ffffff;
    --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
}

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


/* ============================================================
   3. TYPOGRAPHIE COMMUNE
   ============================================================ */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-sub);
    max-width: 680px;
    margin: 0 auto 50px;
    line-height: 1.7;
}


/* ============================================================
   4. BOUTONS
   ============================================================ */
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Bouton accent ambre — pour les CTA entreprises / inscription */
.btn-accent {
    background-color: var(--accent);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-accent:hover {
    background-color: #b45309;
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary);
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-white:hover {
    background-color: var(--primary-bg);
    transform: translateY(-2px);
}

/* Groupe de CTA centré */
.cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    width: 100%;
    gap: 12px;
}


/* ============================================================
   5. CARTES — style unifié pour toutes les sections
   ============================================================ */
.card {
    padding: 40px;
    background-color: var(--bg-card);
    border-radius: 14px;
    border: 0.5px solid var(--border-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card:hover {
    background-color: var(--white);
    border-color: var(--primary);
    border-width: 1.5px;
    box-shadow: 0 8px 24px rgba(29, 158, 104, 0.12);
    transform: translateY(-4px);
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.card p {
    font-size: 1rem;
    color: var(--text-sub);
    line-height: 1.7;
    margin: 0;
    text-align: justify;
    text-justify: inter-word;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
}

/* Numéro d'objectif dans les cartes */
.objective-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

/* Grille 3 colonnes par défaut */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .grid { grid-template-columns: 1fr; }
}


/* ============================================================
   6. HEADER / NAVBAR
   ============================================================ */
.navbar {
    height: 72px;
    display: flex;
    align-items: center;
    background: var(--white);
    border-bottom: 0.5px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.4px;
}

.logo span {
    color: var(--text-main);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-sub);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary);
    background-color: var(--primary-bg);
}

/* Lien "Entreprises" — bouton ambre */
nav ul li a.nav-cta {
    background-color: var(--accent);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
}

nav ul li a.nav-cta:hover {
    background-color: #b45309;
    transform: none;
}

@media (max-width: 768px) {
    nav { display: none; }
}


/* ============================================================
   7. HERO INDEX (Style Entreprise appliqué à .hero)
   ============================================================ */
.hero {
    padding: 100px 0 80px;
    /* J'ai gardé ton dégradé entreprise ici */
    background: linear-gradient(150deg, var(--primary-bg) 0%, var(--white) 65%);
    text-align: center;
}

/* Centrage du contenu et gestion de la colonne */
.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-main);
    letter-spacing: -1px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-sub);
    max-width: 640px;
    margin: 0 auto 32px; /* Ajout d'une marge basse pour l'espace avec le CTA */
    line-height: 1.7;
}

/* Alignement du CTA au centre */
.hero .cta-group {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Responsivité */
@media (max-width: 768px) { 
    .hero h1 { font-size: 2.2rem; } 
}

.hero {
    padding: 100px 0 80px;
    /* On remet ton image et ton calque sombre ici */
    background: linear-gradient(rgba(10, 31, 23, 0.65), rgba(15, 85, 53, 0.55)),
                url('../images/fond.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3rem; /* Taille du style entreprise */
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #ffffff !important; /* On force en blanc car il y a une image derrière */
    letter-spacing: -1px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 1.15rem; /* Taille du style entreprise */
    color: rgba(255, 255, 255, 0.92) !important; /* Blanc pour la lisibilité sur l'image */
    max-width: 640px;
    margin: 0 auto 8px;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero .cta-group {
    display: flex;
    justify-content: center;
    width: 100%;
}

@media (max-width: 768px) { 
    .hero { background-attachment: scroll; }
    .hero h1 { font-size: 2.2rem; } 
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.92) !important;
    /* On augmente ou on supprime la largeur maximale pour laisser le texte s'étaler */
    max-width: 900px; 
    margin: 0 auto 8px;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    /* On s'assure que le texte ne se coupe pas bizarrement */
    width: fit-content; 
}

/* ============================================================
   8. SECTION PROBLÈME & SOLUTION
   ============================================================ */
.comparison-section {
    padding: 80px 0;
    background-color: var(--white);
}

.comparison-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.badge-red  { background-color: #fee2e2; color: #dc2626; }
.badge-blue { background-color: var(--primary-bg); color: var(--primary-dark); }
.badge-green { background-color: var(--primary-bg); color: var(--primary-dark); }
.badge-amber { background-color: var(--accent-bg); color: #92400e; }

/* Liste avec icônes dans les cartes */
.icon-list {
    list-style: none;
    padding: 0;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.icon-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.icon { font-size: 1rem; }
.icon.red   { color: #dc2626; }
.icon.green { color: var(--primary); }

.cta-section {
    padding: 20px 0 60px;
    background-color: var(--white);
}


/* ============================================================
   9. SECTION FEATURES
   ============================================================ */
.features {
    padding: 80px 0;
    background-color: var(--primary-bg);
}

/* Modification du style des cartes dans la section Features */
.features .card {
    text-align: center; /* Centre tout le contenu de la carte */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%; /* Force les cartes à avoir la même hauteur dans la grille */
}

.features .card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
    white-space: nowrap; /* Force le titre sur une seule ligne */
}

.features .card p {
    font-size: 1rem;
    color: var(--text-sub);
    line-height: 1.7;
    margin: 0;
    text-align: center; /* ✅ Suppression du "justify" pour un centrage propre */
    text-justify: none;
    max-width: 100%;    /* Utilise tout l'espace disponible */
}

/* Optionnel : Ajustement pour mobile si les titres sont trop longs */
@media (max-width: 1100px) {
    .features .card h3 {
        white-space: normal; /* Permet le retour à la ligne sur petit écran pour éviter que ça dépasse */
        font-size: 1.1rem;
    }
}


/* ============================================================
   12. SECTION ENTREPRISES
   ============================================================ */
.entreprise-section {
    background-color: var(--primary);
    color: var(--white);
    margin: 60px 5%;
    padding: 80px 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 48px rgba(29, 158, 104, 0.2);
}

.entreprise-section .section-title {
    color: var(--white);
}

.entreprise-section .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

/* Bouton blanc sur fond menthe */
.entreprise-section .btn-white {
    background-color: var(--white);
    color: var(--primary-dark);
    border: 2px solid transparent;
}

.entreprise-section .btn-white:hover {
    background-color: var(--primary-bg);
}

@media (max-width: 768px) {
    .entreprise-section {
        margin: 40px 5%;
        padding: 50px 24px;
    }
}


/* ============================================================
   13. SECTION NEWSLETTER
   ============================================================ */
.newsletter-section {
    padding: 80px 0;
    background-color: var(--bg-page);
}

.newsletter-container {
    background-color: var(--bg-card);
    padding: 70px 60px;
    border-radius: 16px;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    border: 0.5px solid var(--border-light);
    transition: var(--transition);
}

.newsletter-container:hover {
    border-color: var(--primary);
    border-width: 1.5px;
    box-shadow: 0 8px 24px rgba(29, 158, 104, 0.1);
}

.newsletter-container h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.newsletter-container > p {
    font-size: 1.05rem;
    color: var(--text-sub);
    margin-bottom: 20px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.input-row {
    display: flex;
    gap: 14px;
    width: 100%;
    max-width: 680px;
    margin-bottom: 16px;
}

.input-row input {
    flex: 1;
    padding: 14px 18px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    background-color: var(--white);
    color: var(--text-main);
    transition: var(--transition);
}

.input-row input:hover {
    border-color: var(--primary-light);
}

.input-row input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29, 158, 104, 0.12);
}

.btn-submit {
    background-color: var(--primary);
    color: var(--white);
    padding: 14px 40px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    margin-top: 6px;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.footer-note {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 20px;
}

@media (max-width: 680px) {
    .input-row { flex-direction: column; }
    .newsletter-container { padding: 50px 24px; }
}



/* ============================================================
   14. FOOTER
   ============================================================ */
.footer {
    background-color: var(--white);
    padding: 50px 0 30px;
    border-top: 0.5px solid var(--border-light);
    margin-top: 60px;
}

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

.footer-logo {
    text-decoration: none;
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-sub);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--border-light);
    transition: var(--transition);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.social-icon:hover svg {
    fill: var(--white);
}

.footer-copyright {
    text-align: center;
    margin-top: 36px;
    font-size: 0.82rem;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    .footer-links { gap: 20px; }
}

/* La carte entière devient verte */
.step-card {
    background-color: var(--primary); /* Fond vert pour toute la box */
    padding: 40px;
    border-radius: 14px;
    flex: 0 1 calc(33.333% - 24px);
    min-width: 300px;
    border: none; /* On enlève la bordure car le fond est plein */
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Changement de couleur au survol pour un effet interactif */
.step-card:hover {
    background-color: var(--primary-dark); /* Vert plus foncé au hover */
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Le petit carré du chiffre devient blanc avec le texte vert */
.step-number {
    background-color: var(--white); /* Carré blanc */
    color: var(--primary);         /* Chiffre vert */
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* On force le texte (paragraphes et titres) en blanc à l'intérieur */
.step-card h3, 
.step-card p {
    color: var(--white) !important;
}

/* Si tu as des titres h3 spécifiques dans ces cartes */
.step-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

/* ============================================================
   11. SECTION NOS OBJECTIFS — Style calqué sur Features
   ============================================================ */


/* On utilise la même grille que les autres sections */
.objectives .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Les cartes d'objectifs reprennent le style exact des cartes de features */
.objectives .card {
    background-color: var(--white); /* Cartes blanches sur fond vert clair */
    padding: 40px;
    border-radius: 14px;
    border: 0.5px solid var(--border-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Effet au survol identique */
.objectives .card:hover {
    border-color: var(--primary);
    border-width: 1.5px;
    box-shadow: 0 8px 24px rgba(29, 158, 104, 0.12);
    transform: translateY(-4px);
}

/* Style du numéro d'objectif (ex: 01, 02...) */
.objectives .objective-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

/* Texte à l'intérieur */
.objectives h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.objectives p {
    font-size: 1rem;
    color: var(--text-sub);
    line-height: 1.7;
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .objectives .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .objectives .grid { grid-template-columns: 1fr; }
}
 
/* ============================================================
   13. SECTION NEWSLETTER — FOND VERT MENTHE (MODIF)
   ============================================================ */
.newsletter-section {
    padding: 80px 0 !important;
    background-color: var(--primary-bg) !important; /* ✅ Fond vert menthe */
}

.newsletter-container {
    background-color: var(--white) !important; /* inchangé */
    padding: 70px 60px;
    border-radius: 16px;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    border: 0.5px solid var(--border-light);
    transition: var(--transition);
}

.newsletter-container:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(29, 158, 104, 0.1);
}


/* ============================================================
   10. SECTION COMMENT ÇA MARCHE
   ============================================================ */
.intro {
    text-align: center;
    padding: 80px 20px 40px;
    max-width: 860px;
    margin: 0 auto;
}

.intro h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.intro p {
    font-size: 1.15rem;
    color: var(--text-sub);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

.steps-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.step-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 14px;
    flex: 0 1 calc(33.333% - 24px);
    min-width: 300px;
    border: 0.5px solid var(--border-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.step-card:hover {
    background-color: var(--white);
    border-color: var(--primary);
    border-width: 1.5px;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(29, 158, 104, 0.12);
}

.step-number {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.step-card:hover .step-number {
    transform: scale(1.1);
}

.step-card p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-sub);
    line-height: 1.65;
}

@media (max-width: 1024px) {
    .step-card { flex: 0 1 calc(50% - 24px); }
}

@media (max-width: 700px) {
    .step-card { flex: 0 1 100%; min-width: auto; }
}

@media (max-width: 768px) {
    .intro h2 { font-size: 2rem; }
}

/* --- Design des titres des cartes --- */
.step-card h3 {
    font-size: 1.25rem;              /* Taille légèrement augmentée pour l'impact */
    font-weight: 700;                /* Style gras (Bold) */
    color: var(--text-main) !important; /* Couleur sombre de la charte */
    line-height: 1.4;                /* Hauteur de ligne pour éviter l'aspect tassé */
    margin-bottom: 15px;             /* Espace généreux sous le titre */
    text-align: center;              /* Centrage parfait du titre */
}

/* --- Design du texte de description --- */
.step-card p {
    font-size: 1rem;                 /* Taille standard lisible */
    color: var(--text-sub) !important; /* Couleur grise secondaire */
    line-height: 1.7;                /* Interlignage aéré pour le confort de lecture */
    text-align: center;              /* Centrage du paragraphe comme sur l'image */
    max-width: 90%;                  /* Limite la largeur pour un meilleur aspect visuel */
    margin: 0 auto;                  /* Centre le bloc de texte lui-même */
}

/* À ajouter ou modifier dans ta section 10 pour le titre des étapes */
.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main) !important;
    text-align: center;
    white-space: nowrap;      /* ✅ Force le texte sur une seule ligne */
    display: block;           /* ✅ S'assure que le titre prend toute la largeur pour le centrage */
    margin: 0 auto 15px;      /* ✅ Centre horizontalement et ajoute de l'espace en bas */
    width: 100%;
}