/* ==========================================================================
   🔮 WILFRIED MEDIUM - DESIGN SYSTEM PILIER
   Version: 2.0 | Mobile-First | Corrigé & Amélioré
   
   📚 TABLE DES MATIÈRES :
   ├── 1. DESIGN TOKENS (Variables)
   ├── 2. ANIMATIONS
   ├── 3. UTILITAIRES
   ├── 4. HERO PILIER ✅ FIX PADDING
   ├── 5. TOC NAVIGATION
   ├── 6. SECTIONS PILIER
   ├── 7. CARDS SYSTÈME
   ├── 8. IMAGE + TEXTE
   ├── 9. TIMELINE
   ├── 10. FAQ
   ├── 11. TÉMOIGNAGES ✅ GRILLE STATIQUE
   ├── 12. TARIFS ✅ NOUVEAU
   ├── 13. BOUTONS MODERNES ✅ NOUVEAU
   ├── 14. CTA SECTIONS
   ├── 15. CTA STICKY MOBILE
   ├── 16. SEO SECTION
   └── 17. RESPONSIVE & FIXES
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
    /* === ESPACEMENTS === */
    --ps-space-xs: 8px;
    --ps-space-sm: 12px;
    --ps-space-md: 16px;
    --ps-space-lg: 24px;
    --ps-space-xl: 32px;
    --ps-space-2xl: 48px;
    --ps-space-3xl: 64px;
    
    /* === ESPACEMENTS ADAPTATIFS === */
    --ps-section-padding: clamp(40px, 8vw, 100px);
    --ps-card-padding: clamp(20px, 4vw, 35px);
    --ps-container-padding: clamp(16px, 4vw, 30px);
    
    /* === TOUCH TARGETS === */
    --ps-touch-min: 48px;
    --ps-button-height: 52px;
    --ps-button-height-sm: 44px;
    
    /* === BORDER RADIUS === */
    --ps-radius-sm: 8px;
    --ps-radius-md: 12px;
    --ps-radius-lg: 16px;
    --ps-radius-xl: 20px;
    --ps-radius-pill: 999px;
    
    /* === COULEURS === */
    --ps-violet-flame: rgba(131, 14, 231, 0.4);
    --ps-violet-flame-intense: rgba(131, 14, 231, 0.7);
    --ps-gold-transmutation: rgba(255, 215, 0, 0.4);
    --ps-phoenix-shadow: 0 15px 40px rgba(131, 14, 231, 0.4), 
                         0 0 20px rgba(255, 215, 0, 0.2);
    
    /* === GLASSMORPHISM === */
    --ps-glass-light: rgba(40, 0, 68, 0.6);
    --ps-glass-medium: rgba(40, 0, 68, 0.75);
    --ps-glass-dark: rgba(27, 0, 51, 0.9);
    --ps-glass-border: rgba(131, 14, 231, 0.3);
    --ps-glass-border-hover: rgba(131, 14, 231, 0.5);
    --ps-glass-blur: 12px;
    
    /* === TYPOGRAPHIE === */
    --ps-h1-size: clamp(1.75rem, 5vw, 3.2rem);
    --ps-h2-size: clamp(1.5rem, 4vw, 2.5rem);
    --ps-h3-size: clamp(1.25rem, 3vw, 1.75rem);
    --ps-body-size: clamp(0.95rem, 2.5vw, 1.1rem);
    --ps-small-size: clamp(0.85rem, 2vw, 0.95rem);
    
    /* === TRANSITIONS === */
    --ps-transition-fast: 0.2s ease;
    --ps-transition-medium: 0.3s ease;
    --ps-transition-slow: 0.5s ease;
    --ps-transition-bounce: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* === Z-INDEX === */
    --ps-z-base: 1;
    --ps-z-sticky: 100;
    --ps-z-overlay: 500;
    --ps-z-modal: 1000;
}


/* ==========================================================================
   2. ANIMATIONS
   ========================================================================== */

@keyframes violetFlamePulse {
    0% {
        box-shadow: 0 0 15px var(--ps-violet-flame), 
                    inset 0 0 10px rgba(131, 14, 231, 0.2);
        border-color: rgba(131, 14, 231, 0.5);
    }
    50% {
        box-shadow: 0 0 30px var(--ps-violet-flame-intense), 
                    0 0 10px var(--ps-gold-transmutation),
                    inset 0 0 20px rgba(131, 14, 231, 0.4);
        border-color: var(--color-highlight); 
    }
    100% {
        box-shadow: 0 0 15px var(--ps-violet-flame), 
                    inset 0 0 10px rgba(131, 14, 231, 0.2);
        border-color: rgba(131, 14, 231, 0.5);
    }
}

@keyframes softPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeInScale {
    from { 
        opacity: 0; 
        transform: scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

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

/* Classes utilitaires animation */
.transmutation-glow {
    animation: violetFlamePulse 4s ease-in-out infinite;
}

.phoenix-hover {
    transition: all var(--ps-transition-bounce);
}

.phoenix-hover:hover {
    transform: translateY(-8px);
    border-color: var(--color-highlight);
    box-shadow: var(--ps-phoenix-shadow);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}


/* ==========================================================================
   3. UTILITAIRES
   ========================================================================== */

/* 🛡️ FIX OVERFLOW GLOBAL */
.page-pilier,
.page-pilier *,
.site-main.page-pilier {
    box-sizing: border-box;
}

.page-pilier {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Container */
.ps-container {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 var(--ps-container-padding);
}

.ps-container-narrow {
    max-width: 900px;
}

.ps-container-wide {
    max-width: 1500px;
}

/* Reveal on scroll */
.ps-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.ps-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================================
   4. HERO PILIER ✅ FIX PADDING
   ========================================================================== */

.ps-hero {
    position: relative;
    width: 100%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* ✅ FIX : Padding réduit - juste assez pour passer sous le header */
    padding: 20px 0 40px;
    margin-top: 0;
    overflow: hidden;
}

/* Background overlay */
.ps-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(27, 0, 51, 0.3) 0%,
        rgba(27, 0, 51, 0.7) 50%,
        rgba(27, 0, 51, 0.95) 100%
    );
    z-index: 1;
}

.ps-hero > * {
    position: relative;
    z-index: 2;
}

/* Layout Hero Mobile */
.ps-hero-inner {
    display: flex;
    flex-direction: column;
    gap: var(--ps-space-xl);
    max-width: 100%;
}

/* Contenu Hero */
.ps-hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--ps-space-md);
}

/* Badge */
.ps-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 8px 16px;
    border-radius: var(--ps-radius-pill);
    border: 1px solid rgba(255, 215, 0, 0.35);
    background: var(--ps-glass-dark);
    backdrop-filter: blur(var(--ps-glass-blur));
    -webkit-backdrop-filter: blur(var(--ps-glass-blur));
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.ps-hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #27c93f 40%, #154d20);
    box-shadow: 0 0 12px rgba(39, 201, 63, 0.8);
    animation: softPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

/* Titre H1 */
.ps-hero-title {
    font-family: var(--font-heading);
    font-size: var(--ps-h1-size);
    color: #ffffff;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.ps-hero-title .highlight {
    color: var(--color-accent);
    text-shadow: 0 0 28px rgba(255, 215, 0, 0.28);
}

/* Sous-titre */
.ps-hero-subtitle {
    font-size: var(--ps-body-size);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0;
    max-width: 600px;
}

.ps-hero-subtitle strong {
    color: #ffffff;
    font-weight: 600;
}

/* CTA Hero */
.ps-hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--ps-space-sm);
    margin-top: var(--ps-space-md);
}

/* Sidebar Card */
.ps-hero-sidebar {
    width: 100%;
    max-width: 100%;
}

.ps-hero-card {
    width: 100%;
    padding: var(--ps-card-padding);
    border-radius: var(--ps-radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: radial-gradient(ellipse at top, rgba(131, 14, 231, 0.15), transparent 70%),
                var(--ps-glass-dark);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

/* ✅ HERO DESKTOP */
@media (min-width: 768px) {
    .ps-hero {
        /* ✅ FIX : Plus de min-height 100vh qui force le scroll */
        min-height: auto;
        padding: 40px 0 60px;
    }
    
    .ps-hero-inner {
        display: grid;
        grid-template-columns: 1fr 400px;
        gap: 50px;
        align-items: center;
    }
    
    .ps-hero-cta {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .ps-hero-sidebar {
        display: flex;
        justify-content: flex-end;
    }
    
    .ps-hero-card {
        max-width: 400px;
    }
}

@media (min-width: 1100px) {
    .ps-hero-inner {
        grid-template-columns: 1fr 420px;
        gap: 60px;
    }
}


/* ==========================================================================
   5. TOC NAVIGATION
   ========================================================================== */

.ps-toc {
    position: sticky;
    top: 60px;
    z-index: var(--ps-z-sticky);
    background: var(--ps-glass-dark);
    backdrop-filter: blur(var(--ps-glass-blur));
    -webkit-backdrop-filter: blur(var(--ps-glass-blur));
    border-bottom: 1px solid var(--ps-glass-border);
    padding: var(--ps-space-sm) 0;
    margin-bottom: var(--ps-space-xl);
}

.ps-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--ps-container-padding);
    margin-bottom: var(--ps-space-sm);
}

.ps-toc-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-highlight);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ps-toc-subtitle {
    display: none;
}

.ps-toc-toggle {
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    min-width: var(--ps-touch-min);
    min-height: var(--ps-touch-min);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--ps-transition-fast);
}

.ps-toc.is-open .ps-toc-toggle {
    transform: rotate(180deg);
}

/* Liste scrollable */
.ps-toc-list {
    display: flex;
    gap: var(--ps-space-sm);
    padding: 0 var(--ps-container-padding);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    list-style: none;
    margin: 0;
}

.ps-toc-list::-webkit-scrollbar {
    display: none;
}

.ps-toc-item {
    flex-shrink: 0;
}

.ps-toc-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--ps-glass-medium);
    border: 1px solid var(--ps-glass-border);
    border-radius: var(--ps-radius-pill);
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--ps-small-size);
    white-space: nowrap;
    text-decoration: none;
    transition: all var(--ps-transition-fast);
    min-height: var(--ps-button-height-sm);
}

.ps-toc-link:hover,
.ps-toc-link.is-active {
    background: rgba(131, 14, 231, 0.3);
    border-color: var(--color-border);
    color: var(--color-highlight);
}

.ps-toc-number {
    font-weight: 700;
    color: var(--color-accent);
}

.ps-toc-text-desc {
    display: none;
}

/* TOC Desktop */
@media (min-width: 768px) {
    .ps-toc {
        position: relative;
        top: auto;
        background: transparent;
        backdrop-filter: none;
        border-bottom: none;
        padding: var(--ps-section-padding) 0;
    }
    
    .ps-toc-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: var(--ps-space-2xl);
    }
    
    .ps-toc-title {
        font-size: var(--ps-h2-size);
        margin-bottom: var(--ps-space-sm);
    }
    
    .ps-toc-toggle {
        display: none;
    }
    
    .ps-toc-subtitle {
        display: block;
        font-size: var(--ps-body-size);
        color: rgba(255, 255, 255, 0.75);
    }
    
    .ps-toc-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--ps-space-lg);
        overflow: visible;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .ps-toc-link {
        flex-direction: row;
        padding: var(--ps-space-lg);
        border-radius: var(--ps-radius-lg);
        background: var(--ps-glass-medium);
        min-height: auto;
        gap: var(--ps-space-md);
    }
    
    .ps-toc-link::after {
        content: '→';
        margin-left: auto;
        color: var(--color-accent);
        transition: transform var(--ps-transition-fast);
    }
    
    .ps-toc-link:hover::after {
        transform: translateX(5px);
    }
    
    .ps-toc-number {
        font-family: var(--font-heading);
        font-size: 1.5rem;
    }
    
    .ps-toc-text {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .ps-toc-text-title {
        font-family: var(--font-heading);
        font-size: 1.1rem;
        color: var(--color-highlight);
    }
    
    .ps-toc-text-desc {
        display: block;
        font-size: var(--ps-small-size);
        color: rgba(255, 255, 255, 0.7);
    }
}


/* ==========================================================================
   6. SECTIONS PILIER
   ========================================================================== */

.ps-pilier-section {
    margin: 0 var(--ps-space-md) var(--ps-space-2xl);
    padding: var(--ps-card-padding);
    border-radius: var(--ps-radius-lg);
    border: 1px solid var(--ps-glass-border);
    background: var(--ps-glass-medium);
    backdrop-filter: blur(var(--ps-glass-blur));
    -webkit-backdrop-filter: blur(var(--ps-glass-blur));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    /* ✅ FIX overflow */
    overflow: hidden;
}

.ps-section-title {
    font-family: var(--font-heading);
    font-size: var(--ps-h2-size);
    color: var(--color-highlight);
    text-align: center;
    margin: 0 0 var(--ps-space-xl) 0;
    line-height: 1.3;
}

.ps-section-intro {
    font-size: var(--ps-body-size);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto var(--ps-space-xl);
    text-align: center;
}

@media (min-width: 768px) {
    .ps-pilier-section {
        max-width: 1100px;
        margin: 0 auto var(--ps-space-3xl);
        padding: clamp(30px, 5vw, 50px);
    }
}


/* ==========================================================================
   7. CARDS SYSTÈME
   ========================================================================== */

.ps-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--ps-space-lg);
}

.ps-card {
    background: var(--ps-glass-light);
    border: 1px solid var(--ps-glass-border);
    border-radius: var(--ps-radius-lg);
    padding: var(--ps-card-padding);
    transition: all var(--ps-transition-bounce);
}

.ps-card:hover {
    border-color: var(--ps-glass-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(131, 14, 231, 0.3);
}

.ps-card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--ps-space-md);
    display: block;
}

.ps-card-title {
    font-family: var(--font-heading);
    font-size: var(--ps-h3-size);
    color: var(--color-highlight);
    margin: 0 0 var(--ps-space-sm) 0;
}

.ps-card-text {
    font-size: var(--ps-body-size);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0;
}

.ps-card-price {
    color: var(--color-accent);
    font-size: 0.95rem;
    margin: var(--ps-space-sm) 0;
    padding-top: var(--ps-space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ps-card-price strong {
    font-size: 1.3rem;
}

@media (min-width: 600px) {
    .ps-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .ps-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ps-cards-grid.ps-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Variantes Cards */
.ps-card-feature {
    border-left: 3px solid var(--color-accent);
}

.ps-card-highlight {
    background: radial-gradient(ellipse at top, rgba(131, 14, 231, 0.2), transparent 70%),
                var(--ps-glass-medium);
    border-color: var(--color-accent);
}


/* ==========================================================================
   8. IMAGE + TEXTE
   ========================================================================== */

.ps-image-text {
    display: flex;
    flex-direction: column;
    gap: var(--ps-space-xl);
}

.ps-image-text-image {
    width: 100%;
}

.ps-image-text-image img {
    width: 100%;
    height: auto;
    border-radius: var(--ps-radius-lg);
    border: 2px solid var(--ps-glass-border);
    object-fit: cover;
}

.ps-image-text-content {
    display: flex;
    flex-direction: column;
    gap: var(--ps-space-md);
}

.ps-image-text-content p {
    font-size: var(--ps-body-size);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.ps-image-text-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (min-width: 768px) {
    .ps-image-text {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--ps-space-2xl);
        align-items: center;
    }
}


/* ==========================================================================
   9. TIMELINE
   ========================================================================== */

.ps-timeline {
    position: relative;
    padding-left: 30px;
}

.ps-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-border), var(--color-accent));
}

.ps-timeline-item {
    position: relative;
    padding-bottom: var(--ps-space-xl);
}

.ps-timeline-marker {
    position: absolute;
    left: -26px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--color-accent);
    border-radius: 50%;
    border: 3px solid var(--color-bg-body);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.ps-timeline-period {
    font-size: var(--ps-small-size);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ps-timeline-title {
    font-family: var(--font-heading);
    font-size: var(--ps-h3-size);
    color: var(--color-highlight);
    margin: 0 0 var(--ps-space-sm) 0;
}

.ps-timeline-text {
    font-size: var(--ps-body-size);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0;
}


/* ==========================================================================
   10. FAQ
   ========================================================================== */

.ps-faq {
    max-width: 800px;
    margin: 0 auto;
}

.ps-faq-item {
    border: 1px solid var(--ps-glass-border);
    border-radius: var(--ps-radius-md);
    margin-bottom: var(--ps-space-md);
    background: var(--ps-glass-light);
    overflow: hidden;
    transition: border-color var(--ps-transition-fast);
}

.ps-faq-item:hover {
    border-color: var(--ps-glass-border-hover);
}

.ps-faq-item.is-active {
    border-color: var(--color-border);
}

.ps-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ps-space-md);
    padding: var(--ps-space-lg);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: var(--ps-body-size);
    font-weight: 600;
    color: var(--color-text);
    min-height: var(--ps-touch-min);
    transition: color var(--ps-transition-fast);
}

.ps-faq-question:hover {
    color: var(--color-highlight);
}

.ps-faq-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    transition: transform var(--ps-transition-fast);
    flex-shrink: 0;
}

.ps-faq-item.is-active .ps-faq-icon {
    transform: rotate(45deg);
}

.ps-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--ps-transition-bounce);
}

.ps-faq-item.is-active .ps-faq-answer {
    max-height: 500px;
}

.ps-faq-answer-content {
    padding: 0 var(--ps-space-lg) var(--ps-space-lg);
}

.ps-faq-answer-content p {
    font-size: var(--ps-body-size);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 var(--ps-space-md) 0;
}

.ps-faq-answer-content p:last-child {
    margin-bottom: 0;
}

.ps-faq-answer-content ul {
    margin: var(--ps-space-sm) 0;
    padding-left: var(--ps-space-lg);
}

.ps-faq-answer-content li {
    margin-bottom: var(--ps-space-xs);
    color: rgba(255, 255, 255, 0.85);
}

.ps-faq-answer-content a {
    color: var(--color-accent);
}


/* ==========================================================================
   11. TÉMOIGNAGES ✅ GRILLE STATIQUE (plus de carrousel bugué)
   ========================================================================== */

.ps-testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--ps-space-lg);
    margin-top: var(--ps-space-xl);
}

.ps-testimonial-card {
    background: var(--ps-glass-medium);
    backdrop-filter: blur(var(--ps-glass-blur));
    -webkit-backdrop-filter: blur(var(--ps-glass-blur));
    border: 1px solid var(--ps-glass-border);
    border-radius: var(--ps-radius-xl);
    padding: var(--ps-card-padding);
    transition: all var(--ps-transition-medium);
}

.ps-testimonial-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.3);
}

.ps-testimonial-stars {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-bottom: var(--ps-space-sm);
    letter-spacing: 2px;
}

.ps-testimonial-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--ps-body-size);
    line-height: 1.7;
    margin: 0 0 var(--ps-space-md) 0;
    font-style: italic;
}

.ps-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: var(--ps-space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ps-testimonial-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), #8b6914);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a0033;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ps-testimonial-info {
    display: flex;
    flex-direction: column;
}

.ps-testimonial-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.ps-testimonial-type {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

@media (min-width: 600px) {
    .ps-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .ps-testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ==========================================================================
   12. TARIFS ✅ NOUVEAU
   ========================================================================== */

.ps-tarifs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--ps-space-lg);
    margin-top: var(--ps-space-xl);
}

.ps-tarif-card {
    background: var(--ps-glass-medium);
    backdrop-filter: blur(var(--ps-glass-blur));
    -webkit-backdrop-filter: blur(var(--ps-glass-blur));
    border: 1px solid var(--ps-glass-border);
    border-radius: var(--ps-radius-xl);
    padding: var(--ps-card-padding);
    transition: all var(--ps-transition-medium);
}

.ps-tarif-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.ps-tarif-card-highlight {
    border-color: var(--color-accent);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%),
                var(--ps-glass-medium);
}

.ps-tarif-header {
    text-align: center;
    margin-bottom: var(--ps-space-md);
    padding-bottom: var(--ps-space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ps-tarif-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.ps-tarif-header h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
    margin: 0 0 8px 0;
}

.ps-tarif-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    color: var(--color-accent);
    padding: 4px 12px;
    border-radius: var(--ps-radius-pill);
    font-size: 0.75rem;
    margin-top: 8px;
}

.ps-tarif-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--ps-space-md) 0;
}

.ps-tarif-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ps-tarif-list li:last-child {
    border-bottom: none;
}

.ps-tarif-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.ps-tarif-price {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.1rem;
}

.ps-tarif-price small {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
}

.ps-tarif-featured {
    background: rgba(255, 215, 0, 0.1);
    margin: 0 -20px;
    padding: 12px 20px !important;
    border-radius: var(--ps-radius-sm);
}

@media (min-width: 600px) {
    .ps-tarifs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .ps-tarifs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ==========================================================================
   13. BOUTONS MODERNES ✅ NOUVEAU
   ========================================================================== */

.ps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--ps-radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--ps-transition-medium);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-height: var(--ps-touch-min);
}

.ps-btn-icon {
    font-size: 1.1em;
}

.ps-btn-arrow {
    transition: transform var(--ps-transition-fast);
}

.ps-btn:hover .ps-btn-arrow {
    transform: translateX(4px);
}

/* Primary - Gradient doré */
.ps-btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, #d4a84b 100%);
    color: #1a0033;
    border-color: var(--color-accent);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.ps-btn-primary:hover {
    background: linear-gradient(135deg, #ffe066 0%, var(--color-accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
    color: #1a0033;
}

/* Secondary - Bordure */
.ps-btn-secondary {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.ps-btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
    color: var(--color-accent);
}

/* Ghost - Subtil */
.ps-btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.ps-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Tailles */
.ps-btn-sm {
    padding: 10px 18px;
    font-size: 0.85rem;
    min-height: var(--ps-button-height-sm);
}

.ps-btn-lg {
    padding: 18px 32px;
    font-size: 1.05rem;
}

.ps-btn-full {
    width: 100%;
}

/* ✅ MOBILE : Boutons adaptés */
@media (max-width: 480px) {
    .ps-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .ps-hero-cta {
        flex-direction: column;
        gap: 12px;
    }
    
    .ps-hero-cta .ps-btn {
        width: 100%;
    }
    
    .ps-cta-final-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .ps-cta-final-buttons .ps-btn {
        width: 100%;
    }
}


/* ==========================================================================
   14. CTA SECTIONS
   ========================================================================== */

.ps-cta-block {
    text-align: center;
    padding: var(--ps-space-xl);
    background: radial-gradient(ellipse at center, rgba(131, 14, 231, 0.2), transparent 70%);
    border-radius: var(--ps-radius-lg);
    margin-top: var(--ps-space-xl);
}

.ps-cta-text {
    font-size: var(--ps-body-size);
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 var(--ps-space-lg) 0;
}

.ps-cta-inline {
    text-align: center;
    margin-top: var(--ps-space-xl);
    padding: var(--ps-space-lg);
    background: var(--ps-glass-light);
    border-radius: var(--ps-radius-lg);
    border: 1px solid var(--ps-glass-border);
}

.ps-cta-inline p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 var(--ps-space-md) 0;
}

/* CTA Final */
.ps-cta-final {
    text-align: center;
    padding: var(--ps-section-padding) var(--ps-container-padding);
    margin: var(--ps-space-2xl) var(--ps-space-md);
    background: linear-gradient(135deg, rgba(131, 14, 231, 0.3) 0%, rgba(40, 0, 68, 0.5) 100%);
    border: 2px solid var(--ps-glass-border);
    border-radius: var(--ps-radius-xl);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.ps-cta-final-icon {
    font-size: 3rem;
    margin-bottom: var(--ps-space-lg);
    display: block;
    animation: floatSubtle 3s ease-in-out infinite;
}

.ps-cta-final-title {
    font-family: var(--font-heading);
    font-size: var(--ps-h2-size);
    color: var(--color-highlight);
    margin: 0 0 var(--ps-space-md) 0;
}

.ps-cta-final-text {
    font-size: var(--ps-body-size);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto var(--ps-space-xl);
    line-height: 1.7;
}

.ps-cta-final-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--ps-space-md);
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .ps-cta-final {
        max-width: 900px;
        margin: var(--ps-space-3xl) auto;
    }
    
    .ps-cta-final-buttons {
        flex-direction: row;
        justify-content: center;
        max-width: none;
    }
}


/* ==========================================================================
   15. CTA STICKY MOBILE
   ========================================================================== */

.ps-sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--ps-z-sticky);
    padding: var(--ps-space-md);
    background: linear-gradient(180deg, transparent 0%, rgba(27, 0, 51, 0.95) 30%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(100%);
    transition: transform var(--ps-transition-medium);
}

.ps-sticky-cta.is-visible {
    transform: translateY(0);
}

.ps-sticky-cta .ps-btn {
    width: 100%;
}

@media (min-width: 768px) {
    .ps-sticky-cta {
        display: none;
    }
}


/* ==========================================================================
   16. SEO SECTION
   ========================================================================== */

.ps-seo-section {
    max-width: 900px;
    margin: var(--ps-space-2xl) auto;
    padding: var(--ps-section-padding) var(--ps-container-padding);
}

.ps-seo-content {
    font-size: var(--ps-body-size);
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
}

.ps-seo-content h2 {
    font-family: var(--font-heading);
    font-size: var(--ps-h2-size);
    color: var(--color-highlight);
    margin: var(--ps-space-2xl) 0 var(--ps-space-lg) 0;
}

.ps-seo-content h2:first-child {
    margin-top: 0;
}

.ps-seo-content p {
    margin: 0 0 var(--ps-space-lg) 0;
}

.ps-seo-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ps-seo-cta {
    text-align: center;
    margin-top: var(--ps-space-2xl);
    padding-top: var(--ps-space-xl);
    border-top: 1px solid var(--ps-glass-border);
    display: flex;
    flex-wrap: wrap;
    gap: var(--ps-space-md);
    justify-content: center;
}

/* Citation */
.ps-quote {
    background: var(--ps-glass-light);
    backdrop-filter: blur(var(--ps-glass-blur));
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--ps-radius-lg) var(--ps-radius-lg) 0;
    padding: var(--ps-space-lg);
    margin: var(--ps-space-xl) 0;
    position: relative;
}

.ps-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--color-accent);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.ps-quote p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    margin: 0;
    position: relative;
    z-index: 1;
}

.ps-quote cite {
    display: block;
    margin-top: var(--ps-space-sm);
    color: var(--color-accent);
    font-style: normal;
    font-weight: 600;
}

.ps-seo-section {
    max-width: 900px;
    margin: var(--ps-space-2xl) auto;
    /* ✅ Marge en bas avant le footer */
    margin-bottom: var(--ps-space-3xl);
    padding: var(--ps-section-padding) var(--ps-container-padding);
    
    /* ✅ Glassmorphism violet (comme les autres sections) */
    background: var(--ps-glass-medium);
    backdrop-filter: blur(var(--ps-glass-blur));
    -webkit-backdrop-filter: blur(var(--ps-glass-blur));
    
    /* ✅ Border et radius */
    border: 1px solid var(--ps-glass-border);
    border-radius: var(--ps-radius-lg);
    
    /* ✅ Shadow */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Mobile : marges latérales */
@media (max-width: 767px) {
    .ps-seo-section {
        margin-left: var(--ps-space-md);
        margin-right: var(--ps-space-md);
        /* Marge plus grande en bas sur mobile */
        margin-bottom: calc(var(--ps-space-3xl) + 20px);
    }
}

/* Desktop : marge encore plus grande avant footer */
@media (min-width: 768px) {
    .ps-seo-section {
        margin-bottom: 80px;
    }
}

@media (min-width: 1200px) {
    .ps-seo-section {
        margin-bottom: 100px;
    }
}

/* ==========================================================================
   17. RESPONSIVE & FIXES ✅
   ========================================================================== */

/* ✅ FIX: Éviter tout overflow horizontal */
@media (max-width: 767px) {
    html, body {
        overflow-x: hidden;
    }
    
    .ps-container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    /* Hero compact */
    .ps-hero {
        padding: 16px 0 32px;
    }
    
    .ps-hero-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }
    
    .ps-hero-sidebar {
        margin: 0;
    }
    
    .ps-hero-card {
        padding: var(--ps-space-md);
    }
    
    /* Sections */
    .ps-pilier-section {
        margin-left: 12px;
        margin-right: 12px;
        padding: var(--ps-space-md);
    }
    
    .ps-section-title {
        font-size: clamp(1.3rem, 5vw, 1.6rem);
    }
    
    /* CTA Final */
    .ps-cta-final {
        margin-left: 12px;
        margin-right: 12px;
        padding: var(--ps-space-xl) var(--ps-space-md);
    }
    
    .ps-cta-final-title {
        font-size: 1.4rem;
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    .ps-hero-title {
        font-size: 1.5rem;
    }
    
    .ps-btn {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    
    .ps-hero-badge {
        font-size: 9px;
        padding: 6px 12px;
    }
}


/* ==========================================================================
   FIN DU DESIGN SYSTEM PILIER v2.0
   ========================================================================== */

/* ==========================================================================
   🛠️ PATCH HERO - Fix vide desktop
   À AJOUTER à la fin de pilier-system.css ou en CSS additionnel
   ========================================================================== */

/* ==========================================================================
   FIX AGRESSIF : Supprimer tout espace avant le hero
   ========================================================================== */

/* Reset tout espace sur le body/main pour les pages pilier */
body.page-template-template-page-pilier,
body.page-template-template-page-pilier .site-main,
body.page-template-template-page-pilier #content,
body.page-template-template-page-pilier main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Le header du thème (ajuster selon ton thème) */
body.page-template-template-page-pilier .site-header,
body.page-template-template-page-pilier header.site-header,
body.page-template-template-page-pilier .elementor-location-header,
body.page-template-template-page-pilier #masthead {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

/* ==========================================================================
   HERO : Positionnement sous le header fixe
   ========================================================================== */

.ps-hero {
    /* Pas de margin-top, le padding gère l'espace du header */
    margin-top: 0 !important;
    
    /* Mobile : header ~60-70px */
    padding-top: 70px;
    padding-bottom: 40px;
    
    /* Pas de min-height qui force le scroll */
    min-height: auto !important;
}

/* Desktop */
@media (min-width: 768px) {
    .ps-hero {
        /* Header = 105px + 20px buffer */
        padding-top: 125px;
        padding-bottom: 100px;
    }
}

/* Large desktop */
@media (min-width: 1200px) {
    .ps-hero {
        padding-top: 130px;
        padding-bottom: 120px;
    }
}

/* ==========================================================================
   SI TON HEADER A UNE HAUTEUR SPÉCIFIQUE, AJUSTE ICI
   ========================================================================== */

/* Si header = 60px */
/*
.ps-hero {
    padding-top: 60px;
}
*/

/* Si header = 80px */
/*
.ps-hero {
    padding-top: 80px;
}
*/

/* Si header = 100px */
/*
.ps-hero {
    padding-top: 100px;
}
*/

/* ==========================================================================
   ALTERNATIVE : Si le header n'est PAS fixe
   Dans ce cas, le hero ne devrait avoir aucun padding-top
   ========================================================================== */

/*
body.page-template-template-page-pilier .ps-hero {
    padding-top: 20px;
}
*/

/* ==========================================================================
   DEBUG : Décommenter pour voir les zones
   ========================================================================== */

/*
.ps-hero {
    background: rgba(255, 0, 0, 0.2) !important;
}

body.page-template-template-page-pilier .site-header {
    background: rgba(0, 255, 0, 0.3) !important;
}
*/