/* Phase 24 Électricité : maquette Ti-Tech.
   Base : DESIGN.md « Al Jazeera » (getdesign.md), adaptée au dépannage.
   - orange = identité uniquement (logo, barre d'eyebrow)
   - rouge live = urgence et « maintenant » (appel, disponibilité, bandeaux)
   - noir = actions secondaires (pilules)
   Écart assumé au DESIGN.md : le bouton d'appel est rempli de rouge live, car l'appel EST l'action « en direct ». */

:root {
  --orange: #fa9000;
  --red: #c31833;
  --red-deep: #9e1027;
  --ink: #000;
  --charcoal: #333;
  --slate: #595959;
  --canvas: #fff;
  --soft: #f0f0f0;
  --hairline: #d8d8d8;
  --silver: #bebebe;

  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-xs: 2px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-full: 9999px;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(48px, 7vw, 88px);
  --ease: cubic-bezier(.2, 0, 0, 1);
  --actionbar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.5 var(--font);
  color: var(--charcoal);
  background: var(--canvas);
  padding-bottom: var(--actionbar-h);
}
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
b, strong { color: var(--ink); font-weight: 700; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-lg);
}
.skip:focus { top: 8px; }

/* ---------- Live apparatus ---------- */
.live-dot {
  display: inline-block; width: 9px; height: 9px; flex: none;
  border-radius: 50%; background: currentColor;
  animation: pulse 1.6s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.live-strip {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  background: var(--red); color: #fff;
  font-size: 14px; line-height: 1.3; padding: 8px var(--gutter); text-align: center;
}
.live-strip strong { color: #fff; font-weight: 900; letter-spacing: .04em; }
.live-strip b { color: #fff; }

.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--red); font-size: 14px; font-weight: 900; line-height: 1;
  text-transform: uppercase; letter-spacing: .02em;
}
.live-badge--mini {
  font-size: 12px; padding: 4px 6px; border: 1.5px solid var(--red); border-radius: var(--r-xs);
}
.live-badge--white { color: #fff; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: var(--canvas); border-bottom: 1px solid var(--ink);
}
.masthead__row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__block {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: var(--orange); color: var(--ink);
}
.logo__word { font-size: 22px; font-weight: 900; color: var(--ink); letter-spacing: -.01em; }
.logo__word b { color: var(--orange); }
.masthead__claim { color: var(--slate); font-size: 14px; margin-right: auto; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border: 0; border-radius: var(--r-lg);
  font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.pill:active { transform: scale(.97); }
.pill--red { background: var(--red); color: #fff; }
.pill--red:hover { background: var(--red-deep); }
.pill--dark { background: var(--ink); color: #fff; }
.pill--dark:hover { background: var(--charcoal); }
.pill--white { background: #fff; color: var(--red); }
.pill--white:hover { background: var(--soft); }
.pill--block { width: 100%; min-height: 54px; font-size: 17px; }

/* ---------- Eyebrow lockup (signature) ---------- */
.eyebrow {
  display: flex; align-items: stretch; gap: 12px;
  font-size: clamp(18px, 2.2vw, 24px); font-weight: 300; line-height: 1.2;
  text-transform: uppercase; color: var(--slate);
}
.eyebrow::before { content: ""; width: 8px; flex: none; background: var(--orange); }
.eyebrow--sm { font-size: 15px; gap: 10px; }
.eyebrow--sm::before { width: 6px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 56px) 0 var(--section); border-bottom: 1px solid var(--hairline); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__main { display: flex; flex-direction: column; gap: 20px; }
.hero__title {
  font-size: clamp(38px, 5vw, 62px); font-weight: 900; line-height: 1;
  letter-spacing: -.02em; text-transform: uppercase; color: var(--ink);
  text-wrap: balance;
}
.hero__title span { color: var(--red); }
.hero__title--long { font-size: clamp(32px, 4.8vw, 54px); }
.hero__lead { font-size: clamp(17px, 1.6vw, 19px); max-width: 600px; }

/* CTA : appeler (primaire) / e-mail (secondaire) */
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; max-width: 640px; }
.cta__call {
  flex: 1 1 320px; display: flex; align-items: center; gap: 16px;
  padding: 14px 22px 14px 16px; min-height: 76px;
  background: var(--red); color: #fff; text-decoration: none; border-radius: var(--r-md);
  box-shadow: 0 10px 0 -4px var(--red-deep);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.cta__call:hover { transform: translateY(-2px); box-shadow: 0 12px 0 -4px var(--red-deep); }
.cta__call:active { transform: translateY(2px); box-shadow: 0 6px 0 -4px var(--red-deep); }
.cta__icon {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  border-radius: 50%; background: #fff; color: var(--red);
  animation: ring 3.2s var(--ease) 1.2s infinite;
}
@keyframes ring {
  0%, 82%, 100% { transform: rotate(0); }
  85%, 91% { transform: rotate(-14deg); }
  88%, 94% { transform: rotate(14deg); }
}
.cta__text { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.cta__text small { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .9; }
.cta__text strong { color: #fff; font-size: clamp(26px, 3vw, 32px); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.cta__mail {
  flex: 0 1 230px; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 76px; padding: 0 22px; border: 2px solid var(--ink); border-radius: var(--r-md);
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; text-align: center;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.cta__mail:hover { background: var(--ink); color: #fff; }
.cta__note { flex-basis: 100%; font-size: 14px; color: var(--slate); }
.cta__note a { color: var(--ink); font-weight: 700; }

/* Visuel hero + badge d'astreinte */
.hero__visual { position: relative; margin: 0; }
.hero__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 30%; }
.oncall {
  position: absolute; left: -24px; bottom: 28px; right: 24px;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  background: var(--canvas); border-left: 6px solid var(--red);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
}
.oncall img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.oncall__text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.oncall__text b { font-size: 17px; }
.oncall__live { display: flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; }

.proof { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--slate); padding-top: 6px; }
.proof li { display: flex; align-items: center; gap: 6px; }
.stars { color: var(--orange); letter-spacing: 1px; }

/* Dispatch (timeline live) */
.pannes { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.dispatch { border: 1px solid var(--ink); background: var(--canvas); position: sticky; top: 88px; }
.dispatch__photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.dispatch__body { padding: 20px; }
.dispatch__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.timeline { position: relative; display: flex; flex-direction: column; gap: 16px; }
.timeline::before {
  content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px;
  width: 1px; background: var(--silver);
}
.timeline li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.45; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--red);
}
.timeline time { display: block; font-size: 12px; color: var(--slate); font-variant-numeric: tabular-nums; }
.timeline b { display: block; font-size: 16px; }
.dispatch__foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hairline); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--soft { background: var(--soft); }
.section--rule { border-top: 1px solid var(--hairline); }
.section__head {
  display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.section__aside { font-size: 14px; color: var(--slate); max-width: 380px; }

/* Ranked list (pannes) */
.ranked { border-top: 1px solid var(--ink); }
.ranked li { border-bottom: 1px solid var(--hairline); }
.ranked a {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px;
  padding: 18px 8px; text-decoration: none; color: var(--ink);
  transition: background-color .2s var(--ease);
}
.ranked a:hover { background: var(--soft); }
.ranked a:hover .ranked__n { color: var(--red); }
.ranked__n { font-size: 32px; font-weight: 700; color: var(--slate); line-height: 1; font-variant-numeric: tabular-nums; }
.ranked__t { font-size: clamp(17px, 1.8vw, 20px); font-weight: 700; line-height: 1.3; }
.ranked__p {
  font-size: 13px; font-weight: 900; text-transform: uppercase; white-space: nowrap;
  color: var(--red); border: 1.5px solid currentColor; border-radius: var(--r-xs); padding: 5px 8px;
}
.safety {
  margin-top: 24px; padding: 14px 16px; font-size: 15px;
  border-left: 8px solid var(--orange); background: var(--soft);
}

/* Breaking band */
.breaking { background: var(--red); color: #fff; }
.breaking__row { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-block: 22px; }
.breaking p { flex: 1 1 420px; font-size: clamp(16px, 1.8vw, 19px); }
.breaking strong { color: #fff; font-weight: 900; text-transform: uppercase; }

/* Prices */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.price { border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.price h3 { font-size: 16px; font-weight: 700; color: var(--ink); }
.price__amount { font-size: 40px; font-weight: 900; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.price__amount small { font-size: 14px; font-weight: 400; color: var(--slate); }
.price p:last-child { font-size: 14px; color: var(--slate); }
.price--featured { background: var(--ink); border-color: var(--ink); color: #ddd; }
.price--featured h3, .price--featured .price__amount { color: #fff; }
.price--featured p:last-child { color: #ddd; }
.surcharge { width: 100%; max-width: 560px; margin-top: 28px; border-collapse: collapse; font-size: 15px; }
.surcharge caption { text-align: left; font-size: 12px; font-weight: 900; text-transform: uppercase; color: var(--slate); padding-bottom: 8px; }
.surcharge th, .surcharge td { padding: 10px 0; border-bottom: 1px solid var(--hairline); text-align: left; font-weight: 400; }
.surcharge td { text-align: right; font-weight: 700; color: var(--ink); }

/* Projects + form */
.projects { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: clamp(28px, 5vw, 64px); align-items: start; }
.projects__intro { display: flex; flex-direction: column; gap: 18px; }
.projects__title { font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; line-height: 1.15; color: var(--ink); }
.projects__list li { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--silver); font-size: 15px; }
.projects__list img { width: 112px; height: 84px; object-fit: cover; border-radius: var(--r-md); }
.projects__mail { font-size: 15px; padding: 14px 16px; background: var(--canvas); border-left: 8px solid var(--orange); }
.projects__mail a { color: var(--ink); font-weight: 700; }
.projects__list b { display: block; font-size: 18px; }

.callback {
  position: relative; background: var(--canvas); padding: clamp(20px, 3vw, 28px);
  border-top: 6px solid var(--ink); display: flex; flex-direction: column; gap: 16px;
}
.callback__title { font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.callback__sub { font-size: 14px; color: var(--slate); margin-top: -10px; }
.callback__legal { font-size: 12px; color: var(--slate); text-align: center; }

.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 14px; font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 9px 14px; font-size: 14px; line-height: 1;
  border: 1px solid var(--slate); border-radius: var(--r-full); color: var(--ink);
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field input, .field select {
  font: 400 17px/1.2 var(--font); color: var(--ink);
  min-height: 50px; padding: 0 16px; background: var(--canvas);
  border: 1px solid var(--slate); border-radius: var(--r-xl);
}
.field textarea {
  font: 400 16px/1.45 var(--font); color: var(--ink); resize: vertical; min-height: 104px;
  padding: 12px 16px; background: var(--canvas); border: 1px solid var(--slate); border-radius: var(--r-md);
}
.field label small { font-weight: 400; color: var(--slate); }
.field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--orange); }
.callback__legal a { color: var(--ink); font-weight: 700; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--orange); }
.field input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.field__error { font-size: 13px; color: var(--red); font-weight: 700; }

.callback__done {
  position: absolute; inset: 0; background: var(--canvas); padding: 28px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  border-top: 6px solid var(--red);
}
.callback__done[hidden] { display: none; }
.callback__done a { font-weight: 700; color: var(--red); }

/* Rules */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); }
.rules li {
  padding: 22px 24px 22px 0; border-bottom: 1px solid var(--hairline); font-size: 15px;
}
.rules li:nth-child(odd) { border-right: 1px solid var(--hairline); }
.rules li:nth-child(even) { padding-left: 24px; }
.rules b { display: block; font-size: 20px; margin-bottom: 4px; }
.rules b::before { content: "✕ "; color: var(--red); }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.review { display: flex; flex-direction: column; gap: 16px; }
.review blockquote { font-size: 17px; line-height: 1.5; color: var(--ink); }
.review figcaption { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--slate); }
.avatar {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 700;
}

/* Zone */
.zone { display: grid; grid-template-columns: 300px 1fr; gap: 16px 48px; }
.zone__lead { font-size: 20px; font-weight: 700; color: var(--ink); grid-column: 2; }
.zone__list { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.zone__list li { font-size: 14px; padding: 6px 12px; background: var(--soft); border-radius: var(--r-full); }

/* FAQ */
.faq { display: grid; grid-template-columns: 300px 1fr; gap: 16px 48px; }
.faq__list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px;
  padding: 18px 0; font-size: 18px; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--red); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; max-width: 680px; }

/* Final CTA */
.final { background: var(--ink); color: #ddd; padding: var(--section) 0; }
.final__row { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; }
.final__row > div { display: flex; flex-direction: column; gap: 12px; }
.final .live-badge { color: #ff4d5e; }
.final__title { font-size: clamp(34px, 5vw, 56px); font-weight: 900; text-transform: uppercase; color: #fff; line-height: 1; }
.final__call {
  display: inline-flex; align-items: center; min-height: 72px; padding: 0 32px;
  background: var(--red); color: #fff; text-decoration: none; border-radius: var(--r-md);
  font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; font-variant-numeric: tabular-nums;
  box-shadow: 0 10px 0 -4px var(--red-deep);
  transition: transform .2s var(--ease);
}
.final__call:hover { transform: translateY(-3px); }
.final__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.final__mail { color: #fff; font-weight: 700; text-underline-offset: 4px; }

/* Footer */
.footer { padding: 28px 0; font-size: 13px; color: var(--slate); border-top: 1px solid var(--hairline); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer__demo { flex-basis: 100%; }

/* Mobile action bar */
.actionbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__photo { aspect-ratio: 16 / 7; }
  .oncall { left: 12px; right: auto; bottom: 12px; }
  .pannes { grid-template-columns: 1fr; }
  .dispatch { position: static; max-width: 560px; }
  .prices { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; gap: 24px; }
  .zone, .faq { grid-template-columns: 1fr; }
  .zone__lead, .zone__list { grid-column: auto; }
}

@media (max-width: 760px) {
  :root { --actionbar-h: 64px; }
  .masthead__claim, .hide-sm { display: none; }
  .live-strip { font-size: 13px; gap: 8px; }
  .masthead__call { margin-left: auto; padding: 10px 14px; }
  .masthead__call span { font-size: 15px; }
  .rules { grid-template-columns: 1fr; }
  .rules li, .rules li:nth-child(even) { padding: 18px 0; border-right: 0; }
  .ranked a { grid-template-columns: 40px 1fr; padding: 16px 4px; }
  .ranked__n { font-size: 22px; }
  .ranked__p { grid-column: 2; justify-self: start; }
  .final__call { width: 100%; justify-content: center; }
  .final__actions { align-items: stretch; width: 100%; text-align: center; }
  .hero { padding-top: 0; }
  .hero__grid { gap: 18px; }
  .hero__visual { margin: 0 calc(var(--gutter) * -1); }
  .hero__photo { aspect-ratio: 16 / 8; max-height: 210px; object-position: 50% 42%; }
  .hero__main > .live-badge { display: none; }
  .oncall { left: var(--gutter); bottom: 10px; padding: 8px 12px 8px 8px; gap: 10px; border-left-width: 4px; }
  .oncall img { width: 40px; height: 40px; }
  .oncall__text { font-size: 13px; }
  .oncall__text b { font-size: 15px; }
  .hero__main { gap: 14px; }
  .hero__title { font-size: clamp(32px, 9.4vw, 44px); }
  .cta__call, .cta__mail { flex-basis: 100%; }
  .cta__call { min-height: 70px; }
  .cta__mail { min-height: 54px; }
  .hero__lead { font-size: 16px; }
  .projects__list li { grid-template-columns: 84px 1fr; }
  .projects__list img { width: 84px; height: 64px; }

  .actionbar {
    display: grid; grid-template-columns: 1.4fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    height: calc(var(--actionbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--ink);
    transform: translateY(110%); transition: transform .3s var(--ease);
  }
  .actionbar.is-visible { transform: none; }
  .actionbar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    text-decoration: none; font-weight: 900; font-size: 15px; text-transform: uppercase;
  }
  .actionbar__call { background: var(--red); color: #fff; }
  .actionbar__project { background: var(--ink); color: #fff; }
}

@media (max-width: 420px) {
  .logo__word { font-size: 19px; }
  .logo__block { width: 34px; height: 34px; }
  .masthead__call svg { display: none; }
  .prices { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
