/* ===================================================
   VARIABLES GLOBALES
   =================================================== */
:root {
    /* Palette principale */
    --color-primary:        #21daff;
    --color-secondary:      #ff5c1a;
    --color-accent:         #ff9800;
    --color-light:          #fafafa;
    --color-bg-section:     #f0f8ff;
    --color-white:          #ffffff;
    --color-dark:           #000000;
    --color-text:           #333333;

    /* Couleurs sémantiques */
    --color-heading:        #9e141a;   /* h1, h2 */
    --color-green:          #006600;   /* h3, hero p */
    --color-button:         #e0ae16;
    --color-button-hover:   #bd9009;

    /* Header */
    --header-height:        70px;
    --main-color:           #145e3c;
    --background-blur:      10px;
}

/* ===================================================
   RESET & BASE
   =================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

html, body {
    height: 100%;
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}

body {
    background: var(--color-light);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-overflow-scrolling: touch;
}

/* ===================================================
   SECTIONS
   =================================================== */
section {
    height: 100dvh;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    scroll-snap-align: end;
}

section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

section:nth-of-type(even) {
    background-color: var(--color-light);
}

section:nth-of-type(odd) {
    background-color: var(--color-bg-section);
}

/* ===================================================
   HERO
   =================================================== */
.hero {
    background-image: url(../images/hero.png);
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1,
.hero p {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-heading);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-green);
    font-weight: bold;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    width: 70%;
}

.logo-hero {
    width: 18%;
    background-color: var(--color-white);
    padding: 1rem;
    border-radius: 8px;
}

/* ===================================================
   TYPOGRAPHIE
   =================================================== */
section h2 {
    font-size: 2rem;
    color: var(--color-heading);
    margin-bottom: 1rem;
}

h3 {
    color: var(--color-green);
}

p {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

/* ===================================================
   BOUTONS
   =================================================== */
.button {
    display: inline-block;
    background-color: var(--color-button);
    color: var(--color-white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--color-button-hover);
}

/* ===================================================
   COMPOSANTS PARTAGÉS — CARTES
   =================================================== */
.section-intro {
    text-align: center;
    font-style: italic;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-inline: auto;
}

.section-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    padding: 1rem;
}

.card {
    background-color: var(--color-light);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1 1 calc(25% - 2rem);
    min-width: 200px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.card p {
    color: var(--color-text);
    font-size: 0.9rem;
    margin: 0;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (min-width: 600px) {
    .card {
        flex-basis: calc(33.333% - 2rem);
    }
}

@media (min-width: 900px) {
    .card {
        flex-basis: calc(25% - 2rem);
    }
}

@media (max-width: 768px) {
    html, body {
        scroll-snap-type: none;
    }

    section {
        padding: 1rem;
        height: auto;
        min-height: 100dvh;
    }

    .hero-content {
        width: 80%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .logo-hero {
        display: none;
    }

    h2 {
        margin-bottom: 1rem;
        font-size: 1.2rem;
    }

    .section-cards {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .card {
        width: 90%;
        max-width: 400px;
        flex-basis: auto;
        padding: 1.5rem;
    }

    .card p {
        font-size: 1rem;
    }

    .card img {
        width: 60px;
        height: 60px;
    }
}
