/* ====================================
   1. VARIABLES & RESET
   ==================================== */
:root {
    --couleur-primaire: #458396;
    --couleur-secondaire: #d5af50;
    --couleur-texte-sombre: #333;
    --couleur-fond-clair: #f4f4f4;
    --bg-card: #fff;
    --texte-secondaire: #555;
    --border-light: #eee;
    --bg-intervenants-start: #f8f9fa;
    --bg-intervenants-end: #e9ecef;
}

:root.dark-mode {
    --couleur-fond-clair: #1a1a2e;
    --couleur-texte-sombre: #e0e0e0;
    --bg-card: #16213e;
    --texte-secondaire: #aaa;
    --border-light: #2a2a3e;
    --bg-intervenants-start: #1e293b;
    --bg-intervenants-end: #0f172a;
}

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

html {
    scroll-behavior: smooth; 
}

body {
    font-family: 'Inter', sans-serif; 
    color: var(--couleur-texte-sombre);
    background-color: var(--couleur-fond-clair);
    line-height: 1.6;
    font-size: 1.2em;
    padding-top: 130px; /* Espace pour le header PC */
}

/* Fix pour l'ancre sous le header fixe */
section[id],
div[id],
:target {
    scroll-margin-top: 150px;
}

#contact-pia {
    scroll-margin-top: 0;
}


.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 20px 0; }
.page-section { padding: 35px 0; transition: transform 0.6s ease, opacity 0.6s ease; }
.alternate-bg { background-color: var(--bg-card); }

/* ====================================
   2. TYPOGRAPHIE
   ==================================== */
h1 { font-family: 'Ephesis', cursive; color: var(--couleur-primaire); text-align: center; margin-bottom: 40px; font-size: 4.5em; position: relative; padding: 15px 0; }
h1::before, h1::after { content: ''; position: absolute; height: 4px; width: 60%; background-color: var(--couleur-secondaire); left: 50%; transform: translateX(-50%); }
h1::before { top: 0; } h1::after { bottom: 0; }

h2 { font-family: 'Ephesis', cursive; color: var(--couleur-primaire); text-align: center; margin-bottom: 30px; font-size: 3em; position: relative; padding: 10px 0; margin-top: 15px; }
h2::before, h2::after { content: ''; position: absolute; height: 3px; width: 50%; background-color: var(--couleur-secondaire); left: 50%; transform: translateX(-50%); }
h2::before { top: 0; } h2::after { bottom: 0; }

h3 { font-family: 'Ephesis', cursive; color: var(--couleur-primaire); text-align: center; margin-bottom: 20px; font-size: 1.8em; position: relative; padding: 5px 0; }

/* ====================================
   3. HEADER & NAV (PC)
   ==================================== */
header {
    background-color: var(--couleur-primaire);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 10px 5%; 
    transition: all 0.3s ease;
}

header.small { padding: 2px 5%; }
header.small .header-logo { padding: 2px 0; }
header.small .header-logo img { width: 60px; }
header.small nav { padding-top: 2px; }

.header-logo { text-align: center; padding: 5px 0; }
.header-logo img { width: 90px; height: auto; transition: width 0.3s ease; }

nav { border-top: 2px solid var(--couleur-secondaire); padding-top: 5px; }
nav ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; }
nav ul li a {
    text-decoration: none; color: #fff; font-family: 'Playfair Display', serif;
    font-weight: 700; font-size: 0.9em; padding: 5px 10px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    text-transform: uppercase; letter-spacing: 1px;
    border-bottom: 2px solid transparent; display: inline-block;
}
nav ul li a:hover, nav ul li a.active { color: var(--couleur-secondaire); border-bottom: 2px solid var(--couleur-secondaire); }

.burger-menu { display: none; }

/* ====================================
   4. STRUCTURES DE SECTIONS
   ==================================== */
.presentation-boutique { text-align: center; margin-bottom: 50px; padding: 20px; background-color: var(--bg-card); border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); }

/* Carrousel dynamique (Fini les hauteurs fixes !) */
.boutique-photo-placeholder {
    width: 100%; 
    aspect-ratio: 16 / 9; /* S'adapte automatiquement à l'écran */
    max-height: 500px;
    border: 3px solid var(--couleur-secondaire);
    margin-top: 20px; position: relative; overflow: hidden;
    border-radius: 15px; box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.carousel-container { width: 100%; height: 100%; position: absolute; top: 0; left: 0; overflow: hidden; }
.carousel-track { display: flex; height: 100%; transition: transform 0.5s ease-in-out; }
.carousel-slide { min-width: 100%; height: 100%; box-sizing: border-box; position: relative; }
.carousel-slide img { width: 100%; height: 100%; display: block; object-fit: cover; }
.carousel-button {
    position: absolute; top: 50%; transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5); color: white; border: none;
    padding: 15px; cursor: pointer; z-index: 10; font-size: 1.5em;
    opacity: 0.7; transition: opacity 0.3s;
    backdrop-filter: blur(4px); border-radius: 50%;
}
.carousel-button:hover { opacity: 1; }
.carousel-button.prev { left: 0; border-radius: 0 5px 5px 0; }
.carousel-button.next { right: 0; border-radius: 5px 0 0 5px; }

/* Map & Images */
.map-wrapper { margin-top: 30px; text-align: center; }
.adresse { margin-top: 15px; font-weight: 600; }
.horaires-img { max-width: 100%; max-height: 800px; aspect-ratio: 707 / 1000; border: 3px solid var(--couleur-secondaire); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); border-radius: 5px; }

.map-wrapper iframe {
    border: 3px solid var(--couleur-secondaire);
    border-radius: 10px; /* Un peu d'arrondi pour la cohérence */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: block; /* Évite un micro-espace blanc sous la carte */
}

/* ====================================
   5. ICÔNES DE CONTACT (Standardisées)
   ==================================== */
.contact-icons { display: flex; justify-content: center; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.icon-link { display: flex; flex-direction: column; align-items: center; text-decoration: none; transition: transform 0.2s ease, opacity 0.3s; }
.icon-link:hover { opacity: 0.8; transform: translateY(-3px); }

/* Le cercle global pour toutes les icônes */
.icon-link img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--couleur-secondaire);
    display: block;
    margin-bottom: 8px;
    background-color: var(--bg-card);
    object-fit: cover;
}

.icon-link p { font-family: 'Inter', sans-serif; font-size: 1em; color: var(--couleur-texte-sombre); margin: 0; font-weight: 600; }

/* Exception pour Insta/Facebook : on rajoute un padding interne pour que le logo respire dans son cercle blanc */
.btn-insta-pia img {
    padding: 10px; /* Force l'image à rapetisser dans le cercle */
    object-fit: contain;
}

/* ====================================
   6. INTERVENANTS & TARIFS
   ==================================== */
.intervenants-section { background: linear-gradient(135deg, var(--bg-intervenants-start) 0%, var(--bg-intervenants-end) 100%); border: 3px solid var(--couleur-secondaire); border-radius: 15px; padding: 40px 20px; margin: 40px 0; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); }
.perceuse-presentation { display: flex; align-items: center; gap: 40px; margin-top: 30px; background-color: var(--bg-card); padding: 30px; border-radius: 10px; }
.perceuse-photo-placeholder { width: 40%; min-width: 250px; max-width: 350px; flex-shrink: 0; }
.perceuse-photo-placeholder img { width: 100%; height: auto; aspect-ratio: 1 / 1; display: block; border-radius: 50%; border: 5px solid var(--couleur-secondaire); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); }
.perceuse-description { text-align: left; }
.perceuse-description h3 { color: var(--couleur-primaire); margin-top: 0; margin-bottom: 15px; text-align: left; position: static; padding: 0; }

.tarifs-images { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.tarif-img { width: 45%; max-width: 600px; height: auto; aspect-ratio: 1192 / 1681; border: 3px solid var(--couleur-secondaire); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.retractation-note { 
    text-align: center; 
    padding: 15px; 
    border: 2px solid #cc0000; 
    background-color: #fff0f0; 
    display: block; 
    max-width: 700px; 
    /* TOP | RIGHT | BOTTOM | LEFT */
    margin: 50px auto 20px auto; 
    font-size: 1.1em; 
    color: #cc0000; 
    border-radius: 5px; 
    font-weight: bold; 
}

/* Bouton Téléchargement */
.download-wrapper { text-align: center; margin-top: 40px; }
.btn-download { display: inline-block; background-color: var(--couleur-primaire); color: #fff; padding: 15px 30px; font-weight: 600; text-transform: uppercase; text-decoration: none; border: 2px solid var(--couleur-primaire); border-radius: 5px; transition: all 0.3s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn-download:hover { background-color: transparent; color: var(--couleur-primaire); border-color: var(--couleur-secondaire); transform: translateY(-2px); box-shadow: 0 6px 8px rgba(0,0,0,0.15); }

/* ====================================
   7. FAQ & AVIS
   ==================================== */
.reviews { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 20px; }
.review { background: var(--bg-card); padding: 20px; border-radius: 10px; border-left: 5px solid var(--couleur-secondaire); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.faq-item { background: var(--bg-card); margin-bottom: 15px; padding: 15px 20px; border-radius: 10px; border-left: 5px solid var(--couleur-secondaire); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.faq-question { font-weight: 700; cursor: pointer; position: relative; padding-right: 30px; }
.faq-question::after { content: "+"; position: absolute; right: 0; font-size: 1.2em; color: var(--couleur-primaire); transition: transform 0.3s ease; }
.faq-question.active::after { content: "-"; transform: rotate(180deg); }
.faq-answer { display: none; padding-top: 10px; color: var(--texte-secondaire); border-top: 1px solid var(--border-light); margin-top: 10px; }
.faq-answer.open { display: block; animation: fadeIn 0.5s; }

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

footer { background-color: var(--couleur-texte-sombre); color: #fff; padding: 15px 0; font-size: 0.9em; text-align: center; }

/* ====================================
   Bouton RDV flottant
   ==================================== */
.rdv-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--couleur-secondaire);
    color: #fff;
    padding: 14px 22px;
    border-radius: 50px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.85em;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 998;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rdv-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* ====================================
   8. RESPONSIVE DESIGN (Nettoyé & Fusionné)
   ==================================== */
@media (max-width: 992px) {
    body { padding-top: 150px; }
    .perceuse-presentation { flex-direction: column; text-align: center; }
    .perceuse-description { text-align: center; }
    .perceuse-description h3 { text-align: center; }
    .perceuse-photo-placeholder { width: 60%; }
}

@media (max-width: 768px) {
    body { padding-top: 90px; }
    section[id], div[id], :target { scroll-margin-top: 100px; }
    .page-section { padding: 25px 0; }
    h1 { font-size: 3em; }
    h2 { font-size: 2.2em; margin-top: 10px; margin-bottom: 20px;}
    h3 { font-size: 1.5em; }

    /* Header & Burger */
    header { display: flex; align-items: center; justify-content: space-between; padding: 10px 5%; }
    .header-logo { padding: 0; margin: 0; }
    .header-logo img { width: 60px !important; display: block; }
    
    .burger-menu { display: block; position: relative; top: 0; right: 0; cursor: pointer; z-index: 1001; }
    .burger-menu .bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--couleur-secondaire); transition: all 0.3s ease-in-out; }
    
    nav { position: absolute; top: 100%; left: 0; width: 100%; border-top: none; padding-top: 0; }
    nav ul { flex-direction: column; background-color: var(--couleur-primaire); max-height: 0; overflow: hidden; transition: max-height 0.4s ease; gap: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
    nav ul.show { max-height: 500px; border-top: 2px solid var(--couleur-secondaire); }
    nav ul li { width: 100%; text-align: center; }
    nav ul li a { display: block; padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.9em; }

    .burger-menu.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .burger-menu.active .bar:nth-child(2) { opacity: 0; }
    .burger-menu.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Ajustements composants */
    .tarifs-images { flex-direction: column; align-items: center; }
    .tarif-img { width: 90%; }
    .carousel-button { padding: 8px 12px; font-size: 1.2em; }
}

@media (max-width: 576px) {
    body { padding-top: 80px; }
    .header-logo img { width: 50px !important; }
    .contact-icons { gap: 20px; }
    h1 { font-size: 2.5em; }
    .rdv-btn { bottom: 20px; right: 20px; padding: 12px 16px; font-size: 0.75em; }
    .back-to-top { bottom: 80px; right: 20px; }
    .hero-section { min-height: calc(100vh - 80px); }
    .hero-content h1 { font-size: 2.8em; }
    .hero-subtitle { font-size: 1em; }
}

/* ====================================
   Barre de progression
   ==================================== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(to right, var(--couleur-primaire), var(--couleur-secondaire));
    z-index: 1001;
    transition: width 0.1s linear;
}

/* ====================================
   Bouton retour en haut
   ==================================== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--couleur-primaire);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.3em;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
    z-index: 997;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.back-to-top:hover { background-color: var(--couleur-secondaire); }

/* ====================================
   Hero section
   ==================================== */
.hero-section {
    position: relative;
    min-height: calc(100vh - 130px);
    background-image: url('../images/photos/photo_boutique1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}
.hero-content h1 {
    color: #fff;
    font-size: 5.5em;
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4em;
    color: rgba(255,255,255,0.9);
    margin: 20px 0 40px;
    letter-spacing: 2px;
    font-weight: 400;
}
.hero-cta {
    display: inline-block;
    background-color: var(--couleur-secondaire);
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1em;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    background-color: var(--couleur-primaire);
}
.hero-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 2em;
    text-decoration: none;
    animation: bounce 2s infinite;
    z-index: 1;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(10px); }
}
@media (max-width: 768px) {
    .hero-section {
        min-height: calc(100vh - 90px);
        background-attachment: scroll;
    }
    .hero-content h1 { font-size: 3.5em; }
    .hero-subtitle { font-size: 1.1em; }
}

/* ====================================
   Lightbox tarifs
   ==================================== */
.tarif-img { cursor: zoom-in; }

#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
#lightbox.active { display: flex; }
.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
}
.lightbox-img {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border: 3px solid var(--couleur-secondaire);
    border-radius: 5px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    font-size: 1.5em;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-close:hover { background-color: rgba(255,255,255,0.2); }

/* ====================================
   Bouton zoom carrousel
   ==================================== */
.slide-zoom-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.1em;
    cursor: pointer;
    z-index: 11;
    opacity: 0;
    transition: opacity 0.2s, background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.carousel-container:hover .slide-zoom-btn { opacity: 1; }
.slide-zoom-btn:hover { background: rgba(0,0,0,0.8); }

/* ====================================
   Bouton mode sombre
   ==================================== */
.dark-mode-toggle {
    background: none;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: #fff;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background-color 0.2s;
    flex-shrink: 0;
}
.dark-mode-toggle:hover { border-color: var(--couleur-secondaire); background-color: rgba(255,255,255,0.1); }
.dark-mode-toggle::before { content: '☾'; }
.dark-mode .dark-mode-toggle::before { content: '☀'; }

/* Position desktop : coin supérieur droit */
@media (min-width: 769px) {
    .dark-mode-toggle {
        position: absolute;
        top: 12px;
        right: 5%;
    }
}
/* Position mobile : entre le logo et le burger */
@media (max-width: 768px) {
    .dark-mode-toggle { margin-left: auto; margin-right: 10px; }
}

/* ====================================
   Curseur personnalisé
   ==================================== */
.custom-cursor,
.custom-cursor * { cursor: none !important; }

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--couleur-secondaire);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}
.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 2px solid var(--couleur-primaire);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}
.cursor-ring.hovering {
    width: 56px;
    height: 56px;
    border-color: var(--couleur-secondaire);
}

/* ====================================
   Confetti
   ==================================== */
.confetti-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9000;
    animation: confetti-fall 1.4s ease-out forwards;
}
@keyframes confetti-fall {
    0%   { transform: translate(0, 0) rotate(0deg); opacity: 1; }
    100% { transform: translate(var(--vx), var(--vy)) rotate(var(--rot)); opacity: 0; }
}

/* ====================================
   Curseur clignotant (typewriter)
   ==================================== */
.typing-cursor {
    display: inline-block;
    animation: blink 0.8s step-end infinite;
    color: var(--couleur-secondaire);
    font-weight: 300;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ====================================
   Tooltips
   ==================================== */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 0.75em;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 5px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ====================================
   Note tarifs (remplace inline color)
   ==================================== */
.tarifs-note {
    text-align: center;
    font-style: italic;
    color: var(--texte-secondaire);
    margin-bottom: 20px;
}

/* ====================================
   Mode sombre — surcharges spécifiques
   ==================================== */
.dark-mode .retractation-note {
    background-color: #2a0000;
    border-color: #ff4444;
    color: #ff8888;
}
.dark-mode .hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.75), rgba(0,0,0,0.55));
}
.dark-mode footer {
    background-color: #0d0d1a;
}