/* ============================================
   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 — SFSCMFCO palette */
    --color-primary: #1b8cae;
    --color-primary-rgb: 27, 140, 174;  /* MÊME couleur en RGB — pour les rgba() */
    --color-primary-dark: #01496c;
    --color-primary-light: rgba(var(--color-primary-rgb), .08);
    --color-secondary: #070c19;
    --color-secondary-rgb: 7, 12, 25;
    --color-accent: #26b0d5;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-bg: #f4f4f4;
    --color-bg-alt: #f8fafc;
    --color-border: #b8b7b7;

    /* Couleurs additionnelles SFSCMFCO */
    --color-highlight: #99dcea;
    --color-red: #e94d33;
    --color-turquoise: #19BECE;

    /* Typo — Gotham & Apercu Pro (self-hosted) + Google fallbacks */
    --font-heading: 'Gotham', 'Playfair Display', sans-serif;
    --font-body: 'Apercu Pro', 'Lato', 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: 700;
    line-height: 1.2;
    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); }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

/* ============================================
   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,.95);
    backdrop-filter: blur(12px);
    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;
}
.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: 40px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; }
.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(32px);
    transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger children (cards, stats, faq items) */
.reveal .card,
.reveal .faq-item,
.reveal .stat,
.reveal .testimonial-card,
.reveal .team-member {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1);
}
.reveal.visible .card,
.reveal.visible .faq-item,
.reveal.visible .stat,
.reveal.visible .testimonial-card,
.reveal.visible .team-member {
    opacity: 1;
    transform: translateY(0);
}

/* 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 {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .marquee-track { animation: none !important; }
    .stat-number { transition: none !important; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1280px) {
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .services-grid-tall .card img { height: 240px; }
}
@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: 72px 0; }
    .services-section .section-subtitle { margin-bottom: 40px; }
    .services-grid-tall .card img { height: 220px; }
    .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; border-top: 1px solid var(--color-border);
    }
    .nav-menu.active ~ .nav-mobile-cta {
        display: flex;
    }
    /* 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: 220px; }
    .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 h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); letter-spacing: -.02em; }
.hero-subtitle { font-size: clamp(1.05rem, 2.5vw, 1.3rem); max-width: 600px; 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 — circular, inside card-body, above title */
.card-icon-badge {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin: 0 0 20px;
    box-shadow: 0 10px 28px -12px var(--color-primary);
}
.card-icon-badge i { line-height: 1; }

/* Services section — wider, taller, portrait cards */
.services-section { padding: 112px 0; }
.services-section .section-title { margin-bottom: 14px; }
.services-section .section-subtitle { max-width: 760px; margin: 0 auto 56px; }
.services-grid-tall .card {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.services-grid-tall .card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}
.services-grid-tall .card-body {
    padding: 28px 26px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}
.services-grid-tall .card-body h3 {
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: 12px;
    letter-spacing: -.01em;
}
.services-grid-tall .card-body .card-text,
.services-grid-tall .card-body p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--color-text-muted, #5b6472);
    margin-bottom: 18px;
}
.services-grid-tall .card-link {
    margin-top: auto;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-primary);
}
.services-grid-tall a.card-clickable:hover .card-icon-badge {
    transform: translateY(-3px);
    transition: transform var(--transition);
}

/* About / Text+Image — upgraded styling */
.about-image, .ti-image { border-radius: 16px; }
.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; }

/* 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: #ef4444 !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: #10b981; color: #065f46; background: #ecfdf5; }
.wpcf7 .wpcf7-validation-errors { border-color: #ef4444; color: #991b1b; background: #fef2f2; }
.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 — darker overlay for text readability (CSS vars only) */
.hero-overlay { background: linear-gradient(135deg, rgba(var(--color-secondary-rgb),0.85) 0%, rgba(var(--color-primary-rgb),0.55) 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 — better contrast (CSS vars only) */
.cta-banner { position: relative; overflow: hidden; }
.cta-overlay { background: linear-gradient(135deg, rgba(var(--color-secondary-rgb),0.92) 0%, rgba(var(--color-primary-rgb),0.85) 100%); }

/* 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; }
}
