/* Reset et valeurs par défaut */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    padding: 20px max(1rem, calc((100% - 1200px) / 2));
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 24px;
    font-weight: bold;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Main */
main {
    min-height: calc(100vh - 200px);
}

/* Sections full-bleed */
section {
    width: 100%;
    padding: 80px max(1rem, calc((100% - 1200px) / 2));
}

/* Hero section */
section[aria-labelledby="hero"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
}

section[aria-labelledby="hero"] h2 {
    margin-bottom: 20px;
}

section[aria-labelledby="hero"] p {
    margin-bottom: 30px;
    font-size: 1.1em;
    max-width: 600px;
}

/* Cards/Services Grid */
section[aria-labelledby="cards"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

section[aria-labelledby="cards"] h2 {
    grid-column: 1 / -1;
    margin-bottom: 30px;
}

section[aria-labelledby="cards"] article {
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

section[aria-labelledby="cards"] article:hover {
    transform: translateY(-5px);
}

section[aria-labelledby="cards"] h3 {
    margin-bottom: 15px;
}

section[aria-labelledby="cards"] p {
    margin: 0;
}

/* About section */
section[aria-labelledby="about"] {
    display: flex;
    flex-direction: column;
    align-items: center;
}

section[aria-labelledby="about"] h2 {
    margin-bottom: 30px;
}

section[aria-labelledby="about"] p {
    max-width: 700px;
    text-align: center;
    line-height: 1.8;
}

/* Contact Form */
section[aria-labelledby="contact"] {
    display: flex;
    flex-direction: column;
    align-items: center;
}

section[aria-labelledby="contact"] h2 {
    margin-bottom: 30px;
}

form {
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="email"],
textarea {
    padding: 12px 15px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

input[type="email"]:focus,
textarea:focus {
    outline: none;
}

/* Footer */
footer {
    width: 100%;
    padding: 30px max(1rem, calc((100% - 1200px) / 2));
    text-align: center;
    border-top: 1px solid;
}

/* Buttons */
button {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

section[aria-labelledby="hero"] button {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 15px max(1rem, calc((100% - 100vw) / 2));
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    section {
        padding: 40px max(1rem, calc((100% - 100vw) / 2));
    }

    section[aria-labelledby="hero"] {
        min-height: 400px;
    }

    section[aria-labelledby="cards"] {
        grid-template-columns: 1fr;
    }

    form {
        max-width: 100%;
    }

    footer {
        padding: 30px max(1rem, calc((100% - 100vw) / 2));
    }
}

@media (max-width: 480px) {
    section {
        padding: 30px 1rem;
    }

    nav ul {
        gap: 10px;
    }

    header {
        padding: 15px 1rem;
    }

    footer {
        padding: 30px 1rem;
    }
}
