/* --- Variables de couleur --- */
:root {
    --primary-color: #2d8cff; /* Bleu médical */
    --secondary-color: #69d2e7; /* Vert menthe/cyan */
    --color-purple: #a885d8; /* Lavande */
    --color-orange: #ff9a8b; /* Corail */
    --color-green-soft: #8fd9a8; /* Vert pastel */
    --color-pink: #ff87ab; /* Rose doux */
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --light-text: #ffffff;
    --font-family: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--dark-text);
    line-height: 1.7;
}

/* --- Header --- */
.navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background-color: var(--light-text) !important; /* Fond blanc opaque */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand span {
    color: var(--dark-text);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
    color: var(--dark-text);
}

.navbar-nav .nav-link:hover {
    background-color: rgba(45, 140, 255, 0.1);
    color: var(--primary-color);
}

.navbar-nav .nav-link.active {
    background-color: var(--primary-color);
    color: var(--light-text) !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(45, 140, 255, 0.3);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, rgba(230, 245, 255, 0.8), rgba(240, 255, 250, 0.8)), url('https://www.toptal.com/designers/subtlepatterns/uploads/fancy-deboss.png');
    padding: 100px 0;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(45, 140, 255, 0.3);
}

/* --- Section Fonctionnalités --- */
#fonctionnalites {
    background-color: var(--light-text);
}

.feature-card {
    background-color: var(--light-text);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.feature-card .icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(105, 210, 231, 0.2); /* Vert menthe transparent */
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

/* Couleurs personnalisées pour chaque icône de fonctionnalité */
#fonctionnalites .row > div:nth-child(1) .icon-circle { background-color: rgba(45, 140, 255, 0.2); color: var(--primary-color); } /* Bleu */
#fonctionnalites .row > div:nth-child(2) .icon-circle { background-color: rgba(143, 217, 168, 0.2); color: var(--color-green-soft); } /* Vert pastel */
#fonctionnalites .row > div:nth-child(3) .icon-circle { background-color: rgba(255, 154, 139, 0.2); color: var(--color-orange); } /* Corail */
#fonctionnalites .row > div:nth-child(4) .icon-circle { background-color: rgba(168, 133, 216, 0.2); color: var(--color-purple); } /* Lavande */
#fonctionnalites .row > div:nth-child(5) .icon-circle { background-color: rgba(255, 135, 171, 0.2); color: var(--color-pink); } /* Rose */
#fonctionnalites .row > div:nth-child(6) .icon-circle { background-color: rgba(105, 210, 231, 0.2); color: var(--secondary-color); } /* Cyan */

/* Effet de survol coloré pour chaque carte */
#fonctionnalites .row > div:nth-child(1) .feature-card:hover { background-color: rgba(45, 140, 255, 0.05); }
#fonctionnalites .row > div:nth-child(1) .feature-card:hover h5 { color: var(--primary-color); }

#fonctionnalites .row > div:nth-child(2) .feature-card:hover { background-color: rgba(143, 217, 168, 0.1); }
#fonctionnalites .row > div:nth-child(2) .feature-card:hover h5 { color: var(--color-green-soft); }

#fonctionnalites .row > div:nth-child(3) .feature-card:hover { background-color: rgba(255, 154, 139, 0.1); }
#fonctionnalites .row > div:nth-child(3) .feature-card:hover h5 { color: var(--color-orange); }

#fonctionnalites .row > div:nth-child(4) .feature-card:hover { background-color: rgba(168, 133, 216, 0.1); }
#fonctionnalites .row > div:nth-child(4) .feature-card:hover h5 { color: var(--color-purple); }

#fonctionnalites .row > div:nth-child(5) .feature-card:hover { background-color: rgba(255, 135, 171, 0.1); }
#fonctionnalites .row > div:nth-child(5) .feature-card:hover h5 { color: var(--color-pink); }

#fonctionnalites .row > div:nth-child(6) .feature-card:hover { background-color: rgba(105, 210, 231, 0.1); }
#fonctionnalites .row > div:nth-child(6) .feature-card:hover h5 { color: var(--secondary-color); }

/* --- Section Formules --- */
.pricing-card {
    background-color: var(--light-text);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    border-width: 2px;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-card .price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 20px 0;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    flex-grow: 1;
}

.pricing-card ul li {
    margin-bottom: 10px;
}

.pricing-card ul li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* --- Formulaires --- */
#essai, #contact {
    background-color: var(--light-text);
}

.form-control {
    padding: 12px 15px;
    border-radius: 8px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(45, 140, 255, 0.25);
}

/* --- Section Témoignages --- */
#temoignages {
    background-color: var(--light-text);
}

.testimonial-card {
    background-color: var(--light-bg);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.testimonial-card::before {
    content: '“';
    font-family: Georgia, serif;
    font-size: 5rem;
    color: rgba(45, 140, 255, 0.1);
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--light-text);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin: -80px auto 20px;
    position: relative;
    z-index: 2;
}

/* --- Pages de contenu (Mentions, etc.) --- */
.content-page {
    background-color: var(--light-text);
}

.content-page h1, .content-page h2 {
    color: var(--primary-color);
}

.content-page h2 {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* --- Section FAQ --- */
.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(45, 140, 255, 0.05);
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(45, 140, 255, 0.25);
}

/* --- Bouton Retour en Haut --- */
.back-to-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none; /* Géré par JS */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    z-index: 999;
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Footer --- */
.footer {
    background-color: #343a40;
}

.footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--light-text);
}

/* --- Styles pour le menu mobile --- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding-top: 1rem;
        padding-bottom: 1rem;
        text-align: center;
    }

    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }

    .navbar-nav .nav-link {
        display: inline-block; /* Pour que le padding et le border-radius s'appliquent correctement */
    }

    .navbar-collapse .btn-outline-primary {
        margin-top: 1rem;
        background: #ff9a8b;
        border-color: #ff9a8b;
    }
}
.orange {
    color: #f8f9fa;
    background-color: #ff9a8b;
    border-color: #ff9a8b;
}
.orange:hover, .orange:active {
    color: #f88573 !important; 
    background-color: #f3dad6 !important;
    border-color: #f3dad6 !important;
}
/* --- Bouton flottant "Essayez-moi" --- */
#try-me-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1000;
    border-radius: 50px;
    padding: 10px 25px;
    background: #a885d8;
    border-color: #a885d8;
    animation: pulse 2s infinite;
}
#try-me-btn:hover {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1000;
    border-radius: 50px;
    padding: 10px 25px;
    color: #8f53e2;
    background: #c8a7f7;
    border-color: #c8a7f7;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(45, 140, 255, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(45, 140, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(45, 140, 255, 0);
    }
}

/* --- Style pour les boutons violets spéciaux --- */
.btn-purple-special {
    background-color: #a885d8; /* var(--color-purple) */
    border-color: #a885d8; /* var(--color-purple) */
    color: var(--light-text);
    border-radius: 50px;
    padding-left: 25px;
    padding-right: 25px;
    transition: all 0.3s ease;
}

.btn-purple-special:hover,
.btn-purple-special:focus {
    background-color: #a885d8; /* On garde la même couleur au survol */
    border-color: #a885d8;
    color: var(--light-text);
}