/* ==========================================================================
   KAROMA — PAGE ACCUEIL
   Utilise le système de composants commun défini dans global.css
   ========================================================================== */


/* ==========================================================================
   CONTENEUR PRINCIPAL
   ========================================================================== */

.home-container {
    width: 100%;
    max-width: 100%;
    margin: 1.1rem auto 2.2rem;
    padding: 0.5rem 1.2rem 2rem;

    background-color: var(--color-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(212, 184, 150, 0.2);

    font-family: var(--font_gene);
}


/* ==========================================================================
   TITRE PRINCIPAL
   ========================================================================== */

.home-title {
    margin: 0.5rem 0 0.75rem;

    text-align: center;

    color: #843fa1;
    font-family: var(--spontane);
    font-size: clamp(3rem, 5vw, 4.2rem);
    font-weight: bold;
    line-height: 1.15;
}


/* ==========================================================================
   SOUS-TITRE
   ========================================================================== */

.home-subtitle {
    margin: 0 auto 2rem;

    max-width: 1000px;

    text-align: center;

    color: var(--violet);
    font-family: var(--font_gene) !important;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.5;
}


/* ==========================================================================
   INTRODUCTION + IMAGE
   ========================================================================== */

.home-intro-row {
    /*
     * Le texte reste à gauche.
     * L'image reste à droite.
     * Les deux colonnes possèdent leur propre espace réel.
     */
    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 360px);

    grid-template-areas:
        "text image";

    column-gap: clamp(2rem, 6vw, 6rem);

    align-items: center;

    margin-top: 2rem;
    margin-bottom: 4rem;
}


/* ==========================================================================
   TEXTE D'INTRODUCTION
   ========================================================================== */

.home-intro-card {
    width: min(100%, 760px);
    justify-self: start;

    padding: 0;

    background: transparent;
    border: none;
    box-shadow: none;

    line-height: 1.75;
}

.home-intro-card p {
    margin: 0 0 1.2rem;
    text-align: left;
}

.home-intro-card p:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   IMAGE D'ACCUEIL
   ========================================================================== */

.home-image {
    width: 100%;
    max-width: 360px;

    justify-self: center;

    /*
     * Décalage visuel uniquement.
     * La place de l'image reste réservée par la grille.
     */
    transform: translateY(3rem) rotate(1.5deg);
}


/* ==========================================================================
   SECTION "POURQUOI"
   ========================================================================== */

.home-why {
    width: min(100%, 1050px);
    margin: 0 auto 3rem;
}


.home-section-intro {
    margin-bottom: 2rem;

    text-align: left;

    color: #843fa1;
}


/* ==========================================================================
   LISTE
   ========================================================================== */

.home-list {
    width: 100%;
    margin: 0;
}


/* ==========================================================================
   ACTION / BOUTON
   ========================================================================== */

.home-action {
    display: flex;
    justify-content: center;

    margin-top: 2rem;
}

.home-action form {
    margin: 0;
}


/* ==========================================================================
   RESPONSIVE — TABLETTE
   ========================================================================== */

@media (max-width: 900px) {

    .home-intro-row {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(240px, 300px);

        column-gap: 2rem;
    }

    .home-intro-card {
        width: min(100%, 620px);
        padding: 1.4rem 1.6rem;
    }

    .home-image {
        max-width: 300px;
        transform: translateY(2rem) rotate(1.5deg);
    }

    .home-why {
        width: 90%;
    }
}


/* ==========================================================================
   RESPONSIVE — MOBILE
   ========================================================================== */

@media (max-width: 768px) {

    .home-container {
        padding-inline: 0.75rem;
    }

    .home-title {
        font-size: clamp(2.4rem, 9vw, 3.2rem);
    }

    .home-subtitle {
        margin-bottom: 1.5rem;
    }


    /*
     * À partir d'ici, le texte et l'image passent naturellement
     * l'un sous l'autre.
     */
    .home-intro-row {
        grid-template-columns: 1fr;

        grid-template-areas:
            "text"
            "image";

        gap: 1.5rem;

        margin-bottom: 3rem;
    }

    .home-intro-card {
        width: 100%;
        justify-self: stretch;
        padding: 1.25rem;
    }

    .home-image {
        width: min(94%, 360px);
        max-width: 360px;

        justify-self: center;

        transform: translateY(0.5rem) rotate(1deg);
    }

    .home-why {
        width: 100%;
        margin-bottom: 2.5rem;
    }

    .home-section-intro {
        margin-bottom: 1.5rem;
    }

    .home-list {
        padding-left: 1.3rem;
    }

    .home-list li {
        margin-bottom: 1rem;
    }

    .home-action {
        margin-top: 1.5rem;
    }
}


/* ==========================================================================
   RESPONSIVE — PETIT MOBILE
   ========================================================================== */

@media (max-width: 480px) {

    .home-container {
        padding-inline: 0.5rem;
    }

    .home-title {
        font-size: 2.4rem;
    }

    .home-subtitle {
        font-size: 0.95rem;
    }

    .home-intro-card {
        padding: 1rem;
    }

    .home-image {
        width: 94%;
    }

    .home-list {
        padding-left: 1.15rem;
    }
}


/* ==========================================================================
   RESPONSIVE — TRÈS PETIT ÉCRAN
   ========================================================================== */

@media (max-width: 360px) {

    .home-title {
        font-size: 2.15rem;
    }

    .home-intro-card {
        padding: 0.9rem;
    }

    .home-list {
        padding-left: 1rem;
    }
}
