/* --- Global : Structure principale --- */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Roboto', sans-serif; /* Police plus moderne */
    line-height: 1.6;
    background-color: #f8fafc; /* Fond légèrement plus clair */
    color: #2d3748; /* Texte plus foncé pour meilleur contraste */
}

/* Conteneur principal - Ajusté pour tenir compte du header */
.presentation-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 60px; /* Padding augmenté en haut */
}

/* --- Bandeau d'introduction modernisé --- */
.intro-section {
    background: #274F57; /* Couleur unie */
    padding: 120px 30px 60px; /* Ajustement pour tenir compte du header */
    margin-bottom: 0; /* Pas de marge en bas */
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden; /* Pour contenir les éléments décoratifs */
}

/* Éléments décoratifs dans le bandeau */
.intro-section::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.intro-section::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
}

/* Titre principal (avec animation) */
.intro-section h1 {
    color: white;
    font-size: 48px;
    margin: 0 0 15px 0;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fil d'Ariane (design modernisé) */
.breadcrumb {
    margin-top: 20px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(5px); /* Effet verre dépoli */
}

/* Lien du breadcrumb */
.breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: none;
    color: #a3e0ff; /* Bleu clair au survol */
}

/* --- Contenu principal (2 colonnes) --- */
.main-content {
    display: flex;
    gap: 50px;
}

/* Colonne de gauche et droite */
.left-column,
.right-column {
    padding: 20px;
    box-sizing: border-box;
}

/* La colonne de gauche prend plus d'espace */
.left-column {
    flex: 2;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.03);
}

/* La colonne de droite (cartes) */
.right-column {
    flex: 1;
}

/* --- Sections de la colonne gauche --- */
.definition-section,
.legal-section,
.audience-section,
.advantages-section,
.how-it-works-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
    position: relative; /* Pour l'animation */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: calc(var(--section-index, 0) * 0.2s);
}

.definition-section { --section-index: 1; }
.legal-section { --section-index: 2; }
.audience-section { --section-index: 3; }
.how-it-works-section { --section-index: 4; }

/* Retirez la bordure du dernier élément */
.how-it-works-section {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Titres avec une ligne soulignée améliorée */
h2 {
    font-size: 30px;
    color: #1a365d; /* Bleu plus profond */
    margin-bottom: 30px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.underline {
    position: relative;
    padding-bottom: 10px;
}

.underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #274F57, #70b2c3); /* Dégradé */
    border-radius: 2px;
}

/* Amélioration des paragraphes */
p {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* --- Listes à puces --- */
ul {
    padding-left: 20px;
    margin-bottom: 25px;
}

ul li {
    position: relative;
    list-style-type: none;
}

ul li::before {
    color: #274F57;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

ul li b {
    color: #274F57;
    font-weight: 600;
}

/* --- Cartes (Colonne droite) --- */
.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(226, 232, 240, 0.8);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: calc(var(--card-index, 0) * 0.3s + 0.5s);
}

.card:nth-child(1) { --card-index: 1; }
.card:nth-child(2) { --card-index: 2; }
.card:nth-child(3) { --card-index: 3; }

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(226, 232, 240, 0);
}

/* Titre des cartes */
.card h3 {
    color: #1a365d;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.card h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #274F57;
}

/* Cartes rouges spécifiques */
.red-card {
    background:  #ffffff ;
    color:rgba(255, 255, 255, 0.2);
}

.red-card h3 {
    color: #ff0000;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.red-card h3::after {
    background: #ffffff;
}

/* Bouton dans la carte rouge */
.red-card .btn-simulation {
    display: inline-block;
    background: #ffffff;
    color: #d32f2f;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.red-card .btn-simulation:hover {
    background: #fce4ec;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* --- Liste avec flèche (arrow-list) --- */
.arrow-list {
    list-style: none;
    padding: 0;
}

.arrow-list li {
    margin-bottom: 16px;
    font-size: 16px;
    padding-left: 30px;
    position: relative;
}

.arrow-list li::before {
    content: "→";
    color: #274F57;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 18px;
    font-weight: bold;
}

.arrow-list a {
    color: #2b6cb0; /* Bleu plus vif */
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
}

.arrow-list a:hover {
    color: #1a365d;
    transform: translateX(3px);
}

/* --- Comment ça marche --- */
.steps-container {
    counter-reset: step-counter;
    margin-top: 40px;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 35px;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateX(5px);
}

.step-number {
    background: linear-gradient(135deg, #274F57 0%, #1e3a8a 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 22px;
    margin-right: 25px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-content {
    flex-grow: 1;
    background: #f8fafc;
    padding: 20px 25px;
    border-radius: 12px;
    border-left: 4px solid #274F57;
}

.step-content h3 {
    margin: 0 0 10px 0;
    color: #1a365d;
    font-size: 20px;
    font-weight: 600;
}

.step-content p {
    margin: 0;
    color: #4a5568;
}

/* --- Responsivité (mobile-friendly) --- */
@media screen and (max-width: 1200px) {
    .presentation-wrapper {
        padding: 30px;
    }

    .main-content {
        flex-direction: column;
        gap: 40px;
    }

    .left-column,
    .right-column {
        width: 100%;
    }

    .intro-section {
        padding: 120px 20px 40px; /* Padding ajusté pour tenir compte du header */
    }

    .intro-section h1 {
        font-size: 36px;
    }
}

@media screen and (max-width: 768px) {
    .presentation-wrapper {
        padding: 20px;
    }

    .intro-section {
        padding: 120px 20px 30px; /* Padding ajusté pour tenir compte du header mobile */
        margin-bottom: 0;
    }

    .intro-section h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    .card {
        padding: 25px;
    }

    .red-card .btn-simulation,
    .btn-contact {
        padding: 12px 24px;
        width: 100%;
        text-align: center;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 15px;
    }
    
    .step-content {
        width: 100%;
    }
}

/* Animation pour les cartes d'avantages */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.advantage-card {
    background-color: #f8fafc;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: #cbd5e0;
    background-color: #ffffff;
}

.advantage-icon {
    font-size: 35px;
    color: #274F57;
    margin-bottom: 20px;
}

.advantage-card h3 {
    color: #1a365d;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.advantage-card p {
    font-size: 15px;
    margin: 0;
    color: #4a5568;
}

/* Ajout d'un effet de badge nouveau */
.new-badge {
    display: inline-block;
    background: #10B981;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
    vertical-align: middle;
    box-shadow: 0 2px 5px rgba(16, 185, 129, 0.2);
}

/* Animation pour l'affichage des sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Éliminer les styles redondants */
nav ul li a, nav ul li, .dropdown-toggle, .dropdown-toggle i, .dropdown-content, 
.dropdown:hover .dropdown-content, .dropdown-content a, .dropdown-content a:hover {
    /* Laisser ces éléments vides pour que les styles du base.html.twig s'appliquent */
}