/* Proxi Dépannage — bleu de travail, jaune signal, bon d'intervention */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bleu: #1458c4;        /* bleu du logo */
  --bleu-fonce: #0e3f8f;
  --rouge: #e0161f;       /* rouge du logo */
  --encre: #12161d;
  --papier: #f2f4f7;
  --jaune: #ffcc1a;       /* jaune signal */
  --jaune-fonce: #e6b400;
  --vert: #2e8b57;
  --gris: #5a6371;
  --trait: #d9dee6;
  --max: 1160px;
  --r: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--encre);
  background: #fff;
  padding-bottom: 76px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; font-stretch: 112%; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; font-stretch: 105%; font-weight: 750; line-height: 1.25; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.lead { font-size: 1.15rem; max-width: 60ch; }
.muted { color: var(--gris); }
.block { padding: clamp(56px, 8vw, 96px) 0; }
.block--papier { background: var(--papier); }
.block__head { max-width: 62ch; margin-bottom: 36px; }
.block__head p { color: var(--gris); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* ---------- Téléphone : l'élément fort ---------- */
.tel {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: var(--jaune); color: var(--encre); border-radius: var(--r);
  font-weight: 800; font-stretch: 118%; letter-spacing: .01em; white-space: nowrap;
  padding: 12px 18px; font-size: 1.05rem; font-variant-numeric: tabular-nums;
  box-shadow: 0 3px 0 var(--jaune-fonce);
  transition: transform .08s ease, box-shadow .08s ease;
}
.tel:hover { background: #ffd53f; }
.tel:active { transform: translateY(3px); box-shadow: 0 0 0 var(--jaune-fonce); }
.tel svg { width: 1.1em; height: 1.1em; flex: none; }
.tel--xl { font-size: clamp(1.7rem, 5.6vw, 2.7rem); padding: 16px 26px; gap: 16px; box-shadow: 0 5px 0 var(--jaune-fonce); }
.tel--xl:active { transform: translateY(5px); }
.tel-note { display: block; margin-top: 14px; font-size: .95rem; }

.btn-line {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: var(--r);
  border: 2px solid currentColor; font-weight: 700; text-decoration: none; color: var(--bleu);
}
.btn-line:hover { background: rgba(20,88,196,.06); }

/* ---------- En-tête ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--trait); }
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); margin-right: auto; }
.logo-img { display: block; height: 71px; width: auto; margin: 4px 0; }
@media (max-width: 960px) { .logo-img { height: 58px; } }
.footer .logo-img { background: #fff; border-radius: var(--r); padding: 6px 10px; box-sizing: content-box; }
.logo__txt { display: flex; flex-direction: column; line-height: 1; }
.logo__txt b { color: var(--bleu); font-size: 1.6rem; font-weight: 900; font-stretch: 112%; letter-spacing: -.02em; }
.logo__txt i { font-style: normal; color: var(--rouge); font-size: .74rem; font-weight: 800; font-stretch: 118%; letter-spacing: .19em; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--encre); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--bleu); text-decoration: underline; text-decoration-thickness: 2px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; color: var(--encre); }
.menu-btn svg { width: 28px; height: 28px; }
.drop { position: relative; }
.drop__panel {
  display: none; position: absolute; top: calc(100% + 14px); left: -20px; background: #fff; border: 1px solid var(--trait);
  border-radius: var(--r); box-shadow: 0 12px 30px rgba(18,22,29,.12); padding: 10px; width: 320px;
}
.drop__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.drop:hover .drop__panel, .drop:focus-within .drop__panel { display: block; }
.drop__panel a { display: block; padding: 9px 12px; border-radius: var(--r); font-weight: 500; }
.drop__panel a:hover { background: var(--papier); text-decoration: none; }
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .header .tel { display: none; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 6px 16px 18px; border-bottom: 1px solid var(--trait);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav > a, .drop > a { padding: 13px 0; border-bottom: 1px solid var(--trait); }
  .drop__panel { display: block; position: static; border: 0; box-shadow: none; width: auto; padding: 4px 0 8px 12px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--bleu); color: #fff; padding: clamp(40px, 7vw, 84px) 0 clamp(48px, 7vw, 92px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lead { color: #dfe6f7; margin-bottom: 30px; }
.hero .tel-note { color: #c4d0ee; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 30px 0 0; color: #fff; font-weight: 600; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts svg { width: 18px; height: 18px; color: var(--jaune); flex: none; }
.crumbs { font-size: .9rem; color: #c4d0ee; margin-bottom: 16px; }
.crumbs a { color: #fff; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Bon d'intervention (papier carbone) ---------- */
.bon {
  background: #fff; color: var(--encre); border-radius: 2px; padding: 26px 26px 22px; position: relative;
  transform: rotate(1.6deg); box-shadow: 0 22px 40px rgba(8,18,50,.35);
  font-size: .97rem; max-width: 380px; justify-self: end; width: 100%; margin: 0;
  background-image: repeating-linear-gradient(transparent 0 31px, #e9edf3 31px 32px);
  background-position: 0 70px;
}
.bon::before { /* perforation */
  content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 14px;
  background: radial-gradient(circle at 7px 7px, var(--bleu) 5px, transparent 5.5px) 0 0 / 18px 14px repeat-x;
}
.bon__top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--encre); padding-bottom: 10px; margin-bottom: 8px; }
.bon__top b { font-stretch: 120%; font-weight: 850; font-size: 1.15rem; }
.bon__top small { color: var(--gris); }
.bon dl { margin: 0; }
.bon dl div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; min-height: 32px; align-items: baseline; }
.bon dt { color: var(--gris); }
.bon dd { margin: 0; font-weight: 650; text-align: right; }
.bon .bon__prix dd { font-size: 1.5rem; font-weight: 850; font-stretch: 115%; color: var(--bleu); }
.bon__ok { padding-right: 108px; display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--trait); font-weight: 650; }
.bon__ok i { width: 22px; height: 22px; border: 2px solid var(--encre); border-radius: 3px; display: grid; place-items: center; color: var(--vert); flex: none; }
.bon__ok i svg { width: 16px; height: 16px; stroke-width: 3.5; }
.bon__tampon {
  position: absolute; right: 14px; bottom: 16px; transform: rotate(-12deg); border: 3px solid var(--vert); color: var(--vert);
  font-weight: 850; font-stretch: 120%; padding: 4px 10px; border-radius: 4px; font-size: .95rem; opacity: .85;
}
@media (max-width: 900px) { .bon { justify-self: start; transform: rotate(.8deg); width: calc(100% - 10px); } }

/* ---------- Engagements ---------- */
.engagements { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--trait); }
.engagements div { padding: 28px 24px 28px 0; }
.engagements div + div { padding-left: 24px; border-left: 1px solid var(--trait); }
.engagements b { display: block; font-stretch: 110%; font-size: 1.08rem; margin-bottom: 4px; }
.engagements span { color: var(--gris); font-size: .95rem; }
@media (max-width: 860px) {
  .engagements { grid-template-columns: 1fr 1fr; }
  .engagements div { padding: 20px 14px 20px 0; }
  .engagements div + div { padding-left: 14px; }
  .engagements div:nth-child(3) { padding-left: 0; border-left: 0; }
  .engagements div:nth-child(-n+2) { border-bottom: 1px solid var(--trait); }
}

/* ---------- Tableau des services / tarifs ---------- */
.tarifs { border-top: 3px solid var(--encre); }
.tarif {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 6px 20px; align-items: center;
  padding: 22px 4px; border-bottom: 1px solid var(--trait); text-decoration: none; color: var(--encre);
}
a.tarif:hover { background: var(--papier); }
a.tarif:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }
.tarif__ico { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--papier); display: block; }
.tarif__ico img { width: 100%; height: 100%; object-fit: cover; }
.tarif__ico svg { width: 28px; height: 28px; }
.tarif h3 { margin: 0 0 2px; }
.tarif p { margin: 0; color: var(--gris); font-size: .97rem; }
.tarif__prix { text-align: right; white-space: nowrap; }
.tarif__prix small { display: block; color: var(--gris); font-size: .85rem; }
.tarif__prix b { font-size: 1.6rem; font-weight: 850; font-stretch: 115%; font-variant-numeric: tabular-nums; }
.urgent { display: inline-block; vertical-align: 2px; margin-left: 8px; background: var(--rouge); color: #fff; font-size: .78rem; font-weight: 750; padding: 2px 8px; border-radius: 3px; }
@media (max-width: 640px) {
  .tarif { grid-template-columns: 56px 1fr; }
  .tarif__ico { width: 56px; height: 56px; }
  .tarif__prix { grid-column: 2; text-align: left; }
  .tarif__prix small { display: inline; margin-right: 6px; }
  .tarif__prix b { font-size: 1.3rem; }
}
.tarif--simple { grid-template-columns: 1fr auto; }
.tarif--simple .tarif__prix { grid-column: auto; text-align: right; }
.footnote { color: var(--gris); font-size: .92rem; margin-top: 18px; max-width: 75ch; }

/* ---------- Étapes (vraie séquence) ---------- */
.etapes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: e; }
.etapes li { counter-increment: e; border-top: 3px solid var(--bleu); padding-top: 16px; }
.etapes li::before { content: counter(e); display: block; font-size: 2.6rem; font-weight: 850; font-stretch: 125%; color: var(--bleu); line-height: 1; margin-bottom: 10px; }
.etapes p { color: var(--gris); margin: 0; }
@media (max-width: 900px) { .etapes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .etapes { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Deux colonnes ---------- */
.cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; gap: 36px; } }
.coche { list-style: none; padding: 0; margin: 0 0 1.2em; }
.coche li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.coche li svg { position: absolute; left: 0; top: 4px; width: 20px; height: 20px; color: var(--vert); stroke-width: 3; }
.encart { background: var(--papier); border-left: 4px solid var(--bleu); padding: 24px 26px; border-radius: 0 var(--r) var(--r) 0; }
.encart h3 { margin-bottom: .6em; }
.encart--jaune { border-left-color: var(--jaune); background: #fffbea; }
.sticky { position: sticky; top: 96px; }

/* ---------- Zone ---------- */
.secteurs { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.secteurs h3 { color: var(--bleu); margin-bottom: 10px; }
.secteurs .communes { columns: 2 180px; }
@media (max-width: 760px) { .secteurs { grid-template-columns: 1fr; gap: 28px; } }
.communes { columns: 3 220px; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
.communes li { padding: 8px 0; border-bottom: 1px solid var(--trait); break-inside: avoid; font-weight: 600; }
.communes li.base { color: var(--bleu); }
.communes small { color: var(--gris); font-weight: 400; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; border-top: 3px solid var(--encre); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-weight: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--bleu); border-bottom: 2.5px solid var(--bleu); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--gris); padding-bottom: 20px; margin: 0; max-width: 70ch; }

/* ---------- Bandeau d'appel final ---------- */
.appel { background: var(--encre); color: #fff; padding: 56px 0; }
.appel .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.appel h2 { color: #fff; margin-bottom: .25em; }
.appel p { color: #b9c1cd; margin: 0; }

/* ---------- Pied de page ---------- */
.footer { background: #0c0f14; color: #9aa4b2; padding: 52px 0 28px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h2 { color: #fff; font-size: 1rem; font-stretch: 105%; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: #dfe4ec; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .logo { color: #fff; }
.footer .logo__txt b { color: #fff; }
.footer .logo__txt i { color: #ff4a52; }
.footer__bas { border-top: 1px solid #1f2632; margin-top: 36px; padding-top: 20px; font-size: .85rem; }

/* ---------- Barre d'appel mobile ---------- */
.barre {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--trait); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
}
.barre .tel { flex: 1; justify-content: center; font-size: 1.1rem; }
.barre .btn-line { justify-content: center; }
@media (min-width: 961px) { .barre { display: none; } body { padding-bottom: 0; } }

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 22px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend, .form label { display: block; font-weight: 700; margin-bottom: 8px; }
.form .opt { font-weight: 400; color: var(--gris); }
.form input[type=text], .form input[type=tel], .form input[type=email], .form select, .form textarea {
  width: 100%; font: inherit; padding: 13px 14px; border: 2px solid var(--trait); border-radius: var(--r); background: #fff; color: var(--encre);
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--bleu); outline: none; box-shadow: 0 0 0 3px rgba(20,88,196,.18); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.choix { display: flex; flex-wrap: wrap; gap: 10px; }
.choix label { margin: 0; }
.choix input { position: absolute; opacity: 0; pointer-events: none; }
.choix span {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 2px solid var(--trait); border-radius: var(--r);
  font-weight: 600; cursor: pointer; background: #fff;
}
.choix span svg { width: 20px; height: 20px; color: var(--bleu); }
.choix input:checked + span { border-color: var(--bleu); background: var(--bleu); color: #fff; }
.choix input:checked + span svg { color: var(--jaune); }
.choix input:focus-visible + span { outline: 3px solid var(--jaune); outline-offset: 2px; }
.photos { border: 2px dashed var(--trait); border-radius: var(--r); padding: 18px; background: var(--papier); }
.photos input { font: inherit; }
.apercus { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.apercus img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--trait); }
.form button {
  font: inherit; font-weight: 800; font-stretch: 112%; font-size: 1.15rem; border: 0; cursor: pointer;
  background: var(--bleu); color: #fff; padding: 16px 26px; border-radius: var(--r); justify-self: start;
}
.form button:hover { background: var(--bleu-fonce); }
.form button[disabled] { opacity: .6; cursor: wait; }
.form__err { color: #b42318; font-weight: 600; }
.hp { position: absolute; left: -5000px; }

/* ---------- Texte long ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.a-remplir { background: #fff1a8; padding: 0 4px; }

/* ---------- Photos ---------- */
.bandeau-photos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding-top: 40px; }
.bandeau-photos a { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--papier); text-decoration: none; }
.bandeau-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bandeau-photos a:hover img { transform: scale(1.04); }
.bandeau-photos span {
  position: absolute; left: 12px; bottom: 12px; background: #fff; color: var(--encre); font-weight: 750;
  padding: 6px 12px; border-radius: var(--r); font-size: .95rem;
}
@media (max-width: 900px) {
  .bandeau-photos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto;
    scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: -16px; padding-right: 16px; }
  .bandeau-photos a { scroll-snap-align: start; }
}
.photo-service { margin: 0 0 32px; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; max-height: 380px; width: 100%; }
.photo-service img { width: 100%; height: 100%; object-fit: cover; }
