/* ==========================================
   LUVIA - Custom Styles
   Palette: #c8bcac (main), #ededed (bg), #64513f (accent), #a2c0cc, #5a899b
   Style: Oriental / Boho / Organique
   ========================================== */

/* ==========================================
   CSS Variables
   ========================================== */
:root {
    --color-main: #c8bcac;
    --color-bg: #ededed;
    --color-accent: #64513f;
    --color-blue-light: #a2c0cc;
    --color-blue: #5a899b;
    --color-white: #ffffff;
    --color-text: #4a4a4a;
    --color-text-light: #6b6b6b;
}

/* ==========================================
   Base Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    letter-spacing: 0.01em;
}

/* ==========================================
   Typography
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    line-height: 1.3;
}

/* ==========================================
   Organic Shapes & Decorations
   ========================================== */
.wave-divider {
    width: 100%;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23ffffff' d='M0,50 C360,100 720,0 1080,50 C1260,75 1350,75 1440,50 L1440,100 L0,100 Z'/%3E%3C/svg%3E") no-repeat center;
    background-size: cover;
}

.wave-divider-reverse {
    width: 100%;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23ffffff' d='M0,50 C360,0 720,100 1080,50 C1260,25 1350,25 1440,50 L1440,0 L0,0 Z'/%3E%3C/svg%3E") no-repeat center;
    background-size: cover;
}

.blob-shape {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.organic-border {
    border-radius: 30px 60px 30px 60px;
}

/* ==========================================
   Hero Section with Background Image
   ========================================== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/arrière%20plan%20site.%20.png');
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: -5;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.08);
    z-index: -4;
}

.hero-blob {
    opacity: 0;
}

/* Hero text styling for visibility */
.hero-text-glow {
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.4), 0 0 20px rgba(255, 255, 255, 0.2);
}

.hero-subtitle-glow {
    text-shadow: 0 1px 6px rgba(255, 255, 255, 0.5);
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes wave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

@keyframes pulse-soft {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-wave {
    animation: wave 3s ease-in-out infinite;
}

/* Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ==========================================
   Scroll Animations
   ========================================== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================
   Custom Scrollbar
   ========================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-main);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-blue);
}

/* ==========================================
   Buttons
   ========================================== */
.btn-primary {
    background-color: var(--color-main);
    color: var(--color-accent);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(200, 188, 172, 0.4);
}

.btn-primary:hover {
    background-color: #b8a99a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 188, 172, 0.5);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--color-accent);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    backdrop-filter: blur(5px);
}

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

/* ==========================================
   Cards
   ========================================== */
.card {
    background: var(--color-white);
    border-radius: 30px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.card-organic {
    border-radius: 40px 20px 40px 20px;
}

/* ==========================================
   Testimonial Cards
   ========================================== */
.testimonial-card {
    background: var(--color-white);
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(162, 192, 204, 0.2);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(200, 188, 172, 0.25);
    border-color: var(--color-main);
}

/* ==========================================
   Offer Cards
   ========================================== */
.offer-card {
    background: var(--color-white);
    border-radius: 40px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.offer-card:hover {
    border-color: var(--color-main);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.offer-card.featured {
    border: 3px solid var(--color-main);
    transform: scale(1.02);
}

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

.offer-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-blue-light);
    color: var(--color-accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.price-tag {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem;
    color: var(--color-accent);
    font-weight: 500;
}

.price-old {
    text-decoration: line-through;
    color: var(--color-text-light);
    font-size: 1rem;
    margin-left: 8px;
}

/* ==========================================
   FAQ Accordion
   ========================================== */
.faq-item {
    background: var(--color-white);
    border-radius: 25px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-toggle {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: left;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    color: var(--color-text);
    transition: all 0.3s ease;
}

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

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    color: var(--color-main);
}

.faq-icon.rotated {
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 2rem 1.5rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.faq-content.hidden {
    display: none;
}

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

.form-label {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--color-main);
    border-radius: 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-blue-light);
    box-shadow: 0 0 0 4px rgba(162, 192, 204, 0.2);
}

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

/* Radio & Checkbox Cards */
.option-card {
    display: block;
    background: var(--color-white);
    border: 2px solid var(--color-main);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: var(--color-blue-light);
    background: rgba(162, 192, 204, 0.1);
}

.option-card.selected {
    border-color: var(--color-blue-light);
    background: rgba(162, 192, 204, 0.2);
    box-shadow: 0 0 0 3px rgba(162, 192, 204, 0.3);
}

.option-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 15px;
    width: 24px;
    height: 24px;
    background: var(--color-blue-light);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.option-card {
    position: relative;
}

/* ==========================================
   Progress Bar
   ========================================== */
.progress-bar {
    height: 6px;
    background: var(--color-main);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-blue-light);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* ==========================================
   Testimonials
   ========================================== */
.testimonial-card {
    background: var(--color-white);
    border-radius: 35px;
    padding: 2rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-family: 'Fredoka', sans-serif;
    font-size: 5rem;
    color: var(--color-main);
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
    opacity: 0.5;
}

/* ==========================================
   Footer
   ========================================== */
.footer-wave {
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23c8bcac' d='M0,50 C240,100 480,0 720,50 C960,100 1200,0 1440,50 L1440,100 L0,100 Z'/%3E%3C/svg%3E") no-repeat center;
    background-size: cover;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
    
    .card,
    .offer-card {
        padding: 1.5rem;
        border-radius: 25px;
    }
    
    .price-tag {
        font-size: 2rem;
    }
}

/* ==========================================
   Utility Classes
   ========================================== */
.text-accent { color: var(--color-accent); }
.text-main { color: var(--color-main); }
.text-blue { color: var(--color-blue); }
.text-blue-light { color: var(--color-blue-light); }

.bg-main { background-color: var(--color-main); }
.bg-white { background-color: var(--color-white); }
.bg-accent { background-color: var(--color-accent); }

.rounded-organic { border-radius: 40px 20px 40px 20px; }
.rounded-blob { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
.rounded-full { border-radius: 9999px; }
.rounded-soft { border-radius: 30px; }

/* Decorative wave line */
.wave-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-main), var(--color-blue-light));
    border-radius: 10px;
    margin: 1rem auto;
}

/* Glass effect */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--color-accent), var(--color-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Signature font - bubble douce pour effet spécial */
.font-signature {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
}

/* Text weights */
.text-light {
    font-weight: 300;
}

.text-regular {
    font-weight: 400;
}

.text-medium {
    font-weight: 500;
}
