/**
 * Styles de la page vélo [fact_velo]
 *
 * Scopé sous #fact-velo .fv-*
 * Cohabite avec Divi — pas de strip_theme_assets.
 *
 * @since 3.7.0
 */

/* ── Reset Divi wrappers ─────────────────────────────────────────────── */
.et_pb_section:has(#fact-velo),
.et_pb_row:has(#fact-velo),
.et_pb_column:has(#fact-velo),
.et_pb_module:has(#fact-velo),
.et_pb_text_inner:has(#fact-velo) {
    padding: 0 !important;
    margin: 0 auto !important;
    min-height: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* ==========================================================================
   FACT Vélo — Scope isolé anti-Divi
   ========================================================================== */

/* --- Variables --- */
#fact-velo {
    --fv-primary: #0052FF;
    --fv-text: #1C1C1E;
    --fv-text-light: #8E8E93;
    --fv-bg: #FFFFFF;
    --fv-bg-secondary: #F2F2F7;
    --fv-border: rgba(60, 60, 67, 0.12);
    --fv-separator: rgba(60, 60, 67, 0.08);
    --fv-velo: #4caf50;
    --fv-velo-bg: rgba(76, 175, 80, 0.08);
    --fv-radius-sm: 10px;
    --fv-radius-md: 14px;
}

/* --- Reset Divi dans le scope --- */
#fact-velo,
#fact-velo *,
#fact-velo *::before,
#fact-velo *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

#fact-velo a {
    text-decoration: none;
    color: inherit;
}

#fact-velo h1,
#fact-velo h2,
#fact-velo h3 {
    padding-bottom: 0 !important;
    margin-bottom: 0;
    line-height: inherit;
    font-family: inherit;
    color: inherit;
}

#fact-velo img {
    max-width: 100%;
    height: auto;
    border: 0;
    display: block;
}

/* ==========================================================================
   Conteneur principal
   ========================================================================== */
#fact-velo {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    color: var(--fv-text);
    background: var(--fv-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

/* ==========================================================================
   Header — Bouton retour
   ========================================================================== */
#fact-velo .fv-header {
    padding: 20px 20px 0;
}

#fact-velo .fv-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px 8px 10px;
    background: var(--fv-bg);
    border: 1px solid var(--fv-border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fv-text-light);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.22s cubic-bezier(.4,0,.2,1), box-shadow 0.22s cubic-bezier(.4,0,.2,1);
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

#fact-velo .fv-back:hover {
    color: var(--fv-text);
    box-shadow: 0 2px 8px rgba(0,0,0,.09);
}

#fact-velo .fv-back:active {
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

#fact-velo .fv-back svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* ==========================================================================
   Hero — Titre + description
   ========================================================================== */
#fact-velo .fv-hero {
    padding: 24px 20px 32px;
}

#fact-velo .fv-hero-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.8px;
    line-height: 1.15;
    color: var(--fv-text);
    margin-bottom: 12px;
}

#fact-velo .fv-hero-title em {
    font-style: italic;
    color: var(--fv-velo);
}

#fact-velo .fv-hero-desc {
    font-size: 15px;
    color: var(--fv-text-light);
    line-height: 1.55;
    max-width: 380px;
}

/* ==========================================================================
   Carte Géovélo — Bloc principal avec boutons
   ========================================================================== */
#fact-velo .fv-card {
    margin: 0 20px;
    background: var(--fv-bg);
    border-radius: var(--fv-radius-md);
    border: 1px solid var(--fv-border);
    padding: 32px 28px;
    text-align: center;
}

#fact-velo .fv-card-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
}

#fact-velo .fv-card-logos img {
    height: 32px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

#fact-velo .fv-card-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--fv-text);
    line-height: 1.3;
    margin-bottom: 10px;
}

#fact-velo .fv-card-subtitle {
    font-size: 14px;
    color: var(--fv-text-light);
    line-height: 1.55;
    margin-bottom: 28px;
}

#fact-velo .fv-cta-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #C7C7CC;
    margin-bottom: 16px;
    line-height: 1;
}

/* ==========================================================================
   Boutons store — Mobile first : empilés par défaut, côte à côte à 514px+
   ========================================================================== */
#fact-velo .fv-stores {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 514px) {
    #fact-velo .fv-stores {
        flex-direction: row;
    }
}

#fact-velo .fv-store-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    padding: 14px 16px;
    background: var(--fv-text);
    border-radius: var(--fv-radius-sm);
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.15s ease, transform 0.15s ease;
    text-decoration: none;
    line-height: 1;
    min-height: 52px;
}

#fact-velo .fv-store-btn:hover {
    opacity: 0.9;
}

#fact-velo .fv-store-btn:active {
    opacity: 0.8;
    transform: scale(0.97);
}

#fact-velo .fv-store-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

#fact-velo .fv-store-btn-text {
    text-align: left;
    line-height: 1.2;
}

#fact-velo .fv-store-btn-text .fv-store-label {
    font-size: 10px;
    opacity: 0.7;
    display: block;
    font-weight: 400;
}

#fact-velo .fv-store-btn-text .fv-store-name {
    font-size: 15px;
    font-weight: 600;
    display: block;
    color: #fff;
}

/* ==========================================================================
   Logos partenaires — Gris clair, en bas
   ========================================================================== */
#fact-velo .fv-partners {
    padding: 28px 20px;
    text-align: center;
}

#fact-velo .fv-partners-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #C7C7CC;
    margin-bottom: 14px;
    line-height: 1;
}

#fact-velo .fv-partners-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

#fact-velo .fv-partners-logos img {
    height: 28px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    filter: grayscale(100%) opacity(0.35);
    transition: filter 0.25s ease;
}

#fact-velo .fv-partners-logos img:hover {
    filter: grayscale(0%) opacity(1);
}

#fact-velo .fv-partners-logos svg {
    display: block;
    flex-shrink: 0;
}

#fact-velo .fv-partners-logos .fv-partner-svg {
    opacity: 0.35;
    transition: opacity 0.25s ease;
}

#fact-velo .fv-partners-logos .fv-partner-svg:hover {
    opacity: 0.7;
}

#fact-velo .fv-partners-logos .fv-partner-svg svg {
    height: 60px;
    width: auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */
#fact-velo .fv-footer {
    margin-top: 40px;
    padding: 0 20px 24px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--fv-text-light);
}

#fact-velo .fv-footer a {
    font-size: 0.75rem;
    color: var(--fv-text-light);
}

#fact-velo .fv-footer a:hover {
    color: var(--fv-text);
    text-decoration: none;
}

#fact-velo .fv-footer span {
    font-size: 0.75rem;
    color: var(--fv-text-light);
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    #fact-velo *,
    #fact-velo *::before,
    #fact-velo *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
