/* ==========================================================================
   Site vitrine — RG Atelier
   Noir, blanc et le rouge du logo. Mobile d'abord.
   ========================================================================== */

@font-face {
    font-family: "Barlow";
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/barlow-400-pIYBDQ8.woff2") format("woff2");
}

@font-face {
    font-family: "Barlow";
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/barlow-500-LcQEyrL.woff2") format("woff2");
}

@font-face {
    font-family: "Barlow";
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/barlow-600-f57DXyr.woff2") format("woff2");
}

@font-face {
    font-family: "Barlow Condensed";
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/barlow-condensed-600-3HrpZ_A.woff2") format("woff2");
}

@font-face {
    font-family: "Barlow Condensed";
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/barlow-condensed-700-Nx-ifwE.woff2") format("woff2");
}

:root {
    --noir: #050505; /* le fond du logo */
    --anthracite: #171717;
    --graphite: #242424;
    --rouge: #d0102f;
    --rouge-fonce: #a50c25;
    --blanc: #ffffff;
    --creme: #f5f4f1;
    --texte: #1b1b1b;
    --texte-doux: #5f5f5f;
    --texte-clair: rgba(255, 255, 255, 0.72);
    --bordure: #e4e2dd;
    --bordure-sombre: rgba(255, 255, 255, 0.12);
    --rayon: 4px;
    --conteneur: 1200px;
    --police: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
    --police-titre: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
    --hauteur-navbar: 76px;
    --transition: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--hauteur-navbar);
}

body {
    margin: 0;
    font-family: var(--police);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--texte);
    background: var(--blanc);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 64px; /* place pour la barre d'appel mobile */
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--police-titre);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

p {
    margin: 0 0 1rem;
}

[hidden] {
    display: none !important;
}

.icone {
    flex-shrink: 0;
}

.v-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.v-lien-evitement {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--rouge);
    color: var(--blanc);
}

.v-lien-evitement:focus {
    top: 1rem;
}

:focus-visible {
    outline: 2px solid var(--rouge);
    outline-offset: 3px;
}

.v-conteneur {
    width: 100%;
    max-width: var(--conteneur);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ---------- Typographie commune ---------- */

.v-surtitre {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rouge);
}

.v-surtitre::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}

.v-titre {
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 5vw, 3rem);
}

.v-titre--petit {
    font-size: clamp(1.6rem, 3.5vw, 2rem);
}

.v-entete-section {
    max-width: 680px;
    margin-bottom: 2.5rem;
}

.v-entete-section__texte {
    color: var(--texte-doux);
}

.v-entete-section--ligne {
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.v-entete-section--ligne .v-titre {
    margin-bottom: 0;
}

.v-lien-fleche {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--rouge);
    text-decoration: none;
}

.v-lien-fleche .icone {
    transition: transform var(--transition);
}

.v-lien-fleche:hover .icone {
    transform: translateX(4px);
}

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

.v-bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 50px;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--rayon);
    font-family: var(--police-titre);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.v-bouton:hover {
    transform: translateY(-1px);
}

.v-bouton--rouge {
    background: var(--rouge);
    color: var(--blanc);
}

.v-bouton--rouge:hover {
    background: var(--rouge-fonce);
}

.v-bouton--blanc {
    background: var(--blanc);
    color: var(--noir);
}

.v-bouton--contour {
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--blanc);
}

.v-bouton--contour:hover {
    border-color: var(--blanc);
    background: rgba(255, 255, 255, 0.08);
}

.v-bouton--large {
    width: 100%;
}

/* ---------- Navbar ---------- */

.v-navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--noir);
    border-bottom: 1px solid var(--bordure-sombre);
    transition: box-shadow var(--transition);
}

.v-navbar--defile {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.v-navbar__interieur {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--hauteur-navbar);
}

.v-navbar__logo img {
    width: 96px;
    height: auto;
}

.v-navbar__burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--bordure-sombre);
    border-radius: var(--rayon);
    background: transparent;
    color: var(--blanc);
    cursor: pointer;
}

.v-navbar__burger-fermer,
.menu-ouvert .v-navbar__burger-ouvrir {
    display: none;
}

.menu-ouvert .v-navbar__burger-fermer {
    display: inline-flex;
}

.v-navbar__menu {
    position: fixed;
    inset: var(--hauteur-navbar) 0 0 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem 1rem 6rem;
    background: var(--noir);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.menu-ouvert {
    overflow: hidden;
}

.menu-ouvert .v-navbar__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.v-navbar__liens {
    margin: 0;
    padding: 0;
    list-style: none;
}

.v-navbar__liens a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--bordure-sombre);
    font-family: var(--police-titre);
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--blanc);
    text-decoration: none;
}

.v-navbar__liens a[aria-current="page"] {
    color: var(--rouge);
}

.v-navbar__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.v-navbar__tel {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blanc);
    font-weight: 600;
    text-decoration: none;
}

/* ---------- Hero d'accueil ---------- */

.v-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: calc(100svh - var(--hauteur-navbar));
    max-height: 900px;
    padding: 5rem 0 3rem;
    background: var(--noir);
    color: var(--blanc);
    overflow: hidden;
}

.v-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 5% center;
    opacity: 0.55;
}

.v-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.2) 0%, rgba(13, 13, 13, 0.92) 85%);
}

.v-hero__contenu {
    position: relative;
    z-index: 1;
}

.v-hero__titre {
    max-width: 14ch;
    margin-bottom: 1.25rem;
    font-size: clamp(2.8rem, 10vw, 5.5rem);
    line-height: 0.95;
}

.v-hero__titre em {
    font-style: normal;
    color: var(--rouge);
}

.v-hero__accroche {
    max-width: 560px;
    margin-bottom: 2rem;
    font-size: 1.15rem;
    color: var(--texte-clair);
}

.v-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.v-hero__atouts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 3rem 0 0;
    padding: 1.5rem 0 0;
    list-style: none;
    border-top: 1px solid var(--bordure-sombre);
}

.v-hero__atouts li {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    line-height: 1.3;
    color: var(--texte-clair);
}

.v-hero__atouts strong {
    font-family: var(--police-titre);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--blanc);
}

/* ---------- Hero des pages intérieures ---------- */

.v-hero-page {
    position: relative;
    padding: 5rem 0 3.5rem;
    background: var(--noir);
    color: var(--blanc);
    overflow: hidden;
}

.v-hero-page__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.v-hero-page::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13, 13, 13, 0.95) 0%, rgba(13, 13, 13, 0.5) 100%);
}

.v-hero-page__contenu {
    position: relative;
    z-index: 1;
}

.v-hero-page__titre {
    max-width: 18ch;
    font-size: clamp(2.4rem, 7vw, 4.25rem);
}

.v-hero-page__accroche {
    max-width: 580px;
    margin: 1.25rem 0 0;
    font-size: 1.15rem;
    color: var(--texte-clair);
}

/* ---------- Sommaire de la page Prestations ---------- */

.v-sommaire {
    position: sticky;
    top: var(--hauteur-navbar);
    z-index: 30;
    background: var(--anthracite);
    border-top: 1px solid var(--bordure-sombre);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.v-sommaire__liens {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}

/* Centré quand tout tient, défilable sinon (sans couper le premier bouton) */
.v-sommaire__lien:first-child {
    margin-left: auto;
}

.v-sommaire__lien:last-child {
    margin-right: auto;
}

.v-sommaire__lien {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-height: 46px;
    padding: 0.6rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--rayon);
    background: var(--graphite);
    color: var(--blanc);
    font-family: var(--police-titre);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.v-sommaire__lien .icone {
    width: 16px;
    height: 16px;
    color: var(--rouge);
    transition: color var(--transition), transform var(--transition);
}

.v-sommaire__lien:hover {
    border-color: var(--rouge);
    background: var(--rouge);
    transform: translateY(-1px);
}

.v-sommaire__lien:hover .icone {
    color: var(--blanc);
    transform: translateY(2px);
}

/* Les ancres ne passent pas sous la navbar et le sommaire */
.v-section[id] {
    scroll-margin-top: calc(var(--hauteur-navbar) + 80px);
}

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

.v-section {
    padding: 4.5rem 0;
}

.v-section--suite + .v-section--suite {
    padding-top: 0;
}

.v-section--gris {
    background: var(--creme);
}

.v-section--sombre {
    background: var(--anthracite);
    color: var(--blanc);
}

.v-section--sombre p {
    color: var(--texte-clair);
}

.v-section--animee {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.v-section--visible {
    opacity: 1;
    transform: none;
}

/* Cartes prestations */

.v-cartes {
    display: grid;
    gap: 1.25rem;
}

.v-carte {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    background: var(--blanc);
    text-decoration: none;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.v-carte:hover {
    border-color: var(--rouge);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.v-carte__photo {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--graphite);
}

.v-carte__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.v-carte:hover .v-carte__photo img {
    transform: scale(1.05);
}

.v-carte__corps {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}

.v-carte__corps p {
    color: var(--texte-doux);
    font-size: 0.98rem;
}

.v-carte__numero {
    font-family: var(--police-titre);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--rouge);
}

.v-carte__titre {
    margin: 0.25rem 0 0.75rem;
    font-size: 1.6rem;
}

.v-carte__lien {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    font-weight: 600;
    color: var(--rouge);
}

.v-cartes--compactes .v-carte__titre {
    font-size: 1.35rem;
}

.v-aussi {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    margin: 2rem 0 0;
    padding: 1.25rem 1.5rem;
    list-style: none;
    border-left: 3px solid var(--rouge);
    background: var(--creme);
    font-weight: 500;
}

.v-aussi li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.v-aussi .icone {
    color: var(--rouge);
}

/* Atelier */

.v-atelier {
    display: grid;
    gap: 3rem;
}

.v-atelier__photos {
    position: relative;
    padding-bottom: 18%;
}

.v-atelier__photo {
    border-radius: var(--rayon);
    object-fit: cover;
}

.v-atelier__photo--grande {
    width: 85%;
    aspect-ratio: 4 / 3;
}

.v-atelier__photo--petite {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    aspect-ratio: 4 / 3;
    border: 6px solid var(--anthracite);
}

.v-chiffres {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bordure-sombre);
}

.v-chiffres dt {
    font-family: var(--police-titre);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--blanc);
}

.v-chiffres dd {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    line-height: 1.3;
    color: var(--texte-clair);
}

/* Valeurs */

.v-valeurs {
    display: grid;
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--bordure);
    border: 1px solid var(--bordure);
}

.v-valeur {
    padding: 2rem 1.5rem;
    background: var(--blanc);
}

.v-valeur p {
    margin: 0;
    color: var(--texte-doux);
    font-size: 0.98rem;
}

.v-valeur__icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: rgba(208, 16, 47, 0.08);
    color: var(--rouge);
}

.v-valeur__titre {
    margin-bottom: 0.6rem;
    font-size: 1.45rem;
}

/* Mosaïque de réalisations */

.v-mosaique {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.v-mosaique__item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--rayon);
}

.v-mosaique__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.v-mosaique__item:hover img {
    transform: scale(1.06);
}

/* Texte + image */

.v-texte-image {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.v-texte-image__texte p {
    color: var(--texte-doux);
}

.v-texte-image__photo {
    margin: 0;
    position: relative;
    isolation: isolate;
}

.v-texte-image__photo::before {
    content: "";
    position: absolute;
    inset: 1rem -1rem -1rem 1rem;
    border: 2px solid var(--rouge);
    border-radius: var(--rayon);
    z-index: -1;
}

.v-texte-image__photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--rayon);
}

.v-points {
    display: grid;
    gap: 0.6rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    font-weight: 500;
}

.v-points li {
    display: flex;
    gap: 0.6rem;
}

.v-points .icone {
    margin-top: 0.2rem;
    color: var(--rouge);
}

/* Bandeau d'appel */

.v-appel {
    padding: 3.5rem 0;
    background: var(--rouge);
    color: var(--blanc);
}

.v-appel__interieur {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.v-appel__titre {
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
}

.v-appel__texte {
    max-width: 560px;
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.85);
}

.v-appel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.v-appel .v-bouton--contour:hover {
    background: rgba(0, 0, 0, 0.12);
}

/* ---------- Avant / après ---------- */

.v-comparaisons {
    display: grid;
    gap: 2rem;
}

.v-avant-apres {
    --position: 50%;
    margin: 0;
}

.v-avant-apres__cadre {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--rayon);
    background: var(--graphite);
    overflow: hidden;
    user-select: none;
    touch-action: pan-y; /* le défilement vertical de la page reste possible */
}

.v-avant-apres__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.v-avant-apres__image--avant {
    clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

.v-avant-apres__cadre::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--position);
    width: 3px;
    margin-left: -1.5px;
    background: var(--blanc);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.v-avant-apres__poignee {
    position: absolute;
    top: 50%;
    left: var(--position);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border-radius: 50%;
    background: var(--rouge);
    color: var(--blanc);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    transition: transform var(--transition);
}

.v-avant-apres:hover .v-avant-apres__poignee,
.v-avant-apres__curseur:focus-visible ~ .v-avant-apres__poignee {
    transform: scale(1.1);
}

.v-avant-apres__curseur:focus-visible ~ .v-avant-apres__poignee {
    outline: 3px solid var(--blanc);
    outline-offset: 2px;
}

/* Le vrai contrôle : un curseur invisible qui couvre toute la photo */
.v-avant-apres__curseur {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
}

.v-avant-apres__curseur::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 48px;
    height: 100vh;
}

.v-avant-apres__curseur::-moz-range-thumb {
    width: 48px;
    height: 100vh;
    border: 0;
}

.v-avant-apres__etiquette {
    position: absolute;
    top: 0.75rem;
    z-index: 1;
    padding: 0.2rem 0.65rem;
    border-radius: 2px;
    background: rgba(5, 5, 5, 0.8);
    color: var(--blanc);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    pointer-events: none;
}

.v-avant-apres__etiquette--avant {
    left: 0.75rem;
}

.v-avant-apres__etiquette--apres {
    right: 0.75rem;
    background: var(--rouge);
}

.v-avant-apres__legende {
    display: flex;
    flex-direction: column;
    margin-top: 0.85rem;
}

.v-avant-apres__legende strong {
    font-family: var(--police-titre);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
}

.v-avant-apres__legende span {
    color: var(--texte-doux);
    font-size: 0.95rem;
}

/* ---------- Galerie ---------- */

.v-filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.v-filtre {
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--bordure);
    border-radius: 999px;
    background: var(--blanc);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.v-filtre[aria-pressed="true"] {
    border-color: var(--noir);
    background: var(--noir);
    color: var(--blanc);
}

/* Goodies : cartes produit (même habillage que les cartes prestations) */

.v-goodies {
    display: grid;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.v-goodie__photo {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
}

.v-goodie__logo {
    width: 45% !important;
    height: auto !important;
    object-fit: contain !important;
    opacity: 0.5;
}

.v-goodie__prix {
    margin: -0.4rem 0 0.75rem;
    font-family: var(--police-titre);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--rouge) !important;
}

.v-goodie .v-carte__lien {
    margin-top: auto;
    text-decoration: none;
}

.v-galerie {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.v-galerie__bouton {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 0;
    border-radius: var(--rayon);
    background: var(--graphite);
    overflow: hidden;
    cursor: zoom-in;
}

.v-galerie__bouton img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.v-galerie__bouton:hover img {
    transform: scale(1.05);
}

.v-galerie__etiquette {
    position: absolute;
    left: 0.6rem;
    top: 0.6rem;
    padding: 0.15rem 0.55rem;
    border-radius: 2px;
    background: rgba(13, 13, 13, 0.8);
    color: var(--blanc);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.v-visionneuse {
    max-width: min(1100px, 94vw);
    max-height: 90vh;
    padding: 0;
    border: 0;
    background: transparent;
}

.v-visionneuse::backdrop {
    background: rgba(0, 0, 0, 0.9);
}

.v-visionneuse__image {
    max-height: 90vh;
    margin: 0 auto;
    border-radius: var(--rayon);
}

.v-visionneuse__fermer {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    padding: 0.6rem;
    border: 0;
    border-radius: 50%;
    background: var(--blanc);
    color: var(--noir);
    cursor: pointer;
}

/* ---------- Contact ---------- */

.v-contact {
    display: grid;
    gap: 3rem;
}

.v-coordonnees__liste {
    display: grid;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.v-coordonnees__liste li {
    display: flex;
    gap: 1rem;
}

.v-coordonnees__liste div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.v-coordonnees__liste a:not(.v-lien-fleche) {
    font-weight: 600;
    text-decoration: none;
}

.v-coordonnees__icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: var(--rayon);
    background: var(--noir);
    color: var(--blanc);
}

.v-coordonnees__libelle {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--texte-doux);
}

.v-formulaire {
    padding: 2rem 1.25rem;
    border: 1px solid var(--bordure);
    border-top: 4px solid var(--rouge);
    border-radius: var(--rayon);
    background: var(--blanc);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.v-formulaire__intro {
    color: var(--texte-doux);
}

.v-alerte {
    padding: 0.9rem 1rem;
    border-radius: var(--rayon);
    font-weight: 500;
}

.v-alerte--succes {
    background: #e8f5ec;
    color: #17602f;
}

.v-alerte--erreur {
    background: #fdecee;
    color: var(--rouge-fonce);
}

.v-form {
    display: grid;
    gap: 1.1rem;
    margin-top: 1.5rem;
}

.v-form__duo {
    display: grid;
    gap: 1.1rem;
}

.v-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.v-form label.required::after {
    content: " *";
    color: var(--rouge);
}

.v-form input[type="text"],
.v-form input[type="tel"],
.v-form input[type="email"],
.v-form textarea {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    background: var(--creme);
    font: inherit;
    font-size: 1rem;
    color: var(--texte);
    transition: border-color var(--transition), background var(--transition);
}

.v-form input:focus,
.v-form textarea:focus {
    outline: none;
    border-color: var(--noir);
    background: var(--blanc);
}

.v-form textarea {
    resize: vertical;
    min-height: 140px;
}

/* Choix du type de demande en boutons */
.v-choix {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.v-choix input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.v-choix label {
    margin: 0;
    padding: 0.55rem 1rem;
    border: 1px solid var(--bordure);
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.v-choix label.required::after {
    content: none;
}

.v-choix input:checked + label {
    border-color: var(--noir);
    background: var(--noir);
    color: var(--blanc);
}

.v-choix input:focus-visible + label {
    outline: 2px solid var(--rouge);
    outline-offset: 2px;
}

/* Case de consentement : Symfony rend le libellé avant la case */
.v-form div:has(> input[type="checkbox"]) {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 0.7rem;
}

.v-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0.25rem 0 0;
    flex-shrink: 0;
    accent-color: var(--rouge);
}

.v-form div:has(> input[type="checkbox"]) label {
    margin: 0;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--texte-doux);
}

.v-form ul {
    margin: 0.35rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--rouge);
}

.champ-piege {
    position: absolute;
    left: -9999px;
}

/* ---------- Mentions légales ---------- */

.v-prose {
    max-width: 760px;
}

.v-prose h2 {
    margin: 2.5rem 0 0.75rem;
    font-size: 1.6rem;
}

.v-prose h2:first-child {
    margin-top: 0;
}

.v-prose p {
    color: var(--texte-doux);
}

/* ---------- Footer ---------- */

.v-footer {
    background: var(--noir);
    color: var(--texte-clair);
    font-size: 0.95rem;
}

.v-footer__grille {
    display: grid;
    gap: 2.5rem;
    padding-top: 4rem;
    padding-bottom: 3rem;
}

.v-footer__marque img {
    width: 130px;
    margin-bottom: 1.25rem;
}

.v-footer__marque p {
    max-width: 340px;
}

.v-footer__social {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blanc);
    font-weight: 600;
    text-decoration: none;
}

.v-footer__titre {
    margin-bottom: 1.1rem;
    font-size: 1.2rem;
    color: var(--blanc);
}

.v-footer__liste {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.v-footer__liste a {
    text-decoration: none;
    transition: color var(--transition);
}

.v-footer__liste a:hover {
    color: var(--blanc);
}

.v-footer__liste--icones li {
    display: flex;
    gap: 0.75rem;
}

.v-footer__liste--icones .icone {
    margin-top: 0.2rem;
    color: var(--rouge);
}

.v-footer__bas {
    border-top: 1px solid var(--bordure-sombre);
    font-size: 0.85rem;
}

.v-footer__bas-interieur {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.v-footer__bas nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.v-footer__bas a {
    text-decoration: none;
}

.v-footer__bas a:hover {
    color: var(--blanc);
}

/* ---------- Barre d'appel mobile ---------- */

.v-barre-mobile {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    height: 64px;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--noir);
    border-top: 1px solid var(--bordure-sombre);
}

.v-barre-mobile__lien {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--police-titre);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blanc);
    text-decoration: none;
}

.v-barre-mobile__lien--rouge {
    background: var(--rouge);
}

/* ==========================================================================
   Téléphone uniquement
   ========================================================================== */

@media (max-width: 639px) {
    /* Le sommaire ne colle plus : il mangerait l'écran avec la navbar et la barre d'appel */
    .v-sommaire {
        position: static;
        box-shadow: none;
    }

    .v-sommaire__liens {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        overflow: visible;
    }

    .v-sommaire__lien:first-child,
    .v-sommaire__lien:last-child {
        margin: 0;
    }

    .v-sommaire__lien {
        justify-content: space-between;
        min-height: 44px;
        padding: 0.5rem 0.75rem;
        font-size: 0.92rem;
        white-space: normal;
        line-height: 1.15;
        text-align: left;
    }

    .v-section[id] {
        scroll-margin-top: calc(var(--hauteur-navbar) + 12px);
    }

    /* Cadre rouge moins décalé : il reste dans l'écran */
    .v-texte-image__photo::before {
        inset: 0.5rem -0.5rem -0.5rem 0.5rem;
    }

    .v-texte-image__photo {
        margin-right: 0.5rem;
    }
}

/* ==========================================================================
   Tablette
   ========================================================================== */

@media (min-width: 640px) {
    .v-conteneur {
        padding: 0 1.5rem;
    }

    .v-goodies {
        grid-template-columns: repeat(2, 1fr);
    }

    .v-cartes {
        grid-template-columns: repeat(2, 1fr);
    }

    .v-valeurs {
        grid-template-columns: repeat(2, 1fr);
    }

    .v-galerie {
        grid-template-columns: repeat(3, 1fr);
    }

    .v-form__duo {
        grid-template-columns: 1fr 1fr;
    }

    .v-formulaire {
        padding: 2.5rem;
    }

    .v-footer__grille {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   Ordinateur
   ========================================================================== */

@media (min-width: 1024px) {
    :root {
        --hauteur-navbar: 88px;
    }

    body {
        padding-bottom: 0;
    }

    .v-barre-mobile,
    .v-navbar__burger {
        display: none;
    }

    .v-conteneur {
        padding: 0 2rem;
    }

    .v-navbar__logo img {
        width: 110px;
    }

    .v-navbar__menu {
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        padding: 0;
        background: none;
        overflow: visible;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .v-navbar__liens {
        display: flex;
        gap: 1.6rem;
    }

    .v-navbar__liens a {
        position: relative;
        padding: 0.4rem 0;
        border: 0;
        font-family: var(--police);
        font-size: 0.95rem;
        font-weight: 500;
        text-transform: none;
        letter-spacing: 0;
        color: var(--texte-clair);
        transition: color var(--transition);
    }

    .v-navbar__liens a::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -2px;
        height: 2px;
        background: var(--rouge);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform var(--transition);
    }

    .v-navbar__liens a:hover,
    .v-navbar__liens a[aria-current="page"] {
        color: var(--blanc);
    }

    .v-navbar__liens a:hover::after,
    .v-navbar__liens a[aria-current="page"]::after {
        transform: scaleX(1);
    }

    .v-navbar__actions {
        flex-direction: row;
        align-items: center;
        gap: 1.25rem;
        margin: 0;
    }

    .v-navbar__actions .v-bouton {
        min-height: 44px;
        padding: 0.5rem 1.2rem;
    }

    .v-hero {
        align-items: center;
        padding: 6rem 0;
    }

    .v-hero__image {
        object-position: left center;
        opacity: 0.85;
    }

    .v-hero::after {
        background: linear-gradient(90deg, rgba(13, 13, 13, 0) 20%, rgba(13, 13, 13, 0.85) 60%);
    }

    .v-hero__contenu {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-left: 48%;
    }

    .v-hero__atouts {
        width: 100%;
    }

    .v-hero-page {
        padding: 7rem 0 5rem;
    }

    .v-section {
        padding: 6.5rem 0;
    }

    .v-cartes {
        grid-template-columns: repeat(4, 1fr);
    }

    .v-cartes--compactes {
        grid-template-columns: repeat(3, 1fr);
    }

    .v-goodies {
        grid-template-columns: repeat(3, 1fr);
    }

    .v-atelier {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
        align-items: center;
    }

    .v-valeurs {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .v-mosaique__item {
        aspect-ratio: auto;
    }

    .v-mosaique__item:first-child {
        grid-row: span 2;
    }

    .v-mosaique__item:last-child {
        grid-column: span 2;
    }

    .v-texte-image {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }

    .v-texte-image--inverse .v-texte-image__photo {
        order: -1;
    }

    .v-appel__interieur {
        grid-template-columns: 1.4fr 1fr;
    }

    .v-appel__actions {
        justify-content: flex-end;
    }

    .v-galerie {
        grid-template-columns: repeat(4, 1fr);
    }

    .v-comparaisons {
        grid-template-columns: 1fr 1fr;
    }

    .v-contact {
        grid-template-columns: 1fr 1.6fr;
        gap: 4rem;
        align-items: start;
    }

    .v-footer__grille {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
