* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #F28F19;
    --primary-teal: #1A514C;
    --light-blue: #E8F4F8;
    --light-green: #D4F1E4;
    --dark-teal: #0D6B63;
    --text-dark: #2F3B40;
    --text-light: #666;
    --border-light: #E0E0E0;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --bg-primary: #fff;
    --bg-secondary: #FBFBFB;
}

html.dark-mode {
    --primary-orange: #F28F19;
    --primary-teal: #1A514C;
    --light-blue: #1E3A42;
    --light-green: #2A5A54;
    --dark-teal: #1B6B63;
    --text-dark: #A4F0CF;
    --text-light: #fff;
    --border-light: #404040;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.3);
    --bg-primary: #3C414F;
    --bg-secondary: #353944;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

header .container {
    max-width: none;
    padding: 0 50px;
}

.container {
    max-width: 1530px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    padding: 15px 0;
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.header .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
}

/* Theme Switch */
.theme-switch {
    position: relative;
    width: 50px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.switch-track {
    position: absolute;
    top: 5px;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: #57D4AA;
    border-radius: 15px;
    transition: background-color 0.3s ease;
}

.switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background-color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid #57D4AA;
}

.theme-icon {
    font-size: 14px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.theme-icon svg{
    width: 100%;
    height: 100%;
}

html.dark-mode .switch-thumb {
    transform: translateX(20px);
}

/* Carousel */
.carousel-wrapper {
    position: relative;
    z-index: 1;
}

.carousel-section {
    position: relative;
    overflow: hidden;
    background: var(--light-blue);
    transition: background-color 0.3s ease;
    z-index: 1;
}

/* Carousel - Comportement uniforme pour toutes les tailles */
.carousel-section {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-section::-webkit-scrollbar {
    display: none;
}

.carousel {
    display: flex;
    width: max-content;
    gap: 0;
    position: relative;
}

.carousel-slide {
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-slide:nth-child(3) .carousel-content {
    bottom: 10%;
    top: unset;
}

.carousel-slide img {
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    pointer-events: none;
}

.carousel-slide:nth-child(1) .carousel-content {
    max-width: 70vw;
    left: 4%;
}

.carousel-content {
    position: absolute;
    width: 80%;
    max-width: 80vw;
    z-index: 5;
    color: #2F3B40;
    left: 7%;
    top: 5%;
}

.carousel-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--primary-orange);
}

h3.carousel-title {
    font-size: 32px;
}

.carousel-subtitle {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #353A3D;
    line-height: normal;
}

.carousel-text {
    font-size: 18px;
    font-weight: 500;
    color: #353A3D;
}

html.dark-mode .carousel-slide img {
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

/* Mobile : dots et snap scroll */
@media (max-width: 768px) {
    .carousel-section {
        scroll-snap-type: x mandatory;
    }

    .carousel-slide {
        width: 100vw;
        scroll-snap-align: start;
    }

    .carousel-slide img {
        width: 100%;
    }

    .carousel-dots {
        display: flex;
        gap: 10px;
        justify-content: center;
        padding: 20px 0;
    }

    .carousel-content {
        max-width: 100% !important;
        width: 95%;
        padding: 0 20px;
        left: 0;
    }

    .carousel-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    h3.carousel-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .carousel-slide:nth-child(3) .carousel-content {
        bottom: unset;
        top: 5%;
    }

    .carousel-subtitle {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .carousel-text {
        font-size: 16px;
    }
}

/* Desktop : scroll horizontal piloté par scroll vertical */
@media (min-width: 769px) {
    .pin-spacer {
        margin: 0 !important;
    }

    .carousel-wrapper {
        overflow: hidden;
        position: relative;
        width: 100%;
        max-width: 100vw;
    }

    .carousel-section {
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        overflow: hidden;
        width: 100%;
        max-width: 100vw;
        position: relative;
    }

    .carousel {
        display: flex;
        will-change: transform;
    }

    .carousel-slide {
        width: auto;
        flex-shrink: 0;
    }

    .carousel-slide img {
        width: auto !important;
        height: 100vh !important;
        object-fit: contain;
        max-width: none;
    }

    .carousel-dots {
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
        justify-content: center;
        padding: 20px 0;
        z-index: 10;
    }

    .dot {
        width: 8px;
        height: 8px;
        background-color: #F6D5BE;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .dot.active {
        background-color: #F99746;
        transform: scale(1.3);
    }

    .dot:hover {
        background-color: #F99746;
        opacity: 0.8;
    }
}

.carousel-svg {
    width: 100%;
    height: 100%;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #F6D5BE;
    cursor: pointer;
    transition: background-color 0.3s;
    border: none;
}

.dot.active {
    background-color: #F99746;
}

.dot:hover {
    background-color: #F99746;
    opacity: 0.8;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    transition: background 0.3s ease;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
}

/* Main Content */
.main-content {
    padding: 60px 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 1;
}


.section-title {
    color: var(--primary-orange);
    margin-bottom: 40px;
    font-weight: 700;
    font-size: 36px;
    text-align: center;
}

/* Features Grid */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    flex: 0 1 calc(33.333% - 20px);
    min-width: 280px;
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 50px 24px;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 4px 0px #00000020;
}

.feature-icon {
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(87deg, #DBF4FF 2.35%, #DBF4FF 21.7%, rgba(188, 243, 215, 0.90) 74.23%);
    padding: 60px 0;
    transition: background 0.3s ease;
}

.cta-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2F3B40;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 16px;
    color: #2F3B40;
    margin-bottom: 16px;
    line-height: 1.6;
}

.cta-highlight {
    font-weight: 600;
    color: var(--dark-teal);
    margin-bottom: 24px !important;
}

.cta-button {
    background-color: var(--primary-teal);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--dark-teal);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 155, 142, 0.3);
}

.cta-graphic {
    height: 300px;
}

.cta-graphic img,
.cta-graphic svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Banner */
.banner {
    background: linear-gradient(90deg, #4CBF98 0%, #3BB19B 29.33%, #3BB19B 61.54%, #4CBF98 100%);
    padding: 10px 0;
    text-align: center;
}

.banner p {
    margin: 0;
    color: white;
    font-weight: 400;
    font-size: 16px;
    padding: 0 15px;
}

/* Footer */
.footer {
    background: var(--dark-teal);
    color: white;
    padding: 50px 0 20px;
    transition: background-color 0.3s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    color: var(--primary-orange);
}

.footer-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-section p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
    margin-bottom: 8px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--primary-orange);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 24px;
    }

    
    .section-title {
        font-size: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-section .container {
        grid-template-columns: 1fr;
    }

    .cta-graphic {
        height: auto;
        max-height: 250px;
    }

    .cta-graphic img {
        width: 100%;
        height: auto;
        max-height: 250px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section a {
        justify-content: center;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
    }
}