/* ============================================================
   CONFIGURATION GLOBALE
   ============================================================ */
* {
    box-sizing: border-box;
}

:root {
    --vlb-gris-bleu: #8b94a3;
    --vlb-text-dark: #1a1a1a;
    --vlb-bg-light: #fbfbfc;
    --vlb-vert: #b0d4c1;
    --white: #ffffff;
}

body, html {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--vlb-bg-light); /* Le fond global gris très clair */
    color: var(--vlb-text-dark);
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* ============================================================
   IMAGES D'ARRIÈRE-PLAN (NUAGES)
   ============================================================ */
.tache-fond {
    position: fixed;
    z-index: 0; /* Couche intermédiaire : au-dessus du fond, en dessous du texte */
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    pointer-events: none; /* Les clics passent à travers */
    display: block !important;
}

.tache-1 { 
    width: 600px; 
    height: 600px; 
    background-image: url('image1.png') !important; 
    top: -50px; 
    left: -150px; 
}

.tache-2 { 
    width: 500px; 
    height: 500px; 
    background-image: url('image2.png') !important; 
    bottom: -50px; 
    right: -100px; 
}

.tache-3 { 
    width: 400px; 
    height: 400px; 
    background-image: url('image3.png') !important; 
    top: 40%; 
    left: 30%; 
    opacity: 0.3; 
}

/* ============================================================
   EN-TÊTE ET PIED DE PAGE
   ============================================================ */
header {
    background-color: var(--vlb-gris-bleu);
    color: var(--white);
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
    z-index: 10; /* Au-dessus des nuages */
    display: flex;
    justify-content: center;
    align-items: center;
}
    
footer {
    background-color: var(--vlb-gris-bleu);
    color: var(--white);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    margin-top: auto;
    position: relative;
    z-index: 10; /* Au-dessus des nuages */
}

.btn-retour {
    position: absolute;
    left: 20px;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}
.btn-retour.cache { display: none; }

/* ============================================================
   STRUCTURE DES PAGES
   ============================================================ */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 10; /* Au-dessus des nuages */
    background: transparent !important;
}

.page-section {
    display: none; 
    width: 100%;
    background: transparent !important;
}

/* SECTION ACCUEIL */
#page-accueil { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    width: 100%; 
    flex: 1; 
}

.titre-accueil { 
    font-size: 2.5rem; 
    font-weight: 300; 
    margin-bottom: 50px; 
    text-align: center; 
    color: var(--vlb-gris-bleu); 
}

.grid-accueil { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px; 
    width: 100%; 
    max-width: 800px; 
}
    
.card-menu {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.card-menu:active { border-color: var(--vlb-vert); }

/* ============================================================
   FORMULES ET SÉLECTEURS
   ============================================================ */
h1 { font-size: 2.2rem; margin-bottom: 25px; text-align: center; }

.selecteur-boite {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    background: #eee;
    border-radius: 10px;
    padding: 5px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.btn-boite {
    flex: 1;
    padding: 15px 10px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #555;
    transition: all 0.3s;
}
.btn-boite.actif {
    background: var(--vlb-gris-bleu);
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.onglets-container { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin-bottom: 30px; 
    flex-wrap: wrap; 
}

.onglet { 
    padding: 12px 25px; 
    background: white; 
    border: 2px solid #ddd; 
    border-radius: 8px; 
    font-size: 1.1rem; 
    font-weight: bold; 
    cursor: pointer; 
}
.onglet.actif { 
    border-color: var(--vlb-vert); 
    background-color: var(--vlb-vert); 
    color: white; 
}

.formules-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 25px; 
    width: 100%;
    align-items: start;
}
.formules-grid.cache { display: none; }
.section-boite.cache { display: none; }

.carte-formule {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--vlb-gris-bleu);
}

.carte-formule h2 { 
    margin-top: 0; 
    color: var(--vlb-gris-bleu); 
    border-bottom: 2px solid #eee; 
    padding-bottom: 10px; 
    font-size: 1.4rem;
}

.prix { 
    font-size: 2.2rem; 
    font-weight: bold; 
    color: var(--vlb-vert); 
    margin: 10px 0; 
}

.paiement { 
    font-size: 0.9rem; 
    color: #666; 
    font-style: italic; 
    margin-bottom: 15px; 
    line-height: 1.4;
}

/* ============================================================
   ACCORDÉONS ET TEXTES
   ============================================================ */
details { margin-top: 15px; background: #f9f9f9; border-radius: 8px; padding: 10px; }
summary { font-weight: bold; cursor: pointer; padding: 5px; outline: none; color: var(--vlb-text-dark); }
details ul { padding-left: 20px; font-size: 0.95rem; margin-top: 10px; line-height: 1.4; }
details li { margin-bottom: 10px; }
    
.sub-info { display: block; font-size: 0.8rem; color: #777; margin-top: 2px; font-style: italic; }
.mentions { font-size: 0.85rem; color: #666; margin-top: 15px; padding-top: 10px; border-top: 1px solid #ddd; line-height: 1.5; }
    
.notice-lecon {
    margin-top: 40px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #555;
    text-align: center;
    border: 1px solid #ddd;
}

/* ============================================================
   PRESTATIONS
   ============================================================ */
.liste-prestations { list-style: none; padding: 0; margin: 0; }
.liste-prestations li { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px 0; 
    border-bottom: 1px solid #eee; 
    font-size: 1rem; 
    color: var(--vlb-text-dark); 
}
.liste-prestations li:last-child { border-bottom: none; }
.liste-prestations .presta-prix { 
    font-weight: bold; 
    color: var(--vlb-vert); 
    font-size: 1.2rem; 
    white-space: nowrap; 
    margin-left: 15px; 
}

/* ============================================================
   RESPONSIVE (SMARTPHONES ET QR CODE)
   ============================================================ */
@media (max-width: 768px) {
    .grid-accueil { grid-template-columns: 1fr; }
    .titre-accueil { font-size: 1.8rem; margin-bottom: 30px; }
    h1 { font-size: 1.8rem; }
    .selecteur-boite { flex-direction: column; }
    .btn-boite { padding: 15px; font-size: 1rem; }
    header { font-size: 1rem; padding: 15px 10px; }
    .btn-retour { position: relative; left: 0; margin-right: 10px; font-size: 0.8rem; padding: 6px 10px;}
    header span { flex: 1; text-align: right; }
}

/* Style pour les liens vers les outils externes */
.lien-outil {
    color: var(--vlb-gris-bleu);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid var(--vlb-vert);
    transition: all 0.3s ease;
    padding-bottom: 2px;
}

.lien-outil:hover {
    color: var(--white);
    background-color: var(--vlb-vert);
    border-radius: 4px;
    padding: 2px 5px;
}
