/* ===== IMPORT FONTS ===== */
@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
html-scrobehavior {
  scroll-behavior: smooth;
}
:root[data-theme="dark"] {
  /* ===== COULEURS DE BASE ===== */
  --bg-dark: #0a0a20;
  --white: #ffffff;
  --color-white: #fff;
  --color-black: #000;
  --color-black-light: #000000d7;
  --color-dark-gray: #555;
  --color-light-gray: rgb(244, 239, 239);
  --color-light-gray-alt: rgb(238, 212, 212);
  --color-white-gray: #f5f5f5;
  --color-text-gray: #666;

  /* ===== COULEURS PRINCIPALES ===== */
  --color-primary-dark: #0a0a20;
  --color-accent-light: #f8f9fa;
  --color-primary-blue: #0066ff;
  --color-card: rgb(5, 5, 167);
  --color-blue: blue;
  --color-blue-dark: #0a2463;
  --color-blue-medium: #3e5c76;
  --color-blue-light: #1e96fc;
  --color-accent-blue: rgba(0, 0, 255, 0.614);

  /* ===== COULEURS D'ACCENT ===== */
  --color-orange: orange;
  --color-orangered: orangered;
  --color-accent-orange: #ff6600;
  --color-neon-orange: #ff8c00;
  --color-accent: #00ffe0;

  /* Couleurs spécifiques */
  --primary-blue: #0066ff;
  --accent-orange: #ff4500;
  --neon-orange: #ff6600;
  --color-vibrant-orange: #ff6600;
  --color-blue: #007bff;
  --color-black-light: rgba(0, 240, 252, 0.1);
  --color-hover-toggle: rgba(0, 0, 255, 0.756);
  --color-success: #28a745;

  /* ===== COULEURS DE TEXTE ===== */
  --color-text-light: #ffffff;
  --color-text-muted: #666666;
  --color-text-orange: #ff6600;
  --black: #000000;
  --text-light: #ffffff;
  --color-darker: #ffffff;
  --text-subtile: rgba(255, 255, 255, 0.7);
  --light-dark: #555555;
  --color-text-dark: #0a0a1a;
  --color-text-subtile: rgba(255, 255, 255, 0.8);

  /* ===== ARRIÈRE-PLANS ===== */
  --bg-dark: #0a0a1a;
  --bg-light: #ffff;
  --bg-light1: #f0ebeb;
  --body-light: #ffff;
  --bg-dark-services: #0a0a1a;
  --bg-card-services: #0a0a20;
  --bg-darker: white;
  --bg-icon-blue-light: rgba(0, 102, 255, 0.1);
  --bg-card-advantage: #f0ebeb;
  --bg-card-toggle: rgba(5, 5, 91, 0.659);
  --bg-white: #fff;
  --bg-white-btn: white;
  --bg-text-hero: rgba(0, 240, 252, 0.1);
  --bg-black-light: rgba(255, 255, 255, 0.05);

  /* ===== DÉGRADÉS RADIAL===== */
  --radial-gradient-style: radial-gradient(
    circle at 45% 30%,
    rgba(115, 115, 225, 0.6) 0%,
    /* bleu clair */ rgba(121, 71, 239, 0.788) 40%,
    /* violet */ rgba(0, 0, 255, 0.4) 70%,
    /* bleu vif */ rgb(6, 72, 227) 100% /* fond sombre */
  );
  /* ===== DÉGRADÉS LINEAR===== */

  --gradient-header: linear-gradient(
    to right,
    rgb(2, 2, 80),
    rgb(5, 5, 116),
    rgb(5, 5, 215)
  );
  --gradient-header-scroll: linear-gradient(
    to left,
    rgb(2, 2, 80),
    rgb(5, 5, 116),
    rgb(5, 5, 215)
  );
  --gradient-hero: linear-gradient(
    to right,
    rgb(2, 2, 80),
    rgb(5, 5, 116),
    rgb(5, 5, 215)
  );
  --gradient-hero-alt: linear-gradient(to right, rgb(1, 1, 40), rgb(3, 3, 117));
  --gradient-hero-vertical: linear-gradient(
    to top,
    rgb(3, 3, 81),
    rgb(5, 5, 205)
  );
  --gradient-overlay: linear-gradient(
    45deg,
    rgba(0, 51, 153, 0.4),
    rgba(0, 0, 0, 0.5)
  );
  --gradient-overlay-light: linear-gradient(
    to right,
    rgba(2, 2, 80, 0.886),
    rgba(5, 5, 116, 0.913),
    rgba(5, 5, 215, 0.84)
  );
  --gradient-orange: linear-gradient(
    90deg,
    var(--color-orange),
    var(--color-orangered)
  );
  --gradient-mix: linear-gradient(135deg, #00e5ff, #0078ff);
  --gradient-mix-orange: linear-gradient(
    135deg,
    var(--accent-orange),
    var(--neon-orange)
  );
  --gradient-card: linear-gradient(rgb(2, 2, 123), rgb(2, 2, 78));
  --gradient-card-services: linear-gradient(
    to right,
    rgb(1, 1, 40),
    rgb(3, 3, 100)
  );
  --gradient-cta: linear-gradient(
    225deg,
    rgb(2, 2, 185),
    rgb(2, 2, 123),
    rgb(2, 2, 78),
    rgb(1, 1, 54)
  );
  --gradient-cta-overlay: linear-gradient(
    to top,
    rgba(1, 1, 40, 0.9),
    rgba(3, 3, 100, 0.877)
  );
  --gradient-overlay1: linear-gradient(
    225deg,
    #0202b9,
    #02027b,
    #02024e,
    #010136
  );
  --gradient-card-form: linear-gradient(
    200deg,
    rgb(2, 2, 185),
    rgb(2, 2, 123),
    rgb(2, 2, 78),
    rgb(2, 2, 185)
  );

  /* ===== OMBRES ===== */
  --shadow-light: 0 0 10px rgba(0, 0, 0, 0.25);
  --shadow-blue: 0 0 10px var(--color-blue);
  --shadow-blue-light: 0 0 15px var(--color-blue);
  --shadow-blue-medium: 0 0 20px rgba(0, 0, 255, 0.324);
  --shadow-blue-strong: 0 -10px 100px var(--color-blue);
  --shadow-btn: rgba(0, 0, 255, 0.687);
  --shadow-gradient: 0 0 0 4px var(--color-orange),
    0 0 5px 8px var(--color-orangered), 0 0 46px 2px rgba(0, 0, 255, 0.55);
  --shadow-card: 0 5px 15px rgba(0, 0, 255, 0.676);
  --shadow-focus: 0 0 10px rgba(0, 240, 252, 0.2);
  --shadow-black: 0 0 15px rgba(0, 0, 0, 0.338);
  --shadow-black-light: 0 12px 25px rgba(0, 0, 0, 0.283);
  --shadow-blue: 0 5px 15px rgba(0, 102, 255, 0.4);
  --shadow-blue1: 0 10px 25px rgba(0, 102, 255, 0.6);
  --shadow-blue2: 0 8px 20px rgba(0, 102, 255, 0.2);
  --shadow-black: 0 8px 20px rgba(0, 0, 0, 0.15);
  --shadow-black1: 0 15px 30px rgba(0, 0, 0, 0.25);
  --shadow-gradient: 0 10px 30px rgba(0, 0, 0, 0.12);

  /*======border==============*/
  --border-card-blue: 1px solid #0066ff;
  --border-card-blue-light: 1px solid rgba(0, 204, 255, 0.2);
  --border-card-orangered: solid 1px orangered;
  --border-icon-blue: 1px solid #0066ff;
  /* ===== ANIMATIONS ===== */
  --card-rotate: linear-gradient(
    180deg,
    rgb(0, 183, 255),
    rgba(255, 48, 255, 0.5),
    transparent,
    rgba(255, 102, 0, 0.5),
    transparent
  );
}
:root[data-theme="light"] {
  /* ===== COULEURS DE BASE ===== */
  --bg-dark: #f9f9fb; /* ancien #0a0a20 → clair */
  --white: #000; /* inverse */
  --color-white: #000;
  --color-black: #fff;
  --color-black-light: rgba(255, 255, 255, 0.87);
  --color-dark-gray: #aaa;
  --color-light-gray: #eaeaea;
  --color-light-gray-alt: #f0f0f0;
  --color-white-gray: #e3e3e3;
  --color-text-gray: #333;
  --color-muted: #444;

  /* ===== COULEURS PRINCIPALES ===== */
  --color-primary-dark: #f9f9fb;
  --color-accent-light: #111;
  --color-primary-blue: #0056cc;
  --color-card: rgb(200, 220, 255);
  --color-card-toggle: rgba(200, 220, 255, 0.4);
  --color-blue: #0056cc;
  --color-blue-dark: #2d3e8f;
  --color-blue-medium: #5874a0;
  --color-blue-light: #62b2ff;
  --color-accent-blue: rgba(0, 119, 255, 0.35);

  /* ===== COULEURS D'ACCENT ===== */
  --color-orange: #ff9933;
  --color-orangered: rgb(3, 3, 79);
  --color-accent-orange: #ff7518;
  --color-neon-orange: #ff9d33;
  --color-accent: orangered;

  /* Couleurs spécifiques */
  --primary-blue: #0056cc;
  --accent-orange: #e65100;
  --neon-orange: #ff7518;
  --color-vibrant-orange: #ff7518;
  --color-blue: #0070e0;
  --color-black-light: rgba(0, 102, 255, 0.08);
  --color-hover-toggle: rgba(0, 119, 255, 0.55);
  --color-success: #2e7d32;

  /* ===== COULEURS DE TEXTE ===== */
  --color-text-light: #111;
  --color-text-muted: #444;
  --color-text-orange: rgb(4, 4, 147);
  --black: #fff;
  --text-light: #111;
  --text-subtile: rgba(0, 0, 0, 0.65);
  --light-dark: #aaa;
  --color-text-dark: #fdfdfd;
  --color-text-subtile: rgba(0, 0, 0, 0.55);

  /* ===== ARRIÈRE-PLANS ===== */
  --bg-dark: linear-gradient(135deg, #00e5ff, #0078ff);
  --bg-dark1: rgb(3, 3, 79);
  --bg-light: #f0ebeb;
  --body-light: #ffff;
  --bg-card-services: #fff;
  --bg-card-tech: rgba(5, 5, 123, 0.911);
  --bg-darker: #fafafa;
  --bg-icon-blue-light: rgba(0, 102, 255, 0.08);
  --bg-card-advantage: #fff;
  --bg-card-toggle: rgba(5, 5, 91, 0.659);
  --bg-white: blue;
  --bg-white-btn: rgb(9, 9, 150);
  --bg-text-hero: #f9f9f9;
  --bg-black-light: rgba(0, 0, 0, 0.05);

  /* ===== DÉGRADÉS RADIAL===== */
  --radial-gradient-style: radial-gradient(
    circle at 45% 30%,
    rgba(115, 115, 225, 0.6) 0%,
    /* bleu clair */ rgba(121, 71, 239, 0.788) 40%,
    /* violet */ rgba(0, 0, 255, 0.4) 70%,
    /* bleu vif */ rgb(6, 72, 227) 100% /* fond sombre */
  );
  /* ===== DÉGRADÉS LINEAR===== */
  --gradient-header: white;
  --gradient-header-scroll: white;
  --gradient-hero: white;
  --gradient-hero-alt: linear-gradient(to right, #e8f0ff, #cddfff);
  --gradient-hero-vertical: linear-gradient(to top, #cde0ff, #a9caff);
  --gradient-overlay: linear-gradient(
    45deg,
    rgba(0, 119, 255, 0.15),
    rgba(255, 255, 255, 0.5)
  );
  --gradient-overlay-light: white;
  --gradient-orange: blue;
  --gradient-mix: linear-gradient(
    135deg,
    var(--accent-orange),
    var(--neon-orange)
  );
  --gradient-mix-orange: var(--gradient-mix);
  --gradient-card-services: white;
  --gradient-cta: rgba(255, 255, 255, 0.527);
  --gradient-cta-overlay: white;
  --gradient-overlay1: white;
  --gradient-btn-before: linear-gradient(135deg, #66e0ff, #3399ff);
  --gradient-card: white;

  /* ===== OMBRES ===== */
  --shadow-light: 0 0 10px rgba(0, 0, 0, 0.15);
  --shadow-blue: 0 0 10px rgba(0, 119, 255, 0.3);
  --shadow-blue-light: 0 0 15px rgba(0, 119, 255, 0.25);
  --shadow-blue-medium: 0 0 20px rgba(0, 119, 255, 0.2);
  --shadow-blue-strong: 0 -10px 100px rgba(0, 119, 255, 0.2);
  --shadow-btn: rgba(0, 119, 255, 0.4);
  --shadow-gradient: 0 0 0 4px #ffb366, 0 0 5px 8px #ff8c66,
    0 0 46px 2px rgba(0, 119, 255, 0.25);
  --shadow-card: 0 5px 15px rgba(0, 119, 255, 0.2);
  --shadow-focus: 0 0 10px rgba(0, 119, 255, 0.15);
  --shadow-black: 0 0 15px rgba(0, 0, 0, 0.12);
  --shadow-black-light: 0 12px 25px rgba(0, 0, 0, 0.1);
  --shadow-blue: 0 5px 15px rgba(0, 119, 255, 0.25);
  --shadow-blue1: 0 10px 25px rgba(0, 119, 255, 0.3);
  --shadow-blue2: 0 8px 20px rgba(0, 119, 255, 0.2);
  --shadow-black: 0 8px 20px rgba(0, 0, 0, 0.1);
  --shadow-black1: 0 15px 30px rgba(0, 0, 0, 0.2);
  --shadow-gradient: 0 10px 30px rgba(0, 0, 0, 0.08);

  /*======border==============*/
  --border-card-blue: 1px solid #3399ff;
  --border-card-blue-light: 1px solid rgba(0, 204, 255, 0.2);
  --border-card-orangered: solid 1px #ff8c66;
  --border-icon-blue: 1px solid #3399ff;

  /* ===== ANIMATIONS ===== */
  --card-rotate: linear-gradient(
    180deg,
    #66ccff,
    rgba(255, 180, 255, 0.4),
    transparent,
    rgba(255, 150, 100, 0.4),
    transparent
  );
}
/*===========gestion de light theme======*/
html[data-theme="light"] .hero-video {
  opacity: 0;
  transition: opacity 0.5s ease;
}
html[data-theme="light"] .bg-video {
  opacity: 0;
  transition: opacity 0.5s ease;
}
html[data-theme="light"] .contact-info {
  background: none;
}
html[data-theme="light"] .contact-info::before {
  background: none;
}
html[data-theme="light"] #contactForm {
  background: none;
}
html[data-theme="light"] #contactForm::before {
  background: none;
}
html[data-theme="light"] .rendezvous-section {
  margin-bottom: 10px;
}

html[data-theme="light"] .design-card {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.356);
}
html[data-theme="light"] .card-services-complet .card {
  border: none;
}
html[data-theme="light"] .card-services-complet .card li {
  border: none;
}
/*===================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Zoom sur le logo */
@keyframes zoom {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes scale {
  0% {
    transform: scale();
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale();
  }
}

@keyframes ombredouce {
  0% {
    box-shadow: var(--shadow-blue);
  }
  50% {
    box-shadow: var(--shadow-blue-strong);
  }
  100% {
    box-shadow: var(--shadow-blue);
  }
}
@keyframes ombrestyle {
  0% {
    box-shadow: 0 5px 12px rgba(0, 0, 255, 0.797);
  }
  50% {
    box-shadow: 0 8px 35px blue;
  }
  100% {
    box-shadow: 0 5px 12px rgba(0, 0, 255, 0.797);
  }
}

@keyframes moveGradient {
  0% {
    background-position: 30% 30%;
  }
  50% {
    background-position: 70% 40%;
  }
  100% {
    background-position: 30% 70%;
  }
}
/* Loader  avec vos animations 3D */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--gradient-hero-alt);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: opacity 0.5s ease-in-out;
}

/* style section loader*/
.loader {
  position: relative;
  width: 70px;
  height: 70px;
}

.loader-large {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  background-color: #d4adfc;
  border-radius: 10px;
  animation: loading 2s infinite;
}

.loader-small {
  position: absolute;
  width: 50%;
  height: 50%;
  inset: 0;
  margin: auto;
  background-color: #5c469c;
  z-index: 2;
  border-radius: 6px;
  animation: loading 2s infinite reverse;
}

@keyframes loading {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotateY(180deg);
  }

  100% {
    transform: rotateX(180deg);
  }
}

/* Cache le loader quand la page est prête */
.loader-container.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Largeur de la scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px; /* pour scroll horizontal */
}

/* Couleur de fond de la scrollbar */
::-webkit-scrollbar-track {
  background: white;
  border-radius: 10px;
}

/* Couleur de la barre */
::-webkit-scrollbar-thumb {
  background: orangered;
  border-radius: 10px;
  transition: ease 0.3s;
}

/* Effet au survol */
::-webkit-scrollbar-thumb:hover {
  background: orange;
}
/* Reset initial */
html,
body {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}
/**** section bienvenue********/
/* Bannière en bas à droite */
.welcome-banner {
  position: fixed;
  bottom: 25px;
  right: 15px;
  background: var(--gradient-card);
  color: var(--color-white);
  padding: 12px 30px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: solid 1px var(--color-blue);
  opacity: 0;
  transform: translateY(150px) scale(0.5);
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55),
    opacity 0.5s ease;
  z-index: 2000;
}

/* Bannière visible */
.welcome-banner.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Contenu interne */
.welcome-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Icône animée avec glow */
.welcome-icon {
  font-size: 50px;
  animation: bounce-in 0.7s forwards, glow 1.5s infinite alternate;
}

/* Animation bounce "jeté depuis le bas" */
@keyframes bounce-in {
  0% {
    transform: translateY(200px) scale(0.3);
    opacity: 0;
  }
  60% {
    transform: translateY(-10px) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* Glow de l'icône */
@keyframes glow {
  0% {
    text-shadow: 0 0 5px #6b4a0288, 0 0 10px #ffffff86;
  }
  100% {
    text-shadow: 0 0 15px #ffd900c5, 0 0 30px #ffd900e6;
  }
}

/* Texte de bienvenue avec animation d'apparition */
.welcome-text {
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0;
  transform: translateX(30px);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Texte visible */
.welcome-banner.show .welcome-text {
  opacity: 1;
  transform: translateX(0);
}

/* Croix de fermeture */
.close-btn {
  margin-left: auto;
  cursor: pointer;
  font-size: 35px;
  font-weight: bold;
}
.close-btn:hover {
  color: orangered;
}

/* === Responsive === */

/* Tablettes (écrans ≤ 992px) */
@media (max-width: 992px) {
  .welcome-banner {
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
  }

  .welcome-icon {
    font-size: 40px;
  }

  .welcome-text {
    font-size: 14px;
  }

  .close-btn {
    font-size: 28px;
  }
}

/* Mobiles (écrans ≤ 576px) */
@media (max-width: 576px) {
  .welcome-banner {
    bottom: 10px;
    right: 10px;
    left: 10px; /* occupe presque toute la largeur */
    padding: 12px 15px;
    border-radius: 8px;
    flex-direction: column; /* icône et texte en colonne */
    align-items: flex-start;
    gap: 10px;
  }

  .welcome-content {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .welcome-icon {
    font-size: 32px;
  }

  .welcome-text {
    font-size: 16px;
    margin-left: 25px;
    line-height: 1.3;
  }

  .close-btn {
    position: absolute;
    top: 5px;
    right: 20px;
    font-size: 30px;
  }
}
/* ====== Bouton de recherche flottant ====== */
.card-icon-top {
  display: flex;
  gap: 2px;
  position: absolute;
  top: 34px;
  right: 20px;
  z-index: 50;
}
#search-toggle {
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
  background: transparent;
  color: var(--color-white);
  border: none;
  cursor: pointer;
  font-size: 22px;
  transition: transform 0.3s ease;
}
#search-toggle:hover i {
  transform: scale(1.05);
  color: orangered;
}
#search-toggle .line-height {
  height: 40px;
  position: relative;
  top: -10px;
  width: 2px;
  background: rgb(231, 217, 217);
}
/* ====== Overlay ====== */
#search-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-card-toggle);
  height: 120vh;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  padding: 20px;
  z-index: 10000;
  display: none;
}

/* ====== Barre de recherche ====== */
.search-box {
  border: solid 1px var(--color-accent);
  background: rgba(2, 2, 50, 0.162);
  padding: 12px 18px;
  color: white;
  border-radius: 6px 6px 0 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 500px;
  box-shadow: var(--shadow-blue);
  animation: fadeInUp 0.3s ease;
  animation: ombredouce 3s linear infinite;
}

.search-box i {
  color: var(--color-primary-blue, #007bff);
  font-size: 18px;
}

.search-box input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  color: white;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Résultats */
#search-results-container {
  flex-direction: column;
  opacity: 0;
  height: 0;
  overflow-y: auto;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  border-bottom: 2px solid var(--color-accent, #007bff);
  width: 500px;
  max-height: 300px;
  background: var(--gradient-card);
  border-radius: 0 0 10px 10px;
  overflow-y: auto;
}

#search-results-container.visible {
  opacity: 1;
  display: block;
  height: auto;
}

#search-results {
  list-style: none;
  padding: 10px;
  margin: 0;
  width: 100%;
}

#search-results li {
  padding: 10px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

#search-results li:hover {
  background: rgba(0, 0, 255, 0.336);
}

.search-delete {
  margin-left: 10px;
  cursor: pointer;
  color: red;
  font-weight: bold;
}

#see-more {
  padding: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--color-primary-blue, #007bff);
  cursor: pointer;
  border-top: 1px solid #eee;
  display: none; /* caché par défaut */
  transition: opacity 0.3s ease;
}
#see-more.visible {
  display: block; /* visible seulement quand class "visible" */
  opacity: 1;
}

/*==========change theme=====*/

#theme-toggle {
  background: var(--bg-darker);
  border: none;
  border-radius: 20px;
  width: 50px;
  height: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.261);
  transition: background 0.3s ease;
  overflow: hidden;
  padding: 4px;
  justify-content: left;
  align-items: left;
}

#theme-toggle i {
  background: var(--color-accent);
  border-radius: 50%;
  padding: 4px;
  justify-content: center;
  align-items: center;
  color: var(--color-black);
  font-size: 12px;
  transition: transform 0.4s ease;
}
/* Position par défaut : DARK (icône à gauche) */
[data-theme="dark"] #theme-toggle i {
  transform: translateX(0);
}

/* Quand LIGHT → on glisse à droite */
[data-theme="light"] #theme-toggle i {
  transform: translateX(20px);
}
html {
  transition: none !important;
}

html.ready {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Responsive → bouton centré et rechercher */
@media (max-width: 1024px) {
  .card-icon-top {
    display: flex;
    gap: 2px;
    position: absolute;
    top: 35px;
    right: 100px;
  }
  #search-toggle .line-height {
    height: 30px;
    top: -5px;
    width: 2px;
    display: none;
  }
  #search-overlay {
    padding: 40px;
  }

  /* ====== Barre de recherche ====== */
  .search-box {
    width: 100%;
  }
  #search-results-container {
    flex-direction: column;
    opacity: 0;
    height: 0;
    overflow-y: auto;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    border-bottom: 2px solid var(--color-accent, #007bff);
    width: 500px;
    margin-top: 10px;
    max-height: 300px;
    background: var(--gradient-hero);
    width: 100%;
    border-radius: 0 0 10px 10px;
    overflow-y: auto;
  }

  #search-results-container.visible {
    opacity: 1;
    display: block;
    height: auto;
  }
}

/** style du contenu******/
body {
  font-family: inter, arial, sans-serif;
  line-height: 1.6;
  min-height: 100dvh;
  color: var(--color-white);
  background: var(--body-light);
}
h1,
h2 {
  font-family: "inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 900;
}
h3,
h4 {
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

a {
  text-decoration: none;
  color: var(--color-white);
}

.container {
  margin: 0 70px;
}
@media (max-width: 500px) {
  .container {
    margin: 0 16px;
  }
}
@media (min-width: 2000px) {
  .container {
    margin: 0 120px;
  }
}
body {
  top: 0 !important;
}

/* === Header et nav === */
.cyber-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background: var(--gradient-header);
  backdrop-filter: blur(10px);
  border-bottom: 1px dashed var(--color-orangered);
  padding: 15px 0;
  transition: all 0.3s ease;
  transition: transform 0.5s ease;
  box-shadow: var(--shadow-blue);
}

.cyber-header.scrolled {
  padding: 10px 0;
  background: var(--gradient-header-scroll);
  box-shadow: var(--shadow-blue);
  transition: ease 0.3s;
  transform: translateY(-10px);
  border-bottom: 1px solid var(--color-blue);
}

/***********navigation**********************/
.nav-bar {
  margin: 0 40px;
}
.logo-container {
  left: 10px;
  display: flex;
  gap: 20px;
}
.logo-container img {
  height: 50px;
  width: 60px;
  position: relative;
  top: -2px;
  background: var(--bg-darker);
  border: solid 1px var(--color-orangered);
  box-shadow: var(--shadow-blue);
  border-radius: 4px;
  transition: all 0.3s;
}
.logo-container img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-blue);
}
.name-logo {
  position: relative;
  top: 15px;
  left: 0px;
  text-transform: uppercase;
  word-spacing: 2px;
  letter-spacing: 1px;
  font-weight: 900;
  font-size: 14px;
  transition: ease-in-out 0.4s;
  color: var(--color-white);
}
.name-logo span {
  color: var(--color-orangered);
}
.name-logo:hover {
  color: var(--color-orangered);
}
.name-logo:hover span {
  color: var(--color-white);
}

.main-nav {
  position: absolute;
  top: 20px;
  right: 120px;
  font-weight: 700;
  font-size: 20px;
}
.main-nav .nav-list {
  display: flex;
}

.main-nav .nav-list li {
  position: relative;
  margin: 0 1px;
  list-style: none;
  font-size: 15px;
}
.main-nav .nav-list li span {
  font-size: 16px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--color-orangered);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a {
  text-decoration: none;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--color-orangered);
}

.main-nav p {
  color: var(--color-white);
  font-size: 12px;
}
.main-nav p i {
  margin: 0 4px;
}
.main-nav p:hover {
  color: var(--color-orangered);
}
.main-nav i {
  color: var(--accent-orange);
  font-size: 14px;
}
.main-nav a:hover i {
  color: var(--color-white);
}
.main-nav p:hover i {
  color: var(--color-white);
}
/* === Sous-menu === */
.sous-menu-list {
  display: none;
  position: absolute;
  top: 100%;
  left: -25px;
  background: var(--color-light-gray);
  border-left: solid 2px var(--color-orangered);
  border-radius: 5px;
  padding: 10px 0;
  min-width: 200px;
  z-index: 100;
  flex-direction: column;
  box-shadow: var(--shadow-light);
  list-style: none;
}
.service-sous-menu p {
  position: relative;
  top: 5px;
  cursor: pointer;
}
.service-sous-menu p span {
  font-weight: bold;
  position: relative;
  padding: 5px 0;
  transition: all 0.3s ease;
}
.sous-menu-list li a {
  padding: 10px 20px;
  white-space: nowrap;
  font-weight: 700;
  color: rgb(30, 29, 29);
}
.sous-menu-list li a.active {
  background-color: var(--color-light-gray);
  border-radius: 5px;
  transform: translateX(8px);
  transition: all 0.3s ease;
}
.sous-menu-list li a:visited {
  background-color: var(--color-light-gray-alt);
  transform: translateX(8px);
}

.sous-menu-list li a:hover {
  background-color: var(--color-light-gray-alt);
  border: none;
  transform: translateX(8px);
}

/* Flèche animée */
.arrow-icon {
  transition: transform 0.3s ease;
}

.service-sous-menu:hover .arrow-icon {
  transform: rotate(180deg);
}
.service-sous-menu:hover i {
  color: var(--color-orangered);
}

.service-sous-menu:hover .sous-menu-list {
  display: flex;
}
/**************mobile menu *********************/
/* Conteneur du bouton */

.mobile-menu-btn {
  position: fixed;
  top: 25px;
  right: 20px;
  width: 45px;
  height: 40px;
  background: white;
  padding: 4px;
  border-radius: 2px;
  box-shadow: var(--shadow-light);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s;
  justify-content: center;
  align-items: center;
  text-align: center;
  display: none;
}
/* Icône hamburger  */
.card-menu-mobile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  margin: 2px;
}

.card-menu-mobile span {
  display: block;
  width: 100%;
  height: 4px;
  background-color: black;
  transition: all 0.3s;
  transform-origin: center;
}

/* Animation */
.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
  background-color: var(--color-orangered);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
  background: var(--color-orangered);
}
/* ============================================================ */
/* CONTACT SECTION */
/* ============================================================ */
.contact-footer {
  background: var(--gradient-card);
}
.contact-section {
  padding: 20px 0;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 0, 255, 0.315);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.contact-info .section-title {
  font-size: 30px;
  text-align: left;
  font-family: inter;
  font-weight: 1000;
  margin-bottom: 10px;
}
.contact-info .section-title span {
  color: var(--color-orangered);
}
.contact-info p {
  margin-bottom: 20px;
}

.contact-methods {
  margin: 10px 0;
}
.contact-method {
  display: flex;
  gap: 0px;
  margin: 10px 0;
  align-items: center;
}

.contact-method i {
  width: 50px;
  height: 50px;
  background: var(--color-black-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  animation: pulse 2.5s infinite ease-out;
}

.contact-method h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.contact-method a,
.contact-method p {
  transition: color 0.3s ease;
}

.contact-method a {
  color: var(--color-orangered);
  font-weight: bold;
}

.contact-method a:hover {
  color: var(--color-orange);
}
.contact-info h4 {
  font-family: inter;
  font-weight: 800;
  font-size: 20px;
}
.social-links {
  display: flex;
  gap: 20px;
  padding: 20px 20px 20px 0;
}

.social-links a {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  box-shadow: var(--shadow-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.social-links a {
  background: var(--color-orangered);
  color: white;
  font-size: 20px;
  font-weight: bold;
  transform: translateY(-3px);
  animation: pulse 1.5s infinite;
  z-index: 100;
}
.social-links a:hover {
  background-color: var(--color-orange);
  box-shadow: var(--shadow-blue-light);
  transform: translatey(-10px);
}
#contactForm,
.contact-info {
  box-shadow: var(--shadow-blue-medium);
}

.contact-info,
#contactForm {
  padding: 15px 30px;
  background: rgba(0, 0, 255, 0.696);
  position: relative;
  margin: 20px 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
}
.contact-info::before,
#contactForm::before {
  content: "";
  position: absolute;
  width: 200%;
  background: var(--card-rotate);
  height: 150%;
  animation: rotate 5s linear infinite;
  transition: all 0.1s linear;
  z-index: -4;
}
.contact-info::after,
#contactForm::after {
  content: "";
  position: absolute;
  inset: 3.5px;
  border-radius: 8px;
  z-index: -4;
  background: var(--gradient-card);
}

#contactForm .form-group {
  margin-bottom: 8px;
  position: relative;
}

#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-black-light);
  border: 1px solid var(--color-accent-blue);
  border-radius: 4px;
  color: var(--color-white);
  font-family: "Montserrat", sans-serif;
  transition: all 0.3s ease;
  overflow: auto;
  scrollbar-width: none;
}
#contactForm textarea {
  overflow-y: auto;
  resize: vertical;
  min-height: 100px;
  max-height: 250px;
}
#contactForm input:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: var(--color-primary-blue);
  box-shadow: var(--shadow-focus);
  margin-top: 20px;
}

#contactForm textarea {
  resize: vertical;
  min-height: 100px;
  max-height: 250px;
}

/*======gestion des label=============*/
/* Ajouter un padding-top pour faire de la place au label flottant */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 20px 5px 10px 5px; /* top plus grand pour laisser la place au label */
  font-size: 16px;
  border: none;
  border-bottom: 2px solid #666;
  background: transparent;
  outline: none;
}

/* Label flottant */
.form-group label {
  position: absolute;
  left: 12px;
  top: 10px; /* à l’intérieur du champ par défaut */
  font-size: 16px;
  color: #666;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease all;
  background: white; /* pour détacher du champ */
  padding: 0 4px;
  border-radius: 4px;
}

/* Label apparaît seulement pendant le focus */
.form-group input:focus + label,
.form-group textarea:focus + label {
  top: 8px; /* label flottant au-dessus */
  left: 10px;
  font-size: 12px;
  color: orangered;
  opacity: 1;
}
/* Masquer placeholder quand label flotte */
.form-group input:focus::placeholder,
.form-group input:not(:placeholder-shown)::placeholder,
.form-group textarea:focus::placeholder,
.form-group textarea:not(:placeholder-shown)::placeholder {
  color: transparent;
}

/* Bordure focus animée */
.form-group input:focus,
.form-group textarea:focus {
  transition: 0.3s;
}

#contactForm .btn-form {
  position: relative;
  background: var(--gradient-mix);
  border-radius: 10px;
  border: none;
  padding: 20px 40px;
  transition: ease-in 0.3s;
  cursor: pointer;
  box-shadow: var(--shadow-blue);
  overflow: hidden; /* Pour contenir le ::before */
  color: white;
  z-index: 100;
}
#contactForm .btn-form:hover {
  background-color: transparent;
}
#contactForm .btn-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--color-orangered);
  box-shadow: var(--shadow-blue);
  transition: width 0.5s ease;
  z-index: -1;
}

#contactForm .btn-form:hover::before {
  width: 100%;
}

/* ============================================================ */
/* FOOTER */
/* ============================================================ */
.main-footer {
  padding: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  color: var(--color-white);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  display: none;
}
.footer-bottom a {
  color: orangered;
  font-weight: bold;
  font-size: 15px;
}
.footer-bottom a:hover {
  color: var(--color-orange);
}
.footer-logo {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.footer-logo .logo {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 900;
  display: inline-block;
}
.main-footer img {
  width: 50%;
  border: 1px dashed orange;
  padding: 10px 30px;
  margin: 10px 0;
  border-radius: 4px;
}
.footer-logo p {
  color: gray;
  font-size: 0.9rem;
}

.footer-links h3,
.footer-services h3,
.footer-newsletter h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--color-white);
}
.footer-services ul,
.footer-links ul li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-services ul li,
.footer-links ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 5px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.footer-services ul li::before,
.footer-links ul li::before {
  content: "▹";
  position: absolute;
  left: 0;
  top: 0;
  color: #ff9800;
  font-weight: bold;
  font-size: 1.2rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-services ul li:hover {
  color: #fff;
}

.footer-services ul li:hover,
.footer-links ul li:hover {
  transform: translateX(4px); /* petit effet de glissement */
  color: #ffc107;
}

.footer-links a,
.footer-services a {
  color: gray;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover,
.footer-services a:hover {
  color: var(--color-orange);
}

.footer-newsletter p {
  color: var(--color-dark-gray);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  border: 1px solid rgba(0, 240, 252, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: solid 1px orange;
  color: var(--color-white);
}

.newsletter-form button {
  background: var(--gradient-mix);
  color: white;
  border: none;
  padding: 0 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: var(--gradient-orange);
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(0, 240, 252, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
}

.legal-links {
  display: none;
  gap: 15px;
}

.legal-links a {
  color: var(--color-dark-gray);
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: var(--color-primary-blue);
}
@media (max-width: 768px) {
  .cyber-header {
    background: var(--gradient-hero-alt);
  }
  .name-logo {
    position: relative;
    top: 15px;
    left: 0px;
    display: none;
  }
  .logo-container img {
    height: 40px;
    width: 50px;
    top: 10px;
    border-radius: 4px;
    border: none;
  }

  .mobile-menu-btn {
    width: 35px;
    height: 35px;
    padding: 3px;
  }
  .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}
/* * * * * * * * * * *Section de responsive du site * * * * * * * * * * * * */
@media (max-width: 1024px) {
  body {
    font-size: 16px;
  }
  /* responsive de navigation*/
  .mobile-menu-btn {
    display: flex;
    z-index: 50;
  }
  .main-nav {
    position: fixed;
    top: 0;
    left: 2000px;
    width: 75%;
    height: 125vh;
    background: var(--gradient-hero-vertical);
    box-shadow: var(--shadow-blue-strong);
    backdrop-filter: blur(10px);
    padding: 30px;
    transition: left 0.3s ease;
  }

  .main-nav.active {
    left: 40%;
    overflow: scroll;
  }

  .main-nav ul {
    position: relative;
    top: 40px;
    left: 10px;
    flex-direction: column;
    gap: 10px;
  }
  .main-nav .service-sous-menu p {
    margin-left: 4px;
  }
  /* === Responsive sous menu === */
  .main-nav .nav-list {
    position: absolute;
    top: 5%;
    left: 0;
    width: 100%;
    flex-direction: column;
    padding: 20px;
  }

  .main-nav .nav-list li {
    width: 100%;
  }
  .main-nav .nav-list li a {
    color: var(--color-white);
  }

  .service-sous-menu:hover .sous-menu-list {
    display: none;
  }

  .service-sous-menu.open .sous-menu-list {
    display: flex;
    position: relative;
    background: var(--gradient-hero-vertical);
    box-shadow: none;
    height: auto;
    width: 300px;
    padding: 20px;
    position: relative;
    top: 0;
    left: -25px;
  }
  .arrow-icon {
    margin-left: auto;
  }

  /* ============================================================ */
  /* CONTACT SECTION RESPONSIVE */
  /* ============================================================ */
  .contact-section {
    padding: 20px 0;
    justify-content: center;
    align-items: center;
  }

  .contact-section .contact-info,
  #contactForm {
    width: 100%;
    height: 100%;
  }
  .contact-section #contactForm {
    margin-top: 0px;
  }
  .contact-section .contact-info,
  #contactForm input {
    height: 100%;
  }
  .contact-section textarea {
    overflow: scroll;
  }

  .contact-info h2 {
    font-size: 25px;
  }

  .contact-grid .contact-info p {
    font-size: 15px;
  }
  .contact-grid .contact-info a {
    font-size: 15px;
  }

  #contactForm .btn-form {
    width: 100%;
    padding: 15px;
  }

  /*====== FOOTER RESPONSIVE ====== */

  .footer-bottom .footer-mention {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-bottom: 10px;
    padding: 40px;
  }

  .footer-bottom .legal-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-bottom .legal-links a {
    font-size: 10px;
  }
  .footer-bottom .legal-links a:hover {
    color: var(--color-orangered);
  }
}
