/* Variables CSS */
:root {
    --primary-color: #D77B4B; /* Couleur orange principale (boutons, texte mis en avant) */
    --secondary-color: #323232; /* Couleur de texte plus foncée pour le texte non orange */
    --light-background: #f6f4f2; /* Couleur de fond générale pour toutes les sections */
    --cta-rectangle-background: #FFBC8C; /* Couleur de fond pour le rectangle de la section CTA du bas (gardée au cas où vous la réintroduiriez) */
    --button-text-color: #fff; /* Couleur du texte des boutons (reste blanc pour les boutons orange) */
    --border-radius: 8px;
    --font-family-primary: 'Inter', sans-serif;
    --section-padding: 80px 0; /* Gardé pour une structure cohérente si vous ajoutez du contenu */
}

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

body {
    font-family: var(--font-family-primary);
    line-height: 1.6;
    color: var(--secondary-color); /* Tous les textes par défaut sont #323232 */
    background-color: var(--light-background); /* Fond général pour toutes les sections */
}

/* Conteneur générique */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typographie de base (pour les éléments qui pourraient apparaître dans le main ou sont déjà là) */
h1, h2, h3, h4 { /* Ajout de h4 pour le footer */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary-color); /* Tous les titres sont #323232 par défaut */
}

p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--secondary-color); /* Tous les paragraphes sont #323232 par défaut */
}

.highlight-text {
    color: var(--primary-color); /* Texte mis en avant en #D77B4B */
}

/* Boutons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
    text-decoration: none; 
}

.btn-primary,
.btn-secondary,
.btn-cta { /* Garde ces styles au cas où vous les utiliseriez dans le main */
    background-color: var(--primary-color); /* Tous les boutons orange en #D77B4B */
    color: var(--button-text-color);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-cta:hover {
    background-color: #c06940; /* Teinte plus foncée au survol pour #D77B4B */
}

.expert-actions .inscription-link {
    color: #333; /* Texte noir/gris foncé */
    text-decoration: none; /* Supprime le soulignement */
    margin-right: 15px; /* Ajoute un espace à droite */
}

/* Header */
.header {
    background-color: var(--light-background); /* Fond #f6f4f2 */
    padding: 20px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem; /* Taille de police pour le texte 'unlify' à côté du logo */
    font-weight: 700;
    color: var(--secondary-color); /* Logo texte en #323232 */
}

.logo img {
    height: 50px; /* Logo plus gros dans l'app bar */
    margin-right: 10px;
}

.nav ul {
    list-style: none;
    display: flex;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    text-decoration: none;
    color: var(--secondary-color); /* Liens de navigation en #323232 */
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Footer */
.footer {
    background-color: var(--light-background); /* Fond #f6f4f2 */
    color: var(--secondary-color); /* Texte et icônes en #323232 */
    padding: var(--section-padding);
}

.footer-grid {
    display: grid;
    /* Mise à jour pour 4 colonnes */
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: none; /* Suppression de la bordure ici pour éviter le doublon */
}

.footer-logo {
    color: var(--secondary-color);
}

.footer-logo img {
    height: 50px; /* Logo plus gros dans le footer */
    margin-right: 10px;
}

.footer-info p {
    font-size: 0.95rem;
    color: rgba(50, 50, 50, 0.7); /* Texte d'info en #323232 légèrement transparent */
    margin-top: 20px;
    margin-bottom: 20px;
}

.footer-info .follow-us {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.social-links a {
    color: var(--secondary-color); /* Icônes sociales en #323232 (noir) */
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color); /* Garde le survol orange */
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--secondary-color); /* Titres de colonne en #323232 */
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    text-decoration: none;
    color: rgba(50, 50, 50, 0.7); /* Liens de colonne en #323232 légèrement transparent */
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

/* Correction Copyright latéral */
.copyright-side {
    margin-top: 20px;
    font-size: 0.85rem;
    opacity: 0.5;
}

/* Ajout Maillage SEO */
.footer-seo-bar {
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(50, 50, 50, 0.1);
}

/* ==========================================================================
   AJOUTS : PAGE FONCTIONNEMENT (Z-PATTERN)
   ========================================================================== */

.how-it-works-hero {
    padding: 100px 0 60px;
    text-align: center;
}

.section-description {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    opacity: 0.9;
}

.step-section {
    padding: 100px 0;
}

.grey-bg {
    background-color: #efedeb; /* Légère nuance pour l'alternance */
}

.split-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.split-content.reverse {
    flex-direction: row-reverse;
}

.split-text { flex: 1; }
.split-image { flex: 1; }

.split-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

.step-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.2;
    margin-bottom: -10px;
}

/* Styles pour le CTA final de la page */
.cta-section-bottom {
    padding: 100px 0;
    text-align: center;
}

.new-cta-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 60px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.new-cta-content h3 {
    margin-bottom: 20px; /* Espace sous le titre */
}

.new-cta-content p {
    margin-bottom: 32px; /* Espace généreux au-dessus du bouton */
    color: #4a4a4a; /* Optionnel : pour adoucir un peu le texte si besoin */
}

.new-cta-content .btn {
    display: inline-block; /* Pour s'assurer que les marges s'appliquent bien */
}

/* ==========================================================================
   RESPONSIVE (MIS À JOUR)
   ========================================================================== */

@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    .nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .nav ul li {
        margin-left: 0;
    }
    /* Footer 2 colonnes sur tablette */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-info {
        grid-column: span 2;
        text-align: center;
    }
    .footer-info .social-links {
        justify-content: center;
    }
    /* Split content */
    .split-content { gap: 40px; }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    .nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .nav ul li {
        margin-left: 0;
    }
    /* Footer 1 colonne mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col ul {
        padding-left: 0;
    }

    .expert-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .expert-actions .inscription-link {
        margin-right: 0; 
        margin-bottom: 10px; 
    }

    /* Z-Pattern en colonne sur mobile */
    .split-content, .split-content.reverse {
        flex-direction: column;
        text-align: center;
    }
    .split-image { margin-top: 30px; }
    .step-section { padding: 60px 0; }
    .btn { width: 100%; text-align: center; }
}