/* Réinitialisation et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff4b5c;
    --secondary: #1089ff;
    --accent: #33c24d;
    --warning: #ffba3b;
    --dark: #2d2d2d;
    --light: #ffffff;
    --gray: #f5f5f5;
    --text: #333333;
}

body {
    font-family: 'Montserrat', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--secondary);
    transition: all 0.3s ease;
}

/* Typographie */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 1.8rem;
    color: var(--primary);
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 3px;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--light);
}

p {
    margin-bottom: 1rem;
}

section {
    padding: 80px 0;
}

/* En-tête et navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    margin: 0;
}

nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: var(--dark);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

#menu-toggle, .menu-icon {
    display: none;
}

/* Section Hero */
.hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e0e6ed 100%);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    width: 50%;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
    color: var(--dark);
}

.hero-text h2::after {
    margin: 15px 0 0;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text);
    max-width: 500px;
}

.hero-visual {
    width: 45%;
}

.hero-visual svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

/* Boutons */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    background: var(--primary);
    color: var(--light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(255, 75, 92, 0.4);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 75, 92, 0.6);
    color: var(--light);
}

.cta-button.secondary {
    background: var(--secondary);
    box-shadow: 0 5px 15px rgba(16, 137, 255, 0.4);
}

.cta-button.secondary:hover {
    box-shadow: 0 8px 20px rgba(16, 137, 255, 0.6);
}

.cta-container {
    text-align: center;
    margin-top: 3rem;
}

/* Section fonctionnalités */
.features {
    background-color: var(--light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: linear-gradient(180deg, var(--light) 0%, var(--gray) 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
}

/* Section Comment ça marche */
.how-it-works {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--light);
}

.how-it-works h2 {
    color: var(--light);
}

.how-it-works h2::after {
    background: var(--light);
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 40px 0;
}

.step {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: flex-start;
    padding: 20px;
    position: relative;
    margin-bottom: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-content h3 {
    color: var(--light);
    margin-bottom: 10px;
}

/* Section FAQ */
.faq {
    background-color: var(--gray);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: rgba(255, 75, 92, 0.05);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-header.active {
    background-color: rgba(255, 75, 92, 0.05);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 60px 0 30px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo, .footer-nav, .footer-keywords {
    margin-bottom: 30px;
    min-width: 200px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.logo-icon-small {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: var(--gray);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }

    .hero-text, .hero-visual {
        width: 100%;
        text-align: center;
    }

    .hero-text h2 {
        text-align: center;
    }

    .hero-text h2::after {
        margin: 15px auto 0;
    }

    .hero-text p {
        margin: 0 auto 2rem;
    }

    .hero-visual {
        margin-top: 40px;
        max-width: 400px;
    }

    .steps {
        flex-direction: column;
    }

    .step {
        margin-bottom: 30px;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-nav li {
        margin: 0 15px 10px;
    }
}

@media (max-width: 768px) {
    #menu-toggle {
        position: absolute;
        opacity: 0;
    }

    .menu-icon {
        display: block;
        cursor: pointer;
        padding: 10px;
        position: relative;
        z-index: 2;
    }

    .menu-icon span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--dark);
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--light);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    #menu-toggle:checked ~ .nav-menu {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    #menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    #menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}
