/* NOSTAK — feuille de style commune aux trois pages.
   Les polices sont servies depuis ce domaine : aucune requête vers Google,
   donc aucune adresse IP de visiteur transmise à un tiers. */

@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/rubik-400.woff2) format('woff2'); }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/rubik-500.woff2) format('woff2'); }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/rubik-600.woff2) format('woff2'); }

:root {
  --abysse: #0C1A24;
  --ardoise: #44596B;
  --calcaire: #F2EFE9;
  --ambre: #D98E2B;
  --trait: #DED8CD;
  --clair: #9FB0BD;
  --gutter: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--calcaire);
  color: var(--abysse);
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--abysse); }
a:hover { color: var(--ardoise); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Marque ---------- */

.mark { display: block; flex: 0 0 auto; }

.lockup { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.lockup .nom {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.17em;
  color: var(--calcaire);
  line-height: 1;
}

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

header {
  background: var(--abysse);
  padding: 22px 0;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
nav { display: flex; gap: 26px; flex-wrap: wrap; }
nav a {
  color: var(--clair);
  text-decoration: none;
  font-size: 15px;
}
nav a:hover { color: var(--calcaire); }
nav a[aria-current="page"] { color: var(--ambre); }

/* ---------- Hero ---------- */

.hero {
  background: var(--abysse);
  color: var(--calcaire);
  padding: 56px 0 72px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 16ch;
}
.hero.local h1 { max-width: 20ch; font-size: clamp(29px, 5vw, 46px); }
.hero h1 .accent { color: var(--ambre); }
.hero p {
  margin: 26px 0 0;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--clair);
  max-width: 54ch;
  line-height: 1.6;
}
.actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
}
.btn-plein {
  background: var(--ambre);
  color: var(--abysse);
}
.btn-plein:hover { background: #E8A044; color: var(--abysse); }
.btn-vide {
  border: 1px solid var(--ardoise);
  color: var(--calcaire);
}
.btn-vide:hover { border-color: var(--calcaire); color: var(--calcaire); }

/* ---------- Fil d'Ariane ---------- */

.fil {
  font-size: 13px;
  color: var(--clair);
  margin: 0 0 22px;
}
.fil a { color: var(--clair); text-decoration: none; }
.fil a:hover { color: var(--calcaire); text-decoration: underline; }
.fil span { color: #6F8697; }

/* ---------- Motif ---------- */

.motif { display: flex; height: 6px; }
.motif i { display: block; height: 100%; }

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

section { padding: 64px 0; }

.etiquette {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ardoise);
  margin: 0 0 14px;
}
h2 {
  margin: 0 0 14px;
  font-size: clamp(25px, 3.6vw, 34px);
  font-weight: 500;
  line-height: 1.25;
  max-width: 22ch;
}
.chapo {
  margin: 0;
  max-width: 62ch;
  color: var(--ardoise);
}

/* ---------- Texte courant ---------- */

.texte { max-width: 62ch; margin-top: 26px; }
.texte p { margin: 0 0 18px; }
.texte p:last-child { margin-bottom: 0; }
.texte strong { font-weight: 500; }

/* ---------- Cartes ---------- */

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.carte {
  background: #FFFFFF;
  border: 1px solid var(--trait);
  border-radius: 5px;
  padding: 26px 24px;
}
.carte h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 500;
}
.carte p {
  margin: 0;
  font-size: 15px;
  color: var(--ardoise);
  line-height: 1.65;
}
.carte .tige {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 18px;
}
.carte .tige i { display: block; height: 4px; border-radius: 1px; }

/* ---------- Méthode ---------- */

.methode { background: var(--abysse); color: var(--calcaire); }
.methode .etiquette { color: var(--ambre); }
.methode .chapo { color: var(--clair); }
.methode ol {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}
.methode li { border-top: 1px solid var(--ardoise); padding-top: 18px; }
.methode .num {
  font-size: 13px;
  color: var(--ambre);
  letter-spacing: 0.1em;
}
.methode h3 {
  margin: 8px 0 8px;
  font-size: 19px;
  font-weight: 500;
}
.methode p {
  margin: 0;
  font-size: 15px;
  color: var(--clair);
  line-height: 1.65;
}
.methode .texte p { color: var(--clair); }

/* ---------- Listes à puce ambre ---------- */

.pourqui ul, .puces {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.pourqui li, .puces li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.55;
}
.pourqui li::before, .puces li::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 4px;
  border-radius: 1px;
  background: var(--ambre);
  margin-top: 10px;
}

/* ---------- Zone d'intervention ---------- */

.zone { background: #FFFFFF; }
.zone .communes {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.zone .communes li {
  border: 1px solid var(--trait);
  border-radius: 3px;
  padding: 7px 13px;
  font-size: 15px;
  color: var(--ardoise);
  background: var(--calcaire);
}
.zone .note {
  margin: 26px 0 0;
  font-size: 15px;
  color: var(--ardoise);
  max-width: 62ch;
}

/* ---------- FAQ ---------- */

.faq .liste { margin-top: 34px; max-width: 76ch; }
.faq details {
  border-top: 1px solid var(--trait);
  padding: 0;
}
.faq details:last-child { border-bottom: 1px solid var(--trait); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-size: 17px;
  font-weight: 500;
  position: relative;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 28px;
  width: 13px;
  height: 3px;
  border-radius: 1px;
  background: var(--ambre);
}
.faq summary::before {
  content: "";
  position: absolute;
  right: 13px;
  top: 23px;
  width: 3px;
  height: 13px;
  border-radius: 1px;
  background: var(--ambre);
  transition: opacity .15s;
}
.faq details[open] summary::before { opacity: 0; }
.faq .reponse {
  padding: 0 0 22px;
  margin: 0;
  max-width: 68ch;
  color: var(--ardoise);
  font-size: 16px;
}
.faq .reponse p { margin: 0 0 14px; }
.faq .reponse p:last-child { margin-bottom: 0; }

/* ---------- Bande d'appel ---------- */

.bande {
  background: var(--abysse);
  color: var(--calcaire);
  padding: 52px 0;
}
.bande h2 { margin: 0 0 12px; max-width: 24ch; }
.bande p { margin: 0; color: var(--clair); max-width: 58ch; }

/* ---------- Contact ---------- */

.contact .coord {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.coord a {
  flex: 1 1 260px;
  background: #FFFFFF;
  border: 1px solid var(--trait);
  border-radius: 5px;
  padding: 22px 24px;
  text-decoration: none;
  min-height: 44px;
}
.coord a:hover { border-color: var(--ardoise); }
.coord .quoi {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ardoise);
  margin-bottom: 7px;
}
.coord .valeur {
  display: block;
  font-size: 19px;
  font-weight: 500;
  color: var(--abysse);
}

/* ---------- Liens entre pages locales ---------- */

.ailleurs { background: var(--calcaire); border-top: 1px solid var(--trait); }
.ailleurs .paires {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.ailleurs a {
  display: block;
  background: #FFFFFF;
  border: 1px solid var(--trait);
  border-radius: 5px;
  padding: 22px 24px;
  text-decoration: none;
}
.ailleurs a:hover { border-color: var(--ardoise); }
.ailleurs .ou {
  display: block;
  font-size: 19px;
  font-weight: 500;
  color: var(--abysse);
  margin-bottom: 6px;
}
.ailleurs .quoi {
  display: block;
  font-size: 15px;
  color: var(--ardoise);
  line-height: 1.55;
}

/* ---------- Pied ---------- */

footer {
  background: var(--abysse);
  color: var(--clair);
  padding: 44px 0 36px;
  font-size: 14px;
}
footer .rangee {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}
footer a { color: var(--clair); }
footer a:hover { color: var(--calcaire); }
footer .plan {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #22323F;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
}
footer .legal {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid #22323F;
  font-size: 13px;
  line-height: 1.7;
}
footer .legal .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px 34px;
}
footer .legal h2 {
  margin: 0 0 9px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6F8697;
  line-height: 1.4;
  max-width: none;
}
footer .legal p { margin: 0; }
footer .legal .pi {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #22323F;
  color: #6F8697;
  font-size: 12px;
}

@media (max-width: 640px) {
  section { padding: 48px 0; }
  .hero { padding: 40px 0 52px; }
}
