/*
 * Enas Digital — direction artistique Glass Premium
 * Couche visuelle uniquement : aucun contenu, lien ou comportement métier modifié.
 */

:root {
  --glass-background: rgba(255, 255, 255, .58);
  --glass-background-soft: rgba(247, 250, 255, .44);
  --glass-background-strong: rgba(255, 255, 255, .78);
  --glass-background-dark: rgba(18, 31, 58, .82);
  --glass-border: rgba(255, 255, 255, .78);
  --glass-border-dark: rgba(134, 169, 226, .22);
  --glass-highlight: rgba(255, 255, 255, .92);
  --glass-blur: 22px;
  --glass-shadow: 0 24px 70px rgba(38, 63, 112, .10), 0 4px 18px rgba(28, 44, 78, .06);
  --glass-shadow-soft: 0 14px 44px rgba(45, 72, 122, .08), 0 2px 8px rgba(30, 47, 82, .04);
  --glass-shadow-hover: 0 30px 80px rgba(42, 75, 139, .15), 0 8px 24px rgba(40, 59, 99, .08);
  --glow-primary: rgba(87, 145, 255, .22);
  --glow-secondary: rgba(132, 108, 255, .14);
  --glow-accent: rgba(225, 128, 154, .11);
  --background-primary: #f7faff;
  --background-secondary: #edf4ff;
  --background-deep: #14213e;
  --text-primary: #14203a;
  --text-secondary: #59677f;
  --glass-accent: #365fba;
  --glass-accent-hover: #294c9b;
  --glass-radius: 24px;
  --glass-radius-small: 17px;
  --glass-transition: 320ms cubic-bezier(.22, .61, .36, 1);
  --ds-bg: var(--background-primary);
  --ds-surface: rgba(241, 246, 255, .72);
  --ds-ink: var(--text-primary);
  --ds-ink-2: var(--text-secondary);
  --ds-muted: #74839b;
  --ds-border: rgba(95, 125, 176, .18);
  --ds-accent: var(--glass-accent);
  --ds-accent-hover: var(--glass-accent-hover);
  --ds-footer: var(--background-deep);
  --ds-radius-card: var(--glass-radius);
  --ds-shadow: var(--glass-shadow-soft);
}

html {
  background: var(--background-primary);
}

body {
  position: relative;
  isolation: isolate;
  color: var(--text-secondary) !important;
  background:
    radial-gradient(ellipse 60% 38% at 8% 4%, rgba(125, 177, 255, .22), transparent 72%),
    radial-gradient(ellipse 52% 38% at 92% 13%, rgba(158, 129, 245, .13), transparent 72%),
    radial-gradient(ellipse 55% 35% at 54% 48%, rgba(232, 157, 184, .08), transparent 74%),
    linear-gradient(155deg, #fbfdff 0%, #f3f8ff 46%, #f9fbff 100%) !important;
  background-attachment: fixed !important;
}

body::before,
body::after {
  position: fixed;
  z-index: -2;
  width: 44vw;
  height: 44vw;
  min-width: 360px;
  min-height: 360px;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  filter: blur(88px);
  opacity: .52;
}

body::before {
  top: -20vw;
  left: -13vw;
  background: radial-gradient(circle, var(--glow-primary), transparent 68%);
}

body::after {
  right: -17vw;
  bottom: -22vw;
  background: radial-gradient(circle, var(--glow-secondary), transparent 70%);
}

main {
  position: relative;
  z-index: 1;
}

body,
p,
li,
.lead,
.section-subtitle,
.body-intro {
  color: var(--text-secondary) !important;
}

h1,
h2,
h3,
h4,
.section-title,
.schema-title {
  color: var(--text-primary) !important;
}

h1,
.hero h1,
.article-hero h1,
.service-detail-hero h1,
.services-page .section-head h1 {
  letter-spacing: -.047em !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .82);
}

.label,
.tag,
.eyebrow,
.detail-category,
.hero-kicker,
.step-kicker,
.trust-kicker {
  color: #496ab1 !important;
  letter-spacing: .11em !important;
}

/* Navigation givrée, plus dense au défilement. */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .68) !important;
  background: rgba(249, 252, 255, .62) !important;
  box-shadow: 0 10px 36px rgba(32, 56, 99, .055) !important;
  backdrop-filter: blur(18px) saturate(1.25) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.25) !important;
  transition: background-color var(--glass-transition), box-shadow var(--glass-transition), backdrop-filter var(--glass-transition) !important;
}

.site-header::after {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .96), transparent);
  content: "";
  pointer-events: none;
}

.site-header.is-scrolled {
  background: rgba(249, 252, 255, .82) !important;
  box-shadow: 0 14px 44px rgba(32, 56, 99, .09) !important;
  backdrop-filter: blur(25px) saturate(1.35) !important;
  -webkit-backdrop-filter: blur(25px) saturate(1.35) !important;
}

.site-header .topbar {
  min-height: 78px !important;
}

.site-header .logo-image {
  border-radius: 16px !important;
}

.site-header .nav > a:not(.cta),
.site-header .search-toggle,
.site-header .nav-phone,
.site-header .nav-calendly,
.site-header .nav-home {
  border-color: rgba(112, 137, 179, .16) !important;
  color: #3d4b66 !important;
  background: rgba(255, 255, 255, .48) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .76) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  transition: color var(--glass-transition), background-color var(--glass-transition), border-color var(--glass-transition), transform var(--glass-transition) !important;
}

.site-header .nav > a:not(.cta):hover,
.site-header .search-toggle:hover {
  border-color: rgba(69, 103, 172, .28) !important;
  color: var(--glass-accent-hover) !important;
  background: rgba(255, 255, 255, .76) !important;
  transform: translateY(-1px);
}

/* CTA et boutons : verre dense, reflet intérieur et contraste professionnel. */
.btn,
.cta,
.panel-button,
.enas-about-editorial__button,
.back-link,
.service-link,
.chat-options button,
.chat-form button {
  position: relative;
  overflow: hidden;
  transition: transform var(--glass-transition), box-shadow var(--glass-transition), border-color var(--glass-transition), background-color var(--glass-transition) !important;
}

.btn::before,
.cta::before,
.panel-button::before,
.enas-about-editorial__button::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, .28), transparent 38%, transparent 70%, rgba(255, 255, 255, .12));
  content: "";
  pointer-events: none;
}

.btn-primary,
.btn--primary,
.cta,
.panel-button,
.enas-about-editorial__button,
.contact-form button[type="submit"] {
  border-color: rgba(67, 98, 166, .54) !important;
  color: #fff !important;
  background: linear-gradient(135deg, rgba(31, 51, 91, .98), rgba(52, 92, 174, .94)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 13px 30px rgba(43, 76, 143, .20) !important;
}

.btn-secondary,
.btn--secondary,
.back-link {
  border-color: rgba(92, 121, 171, .22) !important;
  color: var(--text-primary) !important;
  background: rgba(255, 255, 255, .58) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .94), 0 10px 26px rgba(47, 70, 113, .07) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

.btn:hover,
.cta:hover,
.panel-button:hover,
.enas-about-editorial__button:hover,
.back-link:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 17px 38px rgba(43, 76, 143, .22) !important;
}

.home-service-card .service-link,
.service-card .service-link,
.service-offer .service-link,
.family-cta .service-link {
  border: 1px solid rgba(67, 98, 166, .54) !important;
  color: #fff !important;
  background: linear-gradient(135deg, rgba(31, 51, 91, .98), rgba(52, 92, 174, .94)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 13px 30px rgba(43, 76, 143, .18) !important;
}

.home-service-card .service-link:hover,
.service-card .service-link:hover,
.service-offer .service-link:hover,
.family-cta .service-link:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #263e70, #416fc9) !important;
  transform: translateY(-2px) !important;
}

.btn:focus-visible,
.cta:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(64, 105, 191, .34) !important;
  outline-offset: 3px !important;
}

/* Hero : lumière atmosphérique, grand panneau flottant et profondeur. */
.hero,
.services-page,
.service-detail-hero,
.article-hero,
.blog-page,
.faq-page,
.enas-about-editorial--page {
  position: relative;
  overflow: hidden;
  background: transparent !important;
}

.hero::before,
.services-page::before,
.service-detail-hero::before,
.article-hero::before,
.blog-page::before,
.faq-page::before,
.enas-about-editorial--page::before {
  position: absolute;
  z-index: -1;
  inset: -18% -10% auto;
  height: 620px;
  background:
    radial-gradient(ellipse 42% 46% at 22% 28%, rgba(100, 160, 255, .25), transparent 74%),
    radial-gradient(ellipse 38% 44% at 78% 22%, rgba(146, 120, 239, .15), transparent 74%),
    radial-gradient(ellipse 38% 36% at 53% 64%, rgba(234, 158, 186, .09), transparent 75%);
  content: "";
  filter: blur(18px);
  pointer-events: none;
}

.hero {
  padding-top: clamp(44px, 6vw, 82px) !important;
  padding-bottom: clamp(72px, 9vw, 122px) !important;
}

.hero .hero-grid {
  position: relative;
  padding: clamp(30px, 5.2vw, 66px) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: clamp(26px, 4vw, 40px) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(238, 246, 255, .44)),
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, .88), transparent 38%) !important;
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight) !important;
  backdrop-filter: blur(25px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(25px) saturate(1.18) !important;
}

.hero .hero-grid::before {
  position: absolute;
  inset: 1px 12% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .96), transparent);
  content: "";
}

.hero-motion {
  border: 1px solid rgba(255, 255, 255, .72) !important;
  border-radius: 30px !important;
  background: url("../assets/hero-digital-consultant-realistic.jpg") center / cover no-repeat !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 24px 60px rgba(54, 85, 139, .14) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.hero-motion::before,
.hero-motion::after,
.hero-motion .motion-orbit {
  display: none !important;
}

.hero-motion .motion-screen {
  position: absolute !important;
  inset: clamp(24px, 4vw, 44px) auto clamp(24px, 4vw, 44px) clamp(22px, 4vw, 44px) !important;
  z-index: 2 !important;
  display: flex !important;
  width: min(58%, 390px) !important;
  padding: 0 !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 14px !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.hero-motion .motion-pill {
  width: 100% !important;
  min-height: 48px !important;
  margin-left: 0 !important;
  padding: 12px 17px !important;
  color: #17325f !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 12px 28px rgba(17, 35, 68, 0.18) !important;
  backdrop-filter: blur(10px) saturate(125%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(125%) !important;
  animation: none !important;
  transform: none !important;
}

.hero-motion .motion-pill:hover,
.hero-motion .motion-pill:focus-visible {
  color: #234f9f !important;
  background: #ffffff !important;
  transform: translateX(5px) !important;
}

.motion-screen,
.motion-pill {
  border-color: rgba(255, 255, 255, .74) !important;
  background: rgba(255, 255, 255, .64) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 30px rgba(52, 77, 126, .10) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

.motion-pill::before {
  background: linear-gradient(135deg, #6f9be9, #8c78d9) !important;
  box-shadow: 0 0 0 6px rgba(102, 143, 218, .14), 0 4px 14px rgba(70, 102, 167, .18) !important;
}

.motion-pill:hover,
.motion-pill:focus-visible {
  border-color: rgba(92, 132, 204, .42) !important;
}

/* Sections : alternance lumineuse sans rectangles opaques. */
main > section,
.article-page > section,
.services-page,
.enas-about-editorial {
  position: relative;
  border: 0 !important;
  background-color: transparent !important;
}

main > section:nth-of-type(even)::after,
.article-page > section:nth-of-type(even)::after {
  position: absolute;
  z-index: -1;
  inset: 5% 0;
  background: linear-gradient(110deg, rgba(224, 237, 255, .34), rgba(255, 255, 255, .08) 45%, rgba(235, 229, 255, .22));
  content: "";
  pointer-events: none;
}

.section-head {
  position: relative;
}

.section-head::before {
  position: absolute;
  top: -24px;
  left: -34px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 157, 242, .14), transparent 72%);
  content: "";
  filter: blur(8px);
  pointer-events: none;
}

/* Système commun de cartes en verre. */
.card,
.service-card,
.home-service-card,
.method-card,
.portfolio-card,
.blog-card,
.benefit-card,
.usecase-card,
.audience-card,
.schema-card,
.service-block,
.service-offer,
.agent,
.step,
.family,
.example,
.security-item,
.anely-capability,
.article-summary,
.article-cta,
.contact-form,
.commercial-assistant,
.faq details,
.google-reviews__panel,
.enas-about-editorial__panel,
.enas-about-editorial__value-card,
.wrap > section {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--glass-radius) !important;
  color: var(--text-secondary) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .70), rgba(239, 246, 255, .44)) !important;
  box-shadow: var(--glass-shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .9) !important;
  backdrop-filter: blur(var(--glass-blur)) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.18) !important;
  transition: transform var(--glass-transition), box-shadow var(--glass-transition), border-color var(--glass-transition), background-color var(--glass-transition) !important;
}

.card::before,
.service-card::before,
.home-service-card::before,
.method-card::before,
.portfolio-card::before,
.blog-card::before,
.benefit-card::before,
.usecase-card::before,
.service-offer::before,
.agent::before,
.family::before,
.article-summary::before,
.contact-form::before,
.commercial-assistant::before,
.google-reviews__panel::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(118deg, rgba(255, 255, 255, .28), transparent 34%, transparent 72%, rgba(133, 175, 244, .07));
  content: "";
  pointer-events: none;
}

.card > *,
.service-card > *,
.home-service-card > *,
.method-card > *,
.portfolio-card > *,
.blog-card > *,
.benefit-card > *,
.usecase-card > *,
.service-offer > *,
.agent > *,
.family > *,
.article-summary > *,
.contact-form > *,
.commercial-assistant > *,
.google-reviews__panel > * {
  position: relative;
  z-index: 1;
}

.service-card:hover,
.home-service-card:hover,
.method-card:hover,
.portfolio-card:hover,
.blog-card:hover,
.benefit-card:hover,
.usecase-card:hover,
.service-offer:hover,
.agent:hover,
.family:hover,
.enas-about-editorial__value-card:hover {
  border-color: rgba(109, 151, 222, .38) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, .79), rgba(235, 244, 255, .54)) !important;
  box-shadow: var(--glass-shadow-hover), inset 0 1px 0 #fff !important;
  transform: translateY(-5px) !important;
}

/* Images : nettes, encadrées par une surface vitrée. */
.home-service-visual,
.offer-image,
.service-detail-visual,
.article-hero figure,
.article-content figure,
.enas-about-editorial__visual,
.portfolio-card__visual,
.audience-diagram-visual,
.google-reviews__visual {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .82) !important;
  border-radius: 21px !important;
  background: rgba(255, 255, 255, .38) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 18px 50px rgba(42, 66, 109, .12) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.home-service-visual img,
.offer-image img,
.service-detail-visual img,
.article-hero img,
.article-content figure img,
.enas-about-editorial__visual img,
.portfolio-card__visual img,
.audience-diagram-visual img {
  border-radius: 20px !important;
  filter: none !important;
  transition: transform 650ms cubic-bezier(.22, .61, .36, 1) !important;
}

.home-service-card:hover .home-service-visual img,
.service-card:hover img,
.offer-image:hover img,
.portfolio-card:hover img,
.article-content figure:hover img {
  transform: scale(1.018) !important;
}

/* Méthode, audience, portfolio et avis : tonalités bleutées maîtrisées. */
.home-method,
.audience-diagram-section,
.section-portfolio,
.google-reviews,
.faq,
.service-benefits,
.service-usecases {
  background:
    linear-gradient(125deg, rgba(222, 236, 255, .38), rgba(255, 255, 255, .16) 54%, rgba(236, 231, 255, .26)) !important;
}

.audience-diagram-section,
.audience-diagram-title,
.audience-diagram-card h3,
.audience-diagram-card strong,
.audience-diagram-result,
.audience-diagram-section button,
.enas-method-section,
.method,
.process-section,
.schema-section,
.service-schema {
  --audience-navy: var(--text-primary) !important;
  --audience-navy-soft: #344a72 !important;
  --audience-gray: var(--text-secondary) !important;
  --audience-gold: var(--glass-accent) !important;
  --audience-gold-light: #8eace4 !important;
  --method-navy: var(--text-primary) !important;
  --method-navy-light: #344a72 !important;
  --schema-navy: var(--text-primary) !important;
  --schema-navy-light: #344a72 !important;
  color: var(--text-primary) !important;
}

.portfolio-card,
.anely-showcase,
.enas-about-editorial__panel--dark {
  border-color: rgba(140, 174, 230, .22) !important;
  background:
    radial-gradient(circle at 18% 12%, rgba(101, 154, 243, .20), transparent 38%),
    linear-gradient(145deg, rgba(22, 37, 68, .94), rgba(34, 53, 91, .88)) !important;
  box-shadow: 0 30px 80px rgba(22, 39, 73, .20), inset 0 1px 0 rgba(255, 255, 255, .12) !important;
}

.portfolio-card:hover {
  border-color: rgba(140, 174, 230, .32) !important;
  background:
    radial-gradient(circle at 18% 12%, rgba(101, 154, 243, .22), transparent 38%),
    linear-gradient(145deg, rgba(22, 37, 68, .96), rgba(34, 53, 91, .92)) !important;
  box-shadow: 0 34px 86px rgba(22, 39, 73, .24), inset 0 1px 0 rgba(255, 255, 255, .14) !important;
}

.portfolio-card h2,
.portfolio-card h3,
.portfolio-card strong,
.portfolio-card p,
.portfolio-card span,
.anely-showcase h2,
.anely-showcase h3,
.anely-showcase p,
.enas-about-editorial__panel--dark h2,
.enas-about-editorial__panel--dark h3,
.enas-about-editorial__panel--dark p {
  color: #f6f9ff !important;
}

/* Formulaires et recherche. */
.contact-form,
.commercial-assistant,
.site-search-panel,
.chat-assistant,
.admin-shell,
.admin-card {
  border: 1px solid var(--glass-border) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(237, 245, 255, .58)) !important;
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, .96) !important;
  backdrop-filter: blur(26px) saturate(1.16) !important;
  -webkit-backdrop-filter: blur(26px) saturate(1.16) !important;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.chat-form input,
.site-search input,
input,
select,
textarea {
  border-color: rgba(94, 121, 170, .20) !important;
  color: var(--text-primary) !important;
  background: rgba(255, 255, 255, .70) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 8px 20px rgba(44, 66, 108, .045) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.chat-form input:focus,
.site-search input:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(57, 100, 184, .54) !important;
  box-shadow: 0 0 0 4px rgba(69, 112, 199, .12), inset 0 1px 0 #fff !important;
}

.commercial-assistant__image {
  filter: drop-shadow(0 16px 24px rgba(37, 56, 92, .16)) !important;
}

.portfolio-card--commercial-assistant {
  display: grid !important;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr) !important;
  align-items: center !important;
}

.portfolio-card__image-wrapper--commercial-assistant {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: clamp(24px, 4vw, 48px);
  border-right: 1px solid rgba(164, 190, 232, .16);
  background:
    radial-gradient(circle at 50% 46%, rgba(124, 171, 246, .20), transparent 56%),
    rgba(255, 255, 255, .035);
}

.portfolio-card__image-wrapper--commercial-assistant .commercial-assistant__image {
  width: min(240px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
}

.portfolio-card--commercial-assistant .portfolio-card__content {
  padding: clamp(28px, 5vw, 58px) !important;
}

.portfolio-card--commercial-assistant .portfolio-card__lead {
  max-width: 54ch;
}

.consent-field > label {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
}

.contact-form .consent-field input[type="checkbox"] {
  appearance: auto !important;
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  margin: 3px 0 0 !important;
  padding: 0 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  accent-color: var(--glass-accent);
}

.consent-field span {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
}

/* Articles : largeur de lecture conservée, profondeur légère. */
.article-layout,
.blog-content,
.legal-content,
.privacy-content,
.wrap {
  position: relative;
}

.article-content,
.blog-content,
.legal-content,
.privacy-content {
  border-radius: 26px;
}

.article-content > h2,
.article-content > h3,
.blog-content > h2,
.blog-content > h3 {
  scroll-margin-top: 120px;
}

/* Footer : profondeur bleu nuit ponctuelle et liens lisibles. */
.footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(146, 177, 229, .16) !important;
  color: rgba(240, 245, 255, .82) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(89, 139, 226, .22), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(133, 105, 226, .15), transparent 32%),
    linear-gradient(145deg, #101a31, #172645 60%, #111b33) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07) !important;
}

.footer::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, .04), transparent 38%);
  content: "";
  pointer-events: none;
}

.footer .social-link,
.footer .btn-secondary {
  border-color: rgba(170, 194, 235, .16) !important;
  color: #f4f7ff !important;
  background: rgba(255, 255, 255, .07) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

.footer a,
.footer p {
  color: rgba(235, 241, 253, .78) !important;
}

.footer h2,
.footer h3,
.footer strong {
  color: #fff !important;
}

/* Aides flottantes. */
.whatsapp-float,
.chat-toggle {
  border: 1px solid rgba(255, 255, 255, .50) !important;
  box-shadow: 0 18px 46px rgba(29, 53, 96, .20), inset 0 1px 0 rgba(255, 255, 255, .30) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.chat-assistant {
  overflow: hidden;
  border-radius: 24px !important;
}

.chat-head {
  background: linear-gradient(135deg, rgba(26, 44, 80, .97), rgba(55, 91, 164, .94)) !important;
}

.chat-message.bot,
.chat-options button {
  border: 1px solid rgba(104, 137, 194, .16) !important;
  color: var(--text-primary) !important;
  background: rgba(255, 255, 255, .66) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88) !important;
}

/* Blog et FAQ partagent la même typographie de titre de section. */
.blog-preview .section-head .label,
.faq .section-head .label {
  font-family: inherit !important;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem) !important;
  font-weight: 750 !important;
  line-height: 1.1 !important;
  letter-spacing: .11em !important;
}

@media (max-width: 767px) {
  .blog-preview .section-head .label,
  .faq .section-head .label {
    font-size: clamp(1.05rem, 5vw, 1.35rem) !important;
  }
}

/* Responsive : moins de blur et glows plus contenus sur petits écrans. */
@media (max-width: 900px) {
  :root {
    --glass-blur: 18px;
    --glass-radius: 21px;
  }

  body::before,
  body::after {
    width: 70vw;
    height: 70vw;
    opacity: .38;
    filter: blur(76px);
  }

  .hero .hero-grid {
    padding: clamp(26px, 5vw, 42px) !important;
    border-radius: 28px !important;
  }

  /* Sur une seule colonne, présenter le visuel avant le texte. */
  .hero .hero-grid > .hero-motion {
    order: 1 !important;
  }

  .hero .hero-grid > :last-child {
    order: 2 !important;
  }

  .portfolio-card--commercial-assistant {
    grid-template-columns: 1fr !important;
  }

  .portfolio-card__image-wrapper--commercial-assistant {
    min-height: 260px;
    border-right: 0;
    border-bottom: 1px solid rgba(164, 190, 232, .16);
  }
}

@media (max-width: 600px) {
  .hero-motion--four-services {
    min-height: 264px !important;
  }

  .hero-motion .motion-screen {
    inset: 20px auto 20px 20px !important;
    width: min(78%, 300px) !important;
    gap: 10px !important;
  }

  .hero-motion .motion-pill {
    min-height: 43px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
  }

  :root {
    --glass-blur: 14px;
    --glass-radius: 18px;
  }

  body {
    background-attachment: scroll !important;
  }

  body::before,
  body::after {
    opacity: .28;
  }

  .site-header {
    background: rgba(249, 252, 255, .82) !important;
    backdrop-filter: blur(16px) saturate(1.15) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.15) !important;
  }

  .hero {
    padding-top: 24px !important;
    padding-bottom: 64px !important;
  }

  .hero .hero-grid {
    padding: 24px 18px 30px !important;
    border-radius: 22px !important;
  }

  .card,
  .service-card,
  .home-service-card,
  .method-card,
  .portfolio-card,
  .blog-card,
  .contact-form,
  .commercial-assistant,
  .faq details {
    border-radius: 18px !important;
    backdrop-filter: blur(14px) saturate(1.08) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.08) !important;
  }

  .home-service-card:hover,
  .service-card:hover,
  .blog-card:hover,
  .method-card:hover {
    transform: translateY(-2px) !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  :root {
    --glass-background: #f7faff;
    --glass-background-strong: #fff;
  }

  .site-header,
  .card,
  .service-card,
  .home-service-card,
  .method-card,
  .portfolio-card,
  .blog-card,
  .contact-form,
  .commercial-assistant,
  .faq details {
    background: #f8fbff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

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

  .glass-motion-enabled .glass-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Assistant vocal restauré : même langage visuel que le chatbot. */
.voice-agent-toggle {
  min-height: 48px;
  padding: 12px 17px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--text-primary);
  box-shadow: 0 12px 30px rgba(17, 27, 54, .20);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.voice-agent {
  position: fixed;
  right: 20px;
  bottom: 86px;
  z-index: 120;
  width: min(390px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid #dce1f4;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(17, 27, 54, .24);
}

.voice-agent__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  color: #fff;
  background: var(--text-primary);
}

.voice-agent__head > div { display: grid; }
.voice-agent__head span { color: #cbd3f7; font-size: 12px; }
.voice-agent__close { border: 0; color: #fff; background: transparent; font-size: 24px; cursor: pointer; }
.voice-agent__body { max-height: 340px; overflow: auto; padding: 18px; }
.voice-agent__status { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--text-secondary); }
.voice-agent__dot { width: 9px; height: 9px; border-radius: 50%; background: #22a866; box-shadow: 0 0 0 5px rgba(34, 168, 102, .12); }
.voice-agent__controls { display: flex; gap: 10px; margin: 14px 0; }
.voice-agent__controls button { flex: 1; min-height: 44px; border: 1px solid var(--glass-border); border-radius: 12px; color: var(--text-primary); background: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.voice-agent__controls button:first-child { color: #fff; border-color: var(--text-primary); background: var(--text-primary); }
.voice-agent__controls button span { margin-right: 7px; font-size: 11px; }
.voice-agent__transcript { display: grid; gap: 7px; padding: 13px; border-radius: 12px; background: rgba(238, 244, 255, .72); font-size: 13px; }
.voice-agent.is-listening .voice-agent__dot { background: #f04f5f; animation: pulse 1s ease-in-out infinite; }

@media (max-width: 760px) {
  .voice-agent-toggle { display: inline-flex; align-items: center; gap: 8px; }
}

.voice-agent[hidden] { display: none !important; }
.voice-agent.voice-live { bottom: 200px; max-height: calc(100dvh - 220px) !important; }
.voice-agent.voice-live .voice-live__controls { flex-shrink: 0; }
@media (max-width: 760px) {
  .voice-agent.voice-live { right: 14px; bottom: 192px; max-height: calc(100dvh - 212px) !important; }
}

/* Captures de PlanÉcole : conserver l’interface entière, sans recadrage. */
.home-service-visual--systems > a { display: block; width: 100%; height: 100%; }
.home-service-visual--systems img { object-fit: contain !important; object-position: center !important; }
.planecole-gallery { display: grid; gap: 18px; margin-bottom: 18px; }
.planecole-gallery figure { margin: 0; }
.planecole-gallery a { display: block; }
.planecole-gallery .offer-image { width: 100%; height: auto !important; aspect-ratio: 36 / 25; object-fit: contain !important; display: block; margin: 0; }
.planecole-caption, .planecole-gallery figcaption { font-size: .85rem; line-height: 1.55; color: #52617a; }
.planecole-gallery figcaption { margin-top: 8px; }
.planecole-caption a { text-decoration: underline; text-underline-offset: 3px; }

.home-service-visual--systems img, .planecole-gallery .offer-image { transform: none !important; }


/* Réalisation PlanÉcole : lecture compacte, puis deux captures de même taille. */
.home-realisations { scroll-margin-top: 100px; padding: 32px 0 !important; }
.home-realisations .section-head { margin: 0 0 20px; }
.home-realisations .section-head .label { font-size: 13px !important; margin: 0 0 6px; }
.home-realisations .section-head h2 { font-size: clamp(1.7rem,3vw,2.1rem) !important; line-height: 1.15; margin: 0 0 8px; }
.home-realisations .section-head .lead { font-size: 16px; margin: 0; }
.realisation-planecole { padding: 24px; border: 1px solid #dce5f1; border-radius: 22px; background: rgba(255,255,255,.7); }
.realisation-planecole__intro { max-width: 900px; }
.realisation-planecole .tag { margin: 0 0 8px; font-size: 12px; }
.realisation-planecole h3 { font-size: clamp(1.35rem,2.2vw,1.75rem); line-height: 1.2; margin: 0 0 12px; }
.realisation-planecole p, .realisation-planecole li { font-size: 15px; line-height: 1.55; }
.realisation-planecole p { margin: 0; }
.realisation-planecole h4 { margin: 0 0 7px; font-size: 15px; }
.realisation-planecole__body { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 24px; margin: 18px 0; }
.realisation-planecole ul { padding-left: 18px; margin: 0; }
.realisation-planecole li { margin: 0 0 5px; }
.realisation-planecole .planecole-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 0 0 16px; }
.realisation-planecole .planecole-gallery figcaption { font-size: 12px; line-height: 1.4; margin: 6px 0 0; }
.realisation-centre { padding: 12px 14px; border-left: 3px solid #6d8eab; background: #eef3f8; border-radius: 0 10px 10px 0; }
.realisation-centre p { font-size: 13px; }
.realisation-centre a { text-decoration: underline; text-underline-offset: 3px; }
.realisation-planecole__footer { display:flex; flex-wrap:wrap; gap:12px 20px; align-items:center; justify-content:space-between; margin-top:16px; }
.realisation-planecole__footer .planecole-caption { max-width:520px; font-size:12px; }
.realisation-planecole__footer .btn { font-size:13px; padding:11px 16px; }
@media(max-width:700px) { .realisation-planecole { padding:18px; } .realisation-planecole__body { grid-template-columns:1fr; gap:14px; margin:16px 0; } .realisation-planecole .planecole-gallery { grid-template-columns:1fr; gap:14px; } }
@media(max-width:400px) { .realisation-planecole { padding:14px; } .realisation-planecole__footer .btn { width:100%; text-align:center; } }
