/* =========================================================
   PROFAYCEL — PAGE D'ACCUEIL (index.html)
   Les classes « hm- » sont propres à cette page.
========================================================= */

.home {
    --hm-yellow: #facc15;
    --hm-yellow-soft: #fef9c3;
    --hm-green: #16a34a;
    --hm-wa: #25d366;
    --hm-navy: #1e3a8a;
}

.hm-logo-accent {
    color: var(--primary);
}


/* ---------- Boutons ---------- */

.hm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 50px;
    padding: 0 24px;

    border: 0;
    border-radius: 14px;

    font-size: 1rem;
    font-weight: 800;

    cursor: pointer;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hm-btn:hover {
    transform: translateY(-2px);
}

.hm-btn-wa {
    background: var(--hm-wa);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.hm-btn-outline {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}


/* ---------- Hero ---------- */

.hm-hero {
    position: relative;
    overflow: hidden;

    background: linear-gradient(160deg, var(--primary-soft) 0%, #dbeafe 60%, var(--hm-yellow-soft) 100%);
}

.hm-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 30px;

    padding-top: 50px;
}

.hm-hero-text {
    padding-bottom: 80px;
}

.hm-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 6px 14px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--white);
    color: var(--hm-navy);

    font-size: 0.9rem;
    font-weight: 700;
}

.hm-badge i {
    width: 8px;
    height: 8px;

    border-radius: 50%;
    background: var(--hm-green);
}

.hm-hero h1 {
    margin: 18px 0 6px;

    color: var(--dark);
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hm-role {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.hm-slogan {
    margin: 22px 0 30px;

    color: var(--dark);
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 800;
    line-height: 1.5;
}

.hm-slogan mark {
    padding: 0 4px;

    background: linear-gradient(transparent 55%, var(--hm-yellow) 55%);
    color: inherit;
}

.hm-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hm-hero-photo {
    position: relative;

    align-self: end;
    justify-self: center;

    width: min(400px, 100%);
}

.hm-hero-photo::before {
    content: "";

    position: absolute;
    inset: 22% 2% 0 2%;
    z-index: 0;

    border-radius: 50% 50% 30px 30px;
    background: var(--hm-yellow);
}

.hm-hero-photo img {
    position: relative;
    z-index: 1;

    width: 100%;
    height: auto;

    filter: drop-shadow(0 20px 30px rgba(15, 23, 42, 0.18));
}


/* ---------- Chiffres ---------- */

.hm-stats {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;

    margin-top: -46px;
}

.hm-stat {
    padding: 18px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--white);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);

    text-align: center;
}

.hm-stat b {
    display: block;

    color: var(--primary);
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.3;
}

.hm-stat span {
    font-size: 0.92rem;
    font-weight: 600;
}


/* ---------- Sections ---------- */

.hm-section {
    padding: 90px 0;
}

.hm-grey {
    background: var(--light);
}

.hm-label {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hm-section h2,
.hm-cta h2 {
    margin: 6px 0 16px;

    color: var(--dark);
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.hm-lead {
    max-width: 680px;

    font-size: 1.1rem;
    line-height: 1.8;
}


/* ---------- Qui suis-je ---------- */

.hm-about {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 50px;
}

.hm-about-photo {
    overflow: hidden;

    border: 8px solid var(--white);
    border-radius: 28px;
    outline: 3px solid var(--hm-yellow);

    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.15);
}

.hm-about-photo img {
    width: 100%;
    height: auto;
}

.hm-creds {
    display: grid;
    gap: 12px;

    margin-top: 22px;

    list-style: none;
}

.hm-creds li {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 14px 16px;

    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--dark);

    font-weight: 700;
}

.hm-ic {
    flex: 0 0 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 12px;
    background: var(--white);

    font-size: 1.3rem;
}


/* ---------- Mes cours ---------- */

.hm-levels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;

    margin-top: 30px;
}

.hm-level {
    padding: 24px;

    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--white);
}

.hm-num {
    width: 56px;
    height: 56px;

    display: grid;
    place-items: center;

    border-radius: 16px;
    background: var(--primary);
    color: var(--white);

    font-size: 1.5rem;
    font-weight: 800;
}

.hm-level:nth-child(2) .hm-num { background: #0ea5e9; }
.hm-level:nth-child(3) .hm-num { background: #7c3aed; }
.hm-level:nth-child(4) .hm-num { background: var(--dark); }

.hm-level h3 {
    margin: 14px 0 4px;
    color: var(--dark);
}

.hm-level p {
    font-size: 0.95rem;
}

.hm-modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;

    margin-top: 16px;
}

.hm-mode {
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 22px 24px;

    border-radius: 20px;
}

.hm-mode-ic {
    font-size: 2rem;
}

.hm-mode h3 {
    color: var(--dark);
}

.hm-mode-salle { background: var(--hm-yellow-soft); }
.hm-mode-ligne { background: #dcfce7; }


/* ---------- Espaces ---------- */

.hm-spaces {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;

    margin-top: 30px;
}

.hm-space {
    display: flex;
    flex-direction: column;
    gap: 10px;

    padding: 28px;

    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--white);
}

.hm-space-ic {
    width: 60px;
    height: 60px;

    display: grid;
    place-items: center;

    border-radius: 18px;

    font-size: 1.9rem;
}

.hm-space h3 {
    margin-top: 6px;

    color: var(--dark);
    font-size: 1.3rem;
}

.hm-space ul {
    padding-inline-start: 20px;

    line-height: 2;
}

.hm-space small {
    margin-top: auto;

    color: var(--text-light);
    font-weight: 600;
}

.hm-space .hm-btn {
    margin-top: auto;
    color: #ffffff;
}

.hm-space small + .hm-btn {
    margin-top: 0;
}

.hm-space-eleve .hm-space-ic { background: var(--primary-soft); }
.hm-space-parent .hm-space-ic { background: var(--hm-yellow-soft); }
.hm-space-distance .hm-space-ic { background: #dcfce7; }

.hm-space-eleve .hm-btn { background: var(--primary); }
.hm-space-parent .hm-btn { background: var(--dark); }
.hm-space-distance .hm-btn { background: var(--hm-green); }


/* ---------- Livres ---------- */

.hm-books {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;

    margin-top: 34px;
}

.hm-book {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    text-align: center;
}

.hm-book img {
    width: 100%;
    max-width: 320px;
    height: auto;

    border-radius: 14px;
    box-shadow: 0 25px 40px rgba(37, 99, 235, 0.25);

    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.hm-book:nth-child(2) img {
    transform: rotate(1.5deg);
}

.hm-book:hover img {
    transform: rotate(0) scale(1.03);
}

.hm-book h3 {
    margin-top: 12px;
    color: var(--dark);
}

.hm-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;

    margin-top: 40px;

    list-style: none;
}

.hm-chips li {
    padding: 8px 18px;

    border-radius: 999px;
    background: var(--hm-yellow);
    color: var(--dark);

    font-weight: 800;
}

.hm-chips .hm-chip-red {
    background: #fee2e2;
    color: #b91c1c;
}

.hm-cities {
    margin-top: 16px;

    color: var(--text-light);
    font-weight: 600;
    text-align: center;
}


/* ---------- Méthode ---------- */

.hm-method {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
}

.hm-points {
    display: grid;
    gap: 16px;

    margin-top: 24px;
}

.hm-point {
    display: flex;
    gap: 16px;
}

.hm-point b {
    flex: 0 0 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border-radius: 50%;
    background: var(--primary);
    color: var(--white);

    font-size: 1.2rem;
    font-weight: 800;
}

.hm-point h3 {
    color: var(--dark);
    font-size: 1.15rem;
}

.hm-method-photo {
    padding: 20px 20px 0;

    border-radius: 30px;
    background: var(--primary-soft);
}

.hm-method-photo img {
    width: 100%;
    height: auto;
}


/* ---------- Contact / réseaux ---------- */

.hm-cta {
    padding: 54px;

    border-radius: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--hm-navy) 100%);
    color: var(--white);

    text-align: center;
}

.hm-cta h2 {
    color: var(--white);
}

.hm-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;

    margin: 30px 0;
}

.hm-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    font-size: 0.9rem;
    font-weight: 700;
}

.hm-social svg {
    width: 64px;
    height: 64px;
    padding: 16px;

    border-radius: 20px;
    background: var(--white);
    fill: var(--c);

    transition: transform 0.2s ease;
}

.hm-social:hover svg {
    transform: translateY(-3px);
}


/* ---------- Téléphone ---------- */

@media (max-width: 860px) {

    .hm-hero-grid {
        grid-template-columns: 1fr;
        gap: 0;

        padding-top: 30px;
    }

    .hm-hero-text {
        padding-bottom: 20px;
        text-align: center;
    }

    .hm-buttons {
        justify-content: center;
    }

    .hm-hero-photo {
        width: min(300px, 80%);
    }

    .hm-stats {
        grid-template-columns: 1fr 1fr;
        margin-top: 20px;
    }

    .hm-about,
    .hm-method {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hm-about-photo {
        max-width: 340px;
        margin-inline: auto;
    }

    .hm-levels {
        grid-template-columns: 1fr 1fr;
    }

    .hm-modes,
    .hm-spaces,
    .hm-books {
        grid-template-columns: 1fr;
    }

    .hm-book img {
        max-width: 260px;
    }

    .hm-cta {
        padding: 36px 20px;
        border-radius: 24px;
    }

    .hm-section {
        padding: 60px 0;
    }

}

/* ---------- Gros appel à l'inscription ---------- */

.hm-inscrire {
    padding: 44px 0 40px;
    background: #fef2f2;
    border-top: 4px solid #dc2626;
    border-bottom: 4px solid #dc2626;
    text-align: center;
}

.hm-inscrire-mot {
    margin: 0 0 10px;
    color: #dc2626;
    font-size: clamp(4rem, 20vw, 8rem);
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
}

.hm-inscrire-texte {
    margin: 0 auto 22px;
    max-width: 520px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}

.hm-inscrire-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.hm-inscrire-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 250px;
    padding: 16px 26px;
    border-radius: 16px;
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.35);
    transition: transform 0.2s ease;
}

.hm-inscrire-btn:hover {
    transform: translateY(-2px);
}

.hm-inscrire-btn b {
    font-size: 1.25rem;
}

.hm-inscrire-btn span {
    font-size: 0.95rem;
    opacity: 0.95;
}

.hm-inscrire-parent {
    background: var(--dark);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3);
}

.hm-inscrire-deja {
    display: block;
    margin-top: 16px;
    font-size: 0.95rem;
}

.hm-inscrire-deja a {
    font-weight: 800;
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 520px) {
    .hm-inscrire-btn { width: 100%; }
}

.hm-inscrire-btn {
    max-width: 460px;
    margin: 0 auto;
    padding: 20px 28px;
    animation: hm-pulse 2s ease-in-out infinite;
}

.hm-inscrire-btn b {
    font-size: 1.6rem;
}

@keyframes hm-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.hm-inscrire-lien {
    margin: 22px 0 0;
    font-weight: 700;
}

.hm-inscrire-lien a {
    color: #dc2626;
    text-decoration: underline;
}

.hm-inscrire-banner {
    max-width: 460px;
    margin: 18px auto 0;
    text-align: start;
}

.hm-mode-lien {
    display: inline-block;
    margin-top: 10px;
    font-weight: 800;
    color: #dc2626;
    text-decoration: underline;
}
