:root {
--primary: #5a4636;
--accent: #d2ad53;
--soft-peach: #fff6ea;
--white: #ffffff;
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Plus Jakarta Sans', sans-serif;
background: linear-gradient(135deg, #fffcf9 0%, #f9f0e5 100%);
color: var(--primary);
line-height: 1.7;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
position: relative;
}

/* --- ANIMATIONS AU SCROLL (REVEAL) --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1), transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Spécial pour la sidebar pour éviter de casser son centrage vertical en CSS */
.reveal-fade {
  opacity: 0;
  transition: opacity 1.2s ease;
}
.reveal-fade.active {
  opacity: 1;
}

/* Délais optionnels pour un effet de cascade (stagger) */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }


/* --- COMPTEUR --- */
.countdown-container {
width: 100%;
background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(10px);
padding: 20px 20px;
text-align: center;
border-bottom: 1px solid rgba(210, 173, 83, 0.15);
position: sticky;
top: 0;
z-index: 1000;
}
.countdown-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 12px; text-transform: uppercase; opacity: 0.6; }
#countdown { display: flex; justify-content: center; gap: 25px; }
.count-item { display: flex; flex-direction: column; min-width: 55px; }
.count-number { font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.count-label { font-size: 0.6rem; text-transform: uppercase; opacity: 0.4; margin-top: 6px; }
.slide-fade { animation: slideFade 0.5s cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes slideFade { 0% { transform: translateY(-10px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }

/* --- RÉSEAUX SOCIAUX --- */
.social-sidebar {
position: fixed;
left: 30px;
top: 50%;
transform: translateY(-50%);
display: flex;
flex-direction: column;
gap: 15px;
z-index: 100;
}
.social-link {
display: flex;
align-items: center;
background: var(--white);
color: var(--primary);
text-decoration: none;
border-radius: 50px;
height: 48px;
width: 48px;
box-shadow: 0 4px 15px rgba(0,0,0,0.08);
border: 1px solid rgba(210, 173, 83, 0.1);
overflow: hidden;
transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s, color 0.3s, border-color 0.3s;
}
.social-link i { min-width: 48px; text-align: center; font-size: 1.2rem; }
.social-link span { opacity: 0; transition: opacity 0.4s; font-size: 0.9rem; font-weight: 600; white-space: nowrap; padding-right: 20px; }
.social-link:hover { background: var(--primary); color: var(--white); width: auto; min-width: 48px; padding-right: 20px; }
.social-link:hover span { opacity: 1; }
.social-link:hover.home-link { width: 130px; }
.social-link:hover.shop-link { width: 195px; }
.social-link:hover[href*="instagram"] { width: 145px; }
.social-link:hover[href*="tiktok"] { width: 120px; }
.social-link:hover.faq-link { width: 110px; }
.social-link.home-link {
background: var(--soft-peach);
color: var(--accent);
border: 1px solid var(--accent);
}
.social-link.home-link:hover {
background: var(--accent);
color: var(--white);
}

/* --- SECTIONS --- */

/* --- DÉCORATIONS LATÉRALES ANIMÉES --- */
.side-decorations { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; overflow: hidden; }
.decor-img {
  position: absolute;
  object-fit: contain;
  opacity: 0.8;
  animation: floatAnim 8s ease-in-out infinite alternate;
}
.decor-left-1 {
  top: 10%; left: 2%;
  width: 180px; height: auto;
  animation-duration: 9s;
}
.decor-right-1 {
  top: 30%; right: 2%;
  width: 220px; height: auto;
  animation-duration: 11s; animation-delay: -2s;
  scale: -1 1;
}
.decor-left-2 {
  top: 55%; left: 3%;
  width: 160px; height: auto;
  animation-duration: 7s; animation-delay: -4s;
}
.decor-right-2 {
  top: 75%; right: 4%;
  width: 190px; height: auto;
  animation-duration: 10s; animation-delay: -1s;
  scale: -1 1;
}
.decor-left-3 {
  top: 92%; left: 5%;
  width: 150px; height: auto;
  animation-duration: 8s; animation-delay: -3s;
}

@keyframes floatAnim {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-30px) rotate(5deg); }
}
.hero { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; }
.tag { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 3px; background: var(--white); padding: 10px 24px; border-radius: 50px; box-shadow: 0 8px 20px rgba(0,0,0,0.05); display: inline-block; margin-bottom: 30px; }
h1 { font-family: 'Lora', serif; font-size: clamp(2.2rem, 8vw, 3.8rem); font-weight: 400; margin-bottom: 30px; }
h1 span { font-style: italic; color: var(--accent); }
.logo { max-width: 180px; height: auto; margin-bottom: 15px; display: block; margin-left: auto; margin-right: auto; }
.btn-main {
padding: 18px 45px;
font-size: 1.1rem;
background: var(--primary);
color: white;
text-decoration: none;
border-radius: 100px;
font-weight: 600;
display: inline-block;
transition: 0.4s;
box-shadow: 0 10px 25px rgba(90, 70, 54, 0.15);
margin: 10px 6px;
cursor: pointer;
border: none;
font-family: inherit;
}
.btn-main:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(90, 70, 54, 0.25); }
.btn-outline {
background: transparent !important;
color: var(--primary) !important;
border: 2px solid var(--primary);
padding: 16px 43px !important;
box-shadow: none !important;
}
.btn-outline:hover {
background: rgba(90, 70, 54, 0.04) !important;
box-shadow: 0 10px 25px rgba(90, 70, 54, 0.08) !important;
}
.features { padding: 80px 20px; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; text-align: center; }
.feature-item i { font-size: 32px; color: var(--accent); margin-bottom: 15px; display: block; animation: starGlow 2.5s ease-in-out infinite; }
@keyframes starGlow {
0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0px var(--accent)); opacity: 0.6; }
50% { transform: scale(1.3); filter: drop-shadow(0 0 12px var(--accent)); opacity: 1; }
}

/* --- SECTION ABOUT --- */
.section-about { padding: 100px 20px; max-width: 1100px; margin: 0 auto; }
.grid-about { max-width: 800px; margin: 0 auto; background: white; padding: 60px 80px; border-radius: 40px; box-shadow: 0 20px 50px rgba(90, 70, 54, 0.06); border: 1px solid rgba(210, 173, 83, 0.15); text-align: left; position: relative; }
.grid-about::before { content: "✧"; position: absolute; top: -25px; left: 50px; font-size: 3rem; color: var(--accent); background: var(--bg-color); padding: 0 15px; animation: starGlow 3s ease-in-out infinite; }
.grid-about::after { content: "✧"; position: absolute; bottom: -25px; right: 50px; font-size: 3rem; color: var(--accent); background: var(--bg-color); padding: 0 15px; animation: starGlow 3s ease-in-out infinite 1.5s; }
.about-text h2 { font-family: 'Lora', serif; font-size: 2.8rem; margin-bottom: 30px; text-align: center; color: var(--primary); }
.about-text p { margin-bottom: 20px; font-size: 1.1rem; line-height: 1.8; color: #555; }
.about-text .highlight { display: block; text-align: right; font-family: 'Lora', serif; font-style: italic; font-size: 1.4rem; color: var(--accent); margin-top: 30px; }
.cta-box { margin-top: 40px; padding: 30px; background: white; border-radius: 25px; box-shadow: 0 15px 40px rgba(0,0,0,0.04); border: 1px solid rgba(210, 173, 83, 0.1); }
.cta-box p { font-weight: 700; margin-bottom: 8px; font-size: 1.1rem; }
.cta-box span { font-size: 0.95rem; display: block; margin-bottom: 20px; opacity: 0.7; }
.btn-link {
color: var(--accent);
text-decoration: none;
font-weight: 700;
padding-bottom: 4px;
position: relative;
display: inline-block;
background: none;
border: none;
font-size: 1rem;
cursor: pointer;
font-family: inherit;
}
.btn-link::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2.5px;
background-color: var(--accent);
transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-link:hover::after {
width: 100%;
}
.highlight { font-family: 'Sacramento', cursive; font-size: 2.5rem; color: var(--accent); display: block; margin-top: 30px; }

/* --- POP-UP MODAL --- */
.modal-overlay {
position: fixed;
top: 0; left: 0; width: 100%; height: 100%;
background: rgba(90, 70, 54, 0.4);
backdrop-filter: blur(5px);
z-index: 2000;
display: none;
justify-content: center;
align-items: center;
opacity: 0;
animation: fadeIn 0.3s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.modal-box {
background: var(--white);
padding: 40px;
border-radius: 25px;
width: 90%;
max-width: 400px;
text-align: center;
position: relative;
box-shadow: 0 25px 50px rgba(0,0,0,0.1);
transform: translateY(20px);
animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slideUp { to { transform: translateY(0); } }
.modal-close {
position: absolute;
top: 15px; right: 20px;
background: transparent;
border: none;
font-size: 1.5rem;
color: var(--primary);
cursor: pointer;
opacity: 0.6;
transition: 0.3s;
}
.modal-close:hover { opacity: 1; color: var(--accent); }
.modal-box h3 { font-family: 'Lora', serif; font-size: 1.8rem; margin-bottom: 10px; }
.modal-box p { font-size: 0.95rem; margin-bottom: 25px; opacity: 0.8; }
.form-input {
width: 100%;
padding: 14px 20px;
border: 1px solid rgba(210, 173, 83, 0.4);
border-radius: 50px;
font-family: inherit;
font-size: 1rem;
color: var(--primary);
outline: none;
transition: 0.3s;
text-align: center;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 10px rgba(210, 173, 83, 0.1); }
.modal-box .btn-main {
width: 100%;
margin: 15px 0 0 0;
padding: 14px 20px;
}

/* --- FOOTER --- */
footer { text-align: center; padding: 40px 20px 0px 20px; font-size: 0.8rem; opacity: 0.5; letter-spacing: 1px; }
footer a { color: var(--primary); text-decoration: none; margin: 0 10px; font-weight: 600; }
footer a:hover { color: var(--accent); text-decoration: underline; }

/* --- FENÊTRE DE COOKIES --- */
.cookie-banner {
position: fixed;
bottom: 30px;
right: 30px;
max-width: 380px;
background: var(--white);
border: 1px solid rgba(210, 173, 83, 0.2);
border-radius: 25px;
padding: 25px;
box-shadow: 0 15px 40px rgba(90, 70, 54, 0.12);
z-index: 5000;
display: none;
animation: cookieSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes cookieSlideUp {
0% { transform: translateY(50px); opacity: 0; }
100% { transform: translateY(0); opacity: 1; }
}

.cookie-banner.cookie-hide {
animation: cookieSlideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cookieSlideDown {
0% { transform: translateY(0); opacity: 1; }
100% { transform: translateY(50px); opacity: 0; }
}
.cookie-banner p { font-size: 0.88rem; color: var(--primary); margin-bottom: 20px; line-height: 1.5; text-align: left; }
.cookie-banner p a { color: var(--accent); text-decoration: none; font-weight: 600; }
.cookie-banner p a:hover { text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-btn { padding: 10px 22px; font-size: 0.85rem; border-radius: 50px; font-weight: 600; cursor: pointer; transition: 0.3s; border: none; }
.cookie-btn.accept { background: var(--primary); color: white; }
.cookie-btn.accept:hover { background: var(--accent); transform: translateY(-2px); }
.cookie-btn.decline { background: transparent; color: var(--primary); border: 1px solid rgba(90, 70, 54, 0.2); }
.cookie-btn.decline:hover { background: rgba(90, 70, 54, 0.04); }

/* --- TOOLTIP BOUTIQUE --- */
.shop-link { position: relative; }
.shop-link .tooltip {
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
background: var(--primary);
color: white;
padding: 8px 14px;
border-radius: 8px;
font-size: 0.8rem;
white-space: nowrap;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
margin-bottom: 8px;
font-weight: 600;
}
.shop-link .tooltip::after {
content: '';
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
border: 6px solid transparent;
border-top-color: var(--primary);
}
.shop-link:hover .tooltip { opacity: 1; }

@media (max-width: 900px) {
body { padding-bottom: 80px; }
.side-decorations { display: none; } /* Enlever les PNG arrière-plan */
h1 { font-size: 2.2rem; } /* Réduire H1 */
.hero { padding: 40px 15px; min-height: 60vh; }
.btn-main, .btn-outline { padding: 14px 28px !important; font-size: 1rem !important; } /* Boutons plus petits */
.grid-about { padding: 30px 20px; border-radius: 20px; }
.grid-about::before { left: 10px; top: -15px; font-size: 1.5rem; }
.grid-about::after { right: 10px; bottom: -15px; font-size: 1.5rem; }
.about-text h2 { font-size: 1.6rem; margin-bottom: 20px; }
.features { grid-template-columns: 1fr; gap: 30px; padding: 40px 15px; }
.social-sidebar { left: 0; top: auto; bottom: 0; width: 100%; flex-direction: row; justify-content: center; transform: none; padding: 15px; background: rgba(255,255,255,0.95); border-top: 1px solid #eee; }
.social-link:hover { width: 48px !important; }
.social-link span { display: none; }
.cookie-banner { left: 20px; right: 20px; bottom: 85px; max-width: none; padding: 20px; }
}

/* --- TRANSITION DE PAGE --- */
body { animation: fadeInPage 0.6s ease-in-out forwards; }
@keyframes fadeInPage { 0% { opacity: 0; } 100% { opacity: 1; } }
body.page-exit { animation: fadeOutPage 0.5s ease-in-out forwards !important; }
@keyframes fadeOutPage { 0% { opacity: 1; } 100% { opacity: 0; } }


/* --- OVERRIDES MOBILES POUR REDUIRE L'EFFET "ZOOM" --- */
@media (max-width: 900px) {
    body { font-size: 0.95rem !important; }
    h1 { font-size: 1.8rem !important; margin-bottom: 15px !important; }
    h2 { font-size: 1.4rem !important; }
    h3 { font-size: 1.2rem !important; }
    p, ul, li { font-size: 0.95rem !important; line-height: 1.6 !important; }
    .hero, .hero-faq { padding: 30px 15px !important; min-height: auto !important; }
    .btn-main, .btn-outline { padding: 12px 24px !important; font-size: 0.9rem !important; }
    .cta-box { padding: 25px 15px !important; margin: 20px 15px !important; }
    .cta-box p { font-size: 1.4rem !important; }
    .grid-about { padding: 25px 15px !important; }
    .features { gap: 20px !important; padding: 30px 15px !important; }
    .social-sidebar { padding: 8px !important; bottom: 0 !important; }
    .social-link { height: 40px !important; width: 40px !important; border-radius: 40px !important; }
    .social-link i { min-width: 40px !important; font-size: 1rem !important; }
    .social-link:hover { width: 40px !important; min-width: 40px !important; padding-right: 0px !important; }
    .countdown-container { padding: 10px !important; }
    .count-number { font-size: 1.2rem !important; }
    .count-label { font-size: 0.55rem !important; }
    .cookie-banner { padding: 15px !important; bottom: 65px !important; left: 15px !important; right: 15px !important; }
    .cookie-banner p { font-size: 0.8rem !important; margin-bottom: 15px !important; }
    summary { padding: 15px 20px !important; font-size: 0.95rem !important; }
    .faq-section { margin-bottom: 60px !important; padding: 10px !important; }
    .container { padding: 25px 15px !important; margin: 15px !important; }
    .modal-box { padding: 25px 15px !important; }
    .tag { font-size: 0.7rem !important; padding: 6px 16px !important; margin-bottom: 15px !important; }
}


@media (max-width: 900px) {
    footer { 
        padding-top: 20px !important; 
        font-size: 0.7rem !important; 
    }
    footer + div { 
        padding-bottom: 20px !important; 
        padding-top: 5px !important;
        font-size: 0.75rem !important;
    }
    footer + div img {
        height: 28px !important;
    }
}


@media (max-width: 900px) {
    footer p, footer a {
        font-size: 0.65rem !important;
    }
}


@media (max-width: 900px) {
    .cta-box { 
        padding: 20px 15px !important; 
        margin: 15px 15px !important; 
        background: white !important;
        border-radius: 15px !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.03) !important;
    }
    .cta-box p { 
        font-size: 1.3rem !important; 
        margin-bottom: 10px !important;
    }
    .cta-box span {
        font-size: 0.85rem !important;
        margin-bottom: 15px !important;
        line-height: 1.5 !important;
    }
    .cta-box .btn-link {
        font-size: 0.9rem !important;
    }
}


/* --- CHROME BUG FIXES FOR ANIMATIONS --- */
body {
    animation: none !important; /* Disable body animation to prevent stacking context bug */
}
body.page-exit {
    animation: none !important;
}

/* Nouveau système de transition de page via un pseudo-élément overlay (évite le bug des éléments fixed/sticky) */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: #fffcf9;
    z-index: 999999;
    pointer-events: none;
    animation: overlayFadeOut 0.6s ease-in-out forwards;
}
body.page-exit::after {
    animation: overlayFadeIn 0.5s ease-in-out forwards !important;
}
@keyframes overlayFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}
@keyframes overlayFadeIn {
    0% { opacity: 0; visibility: visible; }
    100% { opacity: 1; }
}

/* Force l'accélération matérielle (GPU) pour éviter les clignotements sur Chrome */
.reveal, .global-animate, .decor-img, .faq-content {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.decor-img {
    will-change: transform;
}
.reveal {
    will-change: transform, opacity;
}
