/* ═══════════════════════════════════════
   accueil.css — Page d'accueil RoniBarber
   ═══════════════════════════════════════ */

/* ── Hero plein écran ── */
.hero {
    position: relative;
    /* svh : hauteur stable sur iOS (dvh varie quand la barre Safari
       se rétracte au scroll, ce qui faisait bouger l'image) */
    min-height: calc(100vh - var(--nav-h) - 80px);
    min-height: calc(100svh - var(--nav-h) - 80px);
    max-height: 780px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Écrans larges : la bande visible est découpée dans la photo portrait.
       Fenêtre calée vers le haut → néon + Roni visibles, bas de bande sombre. */
    object-position: center 18%;
}

/* Voile sombre pour la lisibilité du texte */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(12, 12, 16, 0.96) 0%,
        rgba(12, 12, 16, 0.62) 40%,
        rgba(12, 12, 16, 0.15) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 48px;
}

.hero-kicker {
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 10px;
}

.hero h1 {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 12px;
    text-align: left;
}

.hero-sub {
    color: var(--muted);
    font-size: clamp(15px, 2.5vw, 18px);
    max-width: 480px;
    margin: 0 0 24px;
}

.hero-cta {
    min-width: 220px;
}

/* ── Services ── */
.services {
    max-width: 1100px;
    margin: 56px auto 0;
    padding: 0 20px;
}

.services h2 {
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 800;
    margin: 0 0 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(244, 143, 177, 0.4);
}

.service-img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: center 25%;
}

.service-body {
    padding: 16px 18px 20px;
}

.service-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.services-cta {
    margin-top: 24px;
    text-align: center;
}

/* ══════════════════════════════════
   MOBILE
   ══════════════════════════════════ */
@media (max-width: 768px) {

    .hero {
        min-height: calc(100vh - var(--nav-h) - 120px);
        min-height: calc(100svh - var(--nav-h) - 120px);
        border-radius: 0 0 20px 20px;
    }

    /* Mobile : image dédiée hero-mobile.jpeg (cadrage serré néon + Roni).
       Calée à gauche et en haut : le néon est toujours entier,
       quel que soit le format du téléphone — c'est le bord droit
       (Roni) qui s'ajuste, et le bas (cape) passe sous le texte. */
    .hero-img {
        /* 10 % = image légèrement décalée vers la gauche
           (0 % = calée à gauche, 50 % = centrée) */
        object-position: 10% top;
    }

    .hero-content {
        padding: 0 16px 32px;
    }

    .hero h1 { text-align: left; }

    .hero-cta {
        width: 100%;
    }

    .services {
        margin-top: 36px;
        padding: 0 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-img { height: 150px; }

    .service-body { padding: 14px 16px 16px; }

    .service-card h3 { font-size: 16px; }
    .service-card p  { font-size: 13px; }
}
