/* Styles propres à la page d'accueil (chargée après style.css). */

/* Bandeau d'accueil */

.hero-home {
    position: relative;
    min-height: min(78vh, 640px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--ardoise-fonce);
    color: #fff;
}

.hero-home > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 55%;
}

.hero-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 33, 51, 0.92) 0%, rgba(20, 33, 51, 0.75) 38%, rgba(20, 33, 51, 0.1) 75%);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.hero-text {
    max-width: 560px;
}

.eyebrow {
    display: inline-block;
    font-family: var(--titres);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.85rem;
    color: #f3d9b1;
    border-left: 3px solid var(--rouge);
    padding-left: 0.75rem;
    margin-bottom: 1.25rem;
}

.hero-home h1 {
    font-family: var(--titres);
    font-weight: 600;
    text-transform: uppercase;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: 0.01em;
    margin-bottom: 1.25rem;
}

.hero-lead {
    font-size: 1.15rem;
    color: #e8edf3;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-credit {
    position: absolute;
    right: 1rem;
    bottom: 0.75rem;
    z-index: 2;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Bandeau d'atouts */

.atouts {
    background: var(--creme);
    border-bottom: 1px solid var(--bord);
}

.atouts ul {
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.atouts li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.35;
}

.atouts svg {
    flex: none;
    width: 32px;
    height: 32px;
    stroke: var(--rouge);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.atouts strong {
    display: block;
    color: var(--encre);
    font-family: var(--titres);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Sections */

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4.5rem 2rem;
}

/* Réalisations de la communauté */

.communaute {
    background: var(--ardoise-fonce);
    color: #dfe6ee;
}

.communaute .section-head h2 {
    color: #fff;
}

.communaute .section-head p {
    color: #b8c4d2;
}

.mosaique {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 0.75rem;
}

.mosaique figure {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #10202f;
}

.mosaique figure:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.mosaique a {
    display: block;
    height: 100%;
}

.mosaique img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.mosaique figure:hover img {
    transform: scale(1.05);
}

.mosaique figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem 0.75rem 0.6rem;
    font-size: 0.8rem;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    pointer-events: none;
}

.communaute-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 2.5rem;
}

.communaute-actions p {
    color: #b8c4d2;
}

.communaute-actions p a {
    color: #f3d9b1;
}

/* Comment commander */

.etapes {
    list-style: none;
    counter-reset: etape;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.etapes li {
    counter-increment: etape;
    background: var(--creme);
    border-radius: 6px;
    padding: 1.75rem 1.5rem 1.5rem;
    position: relative;
}

.etapes li::before {
    content: counter(etape);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--rouge);
    color: #fff;
    font-family: var(--titres);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.etapes h3 {
    font-family: var(--titres);
    font-weight: 500;
    text-transform: uppercase;
    color: var(--encre);
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
}

.etapes p {
    font-size: 0.95rem;
}

.commander-cta {
    text-align: center;
}

.commander-cta .btn + .btn {
    margin-left: 0.75rem;
}

/* Adaptations */

@media (max-width: 1100px) {
    .atouts ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-home {
        min-height: 0;
    }

    .hero-home::before {
        background: linear-gradient(180deg, rgba(20, 33, 51, 0.15) 0%, rgba(20, 33, 51, 0.6) 35%, rgba(20, 33, 51, 0.92) 70%);
    }

    .hero-home > img {
        object-position: 70% 30%;
    }

    .hero-inner {
        padding: 11rem 1rem 3.5rem;
    }

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

    .section {
        padding: 3rem 1rem;
    }

    .atouts ul {
        padding: 1.25rem 1rem;
        gap: 1rem;
    }

    .mosaique {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }

    .etapes {
        grid-template-columns: 1fr;
    }

    .commander-cta .btn {
        display: flex;
        justify-content: center;
    }

    .commander-cta .btn + .btn {
        margin: 0.75rem 0 0;
    }
}

@media (max-width: 480px) {
    .atouts li {
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .atouts svg {
        width: 24px;
        height: 24px;
    }
}
