/* Importation des polices */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;600;700&display=swap");

/* Variables de typographie */
:root {
    --font-primary:
        Inter, Roboto, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial,
        sans-serif;
    --font-heading: system-ui, sans-serif;

    /* Tailles de police */
    --fs-xs: 12px;
    --fs-sm: 14px;
    --fs-base: 16px;
    --fs-lg: 18px;
    --fs-xl: 20px;
    --fs-2xl: 24px;
    --fs-3xl: 32px;
    --fs-4xl: 40px;
    --fs-5xl: 48px;

    /* Poids de police */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;

    /* Hauteurs de ligne */
    --lh-tight: 1.2;
    --lh-normal: 1.5;
    --lh-relaxed: 1.75;
    --lh-loose: 2;
}

/* Corps du texte */
body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
}

/* Titres */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    margin-bottom: 15px;
}

h1 {
    font-size: var(--fs-5xl);
    font-weight: var(--fw-extrabold);
}

h2 {
    font-size: var(--fs-4xl);
}

h3 {
    font-size: var(--fs-3xl);
}

h4 {
    font-size: var(--fs-2xl);
}

h5 {
    font-size: var(--fs-xl);
}

h6 {
    font-size: var(--fs-lg);
}

/* Logo (h1 dans le header) */
header h1 {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-extrabold);
    text-decoration: none;
}

/* Titres de section (h2 dans les sections) */
section h2 {
    font-size: var(--fs-4xl);
    font-weight: var(--fw-bold);
    text-align: center;
    margin-bottom: 40px;
    font-family: var(--font-heading);
}

/* Hero */
section[aria-labelledby="hero"] h2 {
    font-size: var(--fs-5xl);
    font-weight: var(--fw-extrabold);
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

section[aria-labelledby="hero"] p {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-light);
    line-height: var(--lh-relaxed);
}

/* Navigation */
nav a {
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    text-transform: none;
    text-decoration: none;
}

/* Articles de service (h3 et p dans article) */
section[aria-labelledby="cards"] h3 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

section[aria-labelledby="cards"] p {
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    line-height: var(--lh-relaxed);
}

/* Texte "À propos" */
section[aria-labelledby="about"] p {
    font-size: var(--fs-lg);
    line-height: var(--lh-relaxed);
    font-weight: var(--fw-regular);
}

/* Boutons */
button {
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-primary);
}

/* Formulaires */
input[type="email"],
textarea {
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    font-family: var(--font-primary);
}

input[type="email"]::placeholder,
textarea::placeholder {
    font-weight: var(--fw-regular);
}

/* Footer */
footer {
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
}

/* Paragraphes */
p {
    margin-bottom: 15px;
}

/* Liens */
a {
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --fs-5xl: 36px;
        --fs-4xl: 30px;
        --fs-3xl: 24px;
        --fs-2xl: 20px;
    }

    section[aria-labelledby="hero"] h2 {
        font-size: var(--fs-4xl);
    }

    section[aria-labelledby="hero"] p {
        font-size: var(--fs-xl);
    }

    section h2 {
        font-size: var(--fs-3xl);
    }
}

@media (max-width: 480px) {
    :root {
        --fs-5xl: 28px;
        --fs-4xl: 24px;
        --fs-3xl: 20px;
        --fs-2xl: 18px;
        --fs-xl: 16px;
    }

    h1 {
        font-size: var(--fs-3xl);
    }

    h2 {
        font-size: var(--fs-2xl);
    }

    section h2 {
        font-size: var(--fs-2xl);
    }
}
