/* ============================================================
   OCTOPROD / BREIZH STORMING — Site 2026
   Police : Poppins | Palette : Bleu Marine Pro
   Inspiré du style Lucca.fr — Modern, clean, aéré
   ============================================================ */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* --- CSS VARIABLES --- */
:root {
  /* Couleurs principales */
  --navy-900: #0a1628;
  --navy-800: #0f1f3d;
  --navy-700: #152a4e;
  --navy-600: #1a3a5c;
  --navy-500: #1e4d7b;
  --blue-500: #2d7dd2;
  --blue-400: #4a9be8;
  --blue-300: #7bb8f0;
  --blue-100: #e0efff;
  --blue-50:  #f0f7ff;

  /* Accents */
  --accent-gradient: linear-gradient(135deg, #2d7dd2 0%, #1a3a5c 100%);
  --accent-gradient-light: linear-gradient(135deg, #e0efff 0%, #f0f7ff 100%);
  --accent-ai: #9b59b6;
  --accent-ai-light: #f3f0ff;
  --accent-success: #2eac6d;
  --accent-orange: #f7941d;

  /* Couleurs tentacules (identité logo OCTOPROD) */
  --tent-red:      #ed1c24;
  --tent-orange:   #f7941d;
  --tent-yellow:   #e8d520;
  --tent-lime:     #8cc63f;
  --tent-green:    #2eac6d;
  --tent-teal:     #00a99d;
  --tent-blue:     #4a7fb5;
  --tent-indigo:   #5b5ea6;
  --tent-purple:   #9b59b6;
  --tent-magenta:  #e91e8c;

  /* Associations thématiques tentacule = service */
  --theme-projet:    var(--tent-indigo);
  --theme-dev:       var(--tent-green);
  --theme-ia:        var(--tent-purple);
  --theme-infog:     var(--tent-blue);
  --theme-cloud:     var(--tent-teal);
  --theme-seo:       var(--tent-lime);
  --theme-securite:  var(--tent-red);
  --theme-support:   var(--tent-orange);
  --theme-design:    var(--tent-magenta);
  --theme-formation: var(--tent-yellow);

  /* Textes */
  --text-dark: #1a1a2e;
  --text-body: #374151;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --text-white: #ffffff;

  /* Fonds */
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-gray: #f1f5f9;

  /* Ombres */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
  --shadow-card: 0 2px 12px rgba(15,31,61,0.08);
  --shadow-card-hover: 0 8px 30px rgba(15,31,61,0.15);

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 24px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

/* Scroll offset supprimé — les heroes restent visibles depuis le menu principal */

ul, ol {
  list-style: none;
}

/* --- SKIP LINK (Accessibilité) --- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--blue-500);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 0;
}

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-body);
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--blue-500);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.8;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- BOUTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(45, 125, 210, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 125, 210, 0.45);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--navy-700);
  border: 2px solid var(--blue-300);
}
.btn-secondary:hover {
  background: var(--blue-50);
  border-color: var(--blue-500);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}

.btn-icon {
  font-size: 1.1rem;
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.5px;
  overflow: visible;
  flex-shrink: 0;
}

.navbar.scrolled .navbar-brand {
  color: var(--navy-800);
}

.navbar-brand .brand-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  font-weight: 800;
}

.navbar-brand .brand-sub {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.7;
  display: block;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-400);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--text-white);
}

.navbar.scrolled .nav-links a {
  color: var(--text-body);
}
.navbar.scrolled .nav-links a:hover {
  color: var(--navy-800);
}
.navbar.scrolled .nav-links a::after {
  background: var(--blue-500);
}

.nav-cta {
  padding: 10px 24px !important;
  background: var(--accent-gradient);
  color: white !important;
  border-radius: 50px;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(45,125,210,0.3);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(45,125,210,0.4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--text-white);
  border-radius: 4px;
  transition: var(--transition);
}
.navbar.scrolled .hamburger span {
  background: var(--navy-800);
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy-900);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(45,125,210,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 20%, rgba(108,92,231,0.1) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(26,58,92,0.3) 0%, transparent 60%);
  z-index: 1;
}

/* Grille de points animée en arrière-plan */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

/* Formes flottantes décoratives */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  z-index: 0;
}
.hero-shape-1 {
  width: 600px;
  height: 600px;
  background: var(--blue-500);
  top: -200px;
  right: -150px;
  animation: float 20s ease-in-out infinite;
}
.hero-shape-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-ai);
  bottom: -100px;
  left: -100px;
  animation: float 15s ease-in-out infinite reverse;
}
.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: var(--blue-300);
  top: 40%;
  right: 20%;
  animation: float 12s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* --- BULLES MONTANTES (hero) --- */
.hero-bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -20%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.06);
  animation: bubbleRise linear infinite;
  will-change: transform;
}

/* Tailles, positions horizontales, opacités et durées variées */
.bubble-1  { width: 8px;  height: 8px;  left: 5%;   opacity: 0.25; animation-duration: 18s; animation-delay: 0s; }
.bubble-2  { width: 14px; height: 14px; left: 15%;  opacity: 0.15; animation-duration: 22s; animation-delay: -4s; }
.bubble-3  { width: 6px;  height: 6px;  left: 25%;  opacity: 0.3;  animation-duration: 16s; animation-delay: -8s; }
.bubble-4  { width: 20px; height: 20px; left: 35%;  opacity: 0.08; animation-duration: 26s; animation-delay: -2s; }
.bubble-5  { width: 10px; height: 10px; left: 45%;  opacity: 0.2;  animation-duration: 20s; animation-delay: -10s; }
.bubble-6  { width: 16px; height: 16px; left: 55%;  opacity: 0.1;  animation-duration: 24s; animation-delay: -6s; }
.bubble-7  { width: 5px;  height: 5px;  left: 65%;  opacity: 0.35; animation-duration: 15s; animation-delay: -12s; }
.bubble-8  { width: 12px; height: 12px; left: 75%;  opacity: 0.18; animation-duration: 21s; animation-delay: -3s; }
.bubble-9  { width: 18px; height: 18px; left: 85%;  opacity: 0.07; animation-duration: 28s; animation-delay: -7s; }
.bubble-10 { width: 7px;  height: 7px;  left: 92%;  opacity: 0.22; animation-duration: 17s; animation-delay: -14s; }
.bubble-11 { width: 9px;  height: 9px;  left: 40%;  opacity: 0.2;  animation-duration: 19s; animation-delay: -9s; }
.bubble-12 { width: 22px; height: 22px; left: 70%;  opacity: 0.05; animation-duration: 30s; animation-delay: -5s; }

@keyframes bubbleRise {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  25% {
    transform: translateY(-30vh) translateX(15px);
  }
  50% {
    transform: translateY(-60vh) translateX(-12px);
  }
  75% {
    transform: translateY(-90vh) translateX(18px);
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-120vh) translateX(-8px);
    opacity: 0;
  }
}

/* Préfère ne pas animer si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  .bubble { animation: none; opacity: 0; }
  .hero-shape { animation: none; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  animation: heroContentIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

@keyframes heroContentIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45,125,210,0.15);
  border: 1px solid rgba(45,125,210,0.25);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-white);   /* FIX 2026-10-03 (itération 4) : était var(--blue-300) — blanc, plus lisible sur le fond sombre */
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.hero h1 {
  color: var(--text-white);
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-rotate-wrapper {
  display: block;
  height: 1.2em;
  overflow: hidden;
  position: relative;
  font-size: clamp(1.3rem, 3.2vw, 2.2rem);
  line-height: 1.2;
}

.hero-rotate {
  display: block;
  animation: rotateText 20s ease-in-out infinite;
  font-weight: 800;
}

.hero-rotate span {
  display: block;
  white-space: nowrap;
}

/* Couleurs thématiques tentacules par mot-clé */
.hero-rotate span:nth-child(1) { color: var(--tent-indigo, #5b5ea6); }
.hero-rotate span:nth-child(2) { color: var(--tent-purple, #9b59b6); }
.hero-rotate span:nth-child(3) { color: var(--tent-green, #2eac6d); }
.hero-rotate span:nth-child(4) { color: var(--tent-blue, #4a7fb5); }
.hero-rotate span:nth-child(5) { color: var(--tent-teal, #00a99d); }
.hero-rotate span:nth-child(6) { color: var(--tent-orange, #f7941d); }
.hero-rotate span:nth-child(7) { color: var(--tent-lime, #8cc63f); }
.hero-rotate span:nth-child(8) { color: var(--tent-red, #ed1c24); }

@keyframes rotateText {
  0%, 8%        { transform: translateY(0); }
  12.5%, 20.5%  { transform: translateY(-12.5%); }
  25%, 33%      { transform: translateY(-25%); }
  37.5%, 45.5%  { transform: translateY(-37.5%); }
  50%, 58%      { transform: translateY(-50%); }
  62.5%, 70.5%  { transform: translateY(-62.5%); }
  75%, 83%      { transform: translateY(-75%); }
  87.5%, 95.5%  { transform: translateY(-87.5%); }
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  margin: 24px 0 36px;
  line-height: 1.8;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat {
  text-align: left;
}
.hero-stat .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
}
.hero-stat .stat-number span {
  color: var(--blue-400);
}
.hero-stat .stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  font-weight: 400;
}

/* Image hero (droite) — animation d'introduction */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoEmerge 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes logoEmerge {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.85);
    filter: blur(8px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  80% {
    transform: translateY(-8px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero-image-placeholder {
  width: 100%;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 24px;
}

.hero-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(45,125,210,0.2) 0%, rgba(155,89,182,0.1) 40%, transparent 70%);
  filter: blur(40px);
  animation: glowAppear 2.5s ease-out 1s both, pulseGlow 4s ease-in-out 3.5s infinite;
  z-index: 0;
}

@keyframes glowAppear {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* --- SECTIONS COMMUNES --- */
section {
  padding: var(--section-padding);
}

.section-header {
  margin-bottom: 60px;
}

/* --- SERVICES OVERVIEW (Accueil) --- */
.services-overview {
  background: var(--bg-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* Couleurs génériques */
.icon-blue { background: var(--blue-100); color: var(--blue-500); }
.icon-purple { background: var(--accent-ai-light); color: var(--accent-ai); }
.icon-green { background: #e6f9f1; color: var(--accent-success); }
.icon-orange { background: #fef0ec; color: var(--accent-orange); }

/* Couleurs tentacules par univers */
.icon-projet  { background: #eef0ff; color: var(--tent-indigo); }
.icon-dev     { background: #e6f9f1; color: var(--tent-green); }
.icon-ia      { background: #f3f0ff; color: var(--tent-purple); }
.icon-infog   { background: #e8f4fb; color: var(--tent-blue); }
.icon-cloud   { background: #e6faf8; color: var(--tent-teal); }
.icon-seo     { background: #f4fae6; color: var(--tent-lime); }
.icon-securite { background: #fde8e8; color: var(--tent-red); }
.icon-support { background: #fef0e0; color: var(--tent-orange); }
.icon-design  { background: #fde8f5; color: var(--tent-magenta); }
.icon-formation { background: #fdf8e0; color: var(--tent-yellow); }

/* Bordure haute thématique sur cards */
.service-card[data-theme="projet"]::before    { background: var(--tent-indigo); }
.service-card[data-theme="dev"]::before       { background: var(--tent-green); }
.service-card[data-theme="ia"]::before        { background: linear-gradient(135deg, var(--tent-purple), var(--tent-magenta)); }
.service-card[data-theme="infog"]::before     { background: var(--tent-blue); }
.service-card[data-theme="cloud"]::before     { background: var(--tent-teal); }
.service-card[data-theme="seo"]::before       { background: var(--tent-lime); }
.service-card[data-theme="securite"]::before  { background: var(--tent-red); }
.service-card[data-theme="support"]::before   { background: var(--tent-orange); }

/* Forcer la bordure visible sur les cards thématiques */
.service-card[data-theme]::before { opacity: 1; }

/* Logo navbar */
.navbar-brand img.brand-logo {
  height: 56px;
  width: auto;
  max-width: none;
}
.navbar-brand img.brand-logo-dark {
  display: none;
}
.navbar.scrolled .navbar-brand img.brand-logo-light {
  display: none;
}
.navbar.scrolled .navbar-brand img.brand-logo-dark {
  display: block;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-500);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card-link:hover {
  gap: 10px;
}

/* --- AI HIGHLIGHT SECTION --- */
.ai-section {
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}

.ai-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(108,92,231,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(45,125,210,0.08) 0%, transparent 50%);
}

.ai-section .container {
  position: relative;
  z-index: 1;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ai-content .section-label {
  color: var(--accent-ai);
}

.ai-content h2 {
  color: var(--text-white);
  margin-bottom: 20px;
}

.ai-content p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  line-height: 1.8;
}

.ai-features {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.ai-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--border-radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}

.ai-feature:hover {
  background: rgba(255,255,255,0.07);
}

.ai-feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: rgba(108,92,231,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.ai-feature h4 {
  color: var(--text-white);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.ai-feature p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.ai-image-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--border-radius-xl);
  background: linear-gradient(135deg, rgba(108,92,231,0.12), rgba(45,125,210,0.12));
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.25);
  font-size: 0.8rem;
  text-align: center;
  padding: 32px;
  line-height: 1.6;
}

/* --- WHY SECTION / VALUE PROPS --- */
.why-section {
  background: var(--bg-light);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  text-align: center;
  padding: 36px 20px;
  border-radius: var(--border-radius-lg);
  background: var(--bg-white);
  border: 1px solid #e5e7eb;
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.why-card-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

/* Emoji en couleurs natives dans une pastille pastel (cards "Pourquoi OCTOPROD") */
.why-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  margin: 0 auto 8px;
}

.why-card h4 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.why-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- APPROCHE / PACKS --- */
.approach-section {
  background: var(--bg-white);
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.approach-steps {
  display: grid;
  gap: 24px;
}

.approach-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.step-content h4 {
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- CTA BANNER --- */
.cta-banner {
  background: var(--accent-gradient);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: var(--text-white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* --- SERVICES DETAIL PAGE --- */
.page-hero {
  padding: 160px 0 80px;
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(45,125,210,0.1) 0%, transparent 60%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--text-white);
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  max-width: 620px;
}

.page-hero .section-label {
  color: var(--blue-300);
}

/* Sticky sub-navigation services */
.services-subnav {
  position: sticky;
  top: 72px; /* hauteur navbar scrollée */
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 0;
}

.services-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  border: 2px solid #e5e7eb;
  background: var(--bg-white);
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.tab-btn:hover {
  border-color: var(--blue-500);
  color: var(--blue-500);
}

.tab-btn.active {
  background: var(--accent-gradient);
  color: var(--text-white);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(45,125,210,0.3);
}

/* Service sections (toujours visibles, scroll vertical) */
.service-section {
  padding: 60px 0 40px;
  border-bottom: 1px solid #f1f5f9;
  scroll-margin-top: 140px; /* navbar (72px) + sub-nav (~68px) */
}

.service-section:nth-child(even) {
  background: var(--bg-light);
}

.service-section:last-of-type {
  border-bottom: none;
}

/* Service detail cards */
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-bottom: 40px;
}

.service-detail-card {
  padding: 32px;
  border-radius: var(--border-radius-lg);
  background: var(--bg-white);
  border: 1px solid #e5e7eb;
  transition: var(--transition);
}

.service-detail-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
  transform: translateY(-2px);
}

.service-detail-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.service-detail-card h4 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.service-detail-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

/* --- APPROACH PAGE --- */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue-100), var(--blue-500), var(--blue-100));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  flex: 1;
  padding: 32px;
  border-radius: var(--border-radius-lg);
  background: var(--bg-white);
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-card);
}

.timeline-marker {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 1;
  box-shadow: 0 0 0 8px var(--bg-light);
}

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

.pack-card {
  padding: 40px 28px;
  border-radius: var(--border-radius-lg);
  background: var(--bg-white);
  border: 2px solid #e5e7eb;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.pack-card.featured {
  border-color: var(--blue-500);
  box-shadow: 0 8px 30px rgba(45,125,210,0.15);
}

.pack-card.featured::before {
  content: 'Populaire';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: white;
  padding: 4px 20px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pack-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pack-card h3 {
  margin-bottom: 8px;
}

.pack-card .pack-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.pack-card .pack-features {
  text-align: left;
  margin-bottom: 28px;
}

.pack-card .pack-features li {
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.pack-card .pack-features li:last-child {
  border-bottom: none;
}

.check-icon {
  color: var(--accent-success);
  font-weight: 700;
}

/* --- PARCOURS TIMELINE (vertical) --- */
.vtimeline {
  position: relative;
  padding: 20px 0 20px 48px;
}
.vtimeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 19px;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue-100), var(--blue-500), var(--tent-purple), var(--blue-100));
}
.vtimeline-item {
  position: relative;
  margin-bottom: 36px;
  padding-left: 32px;
}
.vtimeline-item:last-child { margin-bottom: 0; }
.vtimeline-dot {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-500);
  border: 3px solid var(--bg-white);
  box-shadow: 0 0 0 3px var(--blue-100);
  z-index: 1;
}
.vtimeline-dot.dot-birth { background: var(--tent-orange); box-shadow: 0 0 0 3px #fef0e0; }
.vtimeline-dot.dot-start { background: var(--tent-lime); box-shadow: 0 0 0 3px #f4fae6; }
.vtimeline-dot.dot-bank { background: var(--tent-blue); box-shadow: 0 0 0 3px #e8f4fb; }
.vtimeline-dot.dot-infra { background: var(--tent-indigo); box-shadow: 0 0 0 3px #eef0ff; }
.vtimeline-dot.dot-netiva { background: var(--tent-magenta); box-shadow: 0 0 0 3px #fde8f5; }
.vtimeline-dot.dot-octoprod { background: var(--tent-green); box-shadow: 0 0 0 3px #e6f9f1; }
.vtimeline-dot.dot-future { background: var(--tent-purple); box-shadow: 0 0 0 3px #f3f0ff; }
.vtimeline-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.vtimeline-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.vtimeline-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* --- CONTACT PAGE --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid #e5e7eb;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group label .required {
  color: #ef4444;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(45,125,210,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Checkboxes besoins */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-body);
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-500);
}

/* Contact info cards */
.contact-info {
  display: grid;
  gap: 20px;
}

.contact-info-card {
  padding: 24px;
  border-radius: var(--border-radius);
  background: var(--bg-white);
  border: 1px solid #e5e7eb;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-info-card h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-info-card a {
  color: var(--blue-500);
  font-weight: 500;
}
.contact-info-card a:hover {
  text-decoration: underline;
}

/* Transition badge */
.transition-banner {
  background: var(--bg-light);
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius-lg);
  padding: 28px;
  margin-top: 32px;
  text-align: center;
}

.transition-banner h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.transition-banner p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- FOOTER --- */
.footer {
  background: var(--navy-900);
  padding: 72px 0 0;
  color: rgba(255,255,255,0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 320px;
  color: rgba(255,255,255,0.85);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--blue-500);
  color: white;
}

.footer-col h4 {
  color: var(--text-white);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.78);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--text-white);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.7);
}
.footer-bottom a:hover {
  color: var(--text-white);
}

/* --- IMAGE PLACEHOLDERS (Nano Banana) --- */
.img-placeholder {
  border-radius: var(--border-radius-lg);
  background: var(--accent-gradient-light);
  border: 2px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 24px;
  gap: 8px;
  min-height: 200px;
}

.img-placeholder .placeholder-icon {
  font-size: 2rem;
  opacity: 0.4;
}

.img-placeholder .placeholder-prompt {
  font-style: italic;
  color: var(--text-light);
  max-width: 280px;
  line-height: 1.5;
}

/* --- ANIMATIONS (Scroll reveal) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-visual {
    max-width: 320px;
    margin: 0 auto;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ai-grid {
    grid-template-columns: 1fr;
  }
  .ai-image-placeholder {
    max-width: 400px;
    margin: 0 auto;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .approach-grid {
    grid-template-columns: 1fr;
  }
  .pack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 24px;
  }
  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: row;
    gap: 24px;
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--navy-900);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 24px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    color: rgba(255,255,255,0.8) !important;
    font-size: 1.1rem;
  }

  .hamburger {
    display: flex;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .hero-stat {
    min-width: 120px;
  }

  .pack-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero-rotate-wrapper {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-badge {
    font-size: 0.75rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .services-subnav {
    top: 62px;
  }
  .services-tabs {
    gap: 6px;
    padding: 10px 0;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .services-tabs::-webkit-scrollbar { display: none; }
  .tab-btn {
    padding: 8px 16px;
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .service-section {
    scroll-margin-top: 120px;
  }
}

/* --- PRINT --- */
@media print {
  .navbar, .hamburger, .hero-bg, .hero-grid, .hero-shape {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
  section {
    padding: 24px 0;
    break-inside: avoid;
  }
}

/* ========================================================
   DROPDOWN NAVBAR (Phase 2 — refonte services dédiés)
   Ajout : 2026-06-01
   ======================================================== */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-chevron {
  font-size: 0.7em;
  line-height: 1;
  margin-left: 2px;
  transition: transform var(--transition, 0.2s ease);
}

.nav-item-dropdown:hover .nav-chevron,
.nav-item-dropdown:focus-within .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-white);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.15), 0 2px 8px rgba(10, 22, 40, 0.06);
  padding: 14px 10px;
  min-width: 320px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 14px;
  color: var(--text-body, #374151) !important;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.3;
}

.nav-dropdown-menu a::after { display: none !important; }

.nav-dropdown-menu a:hover {
  background: var(--blue-50, #f0f7ff);
  color: var(--blue-500, #2d7dd2) !important;
  transform: translateX(2px);
}

.nav-dropdown-menu .nav-dropdown-header {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted, #6b7280);
  padding: 6px 14px 4px;
  letter-spacing: 0.6px;
  font-weight: 600;
}

.nav-dropdown-menu .nav-dropdown-sep {
  height: 1px;
  background: var(--bg-gray, #f1f5f9);
  margin: 8px 6px;
}

.nav-dropdown-menu .nav-dropdown-all {
  font-weight: 600;
  color: var(--blue-500, #2d7dd2) !important;
}

/* Mobile : déplie le dropdown en sous-liste statique */
@media (max-width: 900px) {
  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: transparent;
    box-shadow: none;
    padding: 4px 0 4px 18px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    margin: 6px 0 10px;
  }
  .nav-dropdown-menu a {
    color: rgba(255, 255, 255, 0.78) !important;
    padding: 6px 8px;
    font-size: 0.85rem;
  }
  .nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff !important;
    transform: none;
  }
  .nav-dropdown-menu .nav-dropdown-header {
    color: rgba(255, 255, 255, 0.45);
  }
  .nav-dropdown-menu .nav-dropdown-sep {
    background: rgba(255, 255, 255, 0.1);
  }
  .navbar.scrolled .nav-dropdown-menu {
    border-left-color: rgba(0, 0, 0, 0.08);
  }
  .navbar.scrolled .nav-dropdown-menu a {
    color: var(--text-body, #374151) !important;
  }
  .navbar.scrolled .nav-dropdown-menu .nav-dropdown-header {
    color: var(--text-muted, #6b7280);
  }
  .nav-chevron { display: none; }
}

/* ========================================================
   PAGES PRESTATION — Structure standardisée
   (utilisée par les 6 piliers + sous-pages SEO)
   ======================================================== */
.prestation-section {
  padding: 80px 0;
}
.prestation-section + .prestation-section {
  padding-top: 40px;
}
.prestation-section.alt {
  background: var(--bg-light, #f8fafc);
}

.prestation-intro {
  max-width: 760px;
  margin-bottom: 48px;
}

.prestation-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.prestation-benefit {
  background: var(--bg-white);
  border: 1px solid var(--bg-gray, #f1f5f9);
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.prestation-benefit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(10, 22, 40, 0.08);
}
.prestation-benefit-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.prestation-benefit h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text-dark, #1a1a2e);
}
.prestation-benefit p {
  font-size: 0.92rem;
  color: var(--text-body, #374151);
  line-height: 1.55;
}

.prestation-deliverables {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 12px;
}
.prestation-deliverables li {
  padding: 14px 18px 14px 44px;
  background: var(--bg-white);
  border-radius: 10px;
  border-left: 3px solid var(--blue-500, #2d7dd2);
  position: relative;
  font-weight: 500;
  color: var(--text-dark, #1a1a2e);
}
.prestation-deliverables li::before {
  content: '\2713';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-500, #2d7dd2);
  font-weight: 700;
  font-size: 1.1rem;
}

.prestation-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  counter-reset: step;
  margin-top: 32px;
}
.prestation-step {
  padding: 24px;
  background: var(--bg-white);
  border-radius: 12px;
  position: relative;
  counter-increment: step;
}
.prestation-step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent-gradient, linear-gradient(135deg,#2d7dd2,#1a3a5c));
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 12px;
}
.prestation-step h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text-dark, #1a1a2e);
}
.prestation-step p {
  font-size: 0.88rem;
  color: var(--text-body, #374151);
  line-height: 1.5;
}

.prestation-faq {
  max-width: 820px;
  margin: 0 auto;
}
.prestation-faq details {
  background: var(--bg-white);
  border: 1px solid var(--bg-gray, #f1f5f9);
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.prestation-faq details[open] {
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.06);
}
.prestation-faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--text-dark, #1a1a2e);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.prestation-faq summary::-webkit-details-marker { display: none; }
.prestation-faq summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--blue-500, #2d7dd2);
  transition: transform 0.2s ease;
  line-height: 1;
}
.prestation-faq details[open] summary::after {
  content: '\2212';
}
.prestation-faq details > div {
  padding: 0 22px 22px;
  color: var(--text-body, #374151);
  line-height: 1.6;
}

/* Index pilier (services.html refondue) */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.pillar-card {
  display: block;
  padding: 28px;
  background: var(--bg-white);
  border: 1px solid var(--bg-gray, #f1f5f9);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10, 22, 40, 0.08);
  border-color: var(--blue-300, #7bb8f0);
}
.pillar-card-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}
.pillar-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-dark, #1a1a2e);
}
.pillar-card p {
  font-size: 0.92rem;
  color: var(--text-body, #374151);
  line-height: 1.55;
  margin-bottom: 12px;
}
.pillar-card .pillar-card-link {
  color: var(--blue-500, #2d7dd2);
  font-weight: 600;
  font-size: 0.88rem;
}

.focus-offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.focus-offer {
  padding: 18px 20px;
  background: var(--bg-white);
  border: 1px dashed var(--blue-300, #7bb8f0);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-dark, #1a1a2e);
  font-weight: 600;
  font-size: 0.93rem;
  transition: all 0.2s ease;
}
.focus-offer:hover {
  background: var(--blue-50, #f0f7ff);
  border-style: solid;
}

/* Breadcrumb visuel sur les pages prestations */
.breadcrumb-nav {
  padding: 16px 0;
  background: var(--bg-light, #f8fafc);
  font-size: 0.85rem;
}
.breadcrumb-nav ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb-nav li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted, #6b7280);
}
.breadcrumb-nav li + li::before {
  content: '\203A';
  color: var(--text-light, #9ca3af);
}
.breadcrumb-nav a {
  color: var(--text-muted, #6b7280);
  text-decoration: none;
}
.breadcrumb-nav a:hover {
  color: var(--blue-500, #2d7dd2);
}
.breadcrumb-nav li:last-child {
  color: var(--text-dark, #1a1a2e);
  font-weight: 500;
}

/* ========================================================
   FIX 2026-06-01 : Breadcrumb sous navbar fixed (Phase 2)
   La navbar fait ~88px de haut au load initial (padding 16px + container 40px + marges).
   On compense pour que le breadcrumb ne soit pas masqué.
   ======================================================== */
.breadcrumb-nav {
  padding-top: 104px;
  padding-bottom: 16px;
}

/* Si breadcrumb directement suivi d'un page-hero, on retire le padding-top du hero
   pour éviter le double espacement */
.breadcrumb-nav + .page-hero {
  padding-top: 40px;
}

@media (max-width: 768px) {
  .breadcrumb-nav {
    padding-top: 92px;
  }
}


/* ============================================================
   TARTEAUCITRON — Overrides couleurs minimal (palette Abysse)
   Le CSS officiel (vendor/tarteaucitron/css/tarteaucitron.css)
   gère TOUT le layout. Ici on n'ajuste QUE les couleurs.
   ============================================================ */

/* Bouton Allow (Tout accepter, Autoriser) — bleu OCTOPROD */
#tarteaucitronRoot .tarteaucitronAllow,
#tarteaucitronRoot #tarteaucitronAllAllowed,
#tarteaucitronRoot #tarteaucitronAllAllowed2,
#tarteaucitronRoot #tarteaucitronCTAButton,
#tarteaucitronRoot #tarteaucitronCloseAlert,
#tarteaucitronRoot #tarteaucitronPersonalize {
  background: var(--blue-500, #2d7dd2) !important;
  color: #fff !important;
}
#tarteaucitronRoot .tarteaucitronAllow:hover,
#tarteaucitronRoot #tarteaucitronAllAllowed:hover,
#tarteaucitronRoot #tarteaucitronAllAllowed2:hover,
#tarteaucitronRoot #tarteaucitronCloseAlert:hover,
#tarteaucitronRoot #tarteaucitronPersonalize:hover {
  background: var(--blue-400, #4a9be8) !important;
}

/* Bouton Deny (Tout refuser, Interdire) — gris muted */
#tarteaucitronRoot .tarteaucitronDeny,
#tarteaucitronRoot #tarteaucitronAllDenied,
#tarteaucitronRoot #tarteaucitronAllDenied2 {
  background: var(--text-muted, #6b7280) !important;
  color: #fff !important;
}
#tarteaucitronRoot .tarteaucitronDeny:hover,
#tarteaucitronRoot #tarteaucitronAllDenied:hover,
#tarteaucitronRoot #tarteaucitronAllDenied2:hover {
  background: var(--text-dark, #1a1a2e) !important;
}

/* Bannière du bas — navy palette */
#tarteaucitronAlertBig {
  background: var(--navy-800, #0f1f3d) !important;
  color: #fff !important;
}
/* Texte description de la bannière — blanc lisible sur navy */
#tarteaucitronAlertBig,
#tarteaucitronAlertBig strong,
#tarteaucitronAlertBig span,
#tarteaucitronAlertBig p,
#tarteaucitronDisclaimerAlert {
  color: #fff !important;
}

/* Lien Politique de confidentialité dans la bannière */
#tarteaucitronAlertBig #tarteaucitronPrivacyUrl,
#tarteaucitronAlertBig #tarteaucitronPrivacyUrlDialog {
  color: var(--blue-300, #7bb8f0) !important;
  text-decoration: underline !important;
}

/* Bouton "Fermer" du panneau (croix en haut à droite) */
#tarteaucitronClosePanel,
#tarteaucitronClosePanelCookie {
  background: var(--navy-800, #0f1f3d) !important;
  color: #fff !important;
}
#tarteaucitronClosePanel:hover,
#tarteaucitronClosePanelCookie:hover {
  background: var(--blue-500, #2d7dd2) !important;
}

/* Texte des titres dans le panneau — garder lisible */
#tarteaucitronServices .tarteaucitronTitle button,
#tarteaucitronInfo,
#tarteaucitronMainLineOffset {
  color: var(--text-dark, #1a1a2e) !important;
}


/* ============================================================
   FIX 2026-08-03 (audit pre-mise en ligne)
   A6 — Breadcrumb dans le hero navy des pages internes
   (la classe .breadcrumb-nav-in-hero n'avait aucun style)
   ============================================================ */
.breadcrumb-nav-in-hero {
  margin-bottom: 24px;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}
.breadcrumb-nav-in-hero ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.breadcrumb-nav-in-hero li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.55);
}
.breadcrumb-nav-in-hero li + li::before {
  content: '\203A';
  color: rgba(255, 255, 255, 0.35);
}
.breadcrumb-nav-in-hero a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb-nav-in-hero a:hover {
  color: var(--blue-300, #7bb8f0);
  text-decoration: underline;
}
.breadcrumb-nav-in-hero li:last-child {
  color: #fff;
  font-weight: 500;
}

/* ============================================================
   FIX 2026-08-03 — B1 : lisibilite banniere cookies Tarteaucitron
   Overrides prefixes #tarteaucitronRoot pour battre la
   specificite du CSS vendor (texte + taille + contraste AA).
   ============================================================ */
#tarteaucitronRoot #tarteaucitronAlertBig {
  background: var(--navy-800, #0f1f3d) !important;
  padding: 18px 24px !important;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
}
#tarteaucitronRoot #tarteaucitronAlertBig,
#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert,
#tarteaucitronRoot #tarteaucitronAlertBig strong,
#tarteaucitronRoot #tarteaucitronAlertBig span,
#tarteaucitronRoot #tarteaucitronAlertBig p {
  color: #ffffff !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
}
#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronPrivacyUrl,
#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronPrivacyUrlDialog {
  color: var(--blue-300, #7bb8f0) !important;
  text-decoration: underline !important;
}


/* ============================================================
   FIX 2026-08-03 (recette Danny) — mise en page pages services
   1) Bloc intro : pleine largeur du container tant qu'il n'y a
      pas d'illustration a droite (decision Danny 2026-08-03 —
      re-borner a ~760px le jour ou on ajoute les illustrations
      par pilier en colonne droite)
   2) Cartes benefices : repartition equilibree (6 -> 3+3,
      nombre impair -> derniere rangee centree)
   ============================================================ */
.prestation-intro {
  max-width: none;
}
.prestation-intro p {
  line-height: 1.7;
}
/* Respiration sous le titre de section */
.prestation-intro h2 {
  margin-bottom: 24px;
}
/* Equilibre haut/bas : quand l'intro est seule dans la section,
   sa marge basse ne s'ajoute plus au padding de section */
.prestation-intro:last-child {
  margin-bottom: 0;
}
.prestation-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.prestation-benefit {
  flex: 1 1 300px;
  max-width: 360px;
}

/* FIX 2026-08-03 — illustration IA : plus de carte, fondu des bords
   dans le fond navy de la section (mask radial) */
.ai-image-placeholder {
  background: none;
  border: none;
  aspect-ratio: auto;
}

/* ============================================================
   FIX 2026-08-03 — Hero des pages services avec visuel généré
   (bannière : motif à droite, voile dégradé pour le texte à gauche)
   ============================================================ */
.page-hero.with-visual {
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.page-hero.with-visual::before {
  background: linear-gradient(90deg,
    rgba(10, 22, 40, 0.96) 0%,
    rgba(10, 22, 40, 0.88) 55%,
    rgba(10, 22, 40, 0.45) 85%,
    rgba(10, 22, 40, 0.12) 100%);
}
@media (max-width: 768px) {
  .page-hero.with-visual::before {
    background: rgba(10, 22, 40, 0.88);
  }
}

/* ============================================================
   FIX 2026-08-03 — Accent thématique par page dans le hero visuel
   (--hero-accent défini en inline sur .page-hero.with-visual)
   + ombre portée du titre pour lisibilité sur le motif
   ============================================================ */
.page-hero.with-visual .section-label {
  color: var(--hero-accent, var(--blue-300));
}
.page-hero.with-visual h1 .text-gradient {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: var(--hero-accent, var(--blue-300));
  color: var(--hero-accent, var(--blue-300));
}
.page-hero.with-visual h1 {
  text-shadow:
    0 0 16px rgba(10, 22, 40, 1),
    0 0 32px rgba(10, 22, 40, 0.9),
    0 2px 6px rgba(10, 22, 40, 0.8);
}
.page-hero.with-visual p {
  text-shadow:
    0 0 12px rgba(10, 22, 40, 1),
    0 1px 4px rgba(10, 22, 40, 0.85);
}

/* FIX 2026-08-03 — cartes IA réparties sur les 2 colonnes :
   marges harmonisées avec la grille (32px comme la base .ai-features) */
.ai-visual .ai-features {
  margin-top: 32px;
}
.ai-content .ai-features {
  margin-top: 36px;
}

/* ============================================================
   FIX 2026-10-02 — ESPACE CLIENT (espace.html, rendu par js/espace.js)
   Composants : cartes, étapes, jauge de questions, bandeaux, décision
   ============================================================ */
.espace-section {
  padding: var(--section-padding);
  background: var(--bg-light);
}
.espace-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: start;
}
.espace-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}
.espace-card {
  position: relative;
  background: var(--bg-white);
  padding: 36px;
  border-radius: var(--border-radius-lg);
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-card);
}
.espace-grid-3 .espace-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.espace-grid-3 .espace-card .btn { margin-top: auto; }
.espace-card-narrow { max-width: 620px; margin: 0 auto; }
.espace-card-accent { border-color: transparent; box-shadow: 0 0 0 2px var(--blue-300), var(--shadow-card-hover); }
.espace-center { text-align: center; }
.espace-card h2 { font-size: 1.3rem; margin-bottom: 12px; }
.espace-card p { margin-bottom: 14px; }
.espace-muted { color: var(--text-muted); font-size: 0.9rem; }
.espace-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 16px;
}
.espace-center .espace-icon { margin-left: auto; margin-right: auto; font-size: 2.2rem; }

.espace-perks { list-style: none; margin: 0 0 24px; padding: 0; }
.espace-perks li {
  position: relative;
  padding: 6px 0 6px 28px;
  font-size: 0.92rem;
  color: var(--text-body);
}
.espace-perks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gradient);
}

.espace-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  cursor: pointer;
}
.espace-consent input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--blue-500); }
.espace-consent a, .espace-card p a { color: var(--blue-500); font-weight: 600; }
.espace-error { color: #dc2626; font-size: 0.85rem; min-height: 1.2em; margin-bottom: 10px !important; }

.espace-steps { list-style: none; margin: 8px 0 24px; padding: 0; }
.espace-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.espace-steps li span {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg-gray);
  color: var(--text-muted);
}
.espace-steps li.done { color: var(--text-dark); }
.espace-steps li.done span { background: var(--accent-success); color: var(--text-white); }
.espace-steps li.current { color: var(--navy-700); font-weight: 600; }
.espace-steps li.current span { background: var(--blue-100); color: var(--blue-500); box-shadow: 0 0 0 3px rgba(45,125,210,0.18); }

.espace-gauge { width: 100%; margin-bottom: 14px; }
.espace-gauge-bar { height: 10px; border-radius: 999px; background: var(--blue-100); overflow: hidden; }
.espace-gauge-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent-gradient); transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.espace-gauge p { margin: 8px 0 0; font-size: 0.9rem; color: var(--text-body); }
.espace-gauge p strong { font-size: 1.25rem; color: var(--navy-700); }

.espace-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding: 24px 32px;
  border-radius: var(--border-radius-lg);
  background: var(--accent-gradient-light);
  border: 1px solid var(--blue-100);
}
.espace-cta p { margin: 0; font-weight: 600; color: var(--navy-700); }

.espace-logout { text-align: center; margin: 28px 0 0 !important; }
.espace-linkbtn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
}
.espace-linkbtn:hover { color: var(--navy-700); }

.espace-banner {
  max-width: 100%;
  margin: 0 0 24px;
  padding: 16px 20px;
  border-radius: var(--border-radius);
  font-size: 0.92rem;
  border-left: 4px solid var(--blue-500);
  background: var(--blue-50);
  color: var(--text-body);
}
.espace-banner-ok { border-left-color: var(--accent-success); background: #e6f9f1; }
.espace-banner-warn { border-left-color: var(--accent-orange); background: #fff6e9; }

.espace-table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; }
.espace-table th, .espace-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid #eef1f5; font-size: 0.92rem; vertical-align: top; }
.espace-table th { width: 42%; font-weight: 500; color: var(--text-muted); padding-right: 16px; }
.espace-table td { color: var(--text-dark); font-weight: 600; word-break: break-word; }
.espace-table td a { color: var(--blue-500); }
.espace-status { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--bg-gray); color: var(--text-body); }
.espace-status-pending_review { background: #fff6e9; color: #8a4b00; }
.espace-status-approved { background: #e6f9f1; color: #17734a; }
.espace-status-blocked { background: #fef2f2; color: #b91c1c; }
.espace-quota-field { max-width: 260px; }
.espace-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.espace-btn-danger { background: var(--bg-white); color: #b91c1c; border: 2px solid #f3b4b4; }
.espace-btn-danger:hover { background: #fef2f2; border-color: #dc2626; transform: translateY(-2px); }
.espace-suggested { outline: 3px solid rgba(45,125,210,0.35); outline-offset: 3px; }
.espace-card .btn:disabled { opacity: 0.55; cursor: default; transform: none; }
/* FIX 2026-10-04 (iteration 6) : client area — « Mes données » (rectification, export, erasure) */
.espace-data { margin-top: 32px; }
.espace-data.espace-card-narrow { margin-top: 24px; }
.espace-data-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.espace-data-actions .btn { padding: 10px 22px; font-size: 0.9rem; }
.espace-data .espace-error { min-height: 0; margin: 10px 0 0; }
.espace-data-form, .espace-data-danger { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eef1f5; }
.espace-data-form input[readonly] { background: var(--bg-gray); color: var(--text-muted); cursor: default; }
.espace-data-form .form-group .espace-muted { margin: 6px 0 0; }
.espace-data-danger { padding: 18px 20px; border: 2px solid #f3b4b4; border-left: 5px solid #dc2626; border-radius: var(--border-radius); background: #fef2f2; }
.espace-data-danger p { margin-bottom: 10px; }
.espace-data #espace-data-panel .espace-banner { margin: 20px 0 0; }
@media (max-width: 768px) {
  .espace-data-actions .btn { width: 100%; justify-content: center; padding: 10px 14px; font-size: 0.8rem; white-space: normal; text-align: center; line-height: 1.3; }
  .admin-confirm-actions .btn { flex: 1 1 100%; justify-content: center; white-space: normal; }
}

/* Lien « Espace client » de la barre de navigation */
.nav-links a.nav-espace { display: inline-flex; align-items: center; gap: 6px; }
.nav-links a.nav-espace svg { width: 15px; height: 15px; flex: none; }

@media (max-width: 1024px) {
  .espace-grid, .espace-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .espace-card { padding: 28px 22px; }
  .espace-cta { padding: 20px 22px; }
  .espace-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   FIX 2026-10-02 — MENU CALÉ EN BAS AU DÉFILEMENT
   Piloté par js/main.js : .nav-bottom sur .navbar, .nav-is-bottom sur <html>.
   En descendant, le menu se cale en bas de l'écran ; en remontant, il revient en haut.
   --nav-h (hauteur réelle du menu) est tenu à jour par le script.
   ============================================================ */
:root {
  --nav-h: 76px;
}

.navbar.nav-bottom {
  top: auto;
  bottom: 0;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 24px rgba(10, 22, 40, 0.10);
  animation: navDockBottom 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.navbar.nav-return {
  animation: navDockTop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes navDockBottom {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes navDockTop {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

/* Le pied de page garde la place du menu : sa dernière ligne reste lisible quand le menu est en bas */
.footer {
  padding-bottom: var(--nav-h);
}

/* Ce qui est fixé en bas de l'écran se relève au-dessus du menu, et au-dessus du bandeau cookies tant
   qu'il est affiché (--cookie-h, tenu à jour par js/main.js). --ap-lift est lu par js/astropoulpe.js. */
html {
  --ap-lift: var(--cookie-h, 0px);
}
html.nav-is-bottom {
  --ap-lift: calc(var(--nav-h) + var(--cookie-h, 0px));
}
html.nav-is-bottom #tarteaucitronRoot #tarteaucitronAlertBig,
html.nav-is-bottom #tarteaucitronIcon {
  bottom: var(--nav-h) !important;
}
/* le bandeau cookies passe sous le menu : les sous-menus, qui s'ouvrent vers le haut, restent lisibles */
html.nav-is-bottom #tarteaucitronRoot #tarteaucitronAlertBig {
  z-index: 999 !important;
}

/* Sous-navigation collante de la page Services : plus de menu au-dessus d'elle */
.services-subnav {
  transition: top 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
html.nav-is-bottom .services-subnav {
  top: 0;
}

/* Le menu vient de changer de place sous un curseur immobile : pas d'ouverture de sous-menu au survol
   tant que la souris n'a pas bougé (classe posée puis retirée par js/main.js). Le clavier reste actif. */
@media (min-width: 901px) {
  .navbar.nav-quiet .nav-item-dropdown:hover:not(:focus-within) .nav-dropdown-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* Bureau : les sous-menus s'ouvrent vers le haut */
@media (min-width: 901px) {
  .navbar.nav-bottom .nav-dropdown-menu {
    top: auto;
    bottom: 100%;
    transform: translateX(-50%) translateY(-10px);
    max-height: calc(100vh - var(--nav-h) - 24px);
    overflow-y: auto;
    box-shadow: 0 -12px 40px rgba(10, 22, 40, 0.15), 0 -2px 8px rgba(10, 22, 40, 0.06);
  }
  .navbar.nav-bottom .nav-item-dropdown:hover .nav-dropdown-menu,
  .navbar.nav-bottom .nav-item-dropdown:focus-within .nav-dropdown-menu {
    transform: translateX(-50%) translateY(0);
  }
  .navbar.nav-bottom .nav-chevron {
    transform: rotate(180deg);
  }
  .navbar.nav-bottom .nav-item-dropdown:hover .nav-chevron,
  .navbar.nav-bottom .nav-item-dropdown:focus-within .nav-chevron {
    transform: rotate(0deg);
  }
}

/* Mobile : le volet du menu part du bas de l'écran */
@media (max-width: 768px) {
  .navbar.nav-bottom .nav-links {
    top: auto;
    bottom: 0;
    padding: 32px 32px 110px;
    overflow-y: auto;
  }
  @media (max-width: 480px) {
    html.nav-is-bottom .scroll-hint { bottom: calc(14px + var(--nav-h) + var(--cookie-h, 0px)); }
  }
}

/* Volet mobile ouvert, menu en mode clair (page défilée ou menu en bas) : la croix de fermeture et les
   sous-liens étaient sombres sur le fond sombre du volet. */
.navbar.scrolled .hamburger.active span {
  background: var(--text-white);
}
@media (max-width: 900px) {
  .navbar.scrolled .nav-links.open .nav-dropdown-menu a {
    color: rgba(255, 255, 255, 0.78) !important;
  }
  .navbar.scrolled .nav-links.open .nav-dropdown-menu .nav-dropdown-header {
    color: rgba(255, 255, 255, 0.45);
  }
  .navbar.scrolled .nav-links.open .nav-dropdown-menu {
    border-left-color: rgba(255, 255, 255, 0.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .navbar.nav-bottom,
  .navbar.nav-return {
    animation: none;
  }
}

/* ============================================================
   FIX 2026-10-02 — INDICE DE DÉFILEMENT (accueil)
   Pastille flottante : flèche qui clignote + titre de la section suivante, avec un reflet lent.
   Créée par js/main.js sur les pages dont des sections portent data-scroll-label.
   ============================================================ */
.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: calc(26px + var(--cookie-h, 0px));
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 184px);     /* laisse la place de la bulle de l'assistant, à droite */
  padding: 8px 20px 8px 9px;
  border: 1px solid rgba(123, 184, 240, 0.38);
  border-radius: 50px;
  background: rgba(10, 22, 40, 0.80);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(10, 22, 40, 0.30);
  color: var(--text-white);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.5s ease, bottom 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease, background 0.3s ease;
}
.scroll-hint.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.scroll-hint:hover,
.scroll-hint:focus-visible {
  border-color: rgba(123, 184, 240, 0.8);
  background: rgba(15, 31, 61, 0.92);
  outline: none;
}
html.nav-is-bottom .scroll-hint {
  bottom: calc(18px + var(--nav-h) + var(--cookie-h, 0px));
}

.scroll-hint-arrow {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(123, 184, 240, 0.18);
  color: var(--blue-300);
  animation: scrollHintBlink 1.9s ease-in-out infinite;
}
.scroll-hint-arrow svg {
  width: 16px;
  height: 16px;
  animation: scrollHintBob 1.9s ease-in-out infinite;
}

.scroll-hint-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.scroll-hint-kicker {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-300);
}
.scroll-hint-label {
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* reflet lent qui traverse le texte */
  color: #ffffff;
  background: linear-gradient(100deg, #ffffff 0%, #ffffff 42%, #7bb8f0 50%, #ffffff 58%, #ffffff 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: scrollHintShimmer 5s linear infinite;
}
.scroll-hint.is-swapping .scroll-hint-text {
  animation: scrollHintSwap 0.45s ease;
}

@keyframes scrollHintBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
@keyframes scrollHintBob {
  0%, 100% { transform: translateY(-2px); }
  50%      { transform: translateY(3px); }
}
@keyframes scrollHintShimmer {
  from { background-position: 130% 0; }
  to   { background-position: -130% 0; }
}
@keyframes scrollHintSwap {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .scroll-hint {
    bottom: calc(22px + var(--cookie-h, 0px));
    gap: 9px;
    padding: 7px 14px 7px 7px;
    max-width: calc(100vw - 168px);
  }
  .scroll-hint-arrow { width: 26px; height: 26px; }
  .scroll-hint-label { font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint,
  .scroll-hint-arrow,
  .scroll-hint-arrow svg,
  .scroll-hint-label,
  .scroll-hint.is-swapping .scroll-hint-text {
    animation: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
  .scroll-hint-label {
    -webkit-text-fill-color: #ffffff;
    background: none;
  }
}

@media print {
  .scroll-hint { display: none; }
}

/* ============================================================
   FIX 2026-10-02 (itération 2) — FORFAITS INDICATIFS (site vitrine)
   Les trois fourchettes s'alignent en bas des cartes, quelle que soit la longueur du descriptif.
   ============================================================ */
.pillar-card.forfait-card { display: flex; flex-direction: column; }
.forfait-card .forfait-prix {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--bg-gray);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-500);
  white-space: nowrap;
}
.forfait-note {
  margin-top: 28px;
  padding: 22px 28px;
  border-radius: var(--border-radius);
  background: var(--accent-gradient-light);
  border: 1px solid var(--blue-100);
  border-left: 4px solid var(--blue-500);
}
.forfait-note p { margin: 0; color: var(--text-body); line-height: 1.65; }
.forfait-note p + p { margin-top: 8px; }
.forfait-note strong { color: var(--navy-700); }
@media (max-width: 768px) {
  .forfait-note { padding: 18px 20px; }
}

/* ============================================================
   FIX 2026-10-02 (itération 2) — ESPACE CLIENT : ENCART OCTOCORE
   ============================================================ */
.espace-octocore {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 24px;
  padding: 36px;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-600) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-card);
}
.espace-octocore-text { min-width: 0; }
.espace-octocore-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(123, 184, 240, 0.18);
  color: var(--blue-300);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.espace-octocore h2 { margin: 0 0 16px; font-size: 1.45rem; color: #ffffff; }
.espace-octocore-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.espace-octocore-list li {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.9rem;
  line-height: 1.3;
}
.espace-octocore p { margin: 0; max-width: 62ch; color: rgba(255, 255, 255, 0.86); line-height: 1.65; }
.espace-octocore p strong { color: #ffffff; }
.espace-octocore .btn { flex: none; }
@media (max-width: 1024px) {
  .espace-octocore { flex-direction: column; align-items: flex-start; gap: 22px; }
}
@media (max-width: 768px) {
  .espace-octocore { padding: 28px 22px; }
  .espace-octocore .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   FIX 2026-10-03 (itération 3) — PASTILLE « HOT » DU MENU
   ============================================================ */
.nav-hot {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7a3d 0%, #e91e8c 100%);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ============================================================
   FIX 2026-10-03 (itération 3) — FENÊTRE COOKIES AU MILIEU DE L'ÉCRAN
   La bibliothèque pose la fenêtre et son voile (orientation « middle ») ; ici, le voile passe du blanc
   au bleu nuit du site et la fenêtre prend ses dimensions de lecture. Les tailles sont en px : la
   fenêtre ne suit pas l'agrandissement des textes sur mobile, elle doit tenir dans l'écran.
   ============================================================ */
html body div#tarteaucitronRoot.tarteaucitronSize-middle.tarteaucitronBeforeVisible::before {
  background: rgba(10, 22, 40, 0.72) !important;   /* la bibliothèque pose un voile blanc avec !important */
}
html body #tarteaucitronRoot.tarteaucitronSize-middle div#tarteaucitronAlertBig {
  width: min(540px, calc(100vw - 32px));
  min-width: 0;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 26px 26px 20px;
  border: 1px solid rgba(123, 184, 240, 0.25);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  text-align: center;
  font-family: 'Poppins', Arial, sans-serif;
}
html body #tarteaucitronRoot.tarteaucitronSize-middle div#tarteaucitronAlertBig:before {
  font-size: 30px;
}
html body #tarteaucitronRoot.tarteaucitronSize-middle span#tarteaucitronDisclaimerAlert {
  margin: 6px 0 22px;
  padding: 0;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
}
html body #tarteaucitronRoot.tarteaucitronSize-middle #tarteaucitronAlertBig button {
  font-family: inherit !important;
  font-size: 15px !important;
}
html body #tarteaucitronRoot.tarteaucitronSize-middle #tarteaucitronAlertBig button.tarteaucitronCTAButton,
html body #tarteaucitronRoot.tarteaucitronSize-middle #tarteaucitronAlertBig button#tarteaucitronCloseAlert {
  min-width: 180px;
  padding: 11px 22px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
}
/* « Voir le détail » : action secondaire, discrète à côté du oui et du non */
html body #tarteaucitronRoot.tarteaucitronSize-middle #tarteaucitronAlertBig button#tarteaucitronCloseAlert {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

/* ============================================================
   FIX 2026-10-03 (itération 3) — MOBILE : TEXTES AGRANDIS, ACCUEIL AÉRÉ
   Toutes les tailles de texte du site sont en rem : la taille de base de la page est le seul réglage.
   150 % = textes courants multipliés par 1,5 sur téléphone (de 13-16 px à 20-24 px). Les titres, les
   accroches et les pictogrammes, déjà grands, sont ramenés près de leur taille d'avant pour tenir dans
   la largeur de l'écran ; les éléments de commande (boutons, menu) sont agrandis d'un quart.
   Les !important ne servent qu'à passer devant les règles plus précises des composants.
   ============================================================ */
@media (max-width: 768px) {
  html { font-size: 150%; --nav-scale: 0.78; }
  /* un mot ou une adresse plus large que l'écran se coupe au lieu de pousser la page en largeur */
  body { overflow-wrap: anywhere; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid > * { min-width: 0; }

  /* titres */
  h1 { font-size: 1.6rem !important; line-height: 1.2; }
  h2 { font-size: 1.3rem !important; line-height: 1.25; }
  h3 { font-size: 1.05rem !important; line-height: 1.3; }
  h4 { font-size: 0.95rem !important; line-height: 1.35; }

  /* accroches et sous-titres : déjà grands */
  .section-subtitle,
  .page-hero p,
  .ai-content p,
  .transition-banner div { font-size: 0.86rem; line-height: 1.65; }
  .transition-banner h4 { font-size: 0.9rem !important; }
  .section-label { font-size: 0.62rem; }

  /* pictogrammes et chiffres clés : taille d'avant */
  .pillar-card-icon { font-size: 1.5rem; }
  .service-card-icon, .why-card-icon { font-size: 1.05rem; }
  .prestation-benefit-icon { font-size: 1.25rem; }
  .contact-icon, .ai-feature-icon { font-size: 0.85rem; }
  .espace-icon { font-size: 1rem; }
  .hero-stat .stat-number { font-size: 1.5rem; }
  .hero-stat .stat-label { font-size: 0.68rem; }
  .forfait-card .forfait-prix { font-size: 0.9rem; }

  /* éléments de commande */
  .btn { font-size: 0.8rem; }
  .btn .btn-icon { font-size: 0.9rem; }
  /* Menu : ses règles sont reprises telles quelles dans les pages privées de l'espace client (build.js), dont
     la taille de base reste à 100 %. Elles s'écrivent donc par rapport à leur taille d'origine, avec un
     coefficient que seule cette feuille définit (sur html, plus haut) : sans lui, elles ne changent rien. */
  .nav-links a { font-size: calc(1.1rem * var(--nav-scale, 1)); }
  .nav-dropdown-menu a { font-size: calc(0.85rem * var(--nav-scale, 1)); }
  .nav-dropdown-menu .nav-dropdown-header { font-size: calc(0.7rem * var(--nav-scale, 1)); }
  .nav-hot { font-size: calc(0.62rem * var(--nav-scale, 1)); }
  .skip-link { font-size: 0.7rem; }
  .scroll-hint-kicker { font-size: 0.44rem; }
  .scroll-hint-label { font-size: 0.6rem; }

  /* volet du menu : chaque rubrique au-dessus de sa sous-liste (elles étaient côte à côte), volet défilant */
  .nav-links { align-items: flex-start; gap: 18px; padding-bottom: 48px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .nav-item-dropdown { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-dropdown-menu { width: 100%; box-sizing: border-box; }

  /* l'indice de défilement laisse la place au lien placé sous l'icône de l'assistant */
  .scroll-hint { bottom: calc(40px + var(--cookie-h, 0px)); }

  /* accueil : le badge descend sous le menu, le premier écran respire */
  .hero { align-items: flex-start; padding-top: 112px; padding-bottom: 56px; }
  .hero-badge { margin: 0 0 30px; font-size: 0.54rem; padding: 9px 16px; }
  .hero h1 { margin-bottom: 18px; }
  .hero-rotate-wrapper { font-size: 1rem; }
  .hero .hero-description { font-size: 0.82rem; line-height: 1.7; margin-top: 24px; margin-bottom: 36px; }
  .hero-buttons { gap: 16px; margin-bottom: 48px; }
}

/* la pastille reste sur la ligne de son lien dans le sous-menu du bureau */
@media (min-width: 901px) {
  .nav-dropdown-menu a { white-space: nowrap; }
}

/* ============================================================
   FIX 2026-10-03 (itération 4) — FENÊTRE COOKIES : LOGO ET SIGNATURE EN TÊTE
   La fenêtre s'ouvre avant que le visiteur ait vu le site : le logo OCTOPROD et « Pilotage informatique »
   s'affichent au-dessus du pictogramme des cookies (bloc posé par js/cookie-config.js).
   Tailles en px, comme le reste de la fenêtre.
   ============================================================ */
html body #tarteaucitronRoot.tarteaucitronSize-middle div#tarteaucitronAlertBig.oc-has-brand:before {
  content: none;   /* le pictogramme d'origine est repris dans le bloc, sous la signature */
}
html body #tarteaucitronRoot #tarteaucitronAlertBig .oc-cookie-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 6px;
}
html body #tarteaucitronRoot #tarteaucitronAlertBig .oc-cookie-brand img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}
html body #tarteaucitronRoot #tarteaucitronAlertBig .oc-cookie-tag {
  width: 100%;
  margin: 8px 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(123, 184, 240, 0.22);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-align: center;
}
html body #tarteaucitronRoot #tarteaucitronAlertBig .oc-cookie-ico {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1;
  text-align: center;
}

/* ============================================================
   FIX 2026-10-03 (itération 4) — TÉLÉPHONE : PIED DE PAGE FIXE ET MENU
   Le pied de page fixe (cookies, assistant, phrase d'invitation, « IA ? ») est posé par js/astropoulpe.js,
   qui publie sa hauteur dans --ap-bar et pose .ap-has-bar sur <html>. Ce que la page fixe en bas de l'écran
   garde sa place, relevé de cette hauteur : l'indice de défilement et le badge reCAPTCHA.
   ============================================================ */
@media (max-width: 768px) {
  html.ap-has-bar .scroll-hint {
    bottom: calc(var(--ap-bar, 0px) + 12px + var(--cookie-h, 0px));
    max-width: calc(100vw - 32px);      /* plus de bulle à contourner à droite */
  }
  html.ap-has-bar .grecaptcha-badge {
    bottom: calc(var(--ap-bar, 0px) + 14px) !important;
  }
  /* l'icône de gestion des cookies est reprise, en petit, à gauche du pied de page */
  html.ap-has-bar #tarteaucitronIcon { display: none !important; }

  /* volet du menu : police et interligne agrandis (le coefficient vaut pour cette feuille seulement, voir plus haut) */
  html { --nav-scale: 0.95; }
  .nav-links { gap: 14px; padding-bottom: calc(var(--ap-bar, 0px) + 48px); width: 92%; max-width: 400px; padding-left: 26px; padding-right: 22px; }
  .nav-links > a,
  .nav-item-dropdown > a { line-height: 1.5; padding: 8px 0; }
  .nav-links .nav-cta { padding: 12px 26px !important; margin-top: 6px; }
  .nav-dropdown-menu { margin: 4px 0 12px; padding: 6px 0 6px 16px; }
  .nav-dropdown-menu a { line-height: 1.5; padding: 10px 8px; }
  .nav-dropdown-menu .nav-dropdown-header { margin-bottom: 4px; }
  .nav-hot { letter-spacing: 0.05em; padding: 3px 8px; }
}

/* ============================================================
   FIX 2026-10-03 (itération 4) — ESPACE CLIENT : DEMANDE À L'ÉTUDE, SERVICES COCHÉS
   ============================================================ */
.espace-study {
  text-align: left;
  border-left-color: var(--accent-orange);
  background: #fff6e9;
  color: #6b3b00;
  font-size: 0.98rem;
  line-height: 1.6;
}
.espace-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin: 0 0 20px;
  padding: 0;
  border: none;
}
.espace-services legend {
  grid-column: 1 / -1;
  padding: 0;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}
.espace-services label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.45;
  cursor: pointer;
}
.espace-services input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--blue-500); }
.espace-status-pending_email { background: var(--bg-gray); color: var(--text-body); }
@media (max-width: 768px) {
  .espace-services { grid-template-columns: 1fr; }
}

/* ============================================================
   FIX 2026-10-03 (itération 4) — ESPACE D'ADMINISTRATION (rendu par js/admin.js)
   ============================================================ */
.admin-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.admin-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  background: var(--bg-white);
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
}
.admin-tile strong { font-size: 1.7rem; line-height: 1.15; color: var(--navy-700); font-weight: 800; }
.admin-tile span { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); }
.admin-tile small { font-size: 0.78rem; line-height: 1.45; color: var(--text-muted); }
.admin-tile-warn { border-color: #f5c98a; box-shadow: 0 0 0 2px rgba(247, 148, 29, 0.18), var(--shadow-card); }
.admin-tile-warn strong { color: #a85b00; }

.admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.admin-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-filter {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #d7e0ec;
  background: var(--bg-white);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
}
.admin-filter span { margin-left: 4px; color: var(--text-muted); font-weight: 500; }
.admin-filter.is-on { background: var(--navy-800); border-color: var(--navy-800); color: var(--text-white); }
.admin-filter.is-on span { color: rgba(255, 255, 255, 0.7); }
.admin-bar input[type="search"] {
  flex: 1 1 220px;
  max-width: 340px;
  padding: 10px 14px;
  border: 1px solid #d7e0ec;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
}
.admin-bar input[type="search"]:focus { outline: none; border-color: var(--blue-500); }

.admin-account {
  background: var(--bg-white);
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px 28px;
  margin-bottom: 16px;
}
.admin-account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-who h3 { font-size: 1.15rem; margin: 0 0 2px; }
.admin-who p { margin: 0; font-size: 0.9rem; color: var(--text-muted); word-break: break-word; }
.admin-who a { color: var(--blue-500); font-weight: 600; }
.admin-status-preapproved { background: #e6f9f1; color: #17734a; }
.admin-status-approved { background: #e6f9f1; color: #17734a; }
.admin-status-pending_review, .admin-status-pending_email { background: #fff6e9; color: #8a4b00; }
.admin-status-blocked { background: #fef2f2; color: #b91c1c; }
.admin-meta { margin: 12px 0 0; font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; }
.admin-project { margin: 12px 0 0; font-size: 0.92rem; color: var(--text-body); line-height: 1.6; word-break: break-word; }
.admin-services { margin: 10px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.admin-services span {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-700);
}
.admin-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.admin-actions .btn { padding: 9px 20px; font-size: 0.86rem; }
.admin-actions .btn:disabled { opacity: 0.4; cursor: default; transform: none; box-shadow: none; }
.admin-toggle {
  margin-left: auto;
  padding: 9px 4px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-500);
  cursor: pointer;
}
.admin-toggle:hover { text-decoration: underline; }
.admin-account .espace-error { margin: 8px 0 0 !important; min-height: 0; }
/* FIX 2026-10-04 (iteration 6) : account deletion — quiet button, explicit confirmation box, list of erased accounts */
.admin-btn-delete { background: transparent; color: #b91c1c; border: 2px solid transparent; box-shadow: none; text-decoration: underline; text-underline-offset: 3px; }
.admin-btn-delete:hover { background: #fef2f2; border-color: #f3b4b4; transform: none; }
.admin-confirm { margin-top: 16px; padding: 16px 18px; border: 2px solid #f3b4b4; border-left: 5px solid #dc2626; border-radius: var(--border-radius); background: #fef2f2; }
.admin-confirm p { margin: 0 0 10px; font-size: 0.92rem; color: var(--text-dark); }
.admin-confirm-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.admin-confirm-actions .btn { padding: 9px 20px; font-size: 0.86rem; }
.admin-deleted { margin-top: 28px; padding: 16px 20px; border: 1px solid #e3e8ef; border-radius: var(--border-radius); background: var(--bg-white); font-size: 0.88rem; }
.admin-deleted summary { cursor: pointer; font-weight: 600; color: var(--navy-700); }
.admin-deleted summary span { display: inline-block; min-width: 22px; padding: 1px 7px; margin-left: 6px; border-radius: 999px; background: var(--bg-gray); font-size: 0.78rem; text-align: center; }
.admin-deleted ul { list-style: none; margin: 10px 0 0; padding: 0; }
.admin-deleted li { padding: 7px 0; border-top: 1px solid #e3e8ef; color: var(--text-body); }
.admin-deleted li time { font-weight: 600; color: var(--navy-700); }
.admin-deleted li span { color: var(--text-muted); }
.admin-deleted li span::before { content: '· '; }
.admin-detail { margin-top: 18px; padding-top: 18px; border-top: 1px solid #eef1f5; }
.admin-ctx { margin-top: 0; }
.admin-ctx th { width: 34%; }

.admin-timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--blue-100); }
.admin-timeline li { position: relative; padding: 0 0 20px 6px; }
.admin-timeline li:last-child { padding-bottom: 2px; }
.admin-timeline li::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 3px solid var(--blue-400);
}
.admin-timeline li.admin-tl-chat::before { border-color: #8b5cf6; }
.admin-timeline li.admin-tl-request::before { border-color: var(--accent-orange); }
.admin-timeline time { display: block; font-size: 0.76rem; color: var(--text-muted); margin-bottom: 2px; }
.admin-tl-title { margin: 0 !important; font-size: 0.92rem; font-weight: 600; color: var(--text-dark); }
.admin-tl-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bg-gray);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  vertical-align: middle;
}
.admin-tl-q, .admin-tl-a {
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.55;
  word-break: break-word;
}
.admin-tl-q { background: var(--blue-500); color: var(--text-white); border-bottom-right-radius: 4px; margin-left: 12%; }
.admin-tl-a { background: var(--bg-light); border: 1px solid #e2e9f2; color: var(--text-body); border-bottom-left-radius: 4px; margin-right: 12%; }
.admin-tl-request .admin-tl-q { background: #fff6e9; color: #6b3b00; margin-left: 0; border: 1px solid #f5d9ae; }
.admin-tl-none { color: var(--text-muted); font-style: italic; }
.admin-foot { margin-top: 28px; text-align: center; font-size: 0.84rem; color: var(--text-muted); }
.admin-foot a { color: var(--blue-500); }

@media (max-width: 1024px) {
  .admin-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .admin-tiles { grid-template-columns: 1fr; gap: 12px; }
  .admin-account { padding: 22px 18px; }
  .admin-actions .btn { width: auto; flex: 1 1 auto; justify-content: center; }
  .admin-toggle { margin-left: 0; width: 100%; text-align: left; }
  .admin-tl-q { margin-left: 4%; }
  .admin-tl-a { margin-right: 4%; }
  .admin-ctx th { width: 44%; }
}

