/* ===============================================
   ALAIN EME MENUISERIE - STYLE CSS
   Mobile First
   =============================================== */

/* ===============================================
   RESET & BASE — fondations 1, 2 du référentiel responsive
   =============================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

body {
  font-family: "halcom", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--pas);
  line-height: 1.6;
  color: #4a4a4a;
  background-color: #fff;
  overflow-x: clip;
  text-wrap: pretty;
}

img, picture, video, svg, iframe, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font: inherit;
  font-size: max(1rem, 16px);
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

:where(p, li, h1, h2, h3, h4, h5, h6, td, dd, dt) {
  overflow-wrap: break-word;
}

/* Fondation 3 : min-width: 0 sur enfants flex/grid (tue 80% des débordements) */
:where(
  .container, .header__inner, .header__right,
  .hero__content, .hero-page__content,
  .nav-desktop__list, .mobile-nav__menu,
  .intro__grid, .intro__content,
  .features__grid, .process__grid, .stats__grid, .services__grid,
  .cards-grid, .footer__grid, .footer__col,
  .contact__grid, .contact__form, .contact__info, .form-row,
  .cookies-banner__inner
) > * {
  min-width: 0;
}

/* ===============================================
   VARIABLES CSS
   =============================================== */
:root {
  --color-green: #297d4d;
  --color-green-hover: #1e5f3a;
  --color-brown: #7c5e29;
  --color-brown-80: rgba(124, 94, 41, 0.8);
  --color-brown-50: rgba(124, 94, 41, 0.5);
  --color-brown-30: rgba(124, 94, 41, 0.3);
  --color-brown-15: rgba(124, 94, 41, 0.15);
  --color-brown-10: rgba(124, 94, 41, 0.1);
  --color-white: #ffffff;
  --color-black: #000000;
  --color-text: #4a4a4a;
  --color-text-light: #6b6b6b;
  --color-gold: #c9a96e;

  --container-max: 1200px;

  /* Typographie fluide (fondation 6) : base rem + composante vw + max rem */
  --pas: clamp(0.95rem, 0.85rem + 0.4vw, 1.05rem);
  --h1:  clamp(1.9rem, 1.2rem + 3.5vw, 3.5rem);   /* 30.4 -> 56 px */
  --h2:  clamp(1.5rem, 1.1rem + 2vw, 2.5rem);     /* 24 -> 40 px */
  --h3:  clamp(1.2rem, 1rem + 1vw, 1.75rem);      /* 19.2 -> 28 px */

  /* Espacements fluides (fondation 8) */
  --e-1: clamp(0.5rem, 1vw, 0.75rem);
  --e-2: clamp(1rem, 2vw, 1.5rem);
  --e-3: clamp(1.5rem, 4vw, 3rem);
  --e-4: clamp(2.5rem, 7vw, 6rem);

  /* Padding container fluide (fondation 9) : 20 -> 60 selon la place dispo */
  --container-padding: clamp(1.25rem, 4vw, 3.75rem);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 50px;

  --transition: all 0.3s ease;
}

/* ===============================================
   UTILITIES
   =============================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===============================================
   HEADER
   =============================================== */
.header {
  position: fixed;
  top: 15px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: padding 0.3s ease;
  transition: var(--transition);
}

.header--transparent {
  background: transparent;
}

.header--scrolled {
  background: rgba(45, 74, 62, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
}

.header--scrolled::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 74, 62, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
}

.header--scrolled .header__logo {
  height: 32px;
}

.header--scrolled .nav-desktop__link {
  font-size: 13px;
  color: var(--color-white);
}

.header--scrolled .header__phone {
  font-size: 12px;
  color: var(--color-white);
}

.header--scrolled .header__phone svg {
  width: 14px;
  height: 14px;
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-padding);
  gap: var(--e-2);
}

@media (min-width: 64rem) {
  .header__inner {
    padding-inline: clamp(2.5rem, 8vw, 194px);
  }
}

/* Logo SVG */
.header__logo {
  display: block;
  height: 45px;
  width: auto;
  transition: height 0.3s ease;
}

.header__logo img {
  height: 100%;
  width: auto;
  filter: brightness(0) invert(1); /* Blanc sur hero */
  transition: var(--transition);
}

.header--scrolled .header__logo img {
  filter: brightness(0) invert(1); /* Reste blanc sur fond vert */
}

/* Header Right */
.header__right {
  display: none;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
}

.header__phone svg {
  flex-shrink: 0;
}


/* Navigation Desktop */
.nav-desktop {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-desktop__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-desktop__item {
  position: relative;
}

.nav-desktop__link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-white);
  padding: 8px 0;
  transition: var(--transition);
}


.nav-desktop__link:hover {
  opacity: 0.8;
}

.nav-desktop__arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.nav-desktop__item:hover .nav-desktop__arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -10px;
  min-width: 200px;
  background-color: var(--color-green);
  border-radius: 10px;
  padding: 8px;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: var(--transition);
}

.nav-desktop__item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__link {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--color-white);
  border-radius: 6px;
  transition: var(--transition);
}

.nav-dropdown__link:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.hamburger__line {
  width: 100%;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}

.header--scrolled .hamburger__line {
  background: var(--color-white);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: #1a1a1a;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
  overflow-y: auto;
  visibility: hidden; /* évite le flag du script de détection (bounding rect natif à left=-viewport) */
}

.mobile-nav.active {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.3s ease, visibility 0s linear 0s;
}

.mobile-nav__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
}

.mobile-nav__logo {
  height: 40px;
}

.mobile-nav__logo img {
  height: 100%;
  filter: brightness(0) invert(1);
}

.mobile-nav__close {
  color: var(--color-white);
  font-size: 32px;
  line-height: 1;
}

.mobile-nav__menu {
  padding: 0 24px;
}

.mobile-nav__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  color: var(--color-white);
  font-size: 18px;
  font-weight: 500;
  text-align: left;
}

.mobile-nav__link.active {
  color: var(--color-gold);
}

.mobile-nav__icon {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.mobile-nav__item.open .mobile-nav__icon {
  transform: rotate(45deg);
}

.mobile-nav__submenu {
  display: none;
  padding: 0 0 16px 16px;
}

.mobile-nav__item.open .mobile-nav__submenu {
  display: block;
}

.mobile-nav__sublink {
  display: block;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

.mobile-nav__footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav__search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
}

.mobile-nav__search svg {
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.mobile-nav__search input {
  flex: 1;
  background: none;
  border: none;
  color: var(--color-white);
  outline: none;
}

.mobile-nav__search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* ===============================================
   HERO SLIDER
   =============================================== */
.hero {
  position: relative;
  min-height: 100vh; /* fallback anciens navigateurs */
  min-height: 100svh; /* fondation 10 : petit viewport, pas de saut sur mobile */
  overflow: hidden;
}

@media (min-width: 48rem) {
  .hero { min-height: max(600px, 100svh); }
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.hero__slide.active {
  opacity: 1;
  visibility: visible;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* Overlay marron 55% */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(124, 94, 41, 0.55);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  padding-inline: var(--container-padding);
}

@media (min-width: 64rem) {
  .hero__content {
    padding-inline: clamp(2.5rem, 8vw, 194px);
  }
}

.hero__surtitle {
  font-size: clamp(1.15rem, 0.9rem + 1.2vw, 2.5rem); /* 18 -> 40 px */
  color: var(--color-white);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.hero__title {
  font-size: clamp(2rem, 1.2rem + 4.5vw, 5rem); /* 32 -> 80 px */
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.05;
  margin-bottom: var(--e-3);
  text-align: left;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.hero__slide.active .hero__surtitle,
.hero__slide.active .hero__title {
  opacity: 1;
  transform: translateY(0);
}

.hero .btn {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s;
}

.hero__slide.active .btn {
  opacity: 1;
  transform: translateY(0);
}

/* Dots navigation */
.hero__dots {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}

.hero__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.hero__dot:hover,
.hero__dot.active {
  background: var(--color-white);
}

/* ===============================================
   BOUTONS
   =============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.btn--primary {
  background: var(--color-green);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-green-hover);
  transform: translateY(-2px);
}

.btn--secondary {
  background: var(--color-brown);
  color: var(--color-white);
}

.btn--secondary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ===============================================
   SECTION SERVICES
   =============================================== */
.section-services {
  padding-block: var(--e-4);
  padding-inline: var(--container-padding);
  background: rgba(124, 94, 41, 0.08);
}

.section-services .container {
  max-width: 1400px;
  padding-inline: 0;
}

.services__header {
  text-align: center;
  margin-bottom: 48px;
}

.services__header .surtitle {
  display: block;
  margin-bottom: 12px;
}

.services__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-brown);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.services__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.service-card {
  position: relative;
  flex: 0 1 auto;
  width: clamp(140px, 45vw, 260px);
  aspect-ratio: 200 / 320;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.service-card:nth-child(1) {
  transform: rotate(-2deg);
}

.service-card:nth-child(2) {
  transform: rotate(1deg);
}

.service-card:nth-child(3) {
  transform: rotate(-1deg);
}

.service-card:nth-child(4) {
  transform: rotate(2deg);
}

.service-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card__image {
  transform: scale(1.1);
}

/* Overlay gradient en bas */
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  pointer-events: none;
}

.service-card__content {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.service-card__label {
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.3;
  max-width: 70%;
}

.service-card__arrow {
  width: 36px;
  height: 36px;
  background: #c45c35;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card__arrow svg {
  width: 18px;
  height: 18px;
  color: white;
}

.service-card:hover {
  transform: rotate(0deg);
}

/* ===============================================
   SECTION A PROPOS
   =============================================== */
.section-about {
  padding: 80px 0;
  background: rgba(124, 94, 41, 0.13);
}

.about__grid {
  display: grid;
  gap: 40px;
}

/* Image sans bordure, carré parfait */
.about__image-wrapper {
  position: relative;
}

.about__image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about__image-frame img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.about__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.about__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-brown-30);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.about__dot.active,
.about__dot:hover {
  background: var(--color-brown);
}

/* Contenu texte */
.about__content {
  display: flex;
  flex-direction: column;
}

.surtitle {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-brown);
  line-height: 1.3;
  margin-bottom: 20px;
}

.about__text {
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about__cta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.rge-badge {
  height: 50px;
  width: auto;
}

/* ===============================================
   SECTION CHIFFRES
   =============================================== */
.section-stats {
  padding: 72px 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-brown-10);
  border-bottom: 1px solid var(--color-brown-10);
}

.stats__grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat__number {
  font-size: clamp(1.75rem, 1rem + 3vw, 2.625rem); /* 28 -> 42 px */
  font-weight: 700;
  color: var(--color-green);
  line-height: 1;
  overflow-wrap: anywhere; /* piège 2 : long mot ne déborde plus */
  max-width: 100%;
}

.stat__number sup {
  font-size: 0.5em;
}

.stat__label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-brown);
}

/* ===============================================
   SECTION GALERIE
   =============================================== */
/* ===============================================
   SECTION PARALLAXE
   =============================================== */
.section-parallax {
  position: relative;
  z-index: 0;
  min-height: clamp(400px, 60vh, 616px);
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  overflow: hidden;
}

.section-parallax::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.section-parallax__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--e-2);
  min-height: inherit;
  height: 100%;
  padding-inline: var(--container-padding);
  text-align: center;
}

/* ===============================================
   SECTION FAQ - Vrais accordeons
   =============================================== */
.section-faq {
  padding: 80px 0;
  background: var(--color-white);
}

.faq__grid {
  display: grid;
  gap: 40px;
}

/* Contenu FAQ - PAS DE BORDER */
.faq__content {
  /* PAS de border, PAS de background */
}

.faq__header {
  margin-bottom: 24px;
}

/* Accordeons */
.accordion {
  border-bottom: 1px dashed var(--color-brown-50);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  text-align: left;
  gap: 16px;
}

.accordion__question {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  flex: 1;
}

.accordion__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--color-brown);
  color: var(--color-white);
  font-size: 18px;
  font-weight: 300;
  transition: transform 0.2s ease;
}

.accordion.active .accordion__icon {
  transform: rotate(45deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion.active .accordion__content {
  max-height: 300px;
}

.accordion__answer {
  padding-bottom: 18px;
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Image FAQ avec bordure marron */
.faq__image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq__image-frame img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

/* ===============================================
   SECTION CONTACT
   =============================================== */
.section-contact {
  padding: 80px 0;
  background: rgba(124, 94, 41, 0.08);
}

.contact__grid {
  display: grid;
  gap: 40px;
}

/* Formulaire */
.contact__form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.contact__form .surtitle,
.contact__info .surtitle {
  display: block;
  margin-bottom: 8px;
}

.contact__form-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-brown);
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.form-input {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--color-brown-30);
  background: transparent;
  font-size: 14px;
  color: var(--color-text);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-bottom-color: var(--color-brown);
}

.form-input::placeholder {
  color: var(--color-brown-50);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Infos contact */
.contact__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact__info-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-brown);
  margin-bottom: 32px;
}

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.contact__info-icon {
  width: 20px;
  height: 20px;
  color: var(--color-green);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__info-label {
  font-size: 12px;
  color: var(--color-brown-80);
  display: block;
}

.contact__info-value {
  font-size: 14px;
  color: var(--color-text);
  font-weight: 500;
}

.contact__info-value a {
  transition: var(--transition);
}

.contact__info-value a:hover {
  color: var(--color-green);
}

/* ===============================================
   HERO PAGE (pages internes)
   =============================================== */
.hero-page {
  position: relative;
  min-height: clamp(280px, 45vh, 450px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-page__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-page__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(124, 94, 41, 0.6);
}

.hero-page__content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  padding-inline: var(--container-padding);
  max-width: 100%;
}

.hero-page__surtitle {
  display: block;
  font-size: clamp(0.75rem, 0.7rem + 0.3vw, 0.875rem); /* 12 -> 14 px */
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.hero-page__title {
  font-size: clamp(1.75rem, 1rem + 3.5vw, 4rem); /* 28 -> 64 px */
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  text-wrap: balance;
}

.hero-page__subtitle {
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.25rem); /* 15 -> 20 px */
  opacity: 0.9;
  max-width: 68ch;
  margin: 0 auto;
  line-height: 1.5;
}

/* ===============================================
   SECTION INTRO
   =============================================== */
.section-intro {
  padding: 80px 0;
  background: var(--color-white);
}

.intro__grid {
  display: grid;
  gap: 40px;
}

.intro__content .surtitle {
  display: block;
  margin-bottom: 12px;
}

.intro__content .section-title {
  margin-bottom: 24px;
}

.intro__text {
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.7;
}

.intro__content .btn {
  margin-top: 16px;
}

.intro__image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.intro__image-frame img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

/* ===============================================
   SECTION FEATURES
   =============================================== */
.section-features {
  padding: 80px 0;
  background: rgba(124, 94, 41, 0.08);
}

.features__header {
  text-align: center;
  margin-bottom: 48px;
}

.features__header .surtitle {
  display: block;
  margin-bottom: 12px;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature-card {
  background: var(--color-white);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: rgba(41, 125, 77, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-green);
}

.feature-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-brown);
  margin-bottom: 12px;
}

.feature-card__text {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.6;
}

/* ===============================================
   SECTION PROCESS
   =============================================== */
.section-process {
  padding: 80px 0;
  background: var(--color-white);
}

.process__header {
  text-align: center;
  margin-bottom: 48px;
}

.process__header .surtitle {
  display: block;
  margin-bottom: 12px;
}

.process__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.process-step {
  text-align: center;
}

.process-step__number {
  display: inline-block;
  font-size: 48px;
  font-weight: 700;
  color: var(--color-green);
  opacity: 0.3;
  margin-bottom: 16px;
}

.process-step__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-brown);
  margin-bottom: 12px;
}

.process-step__text {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* Parallax title */
.section-parallax__title {
  color: var(--color-white);
  font-size: clamp(1.25rem, 0.9rem + 1.5vw, 2.25rem); /* 20 -> 36 px */
  font-weight: 600;
  text-align: center;
  margin-bottom: 0;
  max-width: 100%;
  position: relative;
  z-index: 1;
  text-wrap: balance;
}

/* Services alt */
.section-services--alt {
  background: var(--color-white);
}

.section-services--alt .services__grid {
  justify-content: center;
}

/* ===============================================
   FOOTER
   =============================================== */
.footer {
  background: var(--color-brown);
  color: var(--color-white);
  padding: 60px 0 24px;
}

.footer__grid {
  display: grid;
  gap: 32px;
  margin-bottom: 40px;
}

.footer__logo {
  height: 45px;
  margin-bottom: 16px;
}

.footer__logo img {
  height: 100%;
  filter: brightness(0) invert(1);
}

.footer__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer__links li {
  margin-bottom: 8px;
}

.footer__link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__contact-info {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.footer__legal {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer__legal a:hover {
  color: var(--color-white);
}

/* ===============================================
   ANIMATIONS
   =============================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================================
   RESPONSIVE (mobile-first, uniquement min-width)
   Note : container-padding, hero__title, hero__surtitle, header__inner
   sont désormais fluides via clamp() dans les blocs concernés.
   =============================================== */

/* Tablet */
@media (min-width: 48rem) {
  .hero__dots {
    right: 40px;
  }

  .services__title {
    font-size: 32px;
  }

  .service-card__label {
    font-size: 15px;
  }

  .about__grid {
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: center;
  }

  .section-title {
    font-size: 28px;
  }

  .stats__grid {
    gap: 64px;
  }

  .stat__number {
    font-size: 42px;
  }

  .faq__grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }

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

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  /* Intro responsive */
  .intro__grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }

  /* Features responsive (fondation 5 : grille intrinsèque) */
  .features__grid {
    grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
    gap: 32px;
  }

  /* Process responsive */
  .process__grid {
    grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
    gap: 40px;
  }
}

/* Desktop */
@media (min-width: 64rem) {
  .nav-desktop {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .header__right {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .hero__dots {
    right: 60px;
  }

  .section-parallax {
    background-attachment: fixed;
  }

  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
  }

  /* Hero page desktop : plus haut, largeur inchangée */
  .hero-page {
    min-height: 500px;
  }

  /* Features et process : grille fluide auto-fit (fondation 5) */
  .features__grid {
    grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  }

  .process__grid {
    grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  }

}

/* Paysage mobile : hero écrasé (piège 15) */
@media (max-height: 30rem) and (orientation: landscape) {
  .hero, .hero-page {
    min-height: auto;
    padding-block: var(--e-3);
  }
}

/* prefers-reduced-motion (piège 14) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
