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

/* ==== HERO MEGA SOBRE ==== */
.hero-wrap {
  padding-top: var(--header-h-mobile);
  padding-bottom: 0;
}

.hero-mega {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 100px) 24px clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero-mega__eyebrow {
  font-family: var(--ff-ui);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-mega__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-mega__title {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: .92;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 0;
}

.hero-mega__title em {
  font-style: italic;
  color: var(--accent);
  /* underline accent translucide signature */
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 32%, transparent);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.hero-mega__sub {
  font-family: var(--ff-body);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  color: var(--text-2);
  margin: 22px 0 28px;
  max-width: 46ch;
  line-height: 1.65;
}

.hero-mega__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.hero-mega__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* PIÈGE PROD #2: CTA mobile empilés pleine largeur */
@media (max-width: 540px) {
  .hero-mega__cta {
    flex-direction: column;
    width: 100%;
  }
  .hero-mega__cta .btn {
    width: 100%;
    justify-content: center;
  }
}

.hero-mega__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 56px color-mix(in srgb, var(--text) 18%, transparent);
}

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

.hero-mega__tag {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(46, 40, 32, .76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #E8E0D4;
  font-family: var(--ff-ui);
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: .4rem .85rem;
  border-radius: 100px;
}

@media (max-width: 768px) {
  .hero-mega {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: calc(var(--header-h-mobile) + 24px) 20px 40px;
  }
  .hero-mega__title { font-size: clamp(2.6rem, 13vw, 4rem); }
  .hero-mega__media { aspect-ratio: 16/10; }
}

/* ==== A PROPOS ==== */
.sec-apropos {
  background: var(--bg);
}

.apropos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
}

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

.apropos-content .sec-lead {
  font-size: clamp(.98rem, 1.6vw, 1.1rem);
  margin-bottom: 20px;
}

.apropos-content p + p { margin-top: 14px; }

.about-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.about-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .94rem;
  color: var(--text-2);
}

.about-list__item::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l4 4 6-7' stroke='%23557544' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 14px;
  background-position: center;
}

.about-photo-wrap {
  position: relative;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--r-lg);
  display: block;
}

.about-badge {
  position: absolute;
  bottom: 18px; right: -12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--ff-display);
  font-size: .82rem;
  font-weight: 600;
  font-style: italic;
  padding: .5rem 1rem;
  border-radius: var(--r-sm);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 36%, transparent);
  max-width: 160px;
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .about-badge { right: 12px; bottom: 12px; }
}

/* ==== REALISATIONS ==== */
.sec-realisations {
  background: var(--bg-alt);
}

.realisations-inner {
  max-width: var(--container);
  margin: 0 auto;
}

/* gallery masonry (LAY-2) */
.gal-masonry {
  column-count: 3;
  column-gap: 12px;
  margin-top: clamp(24px, 4vw, 40px);
}

.gal-masonry .gal-item {
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  cursor: pointer;
}

.gal-masonry .gal-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s var(--ease-out);
}

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

.gal-item__tag {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(46,40,32,.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #E8E0D4;
  font-family: var(--ff-ui);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: .3rem .7rem;
  border-radius: 100px;
}

.realisations-cta {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .gal-masonry { column-count: 2; }
}

@media (max-width: 480px) {
  .gal-masonry { column-count: 1; }
}

/* ==== SERVICES (alt-rows LAY-2) ==== */
.sec-services {
  background: var(--bg);
}

.services-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.svc-alt {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(24px, 4vw, 40px);
}

.svc-alt__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}

/* on inverse les rangées paires : media à gauche */
.svc-alt__row:nth-child(even) .svc-alt__media { order: -1; }

.svc-alt__media {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.svc-alt__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--ease-out);
}

.svc-alt__row:hover .svc-alt__media img { transform: scale(1.03); }

/* quand pas de photo, icône SVG */
.svc-alt__icon-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.svc-alt__icon-wrap svg { width: 72px; height: 72px; }

.svc-alt__content { display: flex; flex-direction: column; gap: 12px; }

.svc-alt__num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent-2);
}

.svc-alt__title {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  color: var(--text);
  font-weight: 500;
}

.svc-alt__desc {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 46ch;
}

.svc-alt__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.svc-tag {
  font-family: var(--ff-ui);
  font-size: .74rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  letter-spacing: .01em;
}

@media (max-width: 768px) {
  .svc-alt__row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .svc-alt__row:nth-child(even) .svc-alt__media { order: 0; }
}

/* ==== PROCESSUS (remplace avis, COPY-5) ==== */
.sec-processus {
  background: var(--surface-deep);
  color: #E8E0D4;
}

.sec-processus .sec-eyebrow { color: var(--accent-soft); }
.sec-processus .sec-title { color: #E8E0D4; }
.sec-processus .sec-lead { color: rgba(232,224,212,.72); }

.processus-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: clamp(24px, 4vw, 40px);
}

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

.process-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.process-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: .7;
}

.process-card__num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 2.8rem;
  color: color-mix(in srgb, var(--accent) 40%, transparent);
  line-height: 1;
  margin-bottom: 12px;
}

.process-card__title {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  color: #E8E0D4;
  margin-bottom: 10px;
  font-weight: 500;
}

.process-card__desc {
  font-size: .92rem;
  color: rgba(232,224,212,.7);
  line-height: 1.6;
}

/* PIÈGE PROD #10 préventif: tous les enfants texte sur fond sombre */
.sec-processus :where(h2, h3, h4, p, li, span, a, small, strong) {
  color: inherit;
}

/* ==== STATS STRIP ==== */
.sec-stats {
  background: var(--accent-soft);
  padding: clamp(32px, 5vw, 56px) 20px;
}

.stats-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  padding: 16px;
  position: relative;
}

.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--border);
}

.stat-number {
  display: block;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--accent-deep);
  line-height: 1;
  font-weight: 500;
}

.stat-label {
  display: block;
  font-family: var(--ff-ui);
  font-size: .78rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-top: 6px;
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; gap: 12px; }
  .stat-item + .stat-item::before { display: none; }
}

/* ==== FAQ ==== */
.sec-faq {
  background: var(--bg);
}

.faq-inner {
  max-width: var(--container);
  margin: 0 auto;
  max-width: 760px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: clamp(24px, 4vw, 40px);
}

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

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

.faq-chevron {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform .3s var(--ease-out);
}

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

.faq-answer {
  overflow: hidden;
  max-height: 0;
  padding: 0;
  transition: max-height .35s var(--ease-out), padding .35s;
}

.faq-answer.is-open {
  max-height: 400px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: .96rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ==== ZONE ==== */
.sec-zone {
  background: var(--bg-alt);
}

.zone-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.zone-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(24px, 4vw, 40px);
  align-items: start;
}

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

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

.zone-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: .35rem .85rem;
  border-radius: 100px;
  font-family: var(--ff-ui);
  font-size: .8rem;
  font-weight: 600;
  background: var(--surface);
  color: var(--text-2);
  border: 1.5px solid var(--border);
}

.zone-chip--main {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.hours-table tr {
  border-bottom: 1px solid var(--border);
}

.hours-table tr:last-child { border-bottom: 0; }

.hours-table td {
  padding: 9px 0;
  font-size: .88rem;
  color: var(--text-2);
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--text);
  width: 42%;
}

.hours-table tr.is-today td { color: var(--accent); font-weight: 700; }
.hours-table tr.is-closed td { color: var(--text-mute); }

.map-wrapper {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  padding-top: 70%;
}

.map-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 768px) {
  .map-wrapper { padding-top: 0; height: 380px; }
}

/* ==== CONTACT ==== */
.sec-contact {
  background: var(--surface-deep);
  color: #E8E0D4;
}

.sec-contact .sec-eyebrow { color: var(--accent-soft); }
.sec-contact .sec-title { color: #E8E0D4; }
.sec-contact .sec-lead { color: rgba(232,224,212,.72); }

/* PIÈGE PROD #10 préventif */
.sec-contact :where(h2, h3, h4, p, li, span, small, strong) {
  color: inherit;
}

.contact-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 56px);
  margin-top: clamp(24px, 4vw, 40px);
}

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

.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

/* back-link pour realisations.html */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-ui);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  padding: .45rem 1rem;
  background: var(--surface);
  border-radius: 100px;
  border: 1.5px solid var(--border);
  margin-bottom: 32px;
  transition: background .2s, color .2s;
}
.back-link:hover { background: var(--accent-soft); color: var(--accent); }
.back-link svg { width: 14px; height: 14px; }
