:root {
  --navy: #0b2942;
  --navy-dark: #071b2e;
  --blue: #29abe2;
  --blue-dark: #1583b3;
  --gray: #5c6b73;
  --gray-light: #f4f6f8;
  --white: #ffffff;
  --text: #1c2b36;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 41, 66, 0.08);
  --container: 1160px;
}

* { box-sizing: border-box; }

/* Page loader — discret : fine barre de progression + badge "ISIT SARL" qui s'écrit,
   sans jamais recouvrir le contenu de la page (pointer-events: none, pas de fond plein écran). */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.page-loader.is-active {
  opacity: 1;
  visibility: visible;
}

.page-loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  box-shadow: 0 0 10px rgba(41, 171, 226, 0.7);
}

.page-loader.is-active .page-loader-bar {
  animation: pl-bar-fill 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-loader-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: rgba(7, 27, 46, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 9px 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.page-loader.is-active .page-loader-badge {
  opacity: 1;
  transform: translateY(0);
}

.pl-text {
  position: relative;
  display: inline-block;
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 14px;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
}

.pl-text.pl-play {
  animation: pl-reveal 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.pl-text::after {
  content: "";
  position: absolute;
  top: 8%;
  right: 0;
  width: 2px;
  height: 84%;
  background: var(--blue);
  opacity: 0;
}

.pl-text.pl-play::after {
  animation: pl-caret-blink 0.8s steps(2, start) infinite;
  animation-delay: 0.85s;
}

.pl-isit {
  color: var(--white);
}

.pl-sarl {
  color: var(--blue);
  margin-left: 0.3em;
}

@keyframes pl-reveal {
  to { clip-path: inset(0 0 0 0); }
}

@keyframes pl-caret-blink {
  to { opacity: 1; }
}

@keyframes pl-bar-fill {
  0% { width: 0%; }
  70% { width: 78%; }
  100% { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-text.pl-play,
  .pl-text.pl-play::after,
  .page-loader.is-active .page-loader-bar {
    animation: none;
  }
  .pl-text.pl-play { clip-path: inset(0 0 0 0); }
  .page-loader.is-active .page-loader-bar { width: 100%; }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-anchor: none;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: "Poppins", "Inter", "Segoe UI", Arial, sans-serif; font-weight: 700; color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: 19px; }

.eyebrow {
  display: inline-block;
  color: var(--blue-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 8px;
}

/* Header */
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow-anchor: none;
}

.top-header {
  background: var(--navy-dark);
  color: #cfe3ee;
  font-size: 13px;
  overflow: hidden;
  max-height: 38px;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.top-header-inner {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 9px 24px;
}

.top-header a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.top-header a:hover {
  color: var(--blue);
}

.site-header-wrap.is-scrolled .top-header {
  max-height: 0;
  opacity: 0;
}

.site-header-wrap.is-scrolled .top-header-inner {
  padding-top: 0;
  padding-bottom: 0;
}

.site-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(11, 41, 66, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-logo { height: 52px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-weight: 600;
  color: var(--navy);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue-dark);
  border-bottom-color: var(--blue);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transform-origin: center;
  transition: opacity 0.2s ease;
}

/* Le tiroir a son propre bouton de fermeture (.nav-close) : on masque le
   hamburger pendant que le tiroir est ouvert pour éviter d'avoir deux
   boutons de fermeture visibles à l'écran en même temps. */
body.nav-open .nav-toggle {
  visibility: hidden;
  pointer-events: none;
}

.nav-close {
  display: none;
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
  padding: 4px 8px;
}

.main-nav-head {
  display: none;
}

.nav-backdrop {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 65%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
}

.hero-inner {
  position: relative;
  padding: 90px 24px 70px;
  max-width: var(--container);
  margin: 0 auto;
}

.hero h1 { color: var(--white); max-width: 780px; }
.hero h1 .text-accent {
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
  text-decoration-skip-ink: none;
}
.hero p.lead { max-width: 640px; font-size: 18px; color: #dbe9f2; margin-top: 16px; }

.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

/* Hero — variante "constellation" (accueil) : logo ISIT au centre, marques partenaires en orbite */
.hero--constellation .hero-bg {
  filter: blur(2px) saturate(0.9);
  transform: scale(1.05);
}

.hero--constellation .hero-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 78% 50%, rgba(10, 31, 51, 0.25) 0%, rgba(10, 31, 51, 0.82) 60%, var(--navy-dark) 100%);
}

.hero-inner--split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  align-items: center;
  gap: 24px;
}

.hero-orbit-wrap {
  position: relative;
  height: 460px;
}

.hero-orbit {
  position: absolute;
  inset: 0;
}

.hero-orbit-ring {
  position: absolute;
  inset: 0;
}

.hero-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 118px;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--white);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 0 8px rgba(41, 171, 226, 0.1),
    0 0 46px 4px rgba(41, 171, 226, 0.25);
  z-index: 5;
}

.hero-hub img { width: 84%; height: auto; }

.hero-hub-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(41, 171, 226, 0.4);
  animation: hero-hub-breathe 3.4s ease-in-out infinite;
}

.hero-orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
  z-index: 4;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-orbit-item:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.hero-orbit-item img { max-width: 76%; max-height: 60%; object-fit: contain; }

.hero-spark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px 2px rgba(41, 171, 226, 0.8);
  z-index: 3;
  animation: hero-spark-pulse 2.6s ease-in-out infinite;
}

@keyframes hero-hub-breathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.15; }
}

@keyframes hero-spark-pulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.7); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-hub-pulse, .hero-spark { animation: none; }
}

@media (max-width: 900px) {
  .hero-inner--split { grid-template-columns: 1fr; }
  .hero-orbit-wrap { height: 360px; margin-top: 8px; }
  .hero-hub, .hero-hub-pulse { width: 92px; height: 92px; }
  .hero-orbit-item { width: 68px; height: 38px; }
}

@media (max-width: 560px) {
  .hero-orbit-wrap { height: 300px; }
  .hero-hub, .hero-hub-pulse { width: 76px; height: 76px; }
  .hero-orbit-item { width: 58px; height: 33px; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); transform: translateY(-2px); }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--gray-light); }

.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }

/* Grid cards */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid rgba(11, 41, 66, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(11, 41, 66, 0.14);
}

.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(41, 171, 226, 0.12);
  color: var(--blue-dark);
  font-weight: 800;
  margin-bottom: 14px;
}

.card p { color: var(--gray); margin: 8px 0 0; }

/* Product cards */
.grid-products {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 41, 66, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(11, 41, 66, 0.14);
}
.product-card .thumb {
  height: 170px;
  width: 100%;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(11, 41, 66, 0.06);
}
.product-card img { height: 100%; width: 100%; object-fit: contain; padding: 14px; }
.product-card .body { padding: 20px; }
.product-card p { color: var(--gray); }

/* Brands */
.brand-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}
.brand-logo-tile {
  background: var(--white);
  border: 1px solid rgba(11, 41, 66, 0.1);
  border-radius: var(--radius);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  width: 170px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.brand-logo-tile img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.brand-logo-tile:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Marquee (défilement infini des logos, pause au survol) */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: marquee-scroll 32s linear infinite;
}
.marquee-track .brand-logo-tile {
  flex-shrink: 0;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
  .marquee {
    overflow-x: auto;
  }
}

/* Sectors */
.sector-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sector-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  border-top: 3px solid var(--blue);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(11, 41, 66, 0.14);
}
.sector-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(41, 171, 226, 0.1);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.sector-icon svg { width: 28px; height: 28px; }
.sector-card:hover .sector-icon {
  background: var(--blue);
  color: var(--white);
}
.sector-card h3 { color: var(--blue-dark); margin-top: 0; }
.sector-card p { color: var(--gray); margin-bottom: 0; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid rgba(11, 41, 66, 0.1);
  border-radius: var(--radius);
  padding: 4px 22px;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 400;
  color: var(--blue);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--gray); margin: 0 0 18px; }

/* CTA band */
.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #cfe3ee; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid rgba(11, 41, 66, 0.06);
}
.contact-info-card h3 { margin-top: 0; }
.contact-info-card ul { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-info-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  color: var(--gray);
}
.contact-info-card li .icon-inline { color: var(--blue-dark); }

/* Icônes épurées (traits fins) utilisées à côté des coordonnées */
.icon-inline {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* React mount points */
.react-root { min-height: 40px; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #cfe3ee; margin-top: 40px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 56px 0 32px;
}
.footer-logo {
  display: inline-block;
  width: auto;
  height: 44px;
  margin-bottom: 12px;
  filter: brightness(1.1);
  background: var(--white);
  border-radius: 6px;
  padding: 6px;
}
.site-footer h3 { color: var(--white); font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; display: flex; align-items: center; gap: 9px; }
.site-footer li .icon-inline { color: var(--blue); opacity: 0.85; }
.site-footer a { display: inline-flex; align-items: center; gap: 9px; }
.site-footer a:hover { color: var(--blue); }
.social-list .icon-inline { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 0; font-size: 13px; text-align: center; color: #93a9b6; }
.footer-sep { margin: 0 8px; }
.footer-utility-link { color: #93a9b6; text-decoration: underline; }
.footer-utility-link:hover { color: var(--blue); }

/* About page */
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.about-values .card h3 { color: var(--blue-dark); }

/* Notre expertise — flux en 4 étapes, inspiré du schéma circulaire de la plaquette */
.expertise-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 12px;
}

.expertise-flow::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(41, 171, 226, 0.4) 0,
    rgba(41, 171, 226, 0.4) 8px,
    transparent 8px,
    transparent 16px
  );
  z-index: 0;
}

.expertise-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 8px;
}

.expertise-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-dark);
  box-shadow: 0 8px 20px rgba(11, 41, 66, 0.12);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.expertise-icon svg {
  width: 30px;
  height: 30px;
}

.expertise-step:hover .expertise-icon {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-4px);
}

.expertise-num {
  display: block;
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.expertise-step h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.expertise-step p {
  font-size: 14px;
  color: var(--gray);
  margin: 0;
}

@media (max-width: 900px) {
  .expertise-flow {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .expertise-flow::before {
    display: none;
  }
}

/* Plan du site — design épuré */
.sitemap-page {
  max-width: 720px;
}

.sitemap-links {
  display: flex;
  flex-direction: column;
  margin: 0 auto 64px;
}

.sitemap-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  border-bottom: 1px solid rgba(11, 41, 66, 0.1);
  transition: padding-left 0.2s ease, color 0.2s ease;
}

.sitemap-links a:first-child {
  border-top: 1px solid rgba(11, 41, 66, 0.1);
}

.sitemap-links a:hover {
  padding-left: 10px;
  color: var(--blue-dark);
}

.sitemap-link-label {
  display: block;
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}

.sitemap-links a:hover .sitemap-link-label {
  color: var(--blue-dark);
}

.sitemap-link-desc {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--gray);
}

.sitemap-link-arrow {
  flex-shrink: 0;
  font-size: 20px;
  color: var(--blue);
  transition: transform 0.2s ease;
}

.sitemap-links a:hover .sitemap-link-arrow {
  transform: translateX(4px);
}

.sitemap-groups {
  display: grid;
  gap: 40px;
}

.sitemap-group h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  font-weight: 700;
  margin-bottom: 16px;
}

.tag-list-clean {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-clean {
  padding: 7px 16px;
  border: 1px solid rgba(11, 41, 66, 0.14);
  border-radius: 999px;
  font-size: 13px;
  color: var(--gray);
  background: var(--white);
}

.sitemap-xml-note {
  margin-top: 56px;
  text-align: center;
  font-size: 13px;
  color: var(--gray);
}

.sitemap-xml-note a {
  color: var(--blue-dark);
  font-weight: 600;
  text-decoration: underline;
}

/* Legal pages (politique de confidentialité, etc.) */
.legal-page {
  max-width: 760px;
}

.legal-page .section-head {
  text-align: left;
  margin: 0 0 40px;
  max-width: none;
}

.legal-page h2 {
  margin-top: 44px;
  margin-bottom: 12px;
  font-size: 21px;
}

.legal-page p,
.legal-page li {
  color: var(--gray);
}

.legal-page ul {
  padding-left: 20px;
  margin: 12px 0;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page a {
  color: var(--blue-dark);
  font-weight: 600;
  text-decoration: underline;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  padding: 10px 12px;
  border-bottom: 2px solid rgba(11, 41, 66, 0.1);
  white-space: nowrap;
}

.legal-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(11, 41, 66, 0.08);
  color: var(--gray);
  vertical-align: top;
}

.legal-table td:first-child {
  color: var(--navy);
  font-weight: 600;
  white-space: nowrap;
}

/* Bouton retour en haut — discret, apparaît après un peu de scroll */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(11, 41, 66, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.15s ease;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue-dark);
}

@media (max-width: 720px) {
  .back-to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.2s ease, visibility 0.2s ease; }
}

/* Widget WhatsApp — bulle flottante + panneau de discussion épuré */
:root {
  --wa-green: #25d366;
  --wa-green-dark: #1da851;
  --wa-panel-bg: #f7f5f1;
}

.wa-widget {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 61;
}

.wa-fab {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wa-green);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, background 0.15s ease;
}

.wa-fab svg { width: 28px; height: 28px; }

.wa-fab:hover { background: var(--wa-green-dark); transform: translateY(-2px); }

.wa-widget.open .wa-fab {
  background: var(--navy-dark, #071624);
  box-shadow: 0 10px 26px rgba(11, 41, 66, 0.35);
}

.wa-widget.open .wa-fab svg { display: none; }

.wa-widget.open .wa-fab::after {
  content: "\2715";
  font-size: 20px;
  line-height: 1;
}

.wa-panel {
  position: absolute;
  left: 0;
  bottom: 68px;
  width: min(88vw, 320px);
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(11, 41, 66, 0.28);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.97);
  transform-origin: bottom left;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.wa-widget.open .wa-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.wa-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--navy);
  color: var(--white);
}

.wa-panel-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-panel-avatar img { width: 100%; height: 100%; object-fit: contain; }

.wa-panel-id { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; flex: 1; min-width: 0; }
.wa-panel-id strong { font-size: 14px; }

.wa-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #cfe3ee;
}

.wa-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wa-green);
}

.wa-panel-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  opacity: 0.8;
}
.wa-panel-close:hover { opacity: 1; }

.wa-panel-body {
  background: var(--wa-panel-bg);
  padding: 16px;
}

.wa-bubble {
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 2px 12px 12px 12px;
  box-shadow: 0 2px 6px rgba(11, 41, 66, 0.08);
  margin: 0;
  max-width: 88%;
}

.wa-panel-footer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px;
  background: var(--white);
  border-top: 1px solid rgba(11, 41, 66, 0.08);
}

.wa-panel-footer textarea {
  flex: 1;
  resize: none;
  border: 1px solid rgba(11, 41, 66, 0.14);
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
  font-size: 13.5px;
  color: var(--text);
  max-height: 90px;
}

.wa-panel-footer textarea:focus {
  outline: none;
  border-color: var(--wa-green);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.wa-send-btn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wa-green);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease;
}
.wa-send-btn:hover { background: var(--wa-green-dark); }
.wa-send-btn svg { width: 17px; height: 17px; }

@media (max-width: 720px) {
  .wa-widget { left: 16px; bottom: 16px; }
  .wa-fab { width: 52px; height: 52px; }
  .wa-panel { bottom: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-panel, .wa-fab { transition: opacity 0.15s ease, visibility 0.15s ease; }
}

/* Cookie banner — discret, non bloquant */
.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 9000;
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid rgba(11, 41, 66, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(11, 41, 66, 0.18);
  padding: 20px 22px;
  display: none;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner.is-shown {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.55;
}

.cookie-banner a {
  color: var(--blue-dark);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-banner-actions button {
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

.cookie-btn-accept {
  background: var(--blue);
  color: var(--white);
}
.cookie-btn-accept:hover { background: var(--blue-dark); transform: translateY(-1px); }

.cookie-btn-decline {
  background: transparent;
  border-color: rgba(11, 41, 66, 0.18);
  color: var(--navy);
}
.cookie-btn-decline:hover { border-color: var(--navy); }

@media (max-width: 640px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
}

/* Responsive */
@media (max-width: 900px) {
  .grid, .sector-list, .about-values { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(7, 22, 36, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 99;
  }
  .nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(82vw, 340px);
    background: var(--white);
    box-shadow: -10px 0 30px rgba(11, 41, 66, 0.25);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  .main-nav.open { transform: translateX(0); }

  .main-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(11, 41, 66, 0.08);
  }
  .main-nav-logo { height: 34px; width: auto; }
  .nav-close { display: block; }

  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 8px 24px; }
  .main-nav li {
    border-bottom: 1px solid rgba(11, 41, 66, 0.06);
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0s;
  }
  .main-nav.open li {
    opacity: 1;
    transform: translateX(0);
    transition-delay: calc(var(--i, 0) * 0.05s + 0.1s);
  }
  .main-nav li a { display: block; padding: 14px 12px; }

  body.nav-open { overflow: hidden; }
  .footer-inner { grid-template-columns: 1fr; padding: 40px 20px 20px; }
  .footer-bottom { padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }

  .top-header { max-height: 64px; }
  .top-header-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    text-align: center;
  }
  .top-header a { font-size: 12px; }
}

@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .main-nav, .nav-backdrop, .nav-toggle span, .main-nav li {
    transition: none !important;
  }
}
