/* ================================================== */
/* STYLES SPÉCIFIQUES - home.css */
/* ================================================== */

/* ====================== */
/* HERO PLEIN ÉCRAN       */
/* ====================== */

#hero.hero-cover {
    position: relative;
    padding: 0;
    min-height: calc(100vh - 80px); /* header desktop */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);

    /* Image de fond + gradient violet */
    background-image:
        linear-gradient(
            120deg,
            rgba(15, 15, 40, 0.75) 0%,
            rgba(70, 35, 95, 0.7) 40%,
            rgba(70, 35, 95, 0.45) 70%,
            rgba(10, 10, 20, 0.25) 100%
        ),
        url("../img/julien-michon-alpha-training-64-hero.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

@media (max-width: 768px) {
    #hero.hero-cover {
        min-height: calc(100vh - 70px); /* header mobile */
    }
}

/* on masque le <picture> qui ne sert plus au rendu */
#hero.hero-cover .hero-media {
    display: none;
}

#hero.hero-cover .container {
    position: relative;
    z-index: 1;
    padding-top: 110px;
    padding-bottom: 110px;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: clamp(2.3rem, 1.4rem + 3vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 10px;
}

.hero-text .subtitle {
    font-size: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
    font-weight: 600;
    color: #f6f1ff;
    margin-bottom: 25px;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

@media (max-width: 600px) {
    #hero.hero-cover .container {
        padding-top: 90px;
        padding-bottom: 90px;
    }
    .btn-row {
        flex-direction: column;
        align-items: center;
    }
}

/* ====================== */
/* SERVICES OVERVIEW      */
/* ====================== */

.services-overview {
    padding: var(--section-padding);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--text-light);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* BONUS : Interaction au survol des cartes */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary);
}

.service-card .icon-wrapper {
    margin-bottom: 15px;
    color: var(--secondary);
}

.service-card h3 {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 800;
}
.service-card p {
    font-size: 0.95rem;
    min-height: 45px;
    margin-bottom: 15px;
}
.service-card .read-more {
    color: var(--highlight);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ====================== */
/* ACCOMPAGNEMENT         */
/* ====================== */

.accompagnement-section .content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    text-align: left;
}
.accompagnement-section h2 {
    text-align: center;
    margin-bottom: 30px;
}
.accompagnement-section .text-content {
    flex: 1;
}
.accompagnement-section .image-content {
    flex-shrink: 0;
    max-width: 40%;
}

/* Modification du cadre du portrait */
.home-portrait {
    position: relative; /* Nécessaire pour positionner le badge par-dessus */
    background-color: var(--accent);
    padding: 0;
    border-radius: 12px;
    text-align: center;
    height: 480px;
    width: 100%;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* CHANGEMENT : dashed devient solid pour un trait continu */
    border: 4px solid var(--secondary); 
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

/* BONUS : Effet de zoom sur l'image au survol */
.home-portrait:hover {
    transform: scale(1.02);
}

.home-portrait:hover img {
    transform: scale(1.05);
}

/* Image portrait */
.home-portrait picture,
.home-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0; /* On laisse le cadre parent gérer l'arrondi */
    transition: transform 0.5s ease;
}

/* BONUS : Style du Badge "Éducateur Certifié" */
.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -10px; /* Déborde légèrement pour un style dynamique */
    background: var(--highlight); /* Orange pour attirer l'oeil */
    color: white;
    padding: 10px 20px;
    font-weight: 800;
    font-size: 0.9rem;
    transform: rotate(-3deg);
    box-shadow: 3px 5px 15px rgba(0,0,0,0.3);
    border-radius: 4px;
    z-index: 5;
    pointer-events: none; /* Ne gêne pas le clic */
}

@media (max-width: 900px) {
    .accompagnement-section .content-wrapper {
        flex-direction: column;
    }
    .accompagnement-section .image-content {
        max-width: 100%;
        order: -1;
    }
    .accompagnement-section .text-content {
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .home-portrait {
        max-width: 320px;
        height: 380px;
        margin: 0 auto;
    }
    .experience-badge {
        right: 10px;
        bottom: 20px;
        transform: rotate(0);
        font-size: 0.8rem;
    }
}

/* ====================== */
/* PROBLEM SECTION        */
/* ====================== */

.problem-section {
    padding: var(--section-padding);
    background-color: var(--neutral);
}
.problem-section .intro-text {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.trouble-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.trouble-item {
    background: var(--text-light);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--secondary);
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease;
}

.trouble-item:hover {
    background: #fdfbff;
}

.trouble-item .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}
.trouble-item h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 700;
}
.trouble-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}