/* GV Stages — Design final Galerie Völlmy */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Caveat:wght@400;600&family=Handlee&family=Alegreya+Sans:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

/* ============================================================
   LÉGENDE
============================================================ */
.gv-stages-wrapper { font-family: 'Lato', Arial, sans-serif; color: #2a2a2a; padding: 0 32px !important; box-sizing: border-box; display: block; width: 100%; }

.gv-legende {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
    padding-bottom: 0;
    font-size: 11px;
    align-items: center;
}
.gv-legende span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    font-size: 11px;
}
.gv-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.gv-legende span:nth-child(1) { background:#e8f1fa; color:#1a5a9a; border:1px solid #b0cef0; }
.gv-legende span:nth-child(2) { background:#eeeeee; color:#444444; border:1px solid #cccccc; }
.gv-legende span:nth-child(3) { background:#faeae3; color:#8a3210; border:1px solid #f0c4b0; }
.gv-legende span:nth-child(4) { background:#e8f5e0; color:#2a6610; border:1px solid #c0dfa8; }
.gv-legende span:nth-child(5) { background:#f3eafc; color:#6a2a9a; border:1px solid #d8c8f5; }
.gv-legende span:nth-child(6) { background:#fef3e0; color:#8a5a00; border:1px solid #f0d890; }

/* ============================================================
   TABLEAU
============================================================ */
.gv-table-scroll { overflow-x: auto; }

.gv-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Lato', Arial, sans-serif;
}
.gv-table thead tr {
    border-bottom: 2px solid #2a2a2a;
}
.gv-table thead th {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #aaa;
    padding: 0 14px 12px;
    text-align: left;
    background: transparent;
}
.gv-table thead th:first-child { padding-left: 0; }

/* Masquer colonne pastille */
.gv-table td:first-child,
.gv-table th:first-child { display: none; }

.gv-tr-odd td  { background: #ffffff; }
.gv-tr-even td { background: #ffffff; }
.gv-table tr { border-bottom: 1px solid #ede8e0; }
.gv-table tr:hover td { background: #fdf9f5; }

.gv-table td {
    padding: 18px 14px;
    vertical-align: middle;
    font-size: 13px;
    color: #2a2a2a;
    background: transparent;
}
.gv-nowrap { white-space: nowrap; font-size: 12px; color: #666; }

/* ============================================================
   TITRE + BADGES
============================================================ */
.gv-table td:nth-child(2) { padding-left: 0; }

.gv-type-badge,
.gv-lieu-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-top: 6px;
    margin-right: 5px;
}
.badge-aq  { background:#e8f1fa; color:#1a5a9a; border:1px solid #b0cef0; }
.badge-fu  { background:#eeeeee; color:#444444; border:1px solid #cccccc; }
.badge-ac  { background:#faeae3; color:#8a3210; border:1px solid #f0c4b0; }
.badge-pa  { background:#e8f5e0; color:#2a6610; border:1px solid #c0dfa8; }
.badge-in  { background:#f3eafc; color:#6a2a9a; border:1px solid #d8c8f5; }
.badge-en  { background:#fef3e0; color:#8a5a00; border:1px solid #f0d890; }
.badge-int { background:#f3eafc; color:#6a2a9a; border:1px solid #d8c8f5; }
.badge-ext { background:#e8f5e0; color:#2a6610; border:1px solid #c0dfa8; }

/* ============================================================
   DATES
============================================================ */
.gv-nowrap strong {
    display: block;
    font-size: 10px;
    color: #aaa;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 3px;
}

/* ============================================================
   LIEU
============================================================ */
.gv-table td:nth-child(4) { font-size: 13px; color: #444; }

/* ============================================================
   PLACES
============================================================ */
.gv-places {
    text-align: center;
    min-width: 80px;
}
.gv-places-nb {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}
.gv-places-label {
    display: block;
    font-size: 10px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 2px;
}
.gv-places:not(.gv-places-peu):not(.gv-places-complet) .gv-places-nb { color: #3a8a1a; }
.gv-places-peu .gv-places-nb     { color: #c07a00; }
.gv-places-complet .gv-places-nb { color: #c00; font-size: 13px !important; font-weight: 700; letter-spacing: .04em; }
.gv-badge-complet {
    background: #ffebee; color: #c00;
    font-size: 10px; font-weight: 700;
    padding: 3px 8px; border-radius: 3px;
    border: 1px solid #ffcdd2;
    text-transform: uppercase; letter-spacing: .04em;
}

/* ============================================================
   BOUTONS
============================================================ */
.gv-btn-details {
    display: inline-block;
    padding: 8px 18px;
    border: 1.5px solid #2a2a2a;
    color: #2a2a2a !important;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 2px;
    text-decoration: none !important;
    background: #ffffff;
    transition: all .15s;
    white-space: nowrap;
}
.gv-btn-details:hover { background: #2a2a2a; color: #fff !important; }

.gv-btn-inscrire {
    display: inline-block;
    padding: 8px 18px;
    border: 1.5px solid #6a4a1a;
    color: #fff !important;
    background: #6a4a1a;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 2px;
    text-decoration: none !important;
    margin-left: 8px;
    transition: all .15s;
    white-space: nowrap;
}
.gv-btn-inscrire:hover { background: #4a2a00; border-color: #4a2a00; }

.gv-btn-complet {
    display: inline-block;
    padding: 8px 18px;
    border: 1.5px solid #ddd;
    color: #bbb;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 2px;
    background: #f8f8f8;
    margin-left: 8px;
    white-space: nowrap;
}

/* ============================================================
   PAGE DÉTAIL — titre
============================================================ */
.gv-stage-title {
    font-family: 'Caveat', cursive !important;
    font-size: 52px !important;
    font-weight: 400 !important;
    color: #4aa8c8 !important;
    line-height: 1.15 !important;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
}

/* Header dates/lieu/places */
.gv-detail-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 14px 16px;
    border: 1px solid #e8e0d6;
    background: #fafafa;
    border-radius: 3px;
    margin-bottom: 24px;
    align-items: center;
}
.gv-meta-item {
    font-size: 13px;
    color: #444;
    font-family: 'Lato', Arial, sans-serif;
}
.gv-meta-item strong {
    display: inline;
    font-size: 13px;
    font-weight: 700;
    color: #2a2a2a;
    margin-right: 4px;
}
.gv-meta-addr { display: block; font-size: 11px; color: #999; font-style: italic; margin-top: 2px; }

/* Compteur places détail */
.gv-places-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    background: #e8f5e0;
    color: #2a6610;
    border: 1px solid #c0dfa8;
    font-family: 'Lato', Arial, sans-serif;
}
.gv-places-detail.gv-places-peu     { background:#fef3e0; color:#8a5a00; border-color:#f0d890; }
.gv-places-detail.gv-places-complet { background:#ffebee; color:#c00; border-color:#ffcdd2; }

/* Corps du contenu */
.gv-detail { font-family: 'Lato', Arial, sans-serif; color: #2a2a2a; }
.gv-detail-body { font-size: 14px; font-weight: 300; line-height: 1.75; margin-bottom: 20px; }
.gv-detail-body p { margin-bottom: 12px; }
.gv-detail-body strong { font-weight: 700; }

/* N'importe quel titre tapé directement dans le contenu du stage
   (h1 à h6) reprend automatiquement le même style que les sous-titres
   de section ("Public cible", "Repas et pauses"...), pour un rendu
   cohérent sans avoir besoin d'Elementor ni de mise en forme manuelle. */
.gv-detail-body h1,
.gv-detail-body h2,
.gv-detail-body h3,
.gv-detail-body h4,
.gv-detail-body h5,
.gv-detail-body h6 {
    font-family: 'Lato', Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: #4aa8c8 !important;
    margin-top: 18px !important;
    margin-bottom: 8px !important;
}
.gv-detail-body h1:first-child,
.gv-detail-body h2:first-child,
.gv-detail-body h3:first-child,
.gv-detail-body h4:first-child,
.gv-detail-body h5:first-child,
.gv-detail-body h6:first-child {
    margin-top: 0 !important;
}

/* Sections */
.gv-detail-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0ebe3;
}
.gv-detail-section h3 {
    font-family: 'Lato', Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: #4aa8c8 !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
}
.gv-detail-section p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.75;
    color: #2a2a2a;
    margin: 0;
}

/* ============================================================
   FORMULAIRE INSCRIPTION
============================================================ */
.gv-inscription-block {
    background: #fdf9f5;
    border: 1px solid #e8e0d6;
    border-top: 3px solid var(--e-global-color-secondary, #6a4a1a);
    padding: 24px;
    margin-top: 28px;
    border-radius: 2px;
}
.gv-inscription-block h3 {
    font-family: 'Lato', Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #6a4a1a !important;
    margin-bottom: 6px !important;
}
.gv-recap {
    font-size: 14px;
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 20px;
    font-family: 'Lato', Arial, sans-serif;
}

.gv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-bottom: 16px; }
.gv-fg { display: flex; flex-direction: column; }
.gv-fg.gv-full { grid-column: 1/-1; }
.gv-fg label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #4aa8c8;
    margin-bottom: 5px;
    font-family: 'Lato', Arial, sans-serif;
}
.gv-fg input,
.gv-fg select,
.gv-fg textarea {
    padding: 9px 11px;
    border: 1px solid #ddd;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: #2a2a2a;
    border-radius: 2px;
    background: #fff;
    transition: border-color .15s;
}
.gv-fg input:focus,
.gv-fg select:focus,
.gv-fg textarea:focus { border-color: #4aa8c8; outline: none; }
.gv-fg textarea { resize: vertical; min-height: 80px; }

.gv-tel-group { display: flex; gap: 8px; }
.gv-tel-indicatif { flex: 0 0 108px; padding-left: 6px; padding-right: 4px; }
.gv-tel-numero { flex: 1; min-width: 0; }
@media (max-width: 480px) {
    .gv-tel-indicatif { flex: 0 0 92px; font-size: 12px; }
}
.gv-cp-status { display: block; font-size: 11px; margin-top: 4px; min-height: 14px; }
.gv-creneau-fixe { margin: 0; padding: 9px 11px; background: #f9f6f2; border: 1px solid #e8e0d6; border-radius: 2px; font-size: 13px; font-weight: 600; color: #2a2a2a; }
.gv-creneau-hint { font-size: 12px; color: #888; margin: 0 0 8px; }
.gv-creneau-block { margin-bottom: 10px; padding: 10px 12px; background: #f9f6f2; border: 1px solid #e8e0d6; border-radius: 4px; }
.gv-creneau-check-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 400; cursor: pointer; }
.gv-creneau-check-label input[type=checkbox] { width: auto; }
.gv-heures-creneau { margin-top: 8px; width: 100%; padding: 8px 10px; border: 1px solid #ddd; border-radius: 2px; font-family: 'Lato', Arial, sans-serif; font-size: 13px; }
.gv-prix-total { margin: 4px 0 0; padding: 10px 14px; background: #eef6f0; border: 1px solid #cfe6d5; border-radius: 4px; font-size: 14px; color: #2a2a2a; }
.gv-prix-total strong { color: #2a8a4a; font-size: 16px; }

.gv-captcha {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    background: #fff8f0; border: 1px solid #f0d8b8;
    padding: 10px 14px; border-radius: 2px; margin-bottom: 16px;
    font-size: 12px; font-weight: 700; color: #6a4a1a;
    font-family: 'Lato', Arial, sans-serif;
    letter-spacing: 1px; text-transform: uppercase;
}

.gv-btn-submit {
    background: #6a4a1a; color: #fff; border: none;
    padding: 12px 28px;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 11px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    cursor: pointer; border-radius: 2px; transition: background .15s;
}
.gv-btn-submit:hover   { background: #4a2a00; }
.gv-btn-submit:disabled { background: #ccc; cursor: not-allowed; }

.gv-msg-ok  { background:#e8f5e0; border:1px solid #a5d6a7; color:#1b5e20; padding:14px 18px; border-radius:2px; margin-bottom:16px; font-size:14px; line-height:1.6; }
.gv-msg-err { background:#ffebee; border:1px solid #ef9a9a; color:#b71c1c; padding:12px 16px; border-radius:2px; margin-bottom:16px; font-size:13px; }

.gv-inscriptions-fermees { background:#f5f5f5; border:1px solid #e0e0e0; padding:14px 18px; margin-top:20px; border-radius:2px; font-size:13px; color:#666; }
.gv-complet-msg { background:#ffebee; border-color:#ffcdd2; color:#c00; }

.gv-btn-retour {
    display: inline-block; padding: 8px 20px;
    border: 1.5px solid #2a2a2a; color: #2a2a2a !important;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 11px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    border-radius: 2px; text-decoration: none !important;
    margin-top: 24px; transition: all .15s;
}
.gv-btn-retour:hover { background: #2a2a2a; color: #fff !important; }

/* ============================================================
   RESPONSIVE — TABLETTE (≤1024px)
   Le tableau large passe en cartes empilées dès la tablette,
   au lieu de rester en défilement horizontal jusqu'au mobile.
============================================================ */
@media (max-width: 1024px) {
    .gv-stages-wrapper { padding: 0 20px !important; }

    .gv-grid { grid-template-columns: 1fr; }
    .gv-fg.gv-full { grid-column: 1; }

    .gv-table-scroll { overflow-x: visible; padding: 0; }
    .gv-table thead { display: none; }

    .gv-table tr {
        display: block;
        padding: 18px 18px;
        margin-bottom: 14px;
        background: #ffffff;
        border: 1px solid #ede8e0;
        border-radius: 6px;
    }
    .gv-table tr:hover td { background: transparent; }
    .gv-table td {
        display: block;
        padding: 3px 0;
        border: none;
        background: transparent !important;
    }
    .gv-table td:first-child { display: none; }

    /* Titre + badges */
    .gv-table td:nth-child(2) { margin-bottom: 8px; font-size: 15px; }

    /* Dates */
    .gv-nowrap { display: block; margin: 10px 0 4px; }

    /* Lieu */
    .gv-table td:nth-child(4) { margin-bottom: 10px; }

    /* Places */
    .gv-places {
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 6px;
        margin: 10px 0;
    }
    .gv-places-nb, .gv-places-label { display: inline !important; }

    /* Boutons côte à côte, équilibrés, assez larges pour le doigt */
    .gv-table td:last-child {
        text-align: left !important;
        margin-top: 12px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .gv-btn-details,
    .gv-btn-inscrire,
    .gv-btn-complet {
        margin-left: 0 !important;
        flex: 1;
        min-width: 140px;
        text-align: center;
        padding: 11px 14px;
        font-size: 11px;
    }

    .gv-legende { gap: 8px; }

    .gv-detail-header { flex-direction: column; gap: 10px; align-items: flex-start; }
    .gv-detail-header .gv-meta-item { width: 100%; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤680px)
   Affinage en plus des réglages tablette ci-dessus.
============================================================ */
@media (max-width: 680px) {
    .gv-stages-wrapper { padding: 0 14px !important; }

    .gv-table tr { padding: 16px 14px; }

    /* Boutons : pleine largeur, empilés, plus simples à toucher */
    .gv-table td:last-child { flex-direction: column; }
    .gv-btn-details,
    .gv-btn-inscrire,
    .gv-btn-complet { min-width: 100%; padding: 12px 14px; font-size: 12px; }

    .gv-legende { gap: 5px; }
    .gv-legende span { padding: 4px 10px; font-size: 10px; }

    .gv-stage-title { font-size: 34px !important; }
    .gv-inscription-block { padding: 18px; }
}

/* ============================================================
   RESPONSIVE — TRÈS PETIT MOBILE (≤360px)
============================================================ */
@media (max-width: 360px) {
    .gv-stage-title { font-size: 28px !important; }
    .gv-legende span { font-size: 9px; padding: 4px 8px; }
}
