/* ==========================================================================
   CMAS Logistics
   ========================================================================== */

:root {
  --teal-900: #0d4b4e;
  --teal-700: #145f5c;
  --teal-600: #1b7a74;
  --teal-400: #4aa6a0;
  --teal-050: #e6f0ef;
  --ink: #16211f;
  --ink-soft: #2c3a37;
  --muted: #667571;
  --muted-light: #94a29e;
  --cream: #f7f4ee;
  --cream-2: #efe9df;
  --paper: #ffffff;
  --yellow: #ffc633;
  --yellow-dark: #d99f00;
  --wa: #25d366;
  --wa-dark: #128c3e;
  --line: #e0d9cc;
  --line-dark: rgba(255,255,255,0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 22px 44px -24px rgba(13, 75, 78, 0.42);
  --shadow-sm: 0 10px 24px -16px rgba(13, 75, 78, 0.35);
  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ar: "Tajawal", "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  margin: 0;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Latin numbers and addresses stay left to right even in Arabic */
.num, [dir="ltr"] { direction: ltr; unicode-bidi: isolate; }

/* ---- RTL ---- */
html[dir="rtl"] body { font-family: var(--font-ar); }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 {
  font-family: var(--font-ar); font-weight: 800; letter-spacing: 0;
}
html[dir="rtl"] .logo-text small { letter-spacing: 0.1em; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
html[dir="rtl"] .metric-num,
html[dir="rtl"] .stat-num,
html[dir="rtl"] .axis-meta strong { direction: ltr; unicode-bidi: isolate; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-family: var(--font-display); font-size: 14.5px;
  padding: 13px 24px; border: 1.5px solid transparent;
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 15px 28px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-2px); }

.btn-outline { background: transparent; border-color: var(--teal-700); color: var(--teal-700); }
.btn-outline:hover { background: var(--teal-700); color: #fff; transform: translateY(-2px); }

.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: var(--wa-dark); transform: translateY(-2px); }

/* ---- Bouton d'envoi du formulaire ---- */
.btn-submit {
  position: relative;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 26px;
  border: none; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #FFD25E 0%, var(--yellow) 45%, #F2B31C 100%);
  color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 15.5px;
  cursor: pointer; overflow: hidden;
  box-shadow: 0 10px 22px -12px rgba(217, 159, 0, 0.9);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.3s ease;
}
.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -12px rgba(217, 159, 0, 0.95);
}
.btn-submit:active:not(:disabled) { transform: translateY(0); }
.btn-submit:focus-visible { outline: 3px solid var(--teal-600); outline-offset: 3px; }

/* reflet qui balaie le bouton au survol */
.btn-submit::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 35%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg); opacity: 0; pointer-events: none;
}
.btn-submit:hover:not(:disabled)::after { animation: btn-shine 0.85s ease; }
@keyframes btn-shine {
  0%   { left: -40%; opacity: 0; }
  15%  { opacity: 1; }
  100% { left: 115%; opacity: 0; }
}

.btn-submit-face { display: inline-flex; align-items: center; gap: 10px; transition: opacity 0.2s ease, transform 0.2s ease; }
.btn-submit-arrow { transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.btn-submit:hover:not(:disabled) .btn-submit-arrow { transform: translateX(5px); }
html[dir="rtl"] .btn-submit-arrow { transform: scaleX(-1); }
html[dir="rtl"] .btn-submit:hover:not(:disabled) .btn-submit-arrow { transform: scaleX(-1) translateX(5px); }

.btn-submit-spinner, .btn-submit-check {
  position: absolute; opacity: 0; pointer-events: none;
}
.btn-submit-spinner {
  width: 21px; height: 21px; border-radius: 50%;
  border: 2.5px solid rgba(22, 33, 31, 0.25);
  border-top-color: var(--ink);
}

/* etat : envoi en cours */
.btn-submit.is-sending { cursor: progress; }
.btn-submit.is-sending .btn-submit-face { opacity: 0; transform: translateY(-6px); }
.btn-submit.is-sending .btn-submit-spinner { opacity: 1; animation: btn-spin 0.7s linear infinite; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* etat : demande partie */
.btn-submit.is-done {
  background: var(--teal-600);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(20, 95, 92, 0.9);
}
.btn-submit.is-done .btn-submit-face { opacity: 0; }
.btn-submit.is-done .btn-submit-spinner { opacity: 0; animation: none; }
.btn-submit.is-done .btn-submit-check { opacity: 1; animation: btn-pop 0.4s cubic-bezier(0.22, 1.4, 0.4, 1); }
@keyframes btn-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.btn-submit:disabled { opacity: 1; }

/* ---- Section furniture ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-600);
  margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--yellow); border-radius: 2px; }
.eyebrow-light { color: var(--yellow); }

.section-head { max-width: 660px; margin: 0 0 44px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 37px); }
.section-sub { color: var(--muted); font-size: 16px; line-height: 1.68; margin: 16px 0 0; }

.section { padding: 82px 0; }
@media (max-width: 720px) { .section { padding: 56px 0; } }

.hl { color: var(--teal-600); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 1100; /* au dessus des couches internes de Leaflet */
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { flex-shrink: 0; width: 42px; height: 42px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.logo-text strong {
  font-family: var(--font-display); font-weight: 700; font-size: 23px;
  color: var(--ink); letter-spacing: -0.02em;
}
.logo-text small {
  font-size: 9px; font-weight: 600; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--teal-600);
}
.logo-text-light strong { color: #fff; }
.logo-text-light small { color: var(--yellow); }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: color 0.15s; }
.main-nav a:hover { color: var(--teal-600); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle { display: flex; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 3px; gap: 3px; background: var(--paper); }
.lang-btn {
  border: none; background: transparent; padding: 4px 6px; border-radius: 6px;
  display: flex; align-items: center; opacity: 0.45;
  transition: opacity 0.15s, background 0.15s;
}
.lang-btn svg { border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,0.12); }
.lang-btn:hover { opacity: 0.8; }
.lang-btn.is-active { opacity: 1; background: var(--teal-050); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
}
.nav-toggle span { display: block; width: 16px; height: 2px; background: var(--ink); margin: 0 auto; border-radius: 2px; }

@media (max-width: 980px) {
  .main-nav {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 18px 20px 24px; gap: 16px; display: none;
  }
  .main-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
}
@media (max-width: 420px) {
  .logo-mark { width: 34px; height: 34px; }
  .logo-text strong { font-size: 19px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 64px 0 78px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.hero-copy h1 { font-size: clamp(31px, 4.1vw, 46px); margin: 0 0 20px; }
.hero-sub { color: var(--muted); font-size: 17px; line-height: 1.68; max-width: 520px; margin: 0 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }

.hero-metrics { display: flex; gap: 30px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
.metric { display: flex; flex-direction: column; gap: 5px; }
.metric-num { font-family: var(--font-display); font-size: 28px; color: var(--teal-700); font-weight: 700; }
.metric-num small { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 1px; }
.metric-label { font-size: 12.5px; color: var(--muted); max-width: 135px; line-height: 1.45; }

.hero-visual { display: flex; justify-content: center; }
.hero-frame {
  position: relative; width: 100%; max-width: 470px;
  border-radius: var(--radius-lg); overflow: visible;
}
.hero-frame img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.hero-badge {
  position: absolute; background: var(--paper);
  border-radius: 999px; display: flex; align-items: center; gap: 8px;
  padding: 9px 15px; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.hero-badge-top {
  top: -14px; right: -10px; background: var(--yellow); border-color: transparent;
  flex-direction: column; align-items: center; gap: 0;
  width: 68px; height: 68px; border-radius: 50%; justify-content: center; padding: 0;
}
.hero-badge-top strong { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1; }
.hero-badge-top span { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); }

.hero-badge-bottom { bottom: -16px; left: -12px; }
.hero-badge-bottom .stars { color: var(--yellow-dark); font-size: 11px; letter-spacing: 1px; }
.hero-badge-bottom div { display: flex; flex-direction: column; line-height: 1.25; }
.hero-badge-bottom strong { font-family: var(--font-display); font-size: 14px; font-weight: 700; }
.hero-badge-bottom span { font-size: 10.5px; color: var(--muted); }

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto 22px; }
}
@media (max-width: 480px) {
  .hero-badge-top { right: 4px; top: -12px; width: 58px; height: 58px; }
  .hero-badge-top strong { font-size: 18px; }
  .hero-badge-bottom { left: 0; bottom: -14px; }
}

/* ==========================================================================
   Coverage / map
   ========================================================================== */
.coverage { background: var(--cream-2); }
.coverage-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 32px; align-items: start; }
/* position + z-index cree un contexte d'empilement : les couches internes de
   Leaflet (jusqu'a 1000) restent enfermees dedans et ne passent plus
   au dessus de l'en tete */
.map-panel {
  position: relative; z-index: 0;
  background: var(--paper); border-radius: var(--radius-lg); padding: 14px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}

.map-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.route-tab {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; font-family: var(--font-display); color: var(--ink);
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 15px; transition: all 0.15s;
}
.route-tab:hover { border-color: var(--teal-400); }
.route-tab.is-active { background: var(--teal-050); border-color: var(--teal-600); }
.route-tab:not(.is-active) { opacity: 0.5; }
.route-reset { margin-left: auto; opacity: 1; }
html[dir="rtl"] .route-reset { margin-left: 0; margin-right: auto; }
.route-reset.is-active, .route-reset { background: var(--paper); }
.tab-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

#coverageMap { height: 440px; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--cream-2); }
.map-note { font-size: 12px; color: var(--muted-light); margin: 12px 4px 2px; line-height: 1.5; }

.coverage-side { display: flex; flex-direction: column; gap: 14px; }

.axis-card {
  background: var(--paper); border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; cursor: pointer;
  transition: border-color 0.16s, transform 0.16s, box-shadow 0.16s;
}
html[dir="rtl"] .axis-card { border-left: 1px solid var(--line); border-right: 4px solid var(--line); }
.axis-card:hover, .axis-card.is-active { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.axis-chichaoua { border-left-color: var(--yellow); }
html[dir="rtl"] .axis-chichaoua { border-right-color: var(--yellow); }
.axis-tamanar { border-left-color: var(--teal-600); }
html[dir="rtl"] .axis-tamanar { border-right-color: var(--teal-600); }
.axis-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.axis-tag {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--cream-2); color: var(--muted); padding: 3px 8px; border-radius: 5px;
}
.axis-card h3 { font-size: 16px; }
.axis-meta { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.axis-meta strong { color: var(--teal-700); font-family: var(--font-display); font-size: 15px; }
.village-list { display: flex; flex-wrap: wrap; gap: 6px; }
.village-list li {
  font-size: 12.5px; background: var(--cream); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 11px; color: var(--ink-soft);
}

.coverage-fact { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.coverage-fact-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: var(--teal-050); display: flex; align-items: center; justify-content: center; }
.coverage-fact strong { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; display: block; margin-bottom: 5px; }
.coverage-fact p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }

@media (max-width: 900px) { .coverage-grid { grid-template-columns: 1fr; } #coverageMap { height: 380px; } }

/* Leaflet chrome */
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { font-family: var(--font-sans); font-size: 13px; margin: 11px 14px; line-height: 1.5; }
.leaflet-popup-content b { font-family: var(--font-display); font-size: 14px; }
.leaflet-popup-content .pop-meta { color: var(--muted); font-size: 12px; }
.leaflet-container { font-family: var(--font-sans); }
.hub-marker { display: grid; place-items: center; }
.hub-marker span {
  width: 18px; height: 18px; border-radius: 50%; background: var(--teal-900);
  border: 3px solid #fff; box-shadow: 0 0 0 3px rgba(13,75,78,0.28);
}

/* ==========================================================================
   Solutions
   ========================================================================== */
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.solution-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.solution-media { overflow: hidden; background: var(--cream-2); }
.solution-media img { width: 100%; height: 168px; object-fit: cover; transition: transform 0.4s ease; }
.solution-card:hover .solution-media img { transform: scale(1.05); }
.solution-body { padding: 22px; }
.solution-body h3 { font-size: 17px; margin-bottom: 9px; }
.solution-body p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.62; }

.solution-card-cta { background: var(--teal-900); border-color: var(--teal-900); justify-content: center; }
.solution-card-cta h3 { color: #fff; font-size: 19px; }
.solution-card-cta p { color: #b3c6c4; margin-bottom: 18px; }

@media (max-width: 920px) { .solutions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .solutions-grid { grid-template-columns: 1fr; } .solution-media img { height: 190px; } }

/* ==========================================================================
   How it works
   ========================================================================== */
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.how-steps::before {
  content: ""; position: absolute; top: 25px; left: 14%; right: 14%; height: 2px;
  background-image: linear-gradient(to right, var(--line) 60%, transparent 40%);
  background-size: 12px 2px; background-repeat: repeat-x;
}
.how-step { position: relative; }
.how-num {
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--yellow); font-family: var(--font-display); font-weight: 700;
  font-size: 20px; color: var(--ink); margin-bottom: 18px;
  box-shadow: 0 0 0 6px var(--cream);
}
.how-step h3 { font-size: 16.5px; margin-bottom: 8px; }
.how-step p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.62; max-width: 300px; }

@media (max-width: 780px) { .how-steps { grid-template-columns: 1fr; gap: 28px; } .how-steps::before { display: none; } }

/* ==========================================================================
   Carriers
   ========================================================================== */
.carriers { background: var(--teal-900); color: #fff; }
.carriers-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.carriers-copy h2 { color: #fff; font-size: clamp(24px, 3.3vw, 34px); margin-bottom: 18px; }
.carriers-copy > p { color: #b3c6c4; font-size: 15.5px; line-height: 1.68; margin: 0 0 26px; max-width: 520px; }

.carriers-points { display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; }
.carriers-points li { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: #dfe8e6; }
.check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 800; flex-shrink: 0;
}

.carriers-logos { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.carrier-chip {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm); padding: 8px 14px;
  font-family: var(--font-display); font-weight: 500; font-size: 13px; color: #fff;
  transition: background 0.2s, border-color 0.2s;
}
.carrier-chip:hover { background: rgba(255,198,51,0.12); border-color: var(--yellow); }

.carriers-visual img { width: 100%; border-radius: var(--radius-lg); box-shadow: 0 30px 60px -24px rgba(0,0,0,0.55); }

@media (max-width: 900px) { .carriers-inner { grid-template-columns: 1fr; } .carriers-visual { order: -1; } }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat-bar { height: 5px; background: var(--cream-2); border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.stat-bar-fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--teal-600), var(--yellow)); transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.stat-num { font-family: var(--font-display); font-size: 27px; font-weight: 700; display: block; color: var(--teal-700); }
.stat-num small { font-size: 14px; color: var(--muted); font-weight: 600; }
.stat-label { font-size: 13px; color: var(--muted); display: block; margin-top: 6px; line-height: 1.5; }

@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .stats-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.quote-form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 17px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); font-family: var(--font-display); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 14.5px; font-family: inherit;
  background: var(--cream); color: var(--ink); resize: vertical;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-600); background: var(--paper);
  box-shadow: 0 0 0 3px rgba(27, 122, 116, 0.13);
}
.field.has-error input, .field.has-error select { border-color: #cf4b3f; background: #fdf3f2; }

.form-hint { margin: -4px 0 0; font-size: 12px; color: var(--muted-light); text-align: center; line-height: 1.5; }
.form-success {
  background: var(--teal-050); color: var(--teal-900); border-radius: var(--radius-sm);
  padding: 13px 16px; font-size: 13.5px; font-weight: 500; text-align: center; margin: 0; line-height: 1.55;
}
.form-success.is-error { background: #fdf3f2; color: #8f2f26; }

/* champ piege anti robot, invisible mais pas display:none */
.hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .quote-form { padding: 22px; } }

.contact-side { display: flex; flex-direction: column; gap: 13px; }
.contact-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 17px 19px;
  transition: border-color 0.15s, transform 0.15s;
}
.contact-card:not(.contact-card-static):hover { border-color: var(--teal-600); transform: translateY(-2px); }
.contact-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--teal-050); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact-label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-card strong { font-size: 14.5px; font-family: var(--font-display); font-weight: 600; overflow-wrap: anywhere; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #b3c6c4; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 58px 0 38px; }
.logo-footer { display: flex; align-items: center; gap: 10px; }
.footer-brand p { font-size: 13.5px; line-height: 1.65; margin: 14px 0 0; max-width: 290px; color: #8d9c98; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 { color: #fff; font-size: 12.5px; margin-bottom: 5px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.footer-col a, .footer-col span { font-size: 13.5px; color: #8d9c98; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 18px 0; }
.footer-bottom span { font-size: 12px; color: #6b7975; }

@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; gap: 26px; padding: 44px 0 30px; } }

/* ==========================================================================
   WhatsApp float
   ========================================================================== */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%; background: var(--wa);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px -8px rgba(37, 211, 102, 0.65);
  transition: transform 0.18s ease;
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55); animation: wa-ring 2.4s infinite;
}
@keyframes wa-ring { 0% { transform: scale(1); opacity: 0.75; } 100% { transform: scale(1.55); opacity: 0; } }
html[dir="rtl"] .whatsapp-float { right: auto; left: 20px; }

@media (max-width: 480px) {
  .whatsapp-float { width: 50px; height: 50px; right: 15px; bottom: 15px; }
  html[dir="rtl"] .whatsapp-float { left: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
