/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    padding: 5rem 0 6rem;
    background-color: var(--color-brand-900);
    
    /* PAS D'IMAGE PAR DÉFAUT POUR ÉVITER LE DOUBLE TÉLÉCHARGEMENT SUR MOBILE */
    
    background-size: cover;
    background-position: center;
    color: #ffffff;
    overflow: hidden;
}

/* 2. On ajoute l'image Desktop SEULEMENT si l'écran est grand (min 769px) */
@media (min-width: 769px) {
    .hero-section {
        background-image: url('../img/hero-desktop.webp');
    }
}

/* Overlay bleu foncé pour lisibilité */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Bleu plus subtil tendant vers le gris foncé (Slate) */
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.63) 0%, rgba(30, 41, 59, 0.635) 50%, rgba(51, 65, 85, 0.58) 100%);
    z-index: 1;
}

.hero-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 6fr 5fr;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    width: fit-content;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.3);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.15;
    color: #ffffff;
    margin: 0;
}

.hero-lead {
    font-size: 1.15rem;
    color: #e2e8f0;
    max-width: 35rem;
    margin: 0;
}

/* Hero Card (Right) */
.hero-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.2);
    border-top: 4px solid var(--color-brand-600);
    position: relative;
    color: var(--color-text-main);
}

.card-badge-top {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: rgb(251, 201, 0);
    color: var(--color-brand-900);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 10px;
    text-transform: uppercase;
    border-radius: 2px;
    transform: rotate(2deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--color-brand-900);
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-brand-50);
    color: var(--color-brand-600);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
}

/* --- STATS SECTION --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }
}
.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-brand-900);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* --- BENTO GRID (METHODOLOGY) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .bento-grid { grid-template-columns: 1fr; }
}
.bento-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.bento-card:hover {
    border-color: var(--color-brand-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.bento-icon {
    color: var(--color-brand-900);
    margin-bottom: 0.5rem;
    width: 32px; height: 32px;
}
.bento-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-brand-900);
    margin: 0;
}
.bento-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* --- STEPS (PARCOURS) --- */
.section-spacing { padding: 5rem 0; }
.bg-subtle { background-color: #f8fafc; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .steps-grid { grid-template-columns: 1fr; }
}

.step-card {
    position: relative;
    padding: 1.5rem 1rem 1rem 1.5rem;
}

/* The Big Number style */
.step-number {
    position: absolute;
    top: -2.5rem;
    left: 0;
    font-size: 6rem;
    font-weight: 900;
    color: #e2e8f0; /* Gris très clair pour le fond */
    line-height: 1;
    z-index: 0;
    opacity: 0.6;
    font-family: var(--font-sans);
}

.step-content {
    position: relative;
    z-index: 10;
}

.step-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-brand-900);
    margin: 0 0 1rem 0;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* --- MISSION SECTION (NOUVEAU) --- */
.mission-section {
    padding: 5rem 0;
    background-color: var(--color-brand-900); /* Bleu Média */
    color: #ffffff;
    position: relative;
}

.mission-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.mission-header {
    text-align: center;
    margin-bottom: 3rem;
}

.mission-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-brand-100);
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
}

.mission-title {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
}

.mission-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-brand-100);
    max-width: 800px;
    margin: 0 auto;
}

.mission-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    text-align: left;
}

@media (max-width: 768px) {
    .mission-badges { grid-template-columns: 1fr; }
}

.m-badge {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 1.5rem;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: background 0.2s;
}

.m-badge:hover {
    background: rgba(255,255,255,0.12);
}

.mb-icon {
    font-size: 1.5rem;
    margin-top: 2px;
}

.m-badge strong {
    display: block;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.m-badge p {
    margin: 0;
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.5;
}

/* --- FAQ SECTION --- */
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.faq-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--color-brand-900);
    text-align: center;
    margin-bottom: 2rem;
}

.faq-group {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
    overflow: hidden;
}

.faq-details {
    border-bottom: 1px solid var(--color-border);
}
.faq-details:last-child { border-bottom: none; }

.faq-summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--color-brand-900);
    cursor: pointer;
    background-color: #fff;
    list-style: none; /* Cache la flèche par défaut */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.faq-summary:hover {
    background-color: var(--color-brand-50);
}

.faq-summary::-webkit-details-marker {
    display: none;
}

/* Custom arrow */
.faq-summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-brand-500);
    line-height: 1;
}
.faq-details[open] .faq-summary::after {
    content: '−';
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Alignement parfait icône + texte */
.trust-indicators {
    margin-top: 1.5rem;       /* Espace sous le bouton */
    display: flex;            /* Active Flexbox */
    align-items: center;      /* Centre verticalement l'icône et le texte */
    justify-content: flex-start; /* Force l'alignement à GAUCHE */
    gap: 10px;                /* Espace entre icône et texte */
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Petit ajustement pour que l'icône ne soit pas écrasée */
.trust-indicators svg {
    flex-shrink: 0;
    color: #4ade80; /* Vert rassurant */
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 3. On ajoute l'image Mobile SEULEMENT si l'écran est petit */
@media (max-width: 768px) {
    .hero-section {
        background-image: url('../img/hero-mobile.webp') !important;
        background-position: center top; 
    }
}
