/* ==========================================================================
   NCP Studio — Thème V3 « Diagonale & onglets »
   Chargé APRÈS style.css : ce fichier ne supprime rien, il redéfinit les
   variables et l'apparence des composants existants (DA de la maquette V3).
   Pour revenir à l'ancien design : retirer le <link> vers ce fichier.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Fonds clairs + bleu nuit pour les zones sombres */
  --bg-color: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-glass: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-soft: #f5f7ff;
  --navy: #101840;
  --navy-deep: #0b1233;

  --text-primary: #101840;
  --text-secondary: #565f82;
  --text-muted: #8a92b2;

  /* Bleu électrique + orange */
  --accent-primary: #1e4bff;
  --accent-primary-dim: rgba(30, 75, 255, 0.10);
  --accent-primary-glow: rgba(30, 75, 255, 0.30);
  --accent-secondary: #ff7a00;
  --accent-secondary-dim: rgba(255, 122, 0, 0.12);
  --accent-orange: #ff7a00;
  --accent-border: rgba(30, 75, 255, 0.30);

  /* Pôles : IT bleu, Web orange, Gaming bleu nuit */
  --accent-it: #1e4bff;
  --accent-it-dim: rgba(30, 75, 255, 0.10);
  --accent-it-glow: rgba(30, 75, 255, 0.32);
  --accent-it-border: rgba(30, 75, 255, 0.28);
  --btn-it-bg: linear-gradient(135deg, #1e4bff 0%, #3a63ff 100%);
  --gradient-it: linear-gradient(90deg, #1e4bff 0%, #4f7bff 100%);

  --accent-web: #e86a00;
  --accent-web-dim: rgba(255, 122, 0, 0.12);
  --accent-web-border: rgba(255, 122, 0, 0.32);
  --gradient-web: linear-gradient(90deg, #ff7a00 0%, #ffa24d 100%);

  --accent-gaming: #101840;
  --accent-gaming-dim: rgba(16, 24, 64, 0.08);
  --accent-gaming-border: rgba(16, 24, 64, 0.25);
  --gradient-gaming: linear-gradient(90deg, #101840 0%, #2a3a80 100%);

  --accent-gold: #d97706;
  --accent-gold-dim: rgba(217, 119, 6, 0.10);
  --accent-gold-border: rgba(217, 119, 6, 0.30);

  --btn-primary-bg: #1e4bff;
  --btn-primary-text: #ffffff;
  --gradient-brand: linear-gradient(90deg, #1e4bff 0%, #4f7bff 100%);
  --nav-glass: #ffffff;
  --nav-solid: #ffffff;

  --border-color: #e6e9f5;
  --border-glow: #d6dbee;

  --font-sans: 'Lexend', system-ui, -apple-system, sans-serif;
  --font-display: 'Lexend', system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --shadow-card: 0 10px 30px rgba(16, 24, 64, 0.06);
  --shadow-hover: 0 22px 46px rgba(16, 24, 64, 0.12);
  --card-number: #f0f2fa;
}

/* Mode sombre (bouton lune) : version bleu nuit du thème V3 */
html[data-theme="midnight"] {
  --bg-color: #0b1233;
  --bg-surface: #141d4a;
  --bg-surface-glass: #141d4a;
  --bg-card: #141d4a;
  --bg-card-hover: #19235a;
  --bg-soft: #0f1740;
  --text-primary: #ffffff;
  --text-secondary: #b8c0dd;
  --text-muted: #8a92b2;
  --accent-primary: #5b7cff;
  --accent-primary-dim: rgba(91, 124, 255, 0.16);
  --accent-it: #5b7cff;
  --accent-it-dim: rgba(91, 124, 255, 0.16);
  --accent-it-border: rgba(91, 124, 255, 0.35);
  --accent-web: #ff9a3d;
  --accent-web-dim: rgba(255, 154, 61, 0.14);
  --accent-web-border: rgba(255, 154, 61, 0.35);
  --accent-gaming: #a5b4fc;
  --accent-gaming-dim: rgba(165, 180, 252, 0.14);
  --accent-gaming-border: rgba(165, 180, 252, 0.35);
  --accent-border: rgba(91, 124, 255, 0.35);
  --nav-glass: #101840;
  --nav-solid: #101840;
  --border-color: rgba(255, 255, 255, 0.10);
  --border-glow: rgba(255, 255, 255, 0.18);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.30);
  --shadow-hover: 0 22px 46px rgba(0, 0, 0, 0.45);
  --card-number: rgba(255, 255, 255, 0.05);
}

/* Zones sombres : en-têtes de page, CTA, footer, bandeau du haut, onglets.
   Les variables y sont redéfinies : tout ce qui utilise var(--…) s'adapte. */
.hero-it,
.hero-web,
body > header.section,
.cta-band,
.site-footer,
.topbar,
.v3-tabs-section {
  --text-primary: #ffffff;
  --text-secondary: #b8c0dd;
  --text-muted: #8a92b2;
  --bg-surface: rgba(255, 255, 255, 0.12);
  --bg-surface-glass: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(255, 255, 255, 0.24);
  --accent-primary: #ff9a3d;
  --accent-primary-dim: rgba(255, 154, 61, 0.14);
  --accent-border: rgba(255, 154, 61, 0.35);
  --accent-it: #8fa5ff;
  --accent-it-dim: rgba(143, 165, 255, 0.14);
  --accent-it-border: rgba(143, 165, 255, 0.35);
  --accent-web: #ffb066;
  --accent-web-dim: rgba(255, 176, 102, 0.14);
  --accent-web-border: rgba(255, 176, 102, 0.35);
  --accent-gaming: #c7d0ff;
  --gradient-brand: linear-gradient(90deg, #8fa5ff 0%, #ffffff 100%);
  --gradient-it: linear-gradient(90deg, #8fa5ff 0%, #ffffff 100%);
  --gradient-web: linear-gradient(90deg, #ff9a3d 0%, #ffc080 100%);
  --card-number: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* ---- Base ---- */
body {
  background: var(--bg-color);
  font-family: var(--font-sans);
}

body::before,
body::after {
  display: none;
}

h1, h2, h3, h4,
.hero-title, .section-title, .card-title, .product-title {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

a:hover {
  color: var(--accent-primary);
}

.section {
  padding: 100px 0;
}

/* Sections qui avaient un fond assombri en ligne : fond bleuté clair V3 */
.section[style*="rgba(0"] {
  background: var(--bg-soft) !important;
}

/* Sur-titres : orange, barre verticale à gauche */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--accent-orange) !important;
  border-left: 3px solid var(--accent-orange);
  padding-left: 12px;
}

.section-title {
  font-weight: 700;
  color: var(--text-primary);
}

.section-header .section-eyebrow {
  margin-bottom: 18px;
}

.bg-glow {
  opacity: 0.4;
}

/* ---- Bandeau d'infos (au-dessus du menu) ---- */
.topbar {
  background: var(--navy);
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-height: 60px;
  overflow: hidden;
  transition: max-height var(--transition-normal), opacity var(--transition-normal);
}

.topbar-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.topbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.topbar i {
  color: var(--accent-orange);
  margin-right: 6px;
}

.topbar a {
  color: var(--text-primary);
  font-weight: 500;
}

.topbar a:hover {
  color: var(--accent-orange);
}

.navbar.scrolled .topbar {
  max-height: 0;
  opacity: 0;
}

/* ---- Navigation : barre blanche pleine largeur ---- */
.navbar {
  padding: 0;
  background: var(--nav-solid);
  box-shadow: 0 1px 0 var(--border-color);
  transition: box-shadow var(--transition-normal);
}

.navbar.scrolled {
  padding-top: 0;
  box-shadow: 0 8px 30px rgba(16, 24, 64, 0.08);
}

.nav-container {
  max-width: 1260px;
  padding: 16px 24px;
}

.nav-container::before {
  display: none;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Logo en parallélogramme */
.logo-hex {
  width: 46px;
  height: 42px;
  background: var(--accent-primary);
  border: none;
  border-radius: 0;
  clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%);
  color: #ffffff;
  box-shadow: none;
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-links {
  gap: 26px;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-link.active,
.nav-link:hover {
  color: var(--accent-primary);
}

.nav-link::after {
  background: var(--accent-orange);
}

.nav-badge {
  background: var(--accent-orange);
  color: #ffffff;
}

@media (max-width: 768px) {
  .topbar-inner {
    justify-content: center;
    text-align: center;
  }
  .topbar-group.topbar-extra {
    display: none;
  }
  .nav-links {
    --text-primary: #ffffff;
    --text-secondary: #b8c0dd;
    background: var(--navy);
    border-left: none;
  }
  .nav-links .nav-link.active,
  .nav-links .nav-link:hover {
    color: #ffffff;
  }
}

/* ---- Boutons ---- */
.btn {
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text) !important;
  border: 1px solid var(--btn-primary-bg);
  box-shadow: 0 12px 28px rgba(30, 75, 255, 0.28);
}

.btn-primary i {
  color: var(--btn-primary-text);
}

.btn-primary:hover {
  background: #1438d6;
  border-color: #1438d6;
  color: #ffffff !important;
  box-shadow: 0 16px 32px rgba(30, 75, 255, 0.36);
}

.btn-primary:hover i {
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-glow);
  color: var(--text-primary);
  backdrop-filter: none;
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-web {
  background: linear-gradient(135deg, #ff7a00 0%, #ff9a3d 100%);
  border: 1px solid rgba(255, 122, 0, 0.4);
  box-shadow: 0 10px 24px -8px rgba(255, 122, 0, 0.55);
}

.btn-web:hover {
  box-shadow: 0 14px 30px -6px rgba(255, 122, 0, 0.6);
}

/* ---- Hero accueil & Studio Gaming : fond clair + panneau bleu en diagonale ---- */
.hero {
  background: var(--bg-soft);
  padding-top: 190px;
  padding-bottom: 100px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 46%;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.12), transparent 45%),
    linear-gradient(150deg, #1e4bff 0%, #0b2ab8 100%);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
  pointer-events: none;
}

.hero .bg-glow {
  display: none;
}

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

.hero-overline,
.hero-overline-it,
.hero-overline-web {
  background: none;
  border: none;
  border-left: 3px solid var(--accent-orange);
  border-radius: 0;
  padding: 2px 0 2px 12px;
  color: var(--accent-orange);
  font-weight: 600;
  letter-spacing: 0.12em;
  backdrop-filter: none;
}

.hero-overline-dot,
.hero-overline-dot-it,
.hero-overline-dot-web {
  display: none;
}

.hero-title {
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.1;
}

.hero-lead {
  font-weight: 300;
}

.hero-lead strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Terminal posé sur le panneau bleu */
.hero .glass-panel {
  background: #101840;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 30px 60px rgba(11, 18, 51, 0.35);
}

.hero .stat-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

html[data-theme="midnight"] .hero .stat-item {
  background: var(--bg-surface);
}

@media (max-width: 992px) {
  .hero::before {
    top: auto;
    width: 100%;
    height: 460px;
    clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%);
  }
}

/* ---- En-têtes des pages intérieures : bleu nuit + diagonale bleue ---- */
.hero-it,
.hero-web,
body > header.section {
  position: relative;
  background: linear-gradient(135deg, #101840 0%, #0b1233 100%);
  border-bottom: none;
  padding-top: 190px;
  padding-bottom: 90px;
  overflow: hidden;
}

.hero-it::before,
.hero-web::before,
body > header.section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 34%;
  background: linear-gradient(150deg, #1e4bff 0%, #0b2ab8 100%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-it > .container,
.hero-web > .container,
body > header.section > .container {
  position: relative;
  z-index: 1;
}

body > header.section {
  padding-top: 190px !important;
  padding-bottom: 90px !important;
  margin-bottom: 80px;
}

body > header.section .hero-lead {
  color: var(--text-secondary);
}

.hero-it .bg-glow-it,
.hero-web .bg-glow-web,
body > header.section .bg-glow {
  display: none;
}

/* Fil d'Ariane */
.breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 8px 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--text-primary);
}

.breadcrumb i {
  font-size: 0.7rem;
  color: var(--accent-orange);
}

/* ---- Statistiques ---- */
.stat-item {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  backdrop-filter: none;
}

.stat-val {
  font-weight: 800;
}

.it-stats-row {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-color);
  backdrop-filter: none;
}

.it-stat-val {
  font-weight: 700;
}

/* ---- Cartes : blanches, bordure basse, élévation au survol ---- */
.card,
.it-card,
.web-card,
.gaming-card,
.pole-card,
.product-card,
.bento-card,
.tech-category,
.tech-cat-gaming,
.process-step,
.process-step-gaming,
.glass-panel {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.card,
.it-card,
.web-card,
.gaming-card,
.pole-card {
  border-bottom: 4px solid var(--border-color);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.card:hover,
.it-card:hover,
.web-card:hover,
.gaming-card:hover,
.pole-card:hover {
  border-color: var(--border-color);
  border-bottom-color: var(--accent-orange);
  box-shadow: var(--shadow-hover);
}

.product-card:hover,
.process-step:hover,
.process-step-gaming:hover,
.tech-category:hover,
.tech-cat-gaming:hover {
  box-shadow: var(--shadow-hover);
}

.glass-panel::before {
  display: none;
}

.card::after,
.it-card::after,
.web-card::after,
.gaming-card::after {
  opacity: 0;
}

/* Gros numéros en filigrane (01, 02…) générés en CSS */
.card-grid,
.it-services-grid,
.web-services-grid,
.gaming-services-grid {
  counter-reset: v3-card;
}

.card,
.it-card,
.web-card,
.gaming-card {
  counter-increment: v3-card;
}

.card::before,
.it-card::before,
.web-card::before,
.gaming-card::before {
  content: counter(v3-card, decimal-leading-zero);
  position: absolute;
  top: 6px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 5.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--card-number);
  pointer-events: none;
  z-index: 0;
}

.card > *,
.it-card > *,
.web-card > *,
.gaming-card > * {
  position: relative;
  z-index: 1;
}

/* Icônes en parallélogramme, pleines */
.card-icon,
.it-card-icon,
.web-card-icon,
.gaming-card-icon,
.v4-perk-icon {
  width: 66px;
  height: 60px;
  border: none;
  border-radius: 0;
  clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%);
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: none;
}

.it-card-icon {
  background: var(--accent-it);
}

.web-card-icon {
  background: var(--accent-orange);
}

.gaming-card-icon {
  background: var(--navy);
}

html[data-theme="midnight"] .gaming-card-icon {
  background: var(--accent-primary);
}

.card:hover .card-icon,
.it-card:hover .it-card-icon,
.web-card:hover .web-card-icon,
.gaming-card:hover .gaming-card-icon {
  background: var(--accent-orange);
  color: #ffffff;
  box-shadow: none;
}

.card-title,
.it-card-title,
.web-card-title,
.gaming-card-title,
.pole-title,
.bento-title,
.process-title {
  font-family: var(--font-display);
  font-weight: 700;
}

.card-desc,
.it-card-desc,
.web-card-desc,
.gaming-card-desc,
.pole-desc,
.bento-desc {
  font-weight: 300;
}

.pole-icon-it,
.pole-icon-web,
.pole-icon-gaming {
  box-shadow: none;
}

/* ---- Bento (accueil) ---- */
.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.bento-host {
  background: var(--bg-surface-glass);
}

.bento-card::before {
  left: 0;
  right: 0;
  height: 4px;
}

.bento-telemetry,
.bento-perf-box {
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  box-shadow: none;
}

.telemetry-row {
  border-bottom-color: var(--border-color);
}

.bento-mono-badge,
.bento-tag {
  font-family: var(--font-sans);
  background: var(--bg-soft);
}

.bento-card:hover .bento-tag {
  background: var(--bg-soft);
  border-color: var(--border-glow);
}

.bento-action {
  border-top-color: var(--border-color);
}

/* ---- Bandeau défilant ---- */
.ribbon {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.ribbon-item {
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
}

.ribbon-item i {
  color: var(--accent-orange);
}

html[data-theme="midnight"] .ribbon {
  background: var(--bg-color);
}

/* ---- Étapes (méthode) ---- */
.process-num {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-it-dim);
  color: var(--accent-it);
  opacity: 1;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.process-step:hover .process-num {
  background: var(--accent-orange);
  color: #ffffff;
}

/* ---- Tags techniques ---- */
.tech-tag {
  background: var(--accent-it-dim);
  border-radius: 6px;
}

.tech-tag-gaming {
  border-radius: 6px;
}

.tech-cat-title,
.tech-cat-title-gaming {
  font-family: var(--font-sans);
}

/* ---- Catalogue (Studio Gaming) ---- */
.filter-btn {
  font-family: var(--font-sans);
  border-color: var(--border-glow);
  border-radius: 6px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.product-header,
.product-footer {
  background: var(--bg-soft);
  border-color: var(--border-color);
}

.product-badge {
  background: var(--accent-orange);
  color: #ffffff;
}

.product-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
}

.tag {
  background: var(--bg-soft);
}

/* ---- Formulaires ---- */
.form-control {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  color: var(--text-primary);
}

.form-control:focus {
  background: var(--bg-surface);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px var(--accent-primary-dim);
}

/* ---- Bandeau d'appel à l'action : bleu nuit + diagonale bleue ---- */
.cta-band,
.cta-band-it {
  position: relative;
  margin: 100px max(16px, calc((100% - 1212px) / 2));
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #101840 0%, #0b1233 100%);
  overflow: hidden;
}

.cta-band::before {
  display: block;
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: auto;
  right: 0;
  width: 38%;
  height: auto;
  transform: none;
  opacity: 1;
  background: linear-gradient(150deg, #1e4bff 0%, #0b2ab8 100%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}

.cta-band::after {
  display: none;
}

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

.cta-band .btn-primary {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  box-shadow: 0 12px 28px rgba(255, 122, 0, 0.35);
}

.cta-band .btn-primary:hover {
  background: #e86a00;
  border-color: #e86a00;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  border-top: none;
}

.footer-col h4 {
  color: #ffffff;
}

.footer-col a:hover {
  color: var(--accent-orange);
}

/* ==========================================================================
   Sections ajoutées sur l'accueil (atouts, qui sommes-nous, méthode, contact)
   ========================================================================== */

/* Atouts */
.v4-perks {
  position: relative;
  z-index: 2;
  margin: 70px 0 60px;
}

.v4-perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.v4-perk {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-color);
  border-bottom: 4px solid var(--border-color);
  border-radius: 10px;
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.v4-perk:hover {
  transform: translateY(-6px);
  border-bottom-color: var(--accent-orange);
  box-shadow: var(--shadow-hover);
}

.v4-perk h3 {
  margin: 20px 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}

.v4-perk p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
}

.v4-perk-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.v4-perk-featured {
  border-bottom-color: var(--accent-orange);
}

.v4-perk-featured .v4-perk-icon {
  background: var(--accent-orange);
}

/* Qui sommes-nous */
.v4-about {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: center;
}

.v4-about-visual {
  flex: 1 1 420px;
  min-width: 0;
  position: relative;
}

.v4-about-panel {
  aspect-ratio: 4 / 4.4;
  max-width: 460px;
  border-radius: 10px;
  background: linear-gradient(160deg, #101840 0%, #2a3a80 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 40px 32px;
}

.v4-about-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px 16px;
  color: #ffffff;
  font-weight: 600;
}

.v4-about-chip i {
  width: 44px;
  height: 40px;
  flex-shrink: 0;
  background: var(--accent-primary);
  clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.v4-about-chip span {
  display: block;
  font-size: 0.82rem;
  font-weight: 300;
  color: #b8c0dd;
}

.v4-about-badge {
  position: absolute;
  left: 30px;
  bottom: -24px;
  background: var(--accent-primary);
  color: #ffffff;
  border-radius: 8px;
  padding: 18px 24px;
  box-shadow: 0 16px 34px rgba(16, 24, 64, 0.2);
}

.v4-about-badge strong {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 800;
}

.v4-about-text {
  flex: 1 1 460px;
  min-width: 0;
}

.v4-about-text .section-title {
  margin-top: 16px;
}

.v4-about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  margin: 18px 0 26px;
}

.v4-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.v4-bar-label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 8px;
}

.v4-bar-track {
  height: 8px;
  border-radius: 9px;
  background: var(--border-color);
}

.v4-bar-fill {
  height: 100%;
  width: 100%;
  border-radius: 9px;
}

/* Méthode */
.v4-method {
  position: relative;
}

.v4-method::before {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  top: 40px;
  border-top: 2px dashed var(--border-glow);
}

.v4-method-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  text-align: center;
}

.v4-step-num {
  margin: 0 auto 22px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-surface-glass);
  color: var(--accent-primary);
  border: 6px solid var(--bg-soft);
  box-shadow: 0 10px 24px rgba(16, 24, 64, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
}

.v4-step-num.is-active {
  background: var(--accent-primary);
  color: #ffffff;
}

.v4-method h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.v4-method p {
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .v4-method::before {
    display: none;
  }
}

/* Contact */
.v4-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}

.v4-contact-text {
  flex: 1 1 380px;
  min-width: 0;
}

.v4-contact-text .section-title {
  margin-top: 16px;
}

.v4-contact-text > p {
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
  margin: 16px 0 28px;
}

.v4-contact-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.v4-contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 18px;
  color: var(--text-primary);
}

.v4-contact-card > i {
  width: 54px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: var(--accent-primary);
  clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%);
  color: #ffffff;
}

.v4-contact-card small {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.v4-contact-panel {
  flex: 1 1 460px;
  min-width: 0;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--accent-orange);
  border-radius: 10px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 20px 50px rgba(16, 24, 64, 0.08);
}

.v4-contact-panel h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.v4-contact-panel > p {
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 22px;
}

.v4-pole-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v4-pole-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.v4-pole-link:hover {
  border-color: var(--accent-orange);
  transform: translateX(4px);
}

.v4-pole-link span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.v4-pole-link i.fa-arrow-right {
  color: var(--accent-orange);
}

/* ==========================================================================
   Sections propres à la V3 : onglets par pôle et compteurs en anneaux
   ========================================================================== */

.v3-tabs-section {
  background: var(--navy);
}

.v3-tab-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.v3-tab {
  min-height: 48px;
  padding: 14px 26px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.v3-tab:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

.v3-tab[aria-selected="true"] {
  background: #1e4bff;
  border-color: #1e4bff;
}

.v3-tab-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: clamp(26px, 4vw, 50px);
}

/* Sans JavaScript, tous les panneaux restent visibles les uns sous les autres */
.v3-tab-panel + .v3-tab-panel {
  margin-top: 24px;
}

.v3-tab-panel[hidden] {
  display: none;
}

.v3-tab-visual {
  flex: 1 1 340px;
  min-width: 0;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background:
    radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.14), transparent 45%),
    linear-gradient(140deg, #1e4bff 0%, #0b2ab8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px;
  text-align: center;
}

.v3-tab-visual > i {
  font-size: 3.4rem;
  color: #ffffff;
}

.v3-tab-figures {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.v3-tab-figure {
  background: #ffffff;
  color: #101840;
  border-radius: 8px;
  padding: 12px 16px;
  min-width: 130px;
}

.v3-tab-figure strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
}

.v3-tab-figure span {
  font-size: 0.8rem;
  color: #565f82;
}

.v3-tab-text {
  flex: 1 1 420px;
  min-width: 0;
}

.v3-tab-text h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.v3-tab-text > p {
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 24px;
}

.v3-tab-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}

.v3-tab-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}

.v3-tab-points i {
  color: #ff9a3d;
  margin-top: 4px;
}

.v3-tab-text .btn-primary {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  box-shadow: 0 12px 28px rgba(255, 122, 0, 0.3);
}

/* Compteurs en anneaux */
.v3-rings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  text-align: center;
}

.v3-ring {
  margin: 0 auto 18px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color, #1e4bff) var(--ring-pct, 100%), var(--border-color) 0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.v3-ring-inner {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.v3-ring-label {
  font-weight: 600;
  font-size: 1.05rem;
}

.v3-ring-sub {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 170px;
  }
  .cta-band,
  .cta-band-it {
    padding: 60px 8px;
  }
  .cta-band::before {
    width: 60%;
    opacity: 0.5;
  }
  .hero-it::before,
  .hero-web::before,
  body > header.section::before {
    width: 50%;
    opacity: 0.45;
  }
}
