/* Wiss Remorquage — feuille de style unique (FR et AR, propriétés logiques pour le RTL).
   Mise en page : bande « asphalte » en tête, puis sections claires séparées par des
   marquages routiers en pointillé ; le numéro de téléphone est traité comme un panneau. */
:root {
  --c-asphalte: #16191D;   /* bande du haut, pied de page */
  --c-accent: #FFB400;     /* jaune signal du panneau */
  --c-sur-accent: #16191D; /* texte posé sur le jaune */
  --c-fond: #F1F3F5;       /* béton clair, légèrement bleuté */
  --c-surface: #FFFFFF;
  --c-texte: #16191D;
  --c-texte-doux: #4D5561;
  --c-bord: #D3D8DE;
  --c-wa: #157F41;         /* vert WhatsApp assombri : texte blanc lisible (5:1) */
  --c-sur-bande: #F4F5F7;
  --c-sur-bande-doux: #B9C0CA;
  --rayon: 12px;
  --f-titre: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-texte: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
  --f-ar: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --largeur: 1120px;
  --barre-h: 68px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-asphalte: #0B0D10; --c-fond: #121519; --c-surface: #1B1F25; --c-texte: #EDEFF2;
    --c-texte-doux: #A8B0BB; --c-bord: #2F363F; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --c-asphalte: #0B0D10; --c-fond: #121519; --c-surface: #1B1F25; --c-texte: #EDEFF2;
  --c-texte-doux: #A8B0BB; --c-bord: #2F363F; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--c-fond); color: var(--c-texte);
  font-family: var(--f-texte); font-size: 1.0625rem; line-height: 1.6;
  padding-bottom: calc(var(--barre-h) + env(safe-area-inset-bottom, 0px));
}
:lang(ar) body, body:lang(ar) { font-family: var(--f-ar); }
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-titre); line-height: 1.05; text-wrap: balance; margin: 0; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { font-family: var(--f-ar); line-height: 1.35; }
h2 { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
:lang(ar) h2 { text-transform: none; font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0; }
.num { font-family: var(--f-titre); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }

.enveloppe {
  max-width: var(--largeur); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(48px, 8vw, 88px); }
.section > .enveloppe { display: grid; gap: 28px; }
.chapeau { color: var(--c-texte-doux); max-width: 62ch; }
/* Marquage routier : séparateur pointillé entre deux sections */
.marquage { height: 6px; background: repeating-linear-gradient(90deg, var(--c-bord) 0 38px, transparent 38px 64px); }

/* ---------- En-tête ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--c-asphalte); }
.entete { background: var(--c-asphalte); color: var(--c-sur-bande); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.entete .enveloppe { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 8px; }
.entete .logo img { display: block; height: 44px; width: auto; }
.entete-droite { display: flex; align-items: center; gap: 14px; }
.lien-langue { font-weight: 600; text-decoration: none; padding: 10px 12px; border: 1px solid #3A414B; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.entete .entete-tel { display: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 22px; border-radius: var(--rayon); border: 0;
  font: inherit; font-weight: 700; font-size: 1.1rem; text-decoration: none; cursor: pointer;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--appel { background: var(--c-accent); color: var(--c-sur-accent); }
.btn--wa { background: var(--c-wa); color: #fff; }
.btn--contour { background: transparent; color: var(--c-sur-bande); border: 2px solid #4A525D; }
.btn:hover { filter: brightness(1.06); }

/* ---------- Hero ---------- */
.hero { background: var(--c-asphalte); color: var(--c-sur-bande); position: relative; overflow: hidden; }
.hero::after { /* ligne médiane de la route */
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 10px;
  background: repeating-linear-gradient(90deg, var(--c-accent) 0 60px, transparent 60px 100px);
}
.hero .enveloppe { display: grid; gap: 32px; padding-block: 40px 64px; align-items: center; }
.hero-texte { display: grid; gap: 18px; min-width: 0; }
.surtitre { font-family: var(--f-titre); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--c-accent); font-size: .95rem; }
:lang(ar) .surtitre { font-family: var(--f-ar); letter-spacing: 0; text-transform: none; font-size: 1rem; }
.hero h1 { font-size: clamp(2.5rem, 9vw, 4.6rem); font-weight: 800; text-transform: uppercase; }
:lang(ar) .hero h1 { text-transform: none; font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--c-accent); }
.hero-sous { color: var(--c-sur-bande-doux); font-size: 1.15rem; max-width: 46ch; }
.panneau-tel {
  display: inline-grid; gap: 2px; justify-self: start; background: var(--c-accent); color: var(--c-sur-accent);
  border-radius: 10px; padding: 10px 20px 8px; box-shadow: inset 0 0 0 4px var(--c-accent), inset 0 0 0 7px var(--c-sur-accent);
  text-decoration: none;
}
.panneau-tel small { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-family: var(--f-titre); }
:lang(ar) .panneau-tel small { font-family: var(--f-ar); letter-spacing: 0; font-size: .9rem; }
.panneau-tel .num { font-size: clamp(2.2rem, 9vw, 3.2rem); font-weight: 800; line-height: 1; }
.hero-actions { display: grid; gap: 12px; }
.hero-visuel { display: none; }

/* ---------- Bande de confiance ---------- */
.confiance { background: var(--c-surface); border-bottom: 1px solid var(--c-bord); }
.confiance ul { list-style: none; margin-block: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; padding-block: 24px; }
.confiance li { display: grid; gap: 2px; min-width: 0; }
.confiance strong { font-family: var(--f-titre); font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
:lang(ar) .confiance strong { font-family: var(--f-ar); font-size: 1.3rem; }
.confiance span { color: var(--c-texte-doux); font-size: .95rem; }

/* ---------- Services ---------- */
.grille-services { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.service { background: var(--c-surface); border: 1px solid var(--c-bord); border-radius: var(--rayon); padding: 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.service svg { width: 44px; height: 44px; color: var(--c-texte); }
.service p { color: var(--c-texte-doux); }

/* ---------- Calculateur ---------- */
.section-calc .calc { max-width: 720px; margin-inline: 0; }
.calc-btn--wa { background: var(--c-wa); }

/* ---------- Étapes ---------- */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: etape; }
.etapes li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start; counter-increment: etape; }
.etapes li::before {
  content: counter(etape); display: grid; place-items: center; width: 56px; height: 56px;
  background: var(--c-accent); color: var(--c-sur-accent); font-family: var(--f-titre); font-weight: 800; font-size: 1.5rem;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.etapes li > div { display: grid; gap: 4px; }
.etapes p { color: var(--c-texte-doux); }

/* ---------- Zones ---------- */
.zones { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); border-top: 1px solid var(--c-bord); }
.zones li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--c-bord); }
.zones li strong { font-weight: 600; }
.zones li span { color: var(--c-texte-doux); font-size: .95rem; }
.zones li.depot strong::after { content: " · dépôt"; color: var(--c-texte-doux); font-weight: 400; }
:lang(ar) .zones li.depot strong::after { content: " · مقرّ الشاحنة"; }

/* ---------- Sécurité ---------- */
.securite { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.securite li { background: var(--c-surface); border-inline-start: 6px solid var(--c-accent); padding: 16px 18px; border-radius: 4px; }
.securite strong { display: block; }
.securite span { color: var(--c-texte-doux); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--c-surface); border: 1px solid var(--c-bord); border-radius: var(--rayon); }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 18px; min-height: 48px; list-style-position: inside; }
.faq details p { padding: 0 18px 18px; color: var(--c-texte-doux); }

/* ---------- Pied de page ---------- */
.pied { background: var(--c-asphalte); color: var(--c-sur-bande-doux); padding-block: 48px; }
.pied .enveloppe { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.pied h3 { color: var(--c-sur-bande); font-size: 1.15rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
:lang(ar) .pied h3 { text-transform: none; letter-spacing: 0; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pied a { color: var(--c-sur-bande); }
.pied .num { color: var(--c-accent); font-size: 1.6rem; font-weight: 800; }
.pied .bas { grid-column: 1 / -1; border-top: 1px solid #2E343C; padding-top: 18px; font-size: .9rem; }

/* ---------- Barre d'appel fixe (mobile) ---------- */
.barre-appel {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40; background: var(--c-asphalte);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
  box-shadow: 0 -4px 16px rgb(0 0 0 / .25);
}
.barre-appel .btn { min-height: 52px; padding: 8px 10px; font-size: 1.05rem; }

/* ---------- Pages simples (légal, 404) ---------- */
.page-simple .enveloppe { max-width: 780px; display: grid; gap: 16px; }
.page-simple h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; text-transform: uppercase; }
.page-simple h2 { font-size: 1.5rem; margin-top: 12px; }

@media (min-width: 600px) {
  .hero-actions { grid-template-columns: repeat(2, max-content); }
  .hero-actions .btn--contour { grid-column: 1 / -1; justify-self: start; }
  .confiance ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .barre-appel { display: none; }
  .entete .entete-tel { display: inline-flex; min-height: 48px; padding: 8px 16px; font-size: 1.05rem; }
  .entete .logo img { height: 52px; }
  .hero .enveloppe { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); padding-block: 64px 88px; }
  .hero-visuel { display: block; justify-self: center; width: min(100%, 360px); }
  .etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .etapes li { grid-template-columns: 1fr; }
}
