/* ================================================================
   LUMINA BROCÉLIANDE — style.css (OPTIMISÉ v3 + BOUTIQUE FUSION)
   Google Fonts chargé via <link> dans le HTML
   ================================================================ */

/* --- 1. VARIABLES --- */
:root {
  --vert-logo:    #3A5A40;
  --vert-sombre:  #243027;
  --dore-logo:    #A68A56;
  --beige-clair:  #f9f3e7;
  --texte-noir:   #1A1A1A;
  --texte-blanc:  #FDFBF7;
  --shadow:       0 4px 15px rgba(0,0,0,0.15);
  --shadow-hover: 0 12px 35px rgba(0,0,0,0.25);
  --transition:   all 0.3s cubic-bezier(0.4,0,0.2,1);

  --bg-body:    var(--vert-sombre);
  --bg-card:    var(--beige-clair);
  --bg-header:  var(--beige-clair);
  --color-card: var(--texte-noir);
  --color-body: var(--texte-blanc);   /* texte sur fond sombre du body */
  --color-nav:  var(--vert-logo);
  --border-card: rgba(166,138,86,0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-body:    #121212;
    --bg-card:    #1E1E1E;
    --bg-header:  #1E1E1E;
    --color-card: #E8E8E8;            /* texte sur card sombre */
    --color-body: var(--texte-blanc); /* texte sur body sombre */
    --color-nav:  var(--beige-clair);
    --border-card: #333;
    --burger-bg : #E8E8E8;
  }
}

/* --- 2. RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--bg-body);
  color: var(--color-body);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  text-align: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

/* --- 3. KEYFRAMES --- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes barGrow {
  from { width: 0; }
  to   { width: 50px; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0   rgba(166,138,86,0.45); }
  50%       { box-shadow: 0 0 0 10px rgba(166,138,86,0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes sidenavIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --- 4. HEADER --- */
header {
  background: var(--bg-header);
  padding: 10px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 2000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  animation: fadeInDown 0.3s ease both;
}

.headerpresentation {
  display: flex;
  align-items: center;
}
.headerpresentation img,
header .logo img {
  transition: var(--transition);
  display: block;
}
.headerpresentation a:hover img,
header .logo:hover img {
  animation: float 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(166,138,86,0.45));
}

.sansbg {
  display: flex;
  gap: 8px;
}
.sansbg button,
.sansbg a {
  background: transparent;
  color: var(--color-nav);
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  position: relative;
  transition: color 0.25s ease;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
}
.sansbg button::after,
.sansbg a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--dore-logo);
  transition:
    width 0.3s cubic-bezier(0.4,0,0.2,1),
    left  0.3s cubic-bezier(0.4,0,0.2,1);
  transform: translateX(-50%);
}
.sansbg button:hover::after,
.sansbg a:hover::after { width: 80%; }
.sansbg button:hover,
.sansbg a:hover         { color: var(--dore-logo); }
.sansbg button:focus-visible,
.sansbg a:focus-visible {
  outline: 2px solid var(--dore-logo);
  outline-offset: 3px;
  border-radius: 4px;
}

header .logo {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

/* --- 5. MENU LATÉRAL (mobile) --- */
.mySidenav {
  position: fixed;
  top: 0;
  left: 80px;
  right: 0;
  bottom: 0;
  height: 100vh;
  background-color: var(--vert-logo);
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  gap: 12px;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mySidenav.is-open {
  opacity: 1;
  visibility: visible;
}
.mySidenav button,
.mySidenav a {
  background: transparent;
  color: var(--beige-clair);
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 20px;
  transition: color 0.2s ease, letter-spacing 0.25s ease;
  box-shadow: none;
  text-decoration: none;
  display: inline-block;
}
.mySidenav button:hover,
.mySidenav a:hover {
  color: var(--dore-logo);
  letter-spacing: 2px;
}
.mySidenav button:focus-visible,
.mySidenav a:focus-visible {
  outline: 2px solid var(--dore-logo);
  outline-offset: 3px;
  border-radius: 4px;
}
#closeBtn {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 1.5rem;
  padding: 8px;
}
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  background-color: var(--color-nav);
  transition: background-color 0.25s ease;
}
.hamburger:hover .hamburger-inner,
.hamburger:hover .hamburger-inner::before,
.hamburger:hover .hamburger-inner::after {
  background-color: var(--dore-logo);
}

/* --- 6. HÉRO --- */
.titretarif {
  padding: 20px 5%;
  animation: fadeInUp 0.65s ease both;
}
h1 {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-body);
  font-size: 2.2rem;
  margin: 30px 0 10px;
  width: 100%;
}

/* --- 7. MAIN --- */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 1;
}
main > h2 { color: var(--color-body); margin-top: 20px; }
h2 {padding-left: 10px;padding-right: 10px;}

/* --- 8. CARTES --- */
section,
.villes,
.villes2,
.tarifcardUnique,
.carteAll,
#formulaire,
.avis-card,
.contactSection,
.mentions {
  background-color: var(--bg-card);
  color: var(--color-card);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity    0.6s cubic-bezier(0.4,0,0.2,1),
    transform  0.6s cubic-bezier(0.4,0,0.2,1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
section p,
section li,
section span:not(.apropos-story__emoji):not(.plan-dot):not(.faq-icon) {
  color: inherit;
}

.apropos-card,
.apropos-public {
  color: var(--color-body);
}
.apropos-card p,
.apropos-card h3,
.apropos-public span {
  color: var(--color-body);
}

section.visible,
.villes.visible,
.villes2.visible,
.tarifcardUnique.visible,
.carteAll.visible,
#formulaire.visible,
.avis-card.visible,
.contactSection.visible,
.mentions.visible {
  opacity: 1;
  transform: translateY(0);
}
.villes:hover,
.villes2:hover,
.tarifcardUnique:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(166,138,86,0.35);
  transform: translateY(-5px);
}

/* Stagger enfants */
.villeSection > *:nth-child(1),
.tarifcard    > *:nth-child(1) { transition-delay: 0.05s; }
.villeSection > *:nth-child(2),
.tarifcard    > *:nth-child(2) { transition-delay: 0.15s; }
.villeSection > *:nth-child(3) { transition-delay: 0.25s; }
.villeSection > *:nth-child(4) { transition-delay: 0.35s; }
.villeSection > *:nth-child(5) { transition-delay: 0.45s; }

/* --- 9. GRILLES --- */
.villeSection,
.tarifcard,
.contactContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  width: 100%;
  justify-items: center;
}

/* --- 10. TITRES --- */
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  width: 100%;
}
section > h2,
.villes > h3,
.villes2 > h3,
.carteAll > h3 {
  color: var(--vert-logo);
}
@media (prefers-color-scheme: dark) {
  section > h2,
  .villes > h3,
  .villes2 > h3,
  .carteAll > h3 {
    color: var(--dore-logo);
  }
}
h2::after,
.villes h3::after,
.villes2 h3::after {
  content: '';
  width: 0;
  height: 3px;
  background: var(--dore-logo);
  display: block;
  margin: 10px auto 0;
}
section.visible > h2::after,
.villes.visible > h3::after,
.villes2.visible > h3::after {
  animation: barGrow 0.7s cubic-bezier(0.4,0,0.2,1) 0.25s both;
}
.prix {
  color: var(--vert-logo);
  transition: transform 0.25s ease, color 0.25s ease;
  display: inline-block;
}
@media (prefers-color-scheme: dark) {
  .prix { color: var(--dore-logo); }
}
.prix:hover {
  transform: scale(1.08);
  color: var(--dore-logo);
}

/* --- 11. LISTES --- */
ul {
  list-style: none;
  padding: 0;
  text-align: center;
}
ul li {
  color: var(--color-card);
  margin-bottom: 10px;
  display: block;
  transition: color 0.2s ease, transform 0.2s ease;
}
ul li:hover {
  color: var(--vert-logo);
  transform: translateX(4px);
}

/* --- 12. BOUTONS --- */
button,
.contactbutton,
.event,
input[type="submit"] {
  background-color: var(--vert-logo);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: inline-block;
  margin: 10px auto;
  transition:
    background-color 0.3s ease,
    transform        0.25s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow       0.3s ease;
}
button::before,
.contactbutton::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.4s ease;
}
button:active::before,
.contactbutton:active::before {
  background: rgba(255,255,255,0.18);
}
button:hover,
.contactbutton:hover,
input[type="submit"]:hover {
  background-color: var(--dore-logo);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(166,138,86,0.38);
}
button:focus-visible,
input[type="submit"]:focus-visible {
  outline: 2px solid var(--dore-logo);
  outline-offset: 3px;
}
.contactbutton {
  padding: 16px 36px;
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--vert-logo), #4e7a55);
  box-shadow: 0 4px 15px rgba(58,90,64,0.4);
}
#all, #mediation_button, #aide_admin_button,
#creation_site_button, #reseaux_sociaux_button {
  background-color: var(--vert-logo);
  color: white;
  margin: 6px 4px;
}
#all.actif,
#mediation_button.actif,
#aide_admin_button.actif,
#creation_site_button.actif,
#reseaux_sociaux_button.actif {
  background-color: var(--dore-logo);
  color: white;
}

/* --- 13. FORMULAIRE --- */
#formulaire form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#formulaire label {
  color: var(--vert-logo);
  font-weight: 700;
  margin-bottom: 5px;
  display: block;
}
@media (prefers-color-scheme: dark) {
  #formulaire label { color: var(--dore-logo); }
}
#formulaire input,
#formulaire textarea {
  width: 100%;
  max-width: 500px;
  padding: 12px;
  border: 1.5px solid var(--border-card);
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  background-color: var(--bg-card);
  color: var(--color-card);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
#formulaire input:focus,
#formulaire textarea:focus {
  border-color: var(--dore-logo);
  box-shadow: 0 0 0 3px rgba(166,138,86,0.18);
  transform: scale(1.01);
}

/* --- 14. CAROUSEL & AVIS --- */
.carouselSection {
  overflow: hidden;
  width: 100%;
}
.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.avis-container {
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  flex: 1;
  min-width: 0;
}
.avis-card {
  width: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease, transform 0.45s ease;
  padding: 20px;
  box-sizing: border-box;
}
.avis-card h3 {
  margin: 0 0 8px;
  text-align: center;
}
.avis-card p {
  text-align: center;
  margin: 8px 0 0;
  word-break: break-word;
}
#noteAvis {
  font-size: 1.2rem;
  margin: 4px 0;
}
.carousel-button {
  background: var(--vert-logo);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  min-width: 44px;
  flex-shrink: 0;
  padding: 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-button:hover {
  background: var(--dore-logo);
  transform: scale(1.15);
  animation: none;
}
.boutongoogle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--texte-noir);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.1);
  transition: var(--transition);
}
.boutongoogle:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--dore-logo);
}

/* --- 15. MAP --- */
#map {
  height: 500px;
  width: 100%;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease;
}
#map:hover { box-shadow: var(--shadow-hover); }

/* --- 16. FOOTER --- */
footer {
  background: var(--bg-header);
  color: var(--color-card);
  padding: 50px 5%;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--dore-logo), transparent);
  background-size: 200% auto;
  animation: shimmer 5s linear infinite;
}
footer img {
  transition: var(--transition);
  opacity: 0.85;
}
footer img:hover { opacity: 1; transform: scale(1.05); }
.plansite,
.légales {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
footer .plansite a,
footer .légales a {
  background: transparent;
  color: var(--color-card);
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 600;
  padding: 6px 14px;
  font-size: 0.88rem;
  box-shadow: none;
  transition: color 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  display: inline-block;
}
footer .plansite a:hover,
footer .légales a:hover {
  color: var(--dore-logo);
  border-color: var(--dore-logo);
  background: transparent;
  transform: none;
  box-shadow: none;
  animation: none;
}

/* --- 17. LIENS --- */
span a, a {
  color: var(--vert-logo);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--dore-logo); }
@media (prefers-color-scheme: dark) {
  span a, a { color: var(--dore-logo); }
  a:hover   { color: var(--beige-clair); }
}

/* ================================================================
   PAGE À PROPOS
   ================================================================ */
.apropos-hero {
  background: linear-gradient(135deg, var(--vert-sombre) 0%, var(--vert-logo) 100%);
  padding: 60px 5%;
  display: flex;
  justify-content: center;
}
.apropos-hero__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 800px;
  width: 100%;
}
.apropos-hero__avatar {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 3px solid var(--dore-logo);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(166,138,86,0.4);
  animation: float 3s ease-in-out infinite;
}
.apropos-hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.apropos-hero__text { text-align: left; }
.apropos-hero__text h1 {
  font-size: 2.2rem;
  margin: 0 0 6px;
  color: var(--color-body);
}
.apropos-hero__subtitle {
  color: var(--dore-logo);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.apropos-hero__desc {
  color: rgba(255,255,255,0.85);
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.6;
}

.apropos-section {
  padding: 40px 30px;
}
.apropos-section h2 {
  color: var(--vert-logo);
}
@media (prefers-color-scheme: dark) {
  .apropos-section h2 { color: var(--dore-logo); }
}

.apropos-section--accent {
  background: linear-gradient(135deg, var(--vert-sombre), #2d4a33);
  color: var(--texte-blanc);
  border-color: rgba(166,138,86,0.3);
}
.apropos-section--accent h2 { color: var(--dore-logo); }
.apropos-section--accent p  { color: rgba(255,255,255,0.85); }

.apropos-section--cta {
  background: linear-gradient(135deg, var(--vert-logo), var(--dore-logo));
  color: var(--texte-blanc);
  border: none;
}
.apropos-section--cta h2,
.apropos-section--cta p { color: var(--texte-blanc); }

/* --- TIMELINE --- */
.timeline {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  margin-top: 10px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--vert-logo), var(--dore-logo));
  border-radius: 2px;
}
.timeline__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 16px 0;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.timeline__item.visible {
  opacity: 1;
  transform: translateX(0);
}
.timeline__item:nth-child(1) { transition-delay: 0.1s; }
.timeline__item:nth-child(2) { transition-delay: 0.25s; }
.timeline__item:nth-child(3) { transition-delay: 0.4s; }

.timeline__icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 50%;
  background: var(--vert-logo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(58,90,64,0.35);
  z-index: 1;
}
.timeline__content h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--vert-logo);
  margin: 0 0 6px;
  font-size: 1rem;
}
@media (prefers-color-scheme: dark) {
  .timeline__content h3 { color: var(--dore-logo); }
}
.timeline__content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-card);
}

/* --- STORY (pourquoi) --- */
.apropos-story {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.apropos-story__step {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(166,138,86,0.25);
  border-radius: 12px;
  padding: 20px;
  max-width: 220px;
  text-align: center;
  flex: 1;
  min-width: 160px;
}
.apropos-story__emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}
.apropos-story__arrow {
  font-size: 1.8rem;
  color: var(--dore-logo);
  font-weight: 700;
  flex-shrink: 0;
}

/* --- GRILLE SERVICES --- */
.apropos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  width: 100%;
  margin-top: 10px;
}
.apropos-card {
  background: var(--bg-body);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity   0.5s ease,
    transform 0.5s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.apropos-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.apropos-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(166,138,86,0.4);
}
.apropos-card span { font-size: 2rem; display: block; margin-bottom: 10px; }
.apropos-card h3   {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  margin: 0 0 8px;
}
.apropos-card p    { font-size: 0.88rem; margin: 0; }

/* --- PUBLICS --- */
.apropos-publics {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 10px;
}
.apropos-public {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg-body);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 20px 16px;
  min-width: 130px;
  font-size: 2rem;
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity   0.4s ease,
    transform 0.4s ease,
    box-shadow 0.3s ease;
}
.apropos-public.visible {
  opacity: 1;
  transform: scale(1);
}
.apropos-public:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: var(--shadow-hover);
}
.apropos-public span {
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-align: center;
}

/* --- CTA BOUTONS --- */
.apropos-cta-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}
.apropos-tel {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.15);
  color: var(--texte-blanc);
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.4);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.apropos-tel:hover {
  background: rgba(255,255,255,0.25);
  border-color: white;
  color: white;
}

/* ================================================================
   PAGE FAQ
   ================================================================ */
.titretarif__sub {
  color: color-mix(in srgb, var(--color-body) 80%, transparent);
  font-size: 1rem;
  margin: 0 0 20px;
}
.faq-cta-top {
  align-self: center;
  margin-bottom: 10px;
}
.faq-groupe {
  padding: 30px;
  gap: 12px;
}
.faq-groupe h2 {
  color: var(--vert-logo);
  margin: 0 0 16px;
  text-align: left;
}
@media (prefers-color-scheme: dark) {
  .faq-groupe h2 { color: var(--dore-logo); }
}

.faq-item {
  border: 1px solid var(--border-card);
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.faq-item:hover {
  box-shadow: var(--shadow);
  border-color: rgba(166,138,86,0.35);
}

.faq-question {
  width: 100%;
  background: var(--bg-body);
  color: var(--color-body);
  border: none;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  transition: background 0.25s ease, color 0.25s ease;
}
.faq-question:hover {
  background: rgba(58,90,64,0.15);
  color: var(--dore-logo);
  transform: none;
  box-shadow: none;
}
.faq-question[aria-expanded="true"] {
  background: var(--vert-logo);
  color: white;
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: white;
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.25s ease;
  color: var(--dore-logo);
  line-height: 1;
}

.faq-reponse {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.3s ease;
  background: var(--bg-card);
  color: var(--color-card);
  text-align: left;
}
.faq-reponse:not([hidden]) {
  max-height: 600px;
  padding: 16px 20px 20px;
}
.faq-reponse p,
.faq-reponse ul { margin: 0 0 10px; }
.faq-reponse ul { padding-left: 0; text-align: left; }
.faq-reponse ul li { text-align: left; }
.faq-reponse button {
  margin: 8px 0 0;
  padding: 10px 20px;
  font-size: 0.88rem;
}

.faq-cta-section {
  background: linear-gradient(135deg, var(--vert-logo), var(--dore-logo));
  border: none;
  color: var(--texte-blanc);
}
.faq-cta-section h2,
.faq-cta-section p { color: var(--texte-blanc); }


/* ================================================================
   PAGE PLAN INTERACTIF
   ================================================================ */
.plan-hero { position: relative; }
.plan-hero__badge {
  display: inline-block;
  background: rgba(166,138,86,0.2);
  color: var(--dore-logo);
  border: 1px solid rgba(166,138,86,0.4);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.plan-legende {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 30px;
}
.plan-legende__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-card);
}

.plan-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
}
.plan-dot--oui  { background: #3A5A40; }
.plan-dot--non  { background: #c0392b; }
.plan-dot--base { background: var(--dore-logo); }

.plan-carte-wrap {
  padding: 20px 30px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.plan-villes {
  padding: 30px;
}
.plan-villes h2 {
  color: var(--vert-logo);
  margin-bottom: 20px;
}
@media (prefers-color-scheme: dark) {
  .plan-villes h2 { color: var(--dore-logo); }
}

.simulator-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background-color: var(--bg-card);
}

.plan-villes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.plan-carte__hint {
  font-size: 0.82rem;
  color: black;
  margin: 0;
}
.plan-ville-card {
  background: var(--bg-card);
  color: var(--color-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  text-align: left;
  transition: var(--transition);
  cursor: default;
}
.plan-ville-card:hover {
  border-color: var(--dore-logo);
  box-shadow: 0 4px 12px rgba(166,138,86,0.2);
  transform: translateY(-2px);
}

.leaflet-legende,
.leaflet-compteur {
  background: white;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.08);
  font-family: 'Open Sans', sans-serif;
}
.leaflet-compteur {
  text-align: center;
  padding: 8px 16px;
}
.leaflet-popup-content-wrapper {
  border-radius: 10px !important;
  padding: 8px 12px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2) !important;
}
.leaflet-popup-content { margin: 0 !important; }
.leaflet-erreur {
  background: #fee;
  border: 1px solid #e74c3c;
  color: #c0392b;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: 'Open Sans', sans-serif;
}

.footer-local{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (prefers-color-scheme: dark) {
  .plan-carte__hint { color: rgb(255, 255, 255); }
}

/* --- Stabilisation Page Avis --- */
.page-avis .grid-avis {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    opacity: 1 !important;
    visibility: visible !important;
}
.page-avis .carteAll {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    transform: none !important;
}
.carteAll header {
    border: black 1px solid !important;
    border-radius: 10px;
}

#backToTop {
    position: fixed;
    bottom: 60px;
    right: 20px;
    background: var(--vert-logo);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}
#backToTop:hover {
    background-color: var(--dore-logo);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(166,138,86,0.38);
} 

.photos-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
}
.photo-slider {
  position: relative; 
  width: 100%;
  max-width: 800px;
  height: 500px;
  margin: 20px 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.photo-slider img {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.photo-slider img.visible {
  opacity: 1;
  transform: translateX(0);
}
.photos-controls {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}
.photos-controls button {
  background: var(--vert-logo);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}
.photos-controls button:hover {
  background-color: var(--dore-logo);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(166,138,86,0.38);
}


/* ================================================================
   LUMINA BROCÉLIANDE — AJOUTS ET FIXES POUR LA BOUTIQUE
   ================================================================ */

/* 1. Forcer la visibilité immédiate sans attendre le script JS de scroll */
.carteAll, 
.tarif-grid,
.villes2 {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* 2. Organisation de la grille des fiches */
.tarif-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 30px !important;
  margin: 30px auto !important;
  width: 100% !important;
  justify-items: center;
}

/* 3. Style des boîtes de fiches (villes2) */
.villes2 {
  background-color: var(--bg-card) !important;
  color: var(--color-card) !important;
  border: 1px solid var(--border-card) !important;
  border-radius: 12px !important;
  padding: 30px !important;
  box-shadow: var(--shadow) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  height: 100% !important;
  position: relative !important;
  width: 100% !important;
  max-width: 360px;
}

/* Cadre pour l'icône ou l'aperçu du schéma */
.schema-preview {
  background-color: var(--vert-sombre);
  color: var(--texte-blanc);
  font-size: 3.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 140px;
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 2px solid var(--dore-logo);
}

/* Petit macaron HD sur le coin supérieur de la carte */
.badge-hd {
  background-color: var(--dore-logo);
  color: var(--texte-noir);
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 4px;
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

/* Affichage du prix mis en valeur */
.prix-boutique {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--vert-logo);
  margin: 15px 0;
  display: block;
  text-align: center;
  width: 100%;
}

@media (prefers-color-scheme: dark) {
  .prix-boutique {
    color: var(--dore-logo);
  }
}

/* Alignement parfait du bouton d'achat en bas */
.villes2 .contactbutton {
  margin-top: auto !important;
  width: 100%;
  text-align: center;
}


/* ================================================================
   RESPONSIVE GLOBAL
   ================================================================ */
@media (max-width: 768px) {
  .sansbg  { display: none; }
  #openBtn { display: flex; }
  h1       { font-size: 1.8rem; }
  .villeSection,
  .tarifcard,
  .contactContainer,
  .tarif-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (min-width: 769px) {
  #openBtn { display: none; }
}

@media (max-width: 600px) {
  .apropos-hero__inner { flex-direction: column; text-align: center; }
  .apropos-hero__text       { text-align: center; }
  .apropos-hero__text h1    { font-size: 1.6rem; }
  .apropos-story            { flex-direction: column; align-items: center; }
  .apropos-story__arrow     { transform: rotate(90deg); }
  .apropos-story__step      { max-width: 100%; }
  .timeline::before         { left: 22px; }
  .timeline__icon           { width: 44px; height: 44px; min-width: 44px; font-size: 1.1rem; }
  #map { height: 360px; }
  .plan-villes__grid { grid-template-columns: repeat(2, 1fr); }
  .plan-legende { gap: 12px; }
  .leaflet-legende, .leaflet-compteur { display: none; }
}

@media (max-width: 480px) {
  .carousel       { gap: 6px; }
  .carousel-button { width: 36px; height: 36px; min-width: 36px; font-size: 0.95rem; }
  .avis-card      { min-height: 160px; padding: 16px 10px; }
  .avis-card p    { font-size: 0.9rem; }
}

@media (prefers-color-scheme: dark) {
  #openBtn { background-color: var(--vert-logo); color: white; }
  #closeBtn { color: var(--vert-sombre); }
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  section, .villes, .villes2, .tarifcardUnique,
  .carteAll, #formulaire, .avis-card, .contactSection, .mentions,
  .apropos-section, .timeline__item, .apropos-card, .apropos-public {
    opacity: 1 !important;
    transform: none !important;
  }
}