/* ==========================================================================
   i-TEL Services — feuille de style
   Palette pastel contemporaine · Bricolage Grotesque + Inter (auto-hébergées)
   ========================================================================== */

@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* ------------------------------------------------------------------
     Palette dérivée du logo : bleu #015FBA (H 210°) et orange #FB6C07 (H 25°)
     éclaircis et désaturés → tons pastel sobres. Les noms historiques
     (butter, sky…) sont conservés pour ne rien changer au PHP.
     ------------------------------------------------------------------ */

  /* Neutres (blanc chaud teinté orange, encre bleu marine) */
  --cream: #FCFAF7;
  --paper: #FFFFFF;
  --sand:  #F6F2EE;
  --line:  #E9E3DD;
  --ink:   #152537;
  --ink-2: #455363;
  --ink-3: #657382;

  /* Couleurs de marque (pleines) */
  --brand-blue:   #015FBA;
  --brand-orange: #FB6C07;

  /* Pastels — famille orange */
  --butter:   #F9E3CD;   /* abricot  */
  --peach:    #F9E6DC;   /* pêche    */
  --rose:     #F7E7E3;   /* corail   */
  /* Pastels — famille bleue */
  --sky:      #D9E8F7;   /* bleu ciel   */
  --lavender: #E5E9F5;   /* bleu brume  */
  --mint:     #DFEEF1;   /* bleu-vert   */

  /* Encres lisibles sur chaque pastel (contraste ≥ 5.5:1) */
  --butter-ink:   #864C13;
  --peach-ink:    #8F3D14;
  --rose-ink:     #932A15;
  --sky-ink:      #174C82;
  --lavender-ink: #1C3C9C;
  --mint-ink:     #145E71;

  --accent: #F47B25;          /* orange du logo, légèrement adouci */
  --ok: #2E9D6A;
  --err: #C8452F;

  /* Rôles (surchargés par les thèmes standard / sombre) */
  --emph: var(--ink);                  /* texte fort sur fond teinté */
  --solid-bg: var(--ink);              /* boutons pleins, élément actif */
  --solid-fg: #FFFFFF;
  --solid-hover: #22364F;
  --chrome-bg: var(--ink);             /* barre du haut + pied de page */
  --header-bg: rgba(252,250,247,.84);
  --glass: rgba(255,255,255,.9);
  --overlay-soft: rgba(255,255,255,.35);
  --overlay-softer: rgba(255,255,255,.25);
  --focus-ring: var(--sky);
  --warn-bg: #FCE9D9;  --warn-ink: #864C13;
  --err-bg:  #FAE0DB;  --err-ink:  #8E2A17;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(21,37,55,.04), 0 8px 24px -8px rgba(21,37,55,.10);
  --shadow-lg: 0 2px 4px rgba(21,37,55,.04), 0 24px 48px -16px rgba(21,37,55,.18);

  --font-head: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 750; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 60ch; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--sky-ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--butter); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--solid-bg); color: var(--solid-fg); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 1rem;
}
.hl {
  background: linear-gradient(transparent 58%, var(--butter) 58%, var(--butter) 92%, transparent 92%);
  padding-inline: .08em;
}

/* Fonds pastel utilitaires */
.bg-butter   { background: var(--butter);   color: var(--butter-ink); }
.bg-sky      { background: var(--sky);      color: var(--sky-ink); }
.bg-mint     { background: var(--mint);     color: var(--mint-ink); }
.bg-peach    { background: var(--peach);    color: var(--peach-ink); }
.bg-lavender { background: var(--lavender); color: var(--lavender-ink); }
.bg-rose     { background: var(--rose);     color: var(--rose-ink); }

/* ---------- Boutons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 1rem/1 var(--font-body);
  padding: 16px 24px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn-dark  { background: var(--solid-bg); color: var(--solid-fg); box-shadow: 0 8px 20px -8px rgba(21,37,55,.5); }
.btn-dark:hover { background: var(--solid-hover); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper); }
.btn-sm { padding: 11px 18px; font-size: .92rem; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .2s; }

/* ---------- Topbar ---------- */
.topbar { background: var(--chrome-bg); color: #E6ECF3; font-size: .85rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar-links { display: flex; gap: 22px; }
.topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; opacity: .9; }
.topbar a:hover { opacity: 1; }

.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; white-space: nowrap; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #B4BDC8; }
.status.is-open .dot { background: #4ADE80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 2s infinite; }
.status.is-closed .dot { background: #F59E86; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.55); } 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(21,37,55,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-img { max-width: none; }
.logo-img { height: 44px; width: auto; }
.logo-img-blanc { height: 64px; }
@media (max-width: 600px) { .logo-img { height: 36px; } .logo-img-blanc { height: 56px; } }
.logo-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--butter); color: var(--ink); transform: rotate(-6deg); }
.logo-text { font-family: var(--font-head); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.03em; }
.logo-text b { font-weight: 800; }

.nav { display: flex; align-items: center; gap: 20px; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav ul a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; }
.nav ul a:hover { background: var(--sand); color: var(--ink); }
.nav ul a[aria-current="page"] { background: var(--solid-bg); color: var(--solid-fg); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; color: var(--ink); }
.nav-toggle .when-open { display: none; }
.nav-toggle[aria-expanded="true"] .when-open { display: block; }
.nav-toggle[aria-expanded="true"] .when-closed { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 8vw, 100px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0 1.6rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; color: var(--ink-2); font-size: .95rem; }
.hero-tags li { display: inline-flex; align-items: center; gap: 6px; }
.hero-tags .icon { color: var(--ok); }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; justify-self: end; }
.blob { position: absolute; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; filter: saturate(1.05); animation: morph 14s ease-in-out infinite alternate; }
.blob-1 { inset: 6% 14% 20% 4%; background: var(--sky); }
.blob-2 { inset: 30% 0 0 34%; background: var(--butter); animation-delay: -4s; animation-duration: 16s; }
.blob-3 { width: 34%; height: 34%; left: 6%; bottom: 2%; background: var(--rose); animation-delay: -8s; }
@keyframes morph {
  0%   { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; transform: rotate(0deg); }
  100% { border-radius: 58% 42% 44% 56% / 40% 58% 42% 60%; transform: rotate(8deg); }
}
.circuit { position: absolute; inset: 0; width: 100%; height: 100%; }
.circuit .trace { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 8 10; animation: flow 3s linear infinite; opacity: .55; }
.circuit .t2 { animation-duration: 4.5s; opacity: .3; }
.circuit circle { fill: var(--cream); stroke: var(--ink); stroke-width: 2.5; }
@keyframes flow { to { stroke-dashoffset: -72; } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--glass); backdrop-filter: blur(8px);
  padding: 12px 18px 12px 12px; border-radius: 18px; box-shadow: var(--shadow-lg);
  font-size: .95rem; line-height: 1.25;
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-head); font-weight: 650; }
.float-card small { color: var(--ink-3); }
.fc-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none; }
.fc-1 { top: 8%; left: -4%; }
.fc-2 { top: 44%; right: -6%; animation-delay: -2s; }
.fc-3 { bottom: 6%; left: 12%; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section-tight { padding: clamp(32px, 5vw, 64px) 0; }
.section-soft { background: var(--sand); border-radius: clamp(28px, 4vw, 48px); margin-inline: clamp(8px, 1.5vw, 20px); }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p:last-child { color: var(--ink-2); font-size: 1.1rem; }

/* Cartes services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 28px; border-radius: var(--radius); text-decoration: none;
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, background .25s;
  overflow: hidden; isolation: isolate;
}
.card::after {
  content: ""; position: absolute; z-index: -1; width: 180px; height: 180px; right: -60px; top: -60px;
  border-radius: 50%; background: var(--c, var(--sand)); opacity: .9; transition: transform .4s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card:hover::after { transform: scale(3.2); }
.card-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--c); color: var(--ci); margin-bottom: 22px; transition: background .3s; }
.card:hover .card-icon { background: color-mix(in srgb, var(--paper) 70%, transparent); }
.card p { color: var(--ink-2); flex: 1; }
.card-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; margin-top: 8px; }
.card-butter   { --c: var(--butter);   --ci: var(--butter-ink); }
.card-sky      { --c: var(--sky);      --ci: var(--sky-ink); }
.card-mint     { --c: var(--mint);     --ci: var(--mint-ink); }
.card-peach    { --c: var(--peach);    --ci: var(--peach-ink); }
.card-lavender { --c: var(--lavender); --ci: var(--lavender-ink); }
.card-rose     { --c: var(--rose);     --ci: var(--rose-ink); }

/* Split + features */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.features li { background: var(--paper); border-radius: var(--radius); padding: 24px; }
.features span, .value > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px; }
.features p, .value p { color: var(--ink-2); margin: 0; font-size: .98rem; }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 46px; right: -18px; width: 18px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink-3) 0 4px, transparent 4px 8px);
}
.step-n { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; line-height: 1; margin-bottom: 14px; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.steps p { color: var(--ink-2); margin: 0; font-size: .98rem; }

/* CTA */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 56px); border-radius: clamp(28px, 4vw, 40px);
  background:
    radial-gradient(circle at 12% 20%, var(--butter) 0 18%, transparent 19%),
    radial-gradient(circle at 92% 90%, var(--sky) 0 22%, transparent 23%),
    var(--lavender);
}
.cta-band h2 { margin-bottom: .25em; }
.cta-band p { margin: 0; color: var(--ink-2); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Pages intérieures ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(24px, 4vw, 48px); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 18ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2rem; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; background: var(--c); color: var(--ci); transition: transform .2s; }
.chip:hover { transform: translateY(-2px); }
.chip-butter { --c: var(--butter); --ci: var(--butter-ink); } .chip-sky { --c: var(--sky); --ci: var(--sky-ink); }
.chip-mint { --c: var(--mint); --ci: var(--mint-ink); } .chip-peach { --c: var(--peach); --ci: var(--peach-ink); }
.chip-lavender { --c: var(--lavender); --ci: var(--lavender-ink); } .chip-rose { --c: var(--rose); --ci: var(--rose-ink); }

.service-list { display: grid; gap: clamp(40px, 6vw, 80px); }
.service { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.service.is-alt .service-visual { order: 2; }
.service-visual { aspect-ratio: 4 / 3; border-radius: clamp(24px, 3vw, 36px); display: grid; place-items: center; position: relative; overflow: hidden; }
.service-visual::before, .service-visual::after { content: ""; position: absolute; border-radius: 50%; background: var(--overlay-soft); }
.service-visual::before { width: 60%; aspect-ratio: 1; left: -12%; bottom: -20%; }
.service-visual::after { width: 30%; aspect-ratio: 1; right: 8%; top: 10%; background: var(--overlay-softer); }
.service-visual .icon { position: relative; z-index: 1; stroke-width: 1.2; }
.service-n { font-family: var(--font-head); font-weight: 700; color: var(--ink-3); letter-spacing: .05em; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { flex: none; margin-top: 4px; color: var(--ok); }

.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.narrow { max-width: 780px; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 160px; }
.stat strong { font-family: var(--font-head); font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1; color: var(--emph); letter-spacing: -0.03em; }
.stat span { margin-top: 8px; font-weight: 500; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { background: var(--paper); border-radius: var(--radius); padding: 28px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.contact-side { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 16px); }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--radius-sm); text-decoration: none; transition: transform .2s; }
.contact-card:hover { transform: translateX(4px); }
.contact-card small { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.contact-card strong { color: var(--emph); font-weight: 600; word-break: break-word; }
.contact-card .icon { flex: none; }

.hours-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.hours-card h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; margin-bottom: .6em; }
.hours-card .status { font-size: .95rem; margin-bottom: 14px; }
.hours-card table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.hours-card th, .hours-card td { padding: 8px 0; border-bottom: 1px dashed var(--line); text-align: left; font-weight: 400; }
.hours-card td { text-align: right; color: var(--ink-2); }
.hours-card tr:last-child th, .hours-card tr:last-child td { border-bottom: 0; }
.hours-card tr.today th, .hours-card tr.today td { font-weight: 700; color: var(--ink); }
.hours-card tr.today th::before { content: "● "; color: var(--accent); }

.form-card { background: var(--paper); border-radius: clamp(24px, 3vw, 32px); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-weight: 600; font-size: .92rem; padding: 0; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 13px 15px; width: 100%; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--sky-ink); background: var(--paper); box-shadow: 0 0 0 4px var(--focus-ring); }
.has-error input, .has-error textarea { border-color: var(--err); }
.field-error { color: var(--err); font-size: .88rem; display: block; margin-top: -8px; margin-bottom: 12px; }
.field .field-error { margin: 0; }

.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--cream); cursor: pointer; font-size: .93rem; transition: all .15s; user-select: none; }
.pill:hover span { border-color: var(--ink-3); }
.pill input:checked + span { background: var(--solid-bg); color: var(--solid-fg); border-color: var(--solid-bg); }
.pill input:focus-visible + span { outline: 3px solid var(--sky-ink); outline-offset: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--ink-2); margin-bottom: 22px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--solid-bg); flex: none; margin-top: 2px; }
.check.has-error span { color: var(--err); }

.alert { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: 14px; margin-bottom: 22px; }
.alert-ok { background: var(--mint); color: var(--mint-ink); }
.alert-ok strong { color: var(--emph); }
.alert-err { background: var(--err-bg); color: var(--err-ink); }
.alert .icon { flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.map { border-radius: clamp(24px, 3vw, 36px); overflow: hidden; min-height: 360px; background: var(--mint); position: relative; display: grid; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.map-placeholder {
  display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; padding: 40px 20px;
  background:
    linear-gradient(90deg, var(--overlay-soft) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(var(--overlay-soft) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--mint);
  color: var(--mint-ink);
}
.map-placeholder p { margin: 0; color: var(--emph); }
.map-placeholder small { color: var(--ink-2); }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 8px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--chrome-bg); color: #C3CCD8; margin-top: clamp(40px, 6vw, 80px); padding-top: clamp(48px, 6vw, 80px); border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 48px; }
.site-footer h3 { color: #fff; font-size: 1rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--butter); }
.footer-brand p { max-width: 34ch; margin-top: 16px; font-size: .96rem; }
.logo-footer { color: #fff; }
.hours-mini li { display: flex; justify-content: space-between; gap: 12px; font-size: .94rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; font-size: .88rem; color: #8E9AAA; }

.fab-call {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; place-items: center;
  background: var(--accent); color: var(--ink); box-shadow: var(--shadow-lg);
}

.page-404 { text-align: center; padding-block: 120px; }
.page-404 h1, .page-404 .lead { margin-inline: auto; }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); 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) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
/* Menu burger dès que la navigation ne tient plus sur une ligne */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 38px) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: var(--cream); padding: 20px var(--gutter) 28px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav ul a { padding: 14px 16px; font-size: 1.1rem; }

}

@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero-grid, .split, .service, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 420px; }
  .service.is-alt .service-visual { order: 0; }
  .service-visual { aspect-ratio: 16 / 9; }
  .contact-side { position: static; }
  .values { grid-template-columns: 1fr; }
  .fab-call { display: grid; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hide-sm { display: none !important; }
  .cards, .features, .steps, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .fc-1 { left: 0; } .fc-2 { right: 0; } .fc-3 { left: 4%; }
  .float-card { font-size: .85rem; padding: 10px 14px 10px 10px; }
  .fc-icon { width: 38px; height: 38px; }
  .stat { min-height: 130px; padding: 20px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .section-soft { margin-inline: 8px; }
}

/* ---------- Encarts des modules optionnels (accueil / footer / services) ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.tool {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.tool:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tool .card-icon { margin: 0; width: 50px; height: 50px; flex: none; }
.tool-text { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.tool-text strong { font-family: var(--font-head); font-size: 1.08rem; }
.tool-text small { color: var(--ink-2); font-size: .9rem; }
.tool > .icon:last-child { flex: none; color: var(--ink-3); transition: transform .2s; }
.tool:hover > .icon:last-child { transform: translateX(3px); color: var(--ink); }
.service-extra { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-grid:has(> :nth-child(5)) { grid-template-columns: 1.25fr 1fr 1fr 1.2fr 1fr; gap: 28px; }
.hours-mini span { white-space: nowrap; }
@media (max-width: 1024px) { .footer-grid:has(> :nth-child(5)) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .footer-grid:has(> :nth-child(5)) { grid-template-columns: 1fr; } }

/* Composants partagés par les modules */
.module-intro > * { max-width: 760px; }
.panel { background: var(--paper); border-radius: clamp(24px, 3vw, 32px); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; font-size: .95rem; }
.notice .icon { flex: none; margin-top: 2px; }
.notice-warn { background: var(--warn-bg); color: var(--warn-ink); }
.notice-info { background: var(--sky); color: var(--sky-ink); }
.notice strong { color: var(--emph); }

/* ==========================================================================
   THÈMES — standard (défaut, couleurs du logo) · clair (pastel, valeurs de :root) · sombre
   Choix mémorisé dans le navigateur (localStorage « itel-theme »).
   ========================================================================== */

/* ---------- Standard : couleurs du logo telles quelles ---------- */
:root[data-theme="standard"] {
  --cream: #FFFFFF;
  --paper: #FFFFFF;
  --sand:  #F1F4F8;
  --line:  #DFE5EC;
  --ink:   #10233A;
  --ink-2: #3E4D5E;
  --ink-3: #5F6C7B;

  /* famille orange : texte marine (contraste ≥ 4.7) */
  --butter: #FB6C07;  --butter-ink: #10233A;
  --peach:  #E85A00;  --peach-ink:  #10233A;
  --rose:   #F9963A;  --rose-ink:   #10233A;
  /* famille bleue : texte blanc (contraste ≥ 4.8) */
  --sky:      #015FBA; --sky-ink:      #FFFFFF;
  --lavender: #0A4A94; --lavender-ink: #FFFFFF;
  --mint:     #1F74C9; --mint-ink:     #FFFFFF;

  --accent: #FB6C07;
  --emph: currentColor;   /* = couleur du parent (texte du fond coloré) */
  --solid-bg: #015FBA;
  --solid-hover: #0A4A94;
  --chrome-bg: #0A2747;
  --header-bg: rgba(255,255,255,.88);
  --overlay-soft: rgba(255,255,255,.18);
  --overlay-softer: rgba(255,255,255,.12);
  --focus-ring: rgba(1,95,186,.25);
}
[data-theme="standard"] .card:hover::after { transform: scale(1.35); }
[data-theme="standard"] .card:hover .card-icon { background: var(--c); color: var(--ci); }
[data-theme="standard"] .blob { opacity: .9; }
[data-theme="standard"] .circuit .trace { stroke: #fff; opacity: .8; }
[data-theme="standard"] .cta-band {
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, var(--brand-orange) 0 18%, transparent 19%),
    radial-gradient(circle at 92% 90%, #2F80D1 0 22%, transparent 23%),
    var(--brand-blue);
}
[data-theme="standard"] .cta-band p { color: rgba(255,255,255,.88); }
[data-theme="standard"] .cta-band .btn-dark { background: var(--ink); }
[data-theme="standard"] .link-arrow { border-bottom-color: var(--brand-orange); }
[data-theme="standard"] .eyebrow { color: var(--brand-blue); }

/* ---------- Sombre ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --cream: #0F1A26;
  --paper: #172433;
  --sand:  #132131;
  --line:  #26364A;
  --ink:   #E9EEF4;
  --ink-2: #B3BFCC;
  --ink-3: #8C99A9;

  --butter:   #3B2A17; --butter-ink:   #F7C48E;
  --peach:    #3A2419; --peach-ink:    #F5B48F;
  --rose:     #3A2220; --rose-ink:     #F2A596;
  --sky:      #143153; --sky-ink:      #9DC7F2;
  --lavender: #1E2B4F; --lavender-ink: #B3C2F2;
  --mint:     #133740; --mint-ink:     #92D2DF;

  --accent: #FB8A3C;
  --ok: #4CC38A;
  --err: #F07A63;
  --solid-bg: #E9EEF4;
  --solid-fg: #0F1A26;
  --solid-hover: #FFFFFF;
  --chrome-bg: #09121C;
  --header-bg: rgba(15,26,38,.86);
  --glass: rgba(23,36,51,.92);
  --overlay-soft: rgba(255,255,255,.05);
  --overlay-softer: rgba(255,255,255,.03);
  --focus-ring: rgba(157,199,242,.25);
  --warn-bg: #3B2A17;  --warn-ink: #F7C48E;
  --err-bg:  #3D1E1A;  --err-ink:  #F4A99A;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -8px rgba(0,0,0,.5);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 24px 48px -16px rgba(0,0,0,.6);
}
[data-theme="dark"] .btn-dark { box-shadow: none; }
[data-theme="dark"] .blob { opacity: .85; }
[data-theme="dark"] img.ba-after, [data-theme="dark"] .ba img { filter: brightness(.92); }

/* ---------- Logos selon le thème ---------- */
.logo-on-dark { display: none; }
[data-theme="dark"] .site-header .logo-on-light { display: none; }
[data-theme="dark"] .site-header .logo-on-dark { display: block; }

/* ---------- Sélecteur de thème (barre du haut) ---------- */
.theme-switch { display: none; gap: 2px; padding: 2px; border-radius: 99px; background: rgba(255,255,255,.08); }
.js .theme-switch { display: inline-flex; }
.theme-switch button {
  display: grid; place-items: center; width: 28px; height: 26px; border: 0; border-radius: 99px;
  background: transparent; color: #B4BDC8; cursor: pointer; transition: background .15s, color .15s;
}
.theme-switch button:hover { color: #fff; }
.theme-switch button[aria-pressed="true"] { background: #fff; color: #10233A; }
.topbar-right { display: flex; align-items: center; gap: 18px; }

/* ---------- Navigation : éléments réservés au menu mobile + liens secondaires ---------- */
.nav-mobile-only { display: none; }
@media (max-width: 1080px) {
  .nav-mobile-only { display: block; }
  .topbar-nav { display: none !important; }
}
.topbar-nav { font-weight: 600; }
.topbar .badge, .nav .badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px;
  border-radius: 99px; background: var(--brand-orange); color: #fff; font-size: .72rem; font-weight: 700;
}

/* Bouton devis raccourci quand la place manque (avant le menu burger) */
.cta-short { display: none; }
@media (max-width: 1320px) and (min-width: 1081px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .nav { gap: 14px; }
  .nav ul { gap: 2px; }
  .nav ul a { padding: 8px 10px; }
}
.nav .badge { vertical-align: 1px; }
