/* Dépann'Flash H24 — vernaculaire signalisation routière française */
:root {
  --bleu: #1d4f9c;        /* panneau d'autoroute */
  --bleu-fonce: #153a75;
  --blanc: #ffffff;
  --acier: #e3e6ea;       /* acier galvanisé du plateau */
  --asphalte: #26292e;    /* texte */
  --orange: #f26a1b;      /* grue / gyrophare */
  --orange-fonce: #d4560c;
  --gris: #5b616b;

  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", system-ui, sans-serif;
  --r-sign: 18px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--asphalte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; letter-spacing: .01em;
  text-decoration: none; border-radius: 10px; padding: .8rem 1.4rem;
  transition: background-color .15s ease;
}
.btn--call { background: var(--orange); color: #fff; }
.btn--call:hover { background: var(--orange-fonce); }
.btn--sm { font-size: 1.05rem; padding: .5rem 1rem; }

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--acier);
}
.topbar__in { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand__logo { width: 46px; height: 46px; flex: none; }
.brand__name {
  font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; line-height: 1;
  color: var(--bleu);
}
.brand__name small { display: block; font-weight: 600; font-size: .95rem; color: var(--gris); margin-top: 3px; }
.nav { display: none; gap: 1.6rem; }
.nav a { text-decoration: none; font-weight: 500; color: var(--asphalte); }
.nav a:hover { color: var(--bleu); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* ---------- Hero : le panneau ---------- */
.hero { padding: 1.25rem 0 3rem; background: linear-gradient(var(--blanc) 0 60%, var(--acier) 60% 100%); }
.hero__grid { display: grid; gap: 1.25rem; }
.hero__photo { margin: 0; order: -1; border-radius: var(--r-sign); overflow: hidden; aspect-ratio: 16 / 10; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
@media (min-width: 960px) { .hero__photo img { object-position: 100% 60%; } }

.sign {
  position: relative;
  background: var(--bleu);
  color: var(--blanc);
  border-radius: var(--r-sign);
  padding: 2rem 1.6rem 1.8rem;
}
/* liseré blanc intérieur, comme un vrai panneau */
.sign::before {
  content: ""; position: absolute; inset: 8px;
  border: 3px solid var(--blanc); border-radius: calc(var(--r-sign) - 7px);
  pointer-events: none;
}
.live { display: flex; align-items: center; gap: .55rem; margin: 0 0 1rem; font-weight: 600; font-size: 1rem; }
.beacon { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(242,106,27,.7); animation: beacon 1.6s infinite; }
@keyframes beacon {
  0% { box-shadow: 0 0 0 0 rgba(242,106,27,.75); }
  70% { box-shadow: 0 0 0 12px rgba(242,106,27,0); }
  100% { box-shadow: 0 0 0 0 rgba(242,106,27,0); }
}
.hero h1 {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.1rem, 6.5vw, 3.6rem); line-height: 1.02; letter-spacing: -.005em;
  margin: 0 0 1rem;
}
.hero__lead { margin: 0 0 1.6rem; max-width: 38ch; color: #dce6f5; }
.hero__phone {
  display: block; text-decoration: none;
  background: var(--blanc); color: var(--bleu);
  border-radius: 12px; padding: .8rem 1.1rem .7rem;
  max-width: 26rem;
}
.hero__phone:hover { background: #fff4ec; }
.hero__phone-label { display: block; font-weight: 600; font-size: .95rem; color: var(--orange-fonce); }
.hero__phone-num {
  display: block; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.4rem, 10vw, 3.6rem); line-height: 1; letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.hero__alt { margin: .9rem 0 0; font-size: 1rem; color: #dce6f5; }
.hero__alt a { color: var(--blanc); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section--steel { background: var(--acier); }
.section--blue { background: var(--bleu); color: var(--blanc); }
.h2 {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.05;
  margin: 0 0 2rem; color: var(--bleu); max-width: 22ch;
}
.section--blue .h2 { color: var(--blanc); }

/* Services : liste à filets, pas des cartes */
.services { display: grid; gap: 0; border-top: 3px solid var(--bleu); }
.svc {
  display: grid; grid-template-columns: 48px 1fr; column-gap: 1.1rem;
  padding: 1.4rem 0; border-bottom: 1px solid var(--acier);
}
.svc__ico { width: 44px; height: 44px; color: var(--orange); grid-row: span 2; }
.svc h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; margin: 0 0 .3rem; color: var(--asphalte); }
.svc p { margin: 0; color: var(--gris); max-width: 52ch; }

/* Zone + panneau de direction */
.zone { display: grid; gap: 2.5rem; align-items: center; }
.zone__text p { margin: 0 0 1.6rem; max-width: 50ch; }
.dirsign {
  position: relative; background: var(--bleu); color: var(--blanc);
  border-radius: var(--r-sign); padding: 1.4rem 1.6rem 1.1rem;
  font-family: var(--f-display);
}
.dirsign::before { content: ""; position: absolute; inset: 8px; border: 3px solid var(--blanc); border-radius: calc(var(--r-sign) - 7px); pointer-events: none; }
.dirsign__head { font-weight: 600; font-size: 1.05rem; opacity: .8; margin-bottom: .4rem; }
.dirsign ul { list-style: none; margin: 0; padding: 0; }
.dirsign li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-weight: 700; font-size: 1.45rem; line-height: 1.5;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.dirsign li:last-child { border-bottom: 0; }
.dirsign b { font-weight: 800; font-variant-numeric: tabular-nums; }
.dirsign__foot { font-family: var(--f-body); font-size: .85rem; opacity: .7; text-align: right; margin-top: .4rem; }

/* Galerie */
.gallery { display: grid; gap: .8rem; grid-template-columns: 1fr 1fr; }
.g { margin: 0; border-radius: 12px; overflow: hidden; background: var(--acier); aspect-ratio: 1; }
.g img { width: 100%; height: 100%; object-fit: cover; }
.g--wide { grid-column: span 2; aspect-ratio: 16 / 10; }

/* Contact */
.contact { display: grid; gap: 2rem; }
.contact__intro { margin: 0; max-width: 46ch; color: #dce6f5; }
.contact__list { list-style: none; margin: 0; padding: 0; }
.contact__list li { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.contact__list span { display: block; font-size: .9rem; color: #b9cbe8; }
.contact__list a { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; line-height: 1.2; text-decoration: none; }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Footer */
.footer { background: var(--bleu-fonce); color: #c9d6ec; font-size: .95rem; padding: 1.4rem 0 6rem; }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; }
.footer p { margin: 0; }
.footer a { color: var(--blanc); }
.todo { background: #ffe3cf; color: #7a3200; padding: 0 .35rem; border-radius: 4px; font-weight: 600; }

/* Barre d'appel mobile */
.callbar {
  position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  background: var(--orange); color: #fff; text-decoration: none;
  font-family: var(--f-display); font-weight: 800; font-size: 1.35rem;
  padding: .9rem 1rem; border-radius: 14px;
  box-shadow: 0 8px 24px rgba(21,58,117,.35);
}
.callbar svg { width: 24px; height: 24px; }

/* ---------- Tablette / PC ---------- */
@media (min-width: 760px) {
  .services { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 380px; }
  .g, .g--wide { grid-column: auto; aspect-ratio: auto; }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .topbar__in { height: 76px; }
  .brand__logo { width: 52px; height: 52px; }
  .hero { padding: 2.5rem 0 4.5rem; background: linear-gradient(var(--blanc) 0 70%, var(--acier) 70% 100%); }
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 0; align-items: center; }
  .hero__photo { order: 0; aspect-ratio: auto; height: 100%; min-height: 520px; margin-left: -2.5rem; z-index: 0; }
  .hero__sign { z-index: 1; padding: 3rem 2.8rem 2.6rem; box-shadow: 0 18px 40px rgba(21,58,117,.28); }
  .zone { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .contact { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
  .section { padding: 5.5rem 0; }
  .callbar { display: none; }
  .footer { padding-bottom: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beacon { animation: none; }
}
