/* ==========================================================================
   ATLAS CONNECT · PREMIUM POLISH LAYER (global)
   Charge APRÈS atlas-dark-mode.css et les CSS de page.
   Objectif : harmoniser ombres, focus, transitions, typo, micro-interactions
   sans casser le layout existant.
   ========================================================================== */

/* ───── Tokens premium (additionnels : ne touchent pas aux variables existantes) ───── */
:root {
  --ease-premium: cubic-bezier(.22,.68,0,1);
  --ease-spring:  cubic-bezier(.175,.885,.32,1.275);
  --focus-ring:   0 0 0 3px rgba(96,165,250,.35);
  --premium-sh-sm: 0 2px 6px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.08);
  --premium-sh-md: 0 4px 10px rgba(15,23,42,.08), 0 22px 50px rgba(15,23,42,.12);
  --premium-sh-lg: 0 8px 20px rgba(15,23,42,.10), 0 40px 100px rgba(15,23,42,.18);
}

/* ───── Anti-aliasing premium partout ───── */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { font-feature-settings: 'ss01' on, 'cv11' on, 'kern' on; letter-spacing: -.005em; }
h1, h2, h3, h4, h5, h6 { letter-spacing: -.018em; }

/* Sélection texte teintée Atlas */
::selection { background: rgba(37,99,235,.32); color: inherit; }
body.atlas-dark ::selection { background: rgba(96,165,250,.40); color: #fff; }

/* Scroll plus doux + scrollbar discrète */
html { scroll-behavior: smooth; }
@supports (scrollbar-width: thin) {
  html { scrollbar-width: thin; scrollbar-color: rgba(96,165,250,.35) transparent; }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(96,165,250,.30), rgba(37,99,235,.45));
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(96,165,250,.50), rgba(37,99,235,.65));
  background-clip: padding-box;
}

/* ───── Focus visible universel · cohérence accessibilité ───── */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.btn-orange:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-ghost-premium:focus-visible,
.nav-cta:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), var(--sh-sm, 0 2px 8px rgba(0,0,0,.08)) !important;
}

/* ───── Navbar · finition premium ───── */
.header { transition: background .35s var(--ease-premium), border-color .35s var(--ease-premium); }
.nav a {
  position: relative;
  transition: color .25s var(--ease-premium);
}
.nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 50%; right: 50%; bottom: 4px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--blue-l, #60a5fa), transparent);
  transition: left .3s var(--ease-premium), right .3s var(--ease-premium);
  border-radius: 1px;
}
.nav a:not(.nav-cta):hover::after,
.nav a:not(.nav-cta).active::after { left: 12px; right: 12px; }

/* CTA orange · ressort plus net + focus ring */
.nav-cta,
.btn-orange,
.btn-primary {
  transition: transform .18s var(--ease-spring), background-color .2s ease, box-shadow .25s ease !important;
}
.nav-cta:active,
.btn-orange:active,
.btn-primary:active { transform: translateY(0) scale(.97) !important; }

/* ───── Cartes · hover lift homogène ───── */
.svc, .svc-card, .pq-card, .benefit-card, .prest-item, .proc-step,
.faq-item, .p3-step, .why-feat, .who-card, .proj-card, .rew,
.quote-card, .choice-inner, .why-card, .reassure-list li,
.conf-card, .wall-tile, .panne, .solution-card, .ia-svc-card,
.domaine, .plan, .method-step, .inc-item, .ritem, .dtab,
.vision-core, .compare-vs-core, .story-year, .story-quote-card,
.svc-mini, .offer, .fa-mini-card, .fa-card {
  will-change: transform;
  transition:
    transform .35s var(--ease-premium),
    box-shadow .35s var(--ease-premium),
    border-color .25s ease,
    background .25s ease !important;
}

/* ───── Liens texte discrets ───── */
.section a:not([class]),
.faq-a a:not([class]),
.footer-bio a:not([class]) {
  color: var(--blue-b, #2563EB);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .35s var(--ease-premium);
}
.section a:not([class]):hover,
.faq-a a:not([class]):hover,
.footer-bio a:not([class]):hover { background-size: 100% 1px; }

/* ───── Boutons primaires · glow renforcé au focus ───── */
.btn-orange:focus-visible,
.nav-cta:focus-visible,
.btn-primary:focus-visible {
  box-shadow:
    0 0 0 3px rgba(249,115,22,.30),
    0 8px 24px rgba(249,115,22,.40) !important;
}

/* ───── Images & media · douceur sur fond ───── */
img:not([src*=".svg"]):not(.logo-img):not(.footer-logo) {
  -webkit-user-drag: none;
}

/* ───── Inputs · texte premium ───── */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  transition: border-color .2s ease, box-shadow .25s ease, background .2s ease !important;
}

/* ───── Footer · finition douce ───── */
.footer-links a,
.footer-contact-link,
.footer-legal a {
  transition: color .2s ease, transform .2s ease;
}
.footer-links a:hover,
.footer-contact-link:hover { transform: translateX(2px); }

/* ───── Section padding · respiration cohérente (sans casser) ───── */
@media (min-width: 1100px) {
  .section { padding: 104px 0; }
}

/* ───── Reveal · easing premium ───── */
.reveal { transition: opacity .7s var(--ease-premium), transform .7s var(--ease-premium); }

/* ───── Ombres premium pour cartes en clair ───── */
body:not(.atlas-dark) .svc:not(.highlight):hover,
body:not(.atlas-dark) .svc-card:hover,
body:not(.atlas-dark) .pq-card:hover,
body:not(.atlas-dark) .benefit-card:hover,
body:not(.atlas-dark) .why-feat:hover,
body:not(.atlas-dark) .who-card:not(.pro):hover,
body:not(.atlas-dark) .quote-card:hover,
body:not(.atlas-dark) .rew:hover,
body:not(.atlas-dark) .proj-card:hover {
  box-shadow: var(--premium-sh-lg) !important;
}

/* ───── Pills/badges · cohérence ───── */
.svc-pill, .chip, .filter-btn, .hero-pill, .svc-hero-pill, .rew-tier-chip {
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}

/* ───── Mascottes & images héros · sharpening léger ───── */
.hero-mascot, .why-img-frame img {
  image-rendering: -webkit-optimize-contrast;
}

/* ───── Reduce motion respect global ───── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ───── Polish typographique sur les eyebrows ───── */
.s-eyebrow { font-feature-settings: 'tnum' on, 'kern' on; }

/* ───── Hover lift homogène pour boutons ghost ───── */
.btn-secondary, .btn-ghost, .btn-ghost-light, .btn-ghost-premium, .btn-step {
  transition: background .25s ease, border-color .25s ease, transform .18s var(--ease-spring), box-shadow .25s ease !important;
}
.btn-secondary:hover, .btn-ghost:hover, .btn-ghost-light:hover, .btn-ghost-premium:hover {
  transform: translateY(-2px);
}


/* ════════════════════════════════════════════════════════════════════════
   FOOTER COMPACT PREMIUM · uniformisé sur toutes les pages (light + dark)
   ════════════════════════════════════════════════════════════════════════ */
body .footer {
  background: linear-gradient(180deg, #050d2a 0%, #03081a 100%);
  border-top: 0;
  position: relative; overflow: hidden;
}
body .footer::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 220px;
  background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,.10) 0%, transparent 70%);
  pointer-events: none;
}
body .footer::after {
  content: '';
  position: absolute; left: 50%; top: 0;
  transform: translateX(-50%);
  width: min(60%, 800px); height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(96,165,250,.25) 50%, transparent 100%);
  box-shadow: 0 0 12px rgba(96,165,250,.20);
  pointer-events: none;
}

body .footer-main {
  max-width: 1200px !important; margin: 0 auto !important;
  padding: 56px 48px 32px !important;
  display: grid !important;
  grid-template-columns: 2.2fr .9fr .9fr .9fr .9fr !important;
  gap: 44px !important;
  position: relative; z-index: 1;
}

body .footer-logo {
  height: 44px !important; width: auto !important;
  margin-bottom: 16px !important; display: block !important;
  filter: brightness(1.15) drop-shadow(0 2px 10px rgba(37,99,235,.35)) !important;
}
body .footer-bio {
  font-size: .82rem !important;
  color: rgba(255,255,255,.55) !important;
  line-height: 1.65 !important;
  max-width: 320px !important;
  margin-bottom: 22px !important;
}

body .footer-socials { display: flex !important; gap: 8px !important; }
body .footer-social {
  width: 34px !important; height: 34px !important;
  border-radius: 10px !important;
  background: rgba(96,165,250,.08) !important;
  border: 1px solid rgba(96,165,250,.16) !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  color: rgba(255,255,255,.55) !important;
  text-decoration: none !important;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  transition: background .25s, color .25s, border-color .25s, transform .2s, box-shadow .25s !important;
}
body .footer-social svg { width: 14px !important; height: 14px !important; fill: currentColor !important; }
body .footer-social:hover {
  background: rgba(96,165,250,.18) !important;
  border-color: rgba(147,197,253,.40) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 18px rgba(96,165,250,.35) !important;
}
/* Neutralise les couleurs par marque (LinkedIn/Facebook/Instagram) → uniformité */
body .footer-social.linkedin:hover,
body .footer-social.facebook:hover,
body .footer-social.instagram:hover {
  background: rgba(96,165,250,.18) !important;
  color: #ffffff !important;
  border-color: rgba(147,197,253,.40) !important;
}

body .footer-col-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  font-size: .68rem !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.55) !important;
  margin-bottom: 16px !important;
  position: relative !important;
  padding-bottom: 10px !important;
}
body .footer-col-title::after {
  content: '' !important;
  position: absolute !important;
  left: 0 !important; bottom: 0 !important;
  width: 22px !important; height: 2px !important;
  background: #FF6B1A !important;
  border-radius: 2px !important;
  box-shadow: 0 0 6px rgba(249,115,22,.50) !important;
}

body .footer-links { list-style: none !important; padding: 0 !important; margin: 0 !important; }
body .footer-links li { margin-bottom: 0 !important; }
body .footer-links a {
  display: inline-block !important;
  font-size: .82rem !important;
  color: rgba(255,255,255,.60) !important;
  text-decoration: none !important;
  padding: 4px 0 !important;
  position: relative;
  transition: color .25s, transform .2s, text-shadow .25s !important;
}
body .footer-links a::after { display: none !important; }
body .footer-links a:hover {
  color: #ffffff !important;
  transform: translateX(2px);
  text-shadow: 0 0 10px rgba(96,165,250,.50) !important;
}

body .footer-sub {
  max-width: 1296px !important;
  margin: 0 auto !important;
  padding: 18px 48px !important;
  border-top: 1px solid rgba(96,165,250,.10) !important;
  font-size: .76rem !important;
  color: rgba(255,255,255,.45) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  background: transparent !important;
}
body .footer-sub a {
  color: rgba(255,255,255,.55) !important;
  text-decoration: none !important;
  transition: color .2s !important;
}
body .footer-sub a:hover { color: #ffffff !important; }

@media (max-width: 1024px) {
  body .footer-main { grid-template-columns: 1fr 1fr !important; gap: 32px !important; padding: 48px 32px 24px !important; }
}
@media (max-width: 640px) {
  body .footer-main { grid-template-columns:minmax(0,1fr)!important; gap: 28px !important; padding: 40px 24px 20px !important; }
  body .footer-sub  { padding: 16px 24px !important; flex-direction: column !important; align-items: flex-start !important; }
}

/* ════════════════════════════════════════════════════════════════════════
   CTA "Un dernier mot" · boutons toujours animés (toutes les pages)
   Bouton principal = pulse glow orange · Bouton "appeler" = glow + icône qui sonne
   ════════════════════════════════════════════════════════════════════════ */
@keyframes acCtaPulse {
  0%, 100% { box-shadow: 0 8px 26px rgba(249,115,22,.45), 0 0 0 0 rgba(249,115,22,.50); }
  50%      { box-shadow: 0 12px 36px rgba(249,115,22,.62), 0 0 0 14px rgba(249,115,22,0); }
}
.cta-band .btn-orange,
.cta-band .btn-cta-primary,
.cta-final-btns .btn-primary,
.process-cta-block .btn-orange,
.at-btn-primary {
  animation: acCtaPulse 2.3s ease-in-out infinite !important;
}
.cta-band .btn-orange:hover,
.cta-band .btn-cta-primary:hover,
.cta-final-btns .btn-primary:hover,
.process-cta-block .btn-orange:hover,
.at-btn-primary:hover { animation-play-state: paused !important; }

@keyframes acCallGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(96,165,250,0); border-color: rgba(96,165,250,.32); }
  50%      { box-shadow: 0 0 0 6px rgba(96,165,250,.14), 0 0 24px rgba(96,165,250,.42); border-color: rgba(147,197,253,.65); }
}
.cta-band a[href^="tel:"],
.cta-final-btns a[href^="tel:"],
.process-cta-block a[href^="tel:"],
.at-btn-ghost {
  animation: acCallGlow 2.3s ease-in-out infinite !important;
}
@keyframes acRing {
  0%, 60%, 100% { transform: rotate(0); }
  64% { transform: rotate(-15deg); }
  68% { transform: rotate(12deg); }
  72% { transform: rotate(-9deg); }
  76% { transform: rotate(6deg); }
  80% { transform: rotate(-3deg); }
  84% { transform: rotate(0); }
}
.cta-band a[href^="tel:"] svg,
.cta-final-btns a[href^="tel:"] svg,
.process-cta-block a[href^="tel:"] svg {
  animation: acRing 2.3s ease-in-out infinite;
  transform-origin: 50% 50%;
}
@media (prefers-reduced-motion: reduce) {
  .cta-band .btn-orange, .cta-band .btn-cta-primary, .cta-final-btns .btn-primary, .process-cta-block .btn-orange, .at-btn-primary,
  .cta-band a[href^="tel:"], .cta-final-btns a[href^="tel:"], .process-cta-block a[href^="tel:"], .at-btn-ghost,
  .cta-band a[href^="tel:"] svg, .cta-final-btns a[href^="tel:"] svg, .process-cta-block a[href^="tel:"] svg { animation: none !important; }
}

/* ── Atlas Mobile (accueil) · "Découvrir Atlas Mobile" + "Voir la roadmap" : plus visibles + animés ── */
@keyframes acStrongPulse {
  0%, 100% { box-shadow: 0 8px 26px rgba(249,115,22,.50), 0 0 0 0 rgba(249,115,22,.55), 0 0 40px rgba(249,115,22,.25); }
  50%      { box-shadow: 0 14px 40px rgba(249,115,22,.70), 0 0 0 16px rgba(249,115,22,0), 0 0 64px rgba(249,115,22,.40); }
}
@keyframes acGhostGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(96,165,250,0), 0 6px 20px rgba(2,6,30,.18); border-color: rgba(96,165,250,.42); }
  50%      { box-shadow: 0 0 0 7px rgba(96,165,250,.16), 0 0 32px rgba(96,165,250,.58); border-color: rgba(147,197,253,.9); }
}
.at-btn-primary,
.hero-actions .btn-orange,
.hub-actions .btn-primary,
.atm-mini-ctas .btn-primary { animation: acStrongPulse 2.2s ease-in-out infinite !important; }
.at-btn-ghost,
.btn-ghost-premium,
.hub-actions .btn-secondary,
.atm-mini-ctas .btn-secondary { animation: acGhostGlow 2.2s ease-in-out infinite !important; }
.at-btn-primary:hover, .at-btn-ghost:hover,
.hero-actions .btn-orange:hover, .btn-ghost-premium:hover,
.hub-actions .btn-primary:hover, .hub-actions .btn-secondary:hover,
.atm-mini-ctas .btn-primary:hover, .atm-mini-ctas .btn-secondary:hover { animation-play-state: paused !important; }
.at-btn-primary svg { animation: acRing 2.6s ease-in-out infinite; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: reduce) {
  .at-btn-primary, .at-btn-ghost, .at-btn-primary svg,
  .hero-actions .btn-orange, .btn-ghost-premium,
  .hub-actions .btn-primary, .hub-actions .btn-secondary { animation: none !important; }
}

/* ── "Passez à l'action" (pages services) · survol des boutons → réassurances animées (comme l'accueil) ── */
@keyframes acReassPop {
  0%   { transform: translateY(0) scale(1); }
  45%  { transform: translateY(-7px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}
.cta-final-reass span { transition: color .3s; }
.cta-final-reass span svg { transition: transform .3s cubic-bezier(.22,.68,0,1.4), filter .3s; }
.cta-final-btns:hover ~ .cta-final-reass span {
  color: rgba(255,255,255,.9);
  animation: acReassPop .55s cubic-bezier(.22,.68,0,1.4) both;
}
.cta-final-btns:hover ~ .cta-final-reass span:nth-child(1) { animation-delay: 0s }
.cta-final-btns:hover ~ .cta-final-reass span:nth-child(2) { animation-delay: .07s }
.cta-final-btns:hover ~ .cta-final-reass span:nth-child(3) { animation-delay: .14s }
.cta-final-btns:hover ~ .cta-final-reass span:nth-child(4) { animation-delay: .21s }
.cta-final-btns:hover ~ .cta-final-reass span svg {
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px rgba(96,165,250,.6));
}
@media (prefers-reduced-motion: reduce) {
  .cta-final-btns:hover ~ .cta-final-reass span { animation: none !important; }
}
/* Même effet sur les modules .cta-band (accueil / services hub) · réf. accueil */
.cta-reassurance .cta-reass-item { transition: color .3s; }
.cta-reassurance .cta-reass-item svg { transition: transform .3s cubic-bezier(.22,.68,0,1.4), filter .3s; }
.cta-btns:hover ~ .cta-reassurance .cta-reass-item {
  color: var(--navy);
  animation: acReassPop .55s cubic-bezier(.22,.68,0,1.4) both;
}
.cta-btns:hover ~ .cta-reassurance .cta-reass-item:nth-child(1) { animation-delay: 0s }
.cta-btns:hover ~ .cta-reassurance .cta-reass-item:nth-child(2) { animation-delay: .07s }
.cta-btns:hover ~ .cta-reassurance .cta-reass-item:nth-child(3) { animation-delay: .14s }
.cta-btns:hover ~ .cta-reassurance .cta-reass-item:nth-child(4) { animation-delay: .21s }
.cta-btns:hover ~ .cta-reassurance .cta-reass-item svg {
  transform: scale(1.06);
  filter: drop-shadow(0 0 6px rgba(37,99,235,.5));
}
@media (prefers-reduced-motion: reduce) {
  .cta-btns:hover ~ .cta-reassurance .cta-reass-item { animation: none !important; }
}

/* Atlas Mobile · bloc "Dernière étape" · boutons animés non-stop */
.final-ctas .btn-orange { animation: acStrongPulse 2.2s ease-in-out infinite !important; }
.final-ctas .btn-ghost-light { animation: acGhostGlow 2.2s ease-in-out infinite !important; }
.final-ctas .btn-orange:hover, .final-ctas .btn-ghost-light:hover { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .final-ctas .btn-orange, .final-ctas .btn-ghost-light { animation: none !important; }
}

/* Devis · bloc "Prêt à démarrer" · boutons animés non-stop */
.cta-content .btn-orange { animation: acStrongPulse 2.2s ease-in-out infinite !important; }
.cta-content .btn-ghost-light { animation: acGhostGlow 2.2s ease-in-out infinite !important; }
.cta-content .btn-orange:hover, .cta-content .btn-ghost-light:hover { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .cta-content .btn-orange, .cta-content .btn-ghost-light { animation: none !important; }
}

/* ── Promo bar · -10% nouveaux clients (toutes pages) ── */
.promo-bar { position: relative; z-index: 200; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 20px; text-align: center; background: linear-gradient(90deg, #0a1540 0%, #1e4cc4 50%, #0a1540 100%); background-size: 200% 100%; animation: promoBg 7s linear infinite; color: #fff; font-size: .83rem; font-weight: 500; border-bottom: 1px solid rgba(96,165,250,.28); overflow: hidden; }
@keyframes promoBg { to { background-position: 200% 0 } }
.promo-bar::before { content: ''; position: absolute; top: 0; bottom: 0; left: -30%; width: 26%; background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.2) 50%, transparent 100%); transform: skewX(-18deg); pointer-events: none; animation: promoShine 5s ease-in-out infinite; }
@keyframes promoShine { 0% { left: -30% } 55%, 100% { left: 130% } }
.promo-badge { display: inline-flex; align-items: center; font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: .9rem; color: #fff; background: var(--orange); padding: 3px 11px; border-radius: 50px; animation: promoPulse 1.8s ease-in-out infinite; }
@keyframes promoPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(249,115,22,.55) } 50% { box-shadow: 0 0 0 9px rgba(249,115,22,0) } }
.promo-text strong { color: #fff; font-weight: 700; }
.promo-cta { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: #fff; white-space: nowrap; border-bottom: 1px solid rgba(255,255,255,.55); transition: gap .2s, border-color .2s; text-decoration: none; }
.promo-cta:hover { gap: 9px; border-color: #fff; }
@media (max-width: 720px) { .promo-bar { font-size: .72rem; padding: 8px 12px; gap: 9px } .promo-text { display: none } }
@media (prefers-reduced-motion: reduce) { .promo-bar, .promo-bar::before, .promo-badge { animation: none } }

/* ── Portail client · pictogramme + menu navbar (toutes pages) ── */
.nav-portal { position: relative; display: inline-flex; }
.portal-btn { position: relative; width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(96,165,250,.1); border: 1px solid rgba(96,165,250,.22); color: rgba(255,255,255,.85); transition: transform .2s, background .2s, border-color .2s, box-shadow .25s; cursor: pointer; }
.portal-btn:hover { background: rgba(96,165,250,.2); border-color: rgba(96,165,250,.45); transform: translateY(-1px); box-shadow: 0 0 18px rgba(37,99,235,.4); }
.portal-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.portal-badge { position: absolute; top: 1px; right: 1px; width: 9px; height: 9px; min-width: 0; padding: 0; border-radius: 50%; background: var(--orange); font-size: 0; color: transparent; border: 2px solid #060e2b; animation: portalPulse 2s ease-in-out infinite; }
@keyframes portalPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,107,26,.55) } 50% { box-shadow: 0 0 0 6px rgba(255,107,26,0) } }
.portal-menu { position: absolute; top: calc(100% + 12px); right: 0; width: 250px; background: linear-gradient(160deg, rgba(16,30,68,.94), rgba(8,16,44,.96)); border: 1px solid rgba(96,165,250,.25); border-radius: 16px; padding: 8px; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 30px 70px -24px rgba(2,6,28,.85), 0 0 50px -20px rgba(37,99,235,.5); opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: top right; transition: opacity .25s, transform .25s cubic-bezier(.22,.68,0,1), visibility .25s; z-index: 300; }
.nav-portal:hover .portal-menu, .nav-portal:focus-within .portal-menu { opacity: 1; visibility: visible; transform: none; }
.pm-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; border-bottom: 1px solid rgba(96,165,250,.16); margin-bottom: 6px; }
.pm-ava { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(160deg,#2563eb,#60a5fa); display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk',sans-serif; font-weight: 700; font-size: .8rem; color: #fff; }
.pm-head strong { display: block; font-size: .85rem; color: #fff; }
.pm-head span { font-size: .7rem; color: #fdba74; }
.pm-item { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; font-size: .85rem; color: rgba(255,255,255,.8); transition: background .18s, color .18s; }
.pm-item svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.pm-item svg.pm-role-ic { opacity: 1; stroke-width: 2.1; filter: drop-shadow(0 0 5px currentColor); }
.pm-item:hover { background: rgba(96,165,250,.12); color: #fff; }
.pm-item .pm-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 7px var(--orange); }
.pm-logout { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 11px; border-radius: 10px; font: inherit; font-size: .85rem; cursor: pointer; border-top: 1px solid rgba(96,165,250,.16); margin-top: 6px; color: #f99; }
.pm-logout svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; opacity: .8; flex-shrink: 0; }
.pm-logout:hover { background: rgba(248,113,113,.12); }
/* Espace entre le bouton "Demander un devis" et le toggle thème clair/sombre (toutes pages) */
.nav .atlas-theme-toggle { margin-left: 8px; }

/* ── Portail · avatar compact (bouton fermé + lignes de menu) ── */
.pm-ava.sm { width: 26px; height: 26px; font-size: .68rem; flex-shrink: 0; }
.portal-btn .pm-ava { width: 24px; height: 24px; font-size: .64rem; }
.portal-count { position: absolute; top: -3px; right: -3px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--orange); color: #1a0e00; font-size: .58rem; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #060e2b; }

/* ── Portail · multi-profils connectés (accordéon) ── */
.pm-group { border-radius: 10px; margin-bottom: 2px; }
.pm-group summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 10px; cursor: pointer; color: #fff; }
.pm-group summary::-webkit-details-marker { display: none; }
.pm-group summary:hover { background: rgba(96,165,250,.1); }
.pm-group summary strong { display: block; font-size: .82rem; }
.pm-group summary span { font-size: .68rem; color: rgba(255,255,255,.55); }
.pm-chev { width: 14px; height: 14px; margin-left: auto; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .2s; flex-shrink: 0; }
.pm-group[open] .pm-chev { transform: rotate(180deg); }
.pm-group-body { padding: 2px 0 6px 6px; }

/* ── Portail · bloc compte dans le menu mobile (toutes pages) ── */
.mnav-account { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 2px; }
.mnav-account .mnav-acc-h { padding: 4px 16px 8px; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.45); font-weight: 700; }
.mnav-account .pm-item, .mnav-account .pm-group summary { padding: 12px 16px; border-radius: 11px; color: rgba(255,255,255,.85); font-size: .88rem; }
.mnav-account .pm-item:hover, .mnav-account .pm-group summary:hover { background: rgba(255,255,255,.07); color: #fff; }
.mnav-account .pm-group-body { padding-left: 10px; }
.mnav-account .pm-logout { color: #f99; }

/* ==========================================================================
   HARMONIE GLOBALE DES PICTOS (pastilles d'icônes dans les modules / blocs)
   Au survol du bloc : la pastille se remplit et l'icône passe en blanc.
   · Mode clair  → pastille BLEUE + icône blanche
   · Mode sombre → pastille ORANGE + icône blanche
   Ciblage structurel : toute pastille dont la classe contient -ico/-icon
   ET qui contient directement un <svg>. (Les toggles FAQ ne matchent pas.)
   ========================================================================== */
[class*="-ico"]:has(> svg),
[class*="-icon"]:has(> svg) {
  transition: background-color .25s var(--ease-premium), border-color .25s, transform .25s, box-shadow .25s;
}
[class*="-ico"] > svg,
[class*="-icon"] > svg { transition: stroke .25s, fill .25s, color .25s; }

/* ---- MODE CLAIR : pastille bleue, icône blanche ---- */
:hover > [class*="-ico"]:has(> svg),
:hover > [class*="-icon"]:has(> svg),
[class*="-ico"]:has(> svg):hover,
[class*="-icon"]:has(> svg):hover,
.domaine:hover .domaine-ico,
.why-badge:hover .wb-ico {
  background-color: var(--blue-b, #2563EB) !important;
  border-color: var(--blue-b, #2563EB) !important;
}
:hover > [class*="-ico"]:has(> svg) > svg,
:hover > [class*="-icon"]:has(> svg) > svg,
[class*="-ico"]:has(> svg):hover > svg,
[class*="-icon"]:has(> svg):hover > svg,
.domaine:hover .domaine-ico > svg,
.why-badge:hover .wb-ico > svg {
  stroke: #fff !important;
  color: #fff !important;
}

/* ---- MODE SOMBRE : pastille orange, icône blanche ---- */
body.atlas-dark :hover > [class*="-ico"]:has(> svg),
body.atlas-dark :hover > [class*="-icon"]:has(> svg),
body.atlas-dark [class*="-ico"]:has(> svg):hover,
body.atlas-dark [class*="-icon"]:has(> svg):hover,
body.atlas-dark .domaine:hover .domaine-ico,
body.atlas-dark .why-badge:hover .wb-ico {
  background-color: var(--orange, #FF6B1A) !important;
  border-color: var(--orange, #FF6B1A) !important;
}
body.atlas-dark :hover > [class*="-ico"]:has(> svg) > svg,
body.atlas-dark :hover > [class*="-icon"]:has(> svg) > svg,
body.atlas-dark [class*="-ico"]:has(> svg):hover > svg,
body.atlas-dark [class*="-icon"]:has(> svg):hover > svg,
body.atlas-dark .domaine:hover .domaine-ico > svg,
body.atlas-dark .why-badge:hover .wb-ico > svg {
  stroke: #fff !important;
  color: #fff !important;
}
