/* =====================================================================
   PAGE CONTACT — Valiseofilms Child Theme
   v1.0.8
   Design premium cohérent avec la charte graphique.
===================================================================== */

/* ── Pleine largeur par section — technique negative margin ──
   On ne touche PAS aux containers Astra pour préserver
   le flux naturel du document (spacing header sticky, padding-top).
   Chaque section étire elle-même son propre fond en pleine largeur.
──────────────────────────────────────────────────────────────────── */
body.page-template-page-contact {
    overflow-x: hidden;
}

.vs-contact {
    width: 100%;
}

/* Chaque section s'étire en pleine largeur via negative margin */
.vs-contact-hero,
.vs-contact-split,
.vs-contact-infos {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* ── Animation fade-in au scroll ── */
.vs-fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.vs-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */

.vs-contact-hero {
    background: #0d0d0d;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 96px 32px 80px;
    text-align: center;
    position: relative;
}

/* Overlay sombre par-dessus l'image de fond */
.vs-contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    z-index: 0;
}

/* S'assure que le contenu passe devant l'overlay */
.vs-contact-hero__inner {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.vs-contact-hero__label {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #fb8500;
    margin-bottom: 20px;
}

.vs-contact-hero__titre {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1.05;
    margin: 0 0 20px;
}

.vs-contact-hero__sous {
    font-family: 'Lato', sans-serif;
    font-size: 1.05rem;
    color: #ffffff;
    line-height: 1.75;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT SPLIT — Calendly gauche | Formulaire droite
═══════════════════════════════════════════════════════════ */

.vs-contact-split {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .vs-contact-split {
        flex-direction: row;
        align-items: start;
    }

    .vs-contact-split .vs-contact-calendly,
    .vs-contact-split .vs-contact-form {
        flex: 1;
        min-width: 0; /* évite le débordement flex */
    }

    /* Séparateur vertical entre les deux colonnes */
    .vs-contact-split .vs-contact-form {
        border-left: 1px solid #e8e8e8;
    }
}

/* ═══════════════════════════════════════════════════════════
   SECTION CALENDLY
═══════════════════════════════════════════════════════════ */

.vs-contact-calendly {
    background: #f9f9f9;
    padding: 64px 40px;
}

.vs-contact-calendly__inner {
    max-width: 900px;
    margin: 0 auto;
}

.vs-contact-calendly__header {
    text-align: center;
    margin-bottom: 40px;
}

.vs-contact-calendly__titre {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 14px;
}

.vs-contact-calendly__sous {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.vs-contact-calendly__widget {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.vs-contact-calendly__widget iframe {
    display: block;
    width: 100%;
    height: 650px;
    border: none;
}

@media (min-width: 1024px) {
    .vs-contact-split .vs-contact-calendly__widget iframe {
        height: 560px;
    }
}

.vs-contact-calendly__note {
    font-family: 'Lato', sans-serif;
    font-size: 0.875rem;
    color: #aaa;
    text-align: center;
    margin: 20px 0 0;
}

/* ═══════════════════════════════════════════════════════════
   SECTION FORMULAIRE
═══════════════════════════════════════════════════════════ */

.vs-contact-form {
    background: #ffffff;
    padding: 64px 40px;
}

.vs-contact-form__inner {
    max-width: 640px;
    margin: 0 auto;
}

.vs-contact-form__header {
    margin-bottom: 40px;
    text-align: center;
}

.vs-contact-form__titre {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 14px;
}

.vs-contact-form__sous {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* Honeypot — invisible */
.vs-contact-form__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

/* Grille 2 colonnes sur desktop */
.vs-contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .vs-contact-form__row {
        grid-template-columns: 1fr;
    }
}

.vs-contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 20px;
}

/* Supprimer la marge sur les champs dans .vs-contact-form__row
   (la grille gère l'espacement) */
.vs-contact-form__row .vs-contact-form__field {
    margin-bottom: 0;
}

.vs-contact-form__label {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.02em;
}

.vs-contact-form__label span {
    color: #fb8500;
    margin-left: 2px;
}

.vs-contact-form__input,
.vs-contact-form__textarea {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: #1a1a1a;
    background: #f9f9f9;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.vs-contact-form__input::placeholder,
.vs-contact-form__textarea::placeholder {
    color: #bbb;
}

.vs-contact-form__input:focus,
.vs-contact-form__textarea:focus {
    border-color: #fb8500;
    box-shadow: 0 0 0 3px rgba(251, 133, 0, 0.12);
    background: #ffffff;
}

.vs-contact-form__textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.65;
}

/* ── Bouton submit ── */
.vs-contact-form__actions {
    margin-top: 8px;
}

.vs-contact-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fb8500;
    color: #0d0d0d;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    position: relative;
}

.vs-contact-form__submit:hover {
    background: #e07600;
    transform: translateY(-2px);
}

.vs-contact-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.vs-contact-form__submit-loading {
    display: none;
}

.vs-contact-form__submit.is-loading .vs-contact-form__submit-text {
    display: none;
}

.vs-contact-form__submit.is-loading .vs-contact-form__submit-loading {
    display: inline;
}

/* ── Message confirmation/erreur ── */
.vs-contact-form__message {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    display: none;
}

.vs-contact-form__message.is-success {
    display: block;
    background: #f0fdf4;
    color: #166534;
    border: 1.5px solid #bbf7d0;
}

.vs-contact-form__message.is-error {
    display: block;
    background: #fff5f5;
    color: #c53030;
    border: 1.5px solid #feb2b2;
}

/* ═══════════════════════════════════════════════════════════
   SECTION INFOS
═══════════════════════════════════════════════════════════ */

.vs-contact-infos {
    background: #1a1a1a;
    padding: 72px 32px;
}

.vs-contact-infos__inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

@media (max-width: 768px) {
    .vs-contact-infos__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

.vs-contact-infos__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.vs-contact-infos__icon {
    color: #fb8500;
    margin-bottom: 4px;
}

.vs-contact-infos__label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #555;
    margin: 0;
}

.vs-contact-infos__value {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

a.vs-contact-infos__value:hover {
    color: #fb8500;
}

/* ── Bouton "Afficher le numéro" ── */
.vs-contact-infos__tel-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.vs-contact-infos__tel-btn {
    font-family: 'Lato', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fb8500;
    background: none;
    border: 1px solid rgba(251, 133, 0, 0.5);
    border-radius: 6px;
    padding: 6px 16px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.vs-contact-infos__tel-btn:hover,
.vs-contact-infos__tel-btn:focus-visible {
    background: rgba(251, 133, 0, 0.12) !important;
    border-color: #fb8500 !important;
    color: #fb8500 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Le numéro est caché par défaut via l'attribut hidden */
.vs-contact-infos__tel-number {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vs-contact-infos__tel-number:hover {
    color: #fb8500;
}

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

@media (max-width: 768px) {
    .vs-contact-hero {
        padding: 72px 20px 56px;
    }

    .vs-contact-calendly,
    .vs-contact-form {
        padding: 48px 20px;
    }

    .vs-contact-calendly__widget iframe {
        height: 500px;
    }

    .vs-contact-infos {
        padding: 56px 20px;
    }
}
