/* ========================================
   DIÉTÉTIQUE SARREBOURG - ADVANCED STYLES
   ======================================== */

:root {
    --sage: #8B9D83;
    --sage-light: #C5D1BF;
    --sage-dark: #5C6B56;
    --cream: #FAF8F5;
    --cream-dark: #F0EDE8;
    --coral: #E8A598;
    --coral-light: #F5D4CE;
    --text: #3D3D3D;
    --text-light: #6B6B6B;
    --white: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
}

/* ========== GRAIN TEXTURE ========== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

/* ========== CUSTOM CURSOR ========== */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--sage);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--sage-dark);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
}

.cursor.hover {
    transform: translate(-50%, -50%) scale(1.8);
    background: rgba(139, 157, 131, 0.1);
    border-color: var(--coral);
}

@media (max-width: 992px) {
    .cursor, .cursor-dot { display: none; }
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1.2;
}

/* ========== SCROLL PROGRESS BAR ========== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--sage) 0%, var(--coral) 100%);
    z-index: 10001;
    transition: width 0.1s ease-out;
}

/* ========== GLASSMORPHISM HEADER ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(139, 157, 131, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--sage-dark);
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sage);
    transition: width 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--sage-dark);
}

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

/* ========== MENU BURGER ANIMÉ ========== */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    position: relative;
    width: 30px;
    height: 24px;
}

.menu-toggle span {
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--sage-dark);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    left: 3px;
}

.menu-toggle span:nth-child(1) { top: 3px; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { top: 19px; }

.menu-toggle.active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.active span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

/* ========== PAGE HERO ========== */
.page-hero {
    padding: 10rem 2rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(197, 209, 191, 0.3) 0%,
        rgba(250, 248, 245, 0.5) 25%,
        rgba(245, 212, 206, 0.3) 50%,
        rgba(250, 248, 245, 0.5) 75%,
        rgba(197, 209, 191, 0.3) 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.page-hero h1 span {
    color: var(--sage);
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== SCROLL REVEAL ANIMATIONS ========== */
/* Visible par défaut pour SEO et accessibilité */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 1;
    transform: none;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

/* Animations activées seulement quand JS est prêt */
body.js-ready .reveal:not(.active) {
    opacity: 0;
    transform: translateY(50px);
}

body.js-ready .reveal-left:not(.active) {
    opacity: 0;
    transform: translateX(-50px);
}

body.js-ready .reveal-right:not(.active) {
    opacity: 0;
    transform: translateX(50px);
}

body.js-ready .reveal-scale:not(.active) {
    opacity: 0;
    transform: scale(0.9);
}

/* Stagger effect */
.stagger-children > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.6s; }
.stagger-children > *:nth-child(7) { transition-delay: 0.7s; }
.stagger-children > *:nth-child(8) { transition-delay: 0.8s; }
.stagger-children > *:nth-child(9) { transition-delay: 0.9s; }

/* ========== SECTIONS ========== */
section {
    padding: 6rem 2rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(139, 157, 131, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(139, 157, 131, 0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    color: var(--sage-dark);
    border: 2px solid var(--sage);
}

.btn-secondary:hover {
    background: var(--sage-light);
    transform: translateY(-3px);
}

/* ========== 3D CARDS ========== */
.card-3d {
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--cream) 0%, rgba(250, 248, 245, 0.8) 100%);
    border-radius: 20px;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
    transform-style: preserve-3d;
    position: relative;
    border: 1px solid rgba(139, 157, 131, 0.1);
}

.card-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(139, 157, 131, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card-3d:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.08),
        0 0 40px rgba(139, 157, 131, 0.1);
}

.card-3d:hover::before {
    opacity: 1;
}

/* ========== GLASS CARDS ========== */
.card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(139, 157, 131, 0.15);
    padding: 2rem;
    transition: all 0.4s ease;
}

.card-glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ========== ICONS ========== */
.icon-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--sage-light) 0%, var(--sage) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(139, 157, 131, 0.3);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.icon-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(139, 157, 131, 0.4);
}

.icon-circle svg {
    width: 30px;
    height: 30px;
    stroke: var(--white);
}

/* ========== TIMELINE ========== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--sage), var(--coral));
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--sage);
    border-radius: 50%;
    border: 3px solid var(--cream);
    box-shadow: 0 0 0 3px var(--sage-light);
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.3);
    background: var(--coral);
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(139, 157, 131, 0.2);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--white);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--sage);
    box-shadow: 0 0 0 4px rgba(139, 157, 131, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ========== FAQ ACCORDION ========== */
.faq-item {
    background: var(--white);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid rgba(139, 157, 131, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--sage-dark);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(139, 157, 131, 0.05);
}

.faq-question svg {
    width: 24px;
    height: 24px;
    stroke: var(--sage);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========== PRICING CARDS ========== */
.pricing-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid rgba(139, 157, 131, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--sage), var(--coral));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-card.featured {
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
    color: var(--white);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-price {
    font-size: 3rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    margin: 1rem 0;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
}

/* ========== FOOTER ========== */
footer {
    background: var(--text);
    color: var(--white);
    padding: 4rem 2rem 2rem;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-social a:hover {
    background: var(--sage);
    transform: translateY(-5px) scale(1.1);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.footer-links h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--sage);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 20px;
}

.footer-links a:hover::before {
    width: 10px;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
    
    .footer-links a::before {
        display: none;
    }
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(250, 248, 245, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    section {
        padding: 4rem 1.5rem;
    }
    
    .page-hero {
        padding: 8rem 1.5rem 4rem;
    }
    
    .card-3d:hover {
        transform: translateY(-5px);
    }
}

