/* ============================================
   YOUVANNA STARTER v2.6.0 — Design System
   Architecture : 1 seul fichier CSS, tout via variables
   Changer --color-primary change TOUT le site
   ============================================ */

/* --- DESIGN TOKENS (override per client) --- */
:root {
    /* Couleurs - Fuiteo palette (bleu profond + rose elegant, couleurs natives du logo) */
    --color-primary: #0e7490;
    --color-primary-rgb: 14, 116, 144;  /* MEME couleur en RGB - pour les rgba() */
    --color-primary-dark: #083344;
    --color-primary-light: rgba(var(--color-primary-rgb), .08);
    --color-secondary: #0f172a;
    --color-secondary-rgb: 15, 23, 42;
    --color-accent: #ff75bb;
    --color-accent-rgb: 255, 117, 187;  /* rose elegant du logo Fuiteo */
    --color-text: #0f172a;
    --color-text-light: #475569;
    --color-text-muted: #64748b;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-border: #e2e8f0;

    /* Couleurs additionnelles */
    --color-highlight: #ffd6ec;
    --color-red: #dc2626;
    --color-turquoise: #0891b2;
    --color-error: #ef4444;
    --color-error-dark: #991b1b;
    --color-error-bg: #fef2f2;
    --color-success: #10b981;
    --color-success-dark: #065f46;
    --color-success-bg: #ecfdf5;

    /* Dégradés réutilisables — basés sur primary/accent */
    --gradient-brand: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    --gradient-brand-soft: linear-gradient(135deg, rgba(var(--color-primary-rgb),.08) 0%, rgba(var(--color-accent-rgb),.08) 100%);

    /* Typo — Poppins heading + Inter body (Google Fonts, display=swap) */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

    /* Layout */
    --max-width: 1320px;
    --max-width-narrow: 860px;
    --max-width-wide: 1440px;
    --radius: 12px;
    --radius-sm: 8px;

    /* Ombres */
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,.04), 0 10px 15px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.06), 0 20px 50px rgba(0,0,0,.08);

    /* Animation */
    --transition: .3s cubic-bezier(.4,0,.2,1);

    /* Header */
    --header-height: 72px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scroll-padding-top: var(--header-height); overflow-x: hidden; }
[id] { scroll-margin-top: var(--header-height); }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}
#main-content { flex: 1; }
img { max-width: 100%; height: auto; display: block; }

/* Skip link — accessibility */
.skip-link {
    position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
    background: var(--color-primary); color: #fff; padding: 8px 24px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-size: 14px; font-weight: 600; z-index: 10000;
    transition: top var(--transition);
}
.skip-link:focus { top: 0; color: #fff; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--color-secondary);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
h5 { font-size: 1rem; font-weight: 700; }
h6 { font-size: 0.9rem; font-weight: 700; }

/* Colored highlight — mots surlignés dans les titres (style m5) */
.highlight {
    color: var(--color-primary);
    font-weight: inherit;
}
/* Hero h1 + CTA banner h2 stay fully white — highlight inherits color */
.hero-content h1 .highlight,
.page-hero .hero-content h1 .highlight,
.cta-banner .cta-content h2 .highlight,
.cta-content h2 .highlight { color: inherit; }

/* ============================================
   LAYOUT — Réutilisable partout
   ============================================ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--max-width-narrow); }
.container-wide { max-width: 1480px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section:nth-child(even) { background: var(--color-bg-alt); }
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); gap: 24px; }

/* ============================================
   BUTTONS — Tous basés sur --color-primary
   ============================================ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    font-size: 15px; font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.btn-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-secondary:hover { background: #fff; color: var(--color-secondary); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.btn-secondary-light { background: transparent; color: var(--color-secondary); border-color: var(--color-border); }
.btn-secondary-light:hover { background: var(--color-secondary); color: #fff; transform: translateY(-2px); }

/* ============================================
   HEADER / NAV
   ============================================ */
#site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,.96);
    /* NB : pas de backdrop-filter — il cree un containing block qui casse
       position:fixed des enfants (.nav-mobile-cta). Le header est deja .96 opaque. */
    transition: all var(--transition);
}
#site-header.scrolled { box-shadow: var(--shadow); }
.nav-container {
    max-width: var(--max-width-wide); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px; height: var(--header-height);
}
.nav-logo img, .nav-logo .custom-logo { height: 40px; max-height: 40px; max-width: 180px; width: auto; object-fit: contain; }
@media (max-width: 960px) {
    .nav-logo img, .nav-logo .custom-logo { height: 34px; max-height: 34px; max-width: 150px; }
}
.nav-logo .site-name { font-size: 1.4rem; font-weight: 800; color: var(--color-secondary); }
.nav-menu { display: flex; gap: 4px; list-style: none; }
.nav-menu li a {
    display: block; padding: 8px 16px;
    font-size: 14px; font-weight: 500;
    color: var(--color-text); border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav-menu li a { position: relative; }
.nav-menu li a::after { content: ''; position: absolute; bottom: 2px; left: 16px; right: 16px; height: 2px; background: var(--color-primary); transform: scaleX(0); transition: transform var(--transition); transform-origin: center; }
.nav-menu li a:hover::after, .nav-menu li.current-menu-item a::after { transform: scaleX(1); }
.nav-menu li a:hover,
.nav-menu li.current-menu-item a { color: var(--color-primary); background: var(--color-primary-light); }
/* Dropdown sub-menu */
.nav-menu li { position: relative; }
.nav-menu li .sub-menu { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border-radius: var(--radius-md, 8px); box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 8px 0; list-style: none; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease; z-index: 100; }
.nav-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu li .sub-menu li a { padding: 10px 20px; font-size: 13px; white-space: nowrap; border-radius: 0; }
.nav-menu li .sub-menu li:not(.menu-item-has-children) a::after { display: none; }
.nav-menu li .sub-menu li a:hover { background: var(--color-primary-light, #f0f9ff); color: var(--color-primary); }
/* Chevron dropdown indicator */
.nav-menu li.menu-item-has-children > a { padding-right: 28px; } .nav-menu li.menu-item-has-children > a::after { content: ''; position: absolute; right: 10px; top: 50%; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-50%) rotate(45deg); background: none; left: auto; bottom: auto; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-phone { font-size: 14px; font-weight: 600; color: var(--color-text); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px; }
.nav-mobile-cta { display: none; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-secondary); margin: 5px 0; transition: all var(--transition); transform-origin: center; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO — Composant réutilisable (homepage + pages)
   ============================================ */
.hero, .page-hero {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    background-color: var(--color-secondary);
    margin-top: var(--header-height);
    overflow: hidden;
}
.hero-bg-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    z-index: 0;
    /* Initial scale matches the JS parallax transform to avoid jump on first scroll */
    transform: translateY(0) scale(1.1);
    transform-origin: center center;
    will-change: transform;
    backface-visibility: hidden;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(var(--color-secondary-rgb),.55) 0%, rgba(var(--color-secondary-rgb),.75) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 24px; }
.hero-content h1 { color: #fff; margin-bottom: 20px; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.hero-subtitle { color: rgba(255,255,255,.9); font-size: clamp(1rem, 2.5vw, 1.25rem); margin-bottom: 32px; line-height: 1.6; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   CARDS — Composant réutilisable
   ============================================ */
.card {
    background: #fff; border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
a.card-clickable:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--color-text-light); font-size: 15px; }
.card-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--color-primary); }
.card-link:hover { color: var(--color-primary-dark); }
.card-link:hover::after { transform: translateX(4px); }
.card-link::after { content: ''; display: inline-block; transition: transform var(--transition); }
.card-date { display: block; font-size: 13px; color: var(--color-text-light); margin-bottom: 8px; }

/* ============================================
   SECTION TITLES — Réutilisable
   ============================================ */
/* Section header — Framer-style badge + title with highlight */
.section-badge {
    display: inline-block;
    padding: 6px 18px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-primary);
    background: var(--color-primary-light);
    border: 1px solid rgba(var(--color-primary-rgb), .15);
    border-radius: 100px;
    margin-bottom: 16px;
}
.section-badge + .section-title { margin-top: 0; }
.section-title { text-align: center; margin-bottom: 12px; }
/* NOTE : pas de <mark> dans les titres — rule #17 */
.section-subtitle { text-align: center; color: var(--color-text-light); max-width: 640px; margin: 0 auto 48px; font-size: 17px; }

/* ============================================
   ABOUT / TEXT+IMAGE — Même layout
   ============================================ */
.about-section .grid-2, .text-image-section .grid-2 { align-items: center; }
.about-image, .ti-image { overflow: hidden; }
.about-image img, .ti-image img {
    display: block;
    width: 100%;
}
.about-content h2, .ti-content h2 { margin-bottom: 16px; }
.about-content p, .about-content div, .ti-content p, .ti-content div { color: var(--color-text-light); margin-bottom: 24px; }
.text-image-section.reverse .ti-image { order: -1; }

/* ============================================
   STATS — Basé sur --color-primary
   ============================================ */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.stats-grid-wide { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 0; }
.stat { text-align: center; background: var(--color-bg-alt); }
.stat-number { display: block; color: var(--color-primary); }
.stat-label { color: var(--color-text-light); }
.numbers-primary { background: var(--color-primary) !important; }
.numbers-primary .stat { background: rgba(255,255,255,.15); }
.numbers-primary .stat-number { color: #fff; }
.numbers-primary .stat-label { color: rgba(255,255,255,.8); }
.numbers-primary .section-title { color: #fff; }
.numbers-primary .section-subtitle { color: rgba(255,255,255,.8); }
.numbers-primary .section-badge { color: #fff; background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.2); }
.numbers-dark { background: var(--color-secondary) !important; }
.numbers-dark .stat { background: rgba(255,255,255,.08); }
.numbers-dark .stat-number { color: var(--color-primary); }
.numbers-dark .stat-label { color: rgba(255,255,255,.7); }
.numbers-dark .section-title { color: #fff; }
.numbers-dark .section-subtitle { color: rgba(255,255,255,.7); }
.numbers-dark .section-badge { color: rgba(255,255,255,.9); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); }

/* ============================================
   TESTIMONIALS — Basé sur --color-primary
   ============================================ */
.testimonial-card {
    background: #fff;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); }
.testimonial-stars { color: var(--color-accent); font-size: 18px; margin-bottom: 16px; }
.testimonial-card blockquote { font-style: italic; color: var(--color-text-light); margin-bottom: 20px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { display: block; color: var(--color-secondary); }
.testimonial-author span { font-size: 13px; color: var(--color-text-light); }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: #fff; border-radius: var(--radius);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all var(--transition);
}
.faq-item[open] { box-shadow: var(--shadow-md); border-color: var(--color-primary); }
.faq-item summary {
    padding: 20px 24px;
    font-weight: 600; font-size: 16px;
    cursor: pointer;
    list-style: none;
    display: flex; align-items: center; justify-content: space-between;
    transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--color-primary); transition: transform var(--transition); }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { color: var(--color-primary); }
.faq-item summary:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -2px; border-radius: var(--radius); }
.faq-answer { padding: 0 24px 20px; color: var(--color-text-light); line-height: 1.7; }

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
    border-radius: var(--radius); overflow: hidden;
    transition: all var(--transition);
}
.gallery-item:hover { box-shadow: var(--shadow-lg); }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.gallery-item:hover img { transform: scale(1.05); }

/* ============================================
   CTA BANNER — Overlay basé sur --color-primary
   ============================================ */
.cta-banner {
    position: relative; padding: 80px 24px;
    text-align: center;
    background-color: var(--color-secondary);
    overflow: hidden;
}
.cta-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb),.92) 0%, rgba(var(--color-secondary-rgb),.88) 100%);
}
.cta-content { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.cta-content h2 { color: #fff; margin-bottom: 16px; }
.cta-content p,
.cta-content .cta-text { color: rgba(255,255,255,.9); margin-bottom: 48px; font-size: 17px; line-height: 1.7; }
.cta-content .cta-text p { margin-bottom: 0; }
.cta-banner .btn-primary { background: #fff; color: var(--color-primary); }
.cta-banner .btn-primary:hover { background: var(--color-bg-alt); }

/* ============================================
   CONTACT FORM (CF7) — Basé sur --color-primary
   ============================================ */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%; padding: 14px 18px;
    font-size: 15px; font-family: var(--font-body);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color var(--transition);
    background: #fff;
}
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus {
    outline: none; border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 input[type="submit"] {
    background: var(--color-primary); color: #fff;
    padding: 14px 32px; border: none;
    border-radius: var(--radius); font-size: 15px; font-weight: 600;
    cursor: pointer; transition: all var(--transition);
}
.wpcf7 input[type="submit"]:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; }
.contact-info h3 { margin-bottom: 24px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.contact-info-item .icon {
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* Font Awesome icons — inherit theme colors */
.card-icon i, .contact-info-item .icon i {
    font-size: inherit;
    color: inherit;
}
/* ============================================
   FOOTER — Basé sur --color-secondary
   ============================================ */
#site-footer { background: var(--color-secondary); color: rgba(255,255,255,.7); }
.footer-container {
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 2fr 1fr 1fr;
}
.footer-brand .footer-logo img,
.footer-brand .footer-logo .custom-logo { height: 48px; width: auto; max-width: 220px; object-fit: contain; margin-bottom: 16px; }
/* Si le logo est monochrome (noir), l'inverser pour fond sombre. Marquer le logo via theme_mod yv_footer_invert_logo */
.footer-brand.logo-invert .footer-logo img,
.footer-brand.logo-invert .footer-logo .custom-logo { filter: brightness(0) invert(1); }
.footer-brand .footer-logo span { font-size: 1.3rem; font-weight: 700; color: #fff; }
.footer-description { font-size: 14px; line-height: 1.7; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.footer-social a { font-size: 13px; color: rgba(255,255,255,.5); padding: 4px 8px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-sm); }
.footer-social a:hover { color: #fff; border-color: var(--color-primary); transform: translateY(-2px); }
.footer-social a { transition: all var(--transition); }
#site-footer h3 { color: rgba(255,255,255,.4); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 20px; }
.footer-menu { list-style: none; }
.footer-menu li a { display: block; padding: 4px 0; color: rgba(255,255,255,.7); font-size: 14px; }
.footer-menu li a:hover { color: #fff; }
.footer-contact a, .footer-contact p { display: block; margin-bottom: 8px; color: rgba(255,255,255,.7); font-size: 14px; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
    max-width: var(--max-width); margin: 48px auto 0; padding: 24px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px;
}
.footer-bottom a { color: var(--color-primary); }

/* ============================================
   BLOG — Article single (see enhanced styles below)
   ============================================ */
.pagination { text-align: center; margin-top: 48px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.pagination a, .pagination span { padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); font-size: 14px; }
.pagination a:hover { background: var(--color-bg-alt); border-color: var(--color-primary); color: var(--color-primary); }
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ============================================
   PAGE CONTENT (WP editor)
   ============================================ */
.page-content-section p { margin-bottom: 16px; color: var(--color-text-light); }
.page-content-section h2 { margin: 32px 0 16px; }
.page-content-section ul, .page-content-section ol { margin: 16px 0; padding-left: 24px; }
.page-content-section li { margin-bottom: 8px; color: var(--color-text-light); }

/* ============================================
   BLOG CARDS — Listing articles
   ============================================ */
.blog-card-link { display: block; color: inherit; text-decoration: none; }
.blog-card-link:hover { color: inherit; }
.blog-card-placeholder { height: 240px; display: flex; align-items: center; justify-content: center; background: var(--color-bg-alt, #f8fafc); color: var(--color-text-light); }
.blog-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 13px; color: var(--color-text-light); }
.blog-card-meta time { display: inline; }
.blog-card-cat { background: var(--color-primary); color: #fff; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.blog-card .card-body h3 { font-size: 18px; margin-bottom: 8px; line-height: 1.4; }
.blog-card .card-body p { font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Article single — meilleur design */
.article-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; font-size: 14px; color: var(--color-text-light); }
.article-cat { background: var(--color-primary); color: #fff; padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.article-content { font-size: 17px; line-height: 1.8; color: var(--color-text); }
.article-content p { margin-bottom: 20px; }
.article-content h2 { margin: 40px 0 16px; font-size: 28px; }
.article-content h3 { margin: 32px 0 12px; font-size: 22px; }
.article-content img { border-radius: var(--radius); margin: 24px 0; max-width: 100%; height: auto; }
.article-content blockquote { border-left: 4px solid var(--color-primary); padding: 16px 24px; margin: 24px 0; background: var(--color-bg-alt, #f8fafc); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--color-text-light); }
.article-content ul, .article-content ol { margin: 16px 0; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--color-border); flex-wrap: wrap; }
.article-cta { margin-top: 48px; padding: 32px; background: var(--color-bg-alt); border-radius: var(--radius); border-left: 4px solid var(--color-primary); text-align: center; }
.article-cta p { margin-bottom: 12px; color: var(--color-text-light); }
.article-cta p strong { color: var(--color-text); font-size: 18px; }
.article-cta .btn { margin-top: 8px; }

/* ============================================
   ANIMATIONS — Scroll reveal + stagger + parallax
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);
    will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger children (cards, stats, faq items) — Framer-style fade-in-up */
.reveal .card,
.reveal .faq-item,
.reveal .stat,
.reveal .testimonial-card,
.reveal .team-member,
.reveal .card-minimal,
.reveal .card-steps {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
    will-change: opacity, transform;
}
.reveal.visible .card,
.reveal.visible .faq-item,
.reveal.visible .stat,
.reveal.visible .testimonial-card,
.reveal.visible .team-member,
.reveal.visible .card-minimal,
.reveal.visible .card-steps {
    opacity: 1;
    transform: translateY(0);
}

/* Subtle content parallax on images inside about / text+image sections */
.about-image img,
.ti-image img,
.text-image-section img {
    transition: transform 1.2s cubic-bezier(.22,1,.36,1);
    will-change: transform;
}
.reveal .about-image img,
.reveal .ti-image img,
.reveal.text-image-section img {
    transform: scale(1.06);
}
.reveal.visible .about-image img,
.reveal.visible .ti-image img,
.reveal.visible.text-image-section img {
    transform: scale(1);
}

/* Counter animation — numbers start invisible until JS kicks in */
.stat-number {
    transition: none;
}

/* Parallax — prevent background clipping */
.hero, .page-hero, .cta-banner {
    background-attachment: scroll;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .reveal .card, .reveal .faq-item, .reveal .stat, .reveal .testimonial-card, .reveal .team-member,
    .reveal .card-minimal, .reveal .card-steps,
    .reveal .about-image img, .reveal .ti-image img, .reveal.text-image-section img,
    .reveal .image-stat-badge, .reveal.visible .image-stat-badge {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    .marquee-track { animation: none !important; }
    .stat-number { transition: none !important; }
    .image-frame::before { transform: translate(10px, 10px) !important; transition: none !important; }
    .image-frame.is-right::before { transform: translate(-10px, 10px) !important; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1280px) {
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .services-grid-tall .card img { height: 170px; }
}
@media (max-width: 960px) {
    .grid-2 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .services-section { padding: 64px 0; }
    .services-section .section-subtitle { margin-bottom: 36px; }
    .services-grid-tall .card img { height: 160px; }
    .nav-menu, .nav-cta { display: none; }
    .nav-toggle { display: block; }
    .nav-menu.active {
        display: flex; flex-direction: column;
        position: absolute; top: var(--header-height); left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--color-border);
        padding: 16px; box-shadow: var(--shadow-lg); z-index: 999;
        max-height: calc(100vh - var(--header-height)); overflow-y: auto;
    }
    .nav-cta { display: none !important; }
    .nav-mobile-cta {
        display: none;
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px 20px;
        border-top: 1px solid var(--color-border);
    }
    /* Quand le menu burger est ouvert, afficher le CTA fixed en bas de l'ecran */
    .nav-menu.active ~ .nav-mobile-cta {
        display: flex !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        bottom: 0 !important;
        background: #fff;
        box-shadow: 0 -8px 24px rgba(0,0,0,.08);
        z-index: 998;
        padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    }
    .nav-mobile-cta .nav-phone {
        text-align: center;
        padding: 10px 0;
        font-size: 15px;
    }
    .nav-mobile-cta .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }
    /* Laisser de la place au bas du menu pour le CTA fixed (140px environ) */
    .nav-menu.active {
        padding-bottom: 160px !important;
    }
    /* Mobile sub-menus : inline au lieu d'absolute/hover */
    .nav-menu.active li { width: 100%; }
    .nav-menu.active > li > a { min-height: 48px; padding: 12px 16px; }
    .nav-menu.active li .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--color-bg-alt);
        border-radius: var(--radius-sm);
        margin: 4px 0 8px;
        padding: 8px 0;
        display: none;
    }
    .nav-menu.active li.submenu-open > .sub-menu { display: block; }
    .nav-menu.active li .sub-menu .sub-menu { margin-left: 16px; }
    .nav-menu.active li .sub-menu li a { min-height: 44px; padding: 10px 20px; }
    .nav-menu.active li.menu-item-has-children > a::after {
        transition: transform .2s ease;
    }
    .nav-menu.active li.submenu-open.menu-item-has-children > a::after {
        transform: translateY(-50%) rotate(-135deg);
    }
    .section { padding: 64px 0; }
    .hero { min-height: 70vh; }
    .text-image-section .grid-2 { gap: 32px; }
}
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
    .services-grid-tall .card img { height: 180px; }
    .card-icon-badge { width: 56px; height: 56px; font-size: 1.4rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .about-section .grid-2 { gap: 24px; }
    .gallery-item img { height: 200px; }
    .section { padding: 56px 0; }
    .stat-number { font-size: 2.2rem; }
    .stat { padding: 20px 16px; }
    .cta-banner { padding: 64px 24px; }
    .stats-grid-wide { grid-template-columns: 1fr 1fr; }
    .testimonial-card { padding: 24px; }
    .marquee-track .testimonial-card { min-width: 280px; max-width: 320px; }
    .marquee-track { gap: 16px; }
    .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
    .page-hero {
        aspect-ratio: auto !important;
        min-height: 260px;
        padding: 56px 0 48px;
        width: 100%;
        max-width: 100vw;
    }
    .page-hero .hero-content { padding: 16px 20px; max-width: 100%; }
    .page-hero .hero-content h1 { font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.25; word-wrap: break-word; }
    .page-hero .hero-subtitle { font-size: 15px; line-height: 1.55; }
    .hero { min-height: 60vh; width: 100%; max-width: 100vw; }
    .hero-content { padding: 16px 20px; max-width: 100%; }
    .hero-bg-img { width: 100%; max-width: 100%; }
    .article-nav { flex-direction: column; gap: 12px; }
    .article-nav .btn { width: 100%; justify-content: center; }
    .article-cta { padding: 24px 20px; }
    .contact-info-item { align-items: center; }
}

/* ============================================
   DESIGN UPGRADE — Premium touches
   ============================================ */

/* Smooth gradient accent line under header */
#site-header { border-bottom: none; }
#site-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
    opacity: .7;
}

/* Hero improvements — bigger impact */
.hero { min-height: 85vh; }
.hero-content { max-width: 880px; }
.hero-content h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); letter-spacing: -.02em; }
.hero-subtitle { font-size: clamp(1.05rem, 2.5vw, 1.2rem); max-width: 820px; margin-left: auto; margin-right: auto; }
.hero-buttons .btn-primary { font-size: 16px; padding: 16px 36px; }
.hero-buttons .btn-secondary { font-size: 16px; padding: 16px 36px; }

/* Section spacing improvements */
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.01em; margin-bottom: 16px; }
.section-subtitle { font-size: 18px; line-height: 1.7; }

/* Cards — more polished */
.card { border: 1px solid var(--color-border); box-shadow: none; }
a.card-clickable:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.card img { height: 240px; object-fit: cover; }
.card-body { padding: 28px; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 12px; }
.card-body p { font-size: 15px; line-height: 1.7; }

/* Card icon — fallback when no image (rendered at top of card) */
.card > .card-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin: 28px 0 0 28px;
    color: #fff;
}

/* Card icon badge — rounded square, overlapping image/body boundary */
.card-icon-badge {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    margin: 0 0 18px;
    box-shadow: 0 10px 24px -10px rgba(15,23,42,.25);
}
.card-icon-badge i { line-height: 1; }

/* Services section — compact portrait cards */
.services-section { padding: 96px 0; }
.services-section .section-title { margin-bottom: 14px; }
.services-section .section-subtitle { max-width: 760px; margin: 0 auto 56px; }

.services-grid-tall .card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 18px;
    overflow: visible;
    background: #fff;
    box-shadow: 0 4px 28px -10px rgba(15,23,42,.12);
    transition: box-shadow var(--transition), transform var(--transition);
}
.services-grid-tall a.card-clickable:hover {
    box-shadow: 0 18px 48px -18px rgba(15,23,42,.22);
    border-color: transparent;
    transform: translateY(-4px);
}
.services-grid-tall .card img {
    width: 100%;
    height: 196px;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
    display: block;
}
.services-grid-tall .card-body {
    position: relative;
    padding: 32px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}
.services-grid-tall .card-body .card-icon-badge {
    position: absolute;
    top: -22px;
    left: 22px;
    margin: 0;
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
    background: var(--gradient-brand);
}
.services-grid-tall .card-body h3 {
    font-size: 1.05rem;
    line-height: 1.3;
    margin: 0 0 8px;
    letter-spacing: -.01em;
    color: var(--color-text, #0f172a);
}
.services-grid-tall .card-body .card-text,
.services-grid-tall .card-body p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-text-muted, #5b6472);
    margin: 0 0 10px;
}
.services-grid-tall .card-link {
    margin-top: auto;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-primary);
}

/* ============================================
   CARDS VARIANTS — mises en page alternatives
   ============================================ */

/* Shared: remove default .card border on all variants */
.cards-layout-featured .card,
.cards-layout-horizontal .card,
.cards-layout-steps .card,
.cards-layout-minimal .card { border: none; }

/* ---- Variant: featured ---- */
/* 1 big feature card (spans 2 cols + 2 rows) + smaller cards auto-placing around */
.cards-layout-featured {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.cards-layout-featured .card {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 28px -10px rgba(15,23,42,.12);
    display: flex; flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
}
.cards-layout-featured a.card-clickable:hover {
    box-shadow: 0 18px 48px -18px rgba(15,23,42,.22);
    transform: translateY(-3px);
}
.cards-layout-featured .card img {
    width: 100%; height: 220px; object-fit: cover; display: block;
}
.cards-layout-featured .card-body {
    padding: 24px 26px 28px;
    display: flex; flex-direction: column; flex: 1;
}
.cards-layout-featured .card-body h3 {
    font-size: 1.15rem; margin: 0 0 10px; line-height: 1.3;
}
.cards-layout-featured .card-body .card-text,
.cards-layout-featured .card-body p {
    font-size: 14.5px; line-height: 1.65; color: var(--color-text-muted, #5b6472); margin: 0 0 16px;
}
.cards-layout-featured .card-link {
    margin-top: auto; font-weight: 600; font-size: 14px; color: var(--color-primary);
}
.cards-layout-featured .card:first-child { grid-column: span 2; grid-row: span 2; }
.cards-layout-featured .card:first-child img { height: 420px; }
.cards-layout-featured .card:first-child .card-body { padding: 32px 36px 36px; }
.cards-layout-featured .card:first-child .card-body h3 { font-size: 1.6rem; margin-bottom: 14px; }
.cards-layout-featured .card:first-child .card-body .card-text,
.cards-layout-featured .card:first-child .card-body p { font-size: 16px; }

/* ---- Variant: horizontal ---- */
/* Vertical stack of horizontal list-item cards: image left, text right */
.cards-layout-horizontal {
    display: flex; flex-direction: column; gap: 24px;
    max-width: 1040px; margin: 0 auto;
}
.cards-layout-horizontal .card {
    display: grid;
    grid-template-columns: 320px 1fr;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px -10px rgba(15,23,42,.1);
    transition: box-shadow var(--transition), transform var(--transition);
}
.cards-layout-horizontal a.card-clickable:hover {
    box-shadow: 0 16px 40px -16px rgba(15,23,42,.2);
    transform: translateX(4px);
}
.cards-layout-horizontal .card img {
    width: 100%; height: 100%; min-height: 200px; object-fit: cover; border-radius: 0;
}
.cards-layout-horizontal .card-body {
    padding: 28px 32px;
    display: flex; flex-direction: column; justify-content: center; flex: 1;
}
.cards-layout-horizontal .card-body h3 {
    font-size: 1.3rem; margin: 0 0 10px;
}
.cards-layout-horizontal .card-body .card-text,
.cards-layout-horizontal .card-body p {
    font-size: 15px; line-height: 1.7; color: var(--color-text-muted, #5b6472); margin: 0 0 14px;
}
.cards-layout-horizontal .card-link {
    font-weight: 600; font-size: 14px; color: var(--color-primary);
}

/* ---- Variant: steps ---- */
/* Horizontal row of numbered step cards with big number in corner */
.cards-layout-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.cards-layout-steps .card-steps {
    position: relative;
    padding: 48px 28px 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px -10px rgba(15,23,42,.08);
    transition: box-shadow var(--transition), transform var(--transition);
}
.cards-layout-steps a.card-clickable.card-steps:hover {
    box-shadow: 0 16px 40px -16px rgba(15,23,42,.18);
    transform: translateY(-4px);
}
.cards-layout-steps .card-number {
    position: absolute;
    top: 18px; right: 22px;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-primary);
    opacity: .25;
    letter-spacing: -.02em;
}
.cards-layout-steps .card-body { padding: 0; text-align: left; }
.cards-layout-steps .card-body h3 {
    font-size: 1.15rem; margin: 0 0 10px; line-height: 1.35;
}
.cards-layout-steps .card-body .card-text,
.cards-layout-steps .card-body p {
    font-size: 14.5px; line-height: 1.65; color: var(--color-text-muted, #5b6472); margin: 0 0 14px;
}
.cards-layout-steps .card-link {
    font-weight: 600; font-size: 14px; color: var(--color-primary);
}

/* ---- Variant: minimal ---- */
/* No image, large numbers, minimal text — for "Reasons to choose" type sections */
.cards-layout-minimal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
    gap: 44px 40px;
    max-width: 1160px; margin: 0 auto;
}
.cards-layout-minimal .card-minimal {
    position: relative;
    padding: 28px 28px 32px 96px;
    background: transparent;
    box-shadow: none;
    border-radius: 14px;
    transition: background 0.5s ease;
}
.cards-layout-minimal .card-minimal::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.045), rgba(var(--color-primary-rgb), 0) 65%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}
.cards-layout-minimal .card-minimal:hover::before {
    opacity: 1;
}
.cards-layout-minimal .card-minimal::after {
    content: '';
    position: absolute;
    left: 96px; bottom: 18px;
    width: 40px; height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}
.cards-layout-minimal .card-minimal:hover::after {
    transform: scaleX(1);
}
.cards-layout-minimal .card-number {
    position: absolute;
    top: 22px; left: 12px;
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -.03em;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}
.cards-layout-minimal .card-minimal:hover .card-number {
    transform: translateY(-3px) scale(1.05);
}
.cards-layout-minimal .card-body { padding: 0; text-align: left; position: relative; z-index: 1; }
.cards-layout-minimal .card-body h3 {
    font-size: 1.25rem; margin: 0 0 12px; line-height: 1.3;
    transition: color 0.4s ease;
}
.cards-layout-minimal .card-minimal:hover .card-body h3 {
    color: var(--color-primary);
}
.cards-layout-minimal .card-body .card-text,
.cards-layout-minimal .card-body p {
    font-size: 15px; line-height: 1.75; color: var(--color-text-muted, #5b6472); margin: 0;
}
.cards-layout-minimal .card-link { display: none; }

/* Responsive for variants */
@media (max-width: 1100px) {
    .cards-layout-featured { grid-template-columns: repeat(2, 1fr); }
    .cards-layout-featured .card:first-child { grid-column: span 2; grid-row: auto; }
    .cards-layout-featured .card:first-child img { height: 320px; }
}
@media (max-width: 768px) {
    .cards-layout-featured { grid-template-columns: 1fr; }
    .cards-layout-featured .card:first-child { grid-column: auto; }
    .cards-layout-featured .card:first-child img { height: 240px; }
    .cards-layout-featured .card:first-child .card-body h3 { font-size: 1.3rem; }
    .cards-layout-horizontal .card {
        grid-template-columns: 1fr;
    }
    .cards-layout-horizontal .card img { height: 220px; min-height: auto; }
    .cards-layout-horizontal a.card-clickable:hover { transform: none; }
    .cards-layout-minimal {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .cards-layout-minimal .card-minimal {
        padding: 20px 16px 28px 62px;
    }
    .cards-layout-minimal .card-number {
        font-size: 2.4rem;
        top: 18px; left: 8px;
    }
    .cards-layout-minimal .card-minimal::after {
        left: 62px;
    }
}

/* About / Text+Image — upgraded styling */
.about-image, .ti-image { border-radius: 16px; position: relative; }
.about-image img, .ti-image img {
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.12);
    width: 100%;
}
.about-content h2, .ti-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.about-content p, .ti-content p { font-size: 16px; line-height: 1.8; }

/* ============================================
   IMAGE FRAME + FLOATING STAT BADGES — Framer style
   ============================================ */
.image-frame {
    position: relative;
    display: block;
    width: calc(100% - 22px);
    max-width: calc(100% - 22px);
    margin: 0 22px 26px 0;
    border-radius: 18px;
    overflow: visible;
}
.image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    border: 2px solid rgba(var(--color-accent-rgb), .4);
    pointer-events: none;
    z-index: 0;
    transform: translate(14px, 14px);
    transition: transform .7s cubic-bezier(.22,1,.36,1), border-color .4s ease;
}
.image-frame:hover::before {
    transform: translate(8px, 8px);
    border-color: rgba(var(--color-primary-rgb), .55);
}
.image-frame > img,
.image-frame picture > img {
    position: relative;
    z-index: 1;
    border-radius: 18px;
    width: 100%;
    display: block;
}
/* When image is in the right column of a grid: flip offset to the left so
   the decorative border stays in the gutter, not on top of the text. */
.image-frame.is-right {
    margin: 0 0 26px 22px;
}
.image-frame.is-right::before {
    transform: translate(-14px, 14px);
}
.image-frame.is-right:hover::before {
    transform: translate(-8px, 8px);
}

/* Floating stat badge overlay */
.image-stat-badge {
    position: absolute;
    bottom: -22px;
    right: -18px;
    background: #fff;
    border-radius: 14px;
    padding: 14px 20px;
    box-shadow: 0 18px 40px -14px rgba(15,23,42,.25), 0 6px 16px -8px rgba(15,23,42,.15);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 2;
    min-width: 170px;
    animation: yvFloatBob 4.2s ease-in-out infinite;
    transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease;
}
.image-stat-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -14px rgba(15,23,42,.30), 0 10px 20px -8px rgba(15,23,42,.18);
}
.image-stat-badge.is-top-left    { top: -22px; left: -18px; bottom: auto; right: auto; animation-delay: -2s; }
.image-stat-badge.is-top-right   { top: -22px; right: -18px; bottom: auto; left: auto; animation-delay: -1s; }
.image-stat-badge.is-bottom-left { bottom: -22px; left: -18px; top: auto; right: auto; animation-delay: -3s; }
.image-stat-badge.is-bottom-right{ bottom: -22px; right: -18px; top: auto; left: auto; }

.image-stat-badge__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    background: var(--gradient-brand);
    flex-shrink: 0;
    box-shadow: 0 6px 14px -6px rgba(var(--color-primary-rgb), .5);
}
.image-stat-badge__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.image-stat-badge__number {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -.02em;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}
.image-stat-badge__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-light, #64748b);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 4px;
    white-space: nowrap;
}

@keyframes yvFloatBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* Entry animation: badge comes in after image reveals */
.reveal .image-stat-badge { opacity: 0; transform: translateY(20px) scale(.9); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); transition-delay: .5s; animation: none; }
.reveal.visible .image-stat-badge { opacity: 1; transform: translateY(0) scale(1); animation: yvFloatBob 4.2s ease-in-out infinite 1.3s; }

@media (max-width: 768px) {
    .image-frame, .image-frame.is-right {
        width: 100%;
        max-width: 100%;
        margin: 0 0 24px 0;
    }
    .image-frame::before { transform: translate(10px, 10px); }
    .image-frame.is-right::before { transform: translate(-10px, 10px); }
    .image-stat-badge {
        right: 8px !important;
        left: auto !important;
        top: auto !important;
        bottom: 8px !important;
        min-width: 140px;
        padding: 10px 14px;
    }
    .image-stat-badge__number { font-size: 1.35rem; }
    .image-stat-badge__icon { width: 36px; height: 36px; font-size: 1rem; border-radius: 10px; }
    .image-stat-badge__label { font-size: 10px; }
}

/* Stats — bigger numbers, cleaner look */
.stat { padding: 32px 20px; border-radius: 16px; }
.stat-number { font-size: 3rem; font-weight: 900; letter-spacing: -.02em; }
.stat-label { font-size: 15px; margin-top: 8px; font-weight: 500; }

/* Testimonials — softer cards with left border accent */
.testimonial-card {
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 36px;
}
.marquee-track .testimonial-card {
    min-width: 340px;
    max-width: 420px;
    flex-shrink: 0;
}
.testimonial-card blockquote { font-size: 16px; line-height: 1.8; }
.testimonial-author img { width: 52px; height: 52px; border: 2px solid var(--color-primary-light); }

/* Testimonials marquee — horizontal infinite scroll */
.testimonials-marquee {
    overflow: hidden;
    padding: 8px 0 16px;
}
.marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
    padding: 8px 0;
    will-change: transform;
}
.marquee-track[data-direction="right"] {
    animation-name: marquee-scroll-reverse;
}
.testimonials-marquee:hover .marquee-track {
    animation-play-state: paused;
}
/* Two rows: add gap between */
.marquee-track + .marquee-track {
    margin-top: 24px;
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes marquee-scroll-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
/* (consolidated into main 768px block) */

/* CTA — more dramatic gradient */
.cta-banner { padding: 96px 24px; }
.cta-content h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-content p { font-size: 18px; line-height: 1.7; }

/* FAQ — better interactions */
.faq-item { border-radius: 12px; }
.faq-item summary { font-size: 17px; padding: 22px 28px; }
.faq-answer { padding: 0 28px 24px; font-size: 16px; overflow: hidden; transition: max-height .3s ease, opacity .3s ease; }
.faq-answer p { margin-bottom: 12px; }

/* Page hero — more dramatic for interior pages (desktop/tablet only) */
@media (min-width: 769px) {
    .page-hero { min-height: 35vh; aspect-ratio: 16 / 5; }
    .page-hero .hero-content h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
}

/* Numbers section — better grid on desktop */
.numbers-primary, .numbers-dark { border-radius: 0; }
.numbers-primary .stats-grid-wide,
.numbers-dark .stats-grid-wide {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Text+Image — better spacing */
.text-image-section { padding: 96px 0; }
.text-image-section .grid-2 { gap: 48px; }
.ti-content { padding: 16px 0; }

/* Contact improvements */
.contact-grid { gap: 64px; }
.contact-info-item { margin-bottom: 28px; }
.contact-info-item .icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
}

/* Maps */
.contact-map iframe { border-radius: var(--radius); }

/* Footer refinement */
#site-footer { padding: 80px 0 0; }
.footer-container { gap: 64px; }
.footer-brand .footer-logo span { font-size: 1.5rem; }
.footer-description { font-size: 15px; margin-top: 12px; }

/* Blog cards enhancement */
.blog-card .card-body { padding: 24px 28px; }
.blog-card .card-body h3 { font-size: 1.15rem; }

/* Print styles */
@media print {
    #site-header, #site-footer, .cta-banner, .nav-toggle { display: none !important; }
    .hero, .page-hero { min-height: auto; padding: 32px 0; }
    .hero-overlay, .cta-overlay { display: none; }
    .section { padding: 24px 0; }
}

/* (consolidated into main 960px block above) */
/* (consolidated into main 768px block) */

/* Badge + title centering for all sections */
.cards-section .container, .services-section .container, .testimonials-section .container, .faq-section .container, .numbers-section .container, .team-section .container, .gallery-section .container, .video-section .container { text-align: center; }
.cards-section .grid, .services-section .grid, .faq-section .faq-list, .team-section .grid, .gallery-section .grid { text-align: left; }

/* 404 page */
.error-404-section { min-height: 60vh; display: flex; align-items: center; margin-top: var(--header-height); }
.error-404 { text-align: center; }
.error-404-code { font-size: 6rem; color: var(--color-primary); line-height: 1; margin-bottom: 8px; }
.error-404-text { font-size: 1.2rem; color: var(--color-text-light); margin: 16px 0 32px; }

/* Back to top */
.back-to-top {
    position: fixed; bottom: 32px; right: 32px;
    width: 44px; height: 44px;
    background: var(--color-primary); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 16px; box-shadow: var(--shadow-md);
    opacity: 0; pointer-events: none;
    transition: all var(--transition); z-index: 900;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--color-primary-dark); transform: translateY(-2px); color: #fff; }
.back-to-top:active { transform: scale(.92); }
/* (consolidated into main 768px block) */

/* Video section */
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Team section — cards statiques (rule #18 : pas de transform sur non-cliquable) */
.team-member { text-align: center; transition: all var(--transition); border-radius: var(--radius); overflow: hidden; padding-bottom: 24px; }
.team-member img { width: 100%; height: 280px; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.team-member-info h3 { margin-bottom: 4px; }
.team-role { display: block; color: var(--color-primary); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.team-member-info p { font-size: 14px; color: var(--color-text-light); }

/* Text section (WYSIWYG) */
.text-section-content { line-height: 1.8; font-size: 17px; }
.text-section-content p { margin-bottom: 16px; }
.text-section-content h2 { margin: 32px 0 16px; }
.text-section-content h3 { margin: 24px 0 12px; }
.text-section-content ul, .text-section-content ol { margin: 16px 0; padding-left: 24px; }
.text-section-content li { margin-bottom: 8px; }
.text-section-content img { border-radius: var(--radius); margin: 24px 0; max-width: 100%; height: auto; }
.text-section-content blockquote { border-left: 4px solid var(--color-primary); padding: 16px 24px; margin: 24px 0; background: var(--color-bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }

/* Footer social icons */
.footer-social a i { font-size: 15px; }
.footer-social .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Search no results */
.search-no-results { text-align: center; padding: 48px 0; }
.search-no-results p { font-size: 1.1rem; color: var(--color-text-light); margin-bottom: 24px; }

/* Body scroll lock (mobile menu) */
body.overflow-hidden { overflow: hidden; }

/* Focus-visible — WCAG 2.1 AA compliance */
a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 2px; }
.gallery-item:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.back-to-top:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.card-link:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.blog-card-link:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: var(--radius); }

/* Gallery hover overlay */
.gallery-item { position: relative; }
.gallery-item::after {
    content: '\f00e'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(var(--color-secondary-rgb), .4);
    color: #fff; font-size: 24px;
    opacity: 0; transition: opacity var(--transition);
    border-radius: var(--radius);
}
.gallery-item:hover::after { opacity: 1; }

/* Map section (flex content) */
.map-section .container { text-align: center; }
.map-wrapper iframe { border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* CF7 form states */
.wpcf7 .wpcf7-not-valid { border-color: var(--color-error) !important; }
.wpcf7 .wpcf7-not-valid:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.15); }
.wpcf7 .wpcf7-response-output { border-radius: var(--radius); padding: 16px 20px; font-size: 14px; margin-top: 16px; }
.wpcf7 .wpcf7-mail-sent-ok, .wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ok { border-color: var(--color-success); color: var(--color-success-dark); background: var(--color-success-bg); }
.wpcf7 .wpcf7-validation-errors { border-color: var(--color-error); color: var(--color-error-dark); background: var(--color-error-bg); }
.wpcf7 label { display: block; font-size: 14px; font-weight: 600; color: var(--color-text); margin-bottom: 6px; }
/* Webhook sync test — 2026-04-08T15:31:50Z */

/* Card clickable — toute la carte est un lien */
a.card-clickable {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
a.card-clickable:hover { text-decoration: none; color: inherit; }
a.card-clickable .card-link { color: var(--color-primary); }
a.card-clickable:hover .card-link { color: var(--color-primary-dark); }

/* Nested sub-menus — open to the right */
.nav-menu li .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    transform: translateX(8px);
    margin-top: -8px;
}
.nav-menu li .sub-menu li:hover > .sub-menu {
    opacity: 1; visibility: visible; transform: translateX(0);
}
/* Chevron right for nested dropdown parent */
.nav-menu .sub-menu li.menu-item-has-children > a::after {
    display: block !important;
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-50%) rotate(-45deg);
    background: none;
    left: auto;
    bottom: auto;
}
/* Header items vertical alignment */
.nav-menu > li > a {
    display: flex;
    align-items: center;
    text-align: center;
    min-height: 60px;
}

/* ============================================
   SFSCMFCO DESIGN ENHANCEMENTS
   ============================================ */

/* Hero — overlay teinté primaire + touche d'accent */
.hero-overlay { background: linear-gradient(135deg, rgba(var(--color-secondary-rgb),0.82) 0%, rgba(var(--color-primary-rgb),0.55) 55%, rgba(var(--color-accent-rgb),0.42) 100%); }

/* Section badges — SFSCMFCO teal style */
.section-badge {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
}

/* Cards — refined hover */
.card { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
a.card-clickable:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* About section — gradient accent line */
.about-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    margin-top: 16px;
    border-radius: 2px;
}

/* Stats counter — SFSCMFCO color */
.stat-number { 
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* CTA banner — dégradé primaire + accent */
.cta-banner { position: relative; overflow: hidden; }
.cta-overlay { background: linear-gradient(135deg, rgba(var(--color-secondary-rgb),0.90) 0%, rgba(var(--color-primary-rgb),0.82) 45%, rgba(var(--color-accent-rgb),0.72) 100%); }
.cta-banner .btn-primary { background: #fff; color: var(--color-primary); position: relative; z-index: 1; }
.cta-banner .btn-primary:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* Section text_image — better layout */
.text-image-section .container { gap: 48px; }

/* Team members grid */
.team-member { text-align: center; }
.team-member img { border-radius: 50%; width: 120px; height: 120px; object-fit: cover; border: 3px solid var(--color-primary-light); }

/* FAQ — refined accordion */
.faq-item { border-left: 3px solid var(--color-primary); }
.faq-item[open] { border-left-color: var(--color-accent); }

/* Page hero — gradient overlay (CSS vars only) */
.page-hero .hero-overlay {
    background: linear-gradient(135deg, rgba(var(--color-secondary-rgb),0.80) 0%, rgba(var(--color-primary-rgb),0.55) 100%);
}

/* Congress section on homepage */
.congres-section .card img { height: 200px; object-fit: cover; }
.videos-section .card img { height: 180px; object-fit: cover; }

/* --- Partners grid (flex layout "partners_grid") — source unique CPT partenaire --- */
.partners-grid-section { background: var(--color-bg-alt); padding: 80px 0; }
.partners-grid { display: grid; gap: 20px; margin-top: 40px; }
.partners-grid.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.partners-grid.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.partners-grid.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.partners-grid.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
.partner-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; padding: 24px 16px; background: #fff;
    border-radius: var(--radius-sm); box-shadow: 0 4px 16px rgba(var(--color-secondary-rgb),.06);
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none; color: var(--color-text);
    min-height: 160px;
}
a.partner-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(var(--color-secondary-rgb),.14); }
.partner-card-logo { max-width: 100%; max-height: 80px; width: auto; object-fit: contain; filter: grayscale(30%); transition: filter var(--transition); }
.partner-card:hover .partner-card-logo { filter: grayscale(0%); }
.partner-card-name { font-size: .85rem; font-weight: 600; text-align: center; color: var(--color-text-muted); line-height: 1.3; }
@media (max-width: 960px) {
    .partners-grid.grid-cols-5, .partners-grid.grid-cols-6 { grid-template-columns: repeat(3, 1fr); }
    .partners-grid.grid-cols-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .partners-grid.grid-cols-3, .partners-grid.grid-cols-4,
    .partners-grid.grid-cols-5, .partners-grid.grid-cols-6 { grid-template-columns: repeat(2, 1fr); }
    .partner-card { padding: 16px 10px; min-height: 120px; }
    .partner-card-logo { max-height: 56px; }
}

/* ============================================
   FUITEO — Audit UX 2e passe (Agent 9)
   Polish Framer-style, anti-orphelins, mobile respiration
   ============================================ */

/* 1. Anti-"?" orphelin : text-wrap balance sur les grands titres
   + hero-content plus large pour laisser respirer */
.hero-content h1,
.page-hero .hero-content h1,
.cta-content h2,
.section-title {
    text-wrap: balance;
}
.cta-content {
    max-width: 780px;
}

/* 2. Hero homepage : plus de respiration desktop + mobile, boutons mieux espaces */
.hero-content { padding: 32px; }
.hero-buttons { gap: 20px; }
@media (max-width: 768px) {
    .hero-content { padding: 24px 20px; }
    .hero-buttons { gap: 14px; width: 100%; }
    .hero-buttons .btn { flex: 1 1 auto; justify-content: center; min-height: 48px; }
}

/* 3. Nav mobile : eviter que le menu burger touche le bord droit */
@media (max-width: 960px) {
    .nav-container { padding: 0 20px; }
}

/* 4. Cards Framer-polish : ombres colorees subtiles + transition smoother */
.services-grid-tall .card {
    box-shadow: 0 6px 24px -12px rgba(var(--color-primary-rgb), .18),
                0 2px 8px -2px rgba(15, 23, 42, .06);
    transition: box-shadow .5s cubic-bezier(.22,1,.36,1),
                transform .5s cubic-bezier(.22,1,.36,1);
}
.services-grid-tall a.card-clickable:hover {
    box-shadow: 0 24px 56px -20px rgba(var(--color-primary-rgb), .28),
                0 8px 24px -8px rgba(var(--color-accent-rgb), .15);
    transform: translateY(-6px);
}

/* 5. Card icon badge : ombre plus accent pour effet Framer premium */
.card-icon-badge {
    box-shadow: 0 12px 28px -10px rgba(var(--color-accent-rgb), .45),
                0 4px 12px -4px rgba(var(--color-primary-rgb), .25);
}

/* 6. Buttons Framer polish : transition courbee + lift subtil */
.btn {
    transition: background-color .3s cubic-bezier(.4,0,.2,1),
                border-color .3s cubic-bezier(.4,0,.2,1),
                color .3s cubic-bezier(.4,0,.2,1),
                transform .4s cubic-bezier(.22,1,.36,1),
                box-shadow .4s cubic-bezier(.22,1,.36,1);
    min-height: 44px;
}
.btn-primary:hover {
    box-shadow: 0 12px 28px -10px rgba(var(--color-primary-rgb), .45);
}
.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.85);
}
.btn-secondary:hover {
    background: rgba(255,255,255,.12);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

/* 7. CTA banner : boutons plus impactants sur fond colore */
.cta-banner .btn-primary {
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 16px 40px -12px rgba(0,0,0,.3);
}
.cta-banner .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px -12px rgba(var(--color-accent-rgb), .5);
}

/* 8. FAQ Framer polish : radius plus doux + hover accent rose sur summary */
.faq-item {
    border: 1px solid var(--color-border);
    border-left-width: 3px;
    transition: border-color .3s ease, box-shadow .4s cubic-bezier(.22,1,.36,1), transform .3s ease;
}
.faq-item:hover { border-color: rgba(var(--color-accent-rgb), .35); }
.faq-item summary:hover { color: var(--color-primary); }

/* 9. Section padding plus genereux sur desktop (Framer-style breathing room) */
@media (min-width: 1025px) {
    .section { padding: 112px 0; }
    .services-section { padding: 112px 0; }
}

/* 10. Testimonials : hover rose accent + padding + line-height */
.testimonial-card {
    border-left-color: var(--color-primary);
    transition: border-left-color .3s ease, box-shadow .4s cubic-bezier(.22,1,.36,1), transform .3s ease;
}
.testimonial-card:hover {
    border-left-color: var(--color-accent);
    transform: translateY(-3px);
}

/* 11. Section-badge : plus doux (moins "criard"), texte rose/teal plus premium */
.section-badge {
    background: rgba(var(--color-accent-rgb), .10);
    color: var(--color-primary);
    border: 1px solid rgba(var(--color-accent-rgb), .25);
    padding: 7px 18px;
    font-size: 11px;
    letter-spacing: .14em;
    box-shadow: 0 1px 2px rgba(0,0,0,.02);
}
/* Dans les sections sur fond sombre, garder l'effet gradient */
.cta-banner .section-badge,
.numbers-primary .section-badge,
.numbers-dark .section-badge,
.hero .section-badge,
.page-hero .section-badge {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: rgba(255,255,255,.18);
}

/* 12. Titres h2/h3 : meilleur tracking mobile (anti-crunch) */
@media (max-width: 768px) {
    h1, h2, h3 { letter-spacing: -.01em; }
    h1 { line-height: 1.2; }
    h2 { line-height: 1.25; }
}

/* 13. Page hero : overlay plus doux + contenu plus lisible */
.page-hero .hero-content h1 { text-shadow: 0 2px 16px rgba(0,0,0,.3); }

/* 14. Image-stat-badge : ombre plus subtile (Framer premium) */
.image-stat-badge {
    box-shadow: 0 20px 48px -16px rgba(15,23,42,.22),
                0 6px 16px -6px rgba(var(--color-accent-rgb), .22);
}

/* 15. Smooth scroll sur focus (accessibilite) */
:focus-visible { scroll-margin-top: calc(var(--header-height) + 24px); }

/* 16. Form inputs : focus state rose accent (Framer polish) */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), .12);
    outline: none;
}

/* 17. Back-to-top : touche d'accent rose au hover */
.back-to-top {
    background: var(--color-primary);
    box-shadow: 0 12px 28px -10px rgba(var(--color-primary-rgb), .45);
}
.back-to-top:hover {
    background: var(--color-accent);
    box-shadow: 0 16px 32px -10px rgba(var(--color-accent-rgb), .55);
    transform: translateY(-3px);
}

/* 18. Mobile : hero min-height plus contenu (eviter d'ecraser le texte) */
@media (max-width: 768px) {
    .hero { min-height: 68vh; padding: 32px 0; }
    .hero-subtitle { font-size: 15px; line-height: 1.65; }
}

/* 19. Nav CTA : assurer que le bouton "Nous contacter" ne touche pas le bord */
.nav-container { padding-right: 40px; }
@media (max-width: 960px) { .nav-container { padding: 0 20px; } }
@media (min-width: 1500px) { .nav-container { padding: 0 40px; } }

/* 20. Footer : meilleur rhythm + hover rose accent sur liens */
.footer-menu li a { transition: color .3s ease, padding-left .3s ease; }
.footer-menu li a:hover { color: #fff; padding-left: 4px; }
.footer-contact a:hover { color: var(--color-accent); }

/* 21. Card hover : scale subtil de l'image (Framer micro-interaction) */
.services-grid-tall .card img {
    transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.services-grid-tall a.card-clickable:hover img {
    transform: scale(1.04);
}
.services-grid-tall .card { overflow: hidden; }
/* Mais le badge icon doit rester visible (position absolute), donc overflow visible sur body */
.services-grid-tall .card-body { overflow: visible; }
