html, body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: env(safe-area-inset-bottom);
    font-family: Arial, sans-serif;
}

body {
    background-color: darkslategrey;
    background-image: url('village10.jpg');
    background-size: cover;
}


a{
    color: black;
    text-decoration: none;
}
a:hover {
  text-decoration: underline;
}


header{
    text-align: center;
}
h1{
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    font-weight: bold;
    font-size: 50px;

}



/* ===== TITRE PRINCIPAL : l'enseigne du village ===== */
/* Même hauteur que le hamburger (58px), pour former une paire */
.titre-principal{
    position: fixed;
    left: 90px;
    top: 14px;
    margin: 0;
    height: 58px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    box-sizing: border-box;
    background-color: rgba(62, 42, 20, 0.92);
    border: 3px solid #F4D03F;
    border-radius: 12px;
    box-shadow:
        0 5px 0 rgba(20, 25, 35, 0.35),
        0 12px 24px rgba(20, 25, 35, 0.30);
    font-size: 32px;
    line-height: 1;
    font-weight: bold;
    letter-spacing: 0.5px;
    white-space: nowrap;
    gap: 8px;
    z-index: 9000;
}

/* "Le" plus discret, "petit" en crème, "bled" en jaune soleil :
   l'œil retient le mot qui compte */
.titre-le {
    color: rgba(251, 243, 216, 0.75);
    font-size: 0.7em;
    font-weight: normal;
}

.titre-petit {
    color: #FBF3D8;
}

.titre-bled {
    color: #F4D03F;
}

@media (max-width: 767px) {
    /* Sur mobile, l'image de fond porte le message :
       les plaques se font discrètes (translucides + léger flou
       derrière, pour que le texte reste lisible) */
    .titre-principal{
        left: 60px;
        top: 10px;
        height: 40px;          /* même hauteur que le hamburger mobile */
        padding: 0 14px;
        font-size: 22px;
        border-width: 2px;
        border-radius: 8px;
        gap: 6px;
        background-color: rgba(62, 42, 20, 0.55);
        border-color: rgba(244, 208, 63, 0.75);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
        box-shadow:
            0 3px 0 rgba(20, 25, 35, 0.22),
            0 6px 14px rgba(20, 25, 35, 0.20);
        text-shadow: 0 1px 3px rgba(20, 25, 35, 0.55);
    }
}

@media (max-width: 480px) {
    .titre-principal{
        left: 58px;
        padding: 0 12px;
        font-size: 19px;
    }
}




td {
   padding-bottom: 20px;
   padding-top: 20px;
   padding-right: 20px;
   padding-left: 20px;
}





/* ===== Bouton "Mon Espace" : en haut à droite sur PC, style maisonnette ===== */
.containercenter{
    position: fixed;
    top: 34px;
    right: 26px;
    left: auto;
    transform: none;
    display: flex;
    flex-wrap: wrap;
    z-index: 9000;
}


.containerE {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    min-height: auto;
    background-color: #F7ECC6;                      /* crème des maisons */
    background-image: linear-gradient(180deg, #FBF3D8 0%, #F2E2B0 100%);
    border: 3px solid #5C3A1E;                      /* trait brun de l'illustration */
    border-radius: 0 0 12px 12px;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
    padding: 12px 28px;
    box-shadow: 0 6px 0 rgba(20, 25, 35, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

/* Le toit brun, comme les maisons du village */
.containerE::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 22px);
    height: 0;
    border-bottom: 20px solid #6B4226;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
}

/* La petite lucarne sur le toit */
.containerE::after {
    content: "";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 8px;
    background: #F1DFAE;
    border: 2px solid #1E4A63;                      /* bleu des fenêtres */
    border-radius: 2px;
}

.containerE:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 0 rgba(20, 25, 35, 0.30),
                0 12px 22px rgba(20, 25, 35, 0.20);
}

.containerE:hover a {
    text-decoration: none;
}


.containerE a {
    color: #3E2A14;
    letter-spacing: 0.5px;
}




.containerE p{
    margin: 0;
    padding: 0;
    transform: translate(0, 0px);
    font-size: 22px;
    color: #3E2A14;
    text-align: center;
}

/* Petite maison devant le texte */
.containerE p a::before {
    content: "🏡 ";
}








@media (max-width: 767px) {

        /* Le bouton reste en haut à droite, comme sur PC :
           cette media query attrapait les tablettes (481–767px) et
           les renvoyait au centre de l'écran. */
        .containercenter{
        position: fixed;
        top: 30px;
        right: 20px;
        left: auto;
        bottom: auto;
        transform: none;
        min-height: auto;
        }
        .containerE{
    
        width: auto;
        height: auto;
        padding: 10px 20px;
        }

        .containerE p{
            font-size: 20px;
            
        }


}





@media (max-width: 768px) {
    body {
        background-image: url('afficheMV1.png');
    }
}

section {
    flex: 1;
    padding-bottom: 40px;
}

#bas-page {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Grand écran : même brun que l'enseigne et le hamburger, liseré soleil */
    background-color: rgba(62, 42, 20, 0.8);
    border-top: 3px solid #F4D03F;
    color: white;
    text-align: center;
    padding: 15px 10px;
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
    font-size: 18px;
    margin-top: auto;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 0.7s;
}

#bas-page a {
    color: white;
    text-decoration: none;
    display: block;
    margin-top: 5px;
}

#bas-page a:hover {
    text-decoration: underline;
}

/* Lien "En savoir +" : pastille soleil dans le bandeau */
#bas-page a#ouvrir-info {
    display: inline-block;
    margin-top: 0;
    color: #F4D03F;
    font-weight: bold;
    text-decoration: none;
    padding: 4px 14px;
    border: 2px solid rgba(244, 208, 63, 0.5);
    border-radius: 20px;
    background: rgba(244, 208, 63, 0.12);
    transition: all 0.25s ease;
}

#bas-page a#ouvrir-info:hover {
    background: #F4D03F;
    color: #3E2A14;
    text-decoration: none;
}

.footer-texte {
    color: white;
    font-weight: bold;
    font-size: 16px;
    margin: 0;
}

.containercenter {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 0.7s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ===== BULLE D'INFO "En savoir +" ===== */
#bulle-info {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 78vh;
    overflow-y: auto;
    background-color: #F7ECC6;
    background-image: linear-gradient(180deg, #FBF3D8 0%, #F2E2B0 100%);
    color: #3E2A14;
    border: 3px solid #5C3A1E;
    border-top: 14px solid #6B4226;
    border-radius: 12px 12px 16px 16px;
    box-shadow:
        0 8px 0 rgba(20, 25, 35, 0.32),
        0 20px 40px rgba(20, 25, 35, 0.45);
    padding: 20px;
    z-index: 9999;
    animation: fadeInBulle 0.4s ease;
}

#fermer-bulle {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #C0522A;
    font-weight: bold;
    z-index: 2;
}

#fermer-bulle:hover {
    color: #A93226;
}

@keyframes fadeInBulle {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bulle-contenu h3 {
    margin-top: 0;
    color: #3E2A14;
}

.bulle-contenu p, .bulle-contenu ul li {
    font-size: 15px;
    color: #3E2A14;
    line-height: 1.5;
}

.bulle-contenu ul {
    text-align: left;
    padding-left: 22px;
    margin: 10px 0;
}

.bulle-contenu ul li {
    margin-bottom: 6px;
}

.bulle-contenu ul li::marker {
    color: #6B4226;
}

/* Animation Voir Plus */
.details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.bulle-contenu .plans {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 14px;
}

/* Les forfaits : petites maisonnettes crème */
.bulle-contenu .plan {
    background-color: #FFFDF5;
    border: 2px solid #5C3A1E;
    border-top: 8px solid #6B4226;
    border-radius: 8px 8px 10px 10px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 3px 0 rgba(20, 25, 35, 0.20);
}

.bulle-contenu .plan h3 {
    font-size: 17px;
    margin-bottom: 4px;
}

.plan-img {
    width: 100px;
    height: auto;
    object-fit: contain;
    margin: 10px auto;
    display: block;
    border-radius: 8px;
}

/* Le prix : mis en valeur */
.bulle-contenu .price {
    display: inline-block;
    background: linear-gradient(180deg, #FFE066 0%, #F4C531 100%);
    color: #3E2A14;
    font-weight: bold;
    font-size: 17px;
    border: 2px solid #5C3A1E;
    border-radius: 20px;
    padding: 5px 16px;
    margin: 6px 0 8px;
    box-shadow: 0 2px 0 #B98A1F;
}

/* ===== OFFRE "5 interactions gratuites / an" : la pancarte cadeau ===== */
.offre-gratuite {
    position: relative;
    margin: 20px 0 6px;
    padding: 18px 16px 14px;
    background: linear-gradient(180deg, #FFE066 0%, #F4C531 100%);
    border: 3px solid #5C3A1E;
    border-radius: 12px;
    box-shadow: 0 5px 0 #B98A1F, 0 10px 20px rgba(20, 25, 35, 0.20);
    text-align: center;
}

/* Le cadeau, en médaillon posé sur le bord haut de la pancarte */
.offre-cadeau {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    line-height: 32px;
    font-size: 19px;
    background: #FBF3D8;
    border: 3px solid #5C3A1E;
    border-radius: 50%;
    box-sizing: border-box;
}

.bulle-contenu .offre-gratuite .offre-titre {
    margin: 6px 0 2px;
    font-size: 20px;
    font-weight: bold;
    color: #3E2A14;
    letter-spacing: 0.3px;
}

.bulle-contenu .offre-gratuite .offre-sous {
    margin: 0;
    font-size: 14px;
    color: #5C3A1E;
    font-weight: bold;
}

/* Bouton Voir plus : chemin vert */
.voir-plus {
    background-color: rgba(76, 140, 43, 0.12);
    border: 2px solid rgba(76, 140, 43, 0.45);
    color: #2F6B1C;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.25s ease;
}

.voir-plus:hover {
    background-color: #4C8C2B;
    color: #FBF3D8;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(76, 140, 43, 0.4);
}

@media (max-width: 500px) {
    #bulle-info {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: 92%;
        bottom: 70px;
    }
}


/* Menu : volet latéral coulissant.
   Toujours rendu, garé hors écran à gauche ; .open le fait glisser. */
      .menu {
        display: block;
        position: fixed;
        z-index: 9999;
        top: 0;
        left: 0;
        bottom: 0;
        height: 100dvh;
        width: 300px;
        max-width: 85vw;
        margin: 0;
        background-color: rgba(62, 42, 20, 0.98);
        padding: 90px 16px 24px;
        box-sizing: border-box;
        text-align: left;
        border: none;
        border-right: 3px solid #F4D03F;
        border-radius: 0;
        box-shadow: 12px 0 35px rgba(0, 0, 0, 0.45);
        overflow-y: auto;
        transform: translateX(calc(-100% - 40px));
        transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
        overscroll-behavior: contain;
      }

      .menu.open {
        transform: translateX(0);
      }

      /* Voile derrière le volet */
      .menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 9998;
        background: rgba(20, 25, 35, 0.45);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
      }

      .menu-backdrop.visible {
        opacity: 1;
        pointer-events: auto;
      }

      .menu li {
        margin: 2px 0;
        list-style: none;
      }

      .menu a {
        display: block;
        color: rgba(250, 240, 207, 1.0);
        text-decoration: none;
        font-size: 16px;
        padding: 11px 14px;
        border-radius: 8px;
        transition: background-color 0.18s ease, padding-left 0.18s ease;
      }

      .menu a:hover {
        text-decoration: none;
        cursor: pointer;
        background-color: rgba(244, 208, 63, 0.16);
        padding-left: 20px;
      }

/* INSCRIPTION (ou Mon Espace si connecté) : l'action principale.
   Bouton soleil pleine largeur, détaché du reste du volet. */
      .menu a.menu-cta {
        background: linear-gradient(180deg, #FFE066 0%, #F4C531 100%);
        color: #3E2A14;
        font-weight: bold;
        font-size: 17px;
        text-align: center;
        padding: 14px 16px;
        border: 2px solid #F7ECC6;
        border-radius: 10px;
        box-shadow: 0 4px 0 #8A5A18;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
      }

      .menu a.menu-cta:hover {
        background: linear-gradient(180deg, #FFE885 0%, #FFD645 100%);
        padding-left: 16px; /* annule le décalage des liens normaux */
        transform: translateY(-2px);
        box-shadow: 0 6px 0 #8A5A18, 0 8px 16px rgba(244, 208, 63, 0.35);
      }

      .menu a.menu-cta:active {
        transform: translateY(2px);
        box-shadow: 0 1px 0 #8A5A18;
      }

      /* Trait de séparation sous le bouton principal */
      .menu li:first-child {
        padding-bottom: 6px;
        margin-bottom: 10px;
        border-bottom: 2px dashed rgba(244, 208, 63, 0.35);
      }
      
      /* Bouton hamburger : plaque de bois assortie à l'enseigne,
         alignée sur sa hauteur (sur PC).
         ⚠️ Les <span> sont dans une balise <center> : pas de flex ici,
         sinon le <center> se rétrécit et les barres disparaissent. */
      .hamburger {
        position: fixed;
        top: 14px;
        left: 16px;
        z-index: 10000;
        width: 58px;
        height: 58px;
        display: block;
        padding-top: 14px;
        box-sizing: border-box;
        background-color: rgba(62, 42, 20, 0.92);
        border-radius: 12px;
        border: 3px solid #F4D03F;
        cursor: pointer;
        box-shadow:
            0 5px 0 rgba(20, 25, 35, 0.35),
            0 12px 24px rgba(20, 25, 35, 0.30);
        transition: transform 0.15s ease;
      }

      .hamburger:hover {
        transform: scale(1.06);
      }

      .hamburger center {
        display: block;
        width: 100%;
      }

      /* Barres : largeur FIXE (un % dépendrait du parent <center>) */
      .hamburger span {
        transform: none;
        width: 28px;
        height: 4px;
        border-radius: 2px;
        background-color:  rgba(250, 240, 207 , 1.0);
        display: block;
        margin: 0 auto 5px;
        transition: transform 0.28s ease, opacity 0.2s ease;
      }

      .hamburger span:last-child {
        margin-bottom: 0;
      }


/* Les barres se croisent en X quand le volet est ouvert */
 .hamburger.active span:nth-child(1) {
  transform: translate(0, 9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translate(0, -9px) rotate(-45deg);
}

/* ===== MOBILE / TABLETTE : hamburger compact =====
   (placé APRÈS la règle de base : à spécificité égale,
   c'est la dernière déclarée qui l'emporte) */
@media (max-width: 767px) {
      .hamburger {
        top: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
        padding-top: 10px;
        border-width: 2px;
        border-radius: 8px;
        /* Translucide comme l'enseigne : l'image de fond respire */
        background-color: rgba(62, 42, 20, 0.55);
        border-color: rgba(244, 208, 63, 0.75);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
        box-shadow:
            0 3px 0 rgba(20, 25, 35, 0.22),
            0 6px 14px rgba(20, 25, 35, 0.20);
      }

      .hamburger span {
        width: 20px;
        height: 3px;
        margin: 0 auto 4px;
        box-shadow: 0 1px 2px rgba(20, 25, 35, 0.45);
      }

      .hamburger.active span:nth-child(1) {
        transform: translate(0, 7px) rotate(45deg);
      }

      .hamburger.active span:nth-child(3) {
        transform: translate(0, -7px) rotate(-45deg);
      }
}

      @media (max-width: 767px) {
    .menu{
        width: min(320px, 82vw);
        padding-top: 80px;
    }
    .containercenter{
        background-color: rgba(51, 51, 51, 0);
        width: auto;
        border-radius: 10px;
        padding-top: 0;
        padding-bottom: 0;
    }



    #bas-page {
    padding: 15px 10px;
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
    /* Mobile : on garde le noir d'origine (le contraste avec le haut
       translucide est assumé) */
    background-color: rgba(0, 0, 0, 0.8);
    border-top: none;
}

#bas-page a {
    color: white;
    text-decoration: none;
    display: block;
    margin-top: 5px;
}



.footer-texte {
    color: white;
    font-weight: bold;
    font-size: 16px;
    margin: 0;
}  
   
}


.info-contenu{
    background-color: transparent;
    border-radius: 12px;
    padding: 6px 4px;
    box-shadow: none;
    max-width: 700px;
    margin: auto; 
    text-align: center;
}

/* Accents de la bulle, dans la palette du village */
.accent{
color: #1E4A63;   /* bleu fenêtre */
font-weight: bold;
}
.warning{
color: #C0522A;   /* rouge tuile */
font-weight: bold;
}
.success{
   color: #2F6B1C; /* vert prés */
   font-weight: bold;
}
/* MOBILE EXPERIENCE - CACHER MON ESPACE */
/* MOBILE EXPERIENCE - CACHER MON ESPACE */
@media (max-width: 480px) {
    .containerE {
        display: none !important; /* Cache Mon Espace sur mobile */
    }
    body {
        margin: 0 !important;
        padding: 0 !important;
        min-height: 100vh !important;
        touch-action: auto !important; /* Permet interactions tactiles */
    }
}