/* ============================================================
 * Agenda V2 Test — feuille complète sans import CSS externe
 * ------------------------------------------------------------
 * Version publique migrée depuis Agenda V2 test.
 * Base agenda v3 intégrée localement.
 * Périmètre : /agenda web public uniquement.
 * ============================================================ */

/* ============================================================
 * BASE CONTRAT AGENDA V3 INTÉGRÉE
 * ============================================================ */
/* ============================================================
 * AGENDA V3 - CSS PREMIUM
 * ============================================================ */

/* 1. CONFIGURATION DES VARIABLES (LIGHT PAR DÉFAUT) */
:root {
    /* Couleurs principales */
    --v3-accent: #FF6233;
    --v3-gold: #D4AF37;

    /* Variables par défaut (Light) */
    --v3-bg: #ffffff;
    --v3-surface: #ffffff;
    --v3-text: #1a1a1a;
    --v3-muted: #666666;
    --v3-border: #e0e0e0;

    --v3-card-bg: #ffffff;
    --v3-card-border: #eeeeee;

    /* Polices */
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Lora', serif;

    /* Variables V2 (fusionnées) */
    --agv2-radius: 14px;
      --agv2-radius-sm: 9px;
      --agv2-shadow-soft: 0 14px 34px rgba(20, 22, 26, .08);
      --agv2-shadow-dark: 0 18px 42px rgba(0, 0, 0, .32);
      --agv2-pro-bg: #241f18;
      --agv2-pro-border: #d4af37;
      --agv2-pro-text: #f8f1dd;
}

/* 2. VOTRE CONFIGURATION DARK MODE (INTEGRATION EXACTE) */
html[data-theme="dark"] body.agenda-v3-page,
html[data-theme="dark"] body.v3-mode {
    --bg: #0b0e14;
    --surface: #151a23;
    --text: #e8edf5;
    --muted: #9aa4b2;
    --border: #2a3241;

    --v3-bg: #0b0e14;
    --v3-surface: #151a23;
    --v3-text: #e8edf5;
    --v3-muted: #9aa4b2;
    --v3-border: #2a3241;

    --v3-card-bg: #151a23;
    --v3-card-border: #2a3241;

    --shadow-1: 0 6px 16px rgba(0,0,0,0.40);
    --shadow-hover: 0 12px 32px rgba(0,0,0,0.60);

    background: var(--bg);
    color: var(--text);
}

/* 3. LAYOUT GLOBAL & FIXES */
body.agenda-v3-page .v3-main-wrapper,
body.v3-mode .v3-main-wrapper {
    padding-top: 0;
    max-width: none;
    width: 100%;
    overflow-x: clip;
}

.v3-main-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px 100px;
    position: relative;
    z-index: 50;
    background: var(--v3-bg);
}

/* 4. HERO SECTION */
.v3-hero-section {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 400px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 60px;
}

.v3-hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.v3-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 10s ease;
}

.v3-hero-section:hover .v3-hero-img {
    transform: scale(1.02);
}

.v3-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(18,18,18,0.9) 100%);
}

.v3-hero-content-layer {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    padding: 20px;
    max-width: 900px;
}

.v3-hero-badge {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--v3-accent);
    font-size: 0.8rem;
    padding: 8px 20px;
    border: 1px solid rgba(255, 98, 51, 0.5);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    margin-bottom: 20px;
}

.v3-hero-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.65rem, 3.5vw, 3.2rem);
    line-height: 1.15;
    margin: 0 0 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.v3-hero-title::before {
    content: '// ';
    color: var(--v3-accent);
}

.v3-hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

.v3-scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 20;
    color: rgba(255,255,255,0.6);
}

.v3-scroll-down .mouse {
    display: block;
    width: 24px;
    height: 38px;
    border: 2px solid currentColor;
    border-radius: 20px;
    position: relative;
}

.v3-scroll-down .mouse span {
    display: block;
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 50%;
    margin-left: -2px;
    animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
    0% { top: 8px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* 5. GRILLE PRINCIPALE & STICKY */
.v3-layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 80px;
    align-items: stretch;
}

.v3-aside {
    position: relative;
    height: 100%;
}

.v3-sticky-box {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

/* 6. FEED & CARTES */
.v3-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--v3-border);
    padding-bottom: 30px;
    margin-bottom: 50px;
}

.v3-feed-count {
    font-family: var(--font-head);
    font-size: 1rem;
    color: var(--v3-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.v3-feed-count span {
    color: var(--v3-text);
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 5px;
}

/* DATE DU JOUR HIGH-TECH & HAUT CONTRASTE */
.v3-day-group {
    position: relative;
    z-index: 10;
    margin-bottom: 50px;
}

.v3-day-divider {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    z-index: 60;
    background: var(--v3-text);
    color: var(--v3-bg);
    width: max-content;
    max-width: 90vw;
    padding: 8px 24px;
    margin-bottom: 30px;
    border-radius: 30px;
    border-bottom: 3px solid var(--v3-accent);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

html[data-theme="dark"] body.agenda-v3-page .v3-day-divider,
html[data-theme="dark"] body.v3-mode .v3-day-divider {
    background: #000000;
    color: var(--v3-text);
    border: 1px solid var(--v3-border);
    border-bottom: 3px solid var(--v3-accent);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
}

/* CARTE ÉVÉNEMENT */
.v3-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    background: var(--v3-card-bg);
    border: 1px solid var(--v3-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    margin-bottom: 40px;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.v3-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--v3-accent);
}

.v3-card.is-pro {
    background: #1a1a1a;
    border: 1px solid var(--v3-gold);
    color: #fff;
}

.v3-card.is-pro .v3-card-title { color: #fff; }
.v3-card.is-pro .v3-card-excerpt { color: #ccc; }
.v3-card.is-pro .v3-card-meta { color: var(--v3-gold); }
.v3-card.is-pro .v3-card-link { color: #fff; border-color: var(--v3-gold); }

.v3-card-img-wrap {
    position: relative;
    height: 100%;
    min-height: 240px;
    overflow: hidden;
}

.v3-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.v3-card:hover .v3-card-img {
    transform: scale(1.05);
}

.v3-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #fff;
    color: #000;
    font-family: var(--font-head);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 8px 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}

.v3-badge.badge-pro {
    background: var(--v3-gold);
    color: #000;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.v3-badge.badge-sponsor {
    background: var(--v3-gold);
    color: #000;
    top: auto;
    bottom: 20px;
    font-size: 0.6rem;
}

.v3-card-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.v3-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    font-family: var(--font-head);
    font-size: 0.8rem;
    color: var(--v3-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.v3-card-meta i {
    color: var(--v3-accent);
    margin-right: 5px;
}

.v3-card-title {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 15px;
    color: var(--v3-text);
    line-height: 1.2;
}

.v3-card-excerpt {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--v3-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.v3-card-link {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--v3-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--v3-accent);
    display: inline-block;
    padding-bottom: 5px;
    text-decoration: none;
    align-self: flex-start;
}

/* 7. WIDGETS & CALENDRIER */
.v3-widget-cal {
    border-bottom: 1px solid var(--v3-border);
    padding-bottom: 30px;
}

.v3-cal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#agx-cal-title {
font-family: var(--font-head);
font-weight: 700;
text-transform: uppercase;
font-size: 1rem;
letter-spacing: 1px;
color: var(--v3-text);
}

.v3-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    color: var(--v3-muted);
    margin-bottom: 15px;
    font-family: var(--font-head);
}

.v3-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.v3-cal-cell {
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 0.9rem;
    color: #ccc;
    cursor: default;
    border: none;
    background: none;
    position: relative;
    border-radius: 8px;
}

.v3-cal-cell.has-event {
    color: var(--v3-text);
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--v3-card-border);
    background: var(--v3-surface);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.v3-cal-cell.has-event:hover {
    border-color: var(--v3-accent);
}

.v3-cal-cell.is-selected {
    background: var(--v3-accent);
    color: #fff;
    border-color: var(--v3-accent);
}

.v3-cal-count {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--v3-accent);
}

.v3-cal-cell.is-selected .v3-cal-count {
    color: #fff;
}

.v3-label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.75rem;
    color: var(--v3-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 700;
}

.v3-search {
    position: relative;
    margin-bottom: 0;
}

.v3-search i {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--v3-text);
}

.v3-search input {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid var(--v3-border);
    background: transparent;
    font-family: var(--font-body);
    font-size: 1.1rem;
    outline: none;
    color: var(--v3-text);
}

.v3-search input:focus {
    border-color: var(--v3-accent);
}

.v3-toggles {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.v3-chip {
    border: 1px solid var(--v3-border);
    background: var(--v3-card-bg);
    padding: 8px 18px;
    cursor: pointer;
    color: var(--v3-text);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.2s;
    border-radius: 30px;
}

.v3-chip:hover {
    border-color: var(--v3-text);
}

.v3-chip.active {
    background: var(--v3-text);
    color: var(--v3-bg);
    border-color: var(--v3-text);
}

.v3-btn-reset {
    background: none;
    border: none;
    text-decoration: underline;
    color: var(--v3-muted);
    cursor: pointer;
    font-size: 0.8rem;
    font-family: var(--font-head);
}

/* 🚨 LIGHTBOX STYLES */
.v3-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 20, 0.95);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.v3-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.v3-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.v3-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: rgba(255,255,255,0.7);
    font-size: 2.5rem;
    cursor: pointer;
    border: none;
    background: none;
    transition: color 0.2s;
}

.v3-lightbox-close:hover {
    color: #fff;
}

.v3-lightbox-cta {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--v3-accent);
    display: inline-block;
    padding-bottom: 5px;
    text-decoration: none;
    transition: color 0.3s, border-color 0.3s;
}

.v3-lightbox-cta:hover {
    color: var(--v3-accent);
}

.v3-lightbox-cta i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.v3-lightbox-cta:hover i {
    transform: translateX(4px);
}

.v3-fab-cal, .v3-sidebar-close {
    display: none;
}

/* 8. MODULE D'AFFICHAGE : LISTE / COMPACT / GRILLE / TEXTE */
.v3-view-toggles {
    display: flex;
    gap: 8px;
}

.v3-view-btn {
    background: var(--v3-card-bg);
    border: 1px solid var(--v3-border);
    color: var(--v3-muted);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.v3-view-btn:hover {
    border-color: var(--v3-text);
    color: var(--v3-text);
}

.v3-view-btn.active {
    background: var(--v3-text);
    color: var(--v3-bg);
    border-color: var(--v3-text);
}

/* Classes utilitaires d'affichage */
.desktop-only { display: flex; }
.mobile-only { display: none; }

/* Vue Compacte (PC) */
.v3-cards-stack.view-compact .v3-card {
    grid-template-columns: 160px 1fr;
    min-height: 140px;
    margin-bottom: 20px;
}

.v3-cards-stack.view-compact .v3-card-img-wrap {
    min-height: 140px;
}

.v3-cards-stack.view-compact .v3-card-body {
    padding: 20px;
}

.v3-cards-stack.view-compact .v3-card-title {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.v3-cards-stack.view-compact .v3-card-meta {
    margin-bottom: 10px;
}

.v3-cards-stack.view-compact .v3-card-excerpt {
    display: none;
}

/* Vue Grille (PC) */
.v3-cards-stack.view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.v3-cards-stack.view-grid .v3-card {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.v3-cards-stack.view-grid .v3-card-img-wrap {
    min-height: 180px;
    max-height: 200px;
}

.v3-cards-stack.view-grid .v3-card-body {
    padding: 25px;
    flex-grow: 1;
}

.v3-cards-stack.view-grid .v3-card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.v3-cards-stack.view-grid .v3-card-excerpt {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* 9. RESPONSIVE & MOBILE MAGIC */
@media (max-width: 1024px) {
    .v3-main-container {
        padding: 0 20px 100px;
    }

    .v3-layout-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Gestion de la vue Mobile Globale */
    .v3-card {
        grid-template-columns: 1fr;
        margin-bottom: 30px; /* 🚨 Cartes parfaitement décollées */
    }

    .v3-card-img-wrap {
        min-height: 250px;
        max-height: 350px;
    }

    .v3-card-body {
        padding: 25px;
    }

    /* 🚨 Vue Mobile "Texte sans Image" */
    .v3-cards-stack.view-text .v3-card-img-wrap {
        display: none; /* Disparition totale de l'image */
    }

    .v3-cards-stack.view-text .v3-card-body {
        padding: 20px;
    }

    /* Nettoyage des classes "PC" qui pourraient rester coincées */
    .v3-cards-stack.view-grid,
    .v3-cards-stack.view-compact {
        display: block;
    }

    /* Le FAB (Bouton Flottant) */
    .v3-fab-cal {
        display: flex;
        position: fixed;
        bottom: 30px;
        right: 20px;
        width: 60px;
        height: 60px;
        background: var(--v3-accent);
        color: #fff;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        z-index: 90;
        border: none;
        box-shadow: 0 4px 20px rgba(255,98,51,0.5);
        cursor: pointer;
        transition: transform 0.2s;
    }

    .v3-fab-cal:active {
        transform: scale(0.9);
    }

    /* Sidebar transformée en Drawer Mobile */
    .v3-aside {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--v3-surface);
        z-index: 100;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        padding: 80px 30px 120px;
        margin: 0;
    }

    .v3-aside.is-open {
        transform: translateY(0);
    }

    

    .v3-sticky-box {
        position: static;
        max-height: none;
        overflow: visible;
    }

    /* Calendrier Mobile affiné */
    .v3-cal-cell {
        aspect-ratio: auto;
        height: 38px;
        font-size: 0.85rem;
        border-radius: 6px;
    }

    .v3-cal-grid {
        gap: 4px;
    }

    .v3-widget-cal {
        padding-bottom: 15px;
    }

    .v3-filter-group {
        margin-top: 20px;
    }

    /* Affichage des boutons mobile / masquer les boutons PC */
    .desktop-only { display: none; }
    .mobile-only { display: flex; }
    .v3-view-toggles { display: flex; } /* On s'assure que le conteneur reste visible */
}

/* 10. INTEGRATION SEO & SEMANTIQUE */
.v3-intro-text {
    margin: 30px 0 40px;
    padding-left: 15px;
    border-left: 3px solid var(--v3-accent);
    color: var(--v3-text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
}

.v3-seo-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--v3-border);
    width: 100%;
}

.v3-seo-inner {
    width: 100%;
    max-width: 100%;
}

.v3-seo-title {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--v3-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.v3-seo-title i {
    color: var(--v3-accent);
}

.v3-seo-content {
    font-family: var(--font-body);
    color: var(--v3-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    column-count: 2;
    column-gap: 40px;
    text-align: justify;
}

.v3-seo-note {
    display: block;
    margin-top: 15px;
    font-size: 0.85em;
    opacity: 0.7;
    font-style: italic;
    break-inside: avoid;
}

.v3-seo-tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.v3-tag-pill {
    background: var(--v3-surface);
    padding: 4px 12px;
    border-radius: 4px;
    font-family: var(--font-head);
    font-size: 0.75rem;
    color: var(--v3-text);
    border: 1px solid var(--v3-border);
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .v3-seo-content {
        column-count: 1;
        text-align: left;
    }
    .v3-seo-section {
        padding-top: 20px;
        margin-top: 30px;
    }
}

/* 11. BANNIÈRE PACK / CONTEXTE FILTRE */
.v3-pack-banner {
    position: relative;
    overflow: hidden;
    margin: 0 0 26px;
    border-radius: 24px;
    border: 1px solid rgba(255, 98, 51, 0.22);
    background:
        radial-gradient(circle at top right, rgba(255, 98, 51, 0.24), transparent 34%),
        linear-gradient(135deg, #10151f 0%, #171e2b 52%, #0d1119 100%);
    color: #fff;
    box-shadow: 0 18px 45px rgba(14, 18, 28, 0.2);
}

.v3-pack-banner__glow {
    position: absolute;
    inset: auto -60px -90px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 98, 51, 0.18);
    filter: blur(8px);
    pointer-events: none;
}

.v3-pack-banner__content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    padding: 24px 26px;
}

.v3-pack-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.88);
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.v3-pack-banner__title {
    margin: 10px 0 8px;
    font-family: var(--font-head);
    font-size: clamp(1.45rem, 2.6vw, 2.1rem);
    line-height: 1.12;
    color: #fff;
}

.v3-pack-banner__text {
    margin: 0;
    max-width: 780px;
    color: rgba(255,255,255,0.8);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
}

.v3-pack-banner__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.v3-pack-banner__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.v3-pack-banner__chip strong {
    color: rgba(255,255,255,0.72);
    font-weight: 700;
}

.v3-pack-banner__actions {
    display: flex;
    justify-content: flex-start;
}

.v3-pack-banner__reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: #fff;
    color: #161c27;
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.v3-pack-banner__reset:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.22);
}

html[data-theme="dark"] body.agenda-v3-page .v3-pack-banner,
html[data-theme="dark"] body.v3-mode .v3-pack-banner {
    border-color: rgba(255, 98, 51, 0.26);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

@media (max-width: 768px) {
    .v3-pack-banner {
        border-radius: 20px;
    }

    .v3-pack-banner__content {
        padding: 20px 18px;
        gap: 14px;
    }

    .v3-pack-banner__title {
        font-size: 1.25rem;
    }

    .v3-pack-banner__chip {
        width: 100%;
        justify-content: flex-start;
    }

    .v3-pack-banner__actions {
        width: 100%;
    }

    .v3-pack-banner__reset {
        width: 100%;
    }
}

/* ============================================================
 * AGENDA V2 — RÈGLES PROPRES
 * ============================================================ */
/* ============================================================
 * Agenda V2 Test — réécriture propre depuis l'état actuel
 * ------------------------------------------------------------
 * Périmètre : /agenda web public uniquement.
 * Règles : pas d'append CSS, pas de surcharge forcée, pas d'API mobile.
 * ============================================================ */

body.agenda-v2-public,
body.agenda-v2-public-body {
  background: var(--v3-bg);
  color: var(--v3-text);
}

.agv2-card[hidden],
.agv2-day[hidden],
.agv2-empty[hidden],
.agv2-calendar-modal[hidden],
.agv2-travel-badge[hidden],
.agv2-active-criteria[hidden],
.is-agv2-hidden {
  display: none;
}

html.agv2-modal-open,
html.agv2-modal-open body {
  overflow: hidden;
}

/* Hero */
.agv2-hero-contract {
  height: 50vh;
  min-height: 400px;
}

.agv2-hero-contract .v3-hero-content-layer {
  max-width: 900px;
  padding: 20px;
  margin: 0 auto;
}

.agv2-hero-title-seo::before {
  content: none;
}

.agv2-hero-title-seo {
  max-width: 900px;
  margin: 0 0 20px;
  font-size: clamp(1.65rem, 3.5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.agv2-hero-slashes {
  display: inline-block;
  margin: 0 .16em;
  color: var(--v3-accent);
  font-size: 1em;
  line-height: 1;
  vertical-align: baseline;
  letter-spacing: -.08em;
}

.agv2-hero-contract .v3-hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-style: italic;
  opacity: .9;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.35;
}

.agv2-main {
  margin-top: -18px;
}

.agv2-layout-grid {
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 42px;
  align-items: start;
}

.agv2-feed-header {
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.agv2-view-toggles {
  flex: 0 0 auto;
}

.agv2-view-toggles .v3-view-btn {
  border-radius: 9px;
}

.agv2-feed-actions {
  margin-left: auto;
  min-width: 0;
}

.agv2-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.agv2-quick button,
.agv2-sidebar-calendar-btn,
.agv2-calendar-actions button,
.agv2-reset {
  appearance: none;
  border: 1px solid var(--v3-border);
  background: var(--v3-card-bg);
  color: var(--v3-text);
  border-radius: 11px;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
  /* fusion doublon */
  padding: 11px 14px;
  border-color: var(--v3-accent);
  color: var(--v3-accent);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.agv2-quick button {
  padding: 10px 16px;
  border-radius: 999px;
}

.agv2-quick button:hover,
.agv2-quick button.is-active,
.agv2-sidebar-calendar-btn:hover,
.agv2-sidebar-calendar-btn.is-active {
  border-color: var(--v3-accent);
  color: var(--v3-accent);
}

.agv2-active-summary {
  border: 1px solid rgba(255, 98, 51, .24);
  border-left: 4px solid var(--v3-accent);
  background: color-mix(in srgb, var(--v3-accent) 6%, var(--v3-card-bg));
  border-radius: var(--agv2-radius);
  padding: 18px 22px;
  margin-bottom: 30px;
}

.agv2-active-summary-main {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  color: var(--v3-muted);
  font-family: var(--font-body);
}

.agv2-active-summary-main strong {
  color: var(--v3-text);
  font-family: var(--font-head);
}

.agv2-active-criteria {
  margin-top: 12px;
}

.agv2-active-criteria-label {
  display: block;
  margin-bottom: 8px;
  color: var(--v3-text);
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.agv2-active-criteria-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agv2-criteria-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid rgba(255, 98, 51, .35);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--v3-card-bg);
  font-family: var(--font-head);
  font-size: .74rem;
  color: var(--v3-muted);
}

.agv2-criteria-chip strong {
  color: var(--v3-text);
  text-transform: uppercase;
  letter-spacing: .7px;
}

/* Groupes */
.agv2-day {
  margin-bottom: 44px;
}

.agv2-day .v3-day-divider {
  top: 16px;
  border-radius: 999px;
}

.agv2-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Cartes : base liste */
.agv2-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 220px;
  margin-bottom: 0;
  border-radius: var(--agv2-radius);
  border: 1px solid var(--v3-border);
  background: var(--v3-card-bg);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.agv2-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--agv2-shadow-soft);
  border-color: color-mix(in srgb, var(--v3-accent) 55%, var(--v3-border));
}

.agv2-card .v3-card-img-wrap {
  position: relative;
  min-height: 220px;
  height: 100%;
  background: color-mix(in srgb, var(--v3-text) 5%, var(--v3-bg));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.agv2-card .v3-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.agv2-card:hover .v3-card-img {
  transform: none;
}

.agv2-card-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--v3-muted);
  font-family: var(--font-head);
  font-weight: 800;
}

.agv2-card .v3-card-body {
  min-width: 0;
  padding: 28px 34px;
  justify-content: center;
}

.agv2-card .v3-card-title {
  font-size: clamp(1.35rem, 1.45vw, 1.8rem);
  margin-bottom: 14px;
}

.agv2-card .v3-card-excerpt {
  margin-bottom: 22px;
}

.agv2-card-meta {
  gap: 10px 18px;
  margin-bottom: 10px;
}

.agv2-card-date-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--v3-accent);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 800;
}

.agv2-card-date-line i,
.agv2-card-meta i {
  color: var(--v3-accent);
}

.agv2-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.agv2-travel-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border-radius: 9px;
  padding: 8px 12px;
  background: #eaf3e7;
  border: 1px solid #cbdec8;
  color: #254723;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.15;
}

.agv2-card .v3-card-link {
  white-space: nowrap;
}

/* Badges */
.agv2-card-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 4;
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: none;
}

.agv2-card-badges .v3-badge,
.agv2-inline-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(17, 17, 17, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  color: #17120f;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .7px;
  line-height: 1;
  text-transform: uppercase;
}

.agv2-badge-pepites,
.agv2-inline-badge--pepites {
  background: var(--v3-accent);
  color: #fff;
  border-color: var(--v3-accent);
}

.agv2-badge-pro,
.agv2-inline-badge--pro {
  background: var(--v3-gold);
  color: #18130d;
  border-color: var(--v3-gold);
}

.agv2-inline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

/* Annonces pro */
.agv2-card.agv2-card--pro,
.agv2-pro-injected-card {
  background: linear-gradient(90deg, #252116 0%, #191919 100%);
  border-color: color-mix(in srgb, var(--v3-gold) 85%, #000);
  color: var(--agv2-pro-text);
  /* fusion doublon */
  box-shadow: 0 18px 45px rgba(0, 0, 0, .12);
}

.agv2-card.agv2-card--pro .v3-card-title,
.agv2-pro-injected-card .v3-card-title {
  color: #fff;
}

.agv2-card.agv2-card--pro .v3-card-excerpt,
.agv2-pro-injected-card .v3-card-excerpt {
  color: rgba(255, 255, 255, .74);
}

.agv2-card.agv2-card--pro .v3-card-meta,
.agv2-pro-injected-card .v3-card-meta,
.agv2-card.agv2-card--pro .agv2-card-date-line,
.agv2-pro-injected-card .agv2-card-date-line {
  color: #ebd27a;
}

.agv2-card.agv2-card--pro .v3-card-link,
.agv2-pro-injected-card .v3-card-link {
  color: #fff;
  border-color: var(--v3-gold);
}

.agv2-card.agv2-card--pro .agv2-travel-badge,
.agv2-pro-injected-card .agv2-travel-badge {
  background: rgba(212, 175, 55, .17);
  border-color: rgba(212, 175, 55, .50);
  color: #f7e7ad;
}

.agv2-pro-injected {
  margin: 8px 0 34px;
}

/* En liste et compact, les repères restent dans le contenu, jamais sur l'image.
   Seule la grille conserve les badges sur l'image pour gagner en hauteur. */
.agv2-cards-stack.view-grid .agv2-card-badges {
  display: flex;
}

.agv2-cards-stack.view-grid .agv2-inline-badges {
  display: none;
}

/* Modes d'affichage */
.agv2-cards-stack.view-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.agv2-cards-stack.view-grid .agv2-card {
  grid-template-columns: 1fr;
  min-height: 0;
}

.agv2-cards-stack.view-grid .v3-card-img-wrap {
  min-height: 245px;
  height: 245px;
}

.agv2-cards-stack.view-grid .v3-card-body {
  padding: 24px;
}

.agv2-cards-stack.view-grid .v3-card-title {
  font-size: 1.35rem;
}

.agv2-cards-stack.view-grid .v3-card-excerpt {
  font-size: .96rem;
}

.agv2-cards-stack.view-grid .agv2-card-bottom {
  align-items: flex-start;
  flex-direction: column;
}

.agv2-cards-stack.view-compact {
  gap: 18px;
}

.agv2-cards-stack.view-compact .agv2-card {
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 150px;
}

.agv2-cards-stack.view-compact .v3-card-img-wrap {
  min-height: 150px;
}

.agv2-cards-stack.view-compact .v3-card-body {
  padding: 18px 24px;
}

.agv2-cards-stack.view-compact .v3-card-title {
  font-size: 1.22rem;
  margin-bottom: 8px;
}

.agv2-cards-stack.view-compact .v3-card-excerpt {
  display: none;
}

.agv2-cards-stack.view-compact .agv2-card-bottom {
  margin-top: 12px;
}

.agv2-cards-stack.view-text .v3-card-img-wrap {
  display: none;
}

.agv2-cards-stack.view-text .agv2-card {
  grid-template-columns: 1fr;
  min-height: 0;
}

/* Sidebar */
.agv2-aside {
  min-width: 0;
}

.agv2-sticky-box {
  top: 96px;
  gap: 22px;
  max-height: none;
  overflow: visible;
}

.agv2-calendar-widget,
.agv2-filter-box {
  border: 1px solid var(--v3-border);
  border-radius: var(--agv2-radius);
  background: var(--v3-card-bg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .045);
  padding: 18px;
}

.agv2-calendar-widget {
  padding-bottom: 18px;
}

.agv2-small-badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--v3-accent);
  font-family: var(--font-head);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.1;
  text-transform: uppercase;
}

.agv2-calendar-widget-head p {
  margin: 0 0 12px;
  color: var(--v3-muted);
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
}

.agv2-sidebar-calendar-btn {
  width: 100%;
  padding: 11px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-color: rgba(255, 98, 51, .35);
  color: var(--v3-accent);
}

.agv2-filter-head h2 {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--v3-text);
}

.agv2-filters {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.agv2-search {
  margin: 0 0 2px;
}

.agv2-select {
  width: 100%;
  border: 1px solid var(--v3-border);
  border-radius: 11px;
  background: var(--v3-card-bg);
  color: var(--v3-text);
  padding: 10px 13px;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 800;
}

.agv2-filters .v3-filter-group {
  margin: 0;
}

.agv2-filters .v3-label {
  margin-bottom: 7px;
  font-size: .70rem;
}

.agv2-reset:hover,
.agv2-calendar-actions button:hover {
  background: var(--v3-accent);
  color: #fff;
  border-color: var(--v3-accent);
}

/* Calendrier modal */
.agv2-calendar-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.agv2-calendar-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .52);
  backdrop-filter: blur(6px);
}

.agv2-calendar-modal-box {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  background: var(--v3-card-bg);
  border: 1px solid var(--v3-border);
  color: var(--v3-text);
  border-radius: var(--agv2-radius);
  padding: 22px;
  box-shadow: var(--agv2-shadow-dark);
}

.agv2-calendar-modal-head,
.agv2-cal-top,
.agv2-calendar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* fusion doublon */
  margin-top: 18px;
  justify-content: stretch;
}

.agv2-calendar-modal-head h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--v3-text);
}

.agv2-calendar-close,
.agv2-cal-nav {
  border: 1px solid var(--v3-border);
  background: var(--v3-card-bg);
  color: var(--v3-text);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.agv2-cal-top {
  margin: 20px 0 14px;
  font-family: var(--font-head);
  font-weight: 800;
}

.agv2-cal-grid {
  gap: 7px;
}

.agv2-cal-grid button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--v3-muted);
  font-family: var(--font-head);
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.agv2-cal-grid button.has-events {
  cursor: pointer;
  border-color: var(--v3-border);
  color: var(--v3-text);
  background: var(--v3-surface);
}

.agv2-cal-grid button.has-events:hover,
.agv2-cal-grid button.is-selected {
  border-color: var(--v3-accent);
  background: color-mix(in srgb, var(--v3-accent) 12%, var(--v3-card-bg));
}

.agv2-cal-day-number {
  font-size: .86rem;
  font-weight: 900;
}

.agv2-cal-count {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--v3-accent);
  color: #fff;
  font-size: .62rem;
  font-weight: 900;
  line-height: 1;
}

.agv2-calendar-actions button {
  flex: 1;
  padding: 11px 12px;
  text-decoration: none;
  border-color: var(--v3-border);
}

.agv2-empty {
  border: 1px dashed var(--v3-border);
  border-radius: var(--agv2-radius);
  padding: 28px;
  text-align: center;
  color: var(--v3-muted);
}

/* Boutons flottants */
.agv2-fab-cal,
.agv2-scroll-top {
  display: none;
  position: fixed;
  z-index: 900;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  right: 28px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--v3-card-bg);
  color: var(--v3-text);
  border: 1px solid var(--v3-border);
}

.agv2-scroll-top.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html.agv2-modal-open .agv2-fab-cal,
html.agv2-modal-open .agv2-scroll-top {
  display: none;
}

/* Dark : uniquement les compléments nécessaires */
html[data-theme="dark"] body.v3-mode .agv2-active-summary {
  background: rgba(255, 98, 51, .08);
}

html[data-theme="dark"] body.v3-mode .agv2-travel-badge {
  background: rgba(126, 170, 110, .22);
  border-color: rgba(160, 205, 145, .38);
  color: #d7f1cf;
}

html[data-theme="dark"] body.v3-mode .agv2-card-badges .v3-badge,
html[data-theme="dark"] body.v3-mode .agv2-inline-badge {
  background: rgba(242, 245, 248, .94);
  color: #111820;
}

html[data-theme="dark"] body.v3-mode .agv2-badge-pepites,
html[data-theme="dark"] body.v3-mode .agv2-inline-badge--pepites {
  background: var(--v3-accent);
  color: #fff;
}

html[data-theme="dark"] body.v3-mode .agv2-badge-pro,
html[data-theme="dark"] body.v3-mode .agv2-inline-badge--pro {
  background: var(--v3-gold);
  color: #18130d;
}

html[data-theme="dark"] body.v3-mode .agv2-card .v3-card-img-wrap {
  background: #090d13;
}

/* Responsive web : pas d'API mobile, uniquement le rendu web */
@media (max-width: 1180px) {
  .agv2-layout-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 30px;
  }

  .agv2-card {
    grid-template-columns: 185px minmax(0, 1fr);
  }
}

@media (max-width: 1024px) {
  .agv2-layout-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .agv2-feed-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .agv2-feed-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .agv2-quick {
    justify-content: stretch;
  }

  .agv2-quick button {
    flex: 1 1 160px;
  }

  .agv2-aside {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--v3-surface);
    transform: translateY(100%);
    transition: transform .28s ease;
    overflow-y: auto;
    padding: 72px 24px 118px;
  }

  .agv2-aside.is-open {
    transform: translateY(0);
  }

  .v3-sidebar-close {
    display: block;
    position: fixed;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: var(--v3-text);
    font-size: 2rem;
    cursor: pointer;
  }

  .agv2-sticky-box {
    position: static;
    max-width: 420px;
    margin: 0 auto;
  }

  .agv2-fab-cal {
    display: inline-flex;
    right: 20px;
    bottom: 24px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 118px;
    height: 54px;
    border-radius: 999px;
    background: var(--v3-accent);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 900;
    letter-spacing: .5px;
    text-transform: uppercase;
  }
}
@media (max-width: 760px) {
  /* ---- Hero (mobile) ----
     Hauteur auto : le contenu n'est jamais rogné (la hauteur fixe précédente
     écrasait le contenu et faisait passer l'indicateur de défilement sur le
     sous-titre). La marge basse du bloc de contenu réserve la place de
     l'indicateur pour qu'il ne chevauche jamais le texte. */
  .agv2-hero-contract {
    min-height: 360px;
    height: auto;
  }

  .agv2-hero-contract .v3-hero-content-layer {
    max-width: 340px;
    padding: 128px 18px 84px;
    margin: 0 auto;
  }

  .agv2-hero-contract .v3-hero-badge {
    /*margin-top: 35px;*/
    margin-bottom: 8px;
    font-size: .62rem;
    letter-spacing: 1.8px;
  }

  .agv2-hero-contract .v3-hero-subtitle {
    max-width: 315px;
    margin: 12px auto 0;
    font-size: .96rem;
    line-height: 1.28;
  }

  .agv2-hero-contract .v3-scroll-down {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
  }

  .agv2-main {
    margin-top: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  .agv2-hero-title-seo {
    font-size: clamp(1.55rem, 7.2vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -.03em;
  }

  .agv2-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .agv2-card .v3-card-img-wrap {
    min-height: 260px;
    height: 260px;
  }

  .agv2-card .v3-card-body {
    padding: 22px;
  }

  .agv2-card .v3-card-title {
    font-size: 1.45rem;
  }

  .agv2-card-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .agv2-cards-stack.view-grid,
  .agv2-cards-stack.view-compact {
    display: flex;
    flex-direction: column;
  }

  .agv2-cards-stack.view-grid .agv2-card,
  .agv2-cards-stack.view-compact .agv2-card {
    grid-template-columns: 1fr;
  }

  .agv2-cards-stack.view-grid .v3-card-img-wrap,
  .agv2-cards-stack.view-compact .v3-card-img-wrap {
    min-height: 260px;
    height: 260px;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: flex;
  }

  .v3-fab-cal,
  .agv2-fab-cal {
    right: 18px;
    bottom: 18px;
    width: 56px;
    min-width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 999px;
    overflow: hidden;
  }

  .v3-fab-cal span,
  .agv2-fab-cal span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(50%);
  }

  .agv2-calendar-modal {
    align-items: start;
    padding: 14px 10px;
  }

  .agv2-calendar-modal-box {
    width: min(360px, calc(100vw - 20px));
    max-height: calc(100svh - 28px);
    overflow: auto;
    padding: 16px;
  }

  .agv2-cal-grid {
    gap: 5px;
  }

  .agv2-cal-grid button {
    min-height: 40px;
    border-radius: 8px;
  }

  .agv2-calendar-actions {
    flex-direction: column;
    position: sticky;
    bottom: 0;
    background: var(--v3-card-bg);
    padding-top: 10px;
  }

  .agv2-scroll-top.is-visible {
    right: 20px;
    bottom: 90px;
  }
}
