/* ========================================================= 
   XTRA — Business 4 (clone statique)
   Fichier : assets/css/xtra.css  (version unifiée BLEU dégradé) — MIS À JOUR
   ========================================================= */

/* -------------------- Variables & Reset -------------------- */
:root{
  --container: 1120px;
  --nav-h: 74px;
  --logo-h: clamp(34px, 8vh, 54px); /* ajuste la borne haute si besoin */
  --ink: #0f172a;
  --ink-2:#475569;
  --muted:#7c8aa5;
  --line:#e7edf5;

  /* ==== Palette BLEU (dégradé) ==== */
  --brand:#2563eb;     /* bleu principal */
  --brand-2:#60a5fa;   /* bleu clair */
  --brand-3:#1d4ed8;   /* bleu foncé */
  --grad: linear-gradient(90deg,var(--brand),var(--brand-2));

  --bg:#ffffff;
  --bg-soft:#f8fbff;
  --shadow: 0 10px 25px rgba(16,24,40,.08), 0 4px 12px rgba(16,24,40,.06);
  --radius:14px;

  /* Nav — espace entre le point et le texte */
  --menu-dot-gap: 8px;

  /* Fluid spacing */
  --space-1: clamp(6px, 1.2vw, 12px);
  --space-2: clamp(10px, 1.6vw, 18px);
  --space-3: clamp(14px, 2vw, 24px);
  --space-4: clamp(18px, 3vw, 32px);
  --space-5: clamp(24px, 4vw, 48px);
}
.nav{ height: var(--nav-h); }

/* Cible ton image de marque */
.brand img,
.brand-logo{
  height: var(--logo-h);
  width: auto;
  display: block;
  object-fit: contain;
}
.logo-mark{ display:none !important; }
/* Si tu gardes .brand-name / .brand-sub pour le SEO mais pas visuel sur mobile */
@media (max-width: 900px){
  .brand-name,.brand-sub{ display:none; }
  .brand img,.brand-logo{ height: clamp(32px, 7vh, 48px); }
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial;
  color:var(--ink);
  background:#fff;
  line-height:1.55;
  -webkit-text-size-adjust:100%;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{
  max-width:var(--container);
  margin-inline:auto;
  padding-inline: clamp(14px, 3.2vw, 20px);
}

/* -------------------- Helpers -------------------- */
.eyebrow{
  letter-spacing:.22em;
  text-transform:uppercase;
  font-weight:800;
  font-size:.78rem;
  color:var(--brand);
}
.center{text-align:center}
.muted{color:var(--muted)}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.btn-cta{
  display:inline-flex;align-items:center;justify-content:center;
  padding:.72rem 1.2rem;border-radius:999px;color:#fff;background:var(--grad);
  font-weight:800;box-shadow:0 6px 18px rgba(37,99,235,.25);white-space:nowrap;
  min-height:44px; /* cible tactile */
}
.btn-cta.large{padding:.9rem 1.6rem}
.btn-ghost{
  display:inline-flex;align-items:center;justify-content:center;
  padding:.78rem 1.1rem;border-radius:999px;border:1px solid var(--line);
  color:var(--brand);font-weight:800;background:#fff;
  min-height:44px;
}

/* Forcer le bleu sur certains SVG existants */
.stroke-brand *[stroke]{ stroke: var(--brand) !important; }
.stroke-brand *[fill]:not([fill="none"]){ fill: var(--brand) !important; }

/* -------------------- Header -------------------- */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(140%) blur(8px);
  border-bottom:1px solid var(--line);
}
.nav{height:74px; display:flex; align-items:center; justify-content:space-between; gap:16px}
.brand{display:flex;align-items:center;gap:10px}
.logo-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#e9f0ff}
.logo-mark.small{width:30px;height:30px}
.brand-name{font-size:1.05rem;font-weight:900;letter-spacing:.02em}
.brand-sub{font-size:.68rem;color:#7a91a6;margin-top:-4px}
.main-nav{display:flex;align-items:center;gap:18px}

/* ===== NAV — base + effets (corrigés) ===== */
.menu{
  display:flex; gap:22px; list-style:none; margin:0; padding:0; font-weight:700; color:#213147
}
.menu a{
  position:relative;
  display:inline-flex;                /* empêche le décalage multi-mots */
  align-items:center;                 /* centre verticalement */
  white-space:nowrap;                 /* “À Propos”, “2E–FINANCES” restent sur 1 ligne */
  line-height:1;                      /* évite les variations de hauteur */
  padding:8px 10px 8px 14px;          /* un peu plus d’air */
  border-radius:8px;
  font-weight:800;

  /* Remplissage vertical (haut → bas) */
  color:#213147;                      /* couleur normale (texte visible) */
  background-image: linear-gradient(to bottom, var(--brand), var(--brand-2));
  background-size:100% 0%;            /* 0% = pas de remplissage */
  background-repeat:no-repeat;
  background-position:0 0;            /* part du haut */
  -webkit-background-clip:text;
  background-clip:text;
  transition: background-size .35s ease, color .2s ease;
}
/* Au survol/actif : on rend le texte transparent pour révéler le dégradé, qui descend */
.menu a:is(:hover,:focus-visible,.is-active){
  color:transparent;
  background-size:100% 100%;
}

/* ● Point animé au NIVEAU du lien (centre vertical)
   glisse de la droite → stoppe à gauche avec un petit écart */
.menu a::after{
  content:"";
  position:absolute;
  top:50%;
  left:100%;                              /* démarre à droite du lien */
  width:6px; height:6px;                  /* point affiné */
  border-radius:50%;
  background: var(--brand);
  box-shadow:0 0 0 2px rgba(37,99,235,.18);
  transform: translate(calc(-100% - var(--menu-dot-gap)),-50%); /* bord droit + écart */
  opacity:0;
  transition: left .34s cubic-bezier(.2,.8,.2,1),
              transform .34s cubic-bezier(.2,.8,.2,1),
              opacity .18s ease;
}
.menu a:is(:hover,:focus-visible,.is-active)::after{
  left:0;                                 /* arrive au bord gauche du lien */
  transform: translate(calc(-1 * var(--menu-dot-gap)),-50%); /* s’arrête à gauche avec écart */
  opacity:1;
}

/* Curseur custom (rond + point) — compatible nav & global */
.nav-cursorRing,.nav-cursorDot,
.cursorRing,.cursorDot{
  position:fixed; top:0; left:0; z-index:1000; pointer-events:none;
  opacity:0; transform:translate3d(-50%,-50%,0) scale(.9);
  transition: opacity .18s ease, transform .18s ease;
  will-change: transform;
}
.nav-cursorRing,.cursorRing{
  width:28px;height:28px;border-radius:50%;
  border:2px solid rgba(37,99,235,.6);
  box-shadow:0 0 24px rgba(37,99,235,.25);
  backdrop-filter: blur(1px);
}
.nav-cursorDot,.cursorDot{
  width:6px;height:6px;border-radius:50%;
  background: var(--brand);
}
body.nav-cursor-active .nav-cursorRing,
body.nav-cursor-active .nav-cursorDot,
body.cursor-active .cursorRing,
body.cursor-active .cursorDot{ opacity:1; }
body.nav-cursor-hover-link .nav-cursorRing,
body.cursor-hover .cursorRing{ transform:translate3d(-50%,-50%,0) scale(1.12) }
@media (pointer:coarse){
  .nav-cursorRing,.nav-cursorDot,.cursorRing,.cursorDot{ display:none }
}

/* Burger (mobile) */
.burger{
  display:none;
  position:relative;      /* ← assure la priorité de clic */
  z-index:210;            /* ← au-dessus du header/menu */
}
@media (max-width:980px){
  .menu{display:none}
  .burger{display:inline-flex;flex-direction:column;gap:5px;background:transparent;border:0;padding:8px}
  .burger span{width:22px;height:2px;background:var(--ink)}
  /* Menu déroulant mobile plein-écran (stable) */
  .menu.open{
    display:flex;flex-direction:column;gap:10px;
    position:fixed;left:0;right:0;top:74px;
    background:#fff;
    border-top:1px solid var(--line);
    padding:12px 16px 16px;
    box-shadow:0 12px 24px rgba(2,6,23,.08);
    max-height: calc(100dvh - 74px);
    overflow:auto;
    z-index:200;          /* sous la modale/backdrop */
  }
  .menu.open a{ padding:12px 14px; font-size:1.02rem }
}

/* -------------------- Hero -------------------- */
.hero{
  position:relative;padding:8px 0 0;
  background: radial-gradient(1100px 240px at 50% -200px,#eef6f9 0%,transparent 60%) #fff;
  overflow:hidden;
}
.hero .hero-slides{position:absolute;inset:0;overflow:hidden;z-index:0}
.hero .h-slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transform:scale(1.03);transition:opacity .8s ease, transform .8s ease}
.hero .h-slide.is-active{opacity:1;transform:scale(1)}
/* Overlay plus sombre & progressif du bas vers le haut */
.hero .h-overlay{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:1;
  background:
    linear-gradient(
      to top,
      rgba(2, 8, 23, 0.74) 0%,
      rgba(2, 8, 23, 0.58) 22%,
      rgba(2, 8, 23, 0.36) 46%,
      rgba(2, 8, 23, 0.16) 66%,
      rgba(2, 8, 23, 0.00) 78%
    );
}
.hero .container{ position:relative; z-index:2; }
.hero .eyebrow{ color:#e8f1ff }
.hero-copy h1{ color:#fff; font-size:clamp(24px,3.2vw,36px); line-height:1.08; margin:.4rem 0 .7rem; font-weight:900; text-shadow: 0 1px 12px rgba(0,0,0,.22) }
.hero .sub{ color:#f7fbff; text-shadow: 0 1px 8px rgba(0,0,0,.16) }
.hero .feat strong{ color:#fff }
.hero .feat .muted{ color:rgba(255,255,255,.9) }

.hero-grid{
  margin: 0 auto; max-width: var(--container); min-height:55vh;
  display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  justify-content:center; justify-items:start; align-items:center;
  gap:28px; padding:24px 0 8px;
}
.hero-copy{ max-width:560px; margin:0; }
.hero-visual{ justify-self:end }
.hero-visual img{width:100%;height:clamp(680px,36vh,420px);object-fit:cover;border-radius:22px;box-shadow:var(--shadow)}
.hero-feats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.feat{display:flex;gap:10px;align-items:center}
.ico-pill{display:grid;place-items:center;width:42px;height:42px;border-radius:50%; background:#eef4ff;border:1px solid #d9e6ff}
.hero-feats .ico-pill svg{ width:22px;height:22px;display:block }
.h-dots{display:flex;gap:8px;margin:12px 0 18px; justify-content:flex-start;}
.h-dots .dot{width:10px;height:10px;border-radius:999px;border:2px solid #cfe0ff;background:transparent}
.h-dots .dot.is-active{background:#3b82f6;border-color:#3b82f6}

@media (max-width:1100px){
  .hero-grid{grid-template-columns:1fr;min-height:40vh;gap:18px; justify-items:stretch}
  .hero-copy{margin-inline:0}
  .hero-visual{order:-1;justify-self:stretch}
  .hero-visual img{height:clamp(170px,28vh,340px)}
  .h-dots{ justify-content:center; }
}
@media (max-width:720px){
  .feat{font-size:.92rem}
  .ico-pill{width:36px;height:36px}
  .hero .h-overlay{
    background:
      linear-gradient(
        to top,
        rgba(2, 8, 23, 0.80) 0%,
        rgba(2, 8, 23, 0.62) 24%,
        rgba(2, 8, 23, 0.40) 48%,
        rgba(2, 8, 23, 0.18) 66%,
        rgba(2, 8, 23, 0.00) 78%
      );
  }
}

/* -------------------- Services -------------------- */
.services{padding:80px 0;background:#fff}
.services-grid{display:grid;grid-template-columns:.9fr 1fr 1fr 1fr; gap:22px; align-items:stretch}
.services-panel{
  border-radius:18px; padding:28px 24px; color:#fff;
  background:linear-gradient(180deg,var(--brand),var(--brand-3) 60%, #0b3aa7);
  box-shadow:var(--shadow);
}
.services-panel h2{font-size:32px;line-height:1.15;margin:.6rem 0 0}
.service{padding:22px}
.service .service-ico{width:56px;height:56px;border-radius:16px;background:#f3f6ff;display:grid;place-items:center;margin-bottom:10px;border:1px solid #dee8ff}
.service h3{margin:6px 0 6px;font-size:1.12rem}

/* ====== Spécifique à la section d’accueil "NOS SERVICES" (maquette) ====== */
.services--intro .services-grid{
  grid-template-columns:1.1fr 1fr 1fr; /* bloc gauche + 2 colonnes de cartes */
}
.services--intro .services-lead{
  grid-column:1/2;
  grid-row:1/span 2;                  /* occupe la hauteur des 2 lignes de cartes */
  display:flex;flex-direction:column;justify-content:center;
  padding:8px 0;
}
.services--intro .services-lead h2{
  margin:0;
  font-size:clamp(28px,3.6vw,44px);
  line-height:1.04;
  font-weight:900;
  letter-spacing:-.02em;
  background:var(--grad);
  -webkit-background-clip:text; background-clip:text;
  color:transparent;
}

/* -------------------- About -------------------- */
.about{padding:84px 0;background:#f4f8ff}
.about-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:34px;align-items:center}
.about-visual img{border-radius:20px;box-shadow:var(--shadow)}

/* Icône à propos en cercle parfait */
.about-ico{
  width: 120px; height: 120px; border-radius: 50% !important;
  background: radial-gradient(120% 120% at 30% 30%, #f4f8ff 0%, #e9f0ff 60%, #e9f0ff 100%) !important;
  border:6px solid #10429f;
  display:grid;place-items:center;margin-bottom:14px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 10px 18px rgba(2,6,23,.06)
}
.about-ico svg{width:64px;height:64px;display:block}

.about-feats{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
.pill{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 12px}
.pill .dot{
  display:grid;place-items:center;width:56px;height:56px;border-radius:50% !important;
  background: radial-gradient(120% 120% at 30% 30%, #f6f9ff 0%, #eef4ff 60%, #eef4ff 100%);
  border:1px solid #d9e6ff;box-shadow:inset 0 1px 0 rgba(255,255,255,.7), 0 6px 14px rgba(2,6,23,.06)
}
.pill .dot svg{ width:28px;height:28px; display:block }

/* -------------------- Process -------------------- */
.process{
  position:relative;padding:88px 0;
  background: radial-gradient(900px 260px at 50% -180px,#eef2ff 0%,transparent 60%) #fff;
}
.proc-row{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center}
.proc-copy > .eyebrow{margin-bottom:6px}
.proc-copy > h2{margin:0 0 18px;font-size:clamp(26px,3.2vw,40px);line-height:1.14;letter-spacing:-.02em}
.steps{display:grid; gap:14px; margin-top:10px; position:relative}
.steps::before{content:""; position:absolute; left:54px; top:4px; bottom:4px;width:2px; background:#dfe4f2; border-radius:2px}
.step{
  display:grid; grid-template-columns:110px 1fr; gap:14px;align-items:flex-start; padding:12px 12px;
  background:#fff; border:1px solid var(--line);border-radius:16px; box-shadow:0 6px 18px rgba(2,6,23,.06);
  transition:transform .2s ease, box-shadow .2s ease;
}
.step:hover{ transform:translateY(-2px); box-shadow:var(--shadow) }
.step .num{position:relative; width:110px; text-align:right;font-weight:800; font-size:64px; line-height:1; letter-spacing:-.02em; color:var(--brand)}
.step .num::after{content:""; position:absolute; right:-6px; top:14px; width:10px; height:10px;border-radius:999px; background:#3b82f6; outline:3px solid #eef4ff}
.step .content h3{ margin:6px 0 6px; font-size:1.18rem }
.step .content p{ margin:0; color:var(--muted) }
.proc-visual{display:flex; justify-content:center}
.circle-img{position:relative;width:min(520px,88vw); aspect-ratio:1/1;border-radius:999px; overflow:hidden; background:#fff;box-shadow:0 28px 60px rgba(2,8,20,.12)}
.circle-img img{width:100%;height:100%;object-fit:cover}
@media (max-width:1100px){ .proc-row{grid-template-columns:1fr; gap:26px} .proc-visual{ justify-self:center } }
@media (max-width:720px){
  .step{grid-template-columns:90px 1fr}
  .step .num{width:90px; font-size:54px}
  .steps::before{left:44px}
  .step .num::after{right:-6px}
}

/* -------------------- Projects — “cartes blog” -------------------- */
.projects{padding:86px 0;background:var(--bg-soft)}
.projects .head{ text-align:center; margin-bottom:26px }
.projects .head .eyebrow{
  display:inline-block;margin:0 0 10px;padding:.42rem .8rem;border-radius:999px;
  background:#e8f0ff;color:#1d4ed8;letter-spacing:.24em;font-weight:800
}
.projects .head h2{margin:0 0 8px;color:var(--ink);font-weight:900;font-size:clamp(26px,2.8vw,36px)}
.projects .head .head-chip{
  display:inline-block;padding:.36rem .7rem;border-radius:8px;background:var(--grad);color:#fff;font-weight:600
}
.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.post-card{
  display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);
  border-radius:16px;box-shadow:0 8px 22px rgba(2,6,23,.06);overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease;
}
.post-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.post-card .thumb img{aspect-ratio:4/3;width:100%;object-fit:cover}
.post-body{padding:16px 18px 18px}
.post-title{margin:6px 0 6px;font-size:1.12rem;line-height:1.25}
.post-title a{color:#0e172a}
.post-title a:hover{color:var(--brand)}
.post-meta{display:flex;align-items:center;gap:8px;color:#6b7280;font-size:.9rem}
.post-excerpt{color:#5b667a;margin:.4rem 0 1rem}
.btn-more{display:inline-flex;align-items:center;justify-content:center;padding:.56rem .92rem;border-radius:10px;color:#fff;background:var(--grad);font-weight:700;box-shadow:0 6px 16px rgba(37,99,235,.22)}
@media (max-width:980px){ .post-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:720px){ .post-grid{grid-template-columns:1fr} }

/* -------------------- Testimonials -------------------- */
.testimonials{padding:86px 0;background:#fff}
.t-grid{display:grid;grid-template-columns: .9fr 1.1fr;gap:26px;align-items:start}
.t-ico{width:62px;height:62px;border-radius:16px;background:#eef4ff;border:1px solid #d9e6ff;display:grid;place-items:center;margin-bottom:10px}
.t-slider{ position:relative; min-height:260px }
.t-card{
  position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center;
  gap:18px; background:#fff; border:1px solid var(--line); border-radius:16px; padding:22px;
  box-shadow:var(--shadow);
  opacity:0; transform:translateY(20px); transition:opacity .5s ease, transform .5s ease;
}
.t-card.is-active{opacity:1; transform:translateY(0)}
.t-user{display:flex;align-items:center;gap:12px}
.t-user img{width:52px;height:52px;border-radius:999px;object-fit:cover}
.t-user strong{display:block}
.t-user span{display:block;color:var(--muted);font-size:.9rem;margin-top:-2px}
.quote{font-size:1.06rem;color:#111827}
.t-dots{display:flex;gap:8px;justify-content:center;margin-top:16px}
.t-dots .dot{width:10px;height:10px;border-radius:999px;border:2px solid #cfe0ff;background:transparent}
.t-dots .dot.is-active{background:#3b82f6;border-color:#3b82f6}

/* -------------------- PARTENAIRES — carousel élégant -------------------- */
.partners{ padding:40px 0; background:transparent !important; --carousel-speed: 26s; }
.tape{
  overflow:hidden; position:relative;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}
.tape::before,.tape::after{
  content:"";position:absolute;top:0;bottom:0;width:80px;z-index:2;pointer-events:none;
  background:linear-gradient(to right,#fff,transparent) !important;
}
.tape::after{right:0;transform:scaleX(-1)}
.tape-track{
  display:flex; align-items:center; gap:22px;
  width:max-content;
  animation:partners-loop var(--carousel-speed) linear infinite;
  will-change:transform;
}
.tape:hover .tape-track{ animation-play-state:paused }
@keyframes partners-loop{ from{transform:translateX(0)} to{transform:translateX(-50%)} }

.logo-item{
  position:relative;display:grid;place-items:center;
  width:200px;height:92px;border-radius:18px;
  background:transparent !important;border:0 !important;box-shadow:none !important;
  overflow:hidden;
}
.logo-item:hover{ transform:none; box-shadow:none; border-color:transparent }

.logo-badge{ display:grid; place-items:center; width:auto; height:auto; border-radius:0; background:transparent !important; border:0 !important; box-shadow:none !important; text-align:center; padding:8px 10px; }
.logo-badge .acro{
  font-weight:900; letter-spacing:.06em; text-transform:uppercase;
  font-size: clamp(24px,4.2vw,36px) !important; line-height:1;
  color: var(--brand);
}
.logo-badge .name{
  margin-top:6px;
  font-size:.74rem !important; font-weight:500 !important;
  color:#8a96b7 !important; opacity:.95;
}
@media (max-width:720px){
  .logo-item{ width:160px; height:74px }
  .logo-badge .name{ font-size:.68rem }
}

/* -------------------- CTA -------------------- */
.cta-bubble{
  margin-top:36px; background:#fff; border:1px solid var(--line);
  padding:28px 22px; border-radius:999px; display:flex; align-items:center; gap:18px;
  justify-content:space-between; box-shadow:var(--shadow)
}
.cta-bubble h3{margin:0;font-size:clamp(20px,2.4vw,28px)}
.cta-bubble .green{color:var(--brand)}
.cta-copy{display:flex;flex-direction:column;gap:6px;max-width:760px}
.logos{ margin-bottom:40px }
@media (max-width:920px){ .cta-bubble{border-radius:26px;flex-direction:column;text-align:center;gap:10px} .cta-copy{max-width:none} }

/* -------------------- Contact -------------------- */
.contact{padding:86px 0;background:#fff}
.contact-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:start}
.contact h2{margin:0 0 8px;font-size:clamp(26px,2.8vw,36px)}
.contact .lead{color:var(--muted);margin:0 0 22px}
.contact .info-list{display:grid;gap:16px}
.contact .info{display:flex;gap:12px;align-items:flex-start}
.contact .info .icon{width:52px;height:52px;border-radius:14px;background:#eef4ff;border:1px solid #d9e6ff;display:grid;place-items:center;flex:0 0 52px}
.form-card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:20px}
.form-card h3{margin:0 0 12px}
.form-row{display:grid;gap:12px}
.input,.textarea{
  width:100%;border:1px solid var(--line);border-radius:10px;padding:.82rem .9rem;
  font:inherit;outline:none;background:#fff;transition:border-color .2s ease, box-shadow .2s ease
}
.textarea{min-height:150px;resize:vertical}
.input:focus,.textarea:focus{border-color:#cfe0ff;box-shadow:0 0 0 4px rgba(37,99,235,.12)}
.form-card .btn-cta{width:100%}
@media (max-width:1100px){ .contact-grid{grid-template-columns:1fr} }

/* -------------------- Footer -------------------- */
/* -------------------- Footer (version allégée + marges équilibrées) -------------------- */

.site-footer{
  background:#e6f0ff;
  font-size:0.9rem;
  line-height:1.45;
  padding-top:20px;          /* marge haute visible */
  padding-bottom:14px;       /* marge basse légère */
}

/* Grille principale compacte */
.footer-grid{
  display:grid;
  grid-template-columns:1fr 0.9fr 0.9fr 0.9fr;
  gap:16px;
  padding:28px 0;            /* ↓ hauteur */
}
.footer-grid h4{
  margin:0 0 6px;
  font-size:0.95rem;
  letter-spacing:.01em;
  text-transform:uppercase;
}
.footer-grid ul{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:4px;
}
.footer-grid p,
.footer-grid li,
.footer-grid a{
  font-size:0.9rem;
  line-height:1.4;
}

/* Ligne marque + logo */
.brand-line{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:6px;
  flex-wrap:wrap;
}
.brand-logo,
.brand-logo--sm{
  height:24px;
  width:auto;
}

/* Réseaux sociaux compacts */
.socials a{
  display:inline-grid;
  place-items:center;
  width:26px;
  height:26px;
  border-radius:50%;
  background:#fff;
  border:1px solid var(--line);
  margin-right:5px;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.socials a:hover{
  transform:translateY(-2px);
  border-color:var(--brand-2);
  box-shadow:0 4px 10px rgba(37,99,235,.18);
}

/* Chevron “>” + effet hover */
.footer-grid nav ul li a{
  position:relative;
  display:inline-block;
  padding-left:14px;
  transition:transform .26s ease,color .26s ease;
}
.footer-grid nav ul li a::before{
  content:">";
  position:absolute;
  left:0; top:50%;
  transform:translateY(-50%);
  font-weight:900;
  color:#5a70b9;
  opacity:.8;
  transition:transform .26s ease,color .26s ease;
}
.footer-grid nav ul li a:hover{
  transform:translateX(-4px);
  color:var(--brand-3);
}
.footer-grid nav ul li a:hover::before{
  color:var(--brand);
  transform:translateY(-50%) translateX(-2px);
}

/* Bandeau bas */
.footer-bottom{
  background:#0f265d;
  color:#d8e4ff;
  font-size:.88rem;
}
.fb-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 0;
  gap:6px;
  flex-wrap:wrap;
}
.fb-nav a{
  color:#d8e4ff;
  margin-left:10px;
  text-decoration:underline;
}

/* ===== Larges écrans ===== */
@media (min-width:1400px){
  .footer-grid{
    max-width:var(--container);
    margin-inline:auto;
    padding:26px 0;
  }
  .brand-logo{height:22px;}
}

/* ===== ≤ 1200px : 3 colonnes compactes ===== */
@media (max-width:1200px){
  .footer-grid{
    grid-template-columns:1fr 1fr 1fr;
    gap:14px;
    padding:24px 0;
  }
  .footer-grid h4{font-size:.92rem;}
  .footer-grid a{font-size:.88rem;}
  .brand-logo{height:21px;}
}

/* ===== ≤ 980px : 2 colonnes denses ===== */
@media (max-width:980px){
  .footer-grid{
    grid-template-columns:1fr 1fr;
    gap:12px;
    padding:20px 0;
  }
  .footer-grid h4{font-size:.9rem;margin-bottom:4px;}
  .footer-grid a{font-size:.86rem;}
  .brand-logo{height:20px;}
  .socials a{width:24px;height:24px;}
  .fb-row{padding:7px 0;font-size:.85rem;}
}

/* ===== ≤ 720px : 1 colonne ===== */
@media (max-width:720px){
  .footer-grid{
    grid-template-columns:1fr;
    gap:10px;
    padding:18px 0;
  }
  .footer-grid h4{font-size:.88rem;}
  .footer-grid a{font-size:.84rem;}
  .brand-line{margin-bottom:4px;}
  .brand-logo{height:18px;}
  .socials a{width:22px;height:22px;}
  .fb-row{padding:6px 0;}
}

/* ===== ≤ 480px : ultra compact ===== */
@media (max-width:480px){
  .footer-grid{
    padding:14px 0;
    gap:8px;
  }
  .footer-grid h4{font-size:.86rem;}
  .footer-grid a{font-size:.82rem;}
  .brand-logo{height:16px;}
  .fb-row{padding:5px 0;gap:5px;}
  .fb-nav a{margin-left:6px;font-size:.82rem;}
}

/* Motion réduit */
@media (prefers-reduced-motion:reduce){
  .footer-grid a,
  .socials a{transition:none!important;}
}

/* -------------------- Media Queries globales -------------------- */
/* Large desktop: rescale container gently */
@media (min-width:1400px){
  :root{ --container: 1200px; }
}

/* Desktop → Tablet */
@media (max-width:1100px){
  .services-grid{grid-template-columns:1fr 1fr;row-gap:22px}
  .about-grid{grid-template-columns:1fr}
  .t-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1.2fr 1fr}
}

/* Tablet portrait / grands mobiles */
@media (max-width:920px){
  .services{padding:64px 0}
  .about{padding:68px 0}
  .process{padding:72px 0}
  .projects{padding:72px 0}
  .testimonials{padding:72px 0}
  .contact{padding:72px 0}
  .footer-grid{gap:18px}
}

/* Petites tablettes / mobiles larges */
@media (max-width:820px){
  .services--intro .services-grid{ grid-template-columns:1fr; }
  .services--intro .services-lead{ grid-row:auto; }
  .services-panel h2{ font-size:clamp(22px,4vw,28px) }
  .proc-row{ gap:26px }
  .cta-bubble{ padding:22px 18px }
}

/* Mobiles */
@media (max-width:720px){
  .services-grid{grid-template-columns:1fr}
  .hero-feats{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .brand-sub{display:none} /* alléger l’en-tête */
  .container{ padding-inline: clamp(12px, 4.5vw, 18px); }
  .cta-bubble h3{ font-size:clamp(18px, 4.8vw, 22px) }
  .tape{ --carousel-speed: 32s; } /* un peu plus lent pour petits écrans */
}

/* Petits mobiles */
@media (max-width:560px){
  .hero-visual img{ border-radius:16px }
  .ico-pill{ width:34px; height:34px }
  .pill{ padding:10px }
  .pill .dot{ width:48px; height:48px }
  .step{ padding:10px }
  .post-body{ padding:14px 14px 16px }
  .fb-nav a{ display:inline-block; margin:6px 8px 0 0 }
}

/* Très petits mobiles */
@media (max-width:420px){
  .brand-name{ font-size:1rem }
  .menu.open a{ padding:10px 12px; }
  .logo-item{ width:140px; height:68px }
  .about-ico{ width:100px; height:100px }
  .circle-img{ width:min(440px,92vw) }
  .cta-bubble{ gap:12px }
}

/* Accessibilité : réduire les animations */
@media (prefers-reduced-motion:reduce){
  .tape-track{ animation:none }
  .hero .h-slide{ transition:none }
  .t-card{ transition:none }
}
/* === Back to top === */
.toTop{
  position: fixed; right: clamp(12px,2vw,20px); bottom: clamp(14px,2.4vw,24px);
  width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--grad); color:#fff; display:grid; place-items:center;
  box-shadow: 0 12px 28px rgba(37,99,235,.28), inset 0 0 0 0 rgba(255,255,255,.0);
  cursor: pointer; z-index: 100; opacity: 0; transform: translateY(14px) scale(.96);
  transition: opacity .28s ease, transform .28s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
  outline: none;
}
.toTop:hover{ box-shadow: 0 16px 34px rgba(37,99,235,.34), inset 0 0 0 100vmax rgba(255,255,255,.04) }
.toTop:focus-visible{ box-shadow: 0 0 0 4px rgba(96,165,250,.35), 0 12px 28px rgba(37,99,235,.28) }
.toTop.is-visible{ opacity: 1; transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce){
  .toTop{ transition: none }
}

/* petite pulsation optionnelle */
@keyframes toTop-breathe {
  0%,100% { transform: translateY(0) scale(1) }
  50%     { transform: translateY(-2px) scale(1.02) }
}
.toTop.is-visible:hover svg{ animation: toTop-breathe .9s ease both }

/* ===================== BANNIÈRE MAINTENANCE ===================== */
:root{
  --maint-bg:#facc15;          /* jaune principal */
  --maint-fg:#1f2937;          /* texte foncé */
  --maint-accent:#f59e0b;      /* orange foncé */
  --maint-accent-2:#fde047;    /* jaune clair */
  --maint-line:#d97706;        /* bordure */
  --maint-stripe-dark:#d97706; /* bandes chantier */
  --maint-stripe-light:#f59e0b;
}
.maint-banner{
  position:fixed; left:50%; bottom:18px; transform:translate(-50%,10px);
  z-index:9999; display:flex; gap:14px; align-items:flex-start;
  max-width:min(820px,94vw); padding:16px 16px 12px; border-radius:16px;
  background:var(--maint-bg); color:var(--maint-fg); border:1px solid var(--maint-line);
  box-shadow:0 18px 38px rgba(2,6,23,.25);
  opacity:0; pointer-events:none; transition:opacity .35s ease, transform .35s ease;
}
.maint-banner.show{ opacity:1; transform:translate(-50%,0); pointer-events:auto }

.maint-ico{
  width:44px; height:44px; border-radius:12px; background:#fff7cc;
  border:1px solid #f2c94c; display:grid; place-items:center; flex:0 0 auto;
}
.maint-ico svg{ width:28px; height:28px; color:#7c2d12 } /* brun */

/* Grue animée (balancement) */
.crane{ transform-origin:12px 6px }
.hook{  transform-origin:18px 20px }
.maint-banner.show .crane{ animation:crane-sway 3.6s ease-in-out infinite }
.maint-banner.show .hook{  animation:hook-sway 3.6s ease-in-out infinite reverse }
@keyframes crane-sway{ 0%,100%{transform:rotate(-2deg)} 50%{transform:rotate(2deg)} }
@keyframes hook-sway { 0%,100%{transform:rotate(3deg)}  50%{transform:rotate(-3deg)} }

.maint-content{ line-height:1.45 }
.maint-title{ margin:0 0 2px; font-weight:900; letter-spacing:.01em }
.maint-text{ margin:0; color:#374151 }
.maint-actions{ margin-top:10px; display:flex; gap:10px; flex-wrap:wrap }
.maint-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:.52rem .9rem; border-radius:999px; font-weight:800;
  border:1px solid #f2c94c; color:#1f2937;
  background:linear-gradient(90deg,var(--maint-accent),var(--maint-accent-2));
  text-decoration:none; box-shadow:0 6px 14px rgba(245,158,11,.35);
}
.maint-close{
  margin-left:6px; flex:0 0 auto; background:transparent; border:0; color:#7c2d12;
  width:34px; height:34px; border-radius:8px; cursor:pointer;
}
.maint-close:hover{ background:rgba(0,0,0,.06) }

/* Bande rayée chantier en bas du bandeau */
.maint-stripes{
  position:absolute; left:10px; right:10px; bottom:8px; height:5px; border-radius:6px;
  background:
    repeating-linear-gradient(135deg,
      var(--maint-stripe-dark) 0 14px,
      var(--maint-stripe-light) 14px 28px);
  overflow:hidden;
}
.maint-stripes::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);
  transform:translateX(-100%);
}
.maint-banner.show .maint-stripes{ animation:stripes-move 8s linear infinite }
.maint-banner.show .maint-stripes::after{ animation:sweep 2.6s linear infinite }
@keyframes stripes-move{ from{background-position:0 0} to{background-position:280px 0} }
@keyframes sweep{ 0%{transform:translateX(-100%)} 60%{transform:translateX(120%)} 100%{transform:translateX(120%)} }

/* Barre de progression */
.maint-progress{
  position:relative; margin-top:10px; width:100%; height:6px; border-radius:999px;
  background:rgba(0,0,0,.08); overflow:hidden;
}
.maint-progress > i{
  position:absolute; left:0; top:0; bottom:0; width:0%;
  background:linear-gradient(90deg,var(--maint-accent),var(--maint-accent-2));
  box-shadow:0 0 10px rgba(245,158,11,.45) inset;
}

@media (max-width:520px){
  .maint-banner{ padding:14px 12px 10px }
  .maint-ico{ width:40px; height:40px }
  .maint-ico svg{ width:24px; height:24px }
}
@media (prefers-reduced-motion:reduce){
  .maint-banner, .maint-banner.show{ transition:none }
  .maint-banner.show .crane,
  .maint-banner.show .hook,
  .maint-banner.show .maint-stripes,
  .maint-banner.show .maint-stripes::after{ animation:none !important }
}

/* ===== EBNL modal — corrigée (pas de flou, centrée mobile, fiable) ===== */
/* Styles de base (desktop : coin bas-droit, anim douce sans scale) */
#ebnlBanner{
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: min(460px, 94vw);
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18), 0 4px 10px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
  z-index: 10050; /* au-dessus de tout */
  opacity: 0;
  transform: translateY(12px); /* pas de scale => pas de flou */
  transition: opacity .28s ease-out, transform .28s ease-out;
  pointer-events: none;
  will-change: opacity, transform;
}
#ebnlBanner.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#ebnlBanner.is-hidden{ display:none; }

#ebnlBanner .ebnlBClose{
  position:absolute; top:8px; right:8px;
  width:40px; height:40px; border:0; border-radius:10px;
  background: rgba(15,23,42,.06); color:#0f172a;
  display:grid; place-items:center; cursor:pointer; z-index:2;
}
#ebnlBanner .ebnlBClose:hover{ background: rgba(15,23,42,.1); }
#ebnlBanner .ebnlBClose:focus-visible{ outline:3px solid rgba(96,165,250,.5); outline-offset:2px; }

/* Contenus internes */
#ebnlBanner .ebnlBHead{ flex-shrink:0; padding-bottom:12px; margin-bottom:12px; border-bottom:1px solid var(--line); background:#fff; position:sticky; top:0; z-index:1; }
#ebnlBanner .ebnlBList{ flex:1 1 auto; min-height:0; overflow:auto; -webkit-overflow-scrolling:touch; }
#ebnlBanner .ebnlBCTAs{ flex-shrink:0; display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; padding-top:16px; border-top:1px solid var(--line); background:#fff; position:sticky; bottom:0; }

/* FAB (bouton rond) */
#ebnlFab{
  position: fixed;
  bottom: 20px; right: 20px;
  width: 54px; height: 54px; border-radius:999px;
  background: var(--grad); border:1px solid var(--brand-2); color:#fff;
  display:grid; place-items:center; box-shadow:0 8px 20px rgba(37,99,235,.3);
  cursor:pointer; z-index: 10040;
  opacity:0; transform: translateY(14px); transition: opacity .28s ease, transform .28s ease;
  pointer-events: none;
}
#ebnlFab.is-visible{ opacity:1; transform: translateY(0); pointer-events:auto; }
#ebnlFab:hover{ background: linear-gradient(90deg, var(--brand-2), var(--brand)); }

/* Backdrop solide — SUPPRESSION DU FLOU GLOBAL */
#ebnlBackdrop{
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .55);   /* voile sombre sans blur */
  backdrop-filter: none !important;     /* <- fix */
  -webkit-backdrop-filter: none !important;
  z-index: 10040;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
#ebnlBackdrop.is-visible{ opacity: 1; pointer-events: auto; }

/* Scroll lock quand modale ouverte — éviter les sauts sur mobile */
body.modal-open{
  overflow:hidden;
  height:auto;              /* <- fix: évite les décalages dus à 100dvh */
  touch-action:none;
}

/* Responsive : modale centrée SANS changer de transform entre états (évite le “flou/saut”) */
@media (max-width: 640px){
  #ebnlBanner{
    position: fixed !important;
    top:50% !important; left:50% !important; right:auto !important; bottom:auto !important;
    width:92vw !important; max-width:520px !important;
    max-height: min(92vh, calc(100svh - 28px), calc(100dvh - 28px));
    box-sizing: border-box;
    padding: clamp(12px, 4vw, 16px);
    padding-bottom: calc(clamp(12px,4vw,16px) + env(safe-area-inset-bottom,0px));
    transform: translate(-50%, -50%) !important;  /* <- fix centrage */
    will-change: opacity, transform;
  }
  #ebnlBanner.is-visible{
    transform: translate(-50%, -50%) !important;  /* reste identique */
  }
  #ebnlBanner.show{
    transform: translate(-50%,-50%) !important;   /* compat classe .show */
  }
  #ebnlFab{ bottom:12px; right:12px; }
  .menu.open{ z-index: 200; }                     /* sous la modale */
}

/* Accessibilité : réduit les anims si demandé */
@media (prefers-reduced-motion:reduce){
  #ebnlBanner, #ebnlFab, #ebnlBackdrop{ transition:none !important; }
}

/* Compat .show (utilisée par certains JS) */
#ebnlBanner.show{
  opacity:1;
  /* ne pas écraser le transform en mobile : géré ci-dessus */
  pointer-events:auto;
}
/* ===== Anti-blur mobile (hard fix) ===== */
@media (max-width: 640px){
  /* 1) Le backdrop ne doit JAMAIS flouter */
  #ebnlBackdrop{
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
  }

  /* 2) Quand la modale est ouverte, on neutralise TOUT filtre/flou du reste de la page,
        même si une autre feuille déclare blur/backdrop-filter */
  body.modal-open *:not(#ebnlBanner):not(#ebnlBanner *):not(#ebnlBackdrop){
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
  }

  /* 3) Forcer l’empilement par-dessus tout (au cas où un parent crée un contexte) */
  #ebnlBanner{ z-index: 2147483646 !important; }
  #ebnlBackdrop{ z-index: 2147483645 !important; }
}
