/* ========================= */
/*         base.css         */
/* ========================= */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 160px; /* Ajuste selon la hauteur du header */
}
@media (max-width: 769px) {
  html {
    scroll-padding-top: 67px; /* header sticky + nav */
  }
}

body { font-family: Arial, sans-serif; margin: 0; padding: 0; text-align: center; background: #f0f0f0; }




/* COULEURS PRINCIPALES */
:root {
  --violet: #774695;
  --orange: #F39519;
  --light-bg: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* TITRES */
h1, h2, h3 {
  color: var(--violet);
  margin-bottom: 1rem;
}

/* Liens */
a {
    color: #774695;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: #F39519;
    text-decoration: underline;
}

i.fas {
    margin-right: 8px;
    color: #774695 ;
}

:focus-visible {
  outline: 2px dashed var(--orange);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}


/* ========================= */
/*         layout.css         */
/* ========================= */
header {
  background: #f0f0f0;
  background: linear-gradient(to right, #774695, #F39519);
  background: white;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: center; /* centre horizontalement */
  align-items: center;     /* centre verticalement */
  height: 80px;            /* fixe la hauteur du header si nécessaire */

  z-index: 1001;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 110px;
  object-fit: contain;
}

/* Sticky seulement sur desktop */
@media (min-width: 769px) {
  header {
    position: sticky;
    top: 0;
  }
}

@media (max-width: 768px) {
  header {
    position: relative; /* important pour le scroll + JS mobile */
  }
}/* Sur desktop, le header est sticky → on décolle le nav un peu */

nav {
  position: sticky;
  top: 0;
  z-index: 1001;
  background: #ffffff;
  color: #774695;
  width: 100%;
  padding: 10px 0;
}
/* Sticky seulement sur desktop */
@media (min-width: 769px) {
  nav {
    top: 120px;
  }
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}
nav ul li {
    display: inline;
}
nav ul li a {
    color: #774695;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
}
nav ul li a:hover {
    background: #333;
    border-radius: 5px;
}
.menu-icon {
    font-size: 30px;
    cursor: pointer;
    margin-right: 20px;
}

nav {
  background: linear-gradient(to right, #774695, #F39519);
}

nav ul li a {
  color: white;
}
nav ul li a:hover {
  background: #F39519;
  color: white;
}


section {padding:10px;}
.container { max-width: 800px; margin: auto; background: white; padding: 20px; border-radius: 10px; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
footer { background: white; color: black; padding: 20px; margin-top: 20px; font-size: 14px; }

/* ========================= */
/*         components.css    */
/* ========================= */

/* listes */
.liste-check {
  list-style: none;
  padding: 0;
  margin: 2em auto;
  max-width: 600px;
}

.liste-check li {
  position: relative;
  padding-left: 2em;
  margin-bottom: 1em;
  line-height: 1.6;
  text-align: left;
}

.liste-check li::before {
  content: "";
  display: inline-block; /* obligatoire pour voir la forme */
  width: 0.6em;
  height: 0.6em;
  background-color: #F39519;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  position: absolute;
  left: 0;
  top: 0.5em; /* ajuste verticalement */
}

.liste {
  list-style: none;
  padding: 0;
  margin: 2em auto;
  max-width: 600px;
}

.liste li {
  position: relative;
  padding-left: 2em;
  margin-bottom: 1em;
  line-height: 1.6;
  text-align: left;
}

.liste li::before {
  content: "";
  width: 0.6em;
  height: 0.6em;
  background-color: #F39519;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 0.6em;
}






/* boutons */
.btn-action {
  display: inline-block;
  padding: 0.5em 1.2em;
  background-color: #F39519;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  border-radius: 1.5rem;
  text-decoration: none;
  letter-spacing: 0.4px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-action:hover,
.btn-action:focus {
  background-color: #d97e14;
  transform: translateY(-1px);
}



/* Tableau d'horaires */
.tabs { display: flex; justify-content: center; margin-bottom: 20px; }
.tab {
  padding: 10px 20px;
  cursor: pointer;
  background: #eee;
  color: #774695;
  border: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  margin: 0 5px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.tab:hover {
  background: #f3e6fa;
}

.tab.active {
  background: white;
  color: var(--violet);
  border-color: var(--violet);
  position: relative;
  z-index: 1;
}
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { border: 1px solid #ddd; padding: 15px; text-align: center; }
th { background: #222; color: white; }

/* Liens vers réseaux sociaux */
.social-links {
    display: flex;
    justify-content: center; /* ou "start" si tu veux aligner à gauche */
    gap: 10px; /* ajuste l’espace entre les logos ici */
    margin-top: 10px; /* optionnel pour espacer du texte au-dessus */
}

/* Adresse */
.adresse-bloc {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: #f8f8f8;
    border-left: 5px solid #774695; /* couleur violette du branding */
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: left;
}
.adresse-bloc i {
    font-size: 24px;
    color: #774695;
    margin-top: 4px;
}
.adresse-bloc a:hover {
    text-decoration: underline;
    color: #F39519; /* couleur orange du branding */
}

.contact-infos {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: #f8f8f8;
    border-left: 5px solid #774695;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.contact-item i {
    font-size: 20px;
    color: #774695;
    margin-top: 4px;
}

.contact-item a {
    color: #774695;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #F39519;
    text-decoration: underline;
}

/* Bouton flottant back to top */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #774695;
  padding: 10px 15px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  font-size: 18px;
  display: none;
  z-index: 1000;
  cursor: pointer;
}
.back-to-top i {
  margin-right: 0px;
  color: white;
}
.back-to-top:hover i{
  color: #F39519;
}


/* pour etre plus responsive */
@media (max-width: 768px) {
  .services {
    flex-direction: column;
    align-items: center;
  }
  .service {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 10px;
  }
}
table {
  width: 100%;
  border-collapse: collapse;
}

@media (max-width: 600px) {
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
@media (max-width: 600px) {
  h2 {
    font-size: 24px;
  }
  h3 {
    font-size: 20px;
  }
  nav ul li a {
    font-size: 16px;
  }
}

/* burger menu */
.menu-toggle {
    display: none; /* cacher par défaut */
}
@media (max-width: 768px) {
  .menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3e6fa;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  margin-left: auto;
  margin-right: 20px;
  padding: 0; /* important : pas de padding parasite */
}

.menu-toggle i {
  font-size: 20px;
  margin: auto;
  color: var(--violet);
  transition: transform 0.3s ease;
  line-height: 1; /* évite les décalages verticaux */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%; /* pour forcer le centrage vertical */
}


/* Icône croix quand le menu est ouvert */
.menu-toggle.open i::before {
  content: "\f00d"; /* Font Awesome "times" */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

  #nav-links {
    display: flex;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 1;
    transition: max-height 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    z-index: 999;
  }

  #nav-links.active {
    max-height: 400px; /* assez grand pour afficher tous les liens */
    padding: 10px 0;
  }

  nav ul li {
    display: block;
  }

  nav ul li a {
    display: block;
    padding: 12px;
    color: var(--violet);
    font-weight: bold;
    font-size: 18px;
  }

  nav ul li a:hover {
    background: #f3e6fa;
    color: var(--orange);
    border-radius: 5px;
  }

}


/* TARIFS */
/* Conteneur général des cartes principales */
.tarifs-cards {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

/* Sur desktop : plusieurs cartes principales par ligne */
@media (min-width: 768px) {
  .tarifs-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Carte principale (ex : Entrée simple) */
.tarif-card {
  background: #fff;
  border: 1px solid #ddd;
  border-left: 5px solid #774695;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: left;
  transition: transform 0.2s ease;
}

.tarif-card:hover {
  transform: translateY(-3px);
}

.tarif-card h3 {
  margin-top: 0;
  color: #774695;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

/* Conteneur des mini-cartes */
.sous-tarifs {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr; /* toujours une colonne, même sur grand écran */
}

/* Mini-carte (tarif individuel) */
.mini-card {
  background: #f8f8f8;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: #333;
  position: relative;
}

.right-part {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.info-badge {
  position: relative;
  cursor: pointer;
  touch-action: manipulation; /* pour tenter de corriger la lenteur sur iphone */
  display: inline-block;
  font-size: 1rem;
  color: var(--violet);
}

.info-badge i {
  font-size: 1rem;
  transition: color 0.3s;
}

@media (min-width: 768px) {
.info-badge:hover i {
  color: var(--orange);
}
}

.tooltip {
  position: absolute;
  top: 140%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 0.8rem;
  width: 220px;
  white-space: normal;
  text-align: left;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 0.3s ease;
}

/* Prévenir le pré-affichage des liens sur iOS, pour qu'ils s'affichent en même temps que la tooltip */
.tooltip a {
  opacity: 0;
  transition: opacity 0.2s ease;
}


.info-badge.active .tooltip a {
  opacity: 1;
}

.info-badge.active .tooltip {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

@media (hover: hover) {
  .info-badge:hover .tooltip {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  .info-badge:hover .tooltip a {
    opacity: 1;
  }
}


.mini-card em {
  color: #333;
  font-style: italic;
}

/* Horaires */
.opening-message {
  font-size: 1.2rem;
  font-weight: bold;
  color: #774695; /* ou la couleur secondaire #F39519 */
  padding: 1rem 0;
}

.horaires-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  align-items: center; /* pour centrer les cartes sur desktop */
}

.horaire-item {
  background: #f8f8f8;
  padding: 12px 20px;
  border-radius: 8px;
  border-left: 5px solid #774695;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  width: 100%;
  max-width: 400px; /* limite la largeur sur desktop */
}
@media (max-width: 768px) {
  .horaire-item {
    width: 290px;
  }
}

.horaire-item strong {
  color: #333;
}

.horaire-item span {
  font-weight: bold;
  color: #333;
}
.badge-ferme {
  background: #922b21;
  color: white !important;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


.badge-ouvert {
  background: var(--violet);
  color: #fff !important;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


.horaire-item.closed {
  opacity: 0.7;
}
/*
#mauvais-temps .cta-btn {
  display: inline-block;
  margin-top: 15px;
  background-color: #774695;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

#mauvais-temps .cta-btn:hover {
  background-color: #F39519;
}
*/

        .services {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service {
  background: #f8f8f8;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 100%;
  box-sizing: border-box;
}

div.services :hover {
  transform: translateY(-3px);
}
div.service :hover {
  transform: none;
}
@media (min-width: 769px) {
  .services {
    flex-direction: row;
  }

  .service {
    flex: 1;
  }
}

/*
#mauvais-temps .container {
  text-align: center;
}

#mauvais-temps h2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  text-align: center;
}

#mauvais-temps h2 i {
  margin: 0;
  color: #774695;
}
.cta-group {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
*/

.faq .faq-item {
  border: 1px solid #ddd;
  border-left: 5px solid var(--violet);
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  background: white;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 15px 20px;
  font-size: 1rem;
  font-weight: bold;
  color: var(--violet);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  color: var(--orange);
  font-weight: bold;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: "–";
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #222;
  background: #f9f9f9;
}

.faq-item.active .faq-answer {
  padding: 15px 20px;
  max-height: 500px;
}


/* google form */
@media (max-width: 768px) {
  .google-form {
  width: 320px;}
}
@media (min-width: 769px) {
  .google-form {
  width: 700px;
}
}