/* Swiss Access Solution – feuille de style
   Police : Archivo (OFL), hébergée localement – aucun appel à Google. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --rouge: #b3241f;
  --fond: #ffffff;
  --encre: #000000;
  --texte: #3f3f3d;
  --beton: #ececE8;
  --trait: #cfcfca;
  --vert: #00843d;          /* vert sécurité, comme les panneaux de sortie */
  --vert-texte: #ffffff;
  --inverse-fond: #000000;
  --inverse-encre: #ffffff;
  --inverse-texte: #c9c9c4;
  --champ: #1a1a1a;
  --mesure: 68ch;
  --marge: clamp(1.25rem, 5vw, 4rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #121212;
    --encre: #f4f4f1;
    --texte: #bdbdb8;
    --beton: #1e1e1d;
    --trait: #353533;
    --vert: #2fbf6c;
    --vert-texte: #000000;
    --inverse-fond: #000000;
    --inverse-encre: #ffffff;
    --inverse-texte: #b8b8b3;
    --champ: #1a1a1a;
    --rouge: #ff6b5e;
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
}

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

a { color: inherit; text-underline-offset: 0.2em; }

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

h1, h2, h3 { color: var(--encre); margin: 0; font-weight: 800; line-height: 1.05; }

.saut {
  position: absolute; left: -999px; top: 0;
  background: var(--encre); color: var(--fond); padding: .75rem 1rem; z-index: 100;
}
.saut:focus { left: 1rem; top: 1rem; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: var(--fond);
  border-bottom: 1px solid var(--trait);
}
.entete__in {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 82rem; margin: 0 auto; padding: .85rem var(--marge);
}
.entete__logo img { width: 170px; }
.entete nav { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2rem); }
.entete nav a { text-decoration: none; font-weight: 600; color: var(--encre); }
.entete nav a:hover { text-decoration: underline; }
.entete .lien-tel { display: none; }
@media (min-width: 720px) { .entete .lien-tel { display: inline; } }

.bouton {
  display: inline-block;
  background: var(--vert); color: var(--vert-texte);
  font: inherit; font-weight: 700; text-decoration: none;
  border: 0; border-radius: 2px; padding: .8rem 1.3rem; cursor: pointer;
}
.bouton:hover { filter: brightness(1.1); }
.entete .bouton { padding: .55rem 1rem; color: var(--vert-texte); }

/* ---------- Accroche ---------- */
.accroche {
  max-width: 82rem; margin: 0 auto;
  padding: clamp(3rem, 9vw, 7rem) var(--marge) clamp(2.5rem, 6vw, 4.5rem);
  display: grid; gap: clamp(2rem, 5vw, 4rem);
}
.accroche h1 {
  font-size: clamp(2.6rem, 8.2vw, 7.25rem);
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  line-height: .95;
  max-width: 14ch;
}
.accroche__bas {
  display: grid; gap: 2rem; align-items: end;
}
.accroche__bas p { margin: 0; font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 46ch; color: var(--texte); }
.accroche__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.accroche__actions a:not(.bouton) { font-weight: 600; color: var(--encre); }
@media (min-width: 900px) {
  .accroche__bas { grid-template-columns: 1fr auto; }
}

.bandeau { max-width: 82rem; margin: 0 auto; padding: 0 var(--marge); }
.bandeau img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 55%; }

/* ---------- Sections ---------- */
.section { max-width: 82rem; margin: 0 auto; padding: clamp(3.5rem, 8vw, 6.5rem) var(--marge); }
.section > h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-stretch: 112%;
  letter-spacing: -0.01em;
  margin-bottom: .9rem;
  max-width: 22ch;
}
.section__intro { max-width: var(--mesure); margin: 0 0 2.5rem; font-size: 1.125rem; }

/* Prestations : une liste, une ligne par métier */
.prestations { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--encre); }
.prestation {
  display: grid; gap: 1.25rem 2.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--trait);
}
.prestation h3 { font-size: clamp(1.4rem, 1.9vw, 1.65rem); font-stretch: 100%; overflow-wrap: break-word; }
.prestation p { margin: 0 0 .75rem; max-width: 56ch; }
.prestation ul { margin: 0; padding-left: 1.1rem; }
.prestation li { margin: .2rem 0; }
.prestation li::marker { color: var(--vert); }
.prestation img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 860px) {
  .prestation { grid-template-columns: minmax(17rem, 1fr) 2fr minmax(14rem, 1.1fr); align-items: start; }
}

/* Méthode : vraie séquence, donc numérotée */
.beton { background: var(--beton); }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: etape; }
.etapes li { counter-increment: etape; border-top: 2px solid var(--encre); padding-top: 1rem; }
.etapes li::before {
  content: counter(etape);
  display: block; font-size: 3rem; font-weight: 900; font-stretch: 125%; line-height: 1; color: var(--encre);
  margin-bottom: .75rem;
}
.etapes h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.etapes p { margin: 0; }
@media (min-width: 760px) { .etapes { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

.clients { display: grid; gap: 1.5rem 3rem; margin-top: 1rem; }
.clients p { margin: 0; max-width: var(--mesure); }
.clients strong { color: var(--encre); }
@media (min-width: 760px) { .clients { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Contact (bloc inversé) ---------- */
.contact { background: var(--inverse-fond); color: var(--inverse-texte); }
.contact__in {
  max-width: 82rem; margin: 0 auto; padding: clamp(3.5rem, 8vw, 6.5rem) var(--marge) 2.5rem;
  display: grid; gap: 3rem;
}
.contact h2 { color: var(--inverse-encre); font-size: clamp(2.2rem, 5vw, 3.75rem); font-stretch: 125%; font-weight: 900; }
.contact a { color: var(--inverse-encre); }
.coordonnees { font-style: normal; display: grid; gap: .35rem; margin-top: 1.5rem; font-size: 1.15rem; }
.coordonnees a { font-weight: 700; text-decoration: none; }
.coordonnees a:hover { text-decoration: underline; }
@media (min-width: 900px) { .contact__in { grid-template-columns: 1fr 1.25fr; } }

.formulaire { display: grid; gap: 1.1rem; }
.formulaire .duo { display: grid; gap: 1.1rem; }
@media (min-width: 600px) { .formulaire .duo { grid-template-columns: 1fr 1fr; } }
.formulaire label { display: block; color: var(--inverse-encre); font-weight: 600; margin-bottom: .35rem; }
.formulaire .facultatif { font-weight: 400; color: var(--inverse-texte); }
.formulaire input, .formulaire textarea, .formulaire select {
  width: 100%; font: inherit; color: var(--inverse-encre);
  background: var(--champ); border: 1px solid #4a4a47; border-radius: 2px; padding: .75rem .85rem;
}
.formulaire textarea { min-height: 9rem; resize: vertical; }
.formulaire input:focus, .formulaire textarea:focus, .formulaire select:focus { border-color: var(--vert); outline: none; box-shadow: 0 0 0 2px var(--vert); }
.formulaire .piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulaire .consentement { font-size: .9rem; margin: 0; }
.formulaire .bouton { justify-self: start; background: #00843d; color: #fff; }

.message { border-left: 4px solid var(--vert); padding: .8rem 1rem; background: #111; color: #fff; margin: 0; }
.message[hidden] { display: none; }
.message--erreur { border-color: #e5484d; }

.pied {
  max-width: 82rem; margin: 0 auto; padding: 2rem var(--marge) 2.5rem;
  border-top: 1px solid #2c2c2a;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  font-size: .9rem; color: var(--inverse-texte);
}
.pied img { width: 140px; }
.pied nav { display: flex; gap: 1.5rem; }

/* ---------- Page texte (mentions légales) ---------- */
.texte { max-width: 46rem; margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--marge); }
.texte h1 { font-size: clamp(2rem, 5vw, 3rem); font-stretch: 112%; margin-bottom: 2rem; }
.texte h2 { font-size: 1.3rem; margin: 2.2rem 0 .6rem; }
.texte p, .texte li { max-width: var(--mesure); }

.zone { margin: 2rem 0 0; max-width: var(--mesure); color: var(--encre); font-weight: 600; }

/* Bloc groupe Clé Carouge */
.groupe { max-width: 82rem; margin: 0 auto; padding: 0 var(--marge) clamp(3rem, 6vw, 4.5rem); }
.groupe::before { content: ""; display: block; border-top: 1px solid var(--trait); margin-bottom: 2.5rem; }
.groupe p { margin: 0; }
.groupe__label { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: .95rem; color: var(--texte); }
.groupe .groupe__nom { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 800; color: var(--encre); line-height: 1.2; margin-top: .3rem; }
.groupe__nom span { color: var(--rouge); }
