/* =========================================
   DESIGN (CSS Variables & Global Style)
   ========================================= */
:root {
    --bg-color: #FDFDFD;
    --sage-green: #7D8E73;
    --light-sage: #B4C4B1;
    --earth-brown: #66422D;
    --plum-burgundy: #462233;
    --text-dark: #333333;
    --soft-gray: #F2F2F2;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* Cache le vrai curseur sur desktop */
@media (hover: hover) and (pointer: fine) {
    body { cursor: none; }
    a, button, .portfolio-item, .day-cell { cursor: none !important; }
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    /* Ajoute ces deux lignes pour caler le footer en bas et bloquer les débordements */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--plum-burgundy); }

/* --- LE CURSEUR AURA MAGIQUE --- */
#custom-cursor {
    position: fixed; top: 0; left: 0; width: 20px; height: 20px;
    border: 2px solid var(--sage-green); border-radius: 50%;
    pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
    mix-blend-mode: difference;
}
#custom-cursor.cursor-hover {
    width: 60px; height: 60px;
    background-color: rgba(125, 142, 115, 0.2); border-color: transparent;
}
@media (max-width: 768px) { #custom-cursor { display: none !important; } }

/* --- ANIMATIONS AU SCROLL (Fade-up) --- */
.reveal {
    opacity: 0;
    transform: translateY(60px); /* Plus grand mouvement */
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- EFFET GLASSMORPHISM --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.45); 
    backdrop-filter: blur(16px);           
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2; 
}

/* --- BACKGROUND BLOBS & DECORATIONS --- */
.decor { position: absolute; z-index: -1; pointer-events: none; opacity: 0.85; }

.wavy-lines {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 1000 1000' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,200 Q250,100 500,200 T1000,200' fill='none' stroke='%23e0e0e0' stroke-width='1'/%3E%3Cpath d='M0,400 Q250,300 500,400 T1000,400' fill='none' stroke='%23e0e0e0' stroke-width='1'/%3E%3Cpath d='M0,800 Q250,700 500,800 T1000,800' fill='none' stroke='%23e0e0e0' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.3; z-index: -2;
}

.top-waves { position: absolute; top: 0; right: 0; width: 300px; opacity: 0.6; z-index: -1; }
.blob-green-top { top: -20px; left: -20px; width: 200px; fill: var(--sage-green); }
.blob-brown-mid { top: 45%; left: -30px; width: 150px; fill: var(--earth-brown); }

/* --- NAVIGATION --- */
nav { padding: 40px 20px 20px 20px; text-align: center; position: relative; z-index: 10; }
nav h1 { font-size: 1.8rem; text-transform: uppercase; font-weight: 500; letter-spacing: 1px;}

/* MENU HAMBURGER FIXE */
.hamburger-btn {
    position: fixed; left: 20px; top: 20px;
    background: rgba(253, 253, 253, 0.9); border: none; cursor: pointer;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    z-index: 1000; width: 50px; height: 50px; border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); backdrop-filter: blur(5px);
}
.hamburger-btn span {
    display: block; width: 22px; height: 2px;
    background-color: var(--plum-burgundy); border-radius: 2px; transition: var(--transition);
}

/* OVERLAY MENU LATÉRAL */
.side-menu {
    position: fixed; top: 0; left: -300px; width: 280px; height: 100vh;
    background-color: var(--white); box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    z-index: 1001; transition: left 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    padding: 80px 30px 30px 30px; display: flex; flex-direction: column;
}
.side-menu.active { left: 0; }
.close-menu-btn {
    position: absolute; top: 30px; right: 30px;
    background: none; border: none; font-size: 30px; color: var(--plum-burgundy); cursor: pointer;
}
.menu-links { list-style: none; margin-top: 20px; }
.menu-links li { margin-bottom: 25px; }
.menu-links a {
    text-decoration: none; color: var(--text-dark); font-size: 1.1rem;
    font-weight: 500; transition: var(--transition); font-family: 'Playfair Display', serif;
}
.menu-links a:hover { color: var(--sage-green); padding-left: 5px; }

.overlay-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); z-index: 998;
    opacity: 0; visibility: hidden; transition: var(--transition);
}
.overlay-bg.active { opacity: 1; visibility: visible; }

/* --- SECTIONS --- */
section { padding: 50px 20px; position: relative; max-width: 1100px; margin: 0 auto; z-index: 2; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2rem; }

/* --- HERO --- */
.hero { text-align: center; display: flex; flex-direction: column; align-items: center; position: relative; }
.hero-decor-blob { position: absolute; top: 15%; right: -20px; width: 150px; fill: var(--earth-brown); opacity: 0.1; z-index: -1; }
.hero-decor-leaf { position: absolute; top: 40%; left: -30px; width: 120px; transform: rotate(-15deg); z-index: -1; opacity: 0.6; }
.hero-img-container { position: relative; margin-bottom: 30px; }
.hero-img { 
    width: 280px; height: 380px; border-radius: 150px 150px 0 0; 
    object-fit: cover; box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* --- PORTFOLIO GALLERY (CANEVAS ORIGINAUX) --- */
.portfolio-carousel-wrapper { 
    position: relative; display: flex; align-items: center; margin-top: 20px; padding: 0 10px;
}
.portfolio-carousel { 
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; 
    scroll-behavior: smooth; padding: 10px 0; width: 100%; scrollbar-width: none; 
}
.portfolio-carousel::-webkit-scrollbar { display: none; }

.portfolio-item { 
    position: relative; overflow: hidden; aspect-ratio: 4/5; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); cursor: pointer;
    transition: transform 0.3s ease;
    flex: 0 0 calc(50% - 10px); 
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .portfolio-item { flex: 0 0 calc(25% - 15px); }
}

.portfolio-item:nth-child(3n+1) { border-radius: 100px 15px 100px 15px; }
.portfolio-item:nth-child(3n+2) { border-radius: 15px 100px 15px 100px; }
.portfolio-item:nth-child(3n+3) { border-radius: 60px 60px 15px 15px; }

.portfolio-item::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(125,142,115,0.15) 0%, rgba(255,255,255,0) 50%, rgba(70,34,51,0.15) 100%);
    border: 2px solid rgba(255,255,255,0.4); border-radius: inherit;
    pointer-events: none; z-index: 1;
}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.portfolio-item:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.portfolio-item:hover img { transform: scale(1.05); }

.carousel-arrow {
    background: var(--white); border: none; font-size: 1.5rem; color: var(--sage-green);
    cursor: pointer; transition: 0.3s; width: 45px; height: 45px; border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center;
    position: absolute; z-index: 10;
}
.carousel-arrow:hover { color: var(--plum-burgundy); transform: scale(1.1); }
#portfolio-prev { left: -15px; }
#portfolio-next { right: -15px; }

/* --- LIGHTBOX (DIAPORAMA) --- */
.lightbox {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(30, 20, 25, 0.9); backdrop-filter: blur(8px);
    justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease;
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox-content { max-width: 90%; max-height: 85vh; border-radius: 15px; box-shadow: 0 0 30px rgba(0,0,0,0.5); object-fit: contain; }
.lightbox-close { 
    position: absolute; top: 30px; right: 40px; color: #fff; font-size: 45px; font-weight: 300; 
    cursor: pointer; transition: 0.3s; font-family: sans-serif; line-height: 1;
}
.lightbox-close:hover { color: var(--light-sage); transform: rotate(90deg); }
.lightbox-prev, .lightbox-next { 
    cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); 
    width: 50px; height: 50px; color: white; font-weight: bold; font-size: 24px; 
    border: none; background: rgba(255,255,255,0.1); border-radius: 50%; 
    transition: 0.3s ease; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px);
}
.lightbox-prev { left: 20px; } .lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background-color: var(--sage-green); }

/* --- TARIFS --- */
.tarifs-wrapper { background: rgba(255,255,255,0.6); backdrop-filter: blur(10px); border-radius: 20px; padding: 20px; }
.category-badge {
    background-color: var(--plum-burgundy); color: var(--white);
    padding: 6px 30px; border-radius: 25px; display: inline-block;
    margin: 25px 0 15px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px;
}
.price-item {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05); padding: 12px 0; font-size: 0.95rem;
}
.item-info { display: flex; align-items: center; gap: 8px; }
.level-icons { color: var(--plum-burgundy); font-size: 0.8rem; letter-spacing: 2px; }
.size-icon { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.size-bar { width: 4px; background-color: var(--sage-green); border-radius: 1px; }

/* --- LE PETIT PLUS (FORMES ABSTRAITES) --- */
.extras-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; max-width: 900px; margin: 0 auto; }
.extra-item {
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 25px 30px; min-width: 170px; min-height: 140px; font-weight: 600; font-size: 0.95rem;
    color: var(--text-dark); position: relative; transition: transform 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}
.extra-item:hover { transform: translateY(-5px) scale(1.02); }

.extra-item:nth-child(1) { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; background: var(--light-sage); }
.extra-item:nth-child(2) { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; background: rgba(102, 66, 45, 0.12); }
.extra-item:nth-child(3) { border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%; background: rgba(70, 34, 51, 0.08); }
.extra-item:nth-child(4) { border-radius: 80% 20% 50% 50% / 50% 50% 50% 50%; background: var(--sage-green); color: white; }
.extra-item:nth-child(5) { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; background: var(--soft-gray); }

/* --- CALENDRIER (CRENEAUX) --- */
.calendar-wrapper { 
    display: flex; flex-direction: column; gap: 20px; background: rgba(255,255,255,0.8); 
    backdrop-filter: blur(10px); padding: 30px; border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); align-items: center;
}
.calendar-container { display: flex; flex-direction: column; gap: 30px; width: 100%; }
.month-block { flex: 1; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.month-title { font-family: 'Playfair Display', serif; color: var(--plum-burgundy); font-size: 1.3rem; font-weight: bold; }
.cal-arrow { background: none; border: none; font-size: 1.5rem; color: var(--sage-green); cursor: pointer; transition: 0.3s; }
.cal-arrow:hover { color: var(--plum-burgundy); transform: scale(1.1); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.day-name { font-size: 0.8rem; color: var(--earth-brown); font-weight: 600; margin-bottom: 10px; }
.day-cell { padding: 10px 5px; background: rgba(255,255,255,0.4); border-radius: 8px; font-size: 0.9rem; border: 1px solid transparent; transition: 0.2s; cursor: pointer; }
.day-cell:hover:not(.disabled) { background: var(--sage-green); color: white; box-shadow: 0 4px 10px rgba(125,142,115,0.4); }
.day-cell.disabled { opacity: 0.3; cursor: not-allowed; }
.day-cell.active { background: var(--plum-burgundy); color: white; }
.day-cell.is-today { border: 2px solid var(--sage-green); color: var(--sage-green); font-weight: bold; }

/* --- SOCIAL LINKS & BUTTONS --- */
.btn {
    background-color: var(--plum-burgundy); color: white;
    padding: 16px 40px; text-decoration: none; border-radius: 4px;
    font-weight: 600; font-size: 0.8rem; letter-spacing: 2px;
    display: inline-block; transition: var(--transition); cursor: pointer; border: none;
}
.btn:hover { background-color: var(--earth-brown); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1);}

/* Bouton secondaire (Aujourd'hui) */
.btn-secondary {
    background-color: transparent; color: var(--sage-green);
    border: 1px solid var(--sage-green); padding: 8px 25px;
    border-radius: 20px; font-weight: 600; font-size: 0.8rem;
    letter-spacing: 1px; display: inline-block; cursor: pointer; transition: var(--transition);
}
.btn-secondary:hover { background-color: var(--sage-green); color: var(--white); }

/* --- FOOTER & RESEAUX --- */
footer { 
    background: rgba(125, 142, 115, 0.85); /* Fond vert sauge transparent */
    backdrop-filter: blur(10px);            /* Effet verre flouté */
    -webkit-backdrop-filter: blur(10px);
    color: white; 
    padding: 80px 20px; 
    text-align: center; 
    position: relative; 
    overflow: hidden; 
}
footer h2 { color: white; margin-bottom: 10px; z-index: 2; position: relative;}
.social-links { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 30px; position: relative; z-index: 2;}
.social-icon { width: 45px; height: 45px; fill: white; transition: var(--transition); background: rgba(255,255,255,0.15); padding: 10px; border-radius: 50%; display: inline-flex; justify-content: center; align-items: center; cursor: none !important;}
.social-icon:hover { background: white; fill: var(--plum-burgundy); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* --- PLANTES DU FOOTER --- */
.footer-plant { position: absolute; bottom: -10px; z-index: 1; fill: white; opacity: 0.5; pointer-events: none; }
.plant-1 { left: 5%; width: 120px; }
.plant-2 { left: 20%; width: 80px; opacity: 0.2; transform: rotate(-15deg); }
.plant-3 { right: 5%; width: 100px; }
.plant-4 { right: 22%; width: 70px; opacity: 0.4; }

/* --- ILLUSTRATIONS (SVG) --- */
.hand-stars { width: 120px; right: -10px; top: 180px; }

@media (min-width: 768px) {
    .hero-img { width: 420px; height: 550px; }
    .hero-decor-blob { right: 10%; width: 250px; }
    .hero-decor-leaf { left: 10%; top: 30%; width: 150px; }
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 25px; }
    .price-list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
    .blob-green-top { width: 300px; }
    .blob-brown-mid { width: 250px; left: -50px;}
    .calendar-container { flex-direction: row; }
    .calendar-wrapper { flex-direction: row; padding: 40px; }
}