/* =========================================================================
   Biskra EcoVolt – feuille de style principale (mobile-first)
   Couleurs : bleu marine #0B1F3A · jaune #FFC400 · vert #2E9E5B · gris #EEF1F5
   Polices  : Barlow Condensed (titres) · Barlow (texte) – Google Fonts
   ========================================================================= */

/* ---------- 0. Polices de repli ajustées ----------
   Google Fonts se charge sans bloquer l'affichage. En attendant, le texte
   s'affiche avec Arial (ou Roboto sur Android) mis à la même largeur que
   Barlow (size-adjust) : la page ne « saute » pas au changement de police. */
@font-face { font-family: "Barlow Condensed Repli"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); font-weight: 600 700; size-adjust: 76.6%; font-display: swap; }
@font-face { font-family: "Barlow Condensed Repli A"; src: local("Roboto Bold"), local("Roboto-Bold"); font-weight: 600 700; size-adjust: 81.4%; font-display: swap; }
@font-face { font-family: "Barlow Repli"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"); font-weight: 400; size-adjust: 97.3%; font-display: swap; }
@font-face { font-family: "Barlow Repli"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); font-weight: 600 700; size-adjust: 91.9%; font-display: swap; }
@font-face { font-family: "Barlow Repli A"; src: local("Roboto"), local("Roboto-Regular"); font-weight: 400; size-adjust: 98.3%; font-display: swap; }
@font-face { font-family: "Barlow Repli A"; src: local("Roboto Medium"), local("Roboto-Medium"); font-weight: 600 700; size-adjust: 98.7%; font-display: swap; }

/* ---------- 1. Variables ---------- */
:root {
  --navy: #0B1F3A;
  --navy-700: #12294B;
  --navy-900: #071528;
  --yellow: #FFC400;
  --yellow-600: #E6B000;
  --yellow-50: #FFF7DB;
  --green: #2E9E5B;
  --green-700: #1F7A45;
  --green-50: #E8F6EE;
  --white: #FFFFFF;
  --gray-50: #F7F8FA;
  --gray-100: #EEF1F5;
  --gray-200: #DCE2EA;
  --gray-500: #7D8A9C;
  --text: #1B2A41;
  --muted: #4B5B70;
  --danger: #B42318;
  --danger-50: #FDECEA;

  --font-brand: "Barlow Condensed", "Barlow Condensed Repli", "Barlow Condensed Repli A", "Arial Narrow", sans-serif;
  --font-title: var(--font-brand);
  --font-body: "Barlow", "Barlow Repli", "Barlow Repli A", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px rgba(11, 31, 58, .12);
  --shadow-sm: 0 2px 10px rgba(11, 31, 58, .08);
  --container: 1160px;
  --gutter: 16px;
  --header-h: 64px;
  --callbar-h: 68px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  padding-bottom: var(--callbar-h);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
img { border: 0; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: .2px;
}
h1 { font-size: clamp(2.1rem, 5.5vw + .6rem, 3.6rem); }
h2 { font-size: clamp(1.7rem, 2.6vw + 1rem, 2.5rem); }
h3 { font-size: 1.35rem; }

p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.25em; }
li + li { margin-top: .3em; }
strong { font-weight: 600; }

a { color: var(--navy); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--green-700); }

address { font-style: normal; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--yellow); }

::selection { background: var(--yellow); color: var(--navy); }

/* ---------- 3. Utilitaires ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp-field { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.text-center { text-align: center; }
.justify-center { justify-content: center; }
.mt-lg { margin-top: 2rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--navy); font-weight: 600;
  padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.icon-lg { width: 28px; height: 28px; }
[dir="rtl"] .icon-flip { transform: scaleX(-1); }

/* ---------- 4. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: .7em 1.3em;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.btn-primary:hover { background: var(--yellow-600); border-color: var(--yellow-600); color: var(--navy); }
.btn-dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-700); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-light:hover { background: var(--gray-100); color: var(--navy); }
.btn-whatsapp { background: var(--green-700); color: var(--white); border-color: var(--green-700); }
.btn-whatsapp:hover { background: #18663a; color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }
.btn-sm { min-height: 42px; padding: .45em .95em; font-size: .98rem; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 5. En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: var(--white);
  border-bottom: 3px solid var(--yellow);
}
.header-inner { display: flex; align-items: center; gap: 10px; min-height: var(--header-h); position: relative; }

.brand { display: flex; align-items: center; gap: 10px; margin-inline-end: auto; color: var(--white); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--white); }
.brand-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--white); }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-name {
  font-family: var(--font-brand); font-weight: 700;
  font-size: 1.32rem; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap;
}
.brand-accent { color: var(--yellow); }
.brand-tag { display: none; margin-top: 4px; font-size: .78rem; color: rgba(255, 255, 255, .8); white-space: nowrap; }

.header-cta { min-height: 42px; padding: .4em .85em; font-size: .95rem; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--white); cursor: pointer;
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.main-nav {
  display: none;
  position: absolute; top: calc(100% + 3px); inset-inline: calc(var(--gutter) * -1);
  background: var(--navy); border-bottom: 3px solid var(--yellow);
  box-shadow: 0 18px 30px rgba(0, 0, 0, .25);
  padding: 8px var(--gutter) 16px;
}
.main-nav.is-open { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li + li { margin-top: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.main-nav a {
  display: flex; align-items: center; min-height: 50px;
  color: var(--white); text-decoration: none; font-weight: 600; font-size: 1.05rem;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--yellow); }
.main-nav .nav-lang a { font-family: system-ui, "Segoe UI", Tahoma, sans-serif; }

/* ---------- 6. Sections ---------- */
.section { padding-block: 56px; }
.section--gray { background: var(--gray-100); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head.text-center { margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section--navy .section-head p { color: rgba(255, 255, 255, .85); }

.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-family: var(--font-title); font-weight: 600; font-size: 1rem;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--green-700);
}
.kicker::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--yellow); }
.on-dark .kicker, .section--navy .kicker { color: var(--yellow); }

.card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
}

.grid { display: grid; gap: 18px; }

/* ---------- 7. Bannière d'accueil ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 196, 0, .16), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64v33' fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='2'/%3E%3C/svg%3E"),
    var(--navy);
  color: var(--white);
  padding-block: 32px 48px;
}
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero h1 .accent { color: var(--yellow); display: block; }
.hero-lead { font-size: 1.12rem; color: rgba(255, 255, 255, .88); max-width: 620px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--yellow); color: var(--navy);
  font-family: var(--font-title); font-weight: 700; font-size: 1rem; letter-spacing: 1px; text-transform: uppercase;
}
.badge .icon { width: 18px; height: 18px; }

.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; max-width: 560px; }
.hero-actions .btn-primary { grid-column: 1 / -1; font-size: 1.12rem; min-height: 56px; }

.hero-phone { margin: 14px 0 0; color: rgba(255, 255, 255, .85); font-size: .98rem; }
.hero-phone a { color: var(--white); font-weight: 600; }

.trust { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.trust li { display: flex; align-items: center; gap: 10px; margin: 0; color: rgba(255, 255, 255, .9); }
.trust .icon { color: var(--yellow); width: 20px; height: 20px; }

.hero-logo { order: -1; justify-self: center; position: relative; }
.logo-card {
  display: block; background: var(--white); border-radius: 22px; padding: 14px 18px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .35);
}
.logo-card img { width: 140px; height: auto; }
.hero-logo::after {
  content: ""; position: absolute; inset-inline-end: -10px; bottom: -10px; width: 64px; height: 64px;
  border-inline-end: 6px solid var(--yellow); border-bottom: 6px solid var(--yellow); border-end-end-radius: 26px;
}

/* ---------- 8. Bandeau des pages intérieures ---------- */
.page-hero {
  background:
    radial-gradient(700px 360px at 90% -20%, rgba(255, 196, 0, .14), transparent 60%),
    var(--navy);
  color: var(--white);
  padding-block: 22px 40px;
}
.page-hero h1 { color: var(--white); margin-top: 10px; }
.page-hero .lead { font-size: 1.12rem; color: rgba(255, 255, 255, .88); max-width: 760px; }
.page-hero .btn-row { margin-top: 20px; }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; font-size: .92rem; }
.breadcrumb li { margin: 0; color: rgba(255, 255, 255, .8); }
.breadcrumb li + li::before { content: "›"; margin-inline-end: 8px; color: var(--yellow); }
.breadcrumb a { color: var(--white); }

/* ---------- 9. Services ---------- */
.services-grid { display: grid; gap: 18px; }
.service-card { display: flex; flex-direction: column; border-top: 5px solid var(--yellow); }
.service-card .service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 14px; background: var(--navy); color: var(--yellow); margin-bottom: 14px;
}
.service-card ul { list-style: none; padding: 0; margin: 0 0 18px; }
.service-card li { display: flex; gap: 10px; align-items: flex-start; }
.service-card li .icon { color: var(--green); margin-top: .25em; width: 18px; height: 18px; }
.service-card .card-link { margin-top: auto; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 10. Prix « à partir de » ---------- */
.prices { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.prices li { margin: 0; }
.price-card {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 14px 16px; text-decoration: none; color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
a.price-card:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); color: var(--text); }
.price-cat { font-size: .78rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--green-700); }
.price-name { font-weight: 600; line-height: 1.35; }
.price-value { margin-top: auto; padding-top: 6px; font-size: .95rem; color: var(--muted); }
.price-from { display: block; font-size: .85rem; }
.price-unit { white-space: nowrap; }
.price-value strong {
  display: inline-block; padding: 1px 8px; border-radius: 6px; white-space: nowrap;
  background: var(--yellow); color: var(--navy); font-family: var(--font-title); font-size: 1.25rem; font-weight: 700;
}
.price-add { font-size: .88rem; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.price-note { margin-top: 18px; font-size: .95rem; color: var(--muted); }

/* ---------- 11. Pourquoi nous choisir ---------- */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.features li { margin: 0; }
.feature { display: flex; gap: 16px; align-items: flex-start; height: 100%; }
.feature-icon {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%; background: var(--yellow); color: var(--navy);
}
.feature h3 { margin-bottom: .25em; font-size: 1.3rem; }
.feature p { margin: 0; color: var(--muted); }

/* ---------- 12. Zone d'intervention ---------- */
.zone-grid { display: grid; gap: 24px; align-items: start; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  margin: 0; padding: 6px 14px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--gray-200); font-weight: 600; font-size: .95rem;
}
.chips li.chip-main { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- 13. Avis ---------- */
.reviews-grid { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.review-card blockquote { margin: 0 0 10px; font-size: 1.05rem; }
.review-author { margin: 0; font-weight: 600; color: var(--muted); }

/* ---------- 14. FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--gray-200); }
.faq details:first-of-type { border-top: 1px solid var(--gray-200); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.25rem; }
.faq summary::after {
  content: "+"; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--gray-100); color: var(--navy);
  font-size: 1.4rem; font-weight: 600; line-height: 1;
}
.faq details[open] summary::after { content: "−"; background: var(--yellow); }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- 15. Appel à l'action ---------- */
.cta-band {
  background:
    radial-gradient(600px 300px at 10% 120%, rgba(46, 158, 91, .25), transparent 60%),
    radial-gradient(600px 300px at 95% -20%, rgba(255, 196, 0, .18), transparent 60%),
    var(--navy);
  color: var(--white); text-align: center; padding-block: 52px;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, .88); max-width: 640px; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 22px; }

/* ---------- 16. Contenu rédactionnel (pages de service) ---------- */
.content-grid { display: grid; gap: 32px; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; font-size: 1.3rem; }
.prose ul:not([class]) { list-style: none; padding-inline-start: 0; }
.prose ul:not([class]) li { position: relative; padding-inline-start: 26px; }
.prose ul:not([class]) li::before {
  content: ""; position: absolute; inset-inline-start: 4px; top: .62em;
  width: 9px; height: 9px; border-radius: 2px; background: var(--yellow); transform: rotate(45deg);
}
.prose ol { padding-inline-start: 1.4em; }
.prose ol li::marker { font-weight: 700; color: var(--green-700); }
.prose .note {
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--yellow-50); border-inline-start: 4px solid var(--yellow); color: var(--navy);
}

.aside-card { position: relative; border-top: 5px solid var(--yellow); }
.aside-card h2 { font-size: 1.6rem; }
.aside-card .btn { width: 100%; margin-top: 10px; }
.aside-list { list-style: none; padding: 0; margin: 0 0 12px; }
.aside-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; margin: 0; border-bottom: 1px dashed var(--gray-200); font-size: .97rem; }
.aside-list li span:last-child { font-weight: 600; white-space: nowrap; color: var(--navy); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-inline-start: 52px; margin: 0; min-height: 40px; }
.steps li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--yellow);
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-title); font-weight: 700; font-size: 1.2rem;
}
.steps strong { display: block; color: var(--navy); }

.links-inline { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.links-inline li { margin: 0; }
.links-inline a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px;
  border: 1.5px solid var(--gray-200); border-radius: 999px; background: var(--white); text-decoration: none; font-weight: 600;
}
.links-inline a:hover { border-color: var(--navy); }

/* ---------- 17. Contact ---------- */
.contact-grid { display: grid; gap: 24px; }
.contact-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-cards li { margin: 0; }
.contact-card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.contact-card:hover { color: var(--text); border-color: var(--navy); }
.contact-card .feature-icon { width: 48px; height: 48px; }
.contact-card strong { display: block; color: var(--navy); font-size: 1.08rem; }
.contact-card span { color: var(--muted); font-size: .95rem; }
.contact-card .ci-wa { background: var(--green); color: var(--white); }
.contact-card .ci-fb { background: var(--navy); color: var(--white); }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: start; padding: 8px 0; border-bottom: 1px solid var(--gray-200); }

/* ---------- 18. Formulaires ---------- */
.form-grid { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; color: var(--navy); }
.field .req { color: var(--danger); }
.field .hint { font-size: .9rem; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; min-height: 50px; padding: 11px 14px;
  border: 1.5px solid var(--gray-500); border-radius: var(--radius-sm);
  background: var(--white); color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
select {
  appearance: none; -webkit-appearance: none; padding-inline-end: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230B1F3A' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
[dir="rtl"] select { background-position: left 16px center; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(255, 196, 0, .55); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
select:disabled { background-color: var(--gray-100); color: var(--muted); cursor: not-allowed; }
.field-error { margin: 0; color: var(--danger); font-size: .92rem; font-weight: 600; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .97rem; }
.check input { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--navy); }

.alert { padding: 14px 16px; border-radius: var(--radius-sm); border-inline-start: 5px solid; margin: 0; }
.alert p { margin: 0; }
.alert p + p { margin-top: 6px; }
.alert-error { background: var(--danger-50); border-color: var(--danger); color: #7A1A12; }
.alert-success { background: var(--green-50); border-color: var(--green); color: #14532D; }
.alert a { font-weight: 600; color: inherit; }
.form-status:target { display: block !important; }

.notice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--yellow-50); border-inline-start: 4px solid var(--yellow);
  color: var(--navy); font-size: .95rem; font-weight: 600;
}
.notice .icon { margin-top: 2px; }

/* ---------- 19. Calculateur de devis ---------- */
.devis-steps { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.devis-steps li { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; color: var(--navy); }
.devis-steps .num {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-family: var(--font-title); font-weight: 700;
}

.devis-layout { display: grid; gap: 22px; align-items: start; }
.devis-main { display: grid; gap: 22px; min-width: 0; }
.devis-block { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 18px; background: var(--white); margin: 0; min-width: 0; }
.devis-block legend { padding: 0 6px; }
.devis-block legend h2 { margin: 0; font-size: 1.6rem; }

.lignes { display: grid; gap: 14px; margin: 14px 0; }
.ligne {
  border: 1px solid var(--gray-200); border-inline-start: 5px solid var(--yellow);
  border-radius: var(--radius-sm); padding: 14px; background: var(--gray-50);
}
.ligne-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ligne-num { font-family: var(--font-title); font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.ligne-suppr {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border: 1.5px solid var(--gray-200); border-radius: 8px; background: var(--white); color: var(--danger);
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
}
.ligne-suppr:hover { border-color: var(--danger); }
.ligne-fields { display: grid; gap: 12px; }
.ligne-fields > div { display: grid; gap: 4px; min-width: 0; }
.ligne-fields label { font-weight: 600; font-size: .95rem; color: var(--navy); }
.qty { display: flex; align-items: stretch; max-width: 210px; }
.qty button {
  width: 50px; flex-shrink: 0; border: 1.5px solid var(--gray-500); background: var(--white); color: var(--navy);
  font-size: 1.4rem; font-weight: 600; cursor: pointer;
}
.qty button:first-child { border-start-start-radius: var(--radius-sm); border-end-start-radius: var(--radius-sm); border-inline-end: 0; }
.qty button:last-child { border-start-end-radius: var(--radius-sm); border-end-end-radius: var(--radius-sm); border-inline-start: 0; }
.qty button:disabled { color: var(--gray-500); cursor: not-allowed; }
.qty input { border-radius: 0; text-align: center; min-width: 0; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:disabled { background: var(--gray-100); }

.ligne-calc { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: .95rem; color: var(--muted); }
.ligne-calc b { color: var(--navy); font-weight: 600; }
.ligne-total b { font-family: var(--font-title); font-size: 1.2rem; }
.ligne-cond { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.tag {
  display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: .82rem; font-weight: 600;
  background: var(--gray-100); color: var(--navy); vertical-align: middle;
}
.tag-visite { background: var(--navy); color: var(--white); }
.tag-fourni { background: var(--green-50); color: #14532D; }

.recap { position: relative; }
.recap h2 { font-size: 1.6rem; }
.recap-list { list-style: none; padding: 0; margin: 0 0 14px; }
.recap-list li { padding: 10px 0; margin: 0; border-bottom: 1px dashed var(--gray-200); font-size: .95rem; }
.recap-list .r-name { font-weight: 600; color: var(--navy); display: block; }
.recap-list .r-calc { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.recap-list .r-calc b { color: var(--navy); white-space: nowrap; }
.recap-list .r-actions { display: flex; gap: 14px; margin-top: 4px; }
.recap-list .r-actions button {
  padding: 4px 0; border: 0; background: none; color: var(--navy); font: inherit; font-size: .88rem; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px;
}
.recap-list .r-actions .r-del { color: var(--danger); }
.recap-empty { color: var(--muted); font-size: .95rem; }
.recap-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 14px; margin: 0 0 12px; border-radius: var(--radius-sm); background: var(--navy); color: var(--white);
}
.recap-total span { font-size: .95rem; }
.recap-total strong { font-family: var(--font-title); font-size: 2rem; line-height: 1; color: var(--yellow); white-space: nowrap; }
.recap-visite { font-size: .92rem; color: var(--navy); font-weight: 600; }
.recap .notice { margin-bottom: 14px; }
.recap .btn-primary { min-height: 56px; font-size: 1.1rem; }
.recap .free { margin: 10px 0 0; text-align: center; font-size: .92rem; color: var(--green-700); font-weight: 600; }
.sous-total {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px;
  margin: 16px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--navy); color: var(--white);
}
.sous-total strong { font-family: var(--font-title); font-size: 1.5rem; color: var(--yellow); white-space: nowrap; }

.loading-dots::after { content: "…"; }

/* ---------- 20. Confirmation et document de devis ---------- */
.confirmation-head { max-width: 860px; margin: 0 auto 22px; }
.confirmation-head h2 { display: flex; align-items: center; gap: 12px; }
.confirmation-head h2 .feature-icon { background: var(--green); color: var(--white); }

.devis-doc {
  max-width: 860px; margin-inline: auto; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; color: var(--text);
}
.doc-header { display: grid; gap: 16px; align-items: start; padding-bottom: 16px; border-bottom: 4px solid var(--yellow); }
.doc-header img { width: 90px; height: 100px; }
.doc-company { font-size: .92rem; line-height: 1.5; }
.doc-company strong { font-family: var(--font-title); font-size: 1.3rem; color: var(--navy); }
.doc-meta { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--navy); color: var(--white); font-size: .92rem; }
.doc-meta .doc-title { margin: 0 0 4px; font-family: var(--font-title); font-size: 1.4rem; text-transform: uppercase; letter-spacing: 1px; color: var(--yellow); }
.doc-meta dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; }
.doc-meta dt { color: rgba(255, 255, 255, .8); }
.doc-meta dd { margin: 0; font-weight: 600; }
[data-doc="numero"] { white-space: nowrap; }
.doc-client { margin: 16px 0; }
.doc-client h3, .doc-section-title { font-size: 1.15rem; margin-bottom: 6px; }
.doc-client dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; font-size: .95rem; }
.doc-client dt { color: var(--muted); }
.doc-client dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.doc-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .93rem; }
.doc-table th, .doc-table td { padding: 9px 8px; border-bottom: 1px solid var(--gray-200); text-align: start; vertical-align: top; }
.doc-table thead th { background: var(--gray-100); color: var(--navy); font-weight: 600; }
.doc-table .num { text-align: end; white-space: nowrap; }
.doc-table .cond { display: block; font-size: .85rem; color: var(--muted); }
.doc-table tfoot th, .doc-table tfoot td { border-bottom: 0; padding-top: 12px; font-size: 1.05rem; }
.doc-table tfoot td { font-family: var(--font-title); font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.doc-notes { margin-top: 12px; display: grid; gap: 10px; font-size: .92rem; }
.doc-notes p { margin: 0; }
.doc-message { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--gray-100); white-space: pre-line; overflow-wrap: anywhere; }
.doc-footer { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--gray-200); font-size: .88rem; color: var(--muted); }

/* ---------- 21. Pied de page ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .86); padding-top: 44px; font-size: .97rem; }
.footer-grid { display: grid; gap: 28px; padding-bottom: 32px; }
.site-footer h2 { color: var(--white); font-size: 1.25rem; margin-bottom: 12px; letter-spacing: 1px; text-transform: uppercase; }
.site-footer a:not(.btn) { color: var(--white); }
.site-footer a:not(.btn):hover { color: var(--yellow); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.footer-logo { display: inline-block; background: var(--white); border-radius: 14px; padding: 8px 12px; margin-bottom: 14px; }
.footer-logo img { width: 86px; height: auto; }
.nap { line-height: 1.7; }
.nap strong { color: var(--white); font-size: 1.05rem; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: var(--white);
}
.social a:hover { background: var(--yellow); color: var(--navy); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 16px; font-size: .88rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255, 255, 255, .86); }

/* ---------- 22. Boutons fixes : WhatsApp + barre d'appel mobile ---------- */
.wa-float {
  position: fixed; z-index: 60; inset-inline-end: 16px;
  bottom: calc(var(--callbar-h) + 14px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green); color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
  transition: transform .15s ease;
}
.wa-float:hover { color: var(--white); transform: scale(1.06); }
.wa-float .icon { width: 32px; height: 32px; }
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: scale(.6); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.wa-float:not(.is-hidden) { transition: opacity .2s ease, transform .2s ease; }

.callbar {
  position: fixed; z-index: 55; inset-inline: 0; bottom: 0;
  display: flex; gap: 10px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--navy); border-top: 3px solid var(--yellow);
}
.callbar .btn { flex: 1; gap: .45em; min-height: 50px; padding: .5em .6em; font-size: 1rem; white-space: nowrap; }
.callbar-num { display: none; }

/* ---------- 23. Page 404 ---------- */
.error-code { font-family: var(--font-title); font-weight: 700; font-size: clamp(5rem, 20vw, 9rem); line-height: 1; color: var(--yellow); margin: 0; }

/* ---------- 24. Version arabe ---------- */
/* Police arabe du système (Segoe UI, Noto, SF Arabic…) : rien à télécharger, aucun décalage */
html[lang="ar"] {
  --font-body: system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Naskh Arabic", Arial, sans-serif;
  --font-title: var(--font-body);
}
html[lang="ar"] body { line-height: 1.8; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
html[lang="ar"] .kicker, html[lang="ar"] .badge, html[lang="ar"] .price-cat { letter-spacing: 0; text-transform: none; }

/* ---------- 25. Points de rupture ---------- */
@media (max-width: 479px) {
  .header-cta { display: none; }
}

@media (max-width: 599px) {
  /* Tableau du devis : lignes empilées sur petit écran */
  .doc-table { min-width: 0; }
  .doc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .doc-table tbody tr {
    display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; column-gap: 6px; align-items: baseline;
    padding: 10px 0; border-bottom: 1px solid var(--gray-200);
  }
  .doc-table tbody td { padding: 0; border: 0; background: none; }
  .doc-table tbody td:first-child { grid-column: 1 / -1; margin-bottom: 4px; }
  .doc-table tbody td:nth-child(2), .doc-table tbody td:nth-child(3), .doc-table tbody td:nth-child(4) { color: var(--muted); font-size: .9rem; text-align: start; }
  .doc-table tbody td:nth-child(4) { white-space: normal; }
  .doc-table tbody tr[data-mode="prix"] td:nth-child(4)::before { content: "× "; }
  .doc-table tbody td:nth-child(5) { font-weight: 600; color: var(--navy); }
  .doc-table tfoot tr { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .doc-table tfoot th, .doc-table tfoot td { padding: 12px 0 0; }
  .doc-table tfoot td { font-size: 1.4rem; }
}

@media (min-width: 420px) {
  .brand-tag { display: block; }
}

@media (min-width: 480px) {
  .callbar-devis { display: none !important; }
  .callbar-num { display: inline; }
}

@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .trust { display: flex; flex-wrap: wrap; gap: 10px 26px; }
  .trust li { white-space: nowrap; }
  .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ligne-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .ligne-fields .f-qty { grid-column: 1 / -1; }
  .form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid.two .full { grid-column: 1 / -1; }
  .doc-header { grid-template-columns: auto 1fr; }
  .doc-header .doc-meta { grid-column: 1 / -1; }
  .devis-doc { padding: 28px; }
  .devis-steps { grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px 24px; }
}

@media (min-width: 760px) {
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .zone-grid { grid-template-columns: 1.2fr 1fr; }
  .hero-actions { display: flex; flex-wrap: wrap; max-width: none; }
  .hero-actions .btn { min-width: 160px; }
  .doc-header { grid-template-columns: auto 1fr auto; }
  .doc-header .doc-meta { grid-column: auto; min-width: 250px; }
}

@media (min-width: 960px) {
  :root { --header-h: 76px; --callbar-h: 0px; }
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .wa-float { bottom: 24px; inset-inline-end: 24px; }
  .brand-icon { width: 50px; height: 50px; }
  .brand-name { font-size: 1.5rem; }
  .header-cta { min-height: 46px; padding: .5em 1.1em; font-size: 1rem; }

  .section { padding-block: 80px; }
  .hero { padding-block: 64px 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; }
  .hero-logo { order: 0; justify-self: end; }
  .logo-card { padding: 22px 28px; border-radius: 28px; }
  .logo-card img { width: 270px; }
  .hero-logo::after { width: 110px; height: 110px; inset-inline-end: -16px; bottom: -16px; border-width: 8px; }

  .page-hero { padding-block: 28px 56px; }
  .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
  .content-grid .aside-card { position: sticky; top: calc(var(--header-h) + 20px); }
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .devis-layout { grid-template-columns: minmax(0, 1fr) 360px; }
  .recap { position: sticky; top: calc(var(--header-h) + 16px); }
  .sous-total { display: none; }
  .devis-block { padding: 24px; }
}

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .header-inner { gap: 22px; }
  .main-nav {
    display: block; position: static; padding: 0; background: none; border: 0; box-shadow: none; inset-inline: auto;
  }
  .main-nav ul { display: flex; align-items: center; gap: 2px; }
  .main-nav li + li { border-top: 0; }
  .main-nav a { min-height: 44px; padding: 0 10px; border-radius: 8px; font-size: 1rem; position: relative; }
  .main-nav a[aria-current="page"]::after {
    content: ""; position: absolute; inset-inline: 10px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--yellow);
  }
  .header-cta { order: 3; }
  .prices.prices-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .main-nav a { padding: 0 14px; }
  .main-nav a[aria-current="page"]::after { inset-inline: 14px; }
}

@media (max-width: 359px) {
  .header-cta .cta-long { display: none; }
  .brand-name { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
