/* ================================
   MENTALYSIA - DESIGN PREMIUM
   Design moderne, épuré et professionnel
   ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette raffinée et apaisante */
    --color-primary: #2C3E50;
    --color-primary-light: #34495E;
    --color-primary-dark: #1A252F;
    
    --color-accent: #C9A882;
    --color-accent-light: #E5D3B8;
    --color-accent-dark: #A88B6D;
    
    --color-success: #6B9080;
    --color-success-light: #E8F0ED;
    
    --color-bg: #FFFFFF;
    --color-bg-alt: #F9F7F4;
    --color-bg-section: #FDFCFB;
    
    --color-text: #2C2823;
    --color-text-light: #5A5550;
    --color-text-muted: #9B8E83;
    
    --color-border: #E8E3DD;
    --color-shadow: rgba(44, 40, 35, 0.08);
    
    /* Typographie */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px var(--color-shadow);
    --shadow-md: 0 4px 20px var(--color-shadow);
    --shadow-lg: 0 8px 40px var(--color-shadow);
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ================================
   TYPOGRAPHIE PREMIUM
   ================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(2.75rem, 6vw, 5rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 500;
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 500;
}

p {
    margin-bottom: var(--space-md);
    color: var(--color-text-light);
    font-size: 1.0625rem;
    line-height: 1.8;
}

.lead {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.7;
    color: var(--color-text-light);
}

/* ================================
   HEADER - NAVIGATION MODERNE
   ================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: var(--transition);
}

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

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

.nav a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

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

.nav a:hover {
    color: var(--color-accent);
}

.nav a:hover::after {
    width: 100%;
}

/* ================================
   HERO SECTION - IMPACT VISUEL
   ================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-section) 0%, var(--color-bg-alt) 100%);
    padding: var(--space-2xl) 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, var(--color-accent-light) 0%, transparent 70%);
    opacity: 0.15;
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    margin-bottom: var(--space-lg);
    color: var(--color-primary);
}

.hero .lead {
    max-width: 700px;
    margin: 0 auto var(--space-xl) auto;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================
   BOUTONS MODERNES
   ================================ */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    box-shadow: 0 6px 24px rgba(44, 62, 80, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-bg-alt);
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--color-accent);
    color: white;
    box-shadow: 0 4px 16px rgba(201, 168, 130, 0.3);
}

.btn-accent:hover {
    background-color: var(--color-accent-dark);
    box-shadow: 0 6px 24px rgba(201, 168, 130, 0.4);
    transform: translateY(-2px);
}

/* ================================
   SECTIONS STANDARD
   ================================ */

.section {
    padding: var(--space-2xl) 2rem;
    position: relative;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.section-primary {
    background-color: var(--color-primary);
    color: white;
}

.section-primary h2,
.section-primary h3,
.section-primary p {
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-xl) auto;
}

.section-subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

/* ================================
   CARTES PRODUITS PREMIUM
   ================================ */

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: var(--space-xl);
}

.offer-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--color-border);
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.offer-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-md);
}

.offer-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.offer-title {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
}

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

.offer-description {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.offer-features {
    list-style: none;
    margin-bottom: var(--space-lg);
    flex-grow: 1;
}

.offer-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--color-text-light);
    border-bottom: 1px solid rgba(232, 227, 221, 0.5);
}

.offer-features li:last-child {
    border-bottom: none;
}

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

.offer-note {
    background-color: var(--color-success-light);
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.offer-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.offer-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

/* ================================
   CARTES TÉMOIGNAGES
   ================================ */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: var(--space-xl);
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--color-accent);
}

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

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

.testimonial-author {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9375rem;
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ================================
   FOOTER MODERNE
   ================================ */

.footer {
    background-color: var(--color-primary);
    color: white;
    padding: var(--space-2xl) 2rem var(--space-lg) 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-section h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9375rem;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--color-accent-light);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* ================================
   ANIMATIONS
   ================================ */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* Animation classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

.scale-in {
    animation: scaleIn 0.5s ease-out;
}

/* Stagger animations */
.offer-card {
    animation: slideInUp 0.6s ease-out;
}

.offer-card:nth-child(1) {
    animation-delay: 0.1s;
}

.offer-card:nth-child(2) {
    animation-delay: 0.2s;
}

.offer-card:nth-child(3) {
    animation-delay: 0.3s;
}

.testimonial-card {
    animation: slideInUp 0.6s ease-out;
}

.testimonial-card:nth-child(1) {
    animation-delay: 0.1s;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 768px) {
    .header-content {
        padding: 1rem 1.5rem;
    }
    
    .nav {
        gap: 1.5rem;
    }
    
    .hero {
        min-height: auto;
        padding: calc(var(--space-2xl) + 60px) 1.5rem var(--space-2xl) 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .section {
        padding: var(--space-xl) 1.5rem;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .offer-card {
        padding: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .nav a {
        font-size: 0.875rem;
    }
    
    .section {
        padding: var(--space-lg) 1rem;
    }
    
    .offer-card {
        padding: 1.5rem;
    }
}

/* ================================
   UTILITAIRES
   ================================ */

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--color-text-muted);
}

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
