/* Variables de couleur et de typographie */
:root {
    --primary-color: #0a58ca; /* Bleu Océan (un peu plus vif pour les actions) */
    --secondary-color: #198754; /* Vert Lagune */
    --light-gray: #f8f9fa;
    --dark-color: #212529;
    --font-family: 'Inter', sans-serif;
}

body {
    font-family: var(--font-family);
    padding-top: 56px; /* Hauteur de la barre de navigation */
}

/* ========== Barre de navigation ========== */
.navbar {
    transition: background-color 0.3s ease-in-out;
}

.navbar-brand {
    font-weight: 700;
    padding-top: 0; /* Réduit le padding pour laisser de la place au logo */
    padding-bottom: 0;
}

.navbar-logo {
    max-height: 80px; /* Assure que le logo ne dépasse pas la hauteur souhaitée */
}

/* ========== Section Hero ========== */
.hero-section {
    position: relative;
    padding: 10rem 0;
    overflow: hidden; /* Cache les parties du slider qui dépassent */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 40, 70, 0.6); /* Overlay bleu/vert marin */
    z-index: 2; /* Au-dessus du slider */
}

.hero-section .container {
    position: relative;
    z-index: 3; /* Au-dessus de l'overlay */
}

.hero-section .btn {
    margin: 0 0.5rem;
}

/* Styles pour le carrousel Hero */
.hero-swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* En arrière-plan */
}

.hero-swiper .swiper-slide {
    background-position: center;
    background-size: cover;
}

/* ========== Section Fonctionnalités ========== */
#features {
    background-color: var(--light-gray);
}

.feature-card {
    border: none;
    border-radius: 10px;
    background-color: #fff;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Ajout de la transition pour l'animation d'apparition */
    transition: transform 0.5s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    width: 100%;
    /* Initialement invisible pour l'animation */
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card.is-visible:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(10, 88, 202, 0.1); /* Version plus claire du bleu primaire */
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto; /* Centrage horizontal */
}

.feature-icon i {
    width: 28px;
    height: 28px;
}

/* ========== Sections Générales ========== */
section {
    scroll-margin-top: 60px; /* Décalage pour l'ancre à cause de la navbar fixe */
}

h2 {
    font-weight: 700;
}

/* ========== Pied de page ========== */
.footer {
    background-color: var(--dark-color);
}

.footer a {
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ========== Bouton Retour en haut ========== */
.back-to-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none; /* Caché par défaut */
    z-index: 1050;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0;
    line-height: 50px;
    text-align: center;
}

/* ========== Slick Carousel Styles ========== */

.swiper-container {
    width: 100%;
    padding-bottom: 40px; /* Espace pour la pagination */
    position: relative;
}

.swiper-slide img {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

.swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.7);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

/* ========== Section FAQ (Accordion) ========== */
.accordion-item {
    border: 1px solid #e9edf4;
    border-radius: 7px !important;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden; /* Pour que le border-radius s'applique bien */
}

.accordion-button {
    font-weight: 600;
    color: var(--dark-color);
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: var(--primary005);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    background-color: #fff;
}

/* ========== Section Onboarding ========== */
.onboarding-step .step-icon {
    width: 70px;
    height: 70px;
    background-color: var(--light-gray);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    border: 2px solid #e9ecef;
}

.onboarding-step .step-icon i {
    width: 32px;
    height: 32px;
}


/* ========== Section Tarifs ========== */
.pricing-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

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

.popular-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
}

.price-tag {
    color: var(--dark-color);
}

.price-tag .price {
    font-size: 3rem;
    font-weight: 700;
}

.price-tag .period {
    font-size: 1rem;
    color: #6c757d;
}

.price-custom {
    font-size: 1.75rem;
    font-weight: 600;
    display: block;
    padding: 1.2rem 0;
}

.feature-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ========== Section Témoignages ========== */
.testimonial-carousel .swiper-slide {
    padding: 1rem; /* Espace pour l'ombre portée */
}

.testimonial-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    border: 3px solid var(--primary-color);
    object-fit: cover;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}


/* Style pour les pages légales */
.legal-page main {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* ========== Bannière de consentement aux cookies ========== */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark-color);
    color: white;
    padding: 1rem;
    z-index: 1100;
    display: none; /* Caché par défaut, géré par JS */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    font-size: 0.9rem;
}

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

.cookie-banner a {
    color: #fff;
    text-decoration: underline;
}
