/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
    --bg-main: #F3EAE3;
    --terracotta: #C88973;
    --sage: #8E9B86;
    --text-main: #4A3F3A;
    --shadow-soft: rgba(0, 0, 0, 0.06);
    --white: #ffffff;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.script {
    font-family: 'Allura', cursive;
    font-weight: 400;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   HEADER
   ============================================ */
header {
    position: sticky;
    top: 0;
    background: rgba(243, 234, 227, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px var(--shadow-soft);
    z-index: 1000;
}

.logo {
    width: 350px;
}

.hero-logo{
    width: 500px;
    margin-bottom: 1rem;
    align-items: center;
}

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

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

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

.btn-header {
    background: var(--terracotta);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: 500;
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 137, 115, 0.3);
}

/* Menu burger mobile */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: 0.3s;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 5%;
    background: linear-gradient(135deg, var(--bg-main) 0%, #E8DDD4 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 Q30 30 50 50 Q70 30 50 10" fill="none" stroke="%238E9B86" stroke-width="0.5" opacity="0.1"/></svg>');
    background-size: 150px;
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.hero .script-text {
    font-size: 2rem;
    color: var(--terracotta);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-main);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: #B67761;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(200, 137, 115, 0.4);
}

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

.btn-secondary:hover {
    background: var(--terracotta);
    color: var(--white);
    transform: translateY(-3px);
}

/* ============================================
   SECTIONS GÉNÉRALES
   ============================================ */
section {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-subtitle {
    text-align: center;
    color: var(--terracotta);
    font-size: 2rem;
    margin-bottom: 3rem;
}

/* ============================================
   CRÉATIONS - GRILLE
   ============================================ */
.creations {
    background: var(--white);
}

.creations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   CRÉATIONS - GRILLE
   ============================================ */
.creations {
    background: var(--white);
}

.creations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   CRÉATIONS - CARROUSEL
   ============================================ */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.carousel-track {
    display: flex;
    gap: 2rem;
}

.carousel-item {
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: 280px;
}

/* Boutons de navigation du carrousel */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: var(--terracotta);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px var(--shadow-soft);
}

.carousel-btn:hover {
    background: #B67761;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    background: var(--sage);
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--sage);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.5;
}

.carousel-dot.active {
    background: var(--terracotta);
    opacity: 1;
    transform: scale(1.2);
}

/* Responsive carrousel */
@media (max-width: 1024px) {
    .carousel-item {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 640px) {
    .carousel-item {
        flex: 0 0 100%;
    }
    
    .carousel-track {
        gap: 1rem;
    }
}

.creation-card {
    background: var(--bg-main);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-soft);
    transition: transform 0.3s, box-shadow 0.3s;
}

.creation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.creation-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.creation-img-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #E8DDD4, var(--bg-main));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    opacity: 0.6;
}

.creation-info {
    padding: 1.5rem;
}

.creation-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.creation-info .platforms {
    font-size: 0.9rem;
    color: var(--sage);
    margin-top: 0.5rem;
}

/* ============================================
   À PROPOS / UNIVERS
   ============================================ */
.about {
    background: linear-gradient(to bottom, var(--white), var(--bg-main));
}

.about-content {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pillar {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow-soft);
    transition: transform 0.3s;
}

.pillar:hover {
    transform: translateY(-5px);
}

.pillar i {
    font-size: 3rem;
    color: var(--terracotta);
    margin-bottom: 1rem;
}

.pillar h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   OÙ ACHETER
   ============================================ */
.where-buy {
    background: var(--white);
}

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

.platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-main);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s;
    box-shadow: 0 4px 12px var(--shadow-soft);
}

.platform-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: var(--terracotta);
    color: var(--white);
}

.platform-btn i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.platform-btn span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* ============================================
   INSTAGRAM
   ============================================ */
.instagram {
    background: linear-gradient(135deg, var(--bg-main), #E8DDD4);
    text-align: center;
}

.instagram-handle {
    font-size: 1.8rem;
    color: var(--terracotta);
    margin-bottom: 2rem;
    font-weight: 600;
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: var(--white);
    padding: 1rem 3rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.instagram-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(188, 24, 136, 0.4);
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    background: var(--white);
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-main);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
}

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

.faq-question i {
    transition: transform 0.3s;
}

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

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

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

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background: var(--bg-main);
    text-align: center;
}

.contact-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.contact-email {
    background: var(--terracotta);
    color: var(--white);
}

.contact-email:hover {
    background: #B67761;
    transform: translateY(-3px);
}

.contact-whatsapp {
    background: #25D366;
    color: var(--white);
}

.contact-whatsapp:hover {
    background: #1ebe57;
    transform: translateY(-3px);
}

.contact-info {
    color: var(--text-main);
    opacity: 0.8;
    font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--text-main);
    color: var(--white);
    padding: 3rem 5%;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ============================================
   ANIMATIONS FADE-IN
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(243, 234, 227, 0.98);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s;
        gap: 1.5rem;
    }

    nav.active {
        left: 0;
    }

    .burger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .script-text {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    section {
        padding: 3rem 5%;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem 3%;
    }
    
    .logo {
        width: 250px;;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}