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

/* ===== HERO MEGA-SOBRE ===== */
.hero-mega {
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--header-h-mobile) + 40px) 24px 40px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  min-height: calc(100dvh - var(--header-h-mobile));
}

.hero-mega__eyebrow {
  font-family: var(--ff-ui);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.hero-mega__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero-mega__title {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: .92;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-mega__title em {
  font-style: italic;
  color: var(--accent);
}

.hero-mega__sub {
  font-family: var(--ff-body);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--text-2);
  line-height: 1.75;
  max-width: 42ch;
  margin-bottom: 28px;
}

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

.hero-mega__media {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.hero-mega__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== STATS STRIP ===== */
.stats-strip {
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
  border-top: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  padding: 32px 0;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vw, 80px);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

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

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===== PROCESS ===== */
.process-section { background: var(--bg-alt); }

.process-intro {
  max-width: 56ch;
  margin-bottom: 40px;
}

.process-intro .first-sentence {
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
}
/* Lettrine sur le premier paragraphe */
.process-intro .first-sentence::first-letter {
  font-family: var(--ff-display);
  font-size: 3.2em;
  line-height: .8;
  float: left;
  margin-right: .1em;
  color: var(--accent);
  font-weight: 500;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  counter-reset: step;
}

.process-step {
  padding: 28px 24px;
  border-top: 3px solid var(--accent);
  background: var(--bg);
  border-radius: 0 0 var(--r-md) var(--r-md);
  counter-increment: step;
}

.step-num {
  font-family: var(--ff-display);
  font-size: 2.4rem;
  color: color-mix(in srgb, var(--accent) 22%, transparent);
  line-height: 1;
  margin-bottom: 12px;
  font-weight: 500;
}

.step-title {
  font-family: var(--ff-display);
  font-size: 1.12rem;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 500;
}

.step-desc {
  font-family: var(--ff-body);
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0;
}

/* ===== SERVICES (LAY-5 grid-3 + stripe cards) ===== */
.services-section { }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px);
  margin-top: 36px;
}

.svc-card {
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--text) 3%, var(--bg));
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 24px 22px;
  transition: transform .2s, box-shadow .2s;
}
.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 12%, transparent);
}

.svc-icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-bottom: 14px;
}

.svc-title {
  font-family: var(--ff-display);
  font-size: 1.06rem;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 500;
}

.svc-desc {
  font-family: var(--ff-body);
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0;
}

/* ===== RÉALISATIONS (masonry) ===== */
.realisations-section { background: var(--bg-alt); }

.realisations-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.gal-masonry {
  column-count: 3;
  column-gap: 12px;
}

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

.gal-item img {
  width: 100%;
  display: block;
  transition: transform .35s ease;
}

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

.gal-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--accent) 0%, transparent);
  transition: background .3s;
}
.gal-item:hover::after {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.gal-link-more {
  display: block;
  text-align: center;
  margin-top: 28px;
}

/* ===== AVIS (LAY-5 cards) ===== */
.avis-section { }

.avis-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.avis-score {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avis-score-num {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}

.avis-score-detail {
  font-family: var(--ff-ui);
  font-size: .8rem;
  color: var(--text-mute);
  line-height: 1.4;
}

.avis-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.avis-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.avis-card-stars { }

.avis-card blockquote {
  margin: 0;
  font-family: var(--ff-body);
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}

.avis-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.avis-author {
  font-family: var(--ff-ui);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}

.avis-date {
  font-family: var(--ff-ui);
  font-size: .75rem;
  color: var(--text-mute);
}

.avis-card--empty {
  background: color-mix(in srgb, var(--text) 4%, var(--bg));
  border-style: dashed;
}

.avis-card--empty blockquote {
  font-style: normal;
  color: var(--text-mute);
  font-family: var(--ff-ui);
  font-size: .85rem;
}

.avis-google-link {
  margin-top: 24px;
  text-align: center;
}

/* ===== ZONE D'INTERVENTION ===== */
.zone-section { background: var(--bg-alt); }

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

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

.horaires-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ff-ui);
  font-size: .88rem;
}

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

.horaires-table tr.is-today td {
  color: var(--accent);
  font-weight: 600;
}

.horaires-table tr.is-closed td { color: var(--text-mute); }

.horaires-table td {
  padding: 10px 0;
  color: var(--text-2);
}

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

.map-wrapper {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--text) 8%, transparent);
}

.map-wrapper iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

/* ===== FAQ ===== */
.faq-section { }

.faq-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 36px;
}

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

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

.contact-info h3 {
  font-size: 1.12rem;
  margin-bottom: 16px;
  font-weight: 500;
}

.contact-item {
  display: flex;
  align-items: center; /* PIÈGE #3 */
  gap: 12px;
  font-family: var(--ff-ui);
  font-size: .93rem;
  color: var(--text-2);
  margin-bottom: 14px;
}
.contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-item a {
  color: var(--text-2);
  transition: color .2s;
}
.contact-item a:hover { color: var(--accent); text-decoration: none; }

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

/* Formulaire */
.contact-form { }

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0; /* PIÈGE #10 */
}

.field label {
  font-family: var(--ff-ui);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.field input,
.field textarea,
.field select {
  padding: .72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font-size: .95rem;
  transition: border-color .2s;
  min-height: 48px; /* cibles tactiles */
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-submit {
  margin-top: 8px;
}

.form-msg {
  margin-top: 12px;
  font-family: var(--ff-ui);
  font-size: .88rem;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  display: none;
}

.form-msg.success {
  display: block;
  background: color-mix(in srgb, #22c55e 12%, var(--bg));
  color: #166534;
}

.form-msg.error {
  display: block;
  background: color-mix(in srgb, #ef4444 10%, var(--bg));
  color: #991b1b;
}

/* ===== PAGE RÉALISATIONS (realisations.html) ===== */
.page-realisations {
  padding-top: calc(var(--header-h-mobile) + 48px);
  padding-bottom: 80px;
}

.page-realisations .page-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 8px;
}

.page-realisations .page-sub {
  font-family: var(--ff-body);
  font-size: .95rem;
  color: var(--text-2);
  margin-bottom: 36px;
}

.page-realisations .gal-masonry {
  column-count: 3;
}
