/* ==========================================================================
   EVERCOM - DESIGN SYSTEM CORPORATE HIGH-TECH & CYBER-CHIC
   Fonds Dynamiques, Effets Sexy, Menu Responsive Cadré & Textes Justifiés
   ========================================================================== */

:root {
  /* Palette Deep-Tech & Cyber Radiance */
  --primary-color: #00f2fe;
  --primary-hover-color: #38bdf8;
  --secondary-color: #2563eb;
  --accent-glow: #6366f1;
  --dark-color: #050814;
  --dark-surface: #0a0f22;
  --dark-card: rgba(12, 19, 40, 0.78);
  --dark-card-hover: rgba(18, 28, 58, 0.92);
  --text-color: #94a3b8;
  --white-color: #ffffff;
  --heading-color: #f8fafc;
  --border-color: rgba(56, 189, 248, 0.18);
  --border-hover: rgba(0, 242, 254, 0.5);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #00f2fe 0%, #38bdf8 45%, #2563eb 100%);
  --gradient-card: linear-gradient(145deg, rgba(18, 28, 56, 0.82) 0%, rgba(8, 14, 30, 0.92) 100%);
  --gradient-cta: linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(10, 16, 36, 0.95) 75%);

  /* Shadows & Glows */
  --glow-cyan: 0 0 25px rgba(0, 242, 254, 0.3);
  --glow-blue: 0 0 35px rgba(37, 99, 235, 0.35);
  --shadow-card: 0 12px 32px -10px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);

  /* Layout */
  --site-max-width: 1240px;

  /* Fonts */
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ==========================================================================
   RESET & FOND GLOBAL DU SITE (AVEC CANVAS PARTICULES INTERACTIF)
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.65;
  color: var(--text-color);
  background-color: var(--dark-color);
  background-image: 
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(37, 99, 235, 0.25), transparent 70%),
    radial-gradient(circle at 85% 25%, rgba(0, 242, 254, 0.12), transparent 50%),
    radial-gradient(circle at 15% 75%, rgba(99, 102, 241, 0.12), transparent 50%),
    url('/assets/images/tech-grid.svg');
  background-attachment: fixed;
  background-repeat: repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Canvas de particules dynamiques d'arrière-plan */
#tech-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* Personnalisation des ambiances lumineuses par page */
body.page-home {
  --page-ambient-accent: rgba(0, 242, 254, 0.15);
}
body.page-about {
  background-image: 
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(99, 102, 241, 0.25), transparent 70%),
    radial-gradient(circle at 80% 30%, rgba(139, 92, 246, 0.15), transparent 50%),
    url('/assets/images/tech-grid.svg');
}
body.page-expertises {
  background-image: 
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(6, 182, 212, 0.25), transparent 70%),
    radial-gradient(circle at 20% 40%, rgba(0, 242, 254, 0.15), transparent 50%),
    url('/assets/images/tech-grid.svg');
}
body.page-approach {
  background-image: 
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(37, 99, 235, 0.25), transparent 70%),
    radial-gradient(circle at 85% 60%, rgba(16, 185, 129, 0.12), transparent 50%),
    url('/assets/images/tech-grid.svg');
}
body.page-contact {
  background-image: 
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(37, 99, 235, 0.3), transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.15), transparent 60%),
    url('/assets/images/tech-grid.svg');
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

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

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

/* ==========================================================================
   BANDEAU EN HAUT (HEADER) - CADRÉ DANS LA LARGEUR DU SITE & LOGO PLUS GROS
   ========================================================================== */

#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(6, 10, 22, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  transition: background 0.3s ease, border-color 0.3s ease;
}

#header.scrolled {
  background: rgba(5, 8, 18, 0.96);
  border-bottom-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8);
}

/* Le contenu du header est rigoureusement cadré dans la largeur de la page */
.header-container {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0.85rem 1.75rem;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo navigation languages";
  align-items: center;
  position: relative;
}

#logo {
  grid-area: logo;
  display: flex;
  align-items: center;
}

/* Logo agrandi pour une distinction nette et immédiate */
#logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 242, 254, 0.35));
  transition: transform 0.25s ease, filter 0.25s ease;
}

#logo:hover img {
  transform: translateY(-1px) scale(1.03);
  filter: drop-shadow(0 2px 16px rgba(0, 242, 254, 0.6));
}

#navigation {
  grid-area: navigation;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
}

#navigation a {
  padding: 0.55rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text-color);
  transition: all 0.25s ease;
  position: relative;
}

#navigation a:hover {
  color: var(--white-color);
  background: rgba(56, 189, 248, 0.08);
}

#navigation a.current {
  color: var(--white-color);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.45) 0%, rgba(0, 242, 254, 0.25) 100%);
  border: 1px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.22);
}

#languages {
  grid-area: languages;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.5rem;
}

#languages a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  color: var(--white-color);
  background: var(--gradient-primary);
  box-shadow: 0 2px 12px rgba(0, 242, 254, 0.35);
  transition: all 0.25s ease;
}

#languages a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.55);
  color: var(--white-color);
}

#menu-toggle {
  grid-area: menu;
  display: none;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--white-color);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  margin: 0;
}

#menu-toggle:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

#menu-toggle::before {
  content: "☰";
  font-size: 1.4rem;
  line-height: 1;
  font-weight: bold;
}

#menu-toggle[aria-expanded="true"]::before {
  content: "✕";
  font-size: 1.2rem;
  color: var(--primary-color);
}

/* ==========================================================================
   STRUCTURE DU SITE & JUSTIFICATION DES TEXTES LONGS
   ========================================================================== */

main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: var(--site-max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.75rem 6rem;
  display: block;
}

section {
  margin-bottom: 5.5rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--heading-color);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  line-height: 1.18;
}

h2 {
  font-size: 1.05rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-color);
}

h3 {
  font-size: 1.25rem;
  line-height: 1.4;
}

/* Justification soignée des textes longs */
.texte,
#introduction .texte,
#expertises .texte,
#vision .texte,
.step p,
#about section p,
#approach-introduction p,
#expertises-introduction p,
#contact-introduction p,
.legal-content p,
.expertise p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  line-height: 1.85;
}

p {
  margin-bottom: 1rem;
}

.primary-color {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 800;
}

.punchline {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--heading-color);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  padding-right: 1.5rem;
  margin-bottom: 0;
  text-align: left;
}

/* ==========================================================================
   BOUTONS SEXY HIGH-TECH
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  background: var(--gradient-primary);
  color: var(--white-color);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.2);
  color: var(--white-color);
}

.btn + .btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--heading-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn + .btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--primary-color);
  color: var(--white-color);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.25);
}

/* ==========================================================================
   HERO SECTION & LOGO INFINI DÉTOURÉ, GRAND ET ANIMÉ
   ========================================================================== */

#hero {
  text-align: left;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  min-height: 520px;
  padding: 2.5rem 0 4.5rem;
  position: relative;
  gap: 2.5rem;
}

#hero .hero-text {
  max-width: 650px;
  position: relative;
  z-index: 2;
}

#hero h1 {
  font-size: clamp(2.5rem, 4.2vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

#hero p {
  font-size: 1.18rem;
  line-height: 1.75;
  color: var(--text-color);
  margin-bottom: 2rem;
}

#hero .hero-text div {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Grand logo en forme d'infini transparent, rétroéclairé et animé */
.hero-infinity-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  z-index: 1;
}

.infinity-glow-halo {
  position: absolute;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.4) 0%, rgba(37, 99, 235, 0.22) 45%, transparent 70%);
  border-radius: 50%;
  filter: blur(55px);
  animation: infinityPulse 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes infinityPulse {
  0% { transform: scale(0.88); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0.95; }
  100% { transform: scale(0.88); opacity: 0.6; }
}

.hero-infinity-symbol {
  width: 100%;
  max-width: 580px;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 35px rgba(0, 242, 254, 0.45));
  animation: infinityFloat 6s ease-in-out infinite alternate;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.hero-infinity-wrap:hover .hero-infinity-symbol {
  transform: scale(1.05) translateY(-5px);
  filter: drop-shadow(0 25px 55px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 50px rgba(0, 242, 254, 0.7));
}

@keyframes infinityFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* ==========================================================================
   SECTIONS ÉDITORIALES AVEC FONDS ÉLÉGANTS : INTRODUCTION, EXPERTISES, VISION
   ========================================================================== */

#introduction,
#expertises,
#vision {
  display: grid;
  grid-template-columns: 4fr 6fr;
  grid-template-areas:
    "titre titre"
    "punchline texte";
  gap: 1.5rem 3rem;
  align-items: start;
  background: var(--gradient-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 3.5rem 3.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#introduction:hover,
#expertises:hover,
#vision:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), 0 0 30px rgba(0, 242, 254, 0.1);
}

/* Ligne supérieure en dégradé subtil */
#introduction::before,
#expertises::before,
#vision::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.6), rgba(37, 99, 235, 0.6), transparent);
}

#introduction .titre,
#expertises .titre,
#vision .titre {
  grid-area: titre;
}

#introduction .punchline,
#expertises .punchline,
#vision .punchline {
  grid-area: punchline;
}

#introduction .texte,
#expertises .texte,
#vision .texte {
  grid-area: texte;
  font-size: 1.1rem;
  color: var(--heading-color);
  margin-bottom: 0;
}

/* Section Vision avec intégration soignée de home2.webp */
#vision .texte {
  padding-right: 220px;
  background-image: url('/assets/images/home2.webp');
  background-position: right top;
  background-repeat: no-repeat;
  background-size: 180px auto;
  font-weight: 500;
  color: var(--white-color);
  min-height: 200px;
}

/* ==========================================================================
   VIGNETTES EXPERTISES : CENTRÉES, ANTI-SCINTILLEMENT & IMAGES PNG HD
   ========================================================================== */

.expertises-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centrage horizontal des vignettes */
  align-items: stretch;
  gap: 2rem;
  margin-top: 2.5rem;
}

.expertise {
  flex: 0 1 340px; /* Largeur équilibrée et centrée */
  max-width: 360px;
  background: linear-gradient(180deg, rgba(16, 26, 52, 0.82) 0%, rgba(9, 15, 33, 0.92) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
  position: relative;
  text-align: left;
  /* Anti-scintillement : isolation & accélération matérielle */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  isolation: isolate;
}

.expertise:hover {
  transform: translateY(-8px) translateZ(0);
  border-color: rgba(0, 242, 254, 0.5);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 242, 254, 0.25);
}

/* Effets modernes sur les images PNG HD : zoom fluide sans scintillement */
.expertise img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: top;
  border-radius: 0;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  border-bottom: 1px solid rgba(56, 189, 248, 0.14);
  /* Stabilisation GPU anti-shimmer */
  transform: scale(1) translateZ(0);
  -webkit-transform: scale(1) translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  image-rendering: -webkit-optimize-contrast;
}

.expertise:hover img {
  transform: scale(1.05) translateZ(0);
  -webkit-transform: scale(1.05) translateZ(0);
}

.expertise div {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.expertise h3,
.expertise h2 {
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--heading-color);
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
}

.expertise p {
  font-size: 0.93rem;
  color: var(--text-color);
  margin-bottom: 0;
}

/* ==========================================================================
   VALEURS : VIGNETTES CENTRÉES, ICÔNE EN FOND ET ZOOM AU SURVOL
   ========================================================================== */

#values,
#about-values {
  background: var(--gradient-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-intro h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.section-intro p {
  font-size: 1.15rem;
  color: var(--heading-color);
  margin-bottom: 0;
}

/* Centrage dynamique des vignettes */
.values-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centrage des vignettes */
  align-items: stretch;
  gap: 2rem;
  margin-top: 2rem;
}

.value {
  flex: 0 1 340px; /* Vignettes équilibrées et centrées */
  max-width: 360px;
  background: #000000; /* Fond identique au fond des icônes */
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 18px;
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden; /* Garde le grossissement de l'icône dans la carte */
  isolation: isolate;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
}

.value:hover {
  transform: translateY(-8px) translateZ(0);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.95); /* Pas de halo lumineux au survol */
}

/* Icône positionnée en fond de vignette */
.value-bg-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.value-bg-icon img {
  width: 175px;
  height: 175px;
  object-fit: contain;
  opacity: 0.25;
  transform: scale(1) translateZ(0);
  -webkit-transform: scale(1) translateZ(0);
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
  filter: none; /* Aucun halo */
}

/* Effet de grossissement propre sans halo */
.value:hover .value-bg-icon img {
  transform: scale(1.42) translateZ(0);
  -webkit-transform: scale(1.42) translateZ(0);
  opacity: 0.5;
  filter: none; /* Suppression de l'effet de halo lors du zoom */
}

.value-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.value h3 {
  font-size: 1.25rem;
  font-family: var(--font-display);
  color: var(--heading-color);
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.value p {
  font-size: 0.94rem;
  color: var(--text-color);
  line-height: 1.65;
  margin-bottom: 0;
  text-align: center;
}

/* ==========================================================================
   CONTACT CALL TO ACTION (#contact-call - "Échangeons")
   Couleur de fond calibrée exactement sur la couleur gauche de l'image (#000107)
   ========================================================================== */

#contact-call {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-areas:
    "titre      button"
    "punchline  button"
    "texte      button";
  gap: 1rem 2.5rem;
  align-items: center;
  padding: 3.5rem 4rem;
  border-radius: 22px;
  border: 1px solid rgba(0, 242, 254, 0.35);
  background-color: #000107;
  background-image: 
    linear-gradient(to right, #000107 0%, #000107 35%, rgba(0, 1, 7, 0) 75%),
    url('/assets/images/fond.webp');
  background-position: right center;
  background-repeat: no-repeat;
  background-size: auto 100%;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 15px 45px -10px rgba(0, 0, 0, 0.8), 0 0 35px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}

#contact-call .titre {
  grid-area: titre;
}

#contact-call .punchline {
  grid-area: punchline;
}

#contact-call .texte {
  grid-area: texte;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white-color);
  margin-bottom: 0;
}

#contact-call .button {
  grid-area: button;
  display: flex;
  justify-content: center;
  align-items: center;
}

#contact-call .button .btn {
  padding: 1.1rem 2.4rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   PAGE À PROPOS (#about)
   ========================================================================== */

#about {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

#about section {
  margin: 0;
  background: var(--gradient-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.75rem 3rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease;
}

#about section:hover {
  border-color: var(--border-hover);
}

#about-introduction h1 {
  font-size: clamp(2.4rem, 3.8vw, 3.2rem);
  margin-bottom: 1.25rem;
}

#about-introduction p {
  font-size: 1.2rem;
  color: var(--heading-color);
  margin-bottom: 0;
}

#mission h2,
#innovation h2,
#international h2,
#about-values h2 {
  font-size: 1.35rem;
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: normal;
  color: var(--heading-color);
  margin-bottom: 0.85rem;
}

#mission p,
#innovation p,
#international p {
  font-size: 1.05rem;
  margin-bottom: 0;
}

#about-values {
  text-align: center;
}

#about-values h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   PAGE NOTRE APPROCHE (#approach & .step)
   ========================================================================== */

#approach-introduction {
  background: var(--gradient-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem 3.5rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-card);
}

#approach-introduction h1 {
  font-size: clamp(2.4rem, 3.8vw, 3.2rem);
  margin-bottom: 1rem;
}

#approach-introduction p {
  font-size: 1.18rem;
  color: var(--heading-color);
  margin-bottom: 0;
}

#approach-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.step {
  background: var(--gradient-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 2.25rem 2.5rem;
  margin: 0;
  box-shadow: var(--shadow-card);
  transition: all 0.35s ease;
  position: relative;
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: var(--shadow-card), 0 0 25px rgba(0, 242, 254, 0.15);
}

.step h2 {
  font-size: 1.4rem;
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: normal;
  color: var(--heading-color);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.step-nb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white-color);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.4);
  flex-shrink: 0;
}

.step p {
  font-size: 1.05rem;
  color: var(--text-color);
  padding-left: 4.25rem;
  margin-bottom: 0;
}

/* ==========================================================================
   PAGE EXPERTISES (#expertises-page)
   ========================================================================== */

#expertises-introduction {
  background: var(--gradient-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem 3.5rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-card);
}

#expertises-introduction h1 {
  font-size: clamp(2.4rem, 3.8vw, 3.2rem);
  margin-bottom: 1rem;
}

#expertises-introduction p {
  font-size: 1.18rem;
  color: var(--heading-color);
  margin-bottom: 0;
}

/* ==========================================================================
   PAGE CONTACT - FORMULAIRE PLEINE LARGEUR & GESTION DES ÉTATS
   ========================================================================== */

#contact-introduction {
  background: var(--gradient-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem 3.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-card);
  width: 100%;
}

#contact-introduction h1 {
  font-size: clamp(2.4rem, 3.8vw, 3.2rem);
  margin-bottom: 1rem;
}

#contact-introduction p {
  font-size: 1.15rem;
  color: var(--heading-color);
}

/* Le formulaire occupe la même largeur que le bandeau de texte au dessus */
#contact-content {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

/* Message de succès en vert gras sans affichage du formulaire */
.contact-success-box {
  width: 100%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 78, 59, 0.28) 100%);
  border: 2px solid #10b981;
  border-radius: 20px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 35px rgba(16, 185, 129, 0.35);
  backdrop-filter: blur(16px);
  animation: successFadeIn 0.4s ease-out;
}

@keyframes successFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-success-message {
  color: #10b981;
  font-weight: 800; /* Vert gras */
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.45);
}

/* Erreurs de validation et surbrillance des champs */
.contact-error-validation {
  border-color: #ef4444 !important;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.55) !important;
  background-color: rgba(239, 68, 68, 0.08) !important;
}

.field-error-text {
  color: #f87171;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.35rem;
  display: block;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-top: 1rem;
  font-weight: 600;
}

#contact-form {
  padding: 0;
  width: 100%;
}

#contact-form fieldset {
  position: relative;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(11, 18, 38, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 20px;
  padding: 2.5rem 3.5rem 5.5rem;
  box-shadow: var(--shadow-card), 0 0 25px rgba(0, 242, 254, 0.1);
  width: 100%;
}

#contact-form legend {
  padding: 0.5rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 9999px;
  background-color: var(--dark-surface);
}

.form-group {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--heading-color);
}

#contact-form input,
#contact-form select,
#contact-form textarea {
  padding: 0.95rem 1.25rem;
  border-width: 1px;
  border-style: solid;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.98rem;
  border-color: rgba(56, 189, 248, 0.2);
  background-color: rgba(6, 10, 22, 0.7);
  color: var(--heading-color);
  outline: none;
  transition: all 0.25s ease;
  width: 100%;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
  border-color: var(--primary-color);
  background-color: rgba(6, 10, 22, 0.95);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.3);
}

#contact-form select {
  cursor: pointer;
}

#contact-form select option {
  background-color: var(--dark-surface);
  color: var(--heading-color);
}

#contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

#contact-form button {
  position: absolute;
  right: 3.5rem;
  bottom: 1.75rem;
  padding: 0.9rem 2.4rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: var(--gradient-primary);
  color: var(--white-color);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
}

#contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.55);
}

/* ==========================================================================
   PAGES LÉGALES (#legal-notice & #privacy-policy)
   ========================================================================== */

#legal-notice,
#privacy-policy {
  background: var(--gradient-card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3.5rem 4rem;
  box-shadow: var(--shadow-card);
  max-width: var(--site-max-width);
  margin: 0 auto;
}

#legal-notice h1,
#privacy-policy h1 {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  margin-bottom: 2rem;
}

.legal-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-color);
}

.legal-content h2 {
  font-size: 1.4rem;
  color: var(--heading-color);
  margin: 2.25rem 0 1rem;
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: normal;
}

.legal-content p {
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   FOOTER TECHNOLOGIQUE
   ========================================================================== */

#footer {
  padding: 4rem 2rem 2.5rem;
  background-color: #030610;
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  color: var(--text-color);
  position: relative;
  margin-top: auto;
}

#footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.5), transparent);
}

#footer-company {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

#footer-company img {
  height: 48px;
  display: block;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 2px 8px rgba(0, 242, 254, 0.25));
}

#footer-company p {
  font-size: 0.98rem;
  color: var(--text-color);
  line-height: 1.65;
  margin-bottom: 0;
}

#footer-navigation {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
  margin-bottom: 2.5rem;
}

#footer-navigation a {
  color: #cbd5e1;
  font-size: 0.94rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

#footer-navigation a:hover {
  color: var(--primary-color);
  transform: translateY(-1px);
}

#footer-legal {
  text-align: center;
  font-size: 0.88rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN & MENU DÉROULANT DU HAUT
   ========================================================================== */

@media (max-width: 1024px) {
  #header {
    padding: 0;
  }

  .header-container {
    padding: 0.9rem 1.5rem;
  }

  #hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  #hero .hero-text {
    max-width: 100%;
  }

  #hero .hero-text div {
    justify-content: center;
  }

  .hero-infinity-wrap {
    order: -1;
    margin-bottom: 1.5rem;
  }

  .hero-infinity-symbol {
    max-width: 400px;
  }

  #introduction,
  #expertises,
  #vision {
    padding: 2.75rem 2.25rem;
    gap: 1.5rem 2rem;
  }

  #contact-call {
    padding: 2.75rem 2.5rem;
  }
}

@media (max-width: 768px) {
  /* Header fixe en haut cadré */
  #header {
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem;
  }

  #logo img {
    height: 44px;
  }

  #logo {
    flex-shrink: 0;
  }

  #languages {
    margin-left: auto;
    margin-right: 0.85rem;
  }

  #menu-toggle {
    display: flex;
    flex-shrink: 0;
  }

  /* Menu déroulant responsive attaché sous la barre d'en-tête */
  #navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 1.25rem 1.5rem;
    background: rgba(7, 12, 26, 0.97);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(0, 242, 254, 0.25);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9);
    animation: menuSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  #navigation.active {
    display: flex;
  }

  @keyframes menuSlideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  #navigation a {
    padding: 0.85rem 1.25rem;
    font-size: 1.05rem;
    border-radius: 10px;
    text-align: left;
    color: var(--heading-color);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
  }

  #navigation a.current {
    background: rgba(0, 242, 254, 0.12);
    border-color: rgba(0, 242, 254, 0.35);
    color: var(--primary-color);
  }

  main {
    padding: 1.5rem 1rem 4rem;
  }

  section {
    margin-bottom: 3.5rem;
  }

  /* Hero mobile */
  #hero {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0 2.5rem;
  }

  .hero-infinity-wrap {
    order: 0;
    margin: 1.5rem 0;
  }

  .hero-infinity-symbol {
    max-width: 280px;
  }

  #hero h1 {
    font-size: 2.1rem;
  }

  #hero .hero-text div .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  #introduction,
  #expertises,
  #vision {
    display: block;
    padding: 2rem 1.5rem;
  }

  #introduction .punchline,
  #expertises .punchline,
  #vision .punchline {
    padding-right: 0;
    margin-bottom: 1.25rem;
  }

  #vision .texte {
    padding-right: 0;
    background-position: right bottom;
    background-size: 140px auto;
    padding-bottom: 110px;
  }

  .expertise {
    flex: 0 1 100%;
    max-width: 100%;
  }

  #values {
    padding: 2.25rem 1.5rem;
  }

  .values-grid {
    flex-direction: column;
    align-items: center;
  }

  .value {
    flex: 0 1 100%;
    max-width: 100%;
    width: 100%;
  }

  #contact-call {
    display: block;
    padding: 2.5rem 1.75rem;
    background-size: 80% auto;
    background-position: right bottom;
  }

  #contact-call .button {
    margin-top: 1.75rem;
  }

  #contact-call .button .btn {
    width: 100%;
  }

  /* Page Approche mobile */
  .step {
    padding: 1.75rem 1.5rem;
  }

  .step p {
    padding-left: 0;
    margin-top: 0.75rem;
  }

  /* Formulaire contact mobile */
  #contact-form fieldset {
    padding: 1.75rem 1.25rem 5.5rem;
  }

  #contact-form button {
    left: 1.25rem;
    right: 1.25rem;
    width: calc(100% - 2.5rem);
  }

  #footer-navigation {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0.75rem 1rem;
  }

  #hero h1 {
    font-size: 1.9rem;
    line-height: 1.2;
  }

  .punchline {
    font-size: 1.5rem;
  }

  #introduction,
  #expertises,
  #vision,
  #values,
  #contact-call,
  #about section,
  #approach-introduction,
  #expertises-introduction,
  #contact-introduction {
    padding: 1.75rem 1.25rem;
  }
}
