/* ==================================================================
   Ange Security - gabarits de prestation
   Registre visuel : le poste de garde de nuit.
   Fond ardoise, orange de signalisation, titres condenses facon
   marquage sur uniforme, et une carte d habilitation comme signature.
   ================================================================== */

:root {
  --asv-encre:  #140D09;
  --asv-nuit:   #16202B;
  --asv-nuit-2: #1F2C3A;
  --asv-signal: #FF7C2C;
  --asv-beton:  #EDEFF1;
  --asv-papier: #FFFFFF;
  --asv-trace:  #6B7681;
  --asv-ligne:  rgba(255,255,255,.14);

  --asv-max: 1140px;
  --asv-condense: "Roboto Condensed", "Heebo", system-ui, sans-serif;
  --asv-texte: "Roboto", system-ui, -apple-system, sans-serif;
}

.asv { font-family: var(--asv-texte); color: var(--asv-encre); }
.asv *, .asv *::before, .asv *::after { box-sizing: border-box; }
.asv .asv-conteneur { width: 100%; max-width: var(--asv-max); margin: 0 auto; padding: 0 24px; }

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

.asv-hero {
  position: relative;
  background: var(--asv-nuit);
  color: #fff;
  padding: 56px 0 64px;
  overflow: hidden;
}
/* Trame de barrieres : rappel du perimetre a surveiller. */
.asv-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    115deg, rgba(255,124,44,.10) 0 2px, transparent 2px 26px);
  pointer-events: none;
}
.asv-hero > .asv-conteneur { position: relative; }

.asv-fil {
  font-size: 12px; letter-spacing: .04em;
  color: rgba(255,255,255,.55); margin-bottom: 28px;
}
.asv-fil a { color: rgba(255,255,255,.72); text-decoration: none; }
.asv-fil a:hover { color: var(--asv-signal); }
.asv-fil span { margin: 0 8px; }
.asv-fil > span:last-child { margin-right: 0; color: #fff; }

.asv-hero-grille {
  display: grid; gap: 44px;
  grid-template-columns: minmax(0,1fr) 320px;
  align-items: start;
}

.asv-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--asv-condense);
  font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--asv-signal);
  margin-bottom: 14px;
}
.asv-eyebrow::before {
  content: ""; width: 26px; height: 2px;
  background: var(--asv-signal); display: block;
}

.asv-hero h1 {
  font-family: var(--asv-condense);
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(34px, 6vw, 62px);
  line-height: .98; letter-spacing: -.005em;
  margin: 0 0 18px; color: #fff;
}
.asv-hero h1 .asv-zone { display: block; color: var(--asv-signal); }

.asv-chapo {
  font-size: 17px; line-height: 1.6;
  color: rgba(255,255,255,.80); max-width: 46ch; margin: 0 0 30px;
}

.asv-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.asv-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--asv-condense);
  font-size: 17px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 15px 26px; border-radius: 2px;
  text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.asv-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.asv-btn-1 { background: var(--asv-signal); color: #fff; }
.asv-btn-1:hover { background: #ff8f4c; color: #fff; transform: translateY(-2px); }
.asv-btn-2 { border-color: rgba(255,255,255,.38); color: #fff; }
.asv-btn-2:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

/* ---------- Signature : la carte d habilitation ------------------ */

.asv-carte {
  background: var(--asv-nuit-2);
  border: 1px solid var(--asv-ligne);
  border-top: 3px solid var(--asv-signal);
  border-radius: 3px; padding: 22px 22px 18px;
}
.asv-carte-titre {
  font-family: var(--asv-condense);
  font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin: 0 0 16px;
}
.asv-carte dl { margin: 0; }
.asv-carte dt {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-bottom: 3px;
}
.asv-carte dd {
  margin: 0 0 15px;
  font-family: var(--asv-condense);
  font-size: 15px; font-weight: 600; color: #fff;
  word-break: break-word;
}
.asv-carte dd:last-child { margin-bottom: 0; }
.asv-carte .asv-num { font-size: 13px; letter-spacing: .02em; }

/* ---------- Bandeau de reassurance ------------------------------- */

.asv-reassurance { background: var(--asv-encre); color: #fff; }
.asv-reassurance ul {
  display: grid; grid-template-columns: repeat(4, 1fr);
  list-style: none; margin: 0; padding: 0;
}
.asv-reassurance li {
  padding: 20px 24px;
  border-left: 1px solid rgba(255,255,255,.10);
  font-family: var(--asv-condense);
  font-size: 15px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.asv-reassurance li:first-child { border-left: 0; }
.asv-reassurance li span {
  display: block;
  font-family: var(--asv-texte);
  font-size: 12px; font-weight: 400; text-transform: none;
  letter-spacing: 0; color: rgba(255,255,255,.5); margin-top: 3px;
}

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

.asv-corps { padding: 64px 0; background: var(--asv-papier); }
.asv-corps .asv-conteneur { max-width: 820px; }

.asv-corps h2, .asv-corps h3, .asv-corps h4 {
  font-family: var(--asv-condense);
  text-transform: uppercase; letter-spacing: .01em;
  line-height: 1.12; color: var(--asv-encre);
  margin: 40px 0 16px;
}
.asv-corps h2 { font-size: 30px; }
.asv-corps h3 { font-size: 25px; }
.asv-corps h4 { font-size: 20px; }
.asv-corps > .asv-conteneur > *:first-child { margin-top: 0; }

.asv-corps p { font-size: 17px; line-height: 1.72; margin: 0 0 20px; color: #26313A; }
.asv-corps strong { color: var(--asv-encre); }
.asv-corps a { color: #B04F12; text-underline-offset: 3px; }
.asv-corps a:hover { color: var(--asv-signal); }

.asv-corps figure,
.asv-corps .wp-caption {
  max-width: 320px; margin: 6px 30px 22px 0; float: left;
}
.asv-corps figure img, .asv-corps .wp-caption img,
.asv-corps picture img { display: block; width: 100%; height: auto; border-radius: 3px; }
.asv-corps figcaption, .asv-corps .wp-caption-text {
  font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--asv-trace); margin-top: 8px;
}
.asv-corps iframe { max-width: 100%; border-radius: 3px; }
.asv-corps::after { content: ""; display: table; clear: both; }

/* ---------- Communes -------------------------------------------- */

.asv-secteur { background: var(--asv-beton); padding: 56px 0; }
.asv-secteur h2 {
  font-family: var(--asv-condense);
  font-size: 27px; font-weight: 700; text-transform: uppercase;
  margin: 0 0 6px; color: var(--asv-encre);
}
.asv-secteur .asv-sous { color: var(--asv-trace); font-size: 15px; margin: 0 0 26px; }

/* Grille de secteurs. Chaque entree est une plaque : filet a gauche
   qui s allume en orange, et un chevron qui avance au survol. */
.asv-communes {
  list-style: none !important; margin: 0; padding: 0;
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}
.asv-communes li { margin: 0 !important; padding: 0 !important; list-style: none !important; }

.asv-communes a {
  position: relative; display: flex; align-items: center;
  min-height: 52px; padding: 12px 34px 12px 18px;
  background: #fff;
  border: 1px solid #DDE1E5;
  border-left: 3px solid #C9CFD5;
  border-radius: 2px;
  font-family: var(--asv-condense);
  font-size: 16px; font-weight: 600; line-height: 1.25;
  letter-spacing: .01em;
  color: var(--asv-encre); text-decoration: none;
  transition: border-left-color .15s ease, border-color .15s ease,
              background-color .15s ease, color .15s ease;
}
.asv-communes a::after {
  content: ""; position: absolute; right: 16px; top: 50%;
  width: 7px; height: 7px; margin-top: -4px;
  border-right: 2px solid #B8C0C7; border-top: 2px solid #B8C0C7;
  transform: rotate(45deg);
  transition: transform .15s ease, border-color .15s ease;
}
.asv-communes a:hover {
  border-color: #CBD1D7; border-left-color: var(--asv-signal);
  background: #fff; color: #B04F12;
}
.asv-communes a:hover::after {
  border-color: var(--asv-signal);
  transform: rotate(45deg) translate(2px, -2px);
}
.asv-communes a:focus-visible { outline: 3px solid var(--asv-signal); outline-offset: 2px; }

/* Filet de repli si une liste brute subsiste dans un contenu. */
.asv-secteur ul.ange-liens-villes,
.asv-secteur ul.nzw_listevilles,
.asv-corps ul.nzw_listevilles {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}
.asv-secteur ul.ange-liens-villes a,
.asv-secteur ul.nzw_listevilles a,
.asv-corps ul.nzw_listevilles a {
  display: flex; align-items: center; min-height: 52px;
  padding: 12px 18px; background: #fff;
  border: 1px solid #DDE1E5; border-left: 3px solid #C9CFD5;
  border-radius: 2px; font-family: var(--asv-condense);
  font-size: 16px; font-weight: 600; color: var(--asv-encre);
  text-decoration: none;
}
.asv-secteur ul.ange-liens-villes a:hover,
.asv-secteur ul.nzw_listevilles a:hover,
.asv-corps ul.nzw_listevilles a:hover {
  border-left-color: var(--asv-signal); color: #B04F12;
}

/* ---------- Appel final ------------------------------------------ */

.asv-final { background: var(--asv-signal); color: #fff; padding: 50px 0; }
.asv-final .asv-conteneur {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 24px;
}
.asv-final h2 {
  font-family: var(--asv-condense);
  font-size: clamp(24px, 3.4vw, 34px); font-weight: 700;
  text-transform: uppercase; line-height: 1.1; margin: 0; color: #fff;
}
.asv-final p { margin: 6px 0 0; color: rgba(255,255,255,.9); font-size: 15px; }
.asv-final .asv-btn-1 { background: var(--asv-encre); }
.asv-final .asv-btn-1:hover { background: #000; }

/* ---------- Barre d appel mobile --------------------------------- */

.asv-barre { display: none; }

/* ---------- Adaptatif -------------------------------------------- */

@media (max-width: 980px) {
  .asv-hero-grille { grid-template-columns: 1fr; gap: 32px; }
  .asv-carte { max-width: 420px; }
  .asv-reassurance ul { grid-template-columns: repeat(2, 1fr); }
  .asv-reassurance li:nth-child(3) { border-left: 0; }
  .asv-reassurance li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.10); }
}

@media (max-width: 700px) {
  .asv-hero { padding: 36px 0 44px; }
  .asv-corps { padding: 44px 0; }
  .asv-secteur { padding: 40px 0; }
  .asv-communes,
  .asv-secteur ul.ange-liens-villes,
  .asv-secteur ul.nzw_listevilles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .asv-communes a { font-size: 15px; padding: 11px 26px 11px 14px; min-height: 46px; }
  .asv-corps figure, .asv-corps .wp-caption {
    float: none; max-width: 100%; margin: 0 0 22px;
  }
  .asv-actions .asv-btn { flex: 1 1 100%; justify-content: center; }
  .asv-reassurance ul { grid-template-columns: 1fr; }
  .asv-reassurance li { border-left: 0; border-top: 1px solid rgba(255,255,255,.10); }
  .asv-reassurance li:first-child { border-top: 0; }
  .asv-final .asv-conteneur { flex-direction: column; align-items: flex-start; }

  .asv-barre {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
    background: var(--asv-encre);
    box-shadow: 0 -2px 14px rgba(0,0,0,.22);
  }
  .asv-barre a {
    flex: 1; text-align: center; padding: 15px 10px;
    font-family: var(--asv-condense);
    font-size: 16px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    color: #fff; text-decoration: none;
  }
  .asv-barre a + a { background: var(--asv-signal); }
  body.asv-page { padding-bottom: 54px; }
  .wp-call-button { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .asv * { transition: none !important; animation: none !important; }
}
