/* =============================================================
   AG SERVICES - Feuille de style principale
   Sommaire :
   1.  Variables & réglages
   2.  Base & utilitaires
   3.  Boutons
   4.  En-tête / navigation
   5.  Hero
   6.  Sections & titres
   7.  Cartes services + bloc contrat
   8.  Section contrat (fond vert)
   9.  Services à la personne
   10. Galerie & lightbox
   11. À propos
   11 bis. Zone d'intervention
   11 ter. Questions fréquentes
   12. Instagram
   13. Contact & formulaire
   14. Pied de page
   15. Barre mobile
   16. Animations au scroll
   17. Responsive
   ============================================================= */

/* =============================================================
   1. VARIABLES & RÉGLAGES
   Modifiez ici les couleurs du site : tout se met à jour.
   ============================================================= */
:root {
  /* Couleurs de la charte */
  --green-dark:  #2F4720;   /* vert foncé du panneau */
  --green-main:  #4A6B2A;   /* vert principal / olive */
  --green-light: #7CA24F;   /* vert clair, accents */
  --green-pale:  #EDF2E5;   /* fond vert très clair */
  --beige-light: #F7F5EF;   /* fond beige doux */
  --white:       #FFFFFF;
  --black:       #161A12;

  /* Textes */
  --text:        #23281D;
  --text-soft:   #5C6553;
  --border:      #E3E6DC;

  /* Typographie */
  --font-title: "Archivo", "Segoe UI", Arial, sans-serif;
  --font-body:  "Inter", "Segoe UI", Arial, sans-serif;

  /* Mise en page */
  --container: 1180px;
  --radius:    14px;
  --radius-sm: 10px;
  --header-h:  76px;

  /* Ombres (très légères) */
  --shadow-sm: 0 1px 2px rgba(22, 26, 18, .05);
  --shadow:    0 6px 20px rgba(22, 26, 18, .07);
  --shadow-lg: 0 18px 40px rgba(22, 26, 18, .12);

  /* Transitions */
  --t: 250ms cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* Assure que l'attribut HTML `hidden` reste prioritaire sur les display: flex/grid */
[hidden] { display: none !important; }

/* =============================================================
   2. BASE & UTILITAIRES
   ============================================================= */
img { max-width: 100%; height: auto; display: block; }
a   { color: var(--green-main); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--green-dark); }

h1, h2, h3 {
  font-family: var(--font-title);
  line-height: 1.15;
  color: var(--black);
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}

p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.svg-sprite { display: none; }

.icon {
  width: 22px; height: 22px;
  flex: none;
  color: currentColor;
}
.icon--lg { width: 28px; height: 28px; }
.icon--xl { width: 34px; height: 34px; }

/* Accessibilité : lien d'évitement + focus visibles */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--green-dark);
  color: var(--white);
  padding: .8rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: var(--white); }

:focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. BOUTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: .85rem 1.5rem;
  min-height: 46px;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  transition: background-color var(--t), color var(--t), border-color var(--t),
              transform var(--t), box-shadow var(--t);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--green-main);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--green-dark); color: var(--white); box-shadow: var(--shadow); }

.btn--ghost {
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  border-color: rgba(255, 255, 255, .75);
  backdrop-filter: blur(3px);
}
.btn--ghost:hover { background: var(--white); color: var(--green-dark); border-color: var(--white); }

.btn--light { background: var(--white); color: var(--green-dark); }
.btn--light:hover { background: var(--green-pale); color: var(--green-dark); }

.btn--outline {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-main);
}
.btn--outline:hover { background: var(--green-main); color: var(--white); }

.btn--sm  { padding: .6rem 1.15rem; min-height: 40px; font-size: .88rem; }
.btn--lg  { padding:1rem 1.9rem; min-height: 54px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

/* =============================================================
   4. EN-TÊTE / NAVIGATION
   ============================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t), background-color var(--t);
}
.header.is-scrolled { box-shadow: var(--shadow); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: .7rem; color: var(--black); }

/* Logo horizontal : la hauteur pilote la taille, la largeur suit */
.brand__img { width: auto; height: 46px; object-fit: contain; }
.brand__img.is-missing { display: none; }

/* Texte de secours : masqué tant que le logo s'affiche correctement */
.brand__text { display: none; flex-direction: column; line-height: 1.05; }
.brand__img.is-missing + .brand__text { display: flex; }
.brand__name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: .02em;
}
.brand__tag {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green-main);
}

.nav__list { display: flex; align-items: center; gap: .35rem; }

.nav__link {
  position: relative;
  display: block;
  padding: .55rem .85rem;
  font-weight: 500;
  font-size: .96rem;
  color: var(--text);
  border-radius: var(--radius-sm);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: .85rem; right: .85rem; bottom: .3rem;
  height: 2px;
  background: var(--green-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav__link:hover { color: var(--green-dark); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--green-dark); font-weight: 600; }

.nav__cta { margin-left: .6rem; }

/* Bouton hamburger (mobile) */
.burger {
  display: none;
  width: 46px; height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  margin: 4px auto;
  background: var(--black);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =============================================================
   5. HERO
   ============================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(88vh, 780px);
  padding: calc(var(--header-h) + 4.5rem) 0 4.5rem;
  overflow: hidden;
  /* Dégradé de secours si la photo n'est pas encore déposée */
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 55%, var(--green-light) 100%);
}

.hero__media {
  position: absolute;
  inset: 0;
  /* Déposez votre photo ici : /images/hero/hero-jardin.jpg */
  background-image: url("../images/hero/hero-jardin.jpg");
  background-size: cover;
  background-position: center;
}

/* Filtre sombre : garantit la lisibilité du texte blanc quelle que soit
   la photo placée en arrière-plan. Réglez l'opacité (les valeurs .90 / .72 /
   .45) si vous changez de photo : plus la photo est claire, plus il faut monter. */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(16, 20, 12, .90) 0%, rgba(16, 20, 12, .72) 48%, rgba(16, 20, 12, .45) 100%),
    linear-gradient(to bottom, rgba(16, 20, 12, .35) 0%, rgba(16, 20, 12, 0) 30%, rgba(16, 20, 12, .30) 100%);
}

.hero__content { position: relative; max-width: 720px; color: var(--white); }

.hero__eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #D8E5C6;
  margin-bottom: 1rem;
}

.hero__title { margin-bottom: .8rem; color: var(--white); }
.hero__title-main {
  display: block;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: .01em;
}
.hero__title-sub {
  display: block;
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: #C9DDB0;
  margin-top: .25rem;
}

.hero__slogan {
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-weight: 600;
  font-style: italic;
  color: #EAF2DF;
  margin-bottom: .9rem;
}

.hero__text {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, .92);
  max-width: 58ch;
  margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }

.hero__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

.badge-tax {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .9rem 1.3rem;
  background: rgba(255, 255, 255, .96);
  color: var(--green-dark);
  border-left: 5px solid var(--green-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.badge-tax__title {
  display: block;
  font-family: var(--font-title);
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.2;
}
.badge-tax__note { display: block; font-size: .82rem; color: var(--text-soft); }

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: .6rem 1.1rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--white);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
}

/* =============================================================
   6. SECTIONS & TITRES
   ============================================================= */
.section { padding: 5.5rem 0; }
.section--tight { padding: 4rem 0; }
.section--soft { background: var(--beige-light); }
.section--dark { background: var(--green-dark); color: rgba(255, 255, 255, .9); }

.section__head { max-width: 780px; margin: 0 auto 3rem; text-align: center; }

.section__eyebrow {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green-main);
  margin-bottom: .7rem;
}
.section__eyebrow--light { color: var(--green-light); }

.section__title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
.section__title--light { color: var(--white); }

.section__intro { color: var(--text-soft); font-size: 1.03rem; margin-bottom: 0; }
.section--dark .section__intro { color: rgba(255, 255, 255, .82); }

/* =============================================================
   7. CARTES SERVICES + BLOC CONTRAT
   ============================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #D3DEC3;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  margin-bottom: 1.1rem;
  color: var(--green-main);
  background: var(--green-pale);
  border-radius: 50%;
  transition: background-color var(--t), color var(--t);
}
.card:hover .card__icon { background: var(--green-main); color: var(--white); }

.card__title { font-size: 1.14rem; margin-bottom: .5rem; }
.card__text  { color: var(--text-soft); font-size: .95rem; margin-bottom: 1rem; }
.card__price {
  margin: 0;
  font-family: var(--font-title);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-main);
}

/* Bloc contrat mis en avant sous les cartes */
.highlight {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.8rem;
  margin-top: 2.5rem;
  padding: 2.2rem;
  background: var(--green-pale);
  border: 1px solid #D8E3C7;
  border-radius: var(--radius);
}
.highlight__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px; height: 74px;
  color: var(--white);
  background: var(--green-main);
  border-radius: 50%;
}
.highlight__eyebrow {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green-main);
  margin-bottom: .35rem;
}
.highlight__title { font-size: 1.55rem; margin-bottom: .5rem; }
.highlight__text  { color: var(--text-soft); margin: 0; max-width: 62ch; }

/* =============================================================
   8. SECTION CONTRAT (fond vert)
   ============================================================= */
.contract {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.contract__lead { font-size: 1.06rem; color: rgba(255, 255, 255, .85); margin-bottom: 2rem; max-width: 52ch; }

.contract__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.contract__list li {
  display: flex;
  gap: .8rem;
  padding: 1.1rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius-sm);
  transition: background-color var(--t), transform var(--t);
}
.contract__list li:hover { background: rgba(255, 255, 255, .13); transform: translateY(-3px); }
.contract__list .icon { color: var(--green-light); width: 20px; height: 20px; margin-top: .25rem; }
.contract__list strong { display: block; color: var(--white); font-size: .98rem; }
.contract__list span   { font-size: .88rem; color: rgba(255, 255, 255, .75); line-height: 1.5; }

/* =============================================================
   9. SERVICES À LA PERSONNE
   ============================================================= */
/* Bandeau du label officiel Services à la Personne.
   Le logo garde ses couleurs officielles : on ne modifie jamais un logo
   institutionnel. Il est simplement posé sur un fond blanc neutre. */
.sap-label {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto 2.5rem;
  padding: 1.6rem 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.sap-label__logo {
  flex: none;
  width: auto;
  height: 96px;
  object-fit: contain;
}

.sap-label__title {
  margin: 0 0 .35rem;
  font-family: var(--font-title);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--black);
}
.sap-label__desc { margin: 0; font-size: .93rem; color: var(--text-soft); }
.sap-label__ref {
  margin: .5rem 0 0;
  font-size: .84rem;
  font-weight: 600;
  color: var(--green-main);
}

.sap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.sap__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.sap__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sap__card .icon { color: var(--green-main); margin-bottom: 1rem; }
.sap__card h3 { font-size: 1.2rem; }
.sap__card p  { color: var(--text-soft); font-size: .95rem; margin: 0; }

.sap__card--strong {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.sap__card--strong .icon { color: var(--green-light); }
.sap__card--strong h3 { color: var(--white); font-size: 1.42rem; }
.sap__card--strong p  { color: rgba(255, 255, 255, .82); }

.legal {
  max-width: 780px;
  margin: 2.2rem auto 0;
  font-size: .82rem;
  color: var(--text-soft);
  text-align: center;
}

/* =============================================================
   10. GALERIE & LIGHTBOX
   ============================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.1rem;
}

.gallery__item {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--green-pale);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t);
}
.gallery__item:hover { box-shadow: var(--shadow); }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(.4, 0, .2, 1);
}
.gallery__item:hover img { transform: scale(1.06); }

/* Emplacement dont la photo n'a pas encore été déposée : il disparaît
   simplement. Déposez le fichier dans /images/realisations/ et la vignette
   réapparaît d'elle-même, sans rien modifier dans le code. */
.gallery__item.is-missing { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(12, 15, 9, .93);
  opacity: 0;
  transition: opacity var(--t);
}
.lightbox.is-open { opacity: 1; }

.lightbox__figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lightbox__figure img {
  max-width: 100%;
  max-height: 80vh;
  margin-inline: auto;
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox__caption { margin-top: .9rem; font-size: .9rem; color: rgba(255, 255, 255, .8); }

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color var(--t);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, .28); }

.lightbox__close {
  top: 1.2rem; right: 1.2rem;
  width: 48px; height: 48px;
  font-size: 1.9rem;
  line-height: 1;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 1.3rem;
}
.lightbox__nav--prev { left: 1.2rem; }
.lightbox__nav--next { right: 1.2rem; }

/* =============================================================
   11. À PROPOS
   ============================================================= */
.about {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3.5rem;
  align-items: start;
}
.about__text p { color: var(--text-soft); }

.about__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.about__facts li { display: flex; flex-direction: column; }
.about__facts strong {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--green-main);
  line-height: 1.2;
}
.about__facts span { font-size: .88rem; color: var(--text-soft); }

.about__photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-pale);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo.is-missing { display: none; }

.about__box {
  margin-top: 1.4rem;
  padding: 1.7rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green-main);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.about__box .icon { color: var(--green-main); margin-bottom: .7rem; }
.about__box h3 { font-size: 1.14rem; margin-bottom: .45rem; }
.about__box p  { color: var(--text-soft); font-size: .94rem; margin: 0; }

/* =============================================================
   11 bis. ZONE D'INTERVENTION
   ============================================================= */
.zones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.zone-card {
  padding: 1.8rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.zone-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.zone-card__title {
  font-size: 1.05rem;
  padding-bottom: .7rem;
  margin-bottom: .9rem;
  border-bottom: 2px solid var(--green-pale);
  color: var(--green-dark);
}

.zone-card__list { display: flex; flex-wrap: wrap; gap: .45rem; }
.zone-card__list li {
  padding: .3rem .75rem;
  font-size: .87rem;
  color: var(--text-soft);
  background: var(--green-pale);
  border-radius: 999px;
}

/* =============================================================
   11 ter. QUESTIONS FRÉQUENTES
   ============================================================= */
.faq {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: .8rem;
}

.faq__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t), box-shadow var(--t);
}
.faq__item:hover { border-color: #D3DEC3; }
.faq__item[open] { box-shadow: var(--shadow); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--black);
  cursor: pointer;
  list-style: none;              /* masque le triangle par défaut */
}
.faq__q::-webkit-details-marker { display: none; }

/* Chevron dessiné en CSS : aucune image à charger */
.faq__q::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--green-main);
  border-bottom: 2px solid var(--green-main);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--t);
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg) translate(-3px, -3px); }

.faq__a { padding: 0 1.4rem 1.3rem; }
.faq__a p { margin: 0; color: var(--text-soft); font-size: .96rem; }

/* =============================================================
   12. INSTAGRAM
   ============================================================= */
.insta {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.insta__head .section__title { margin-bottom: .6rem; }
.insta__handle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-soft);
  margin-bottom: 1.4rem;
}
.insta__handle .icon { color: var(--green-main); }

.insta__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.insta__tile {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--green-pale);
  box-shadow: var(--shadow-sm);
}
.insta__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--t); }
.insta__tile:hover img { transform: scale(1.07); }
.insta__tile.is-missing { display: none; }

/* Si aucun aperçu Instagram n'est déposé, la section se réduit
   proprement au titre et au bouton (classes posées par script.js). */
.insta__grid.is-empty { display: none; }
.insta.is-single { grid-template-columns: 1fr; text-align: center; justify-items: center; }

/* =============================================================
   13. CONTACT & FORMULAIRE
   ============================================================= */
.contact {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.contact__info {
  padding: 2rem 1.8rem;
  background: var(--green-dark);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, .85);
}
.contact__info-title { color: var(--white); font-size: 1.25rem; margin-bottom: 1.4rem; }

.contact__list li {
  display: flex;
  gap: .9rem;
  padding: .9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.contact__list li:last-child { border-bottom: none; }
.contact__list .icon { color: var(--green-light); margin-top: .2rem; }
.contact__label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.contact__list a { color: var(--white); font-weight: 500; }
.contact__list a:hover { color: var(--green-light); text-decoration: underline; }
.contact__list address,
.contact__list p { font-style: normal; margin: 0; color: rgba(255, 255, 255, .85); font-size: .94rem; }

.contact__cta { margin-top: 1.5rem; }
.contact__info .btn--primary { background: var(--green-light); color: var(--green-dark); }
.contact__info .btn--primary:hover { background: var(--white); color: var(--green-dark); }

/* Formulaire */
.contact__form-wrap {
  padding: 2.2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.field { margin-bottom: 1.1rem; }
.field label,
.field__label,
.fieldset legend {
  display: block;
  margin-bottom: .4rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}
.field__optional { font-weight: 400; color: var(--text-soft); }
.req { color: #A23A2B; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8rem .95rem;
  font-family: inherit;
  font-size: .96rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-main);
  box-shadow: 0 0 0 3px rgba(74, 107, 42, .14);
}
.field input::placeholder,
.field textarea::placeholder { color: #A3AB98; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #C25B49; }

.field__error {
  display: none;
  margin: .35rem 0 0;
  font-size: .84rem;
  color: #A23A2B;
}
.field__error.is-visible { display: block; }
.field__hint { margin: .35rem 0 0; font-size: .84rem; color: var(--text-soft); }

/* Champs dynamiques : petite apparition */
.field--dynamic {
  padding: 1rem 1.1rem;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  animation: slideDown 300ms ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fieldset {
  margin: 0 0 1.1rem;
  padding: 0;
  border: none;
}
.choices { display: flex; flex-wrap: wrap; gap: .6rem; }

.choice {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem 1rem;
  font-size: .92rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color var(--t), background-color var(--t);
}
.choice:hover { border-color: var(--green-light); }
.choice input { accent-color: var(--green-main); width: 18px; height: 18px; }
.choice:has(input:checked) { border-color: var(--green-main); background: var(--green-pale); }

.choice--consent {
  align-items: flex-start;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  color: var(--text-soft);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

/* Zone de dépôt des photos */
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: 1.8rem 1.2rem;
  text-align: center;
  color: var(--text-soft);
  background: var(--beige-light);
  border: 2px dashed #CBD5BC;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--t), background-color var(--t);
}
.dropzone:hover,
.dropzone.is-dragover { border-color: var(--green-main); background: var(--green-pale); }
.dropzone .icon { color: var(--green-main); }
.dropzone__title { margin: 0; font-weight: 600; color: var(--text); }
.dropzone__hint  { margin: 0; font-size: .82rem; }

.filelist { margin-top: .8rem; display: grid; gap: .5rem; }
.filelist li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .8rem;
  font-size: .87rem;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
}
.filelist .icon { width: 18px; height: 18px; color: var(--green-main); }
.filelist__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist__size { color: var(--text-soft); font-size: .8rem; }
.filelist__remove {
  padding: 0 .4rem;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--text-soft);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--t);
}
.filelist__remove:hover { color: #A23A2B; }

/* Piège à robots : sorti de l'écran plutôt que masqué par display:none,
   que certains programmes savent détecter. Invisible pour le visiteur,
   inatteignable au clavier et ignoré par les lecteurs d'écran. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__note { margin: .9rem 0 0; font-size: .82rem; color: var(--text-soft); text-align: center; }

.form__feedback {
  margin-top: 1.2rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: .95rem;
}
.form__feedback--success {
  background: var(--green-pale);
  border-left: 4px solid var(--green-main);
  color: var(--green-dark);
}
.form__feedback--error {
  background: #FBEDEA;
  border-left: 4px solid #C25B49;
  color: #8E3427;
}
.form__feedback strong { display: block; font-family: var(--font-title); margin-bottom: .2rem; }

/* =============================================================
   14. PIED DE PAGE
   ============================================================= */
.footer { background: var(--black); color: rgba(255, 255, 255, .72); padding-top: 3.5rem; }

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer__brand {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .1rem;
}
.footer__sub { color: var(--green-light); font-size: .9rem; margin-bottom: .8rem; }
.footer__slogan { font-style: italic; font-size: .92rem; max-width: 34ch; }

/* Logo Services à la Personne : posé sur une pastille blanche pour rester
   lisible sur le fond sombre du pied de page. */
.footer__sap {
  display: inline-flex;
  margin-top: 1.2rem;
  padding: .7rem 1rem;
  background: var(--white);
  border-radius: var(--radius-sm);
}
.footer__sap img { width: auto; height: 58px; object-fit: contain; }

.footer__title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer__list li { margin-bottom: .55rem; font-size: .93rem; line-height: 1.6; }
.footer__list a { color: rgba(255, 255, 255, .78); }
.footer__list a:hover { color: var(--green-light); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .84rem;
}
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; gap: 1.4rem; }
.footer__legal a { color: rgba(255, 255, 255, .6); }
.footer__legal a:hover { color: var(--green-light); }

/* =============================================================
   15. BARRE MOBILE
   ============================================================= */
.mobile-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: none;
  gap: .6rem;
  padding: .55rem .8rem calc(.55rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(22, 26, 18, .08);
  backdrop-filter: blur(6px);
}
.mobile-bar__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 46px;
  font-family: var(--font-title);
  font-size: .92rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-pale);
  border-radius: 999px;
}
.mobile-bar__btn--primary { background: var(--green-main); color: var(--white); }
.mobile-bar__btn--primary:hover { color: var(--white); }
.mobile-bar__btn .icon { width: 19px; height: 19px; }

/* =============================================================
   16. ANIMATIONS AU SCROLL
   ============================================================= */
/* L'état masqué n'est appliqué que si JavaScript est disponible
   (la classe .js est ajoutée par index.html). */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(.4, 0, .2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================
   17. RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  .contact { grid-template-columns: 1fr; }
  .insta   { grid-template-columns: 1fr; gap: 2rem; }
  .about   { grid-template-columns: 1fr; gap: 2.5rem; }
  .contract { grid-template-columns: 1fr; gap: 2.5rem; }
  .highlight { grid-template-columns: auto 1fr; }
  .highlight__action { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }

  .burger { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: 0;
    overflow: hidden;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    /* visibility : empêche la navigation au clavier dans un menu fermé */
    visibility: hidden;
    opacity: 0;
    transition: max-height 350ms ease, opacity 250ms ease, visibility 0s linear 350ms;
  }
  .nav.is-open {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
    transition: max-height 350ms ease, opacity 250ms ease, visibility 0s;
  }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: .8rem 1.25rem 1.4rem; }
  .nav__link { padding: .95rem .4rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--green-main); }
  .nav__cta { margin: 1rem 0 0; }
  .nav__cta .btn { width: 100%; }

  .section { padding: 4rem 0; }
  .hero { min-height: auto; padding: calc(var(--header-h) + 3.5rem) 0 3.5rem; }
  .hero__actions .btn { flex: 1 1 220px; }

  .form__row { grid-template-columns: 1fr; gap: 0; }
  .contract__list { grid-template-columns: 1fr; }

  .highlight { grid-template-columns: 1fr; text-align: left; padding: 1.8rem; }
  .highlight__action .btn { width: 100%; }

  .sap-label { flex-direction: column; text-align: center; gap: 1.2rem; padding: 1.6rem 1.3rem; }
  .sap-label__logo { height: 84px; }

  .mobile-bar { display: flex; }
  /* Espace pour ne pas masquer le contenu sous la barre fixe */
  body { padding-bottom: 72px; }

  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: .5rem; }
  .lightbox__nav--next { right: .5rem; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 2rem, var(--container)); }
  .contact__form-wrap { padding: 1.4rem; }
  .contact__info { padding: 1.6rem 1.3rem; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
  .insta__grid { gap: .6rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .badge-tax { width: 100%; }
  .brand__img { height: 38px; }
  .brand__name { font-size: 1.05rem; }
  .choices { flex-direction: column; align-items: stretch; }
  .choice { border-radius: var(--radius-sm); }
}

/* =============================================================
   PRÉFÉRENCE : ANIMATIONS RÉDUITES
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* =============================================================
   IMPRESSION
   ============================================================= */
@media print {
  .header, .mobile-bar, .lightbox, .hero__actions, .dropzone { display: none !important; }
  .hero { min-height: auto; color: var(--black); }
  body { padding-bottom: 0; }
}
