/**
 * Apermis Theme v2 — Components
 * Header, hero, trust bar, offers, steps, comparatif, CTA, two-col,
 * testimonials, FAQ, footer
 * Extracted from prototype style.css (2026-05-03)
 */

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    box-shadow: var(--shadow);
}

.site-header.scrolled .header-logo {
    color: var(--text);
}

.site-header.scrolled .nav-link {
    color: var(--text);
}

.site-header.scrolled .nav-link:hover {
    color: var(--primary);
}

.site-header.scrolled .header-cta .btn--white {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
}

.header-logo span {
    color: var(--accent);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: rgba(255,255,255,0.9);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
}

/* Primary menu (wp_nav_menu output) */
.primary-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu a {
    color: rgba(255,255,255,0.9);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.primary-menu a:hover {
    color: var(--text-white);
}

.site-header.scrolled .primary-menu a {
    color: var(--text);
}

.site-header.scrolled .primary-menu a:hover {
    color: var(--primary);
}

/* Logo fallback text */
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.logo-word {
    color: var(--text-white);
}

.logo-word-accent {
    color: var(--accent);
}

.site-header.scrolled .logo-word {
    color: var(--text);
}

/* Toggle lines (hamburger) */
.toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition);
}

.site-header.scrolled .toggle-line {
    background: var(--text);
}

/* Mobile menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition);
}

.site-header.scrolled .mobile-toggle span {
    background: var(--text);
}

.site-content {
    min-height: 60vh;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #1a237e 100%);
    overflow: hidden;
    padding: 8rem 1.5rem 5rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(37,99,235,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: var(--text-white);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-full);
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

.hero-scroll-icon {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    position: relative;
}

.hero-scroll-icon::after {
    content: '';
    width: 3px;
    height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDot 2s ease-in-out infinite;
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
    background: var(--bg);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
}

.trust-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.trust-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.trust-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================
   OFFERS CARDS
   ============================================ */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.offer-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.offer-card--featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.offer-card--featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.offer-badge {
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--accent);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 2.5rem;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offer-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.offer-card h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.offer-price {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.offer-price-suffix {
    font-size: 1rem;
    color: var(--text-light);
    font-family: var(--font-body);
}

.offer-compare {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.offer-features {
    text-align: left;
    margin-bottom: 2rem;
}

.offer-features li {
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.offer-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

/* Offers quick pricing grid */
.offers-quick {
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.offers-quick h3 {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.offers-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.offers-quick-item {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.offers-quick-nom {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text);
}

.offers-quick-desc {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.5;
}

.offers-quick-prix {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0.25rem;
}

/* ============================================
   STEPS
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 3rem;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-light), var(--primary), var(--primary-light));
    z-index: 0;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.step-card h3 {
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* ============================================
   COMPARATIF
   ============================================ */
.comparatif {
    background: var(--bg-alt);
}

.comparatif-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.comparatif-col {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
}

.comparatif-col--apermis {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.comparatif-col--apermis::before {
    content: '★ RECOMMANDÉ';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: var(--text-white);
    text-align: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.comparatif-col--apermis {
    padding-top: 3.5rem;
}

.comparatif-col h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.comparatif-col .comp-subtitle {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.comp-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.comp-row:last-child {
    border-bottom: none;
}

.comp-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.comp-value {
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: right;
}

.comp-value--good {
    color: var(--success);
}

.comp-value--bad {
    color: #ef4444;
}

/* ============================================
   CTA SECTION (blue gradient)
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-section h2 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255,255,255,0.85);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-section .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.cta-note {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

/* ============================================
   TWO COLUMNS
   ============================================ */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.two-col--reverse {
    direction: rtl;
}

.two-col--reverse > * {
    direction: ltr;
}

.two-col-content h2 {
    margin-bottom: 1.5rem;
}

.two-col-content p {
    color: var(--text-light);
    font-size: 1.0625rem;
    margin-bottom: 1.5rem;
}

.two-col-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-box {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-light), #ede9fe);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 4rem;
}

.visual-box span {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.feature-list {
    margin: 1.5rem 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    font-size: 1rem;
}

.feature-check {
    width: 24px;
    height: 24px;
    background: rgba(16,185,129,0.1);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.testimonial-location {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-item.open {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    font-family: var(--font-body);
    text-align: left;
    gap: 1rem;
}

.faq-toggle {
    width: 28px;
    height: 28px;
    background: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-item.open .faq-toggle {
    background: var(--primary);
    color: var(--text-white);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-top: 1rem;
}

.footer-brand .footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
}

.footer-brand .footer-logo span {
    color: var(--accent);
}

.footer-col h4 {
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--text-white);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    font-size: 1.125rem;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--text-white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 0;
    font-size: 0.8125rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--text-white);
}

.footer-seo {
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
}

/* Footer widgets (dynamic sidebars) */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col-1,
.footer-col-2,
.footer-col-3 {
    /* Inherits .footer-col styles above */
}

/* Footer menu (wp_nav_menu output) */
.footer-menu {
    margin-bottom: 1rem;
}

.footer-menu-list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu-list a {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-menu-list a:hover {
    color: var(--text-white);
}

/* Footer copyright */
.footer-copyright {
    color: rgba(255,255,255,0.5);
    font-size: 0.8125rem;
}

/* ============================================
   FOOTER — ajouts 2026-05-04 (nouveau footer statique)
   ============================================ */
.footer-phone {
    margin-top: 1rem;
    font-size: 1.05rem;
}
.footer-phone a {
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition);
}
.footer-phone a:hover {
    color: var(--accent);
}

.footer-legal {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.55);
    font-size: 0.8125rem;
    line-height: 1.6;
}
.footer-legal p {
    margin: 0;
    max-width: 72rem;
}

.footer-bottom .footer-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}
.footer-bottom .footer-sep {
    color: rgba(255,255,255,0.25);
}

/* Responsive footer */
@media (max-width: 900px) {
    .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}
@media (max-width: 560px) {
    .site-footer .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   Sous-menu déroulant (Candidat libre ▾) — ajout 2026-06-15
   CSS pur : hover/focus au desktop, déplié indenté en mobile. Pas de JS.
   ============================================ */
.primary-menu .menu-item-has-children {
	position: relative;
}
.primary-menu .menu-item-has-children > a::after {
	content: " \25BE"; /* ▾ */
	font-size: .8em;
	opacity: .85;
}
.primary-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	list-style: none;
	margin: 0;
	padding: .4rem 0;
	background: #fff;
	border-radius: var(--radius, 12px);
	box-shadow: var(--shadow-xl, 0 20px 40px rgba(0,0,0,.15));
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: var(--transition, .2s ease);
	z-index: 200;
}
.primary-menu .menu-item-has-children:hover > .sub-menu,
.primary-menu .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.primary-menu .sub-menu li {
	margin: 0;
}
.primary-menu .sub-menu a {
	display: block;
	padding: .55rem 1.1rem;
	color: var(--text, #1a1a2e) !important;
	white-space: nowrap;
	font-size: .9375rem;
}
.primary-menu .sub-menu a:hover {
	background: var(--primary-light, #dbeafe);
	color: var(--primary, #2563eb) !important;
}

/* Mobile (≤900px) : le menu devient un panneau vertical → sous-menu déplié indenté. */
@media (max-width: 900px) {
	.header-nav .primary-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		background: transparent;
		min-width: 0;
		padding: .25rem 0 0 1.1rem;
		border-left: 2px solid var(--primary-light, #dbeafe);
	}
	.header-nav .primary-menu .sub-menu a {
		color: var(--text, #1a1a2e) !important;
		padding: .35rem 0;
		font-size: 1rem;
	}
}

/* ============================================
   Pages intérieures de TEXTE — offset header minimal (maj 2026-06-15)
   Cible body.page SAUF le template Tarifs/Offres (hero plein écran = traité
   comme l'accueil : header transparent au-dessus du hero, padding-top 0).
   L'accueil (body.home) n'est jamais touché.
   Décalage = HAUTEUR DU HEADER uniquement (plus de marge blanche en trop).
   ============================================ */
:root {
	--header-h: 81px;
}

/* Header opaque sur les pages de texte (texte blanc sinon invisible sur fond clair) */
body.page:not(.page-template-template-tarifs-offres) .site-header {
	background: rgba(255, 255, 255, 0.98);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	box-shadow: var(--shadow);
}
body.page:not(.page-template-template-tarifs-offres) .site-header .header-logo,
body.page:not(.page-template-template-tarifs-offres) .site-header .logo-text,
body.page:not(.page-template-template-tarifs-offres) .site-header .logo-word,
body.page:not(.page-template-template-tarifs-offres) .site-header .nav-link,
body.page:not(.page-template-template-tarifs-offres) .site-header .primary-menu a {
	color: var(--text);
}
body.page:not(.page-template-template-tarifs-offres) .site-header .nav-link:hover,
body.page:not(.page-template-template-tarifs-offres) .site-header .primary-menu a:hover {
	color: var(--primary);
}
body.page:not(.page-template-template-tarifs-offres) .site-header .toggle-line,
body.page:not(.page-template-template-tarifs-offres) .site-header .mobile-toggle span {
	background: var(--text);
}

/* Décalage = hauteur du header UNIQUEMENT (suppression des 2.5rem en trop) */
body.page:not(.page-template-template-tarifs-offres) .site-content {
	padding-top: var(--header-h);
	padding-bottom: 3.5rem;
}

/* Titre aéré + typo de marque */
body.page:not(.page-template-template-tarifs-offres) .entry-header {
	max-width: 750px;
	margin: 0 auto 0.5rem;
	padding: 0 1.5rem;
	text-align: center;
}
body.page:not(.page-template-template-tarifs-offres) .entry-title {
	font-family: var(--font-heading);
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	line-height: 1.2;
	color: var(--text);
	margin: 0;
}
body.page:not(.page-template-template-tarifs-offres) .entry-content {
	padding-top: 1.25rem;
}
