/* =========================================================
   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}
@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;
  }
  .menu.open a{ padding:12px 14px; font-size:1.02rem }
}



/* -------------------- HERO -------------------- */
.page-hero{
  position:relative;padding:72px 0 90px;color:#fff;overflow:hidden;
  background-image:url('../../assets/img/15.png');
  background-size:cover;background-position:center;
}
.page-hero::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(2,8,23,.65),rgba(2,8,23,.50) 40%,rgba(2,8,23,.2) 70%,rgba(2,8,23,0) 100%);
}
.page-hero .container{position:relative;z-index:1}
.page-hero h1{margin:0;font-size:clamp(30px,4vw,44px);font-weight:900;letter-spacing:-.02em;text-shadow:0 1px 12px rgba(0,0,0,.22)}
.crumbs{display:flex;align-items:center;gap:10px;margin-top:8px;color:#e3eeff;flex-wrap:wrap}
.crumbs a{text-decoration:underline}

/* -------------------- INTRO + GRID SERVICES -------------------- */
.svc-intro{ padding:42px 0 10px; background:#fff }
.svc-intro h2{ margin:0 0 8px; font-size:clamp(22px,2.6vw,30px); letter-spacing:-.01em }

.svc-grid-wrap{ padding:26px 0 54px; background:#fff }
.svc-grid{
  display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:22px;
}
@media (max-width:1100px){ .svc-grid{ grid-template-columns: repeat(2, minmax(0,1fr)) } }
@media (max-width:720px){ .svc-grid{ grid-template-columns: 1fr } }

/* Carte service */
.svc-card{
  overflow:hidden; border-radius:18px; border:1px solid var(--line);
  box-shadow:var(--shadow); display:flex; flex-direction:column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; background:#fff;
}
.svc-card:hover{ transform:translateY(-4px); border-color:#d6e6ff; box-shadow:0 16px 34px rgba(16,24,40,.12) }

.svc-media{ margin:0; aspect-ratio:16/9; overflow:hidden }
.svc-media img{ width:100%; height:100%; object-fit:cover; transform:scale(1.02); transition:transform .35s ease }
.svc-card:hover .svc-media img{ transform:scale(1.06) }

.svc-body{ padding:18px 18px 16px }
.svc-body h3{ margin:2px 0 10px; font-size:1.08rem; font-weight:900; letter-spacing:.01em; color:#0f172a }
.svc-points{ margin:0; padding:0; list-style:none; display:grid; gap:6px; color:var(--ink-2) }
.svc-points li{ position:relative; padding-left:16px }
.svc-points li::before{
  content:""; position:absolute; left:0; top:.62em; width:8px; height:8px; border-radius:50%;
  background:linear-gradient(90deg,var(--brand),var(--brand-2)); box-shadow:0 0 0 2px #eaf0ff;
}

/* CTA flottante */
.svc-cta{
  margin-top:12px; display:inline-grid; place-items:center; width:36px; height:36px; border-radius:999px;
  background:var(--grad); color:#fff; font-weight:900; box-shadow:0 10px 22px rgba(37,99,235,.25); transition:transform .18s ease;
}
.svc-cta:hover{ transform: translateX(3px) }

/* -------------------- FAQ courte -------------------- */
.svc-faq{ background:var(--bg-soft); padding:54px 0 }
.faq-head h2{ margin:.3rem 0 10px }
.faq-grid{ margin-top:14px; display:grid; gap:18px; grid-template-columns: repeat(4,minmax(0,1fr)) }
@media (max-width:1100px){ .faq-grid{ grid-template-columns: 1fr 1fr } }
@media (max-width:720px){ .faq-grid{ grid-template-columns: 1fr } }
.faq-item{ padding:16px 18px }
.faq-item h3{ margin:6px 0 6px; font-weight:800; color:#0f172a }
.faq-item p{ margin:0 }

/* -------------------- CTA -------------------- */
.cta-band{background:linear-gradient(180deg,var(--brand-3),#0b3aa7);padding:36px 0;color:#fff;margin:36px 0 0}
.cta-band .wrap{display:flex;align-items:center;justify-content:space-between;gap:18px}
.cta-band h3{margin:0;font-weight:900;font-size:clamp(22px,3vw,32px)}
.cta-band .btn-cta{background:var(--grad)}
@media (max-width:1100px){ .cta-band .wrap{flex-direction:column;text-align:center} }

/* -------------------- 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;}
}


/* -------------------- Responsive (général) -------------------- */
@media (max-width:1200px){
  .container{padding:0 16px}
}
@media (max-width:900px){
  .brand-name{font-size:1rem}
}
@media (max-width:720px){
  .footer-grid{grid-template-columns:1fr}
}

/* Petits écrans ultra compacts */
@media (max-width:400px){
  .menu{ right:8px; width:calc(100vw - 16px) }
  .brand-name{max-width:60vw}
}

/* -------------------- Accessibilité / Motion -------------------- */
@media (prefers-reduced-motion:reduce){
  .svc-card,.svc-media img{transition:none}
  .menu{transition:none}
}

/* ===== Bouton Retour en haut ===== */
.toTop{
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0));
  bottom: calc(16px + env(safe-area-inset-bottom, 0));
  width: 46px; height: 46px; min-width: 46px;
  display: grid; place-items: center;
  border: 0; border-radius: 999px;
  color: #fff; background: var(--grad);
  box-shadow: 0 10px 22px rgba(37,99,235,.28);
  cursor: pointer; z-index: 120; /* au-dessus du footer et autres UI */
  opacity: 0; visibility: hidden;
  transform: translateY(8px) scale(.96);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.toTop svg{ display:block }
.toTop:is(:hover,:focus-visible){ transform: translateY(0) scale(1.03) }
.toTop:focus-visible{ outline: 3px solid rgba(37,99,235,.35); outline-offset: 3px }

/* visible après défilement */
.toTop.is-visible{
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
}

/* si un autre FAB est en bas à droite, remonte un peu le bouton */
@media (max-width:980px){
  .toTop{ bottom: calc(22px + env(safe-area-inset-bottom, 0)) }
}

@media (prefers-reduced-motion:reduce){
  .toTop{ transition: none }
}
