/* ═══════════════════════════════════════
   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 20px;
    text-align: left;
}

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

/* ── Carte "Le salon" (paysage : image + texte) ── */
.apropos {
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.apropos-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.apropos-card img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
    /* Légèrement assombrie pour rester dans l'ambiance du site */
    filter: brightness(0.72);
}

.apropos-body {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.apropos-body h2 {
    margin: 0 0 10px;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
}

.apropos-body p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

/* Atouts du salon : petites pastilles sous la description */
.apropos-atouts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
}

.apropos-atouts li {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(244, 143, 177, 0.3);
}

/* Liens réseaux sociaux sous la description */
.apropos-socials {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.apropos-socials a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.apropos-socials a:hover {
    color: var(--accent);
}

.apropos-socials svg { flex-shrink: 0; }

/* ── Les prestations : galerie de coupes + détail ── */
.prestations {
    max-width: 1100px;
    margin: 24px auto 0;
    padding: 0 20px;
}

.prestations-card {
    display: grid;
    /* Mêmes colonnes que .apropos-card : les deux cartes s'alignent */
    grid-template-columns: 1fr 1fr;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

/* ── Carrousel : une coupe à la fois ── */
.coupes-carrousel {
    position: relative;
    overflow: hidden;
    background: var(--surface-2);
}

/* Les photos sont empilées : la hauteur vient donc du texte à côté,
   comme la photo du salon qui s'étire sur la hauteur de sa carte */
.coupes-vue {
    position: relative;
    height: 100%;
    /* Plancher assez haut pour que le portrait 4:5 ne soit pas
       rogné en bandeau : c'est la coupe qu'on vient voir */
    min-height: 500px;
}

.coupes-vue .coupe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.35s ease;
    /* Moins assombrie que la photo du salon : c'est le travail
       qu'on montre, il doit rester lisible */
    filter: brightness(0.9);
}

.coupes-vue .coupe.active { opacity: 1; }

/* Flèches de navigation */
.coupe-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(12, 12, 16, 0.55);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.coupe-nav:hover {
    background: rgba(12, 12, 16, 0.8);
    border-color: var(--accent);
}

.coupe-nav:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(244, 143, 177, 0.6);
}

.coupe-nav.prev { left: 12px; }
.coupe-nav.next { right: 12px; }

/* Pastilles de position */
.coupe-points {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.coupe-point {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.coupe-point.active {
    background: var(--accent);
    transform: scale(1.3);
}

.coupe-point:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(244, 143, 177, 0.6);
}

.prestations-body {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.prestations-body h2 {
    margin: 0;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
}

.prestations-body p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

/* Types de coupes : pastilles scannables d'un coup d'œil,
   centrées dans la colonne comme le bouton de réservation */
.prestations-liste {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.prestations-liste li {
    font-size: 13px;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
}

/* Le bouton ne prend que sa largeur, centré dans la colonne de texte */
.prestations-cta {
    align-self: center;
    margin-top: 4px;
}

/* ── Avis clients ── */
.avis {
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.avis-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.avis-head h2 {
    margin: 0;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
}

.avis-moyenne {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.avis-moyenne strong { color: var(--text); }

/* Étoiles d'affichage : pleines en rose, vides en gris */
.stars {
    color: rgba(244, 244, 247, 0.22);
    font-size: 15px;
    letter-spacing: 2px;
    line-height: 1;
    white-space: nowrap;
}

.stars-on { color: var(--accent); }

/* L'alerte flash reste alignée à gauche dans la section */
.avis .alert { margin: 0 0 16px; width: 100%; }

/* Invitation à se connecter */
.avis-login {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 14px;
}

.avis-login a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.avis-login a:hover { text-decoration: underline; }

/* ── Formulaire de dépôt ── */
.avis-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.avis-form-titre {
    margin: 0;
    font-weight: 700;
    font-size: 15px;
}

/* Sélecteur d'étoiles : radios cachées, labels ★.
   Ordre HTML 5→1 + row-reverse : « ~ » allume les étoiles à gauche
   de celle survolée/cochée (affichage visuel 1→5). */
.star-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.star-input input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.star-input label {
    font-size: 30px;
    line-height: 1;
    color: rgba(244, 244, 247, 0.22);
    cursor: pointer;
    padding: 2px;
    transition: color 0.12s ease, transform 0.12s ease;
    user-select: none;
}

.star-input label:hover { transform: scale(1.12); }

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
    color: var(--accent);
}

.star-input input:focus-visible + label {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 6px;
}

.avis-form textarea {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    padding: 12px 14px;
    resize: vertical;
    min-height: 76px;
}

.avis-form textarea::placeholder { color: rgba(244, 244, 247, 0.35); }

.avis-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.avis-form .btn { align-self: flex-start; width: auto; }

/* ── Grille des avis publiés ── */
.avis-grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.avis-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.avis-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.avis-auteur {
    font-weight: 700;
    font-size: 14px;
}

.avis-texte {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Pied de carte : date à gauche, mention « corrigé » à droite.
   C'est lui qui pousse le bloc en bas de la carte (margin-top: auto). */
.avis-card-pied {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.avis-date {
    color: rgba(244, 244, 247, 0.4);
    font-size: 12px;
}

/* Commentaire retouché par le salon (validation sur /moderation) */
.avis-corrige {
    font-size: 11px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(244, 143, 177, 0.35);
    white-space: nowrap;
}

/* Où en est l'avis du client connecté dans la modération */
.avis-statut {
    margin: 0;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}

.avis-statut.attente { background: rgba(249, 200, 74, 0.12); border-color: rgba(249, 200, 74, 0.32); color: #f6d68a; }
.avis-statut.valide  { background: rgba(62, 207, 106, 0.12); border-color: rgba(62, 207, 106, 0.32); color: #8fe0ac; }
.avis-statut.refuse  { background: rgba(224, 80, 80, 0.12);  border-color: rgba(224, 80, 80, 0.32);  color: #f3a3a3; }

.avis-moderation-note {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.avis-vide {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

/* ── Pagination des avis ── */
.avis-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

a.page-btn:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.25);
    background: var(--surface-2);
}

.page-btn.actif {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    cursor: default;
}

/* ── CTA produits ── */
.services {
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.services-cta {
    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;
    }

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

    .hero h1 { text-align: left; }

    .hero-cta {
        width: 100%;
    }

    /* Mobile : image dédiée hero-mobile.jpeg (cadrage serré néon + Roni).
       Calée en haut à gauche : le néon reste toujours entier, c'est le
       bord droit (Roni) qui s'ajuste selon le format de l'écran. */
    .hero-img {
        /* 10 % horizontal = légèrement décalée vers la gauche ;
           55 % vertical = image bien remontée (0 % = calée en haut) */
        object-position: 10% 55%;
    }

    .apropos {
        margin-top: 24px;
        padding: 0 16px;
    }

    /* La carte s'empile : image en bandeau au-dessus du texte */
    .apropos-card {
        grid-template-columns: 1fr;
    }

    .apropos-card img {
        min-height: 0;
        height: 200px;
    }

    .apropos-body {
        padding: 20px 16px;
    }

    .apropos-body p { font-size: 14px; }

    /* La carte prestations s'empile : mosaïque en bandeau, puis le texte.
       La grille 2×2 des coupes est conservée, elle tient en largeur. */
    .prestations {
        margin-top: 20px;
        padding: 0 16px;
    }

    .prestations-card { grid-template-columns: 1fr; }

    /* Un peu plus haut que le bandeau du salon : sur un portrait,
       200 px ne laissent rien voir de la coupe */
    .coupes-vue { min-height: 0; height: 320px; }

    .prestations-body {
        padding: 20px 16px;
        gap: 12px;
    }

    .prestations-body p { font-size: 14px; }

    /* Bouton pleine largeur, comme les autres CTA du mobile */
    .prestations-cta { align-self: stretch; text-align: center; }

    .avis {
        margin-top: 28px;
        padding: 0 16px;
    }

    .avis-form .btn { align-self: stretch; }

    .avis-grille { grid-template-columns: 1fr; }

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

    .services-cta .btn {
        width: 100%;
    }
}
