/* ==========================================================================
   HF Concept — améliorations de design proposées le 15/10/2026
   Feuille chargée APRÈS style.css : elle ne touche qu'aux zones listées
   ci-dessous, le reste du site (Roboto, vert #003d36, orange #f95b17,
   sections) est inchangé. Un bloc = une amélioration de la planche.

     1. En-tête : emblème lisible + nom composé
     2. Ouverture : voile côté texte, liste à coches renforcée
     3. Boutons de contact : barre au téléphone, bouton rond au bureau
     4. Les étapes : numéros 1 à 4 reliés par un fil
     5. Notre Expertise : photo dégagée, texte dessous
     6. Nos réalisations : vraies photos de chantier, avant / après
     7. Pied de page complet
     (8. Exemples des formulaires en français : dans index.html seulement)

   Points de rupture : ceux de style.css (téléphone 767 px et moins,
   tablette 768 à 1024 px, bureau 1025 px et plus).
   ========================================================================== */

:root {
  --vert-nuit: 0 32 28;            /* vert très foncé (r g b) des voiles */
  --gris-doux: #5f6b69;            /* signature sous le nom */
  --gris-mention: #8a9391;         /* « à compléter » */
  --orange-fil: #f6c2aa;           /* fil qui relie les étapes */
  --whatsapp-fonce: #1fa855;       /* vert WhatsApp assombri : texte blanc lisible (3,1:1) */
  --pied-fond: #00241f;
  --hauteur-barre: 72px;           /* barre d'appel du téléphone : 8 + 56 + 8 */
}


/* 1. En-tête --------------------------------------------------------------- */
.entete__logo {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 12px;
}

.entete__logo img {
  width: auto;
  height: 64px;
}

/* Nom composé (en-tête et pied de page) */
.marque {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--police);
  line-height: 1;
}

.marque__nom {
  color: var(--vert);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.marque__signature {
  color: var(--gris-doux);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Le numéro, plus grand et en vert */
.service-client__titre {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1;
}

.service-client__numero {
  color: var(--vert);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}


/* 2. Ouverture ------------------------------------------------------------- */
/* Voile vert très foncé : fort à gauche (texte) et en haut (titre), nul sous
   le formulaire. Il s'ajoute au voile d'origine (::before). */
.ouverture::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(var(--vert-nuit) / 55%) 0%, rgb(var(--vert-nuit) / 0%) 34%),
    linear-gradient(90deg, rgb(var(--vert-nuit) / 82%) 0%, rgb(var(--vert-nuit) / 60%) 38%, rgb(var(--vert-nuit) / 0%) 70%);
  pointer-events: none;
}

.ouverture__titre,
.ouverture__accroche,
.ouverture__sous-titre,
.avis__note {
  text-shadow: 0 1px 14px rgb(0 0 0 / 35%);
}

.ouverture__accroche {
  font-size: 18px;
  font-weight: 500;
}

.liste-icones--coches {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.liste-icones--coches li {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
}

.liste-icones--coches .icone {
  width: 22px;
  height: 22px;
  margin-right: 6px;
  color: var(--orange);
}


/* 3. Boutons de contact ------------------------------------------------------ */
/* Bureau et tablette : un seul bouton rond WhatsApp, en bas à droite. */
.actions-flottantes {
  right: 24px;
  bottom: 24px;
  left: auto;
  padding: 0;
}

.actions-flottantes__interieur {
  width: auto;
}

.flottant--appeler {
  display: none;
}

.flottant--whatsapp {
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 50%;
  background-color: var(--whatsapp-fonce);
  box-shadow: 0 6px 20px rgb(0 0 0 / 25%);
  transition: background-color 0.3s;
}

.flottant--whatsapp:hover {
  background-color: #188a45;
}

.flottant--whatsapp .icone {
  width: 30px;
  height: 30px;
}

/* Le libellé reste lu par les lecteurs d'écran, sans s'afficher */
.flottant__texte {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


/* 4. Les étapes -------------------------------------------------------------- */
/* Bureau et tablette : numéros au-dessus des cartes, fil horizontal. */
.etapes__liste {
  padding-top: 66px;
}

.etape {
  position: relative;
  flex: 1 1 0;
  background-color: var(--blanc);
}

.etape__numero {
  position: absolute;
  top: -56px;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: -19px;
  border-radius: 50%;
  background-color: var(--orange);
  box-shadow: 0 0 0 6px var(--blanc);
  color: var(--blanc);
  font-family: var(--police);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

/* Le fil va du centre d'un numéro au centre du suivant */
.etape:not(:last-child)::after {
  content: "";
  position: absolute;
  top: -38px;
  left: 50%;
  z-index: 0;
  width: calc(100% + var(--ecart-carte));
  height: 2px;
  background-color: var(--orange-fil);
}


/* 5. Notre Expertise --------------------------------------------------------- */
/* La photo en haut, sans rien dessus ; titre et texte dessous sur fond blanc,
   comme les cartes de réalisations. */
.expertise__carte {
  flex-direction: column;
  padding: 0;
  background-color: var(--blanc);
  box-shadow: var(--ombre-legere);
}

.expertise__image {
  position: static;
  z-index: auto;
  height: auto;
  aspect-ratio: 800 / 437;
  object-position: center;
}

.expertise__texte {
  padding: 16px 20px 22px;
  border-radius: 0;
  background-color: transparent;
}

.expertise__titre {
  margin: 0 0 8px;
  font-size: 19px;
}

.expertise__texte p {
  font-size: 15px;
  line-height: 1.5;
}


/* 6. Nos réalisations -------------------------------------------------------- */
.realisations__grille {
  grid-template-rows: none;
  align-items: stretch;
}

.realisation {
  gap: 0;
  height: 100%;
}

.realisation__image {
  position: relative;
  overflow: hidden;
}

.realisation__image img {
  aspect-ratio: 4 / 3;
  height: auto;
}

/* Avant / après : les deux photos sont alignées au pixel ; l'« après » couvre
   la moitié droite, un trait blanc marque la coupure. */
.realisation__apres {
  position: absolute;
  inset: 0;
  height: 100%;
  clip-path: inset(0 0 0 50%);
}

.realisation__image--avant-apres::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background-color: var(--blanc);
}

.realisation__etiquette {
  position: absolute;
  bottom: 10px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 4px;
  background-color: rgb(var(--vert-nuit) / 80%);
  color: var(--blanc);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.realisation__etiquette--avant {
  left: 10px;
}

.realisation__etiquette--apres {
  right: 10px;
  background-color: var(--orange);
}

.realisation__infos {
  gap: 6px;
  margin-top: 0;
  padding: 14px 16px 16px;
}

.realisation__titre {
  font-size: 17px;
}

.realisation__detail {
  margin: 0;
  color: var(--texte);
  font-size: 14px;
  line-height: 1.45;
}

.realisation__a-completer {
  margin: 2px 0 0;
  color: var(--gris-mention);
  font-size: 12.5px;
  font-style: italic;
}


/* 7. Pied de page ------------------------------------------------------------ */
.pied {
  padding: 0;
  background-color: var(--pied-fond);
  color: rgb(255 255 255 / 82%);
  font-family: var(--police);
  font-size: 15px;
  line-height: 1.5;
}

.pied__interieur {
  display: grid;
  grid-template-columns: 1.4fr 1.3fr 1fr;
  gap: 32px 48px;
  width: min(100% - 52px, var(--largeur));
  max-width: none;
  margin-inline: auto;
  padding: 56px 0 40px;
  justify-content: normal;
  text-align: left;
}

.pied__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.pied__logo img {
  width: auto;
  height: 56px;
  filter: brightness(0) invert(1); /* emblème en blanc sur le fond vert */
}

.pied .marque__nom {
  color: var(--blanc);
  font-size: 20px;
}

.pied .marque__signature {
  color: rgb(255 255 255 / 70%);
}

.pied__signature {
  margin: 18px 0 0;
}

.pied__titre {
  margin: 0 0 14px;
  color: var(--blanc);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.pied__liste li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.pied__liste a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
}

.pied__liste a:hover {
  color: var(--blanc);
  text-decoration: underline;
}

.pied__liste .icone {
  width: 15px;
  height: 15px;
  color: var(--orange);
}

.pied :focus-visible {
  outline-color: var(--blanc);
}

.pied__bas {
  width: min(100% - 52px, var(--largeur));
  margin-inline: auto;
  padding: 18px 0 22px;
  border-top: 1px solid rgb(255 255 255 / 14%);
  color: rgb(255 255 255 / 60%);
  font-size: 13.5px;
}

.pied__bas p {
  margin: 0;
}


/* Tablette (768 à 1024 px) --------------------------------------------------- */
@media (max-width: 1024px) {
  /* En-tête : logo un peu plus compact pour laisser la place aux deux boutons */
  .entete__logo {
    gap: 10px;
  }

  .entete__logo img {
    height: 56px;
  }

  .marque__nom {
    font-size: 18px;
    letter-spacing: 0.14em;
  }

  .marque__signature {
    font-size: 11px;
  }

  .entete__actions {
    gap: 14px;
  }

  .entete__actions > .bouton {
    padding-inline: 16px;
  }

  .service-client {
    gap: 10px;
  }

  .service-client__numero {
    font-size: 17px;
  }

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

  .pied__marque {
    grid-column: 1 / -1;
  }

  /* Le formulaire d'ouverture se cale à gauche de sa colonne : le bouton
     WhatsApp, plus petit et plus près du bord, ne le recouvre pas. */
  .carte-devis--ouverture {
    justify-self: start;
  }

  .actions-flottantes {
    right: 16px;
    bottom: 16px;
  }

  .flottant--whatsapp {
    width: 56px;
    height: 56px;
  }
}


/* Téléphone (767 px et moins) ------------------------------------------------ */
@media (max-width: 767px) {
  /* 1. En-tête sur une ligne, moins haut (84 px au lieu de 118) ; le numéro
     passe dans la barre d'appel du bas, l'icône d'appel reste en haut. */
  :root {
    --hauteur-entete: 84px;
  }

  .entete__interieur {
    width: 100%;
    padding: 14px 16px;
  }

  .marque__nom {
    font-size: 17px;
    letter-spacing: 0.16em;
  }

  .entete__actions {
    align-self: center;
    padding-bottom: 0;
  }

  .service-client__texte {
    display: none;
  }

  .service-client__icone {
    padding: 12px;
    font-size: 20px;
  }

  .ouverture {
    margin-top: var(--hauteur-entete);
  }

  /* 2. Ouverture : le texte occupe toute la largeur, voile du haut en bas */
  .ouverture::after {
    background: linear-gradient(180deg, rgb(var(--vert-nuit) / 70%) 0%, rgb(var(--vert-nuit) / 48%) 55%, rgb(var(--vert-nuit) / 70%) 100%);
  }

  .liste-icones--coches li {
    font-size: 17px;
  }

  .liste-icones--coches .icone {
    width: 20px;
    height: 20px;
  }

  /* 3. Barre fixe en bas : Appeler et WhatsApp, même hauteur (56 px) ;
     la page garde un espace équivalent en bas, rien n'est masqué. */
  body {
    padding-bottom: calc(var(--hauteur-barre) + env(safe-area-inset-bottom, 0px));
  }

  .actions-flottantes {
    right: 0;
    bottom: 0;
    left: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background-color: var(--blanc);
    box-shadow: 0 -4px 18px rgb(0 0 0 / 12%);
    pointer-events: auto;
  }

  .actions-flottantes__interieur {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .flottant,
  .flottant--whatsapp {
    display: flex;
    align-self: stretch;
    justify-content: center;
    gap: 10px;
    width: auto;
    height: auto;
    min-height: 56px;
    padding: 0 12px;
    border-radius: 10px;
    box-shadow: none;
    color: var(--blanc);
    font-size: 18px;
    font-weight: 700;
  }

  .flottant .icone {
    width: 22px;
    height: 22px;
  }

  .flottant__texte {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }

  .flottant__numero {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.92;
  }

  /* 4. Étapes : numéros à gauche, fil vertical */
  .etapes__liste {
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 13px 13px 13px 60px;
  }

  .etape {
    flex: none;
  }

  .etape__numero {
    top: 14px;
    left: -47px;
    margin-left: 0;
  }

  .etape:not(:last-child)::after {
    top: 32px;
    left: -29px;
    width: 2px;
    height: calc(100% + var(--ecart-carte));
  }

  /* 6. Réalisations : même cadrage 4:3 qu'au bureau */
  .realisation__image img {
    aspect-ratio: 4 / 3;
  }

  /* 7. Pied de page sur une colonne */
  .pied__interieur {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    width: auto;
    margin-inline: 20px;
    padding: 40px 0 28px;
    text-align: left;
  }

  .pied__bas {
    width: auto;
    margin-inline: 20px;
  }
}


/* Pages Mentions légales et Confidentialité ---------------------------------- */
.page-legale {
  padding: calc(var(--hauteur-entete) + 56px) 20px 96px;
  background: var(--blanc);
}

.page-legale__interieur {
  max-width: 820px;
  margin: 0 auto;
  color: var(--texte);
  font-size: 17px;
  line-height: 1.65;
}

.page-legale__retour {
  margin: 0 0 24px;
  font-size: 15px;
}

.page-legale__retour a {
  color: var(--vert);
  font-weight: 500;
}

.page-legale h1 {
  margin: 0 0 8px;
  color: var(--vert);
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
}

.page-legale__date {
  margin: 0 0 32px;
  color: #6b6f73;
  font-size: 15px;
}

.page-legale h2 {
  margin: 40px 0 12px;
  color: var(--vert);
  font-size: 21px;
  line-height: 1.3;
}

.page-legale p,
.page-legale ul {
  margin: 0 0 14px;
}

.page-legale ul {
  padding-left: 22px;
}

.page-legale li {
  margin-bottom: 8px;
}

.page-legale a {
  color: var(--vert);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.page-legale__fiche {
  display: grid;
  grid-template-columns: minmax(180px, max-content) 1fr;
  gap: 8px 24px;
  margin: 0 0 14px;
  padding: 20px 24px;
  background: var(--gris-clair);
  border-radius: 8px;
}

.page-legale__fiche dt {
  font-weight: 500;
  color: var(--vert);
}

.page-legale__fiche dd {
  margin: 0;
}

@media (max-width: 767px) {
  .page-legale {
    padding: calc(var(--hauteur-entete) + 32px) 16px 64px;
  }

  .page-legale__interieur {
    font-size: 16px;
  }

  .page-legale__fiche {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 16px;
  }

  .page-legale__fiche dd {
    margin-bottom: 10px;
  }
}
