/* ACCT — feuille de style principale
   Palette et typographie : voir variables ci-dessous. */

:root {
  --encre:    #1F2326;  /* texte principal, panneaux sombres */
  --acier:    #5C666E;  /* texte secondaire */
  --trame:    #DEDFDC;  /* filets, séparateurs */
  --papier:   #FAFAF8;  /* fond de page */
  --repere:   #C22A20;  /* accent, usage strictement ponctuel */

  --serre: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --texte: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --marge: clamp(1.25rem, 5vw, 4rem);
  --max: 68rem;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

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

.enveloppe {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--marge);
}

.saut-contenu {
  position: absolute;
  left: -9999px;
  background: var(--encre);
  color: #fff;
  padding: .75rem 1rem;
}
.saut-contenu:focus { left: 1rem; top: 1rem; z-index: 100; }

/* ---------- Typographie ---------- */

h1, h2, h3 {
  font-family: var(--serre);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.5rem, 6.5vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

p { margin: 0 0 1.1em; max-width: 46rem; }

.chapeau {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--acier);
  max-width: 40rem;
}

strong { font-weight: 600; }

/* ---------- En-tête ---------- */

.entete {
  border-bottom: 1px solid var(--trame);
  background: var(--papier);
  position: sticky;
  top: 0;
  z-index: 50;
}

.entete .enveloppe {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.marque {
  font-family: var(--serre);
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: .04em;
  text-decoration: none;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
.marque span {
  font-family: var(--texte);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .13em;
  color: var(--acier);
}

.navigation { margin-left: auto; }

.navigation ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.navigation a {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.navigation a:hover { border-bottom-color: var(--encre); }
.navigation a[aria-current="page"] { border-bottom-color: var(--repere); }

.tel-entete {
  font-family: var(--serre);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.tel-entete:hover { color: var(--repere); }

.bouton-menu {
  display: none;
  background: none;
  border: 1px solid var(--trame);
  font-family: var(--texte);
  font-size: .9rem;
  font-weight: 500;
  padding: .5rem .9rem;
  cursor: pointer;
  margin-left: auto;
}

@media (max-width: 860px) {
  .bouton-menu { display: block; }
  .navigation {
    display: none;
    width: 100%;
    margin: 0;
    padding-bottom: 1rem;
  }
  .entete .enveloppe { flex-wrap: wrap; }
  .navigation.ouvert { display: block; }
  .navigation ul { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .tel-entete { order: 3; }
}

/* ---------- Accroche ---------- */

.accroche {
  background: var(--encre);
  color: var(--papier);
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.accroche h1 { max-width: 20ch; }
.accroche p { color: #C9CDD0; max-width: 42rem; }

/* Réglette d'engagements — évoque un cadran gradué */
.reglette {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid #3C4247;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.reglette div {
  padding-top: 1.4rem;
  position: relative;
  padding-right: 1.5rem;
}
.reglette div::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2px;
  height: 14px;
  background: #6B747B;
}
.reglette div:first-child::before { background: var(--repere); height: 22px; width: 3px; }

.reglette b {
  display: block;
  font-family: var(--serre);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 600;
  line-height: 1;
}
.reglette small {
  display: block;
  margin-top: .4rem;
  font-size: .9rem;
  color: #9BA3A9;
  line-height: 1.35;
}

@media (max-width: 620px) {
  .reglette { grid-template-columns: 1fr; }
  .reglette div { padding-bottom: 1.4rem; border-bottom: 1px solid #3C4247; }
  .reglette div:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-filet { border-top: 1px solid var(--trame); }
.section-sombre { background: var(--encre); color: var(--papier); }
.section-sombre p { color: #C9CDD0; }

.intro-page {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem);
}

.fil {
  font-size: .9rem;
  color: var(--acier);
  margin-bottom: 1.2rem;
}
.fil a { text-decoration: none; }
.fil a:hover { text-decoration: underline; }

/* ---------- Index des services (grille façon fiche technique) ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1px;
  background: var(--trame);
  border: 1px solid var(--trame);
  margin-top: 2.5rem;
}

.services a {
  background: var(--papier);
  padding: 1.6rem 1.5rem 1.8rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: background .15s ease;
}
.services a:hover { background: #fff; }

.services h3 { margin-bottom: .45rem; }
.services p {
  font-size: .96rem;
  color: var(--acier);
  margin: 0;
}
.services em {
  font-style: normal;
  font-weight: 500;
  font-size: .9rem;
  margin-top: 1.1rem;
  border-bottom: 1px solid var(--repere);
  align-self: flex-start;
  padding-bottom: 1px;
}

/* ---------- Corps de page service ---------- */

.bloc { margin-bottom: clamp(2.2rem, 5vw, 3.2rem); }
.bloc:last-child { margin-bottom: 0; }

.bloc h2 { max-width: 24ch; }

.liste {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  max-width: 46rem;
}
.liste li {
  padding: .7rem 0 .7rem 1.6rem;
  border-bottom: 1px solid var(--trame);
  position: relative;
}
.liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: .55rem;
  height: 2px;
  background: var(--acier);
}

/* ---------- Témoignage ---------- */

.temoignage blockquote {
  margin: 0;
  font-family: var(--serre);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  max-width: 32ch;
  border-left: 3px solid var(--repere);
  padding-left: 1.5rem;
}
.temoignage figcaption {
  margin-top: 1.5rem;
  padding-left: 1.6rem;
  font-size: .95rem;
  color: var(--acier);
}

/* ---------- Appel à l'action ---------- */

.bouton {
  display: inline-block;
  background: var(--repere);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: .85rem 1.6rem;
  border: 0;
  font-family: var(--texte);
  font-size: 1rem;
  cursor: pointer;
}
.bouton:hover { background: #A4211A; }

.bouton-clair {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: .85rem 1.6rem;
  border: 1px solid currentColor;
}
.bouton-clair:hover { background: var(--encre); color: var(--papier); }
.section-sombre .bouton-clair:hover { background: var(--papier); color: var(--encre); }

/* ---------- Formulaire ---------- */

.formulaire { max-width: 34rem; }
.formulaire label {
  display: block;
  font-size: .92rem;
  font-weight: 500;
  margin-bottom: .35rem;
}
.formulaire input,
.formulaire textarea {
  width: 100%;
  font-family: var(--texte);
  font-size: 1rem;
  padding: .7rem .8rem;
  border: 1px solid var(--acier);
  background: #fff;
  color: var(--encre);
  margin-bottom: 1.2rem;
  border-radius: 0;
}
.formulaire textarea { min-height: 9rem; resize: vertical; }

/* ---------- Colonnes contact ---------- */

.deux-colonnes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}
@media (max-width: 760px) {
  .deux-colonnes { grid-template-columns: 1fr; }
}

.coordonnees { list-style: none; padding: 0; margin: 0; }
.coordonnees li { margin-bottom: 1.4rem; }
.coordonnees strong {
  display: block;
  font-family: var(--serre);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: .1rem;
}
.coordonnees a { text-decoration: none; border-bottom: 1px solid var(--trame); }
.coordonnees a:hover { border-bottom-color: var(--repere); }

/* ---------- Navigation entre services ---------- */

.voisins {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1px;
  background: var(--trame);
  border-block: 1px solid var(--trame);
}
.voisins a {
  background: var(--papier);
  padding: 1.2rem 1.3rem;
  text-decoration: none;
  font-family: var(--serre);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.15;
}
.voisins a:hover { background: #fff; color: var(--repere); }

/* ---------- Pied de page ---------- */

.pied {
  background: var(--encre);
  color: #C9CDD0;
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
  font-size: .95rem;
}
.pied h2 {
  color: var(--papier);
  max-width: 18ch;
}
.pied a { color: var(--papier); }
.pied .grille {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #3C4247;
}
@media (max-width: 760px) {
  .pied .grille { grid-template-columns: 1fr; gap: 2rem; }
}
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: .5rem; }
.pied h3 {
  color: var(--papier);
  font-size: 1.05rem;
  letter-spacing: .06em;
  margin-bottom: .9rem;
}
.mentions {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #3C4247;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: .85rem;
  color: #8B9399;
}

/* ---------- Carrousel de témoignages ---------- */

.carrousel { margin-top: 2.5rem; }

.piste {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.piste::-webkit-scrollbar { display: none; }

.avis {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin: 0;
  padding-right: 2rem;
}

.avis blockquote {
  margin: 0;
  border-left: 3px solid var(--repere);
  padding-left: clamp(1.2rem, 3vw, 2rem);
}
.avis blockquote p {
  font-size: clamp(1.02rem, 1.5vw, 1.12rem);
  max-width: 44rem;
  color: #31373B;
}
.avis blockquote p:last-child { margin-bottom: 0; }

.avis figcaption {
  margin-top: 1.5rem;
  padding-left: clamp(1.2rem, 3vw, 2rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--trame);
  font-size: .95rem;
  color: var(--acier);
  max-width: 44rem;
}
.avis figcaption b {
  font-family: var(--serre);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--encre);
  display: block;
  margin-bottom: .1rem;
}
.avis figcaption a { color: var(--encre); text-decoration: none; border-bottom: 1px solid var(--repere); }

.commandes {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-left: clamp(1.2rem, 3vw, 2rem);
}

.fleche {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--acier);
  background: transparent;
  color: var(--encre);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  font-family: var(--texte);
}
.fleche:hover:not(:disabled) { background: var(--encre); color: var(--papier); }
.fleche:disabled { opacity: .3; cursor: default; }

.reperes { display: flex; gap: .55rem; }

.repere {
  width: 2.2rem;
  height: 3px;
  padding: 0;
  border: 0;
  background: var(--trame);
  cursor: pointer;
}
.repere[aria-current="true"] { background: var(--repere); }

@media (max-width: 620px) {
  .avis { padding-right: 1rem; }
  .commandes { padding-left: 0; }
}

/* ---------- Formulaire : piège à robots et message d'erreur ---------- */

.pot-de-miel {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alerte {
  border-left: 3px solid var(--repere);
  background: #FBEDEC;
  padding: 1rem 1.2rem;
  margin-bottom: 1.8rem;
  max-width: 34rem;
}
.alerte:focus { outline: 3px solid var(--repere); outline-offset: 3px; }
