/* === SECTIONS — styles propres à chaque section === */

/* --- HERO IMMERSIF --- */
.hero-immersif {
  position: relative;
  min-height: clamp(480px, 88vh, 780px);
  display: flex;
  align-items: flex-end;
  padding: clamp(32px, 6vw, 80px) 20px;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  padding-top: calc(var(--header-h-mobile) + 40px);
}

@media (min-width: 768px) {
  .hero-immersif {
    padding: clamp(40px, 7vw, 96px) 40px;
    padding-top: calc(var(--header-h) + 60px);
    border-radius: 0 0 24px 24px;
  }
}

.hero-immersif__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-immersif__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Voile dégradé pour lisibilité */
.hero-immersif::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.05) 0%,
    rgba(0,0,0,.20) 35%,
    rgba(0,0,0,.62) 100%
  );
}

.hero-immersif__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: #fff;
}

.hero-eyebrow {
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  width: 22px; height: 1.5px;
  background: rgba(255,255,255,.6);
  display: block;
}

.hero-immersif__title {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 1.02;
  color: #fff;
  margin-bottom: 18px;
}

.hero-immersif__sub {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: rgba(255,255,255,.88);
  line-height: 1.55;
  margin-bottom: 30px;
  max-width: 50ch;
}

/* Badge note Google dans le hero — conditionnel */
.hero-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 100px;
  padding: 6px 14px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 20px;
  display: none; /* masqué car < 5 avis */
}

/* --- SERVICES --- */
.services-section { background: var(--bg); }

.services-section .section-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.services-section h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 14px;
}

.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 20px);
}

@media (min-width: 560px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- RÉALISATIONS --- */
.realisations-section {
  background: var(--bg-alt);
  border-radius: 24px;
  margin: 0 8px;
}

@media (min-width: 768px) {
  .realisations-section { margin: 0 24px; }
}

.realisations-section .section-header {
  max-width: 640px;
  margin-bottom: 40px;
}

.realisations-section h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 10px;
}

/* Galerie grid — LAY-1 gallery: grid */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 36px;
}

@media (min-width: 560px) {
  .gal-grid { grid-template-columns: repeat(3, 1fr); }
}

.gal-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  cursor: pointer;
  background: var(--border);
}

.gal-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.42s ease;
}

.gal-item:hover img { transform: scale(1.05); }

.gal-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, oklch(20% 0.05 127 / 0.45) 100%);
  opacity: 0;
  transition: opacity var(--tr-base);
}

.gal-item:hover::after { opacity: 1; }

.realisations-cta {
  text-align: center;
  margin-top: 8px;
}

/* --- STATS STRIP — TEX-6 dégradé OKLCH --- */
.stats-strip {
  background:
    radial-gradient(65% 65% at 12% 5%, color-mix(in oklab, var(--accent) 16%, var(--bg)) 0%, transparent 60%),
    radial-gradient(50% 50% at 92% 22%, color-mix(in oklab, var(--accent) 10%, var(--bg)) 0%, transparent 55%),
    var(--bg);
  padding: 48px 0;
}

@media (min-width: 768px) {
  .stats-strip { padding: 64px 0; }
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.stat-number {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.stats-sep {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  display: none;
}

@media (min-width: 640px) { .stats-sep { display: block; } }

/* --- RÉASSURANCE (substitut avis) --- */
.reassurance-section { background: var(--bg); }

.reassurance-section h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 14px;
}

.reassurance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

@media (min-width: 640px) {
  .reassurance-grid { grid-template-columns: repeat(3, 1fr); }
}

.reassurance-card {
  background: color-mix(in srgb, var(--accent) 7%, var(--bg));
  border-radius: var(--r-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}

.reassurance-icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, var(--bg));
  color: var(--accent);
}

.reassurance-icon svg { width: 26px; height: 26px; }

.reassurance-title {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.reassurance-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* --- FAQ ACCORDION --- */
.faq-section {
  background: var(--bg-alt);
  border-radius: 24px;
  margin: 0 8px;
}

@media (min-width: 768px) {
  .faq-section { margin: 0 24px; }
}

.faq-section h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 40px;
  max-width: 560px;
}

.faq-list { max-width: 760px; }

.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--ff-display);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text);
  font-weight: 500;
  transition: color var(--tr-fast);
}

.faq-trigger:hover { color: var(--accent); }

.faq-chevron {
  width: 20px; height: 20px;
  flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--accent);
  transition: transform 0.28s ease;
}

.faq-chevron::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
}

.faq-trigger[aria-expanded="true"] .faq-chevron {
  transform: rotate(-180deg);
}

.faq-trigger[aria-expanded="true"] .faq-chevron::before {
  margin-top: 4px;
}

.faq-answer {
  padding: 0 0 20px;
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* --- ZONE --- */
.zone-section { background: var(--bg); }

.zone-section h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 40px;
}

.zone-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .zone-cols { grid-template-columns: 1fr 1.2fr; }
}

.zone-communes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.zone-chip {
  background: color-mix(in srgb, var(--accent) 11%, var(--bg));
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.83rem;
  font-weight: 500;
}

/* Horaires */
.horaires-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.horaires-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.horaires-table td:first-child {
  font-weight: 500;
  color: var(--text);
  width: 44%;
}

.horaires-table td:last-child { color: var(--text-2); }

.horaires-table tr.is-today td {
  background: color-mix(in srgb, var(--accent) 9%, var(--bg));
  color: var(--accent);
  font-weight: 600;
}

.horaires-table tr.is-today td:last-child { color: var(--accent); }

.horaires-table tr.is-closed td:last-child {
  color: var(--text-mute);
  font-style: italic;
}

/* Badge "Ouvert / Fermé" */
.badge-ouverture {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.badge-ouverture.ouvert {
  background: color-mix(in srgb, #22c55e 14%, transparent);
  color: #15803d;
}

.badge-ouverture.ferme {
  background: color-mix(in srgb, #ef4444 12%, transparent);
  color: #b91c1c;
}

.badge-ouverture .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* Carte */
.map-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--bg-alt);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--r-lg);
}

/* --- CONTACT --- */
.contact-section { background: var(--bg-alt); }

.contact-section h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 14px;
}

.contact-sub {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 40px;
  max-width: 48ch;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center; /* cf PIÈGE #3 */
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow var(--tr-fast), border-color var(--tr-fast);
}

.contact-item:hover {
  box-shadow: 0 4px 16px oklch(20% 0.05 127 / 0.08);
  border-color: var(--accent);
  text-decoration: none;
  color: var(--text);
}

.contact-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--accent) 14%, var(--bg));
  color: var(--accent);
  flex-shrink: 0;
}

.contact-icon svg { width: 20px; height: 20px; }

.contact-item-label {
  font-size: 0.75rem;
  color: var(--text-mute);
  display: block;
  margin-bottom: 2px;
}

.contact-item-value {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

/* Modal mentions légales */
#ml-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

@media (min-width: 640px) {
  #ml-modal { align-items: center; }
}

.ml-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  cursor: pointer;
}

.ml-box {
  position: relative;
  background: var(--bg);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 32px 24px;
  max-width: 540px;
  width: 100%;
  max-height: 80dvh;
  overflow-y: auto;
  z-index: 1;
}

@media (min-width: 640px) {
  .ml-box {
    border-radius: var(--r-lg);
    padding: 36px 32px;
    max-height: 90dvh;
  }
}

.ml-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border: 0; background: color-mix(in srgb, var(--text) 8%, transparent);
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--text);
  font-size: 1.1rem;
  transition: background var(--tr-fast);
}

.ml-close:hover { background: color-mix(in srgb, var(--text) 14%, transparent); }

.ml-box h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-right: 40px;
}

.ml-content p, .ml-content li {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 8px;
}

.ml-content strong { color: var(--text); }
