/* ===--- Variables CSS ----------------------=== */
:root {
    --primary-color: #00AEEF;
    --primary-color-alpha: rgba(0, 174, 239, 0.8);
    --text-dark: #1C2526;
    --text-gray: #4B5563;
    --shadow-light: rgba(0, 0, 0, 0.06);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    --shadow-dark-hover: rgba(0, 0, 0, 0.3);
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #e0f2fe 100%);
}

/* === ------------Styles généraux ------------=== */

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
}

/* === ------------Navigation ----------------------=== */

.nav-blur {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 0.3s ease;
}

@supports not (backdrop-filter: blur(8px)) {
    .nav-blur {
        background-color: #ffffff;
    }
}

.nav-link.active {
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
    animation: slideIn 0.3s ease-in-out;
}

/* === ----------- Carrousel (Swiper)----------------- === */

.swiper {
    width: 100%;
}

.swiper-container, .swiper-container-advantages {
    max-width: 100%;
    overflow: hidden;
}

.swiper-slide {
    max-width: 100%;
    box-sizing: border-box;
    min-width: 280px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.swiper-slide:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px var(--shadow-light);
}

.swiper-slide:active {
    transform: scale(0.98);
}

.swiper-wrapper {
    padding-bottom: 2rem;
}

.swiper-button-next, .swiper-button-prev {
    color: #fff;
    background-color: var(--primary-color-alpha);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px var(--shadow-dark);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    transform: scale(1.1);
    background-color: var(--primary-color);
}

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

/* === ------Cartes (Features et Advantages)-------------------- === */

.feature-card, .advantage-card {
    background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
    border-radius: 1rem;
    box-shadow: 0 6px 16px var(--shadow-dark);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

.feature-card:hover, .advantage-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 24px var(--shadow-dark-hover);
    background-color: #e0f2fe;
}

.feature-card img {
    transition: transform 0.4s ease-in-out;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.feature-card h3, .advantage-card h4 {
    color: #005b8f;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p, .advantage-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* === -------------------FAQ ---------------------- === */
.faq-item {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-dark-hover);
}
.faq-content {
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.3s ease;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding-bottom: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}
.faq-content.show {
  max-height: 500px; /* Assez grand pour tous les contenus */
  opacity: 1;
  padding-bottom: 1rem; /* Revenir à pb-4 */
}
.rotate-45 {
  transform: rotate(45deg);
}

/* === -------------- Section Héros ---------------=== */
#hero {
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
    padding-bottom: 6rem;
    z-index: 1;
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(16px);
    transform: scale(1.1);
    mix-blend-mode: lighten;
    z-index: -1;
}

/* === ---------Contact -------------------------=== */
.contact-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    background: transparent;
    transition: box-shadow 0.4s ease-in-out;
    border-radius: 50%; 
}

.contact-icon.pulsate {
    animation: pulseIcons 0.3s ease-in-out 3;
    box-shadow: 0 8px 16px var(--shadow-dark);
    color: var(--primary-color);
    background: transparent;
    border-radius: 50%; 
}

.contact-icon.email svg {
    fill: none;
    stroke: var(--primary-color);
}

.contact-icon.linkedin svg, .contact-icon.facebook svg {
    fill: var(--primary-color);
}

.contact-icon.pulsate.email svg {
    fill: none;
    stroke: var(--primary-color);
}

.contact-icon.pulsate.linkedin svg, .contact-icon.pulsate.facebook svg {
    fill: var(--primary-color);
}

/* === ------Logo animé-------------------- === */
.logo-animated {
    animation: pulse 2s infinite ease-in-out;
}

/* === ---------Animations --------------------=== */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes slideIn {
    from { transform: translateX(-10px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulseIcons {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.15) translateY(-4px); }
}