/* ==========================================================================
   Drôme Débroussaillage Solutions — feuille de style maison
   Base : Bootstrap 5.3 (variables --bs-*). Ce fichier ne fait que l'habiller.

   Sommaire
   1.  Polices (auto-hébergées, OFL)
   2.  Variables : couleurs, typographie, espacements
   3.  Base : corps, titres, liens, focus, sélection
   4.  Utilitaires typographiques (étiquette, chapô, prose)
   5.  Boutons
   6.  En-tête et navigation
   7.  Pied de page
   8.  Sections et fonds
   9.  Compositions « partage » (photo pleine hauteur + texte)
   10. Photos (cadres et ratios)
   11. Listes
   12. Accueil
   13. Pages intérieures
   14. Réalisations : galerie et diaporama
   15. Contact
   16. FAQ (accordéon)
   17. Mouvement réduit
   ========================================================================== */


/* ==========================================================================
   1. Polices
   DM Sans (variable 100–1000, romain et italique) pour les titres et le texte.
   Fichiers woff2, sous-ensemble latin, dans static/fonts/ avec leur licence.
   ========================================================================== */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   2. Variables
   ========================================================================== */
:root {
  /* Charte */
  --vert: #406648;              /* principal — texte blanc OK (6,5:1) */
  --vert-fonce: #2f4d36;        /* aplats sombres, pied de page */
  --vert-clair: #6aa276;        /* DÉCORATIF UNIQUEMENT (filets, puces) */
  --peche: #d89a83;             /* accent, uniquement sur fond --encre */
  --terracotta: #b25735;        /* actions et bandeaux d'appel */
  --terracotta-fonce: #8f4528;  /* survol des actions */

  /* Neutres */
  --encre: #2a2620;             /* texte courant : brun-noir chaud */
  --encre-douce: #5c564d;       /* texte secondaire (7:1 sur blanc) */
  --blanc: #fff;
  --fond-alt: #f1f3ef;          /* fond alterné, gris légèrement vert */
  --beige: #e6dec9;             /* page OLD : même teinte que le fond du schéma */
  --filet: #d8d9d2;             /* filets fins */
  --filet-sombre: rgba(255, 255, 255, 0.22);
  --texte-sur-sombre: rgba(255, 255, 255, 0.8);

  /* Focus (redéfini dans les sections sombres) */
  --couleur-focus: var(--terracotta);

  /* Typographie */
  --police-titre: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --police-texte: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --taille-texte: 1.0625rem;    /* 17 px */
  --taille-h1: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --taille-h2: clamp(1.875rem, 1.45rem + 1.6vw, 2.75rem);
  --taille-h3: clamp(1.375rem, 1.25rem + 0.4vw, 1.625rem);
  --taille-petit: 0.9375rem;
  --mesure: 38rem;              /* ≈ 65–72 caractères par ligne */

  /* Espacements verticaux */
  --espace-section: clamp(4rem, 2.8rem + 4.5vw, 7.5rem);
  --espace-compact: clamp(2.5rem, 2rem + 2vw, 4rem);

  /* Bootstrap */
  --bs-body-font-family: var(--police-texte);
  --bs-body-font-size: var(--taille-texte);
  --bs-body-line-height: 1.6;
  --bs-body-color: var(--encre);
  --bs-body-bg: var(--blanc);
  --bs-heading-color: var(--encre);
  --bs-secondary-color: var(--encre-douce);
  --bs-border-color: var(--filet);
  --bs-border-radius: 2px;
  --bs-border-radius-sm: 2px;
  --bs-border-radius-lg: 2px;
  --bs-success: var(--vert);
  --bs-success-rgb: 64, 102, 72;
  --bs-light-rgb: 241, 243, 239;
  --bs-link-color: var(--vert);
  --bs-link-color-rgb: 64, 102, 72;
  --bs-link-hover-color: var(--vert-fonce);
  --bs-link-hover-color-rgb: 47, 77, 54;
}


/* ==========================================================================
   3. Base
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--blanc);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--peche);
  color: var(--encre);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--police-titre);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1, .h1 { font-size: var(--taille-h1); line-height: 1.06; }
h2, .h2 { font-size: var(--taille-h2); line-height: 1.12; margin-bottom: 1.25rem; }
h3, .h3 { font-size: var(--taille-h3); line-height: 1.22; margin-bottom: 0.6rem; }

p {
  text-wrap: pretty;
}

a {
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--couleur-focus);
  outline-offset: 3px;
}

small, .small {
  font-size: var(--taille-petit);
}
/* .text-muted suit --bs-secondary-color, redéfini plus haut. */


/* ==========================================================================
   4. Utilitaires typographiques
   ========================================================================== */

/* Petite étiquette en capitales, avec numéro facultatif et filet */
.etiquette {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-family: var(--police-texte);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vert);
}

/* Chapô : paragraphe d'introduction */
.chapo {
  max-width: 34em;
  font-size: clamp(1.25rem, 1.15rem + 0.35vw, 1.4375rem);
  line-height: 1.5;
}

/* Colonne de lecture */
.prose {
  max-width: var(--mesure);
}

.prose p + h2,
.prose ul + h2,
.prose dl + h2 {
  margin-top: 2.75rem;
}

/* Numéro de téléphone : chiffres alignés, sur une seule ligne */
.telephone {
  font-family: var(--police-texte);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Titre cliquable : même aspect qu'un titre, jamais souligné */
.lien-titre {
  color: inherit;
  text-decoration: none;
}

.lien-titre:hover,
.a-propos__lien:hover .lien-titre {
  color: var(--vert);
  text-decoration: none;
}

/* Lien lisible sur fond sombre */
.lien-clair {
  color: var(--blanc);
  text-decoration: underline;
}

.lien-clair:hover {
  color: var(--blanc);
}


/* ==========================================================================
   5. Boutons
   « btn-brand » = action principale (terracotta).
   « btn-ligne » = action secondaire, contour.
   ========================================================================== */
.btn {
  --bs-btn-padding-x: 1.5rem;
  --bs-btn-padding-y: 0.8rem;
  --bs-btn-font-family: var(--police-texte);
  --bs-btn-font-size: 1.0625rem;
  --bs-btn-font-weight: 700;
  --bs-btn-line-height: 1.3;
  --bs-btn-border-radius: 2px;
  --bs-btn-border-width: 2px;
  --bs-btn-focus-box-shadow: none;
  letter-spacing: 0.01em;
}

.btn-lg {
  --bs-btn-padding-x: 1.75rem;
  --bs-btn-padding-y: 0.95rem;
  --bs-btn-font-size: 1.125rem;
  --bs-btn-border-radius: 2px;
}

.btn:focus-visible {
  outline: 3px solid var(--couleur-focus);
  outline-offset: 3px;
}

.btn-brand {
  --bs-btn-color: var(--blanc);
  --bs-btn-bg: var(--terracotta);
  --bs-btn-border-color: var(--terracotta);
  --bs-btn-hover-color: var(--blanc);
  --bs-btn-hover-bg: var(--terracotta-fonce);
  --bs-btn-hover-border-color: var(--terracotta-fonce);
  --bs-btn-active-color: var(--blanc);
  --bs-btn-active-bg: var(--terracotta-fonce);
  --bs-btn-active-border-color: var(--terracotta-fonce);
}

/* Bouton vert (« Contactez-moi » de l'en-tête) : texte et contour verts sur
   blanc, inversé au survol et sur la page Contact. Blanc / vert : 6,5:1. */
.btn-vert {
  --bs-btn-color: var(--vert);
  --bs-btn-bg: var(--blanc);
  --bs-btn-border-color: var(--vert);
  --bs-btn-hover-color: var(--blanc);
  --bs-btn-hover-bg: var(--vert);
  --bs-btn-hover-border-color: var(--vert);
  --bs-btn-active-color: var(--blanc);
  --bs-btn-active-bg: var(--vert);
  --bs-btn-active-border-color: var(--vert);
}

.btn-ligne {
  --bs-btn-color: var(--encre);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--encre);
  --bs-btn-hover-color: var(--blanc);
  --bs-btn-hover-bg: var(--encre);
  --bs-btn-hover-border-color: var(--encre);
  --bs-btn-active-color: var(--blanc);
  --bs-btn-active-bg: var(--encre);
  --bs-btn-active-border-color: var(--encre);
}

.btn-ligne-clair {
  --bs-btn-color: var(--blanc);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgba(255, 255, 255, 0.7);
  --bs-btn-hover-color: var(--vert-fonce);
  --bs-btn-hover-bg: var(--blanc);
  --bs-btn-hover-border-color: var(--blanc);
  --bs-btn-active-color: var(--vert-fonce);
  --bs-btn-active-bg: var(--blanc);
  --bs-btn-active-border-color: var(--blanc);
}

/* Bouton blanc sur les bandeaux colorés */
.btn-light {
  --bs-btn-color: var(--encre);
  --bs-btn-bg: var(--blanc);
  --bs-btn-border-color: var(--blanc);
  --bs-btn-hover-color: var(--encre);
  --bs-btn-hover-bg: var(--fond-alt);
  --bs-btn-hover-border-color: var(--fond-alt);
  --bs-btn-active-color: var(--encre);
  --bs-btn-active-bg: var(--fond-alt);
  --bs-btn-active-border-color: var(--fond-alt);
}

.groupe-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
}


/* ==========================================================================
   6. En-tête et navigation
   ========================================================================== */
.site-entete {
  background: var(--blanc);
  border-bottom: 1px solid var(--filet);
  --bs-navbar-padding-y: 0.5rem;
}

/* Barre pleine largeur : marges latérales réduites, logo collé à gauche */
.site-entete__barre {
  padding-inline: 1rem;
}

@media (min-width: 1200px) {
  .site-entete__barre {
    padding-inline: 1.5rem;
  }
}

.site-entete .navbar-brand {
  padding-block: 0;
}

.site-entete .navbar-brand img {
  display: block;
  width: auto;
  height: 56px;
}

.site-entete .nav-link {
  --bs-nav-link-font-weight: 500;
  padding: 0.5rem 0.7rem;
  font-size: 1.0625rem;
  color: var(--encre);
}

.site-entete .nav-link:hover,
.site-entete .nav-link:focus-visible,
.site-entete .nav-link.active {
  color: var(--encre);
}

.site-entete .nav-link.active {
  font-weight: 700;
}

/* Trait sous le lien : déployé au survol, fixe sur la page active */
.underline-animation {
  position: relative;
  display: inline-block;
}

.underline-animation::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: var(--terracotta);
  transition: width 0.2s ease;
}

.nav-link:hover .underline-animation::after,
.nav-link:focus-visible .underline-animation::after,
.nav-link.active .underline-animation::after {
  width: 100%;
}

.site-entete .navbar-toggler {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--filet);
  border-radius: 2px;
}

.site-entete .navbar-toggler:focus {
  box-shadow: none;
}

.site-entete .navbar-toggler:focus-visible {
  outline: 3px solid var(--couleur-focus);
  outline-offset: 2px;
}

/* Bouton « Contactez-moi » : .btn-vert, plus compact que les boutons de page */
.site-entete__contact {
  --bs-btn-padding-x: 1.1rem;
  --bs-btn-padding-y: 0.5rem;
  --bs-btn-font-size: 1rem;
}

/* Grand écran : menu centré dans la barre, bouton calé à droite */
@media (min-width: 1200px) {
  .site-entete__barre {
    position: relative;
  }

  .site-entete .navbar-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .site-entete__contact {
    margin-left: auto;
  }
}

/* Mobile et tablette : bouton sous la liste */
@media (max-width: 1199.98px) {
  .site-entete__contact {
    margin: 0.5rem 0 1rem;
  }
}

/* Menu déroulant « Prestations » */
.site-entete .dropdown-toggle::after {
  margin-left: 0.4em;
  vertical-align: 0.15em;
  border-top-width: 0.35em;
  border-right-width: 0.3em;
  border-left-width: 0.3em;
}

.site-entete .dropdown-menu {
  --bs-dropdown-min-width: 15rem;
  --bs-dropdown-padding-y: 0.5rem;
  --bs-dropdown-border-color: var(--filet);
  --bs-dropdown-border-radius: 2px;
  --bs-dropdown-font-size: 1rem;
  --bs-dropdown-link-color: var(--encre);
  --bs-dropdown-link-hover-color: var(--encre);
  --bs-dropdown-link-hover-bg: var(--fond-alt);
  --bs-dropdown-link-active-color: var(--vert-fonce);
  --bs-dropdown-link-active-bg: var(--fond-alt);
  --bs-dropdown-item-padding-x: 1.25rem;
  --bs-dropdown-item-padding-y: 0.6rem;
  margin-top: 0.25rem;
}

.site-entete .dropdown-item.active {
  font-weight: 700;
}

.site-entete .dropdown-item:focus-visible {
  outline: 3px solid var(--couleur-focus);
  outline-offset: -3px;
}

/* Menu déplié (mobile et tablette) */
@media (max-width: 1199.98px) {
  .site-entete .navbar-nav {
    margin-top: 0.75rem;
    border-top: 1px solid var(--filet);
  }

  .site-entete .nav-link {
    width: 100%;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--filet);
    text-align: left;
  }

  /* Sous-menu dans le flux, en retrait */
  .site-entete .dropdown-menu {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .site-entete .dropdown-item {
    padding: 0.7rem 0 0.7rem 1.25rem;
    border-bottom: 1px solid var(--filet);
  }
}


/* ==========================================================================
   7. Pied de page
   ========================================================================== */
.site-pied {
  --couleur-focus: var(--blanc);
  padding: var(--espace-compact) 0 1.5rem;
  background: var(--vert-fonce);
  color: var(--blanc);
  font-size: 1rem;
}

.site-pied a {
  color: var(--blanc);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-pied a:hover {
  text-decoration: underline;
}

/* Logo blanc sur fond transparent (img/logo-blanc.webp, tiré de logo.webp) */
.site-pied__logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.site-pied__logo img {
  display: block;
  width: 112px;
  height: auto;
}

.site-pied .site-pied__logo:focus-visible {
  outline-offset: 4px;
}

.site-pied .etiquette {
  color: var(--texte-sur-sombre);
  margin-bottom: 0.75rem;
}

/* Coordonnées avec icônes (SVG au trait, couleur du texte) */
.pied-contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pied-contact li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.icone {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.85;
}

.site-pied__bas {
  margin-top: var(--espace-compact);
  padding-top: 1.25rem;
  border-top: 1px solid var(--filet-sombre);
  font-size: var(--taille-petit);
  color: var(--texte-sur-sombre);
}


/* ==========================================================================
   8. Sections et fonds
   ========================================================================== */

/* Largeur : .container-texte suit les paliers du .container de Bootstrap,
   ce qui garde une seule grille pour tout le site. */

.section {
  padding-block: var(--espace-section);
}

.section--compacte {
  padding-block: var(--espace-compact);
}

.section--alt {
  background: var(--fond-alt);
}

/* Fond beige (page Mise en conformité OLD) */
.fond-beige {
  --filet: rgba(42, 38, 32, 0.18);
  background: var(--beige);
}

/* Fonds sombres : texte blanc, focus blanc */
.fond-vert,
.fond-vert-fonce,
.fond-encre,
.fond-terracotta {
  --couleur-focus: var(--blanc);
  --bs-heading-color: var(--blanc);
  color: var(--blanc);
}

.fond-vert       { background: var(--vert); }
.fond-vert-fonce { background: var(--vert-fonce); }
.fond-encre      { background: var(--encre); }
.fond-terracotta { background: var(--terracotta); }

.fond-vert-fonce .etiquette {
  color: var(--texte-sur-sombre);
}

.fond-vert a:not(.btn),
.fond-vert-fonce a:not(.btn),
.fond-encre a:not(.btn),
.fond-terracotta a:not(.btn) {
  color: var(--blanc);
}

/* Bandeau d'appel à l'action : titre à gauche, bouton à droite */
.bandeau-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.bandeau-action h2 {
  margin: 0;
  max-width: 28em;
  font-size: var(--taille-h3);
}

/* En-tête des pages intérieures */
.entete-page {
  padding-block: clamp(3rem, 2.2rem + 3vw, 5.5rem) clamp(2.5rem, 2rem + 2vw, 4rem);
}

.entete-page h1 {
  max-width: 16em;
  margin-bottom: 1.25rem;
}

.entete-page p:last-child {
  margin-bottom: 0;
}

/* Titre de section aligné à gauche, en colonne étroite */
.titre-section {
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.titre-section h2 {
  max-width: 18em;
  margin-bottom: 0;
}


/* ==========================================================================
   9. Compositions « partage »
   La photo occupe toute la hauteur d'un côté de l'écran (56 % en grand
   écran), le texte reste calé sur la grille du .container de l'autre côté.
   Sur mobile, la photo passe au-dessus du texte au format 3:2.
   ========================================================================== */
.partage {
  position: relative;
}

.partage__img {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--fond-alt);
}

.partage__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  color: transparent;
}

.partage__texte {
  padding-block: var(--espace-compact);
}

.partage__texte > :last-child {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .partage {
    min-height: 560px;
    display: flex;
    align-items: center;
  }

  .partage > .container {
    position: relative;
  }

  .partage__img {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    aspect-ratio: auto;
  }

  .partage--img-gauche .partage__img { left: 0; }
  .partage--img-droite .partage__img { right: 0; }

  .partage__texte {
    padding-block: var(--espace-section);
  }

  .partage--img-gauche .partage__texte { padding-left: 4rem; }
  .partage--img-droite .partage__texte { padding-right: 4rem; }
}

@media (min-width: 1200px) {
  .partage__img {
    width: 56%;
  }
}


/* ==========================================================================
   10. Photos
   Deux formats seulement : 3:2 (paysage) et 4:5 (portrait).
   Angles droits, léger désaturé commun à toutes les photos.
   ========================================================================== */
.cadre {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--fond-alt);
}

.cadre img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  color: transparent; /* une photo manquante laisse un aplat propre */
}

.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-4x5 { aspect-ratio: 4 / 5; }

.legende {
  margin-top: 1rem;
  font-family: var(--police-titre);
  font-size: var(--taille-h3);
  font-weight: 700;
  line-height: 1.2;
}

/* Photo verticale recadrée en 3:2 : on garde le tronc et la tronçonneuse */
.prestation-img--arbres {
  object-position: 50% 62%;
}


/* ==========================================================================
   11. Listes
   ========================================================================== */

/* Puces carrées discrètes */
.liste-puces {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.liste-puces li {
  position: relative;
  margin-bottom: 0.55rem;
  padding-left: 1.4rem;
}

.liste-puces li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--vert-clair);
}

.fond-vert .liste-puces li::before,
.fond-vert-fonce .liste-puces li::before {
  background: var(--blanc);
}

.fond-encre .liste-puces li::before {
  background: var(--peche);
}

/* Liste séparée par des filets */
.liste-filets {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--filet);
}

.liste-filets li {
  padding-block: 1rem;
  border-bottom: 1px solid var(--filet);
}

.liste-filets strong {
  font-family: var(--police-titre);
  font-size: 1.1875rem;
}

.fond-vert-fonce .liste-filets,
.fond-vert-fonce .liste-filets li {
  border-color: var(--filet-sombre);
}

/* Liste en ligne séparée par des points médians */
.liste-ligne {
  margin: 0;
  padding: 0;
  list-style: none;
}

.liste-ligne li {
  display: inline;
}

.liste-ligne li:not(:last-child)::after {
  content: "\00a0·\0020";
  opacity: 0.55;
}


/* ==========================================================================
   12. Accueil
   ========================================================================== */

/* — Bandeau d'accueil —
   Photo plein écran, nette, sous un voile vert très sombre qui couvre
   toute l'image (lisibilité du texte). */
.hero {
  --couleur-focus: var(--blanc);
  --bs-heading-color: var(--blanc);
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(88vh, 780px);
  overflow: hidden;
  background: var(--vert-fonce); /* visible tant que la photo charge */
  color: var(--blanc);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 60%; /* garde le robot dans le cadre */
  filter: saturate(0.9);
  color: transparent;
}

/* Voile sombre sous le texte (photo nette, sans flou) */
.hero__voile {
  position: absolute;
  inset: 0;
  background: rgba(22, 34, 25, 0.74);
}

.hero__contenu {
  position: relative; /* au-dessus de la photo et du voile */
  padding-block: var(--espace-section);
}

.hero h1 {
  max-width: 13em;
  margin-bottom: 1.5rem;
}

.hero .chapo {
  color: var(--texte-sur-sombre);
}

/* — À propos de nous — */
/* En grand écran, le texte commence à la hauteur de la photo, sous le titre
   (hauteur d'une ligne de h2 + marge au-dessus de la photo) */
@media (min-width: 992px) {
  .a-propos__texte {
    padding-top: calc(var(--taille-h2) * 1.12 + 2rem);
  }
}

.a-propos__signature {
  margin: 1.75rem 0 0.75rem;
  font-family: var(--police-titre);
  font-size: 1.3125rem;
  font-style: italic;
  font-weight: 700;
  color: var(--vert-fonce);
}

/* Titre + photo cliquables vers la page À propos */
.a-propos__lien {
  position: relative;
}

.a-propos__lien .cadre img {
  transition: opacity 0.2s ease;
}

.a-propos__lien:hover .cadre img {
  opacity: 0.88;
}

/* — Prestations : carrousel sur 80 % de la largeur —
   Titre et bande de photos occupent 80 % de l'écran (largeur de la page,
   moins les marges, sur téléphone) : 1 carte sur
   téléphone, 2 sur tablette, 3 en grand écran (--par-vue, lu aussi par
   carrousel.js). Sans JavaScript : bande défilable (scroll-snap).
   Avec JavaScript (.carrousel--actif) : la piste glisse par translation
   et tourne en boucle continue. */
.prestations-accueil {
  --par-vue: 1;
  --ecart-cartes: 1.25rem;
}

@media (min-width: 768px) {
  .prestations-accueil { --par-vue: 2; --ecart-cartes: 1.5rem; }
}

@media (min-width: 992px) {
  .prestations-accueil { --par-vue: 3; --ecart-cartes: 2rem; }
}

.prestations-accueil__cadre {
  padding-inline: 0.75rem; /* même marge que le .container sur téléphone */
}

@media (min-width: 768px) {
  .prestations-accueil__cadre {
    width: 80%;
    margin-inline: auto;
    padding-inline: 0;
  }
}

/* En-tête : titre centré, flèches à droite (sous le titre sur téléphone) */
.carrousel__entete {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 1rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
  text-align: center;
}

@media (min-width: 576px) {
  .carrousel__entete {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 2rem;
  }

  .carrousel__entete h2 {
    grid-column: 2;
  }

  .carrousel__commandes {
    grid-column: 3;
    justify-self: end;
  }
}

.carrousel__commandes {
  display: flex;
  gap: 0.5rem;
}

.carrousel__bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--encre);
  border-radius: 2px;
  background: transparent;
  color: var(--encre);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.carrousel__bouton:hover {
  background: var(--encre);
  color: var(--blanc);
}

.carrousel__bouton .icone {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 1.8;
  opacity: 1;
}

/* Bouton pause / lecture : une seule icône visible selon l'état */
.carrousel__icone-lecture,
.carrousel--en-pause .carrousel__icone-pause {
  display: none;
}

.carrousel--en-pause .carrousel__icone-lecture {
  display: block;
}

/* Fenêtre : élargie d'un demi-écart de chaque côté pour que le bord des
   cartes s'aligne sur le titre. Sans JavaScript, on fait défiler à la main. */
.carrousel__fenetre {
  margin-inline: calc(var(--ecart-cartes) / -2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.carrousel__piste {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Chaque carte occupe 1/--par-vue de la largeur ; l'écart entre cartes est
   un padding, pour que le pas de défilement soit exactement une carte. */
.carrousel__item {
  flex: 0 0 calc(100% / var(--par-vue));
  padding-inline: calc(var(--ecart-cartes) / 2);
  scroll-snap-align: start;
}

/* Avec JavaScript : la fenêtre masque le débordement, la piste glisse.
   touch-action : le défilement vertical de la page reste au navigateur,
   le glissement horizontal est géré par carrousel.js. */
.carrousel--actif .carrousel__fenetre {
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

/* Pendant un glisser : main fermée, pas d'effet de survol sur les cartes */
.carrousel--glisse .carrousel__fenetre,
.carrousel--glisse .carte-prestation {
  cursor: grabbing;
}

.carrousel--actif .carrousel__piste {
  transition: transform 0.6s ease;
}

.carrousel--sans-transition .carrousel__piste {
  transition: none;
}

/* Carte : photo, titre posé sur un aplat sombre en bas */
.carte-prestation {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  max-height: 80vh;
  overflow: hidden;
  background: var(--vert-fonce);
  color: var(--blanc);
  text-decoration: none;
}

@media (min-width: 768px) {
  .carte-prestation {
    aspect-ratio: 1 / 1;
  }
}

/* Contour de focus à l'intérieur de la carte (la fenêtre le rognerait) */
.carte-prestation:focus-visible {
  outline-offset: -6px;
}

.carte-prestation img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  color: transparent;
  transition: opacity 0.2s ease;
  -webkit-user-drag: none;
  user-select: none;
}

/* Léger fondu sombre en bas de la photo, sous le titre (lisibilité du blanc) */
.carte-prestation::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to top, rgba(12, 18, 14, 0.72), rgba(12, 18, 14, 0));
  pointer-events: none;
}

.carte-prestation__titre {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 0 1.5rem 1.5rem;
  font-family: var(--police-titre);
  font-size: 1.125rem; /* 18 px */
  font-weight: 500;
  line-height: 1.25;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.carte-prestation:hover {
  color: var(--blanc);
}

.carte-prestation:hover img {
  opacity: 0.88;
}

/* — Apparition au défilement (titre puis carrousel) —
   La classe .apparition n'est posée par le JavaScript que si le visiteur
   n'a pas demandé à réduire les animations. */
@media (prefers-reduced-motion: no-preference) {
  .apparition {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .apparition.est-visible {
    opacity: 1;
    transform: none;
  }

  .carrousel__fenetre.apparition {
    transition-delay: 0.15s;
  }
}

/* — Profils (« Pour qui ») — */
.profils {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--filet);
}

.profils li {
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--filet);
  font-family: var(--police-titre);
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .profils {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .profils li {
    padding: 1.25rem 1.25rem 0 0;
    border-bottom: 0;
  }

  .profils li + li {
    padding-left: 1.25rem;
    border-left: 1px solid var(--filet);
  }
}

/* — Zone d'intervention — */
.villes {
  margin-top: 1.5rem;
  font-family: var(--police-titre);
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  font-weight: 700;
  line-height: 1.45;
}


/* ==========================================================================
   13. Pages intérieures
   ========================================================================== */

/* Pages prestation : grille des autres prestations (cartes de l'accueil) */
.grille-prestations {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 576px) {
  .grille-prestations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 992px) {
  .grille-prestations {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
}

/* Mise en conformité OLD : bandeau d'obligation, filet terracotta */
.avertissement {
  padding-left: 1.5rem;
  border-left: 4px solid var(--terracotta);
}

.avertissement p {
  max-width: var(--mesure);
}

/* Schéma OLD */
.schema {
  margin: 0;
}

.schema img {
  display: block;
  width: 100%;
  height: auto;
}

/* Encadré « Attention » sur fond sombre */
.note-attention {
  margin-block: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--peche);
}

/* Robot LV 600 : chiffres clés */
.chiffres {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 0;
  margin: 0;
}

.chiffre {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 0 1rem 0 0;
}

.chiffre__valeur {
  margin: 0 0 0.35rem;
  font-family: var(--police-titre);
  font-size: clamp(2.5rem, 1.9rem + 2.4vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--vert);
  font-variant-numeric: lining-nums;
}

.chiffre__libelle {
  max-width: 16em;
  margin: 0;
  font-size: var(--taille-petit);
  font-weight: 400;
  color: var(--encre-douce);
}

@media (min-width: 992px) {
  .chiffres {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .chiffre {
    padding: 0 1.5rem;
    border-left: 1px solid var(--filet);
  }

  .chiffre:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

/* À propos : devise en exergue */
.devise {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--filet);
  font-family: var(--police-titre);
  font-size: var(--taille-h3);
  font-style: italic;
  font-weight: 700;
  color: var(--vert-fonce);
}

.nom-propre {
  color: var(--vert);
}

/* À propos : portrait sous le titre */
.portrait {
  margin: 2rem 0 0;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
}

/* Mentions légales */
.mentions dl {
  margin-bottom: 0;
  border-top: 1px solid var(--filet);
}

.mentions dt,
.mentions dd {
  margin: 0;
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--filet);
}

.mentions dt {
  font-weight: 400;
  color: var(--encre-douce);
}

@media (max-width: 575.98px) {
  .mentions dt {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

.mentions h2 {
  margin-top: 3rem;
  font-size: var(--taille-h3);
}


/* ==========================================================================
   14. Réalisations : galerie et diaporama
   ========================================================================== */
.galerie {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 576px) {
  .galerie {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .galerie {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem 2rem;
  }
}

.realisation {
  margin: 0;
}

/* Vignette = bouton qui ne ressemble pas à un bouton */
.galerie-vignette {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--fond-alt);
  cursor: zoom-in;
}

.galerie-vignette img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  color: transparent;
  transition: opacity 0.2s ease;
}

.galerie-vignette:hover img {
  opacity: 0.85;
}

/* Chantier à plusieurs photos : icône + nombre de photos sur la vignette */
.galerie-compte {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  font-size: var(--taille-petit);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: lining-nums;
  color: var(--blanc);
  background: var(--encre);
}

.galerie-compte .icone {
  opacity: 1;
}

.galerie-vignette:focus-visible {
  outline: 3px solid var(--couleur-focus);
  outline-offset: 3px;
}

.realisation figcaption {
  margin-top: 1rem;
}

.realisation__titre {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--police-titre);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
}

.realisation__texte {
  display: block;
  max-width: 34em;
  font-size: var(--taille-petit);
  color: var(--encre-douce);
}

/* Diaporama plein écran */
.galerie-contenu {
  --couleur-focus: var(--blanc);
  justify-content: center;
  background: #1c1a16;
}

.galerie-fermer {
  z-index: 5;
}

.galerie-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.galerie-legende {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem 1rem 0;
}

.galerie-legende strong {
  display: block;
  font-family: var(--police-titre);
  font-size: 1.375rem;
}

.galerie-legende span {
  display: block;
  color: var(--texte-sur-sombre);
}

.galerie-legende .galerie-position {
  margin-top: 0.25rem;
  font-size: var(--taille-petit);
  font-variant-numeric: tabular-nums;
}


/* ==========================================================================
   15. Contact
   ========================================================================== */
.contact-page {
  min-height: 70vh;
}

.contact-formulaire {
  max-width: 640px;
}

.contact-formulaire h1 {
  margin-bottom: 1.25rem;
}

.form-label {
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

/* Champs soulignés : seule la ligne du bas est visible */
.champ-ligne,
.contact-formulaire textarea.form-control {
  border: 0;
  border-bottom: 1px solid var(--encre-douce);
  border-radius: 0;
  padding-inline: 0;
  background: transparent;
  font-size: 1.125rem;
  color: var(--encre);
}

.contact-formulaire textarea.form-control {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--encre-douce);
}

.champ-ligne:focus,
.contact-formulaire textarea.form-control:focus {
  background: transparent;
  border-color: var(--vert);
  box-shadow: 0 1px 0 0 var(--vert);
  outline: none;
}

.contact-formulaire textarea.form-control:focus {
  box-shadow: inset 0 0 0 1px var(--vert);
}

.contact-coordonnees {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-zone {
  max-width: 24em;
  padding-top: 1.25rem;
  border-top: 1px solid var(--filet-sombre);
  color: var(--texte-sur-sombre);
}

.contact-coordonnees dl {
  margin: 0;
}

.contact-coordonnees dt {
  margin-bottom: 0.25rem;
}

.contact-coordonnees dd {
  margin-bottom: 2.25rem;
}

.contact-valeur {
  font-family: var(--police-titre);
  font-weight: 700;
  line-height: 1.15;
}

/* Icône devant le téléphone et l'e-mail */
.contact-valeur {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-valeur a {
  min-width: 0; /* l'adresse e-mail peut passer à la ligne */
}

.contact-valeur .icone {
  width: 1.75rem;
  height: 1.75rem;
  stroke-width: 1.4;
}

.contact-valeur--moyen .icone {
  width: 1.4rem;
  height: 1.4rem;
}

.contact-valeur--grand {
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
}

.contact-valeur--moyen {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
}

.contact-lien {
  color: var(--blanc);
  text-decoration: none;
  overflow-wrap: anywhere; /* l'adresse e-mail passe à la ligne sur mobile */
}

.contact-lien:hover,
.contact-lien:focus-visible {
  color: var(--blanc);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}


/* ==========================================================================
   16. FAQ (accordéon)
   Filets fins, pas de boîte ; signe + / − dessiné en SVG.
   ========================================================================== */
.accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-color: var(--encre);
  --bs-accordion-border-color: var(--filet);
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: 0;
  --bs-accordion-btn-padding-x: 0;
  --bs-accordion-btn-padding-y: 1.25rem;
  --bs-accordion-btn-color: var(--encre);
  --bs-accordion-btn-bg: transparent;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-btn-icon-width: 1rem;
  --bs-accordion-btn-icon-transform: none;
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M8 1v14M1 8h14' stroke='%232a2620' stroke-width='1.6' fill='none'/%3e%3c/svg%3e");
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M1 8h14' stroke='%232f4d36' stroke-width='1.6' fill='none'/%3e%3c/svg%3e");
  --bs-accordion-body-padding-x: 0;
  --bs-accordion-body-padding-y: 0;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-active-color: var(--vert-fonce);
  border-top: 1px solid var(--filet);
}

.accordion-item {
  border-width: 0 0 1px;
}

.accordion-button {
  gap: 1.5rem;
  font-family: var(--police-titre);
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.3;
}

.accordion-button:not(.collapsed) {
  box-shadow: none;
}

.accordion-button:focus-visible {
  outline: 3px solid var(--couleur-focus);
  outline-offset: 2px;
}

.accordion-body {
  max-width: var(--mesure);
  padding-bottom: 1.5rem;
  color: var(--encre-douce);
}


/* ==========================================================================
   17. Mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .underline-animation::after,
  .a-propos__lien .cadre img,
  .carte-prestation img,
  .carrousel__bouton,
  .carrousel--actif .carrousel__piste,
  .galerie-vignette img {
    transition: none;
  }
}
