/* Mise en page commune : charger après styles.css, brand.css et profiles.css. */
:root {
  --layout-width: 1200px;
  --layout-gutter: clamp(16px, 3vw, 32px);
  --panel-padding: clamp(24px, 3.2vw, 40px);
  --layout-gap: clamp(24px, 4vw, 48px);
}

/* Même largeur pour les panneaux, la navigation et le pied de page. */
.container,
.service-ribbon,
.process-section,
footer,
.entry-page .entry-main,
.entry-page footer.entry-footer {
  width: calc(100% - 2 * var(--layout-gutter));
  max-width: var(--layout-width);
  margin-inline: auto;
}

/* Un conteneur imbriqué ne doit pas soustraire une deuxième marge. */
.service-ribbon > .container,
.process-section > .container,
footer > .container {
  width: 100%;
  max-width: none;
}

/* Le décor reste attaché à l’écran, au lieu de s’étirer sur toute la page. */
.forest-backdrop,
.entry-page .forest-backdrop {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  pointer-events: none;
}

.forest-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Une surface claire continue protège la lecture du décor latéral. */
.profile-page .site-content {
  position: relative;
  isolation: isolate;
}

.profile-page .site-content::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2 * var(--layout-gutter));
  max-width: var(--layout-width);
  border-radius: 24px 24px 0 0;
  background: var(--white);
  z-index: -1;
  pointer-events: none;
}

#services,
.about,
.faq-section,
.work-section > .container,
.contact-grid,
.process-section {
  padding-inline: var(--panel-padding);
}

/* Services particuliers en trois cartes, étapes en trois colonnes. */
.services-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* L’ordre HTML place toujours le texte avant l’image, y compris sur mobile. */
.pro-services-layout,
.project-layout,
.about {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--layout-gap);
  align-items: center;
}

.services-grid > *,
.pro-services-layout > *,
.project-layout > *,
.about > *,
.faq-section > *,
.contact-grid > *,
.form-row > * {
  min-width: 0;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-image { flex-shrink: 0; }
.service-body { display: flex; flex: 1; flex-direction: column; }
.service-body .text-link { margin-top: auto; }
.about-copy > p,
.project-copy > p { max-width: 65ch; }

/* Le montage reste entier et sa légende ne recouvre aucune scène. */
.about-visual.about-montage { margin: 0; padding: 0; }
.about-visual.about-montage > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
}
.about-montage .signature-note {
  position: static;
  max-width: none;
  margin-top: 12px;
  padding: 18px 20px;
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.3;
  text-align: center;
}

/* Présentation sur l’accueil, avant le choix de l’espace client. */
.entry-presentation {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: var(--layout-gap);
  align-items: center;
  margin-top: 40px;
  padding: var(--panel-padding);
  border: 1px solid #e2ebd6;
  border-radius: 24px;
  background: #fffffdf5;
  box-shadow: 0 5px 28px #3b652514;
}
.entry-presentation > *, .nael-gallery-details > *, .process-intro > * { min-width: 0; }
.entry-profile-choice { margin-top: 40px; }
.entry-choice-intro h2 { font-size: 39px; line-height: 1.1; letter-spacing: -.035em; font-style: italic; color: var(--green); }
.nael-gallery { display: grid; gap: 12px; }
.nael-gallery-main { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 16px; }
.nael-gallery-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* Fenêtres CSS dans le montage original 1536 × 1024 : les images restent intactes. */
.nael-scene { position: relative; margin: 0; overflow: hidden; border-radius: 16px; background: #e7eddf; }
.nael-scene > img { position: absolute; display: block; max-width: none; height: auto; }
.nael-scene-mowing, .nael-scene-pruning { aspect-ratio: 680 / 480; }
.nael-scene-mowing > img, .nael-scene-pruning > img { width: 225.882353%; left: -124.705882%; }
.nael-scene-mowing > img { top: -2.5%; }
.nael-scene-pruning > img { top: -106.25%; }
.nael-scene-portrait { width: min(100%, 300px); aspect-ratio: 832 / 1008; justify-self: end; }
.nael-scene-portrait > img { width: 184.615385%; left: -.961538%; top: -.793651%; }
.process-intro { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: 40px; margin-bottom: 36px; }
.process-heading .eyebrow { margin-bottom: 18px; color: #c0d9a4; }
.process-heading .button { margin-top: 28px; }

/* Contraste renforcé sur la carte Particulier uniquement. */
.entry-choice:not(.entry-choice-pro) .choice-eyebrow {
  color: #183e28;
  font-weight: 700;
}

.pro-services-list article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.pro-services-list article:first-child { padding-top: 0; border-top: 0; }
.pro-services-list article:last-child { padding-bottom: 0; }
.pro-services-list .icon { grid-row: 1 / span 2; width: 28px; height: 28px; color: #276c1d; }
.pro-services-list h3 { font-size: 22px; }
.pro-services-list p { grid-column: 2; margin-top: 8px; font-size: 14px; line-height: 1.75; color: var(--muted); }
.pro-services-image { margin: 0; }
.pro-services-image img { width: 100%; height: auto; border-radius: 20px; }

/* Le contenu du flyer devient du texte HTML et des listes accessibles. */
.future-offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.future-offer { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid #c5d8b5; border-radius: 16px; background: var(--white); }
.future-offer-heading { display: flex; align-items: center; gap: 12px; }
.future-offer-heading .future-icon { flex: 0 0 38px; margin: 0; }
.future-offer h4 { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.25; }
/* Deux visuels compacts : la remorque entière et le détail du big bag du visuel fourni. */
.future-offer-visual { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; flex-shrink: 0; width: 100%; height: 240px; margin: 20px 0 0; overflow: hidden; border: 1px solid #dce7d1; border-radius: 12px; background: #f4f7ef; }
.future-offer-visual > img { display: block; width: 100%; max-width: 386px; min-width: 0; min-height: 0; height: 100%; max-height: 100%; object-fit: contain; }
.big-bag-detail { position: relative; width: min(100%, 243px); aspect-ratio: 480 / 470; overflow: hidden; border-radius: 10px; }
/* Fenêtre sur la zone x=575, y=770, 480×470 du visuel 1055×1302. */
.big-bag-detail > img { position: absolute; display: block; width: 219.791667%; max-width: none; height: auto; left: -119.791667%; top: -163.829787%; }
.future-offer > p { margin-top: 16px; font-size: 14px; line-height: 1.75; color: #4b6144; }
.future-points { margin: 16px 0 24px; padding-left: 22px; font-size: 14px; line-height: 1.75; }
.future-points li + li { margin-top: 8px; }
.future-points li::marker { color: #276c1d; }
.future-steps { margin: 16px 0 24px; padding: 0; list-style: none; counter-reset: collection; display: grid; gap: 12px; font-size: 14px; line-height: 1.65; }
.future-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; counter-increment: collection; }
.future-steps li::before { content: counter(collection); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e8f2dc; color: #183e28; font-weight: 700; }
.future-offer .text-link { align-self: flex-start; margin-top: auto; padding-top: 12px; font-size: 13px; }
.future-benefit { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0 12px; font-size: 15px; line-height: 1.6; font-weight: 650; color: #183e28; }
.future-benefit .icon { width: 22px; height: 22px; margin-top: 2px; }

/* Téléphones et petites tablettes : pleine largeur et marges internes. */
@media (max-width: 768px) {
  :root { --panel-padding: 16px; --layout-gap: 28px; }

  .container,
  .service-ribbon,
  .process-section,
  footer,
  .entry-page .entry-main,
  .entry-page footer.entry-footer,
  .entry-page .topbar .container {
    width: 100%;
    max-width: 100%;
  }

  .container,
  footer,
  .entry-page footer.entry-footer { padding-inline: 16px; }

  .process-section > .container,
  footer > .container { padding-inline: 0; }

  .nav-wrap.container { width: calc(100% - 32px); }
  .profile-page .site-content::before { width: 100%; }
  .hero-copy::before,
  .entry-intro::before { inset-inline: 0; }

  .services-grid,
  .pro-services-layout,
  .project-layout,
  .about,
  .process-grid,
  .faq-section,
  .contact-grid,
  .future-services,
  .future-offers,
  .entry-choices,
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-presentation, .process-intro { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .entry-presentation { margin-top: 28px; padding: 24px 16px; border-radius: 20px; }
  .entry-presentation .eyebrow { font-size: 9px; }
  .entry-profile-choice { margin-top: 32px; }
  .entry-choice-intro h2 { font-size: 31px; }
  .nael-gallery, .nael-gallery-details { gap: 10px; }
  .nael-scene { border-radius: 12px; }
  .nael-scene-portrait { width: min(100%, 280px); justify-self: center; }
  .process-heading .button { max-width: 100%; }

  .section-heading { display: block; }
  .section-heading > p { max-width: 100%; margin-top: 18px; }
  .section-heading > .button { margin-top: 24px; }
  .future-offer { padding: 20px 18px; }
  .future-offer-visual { height: 220px; }
  .big-bag-detail { width: min(100%, 222px); }
  .future-offer h4 { font-size: 24px; }
  .pro-services-list h3 { font-size: 21px; }
  .future-services { gap: 0; }
  .future-services article + article {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid #cfdec1;
  }

  .future-heading.trailer-intro,
  .pro-future.trailer-intro {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .trailer-visual { margin-inline: auto; }
  .pro-future.trailer-intro > .button { align-self: flex-start; order: 2; }
  .service-body h3,
  .service-body p,
  .service-tags { min-height: 0; }
  .form-row { gap: 0; }
  .contact-form input,
  .contact-form select,
  .contact-form textarea { font-size: 16px; }
}
