/* =========================================================
   RECYTRAD – Feuille de style principale
   https://recytrad.com/
   ========================================================= */

:root {
  --navy-950: #041120;
  --navy-900: #06182b;
  --navy-800: #0a2540;
  --navy-700: #0f3357;
  --blue: #0270b3;
  --blue-600: #035f99;
  --blue-50: #e8f3fc;
  --cyan: #1aa9d0;
  --cyan-300: #6fd3ef;
  --ink: #0b1b2b;
  --text: #3d4b5c;
  --muted: #6b7a8c;
  --line: #e2e8f0;
  --soft: #f3f7fb;
  --white: #fff;
  --success: #15803d;
  --danger: #b91c1c;
  --wa: #25d366;

  --grad: linear-gradient(135deg, #0270b3 0%, #1aa9d0 100%);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 43, .06), 0 2px 8px rgba(11, 27, 43, .05);
  --shadow: 0 10px 30px -10px rgba(11, 27, 43, .18);
  --shadow-lg: 0 30px 60px -20px rgba(6, 24, 43, .35);

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
[data-lucide], .lucide { width: 1.15em; height: 1.15em; flex-shrink: 0; stroke-width: 2; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; margin-top: 48px; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 9999; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 12px; top: 12px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.link { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  border: 2px solid transparent; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: .6em 1.15em; font-size: .85rem; }
.btn--lg { padding: 1em 1.8em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(2, 112, 179, .6); }
.btn--primary:hover { box-shadow: 0 14px 30px -8px rgba(2, 112, 179, .75); }
.btn--glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .3); backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .2); }
.btn--outline { color: var(--blue); border-color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .4); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--ghost { background: rgba(255, 255, 255, .08); color: #cbd5e1; border-color: rgba(255, 255, 255, .15); }
.btn--whatsapp { background: var(--wa); color: #fff; }
.btn--whatsapp svg { width: 1.25em; height: 1.25em; }
.btn--whatsapp:hover { background: #1fb956; }
.btn[disabled] { opacity: .65; pointer-events: none; }

/* ---------- Typo sections ---------- */
.section { padding: 104px 0; position: relative; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--navy-900); color: #b8c6d6; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .16em; color: var(--blue); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--grad); border-radius: 2px; }
.eyebrow--light { color: var(--cyan-300); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; margin-bottom: 16px; }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.section-head--left { text-align: left; margin-left: 0; }
.section-head .eyebrow { justify-content: center; }
.section-head--left .eyebrow { justify-content: flex-start; }
.lead { font-size: 1.12rem; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px; font-size: .82rem; font-weight: 600; letter-spacing: .02em;
}
.badge--glow { background: rgba(26, 169, 208, .14); border: 1px solid rgba(111, 211, 239, .35); color: #d6f3fb; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-300); box-shadow: 0 0 0 0 rgba(111, 211, 239, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(111, 211, 239, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 211, 239, 0); } }

/* ---------- Barre d'infos ---------- */
.topbar { background: var(--navy-950); color: #9fb1c5; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__info { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.topbar__info li, .topbar__info a { display: inline-flex; align-items: center; gap: 7px; }
.topbar__info a:hover { color: #fff; }
.topbar [data-lucide], .topbar .lucide { color: var(--cyan); width: 14px; height: 14px; }
.topbar__phone { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 700; }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.header.is-scrolled { box-shadow: 0 8px 30px -12px rgba(11, 27, 43, .2); border-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 52px; height: auto; transition: transform .3s ease; }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand__text { font-family: var(--font-head); font-weight: 900; font-size: 1.35rem; letter-spacing: .08em; color: #0b3d91; }
.brand__text span { color: var(--cyan); }
.brand--light .brand__text { color: #fff; }

.nav { display: none; gap: 24px; margin-left: auto; white-space: nowrap; }
.nav a {
  position: relative; font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--ink);
  padding: 6px 0; transition: color .2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:hover, .nav a.is-active { color: var(--blue); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header__cta { display: none; align-items: center; gap: 18px; }
.header__phone { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; color: var(--ink); line-height: 1.15; }
.header__phone small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .72rem; color: var(--muted); }
.header__phone-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }

.burger { margin-left: auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-content: center; gap: 5px; background: var(--soft); }
.burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { border-top: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.mobile-menu nav { display: flex; flex-direction: column; padding-top: 10px; padding-bottom: 20px; }
.mobile-menu a:not(.btn) { padding: 13px 0; font-family: var(--font-head); font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #c9d6e4;
  background:
    linear-gradient(100deg, rgba(4, 17, 32, .97) 0%, rgba(6, 24, 43, .9) 42%, rgba(6, 24, 43, .55) 100%),
    url("../circuit_imprime-.jpg") 70% center / cover no-repeat;
  padding: 72px 0 120px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 140px;
  background: linear-gradient(to bottom, transparent, rgba(4, 17, 32, .35));
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
.hero h1 {
  color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.08;
  margin: 22px 0 22px; letter-spacing: -.03em;
}
.hero h1 mark {
  background: linear-gradient(120deg, #6fd3ef, #2fa6ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: 1.12rem; max-width: 580px; color: #c3d2e2; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 30px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 600; font-size: .92rem; color: #e2ebf4; }
.hero__checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__checks [data-lucide], .hero__checks .lucide { color: var(--cyan-300); }

/* Carte devis express */
.quote-card {
  background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .6);
  max-width: 460px; width: 100%; justify-self: end;
}
.quote-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.quote-card__head h2 { font-size: 1.3rem; font-weight: 800; }
.quote-card__head p { font-size: .88rem; color: var(--success); font-weight: 600; margin: 0; }
.quote-card__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.quote-card__icon .lucide { width: 24px; height: 24px; }
.quote-card__foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; font-size: .8rem; color: var(--muted); }
.quote-card__foot .lucide { color: var(--success); width: 15px; height: 15px; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .78rem; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .05em; }
.field-row { display: grid; gap: 14px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230270b3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center no-repeat;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(2, 112, 179, .12); }
.field .is-invalid, .consent.is-invalid input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(185, 28, 28, .1); }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: .82rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue); flex-shrink: 0; }
.consent.is-invalid span { color: var(--danger); }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form__note { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--muted); }
.form__status { margin: 0; font-size: .9rem; font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-success { color: var(--success); background: #ecfdf3; padding: 12px 14px; border-radius: var(--radius-sm); }
.form__status.is-error { color: var(--danger); background: #fef2f2; padding: 12px 14px; border-radius: var(--radius-sm); }

/* ---------- KPIs ---------- */
.kpis { position: relative; z-index: 2; margin-top: -64px; }
.kpis__grid {
  display: grid; grid-template-columns: 1fr; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden;
}
.kpi { display: flex; align-items: center; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.kpi:last-child { border-bottom: 0; }
.kpi__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); flex-shrink: 0; }
.kpi__icon .lucide { width: 24px; height: 24px; }
.kpi strong { display: block; font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.kpi span { font-size: .88rem; color: var(--muted); }

/* ---------- Matières ---------- */
.materials { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.material {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.material:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.material__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); margin-bottom: 18px; transition: background .25s ease, color .25s ease; }
.material__icon .lucide { width: 26px; height: 26px; }
.material:hover .material__icon { background: var(--grad); color: #fff; }
.material h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.material p { font-size: .92rem; color: var(--muted); }
.material--featured {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-900)); border-color: transparent; color: #b8c6d6;
  display: flex; flex-direction: column;
}
.material--featured h3 { color: #fff; font-size: 1.3rem; }
.material--featured p { color: #b8c6d6; }
.material--featured .material__icon { background: var(--grad); color: #fff; }
.material__tag {
  position: absolute; top: 18px; right: 18px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: rgba(111, 211, 239, .16); color: var(--cyan-300); padding: 5px 10px; border-radius: 999px;
}
.material__more { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--cyan-300); font-size: .9rem; }
.material--featured:hover .material__more .lucide { transform: translateX(4px); }
.material__more .lucide { transition: transform .2s ease; }

/* ---------- Circuits imprimés ---------- */
.circuits { overflow: hidden; }
.circuits::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(26, 169, 208, .18), transparent 60%),
    radial-gradient(500px 400px at 0% 100%, rgba(2, 112, 179, .22), transparent 60%);
}
.circuits__grid { position: relative; display: grid; gap: 56px; align-items: center; }
.circuits__media { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1 / .9; }
.circuits__img { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.circuits__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.circuits__img:hover img { transform: scale(1.06); }
.circuits__img--a { grid-row: 1 / 3; }
.circuits__badge {
  position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
  background: #fff; color: var(--muted); padding: 14px 20px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: .85rem; line-height: 1.3;
}
.circuits__badge .lucide { width: 30px; height: 30px; color: var(--blue); }
.circuits__badge strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1rem; }
.circuits__content h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; margin-bottom: 18px; }
.circuits__content .lead strong { color: #fff; }
.grade-list { display: grid; gap: 12px; margin: 28px 0 32px; }
.grade-list li {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); font-size: .9rem;
  transition: background .2s ease, border-color .2s ease;
}
.grade-list li:hover { background: rgba(255, 255, 255, .07); border-color: rgba(111, 211, 239, .3); }
.grade-list li > span { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(26, 169, 208, .15); color: var(--cyan-300); flex-shrink: 0; }
.grade-list strong { display: block; color: #fff; font-size: 1rem; font-family: var(--font-head); }
.circuits__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Étapes ---------- */
.steps { display: grid; gap: 20px; counter-reset: step; }
.step {
  position: relative; background: #fff; border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.step__num { position: absolute; top: 14px; right: 20px; font-family: var(--font-head); font-weight: 900; font-size: 3rem; color: var(--blue-50); line-height: 1; }
.step__icon { position: relative; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 20px; box-shadow: 0 10px 20px -8px rgba(2, 112, 179, .6); }
.step__icon .lucide { width: 26px; height: 26px; }
.step h3 { font-size: 1.12rem; margin-bottom: 10px; }
.step p { font-size: .93rem; color: var(--muted); }

/* ---------- Services ---------- */
.services { display: grid; gap: 56px; align-items: center; }
.services__media { position: relative; }
.services__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.services__float {
  position: absolute; right: -10px; bottom: 28px; background: var(--grad); color: #fff; padding: 18px 22px; border-radius: 16px;
  box-shadow: var(--shadow-lg); max-width: 260px; line-height: 1.35;
}
.services__float strong { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.services__float span { font-size: .85rem; opacity: .9; }
.services .section-head { margin-bottom: 32px; }
.service-list { display: grid; gap: 16px; }
.service {
  display: flex; gap: 18px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.service:hover { box-shadow: var(--shadow); transform: translateX(4px); border-color: transparent; }
.service__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); flex-shrink: 0; }
.service__icon .lucide { width: 24px; height: 24px; }
.service h3 { font-size: 1.08rem; margin-bottom: 6px; }
.service p { font-size: .93rem; color: var(--muted); }

/* ---------- Négoce ---------- */
.negoce { overflow: hidden; }
.negoce__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 24, 43, .98) 0%, rgba(6, 24, 43, .92) 50%, rgba(6, 24, 43, .8) 100%),
    url("../1.jpg") center / cover no-repeat;
}
.negoce__inner { position: relative; display: grid; gap: 48px; align-items: center; }
.negoce__content h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; margin-bottom: 20px; }
.negoce__content .lead strong { color: #fff; }
.negoce__content .btn { margin-top: 12px; }
.negoce__cards { display: grid; gap: 16px; }
.ncard {
  padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(6px); transition: transform .25s ease, background .25s ease;
}
.ncard:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .1); }
.ncard__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 16px; }
.ncard h3 { font-size: 1.1rem; margin-bottom: 8px; }
.ncard p { font-size: .92rem; }

/* ---------- Engagements ---------- */
.commitments { display: grid; gap: 22px; }
.commit {
  display: grid; grid-template-columns: 1fr; background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .3s ease, transform .3s ease;
}
.commit:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.commit__img { overflow: hidden; height: 240px; background: var(--soft); }
.commit__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.commit:hover .commit__img img { transform: scale(1.06); }
.commit__body { padding: 26px; }
.commit__num { font-family: var(--font-head); font-weight: 900; font-size: .85rem; color: var(--blue); background: var(--blue-50); padding: 4px 10px; border-radius: 999px; display: inline-block; margin-bottom: 14px; }
.commit h3 { font-size: 1.15rem; margin-bottom: 10px; }
.commit p { font-size: .93rem; color: var(--muted); }

/* ---------- À propos ---------- */
.about { display: grid; gap: 56px; align-items: center; }
.about__content h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; margin-bottom: 20px; }
.about__content strong { color: var(--ink); }
.checklist { display: grid; gap: 12px; margin: 26px 0 32px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.checklist .lucide { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: #e7f8ee; color: var(--success); stroke-width: 3; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about__media::before {
  content: ""; position: absolute; inset: 24px -16px -16px 24px; border-radius: var(--radius-lg); background: var(--grad); opacity: .15; z-index: -1;
}
.about__card {
  position: absolute; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 12px;
  background: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); line-height: 1.3;
}
.about__card .lucide { width: 28px; height: 28px; color: var(--blue); }
.about__card strong { display: block; color: var(--ink); font-family: var(--font-head); }
.about__card span { font-size: .85rem; color: var(--muted); }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--line); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 17, 32, .75), transparent 55%); }
.gallery__cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .92rem; text-align: left; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(4, 17, 32, .9); backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox figcaption { color: #e2ebf4; text-align: center; margin-top: 12px; font-weight: 600; }
.lightbox__close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .15); color: #fff; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 40px; }
.faq .section-head { margin-bottom: 0; }
.faq .section-head a:not(.btn) { color: var(--blue); font-weight: 700; }
.faq .section-head .btn { margin-top: 24px; }
.faq__list { display: grid; gap: 12px; }
.faq__list details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .25s ease, border-color .25s ease; }
.faq__list details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq__list summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.02rem;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230270b3' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center no-repeat;
  transition: transform .25s ease;
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0 22px 22px; color: var(--muted); font-size: .95rem; }

/* ---------- Bandeau CTA ---------- */
.cta-band { background: var(--grad); color: #e6f4fb; padding: 64px 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px;
}
.cta-band__inner { position: relative; display: grid; gap: 28px; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; margin-bottom: 8px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 28px; align-items: start; }
.contact__info { background: var(--navy-900); color: #b8c6d6; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); }
.contact__info h3 { color: #fff; font-size: 1.3rem; margin-bottom: 24px; }
.contact__list { display: grid; gap: 22px; margin-bottom: 28px; }
.contact__list li { display: flex; gap: 14px; line-height: 1.5; }
.contact__list small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan-300); font-weight: 700; margin-bottom: 2px; }
.contact__list a { color: #fff; font-weight: 700; font-size: 1.05rem; }
.contact__list a:hover { color: var(--cyan-300); }
.contact__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(26, 169, 208, .15); color: var(--cyan-300); flex-shrink: 0; }
.contact__info .muted { color: #8094aa; }
.contact__actions { display: grid; gap: 12px; }
.contact__actions .btn--outline { color: #fff; border-color: rgba(255, 255, 255, .3); }
.contact__actions .btn--outline:hover { background: rgba(255, 255, 255, .1); }
.contact__form { background: #fff; border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: #8ea2b8; padding: 72px 0 0; font-size: .92rem; }
.footer__grid { display: grid; gap: 40px; padding-bottom: 48px; }
.footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; }
.footer a:hover, .footer button:hover { color: #fff; }
.footer__brand p { margin: 18px 0 20px; max-width: 320px; }
.footer__brand .brand img { width: 46px; background: #fff; border-radius: 12px; padding: 4px; }
.footer__fb { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s ease; }
.footer__fb:hover { background: #1877f2; }
.footer__fb svg { width: 18px; height: 18px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .lucide { color: var(--cyan); margin-top: 4px; width: 16px; height: 16px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 22px; padding-bottom: 22px; font-size: .83rem;
}
.footer__top { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- WhatsApp flottant & barre mobile ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 800; display: none; align-items: center;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7); transition: transform .25s ease;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float__label {
  position: absolute; right: 70px; white-space: nowrap; background: #fff; color: var(--ink); font-size: .82rem; font-weight: 600;
  padding: 9px 14px; border-radius: 10px; box-shadow: var(--shadow); opacity: 0; transform: translateX(8px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.wa-float:hover .wa-float__label { opacity: 1; transform: none; }

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 850; display: grid; grid-template-columns: 1fr 1fr 1.3fr;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(11, 27, 43, .25);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 4px; font-size: .75rem; font-weight: 700; color: var(--ink); }
.mobile-bar svg { width: 22px; height: 22px; }
.mobile-bar a:first-child svg { color: var(--blue); }
.mobile-bar__wa svg { color: var(--wa); }
.mobile-bar__cta { background: var(--grad); color: #fff !important; }
body { padding-bottom: 64px; }

/* ---------- Cookies ---------- */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 76px; z-index: 950; display: flex; gap: 14px;
  background: var(--navy-900); color: #b8c6d6; padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; animation: slideUp .4s ease;
}
.cookie[hidden] { display: none; }
.cookie strong { color: #fff; }
.cookie .link { color: var(--cyan-300); }
.cookie__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(26, 169, 208, .15); color: var(--cyan-300); flex-shrink: 0; }
.cookie__actions { display: flex; gap: 10px; margin-top: 12px; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Modales ---------- */
.modal {
  width: min(680px, calc(100vw - 24px)); max-height: 88vh; padding: 0; border: 0; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); color: var(--text); overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; animation: slideUp .3s ease; }
.modal::backdrop { background: rgba(4, 17, 32, .75); backdrop-filter: blur(4px); }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--soft); }
.modal__head h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.modal__head h3 .lucide { color: var(--blue); }
.modal__head button { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.modal__head button:hover { background: var(--line); color: var(--ink); }
.modal__body { padding: 24px; overflow-y: auto; font-size: .92rem; }
.modal__body h4 { font-size: 1rem; margin: 20px 0 8px; }
.modal__body h4:first-child { margin-top: 0; }
.modal__body ul { list-style: disc; padding-left: 20px; margin-bottom: 1em; }
.modal__body a { color: var(--blue); text-decoration: underline; }
.modal__foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; background: var(--soft); }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767px) {
  .topbar { display: none; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 48px 0 100px; background-position: 65% center; }
  .hero__actions .btn { width: 100%; }
  .quote-card { padding: 22px; justify-self: stretch; max-width: none; }
  .services__float { right: 12px; }
  .circuits__media { aspect-ratio: 1 / 1; }
  .contact__info, .contact__form { padding: 24px; }
}

@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .kpis__grid { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(odd) { border-right: 1px solid var(--line); }
  .kpi:nth-last-child(-n+2) { border-bottom: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cookie { left: 24px; right: auto; max-width: 440px; }
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .wa-float { display: flex; }
  .cookie { bottom: 24px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .gallery__item { aspect-ratio: 4 / 5; }
  .commitments { grid-template-columns: repeat(3, 1fr); }
  .commit__img { height: 300px; }
  .negoce__cards { grid-template-columns: 1fr 1fr; }
  .negoce__cards .ncard:first-child { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .hero { padding: 96px 0 150px; }
  .hero__inner { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .kpis__grid { grid-template-columns: repeat(4, 1fr); }
  .kpi { border-bottom: 0 !important; border-right: 1px solid var(--line); }
  .kpi:last-child { border-right: 0; }
  .circuits__grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 58px; right: -14px; width: 28px; height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent);
  }
  .step { overflow: visible; }
  .services { grid-template-columns: .9fr 1.1fr; gap: 72px; }
  .negoce__inner { grid-template-columns: 1fr 1fr; gap: 72px; }
  .about { grid-template-columns: 1.05fr .95fr; gap: 80px; }
  .faq { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .faq .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
  .cta-band__inner { grid-template-columns: 1fr auto; }
  .contact { grid-template-columns: .8fr 1.2fr; gap: 32px; }
  .footer__grid { grid-template-columns: 1.4fr .8fr 1.2fr 1fr; }
}

@media (min-width: 1180px) {
  .nav { display: flex; }
  .header__cta { display: flex; }
  .burger { display: none; }
  .mobile-menu { display: none !important; }
}
@media (min-width: 1024px) and (max-width: 1179px) {
  .header__cta { display: flex; margin-left: auto; }
  .burger { margin-left: 0; }
}
@media (max-width: 1023px) and (min-width: 600px) {
  .services__media img { aspect-ratio: 16 / 10; }
}
@media (min-width: 1180px) and (max-width: 1399px) {
  .header__phone { display: none; }
  .nav { gap: 22px; }
}
@media (max-width: 599px) {
  .materials { grid-template-columns: 1fr 1fr; gap: 12px; }
  .material { padding: 18px 16px; }
  .material--featured { grid-column: 1 / -1; }
  .material__icon { width: 44px; height: 44px; margin-bottom: 12px; }
  .material h3 { font-size: 1rem; }
  .material p { font-size: .84rem; }
  .material__tag { top: 14px; right: 14px; }
}
@media (max-width: 767px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
}
