/**
 * agence.css — Page Agence Valiseofilms
 * v1.4.0
 *
 * Typo CALÉE EXACTEMENT sur blog.css (source de référence) :
 *   Label  → Oswald, 0.85rem, 600, uppercase, letter-spacing 0.14em, #fb8500
 *   H1     → Oswald, clamp(2rem,4vw,3rem), 700, line-height 1.1, #1a1a1a, PAS uppercase
 *   Corps  → Lato, 1rem–1.05rem, #666, line-height 1.75
 */

/* ── Reset Astra pour la page agence (identique au reset accueil) ── */
body.page-template-page-agence #content,
body.page-template-page-agence .site-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}
body.page-template-page-agence {
    overflow-x: hidden;
}

/* ── Box-sizing + base ── */
.vs-page-agence *,
.vs-page-agence *::before,
.vs-page-agence *::after {
    box-sizing: border-box;
}
.vs-page-agence {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #1a1a1a;
    /* NE PAS mettre text-align sur p ici — chaque section gère son propre alignement */
}

/* ══════════════════════════════════════════════════════════════════
   BLOC 1 — HEADER (fond blanc)
   Typo : IDENTIQUE à .vs-blog__categorie / .vs-blog__titre
══════════════════════════════════════════════════════════════════ */

.vs-agence-header {
    background: #ffffff;
    padding: 72px 32px 64px;
    text-align: center;
    border-bottom: 1px solid #efefef;
}

.vs-agence-header__inner {
    max-width: 680px;
    margin: 0 auto;
}

/*
 * Label — calé sur .vs-blog__categorie mais font-size 0.85rem
 * (user : "un peu plus gros que 0.72rem")
 */
.vs-agence-header__label {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #fb8500;
    margin-bottom: 14px;
}

/*
 * H1 — calé EXACTEMENT sur .vs-blog__titre
 * PAS de text-transform: uppercase (user : "ne s'écrit pas en majuscules")
 */
.vs-agence-header__titre {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    color: #1a1a1a;
    margin: 0 0 18px;
    /* text-transform intentionnellement absent */
}

/*
 * Sous-titre — Lato, centré (page-level header, pas un article)
 */
.vs-agence-header__sous {
    font-family: 'Lato', sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #666;
    text-align: center;
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════════
   BLOC 2 — ÉQUIPE (fond noir, 4 colonnes)
══════════════════════════════════════════════════════════════════ */

.vs-agence-equipe {
    background: #0d0d0d;
    padding: 64px 24px 72px;
}

.vs-agence-equipe__inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Titre section — calé sur .vs-ah-contact__titre (Oswald, pas uppercase) */
.vs-agence-equipe__titre {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 500;
    color: #f0f0f0;
    text-align: center;
    margin: 0 0 44px;
}

/* Grille 4 colonnes */
.vs-agence-equipe__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* Card */
.vs-agence-equipe__card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
    outline: none;
}
.vs-agence-equipe__card:hover,
.vs-agence-equipe__card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
.vs-agence-equipe__card:focus-visible {
    outline: 2px solid #fb8500;
    outline-offset: 3px;
}

/* Photo portrait 3/4 — noir & blanc */
.vs-agence-equipe__photo-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #222;
}
.vs-agence-equipe__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;
    display: block;
}
.vs-agence-equipe__card:hover .vs-agence-equipe__photo {
    filter: grayscale(10%);
    transform: scale(1.04);
}
.vs-agence-equipe__photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 55%, rgba(26, 26, 26, 0.65) 100%);
    pointer-events: none;
}
.vs-agence-equipe__photo-placeholder {
    width: 100%;
    height: 100%;
    background: #2a2a2a;
}

/* Body card */
.vs-agence-equipe__card-body {
    padding: 14px 16px;
}

/* Nom — Oswald, identique .vs-blog__categorie style mais plus grand */
.vs-agence-equipe__nom {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #f0f0f0;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin: 0 0 4px;
}

/* Rôle — label orange, calé sur .vs-blog__categorie */
.vs-agence-equipe__role {
    font-family: 'Oswald', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fb8500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 10px;
}

/* Texte court — Lato corps */
.vs-agence-equipe__texte-court {
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 12px;
}

/* Footer card */
.vs-agence-equipe__card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 11px;
}
.vs-agence-equipe__linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.45);
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.vs-agence-equipe__linkedin:hover {
    background: #0a66c2;
    color: #fff;
}
.vs-agence-equipe__voir-profil {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s;
    margin-left: auto;
}
.vs-agence-equipe__card:hover .vs-agence-equipe__voir-profil {
    color: #fb8500;
}

/* ══════════════════════════════════════════════════════════════════
   LIGHTBOX ÉQUIPE
══════════════════════════════════════════════════════════════════ */

.vs-agence-lb {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.vs-agence-lb[hidden] { display: none; }

.vs-agence-lb__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

.vs-agence-lb__inner {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    animation: vs-agence-lb-in 0.28s ease;
}
@keyframes vs-agence-lb-in {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Bouton fermer — reset TOTAL des styles Astra button */
.vs-agence-lb__close {
    all: unset;
    box-sizing: border-box;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #dedede;
    border: none;
    box-shadow: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background-color 0.2s;
    flex-shrink: 0;
}
.vs-agence-lb__close:hover {
    background-color: #c8c8c8;
}
.vs-agence-lb__close svg {
    display: block;
    stroke: #333;
    pointer-events: none;
}

/* Layout lightbox */
.vs-agence-lb__content {
    display: grid;
    grid-template-columns: 5fr 7fr;
    min-height: 360px;
}
.vs-agence-lb__photo-col {
    border-radius: 16px 0 0 16px;
    overflow: hidden;
    background: #111;
}
.vs-agence-lb__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.vs-agence-lb__info-col {
    padding: 44px 36px 36px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Rôle — identique .vs-blog__categorie */
.vs-agence-lb__role {
    font-family: 'Oswald', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fb8500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0;
}

/* Nom — identique .vs-blog__titre */
.vs-agence-lb__nom {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 700;
    line-height: 1.1;
    color: #1a1a1a;
    margin: 0;
}

/* Bio — identique .vs-blog__content */
.vs-agence-lb__texte {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #555;
    margin: 8px 0 0;
    flex: 1;
}

/* Contact */
.vs-agence-lb__contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #efefef;
    margin-top: 4px;
}
.vs-agence-lb__tel,
.vs-agence-lb__email {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 0.88rem;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}
.vs-agence-lb__tel:hover,
.vs-agence-lb__email:hover { color: #fb8500; }
.vs-agence-lb__tel svg,
.vs-agence-lb__email svg { flex-shrink: 0; color: #fb8500; }

.vs-agence-lb__linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 6px;
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0a66c2;
    text-decoration: none;
    transition: opacity 0.2s;
}
.vs-agence-lb__linkedin-link:hover { opacity: 0.75; }

/* ══════════════════════════════════════════════════════════════════
   BLOC 3 — VALEURS (fond blanc)
   Ordre : H2 → 3 blocs → texte conclusion centré
══════════════════════════════════════════════════════════════════ */

.vs-agence-valeurs {
    background: #ffffff;
    padding: 80px 24px 88px;
}

.vs-agence-valeurs__inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* H2 — calé sur .vs-ah-contact__titre */
.vs-agence-valeurs__titre {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 500;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 52px;
}

/* Grille 3 colonnes */
.vs-agence-valeurs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 48px;
    margin-bottom: 64px;
}

.vs-agence-valeur {
    text-align: center;
    padding: 0 8px;
}

.vs-agence-valeur__icone {
    color: #fb8500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Titre valeur — calé sur .vs-blog__categorie (petite étiquette) mais en plus lisible */
.vs-agence-valeur__sous-titre {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 12px;
}

/* Texte valeur — Lato corps */
.vs-agence-valeur__texte {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    line-height: 1.75;
    color: #666;
    margin: 0;
    text-align: center;
}

/* Texte conclusion — centré, sous les 3 blocs, même taille que les textes valeurs */
.vs-agence-valeurs__conclusion {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #666;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════════
   BLOC 4 — CONTACT (accueil-contact.php / .vs-ah-contact)
   Aucun style custom — on laisse accueil.css gérer intégralement
   et on s'assure juste que la section est pleine largeur.
══════════════════════════════════════════════════════════════════ */

.vs-page-agence .vs-ah-contact {
    /* Pleine largeur sur la page agence (identique accueil) */
    width: 100%;
    margin-left: 0;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .vs-agence-equipe__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .vs-agence-valeurs__grid {
        grid-template-columns: 1fr;
        gap: 36px;
        max-width: 440px;
        margin: 0 auto 56px;
    }
}

@media (max-width: 640px) {
    .vs-agence-header {
        padding: 52px 20px 48px;
    }
    .vs-agence-equipe {
        padding: 56px 20px;
    }
    .vs-agence-equipe__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .vs-agence-equipe__photo-wrap {
        aspect-ratio: 4 / 3;
    }
    /* Lightbox empilée */
    .vs-agence-lb__content {
        grid-template-columns: 1fr;
    }
    .vs-agence-lb__photo-col {
        border-radius: 16px 16px 0 0;
        max-height: 220px;
    }
    .vs-agence-lb__info-col {
        padding: 24px 20px;
    }
    .vs-agence-valeurs {
        padding: 60px 20px 68px;
    }
}
