/* =================
  CONTENU main CSS
==================== */
@import url("https://fonts.googleapis.com/css2?family=Momo+Signature&display=swap");

main {
  padding: 0px;
  margin: 0px;
  display: flex;
  flex-direction: column;
}

#contenu aside {
  margin: 0;
  padding: 0;
}

#contenu .area {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

/* =========================
   VARIABLES 
========================= */
:root {
  --primary-color: #00365a;
  --secondary-color: #3ca0cb;
  --tertiary-color: #76cc37;
  --quaternary-color: #186a39;
  --secondary-color-light: #008fc9;
  --white: #ffffff;
  --white-second: #b3b3b3;
  --black: #050714;
  --title-font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --content-width: 1200px;
  --text-size: 15px;
  --nav-height: 90px;
  --radius: 16px;
  --h2-height: 40px;
  --h3-height: 25px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  --sub-top: 40px;
  --top: 80px;
}

@media (max-width: 1270px) {
  :root {
    --content-width: 1000px;
  }
}

@media (max-width: 1000px) {
  :root {
    --content-width: 100vw;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
}

/* Bonus : scroll smooth pour tes ancres (#accueil, etc.) */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  color: var(--white);
  overflow-x: hidden;
  background: linear-gradient(135deg, var(--primary-color), var(--black));
}

h4 {
  color: var(--secondary-color-light);
  text-align: center;
  font-size: 20px;
  font-weight: 600;
}

p,
a {
  font-size: var(--text-size);
}

/* =========================
   HEADER / NAVBAR
========================= */
header#top {
  top: 0;
  background: transparent;
  position: fixed; /* Navbar reste en haut */
  z-index: 9999;
  width: 100vw;
}

/* Container de la nav */
header#top nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  /* Glass + gradient */
  background: var(--primary-color);
  /* background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.615),
    rgba(255, 255, 255, 0.605)
  ); */
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  transition: all 0.35s ease;
}

/* Logo */
header#top nav > a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

header#top nav > a img {
  width: 100px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
  transform: translateZ(0);
  transition: transform 0.35s ease;
}

header#top nav > a:hover img {
  transform: scale(1.06) rotate(-2deg);
}

/* =========================
   MENU PRINCIPAL
========================= */
header#top nav ul {
  list-style: none;
}

#menu > ul {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Liens */
#menu > ul > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;

  padding: 12px 14px;
  border-radius: 12px;

  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
  transform: translateZ(0);
}

/* Effet glow / hover */
#menu > ul > li > a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--tertiary-color);
  transform: translateY(-2px);
}

/* Soulignement animé */
#menu > ul > li > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;

  background: linear-gradient(90deg, var(--tertiary-color), #ffffff);
  border-radius: 999px;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

#menu > ul > li > a:hover::after {
  transform: scaleX(1);
}

#menu > ul > li > a:hover::before {
  transform: scale(1);
}

/* =========================
   DROPDOWN / SOUS-MENU
========================= */
#menu > ul > li {
  position: relative;
}

/* Sous-menu invisible par défaut */
#menu > ul > li > ul {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;

  min-width: 240px;
  padding: 10px;

  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);

  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transition: all 0.25s ease;

  display: grid;
  gap: 6px;
}

/* Animation apparente au hover */
#menu > ul > li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Liens du sous-menu */
#menu > ul > li > ul li a {
  display: flex;
  align-items: center;
  padding: 12px 12px;
  border-radius: 12px;

  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;

  transition:
    background 0.22s ease,
    transform 0.22s ease;
}

#menu > ul > li > ul li a:hover {
  background: rgba(0, 54, 90, 0.08);
  transform: translateX(6px);
}

/* Petit tag “chevron” à droite */
#menu > ul > li > ul li a::after {
  content: "›";
  margin-left: auto;
  font-size: 18px;
  opacity: 0.55;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}

#menu > ul > li > ul li a:hover::after {
  transform: translateX(3px);
  opacity: 1;
}

/* =========================
   EFFET "ACTIVE" (si tu ajoutes .active avec JS)
========================= */
#menu > ul > li > a.active {
  background: rgba(118, 204, 55, 0.18);
  color: #fff;
}

#menu > ul > li > a.active::after {
  transform: scaleX(1);
}

/*=================
section scroll horizontale
=================*/

.scroll-section {
  height: 900vh;
}

.scroll-section__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.scroll-section__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

/* =========================
   Section Hero (accueil)
========================= */
#home {
  align-items: center;
  height: 100vh; /* hauteur écran - navbar - margin */
  width: 100vw;
  position: relative;
  align-items: center;
  z-index: 1;
}

.hero-section {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-container {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-content: center;
  height: 100%;
}

.hero-content {
  display: flex;
  align-items: center;
  width: var(--content-width);
}

.hero-banner {
  width: 100vw; /* prend toute la largeur écran */
  height: 900px;
  display: block;
  z-index: -1;
  position: absolute;
  left: 50%;
  right: 50%;
  top: 0;
  margin-left: -50vw; /* sort du main */
  margin-right: -50vw;

  object-fit: fill; /* optionnel si tu mets une hauteur fixe */
}

.hero-description {
  margin-top: 20px;
  font-size: 18px;
  color: var(--white);
  max-width: 40%;
  line-height: 1.6;
}

.hero-description h1 {
  font-size: 30px;
  margin-bottom: 12px;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.hero-cta {
  display: flex;
  align-items: center;
  width: fit-content;
  margin-top: 20px;
  padding: 12px 24px;
  background: linear-gradient(
    45deg,
    var(--tertiary-color),
    var(--quaternary-color)
  );
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

.hero-phone-cta {
  background: var(--primary-color);
}

.hero-cta:hover {
  transform: translateY(-2px);
}

.download-icon,
.phone-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  filter: invert(1); /* icone blanche */
}

.hero-visual {
  width: 600px;
  height: 400px;
  position: relative;
}

.hero-illustration {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(100, 1fr);
  grid-template-rows: repeat(100, 1fr);
}

.laptop-container {
  grid-column: 1 / span 100;
  grid-row: 1 / span 60;
}

.gear-container {
  grid-column: 35 / span 30;
  grid-row: 40 / span 30;
  animation: spin 30s linear infinite;
}

.gear {
  width: 100%;
  height: auto;
}

.laptop {
  width: 100%;
  height: auto;
  z-index: 1;
  /*rotation de 20°*/
  transform: rotate(-10deg);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/*
  liste des technologies
*/
.tech-list-container {
  width: 100vw;
  position: absolute;
  bottom: 0px;
  /*back noir et opaque*/
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
  padding: 0px;
}

.tech-list {
  display: flex;
  justify-content: center; /* centre toute la ligne */
  align-items: center;
  list-style: none;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.tech-list li {
  flex: 1; /* même largeur pour tous */
  text-align: center;
  display: flex;
  justify-content: center; /* centre le contenu */
  align-items: center;
  gap: 8px;
  font-size: 18px;
  padding: 40px 15px;
  color: white;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-list li:last-child {
  border-right: none; /* pas de bordure sur le dernier élément */
}

.tech-list li i {
  font-size: 32px;
}

/*=================
asid area circle animate
=================*/
.circles {
  position: fixed;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.circles li {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: animate 25s linear infinite;
  bottom: -150px;
  /*ajoute du flou */
  filter: blur(10px);
}

.circles li:nth-child(1) {
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.circles li:nth-child(2) {
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 20s;
}

.circles li:nth-child(3) {
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
}

.circles li:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 30s;
}

.circles li:nth-child(5) {
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
  animation-duration: 10s;
}

.circles li:nth-child(6) {
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
  animation-duration: 45s;
}

.circles li:nth-child(7) {
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
}

.circles li:nth-child(8) {
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 60s;
}

.circles li:nth-child(9) {
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 4s;
  animation-duration: 80s;
}

.circles li:nth-child(10) {
  left: 85%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 40s;
}

@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
  }
}

/*==================
section à propos
==================*/
#about {
  z-index: 2;
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: center;
  width: 100vw;
  margin-top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
}

.about-container {
  display: grid;
  grid-template-columns: repeat(100, 1fr);
  grid-template-rows: repeat(100, 1fr);
  height: 500px;
  width: var(--content-width);
  position: relative;
}

.about-container h2,
.about-container h3 {
  margin-bottom: 12px;
  text-align: center;
}

.content {
  width: 100%;
  height: fit-content;
  text-align: justify;
  font-size: 15px;
  background: none;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--primary-color);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.content h3,
.content h2 {
  color: var(--tertiary-color);
}

.content p,
.content b,
.content li {
  color: var(--white-second);
}

/* Exemple placements */
.about-content {
  grid-column: 40 / span 25;
  grid-row: 1 / span 20;
}

#aboutHead {
  transform: translate3d(-100px, 0, 0);
  opacity: 0;
}

#aboutPresentation {
  transform: translate3d(100px, -100px, 0);
  opacity: 0;
}

#aboutVision {
  transform: translate3d(100px, 100px, 0);
  opacity: 0;
}

#aboutMission {
  transform: translate3d(-100px, 0, 0);
  opacity: 0;
}

#aboutValues {
  transform: translate3d(-100px, 100px, 0);
  opacity: 0;
}

#aboutPositionnement {
  transform: translate3d(-100px, -100px, 0);
  opacity: 0;
}

.presentation {
  grid-column: 5 / span 25;
  grid-row: 10 / span 15;
}

.vision {
  grid-column: 5 / span 25;
  grid-row: 60 / span 15;
}

.mission {
  grid-column: 40 / span 25;
  grid-row: 80 / span 20;
}

.values {
  grid-column: 75 / span 25;
  grid-row: 60 / span 30;
  text-decoration: none;
}

.values ul {
  list-style: none;
  padding-left: 20px;
}

.positionnement {
  grid-column: 75 / span 25;
  grid-row: 10 / span 15;
}

.illustration {
  grid-column: 40 / span 25;
  grid-row: 40 / span 40;
  z-index: -1;
  background: none;
  padding: 0;
  box-shadow: none;
  border: none;
}

.illustration img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/*==================
 section pourquoi
==================*/

#why {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

.why-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: var(--content-width);
  height: 100%;
  gap: 20px;
}

.why-title {
  font-family: var(--title-font);
  font-style: normal;
  font-size: 60px;
  color: var(--tertiary-color);
  text-align: center;
}

.why-description {
  text-align: center;
}

.advantages {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  list-style: none;
}

.advantages li {
  transform: translate3d(0, -100px, 0);
  opacity: 0;
}

.advantages h3 {
  /*uppercase*/
  text-transform: uppercase;
  margin-bottom: 12px;
  text-align: center;
  color: var(--tertiary-color);
  font-size: 15px;
}

.advantages p {
  text-align: center;
  font-size: 15px;
}

/*=========================
Section expertises 
=========================*/
.vertical-scroll {
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vertical-scroll_content {
  display: flex;
  flex-direction: column;
  width: var(--content-width);
  height: 100%;
  gap: 20px;
}

/*======================
section expertises
=====================*/
#expertise {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: var(--top) 0;
}

.expertise-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.expertise-title,
.references-title,
.contact-title {
  font-size: var(--h2-height);
  font-family: var(--title-font);
  font-style: normal;
  color: var(--tertiary-color);
}

.gears-container {
  position: relative;
  right: 50px;
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.gear-small {
  width: 50px;
  height: auto;
  position: relative;
  left: 5px;
  animation: spin 10s linear infinite;
}

.gear-big {
  width: 100px;
  height: auto;
  animation: spin 20s linear reverse infinite;
}

.process-title,
.methodology-title {
  font-size: 30px;
  margin: 0 20px;
  text-align: center;
  color: var(--white);
}

.process {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.line-bus {
  width: fit-content;
  height: fit-content;
}

.line-svg {
  width: 600px;
  height: auto;
  overflow: visible;
}

.line-bus path {
  fill: none;
  stroke-width: 40;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#pathBase,
#pathBase2,
#pathBase3,
#pathBase4,
#pathBase5 {
  stroke: rgba(118, 204, 55, 0.15);
}

#pathGlow,
#pathGlow2,
#pathGlow3,
#pathGlow4,
#pathGlow5 {
  stroke: #76cc37;
  filter: drop-shadow(0 0 12px rgba(118, 204, 55, 0.8));
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: calc(var(--content-width) - 650px);
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius);
  opacity: 0.5;
  border: 1px solid var(--secondary-color);
  transition: all 0.3s ease;
}

.step-active {
  box-shadow: 0 0 100px var(--secondary-color-light);
  border: 1px solid var(--tertiary-color);
  background: rgba(118, 204, 55, 0.1);
  opacity: 1;
  transition: all 0.3s ease;
  transform: scale(1.05);
}

.path-complete {
  stroke: var(--tertiary-color) !important;
  transition: all 0.1s ease;
}

.process-step img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.process-step h4 {
  font-size: 24px;
}

.process-step p {
  font-size: 15px;
  color: var(--white);
}

/*===================
Methodology section CSS
===================*/

.methodology {
  margin-top: var(--sub-top);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* title */

.box {
  width: fit-content;
  height: fit-content;
  padding: 20px 20px;
  display: grid;
  place-content: center;
  color: white;
  text-shadow: 0 1px 0 #000;

  /* variables */
  --border-angle: 0turn;
  --main-bg: conic-gradient(from var(--border-angle), var(--primary-color));

  border: 5px solid transparent;
  border-radius: 2em;

  --gradient-border: conic-gradient(
    from var(--border-angle),
    transparent 25%,
    var(--primary-color),
    var(--tertiary-color) 99%,
    transparent
  );

  background:
    /* padding-box clip this background in to the overall element except the border. */
    var(--main-bg) padding-box,
    /* border-box extends this background to the border space */
    var(--gradient-border) border-box,
    /* duplicate main background to fill behind the gradient border */
    var(--main-bg) border-box;

  background-position: center center;

  animation: bg-spin 3s linear infinite;
}

/* keyframes en CSS pur */
@keyframes bg-spin {
  to {
    --border-angle: 1turn;
  }
}

/* propriété animable */
@property --border-angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0turn;
}

.methodology-section {
  width: 30%;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.methodology-section .title {
  font-size: 24px;
  margin-bottom: 12px;
  text-align: center;
}

/*=================
Solutions section
==================*/
#solutions {
  display: inline-flex;
  flex-direction: column;
  margin: var(--top) 0;
}

.solutions-title {
  font-family: var(--title-font);
  font-size: var(--h2-height);
  color: var(--tertiary-color);
  text-align: center;
}

.solution-description {
  text-align: center;
}

/* outils proposés*/
.solustion-container {
  width: 100%;
  height: 700px;
}

.grid-software {
  width: 100%;
  height: 100%;
  margin-top: var(--sub-top);
  display: grid;
  grid-template-columns: repeat(17, 1fr);
  grid-template-rows: repeat(11, 1fr);
}

.solution {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  height: max-content;
  opacity: 0.2;
  transition: all 1s ease;
}

.solution.activate {
  opacity: 1;
  box-shadow: 0 0 30px var(--tertiary-color);
  transform: scale(1.05);
  transition: all 1s ease;
  animation: bounding 1s ease infinite alternate;
}

@keyframes bounding {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(6px);
  }
}

.solution p {
  text-align: left !important;
  margin-bottom: 10px;
}

.solution a {
  margin: auto;
  text-decoration: none;
  color: var(--tertiary-color);
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
}

.solution a:hover {
  background-color: var(--tertiary-color);
  color: var(--primary-color);
  transform: scale(1.2);
  transition: all 0.3s ease;
}

.solution-illustration {
  grid-column: 8 / span 3;
  grid-row: 1 / span 5;
  height: 100%;
}

.image {
  width: 100%;
  height: 60px;
  object-fit: cover;
}

.solution-qhse {
  grid-column: 1 / span 5;
  grid-row: 3 / span 3;
}

.solution-station {
  grid-column: 13 / span 5;
  grid-row: 3 / span 3;
}

.solution-hotel {
  grid-column: 7 / span 5;
  grid-row: 8 / span 3;
}

article p {
  text-align: justify;
}

.d {
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(17, 1fr);
  grid-template-rows: repeat(11, 1fr);
}

.d .light {
  width: 100%;
  height: 10px;
  border-radius: var(--radius);
  background-color: transparent;
}

.d1 {
  grid-column: 6 / span 2;
  grid-row: 2 / span 2;
}

.d2 {
  grid-column: 11 / span 2;
  grid-row: 2 / span 2;
}

.d3 {
  grid-column: 6 / span 2;
  grid-row: 4 / span 2;
}

.d4 {
  grid-column: 11 / span 2;
  grid-row: 4 / span 2;
}

.d5 {
  grid-column: 6 / span 2;
  grid-row: 6 / span 2;
}

.d6 {
  grid-column: 8 / span 3;
  grid-row: 6 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.d7 {
  grid-column: 11 / span 2;
  grid-row: 6 / span 2;
}

.l1 {
  transform: rotate(45deg);
}

.light.activate {
  background-color: var(--tertiary-color);
  transition: all 0.7s;
}

.l2 {
  transform: rotate(135deg);
}

.l3 {
  margin: auto;
  width: 50% !important;
}

.l4 {
  margin: auto;
  width: 50% !important;
}

.l5 {
  transform: rotate(-45deg);
}

.l6 {
  transform: rotate(90deg);
  width: 30% !important;
}

.l7 {
  transform: rotate(225deg);
}

/* illustration des solutions */
.solution-illustration {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.solution-illustration-lamp {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.douille-line {
  display: block;
  margin: auto;
  height: 10px;
  width: 90px;
  border-radius: 10px;
  background-color: var(--quaternary-color);
}

.douille-line.activate {
  background-color: var(--tertiary-color);
  box-shadow: 0 0 10px var(--tertiary-color);
  transition: all 0.5s ease;
}

.line-2,
.line-3 {
  margin-top: 5px;
}

.solution-illustration-lamp {
  justify-content: center;
}

.lamp {
  position: relative;
  top: 5px;
  width: 200px;
  filter: opacity(0.3);
  transition: all 0.5s ease;
}

.lamp.activate {
  filter: opacity(0.6) invert(1) drop-shadow(0 0 10px var(--tertiary-color));
  transition: all 0.5s ease;
}

.company.activate {
  opacity: 1;
  transition: all 0.5s ease;
}

.company {
  position: absolute;
  width: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  /* height: fit-content; */
  opacity: 0.4;
  transition: all 0.5s ease;
}

.company img {
  width: 100px;
}

.solutions-ttl,
.services-ttl {
  font-size: var(--h3-height);
  color: var(--tertiary-color);
  text-align: center;
}

/*=====================
Services
=====================*/

.services {
  margin-top: var(--sub-top);
  display: flex;
  position: inherit;
  align-self: center;
  width: 100vw;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

:root {
  --bg-dark: #0a0a0c;
  --accent-cyan: #00f3ff;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-main: #e0e0e0;
  --text-dim: #a0a0a0;
}

.services ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  /* Responsive Grid */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
}

.services li {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: center;
  padding: 2rem;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

/* Futuristic corner accent */
.services li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: var(--accent-cyan);
  transition: height 0.3s ease;
}

.services li:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 243, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.services li:hover::before {
  height: 100%;
}

.services h4 {
  font-size: 1.25rem;
  margin: auto;
  color: #fff;
  letter-spacing: 0.05em;
}

.services p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .services {
    padding: 2rem 1rem;
  }

  .services-ttl {
    margin-bottom: 2rem;
  }
}

/* Update the .services container with these styles */
.services {
  position: relative;
  padding: 1rem 2rem;
  overflow: hidden; /* Contains the background animations */
}

/* 1. Animated Mesh Grid Background */
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  animation: grid-drift 20s linear infinite;
  z-index: 0;
}

/* 2. Moving Nebula Glows */
.services::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(
    circle at center,
    rgba(0, 243, 255, 0.08) 0%,
    rgba(123, 0, 255, 0.05) 30%,
    transparent 60%
  );
  transform: translate(-50%, -50%);
  animation: nebula-float 15s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

/* Ensure content stays above animations */
.services-ttl,
.services ul {
  position: relative;
  z-index: 1;
}

/* --- Animations --- */

/* Drifting Grid Effect */
@keyframes grid-drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(50px);
  }
}

/* Pulsing/Moving Nebula Effect */
@keyframes nebula-float {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 0.5;
  }
  50% {
    transform: translate(-45%, -55%) scale(1.2) rotate(5deg);
    opacity: 0.8;
  }
  100% {
    transform: translate(-55%, -45%) scale(1) rotate(-5deg);
    opacity: 0.5;
  }
}

/* Enhance Card Glassmorphism for the new background */
.services li {
  background: rgba(15, 15, 20, 0.7);
  backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* ... previous styles ... */
}

/* types de logiciels et secteurs cibles*/
/* ====== Thème futuriste (sans hover) ====== */
:root {
  --bg0: #070a12;
  --glass: rgba(255, 255, 255, 0.07);
  --stroke: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);

  --neonA: #7c3aed; /* violet */
  --neonB: #22d3ee; /* cyan */
  --neonC: #a3ff12; /* vert acide */

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --radius: 18px;
}

/* ====== Layout container ====== */
.futurist-services {
  margin-top: var(--sub-top);
  position: relative;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding: 28px;
  border-radius: calc(var(--radius) + 6px);
  color: var(--text);
  background:
    radial-gradient(
      1200px 600px at 10% 0%,
      rgba(124, 58, 237, 0.2),
      transparent 55%
    ),
    radial-gradient(
      900px 520px at 90% 10%,
      rgba(34, 211, 238, 0.18),
      transparent 55%
    ),
    radial-gradient(
      700px 500px at 50% 120%,
      rgba(163, 255, 18, 0.1),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.01)
    );
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.cible-comment {
  margin-top: var(--sub-top);
  text-align: center;
}

/* ====== Background animé (scanlines) ====== */
.futurist-services::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.06) 0px,
    rgba(255, 255, 255, 0.06) 1px,
    rgba(0, 0, 0, 0) 3px,
    rgba(0, 0, 0, 0) 7px
  );
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
  animation: scan-drift 6.5s linear infinite;
}

@keyframes scan-drift {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(10px);
  }
}

/* ====== Halo conic animé ====== */
.futurist-services::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 180deg,
    transparent 0%,
    rgba(34, 211, 238, 0.16) 18%,
    transparent 33%,
    rgba(124, 58, 237, 0.18) 52%,
    transparent 70%,
    rgba(163, 255, 18, 0.12) 85%,
    transparent 100%
  );
  filter: blur(30px);
  opacity: 0.55;
  animation: futurist-halo 11s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes futurist-halo {
  to {
    transform: rotate(360deg);
  }
}

/* ====== Orbes en background (objets animés) ====== */
.futurist-services .bg-orb {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  filter: blur(18px);
  opacity: 0.35;
  border-radius: 999px;
  mix-blend-mode: screen;
  animation: orb-float 9s ease-in-out infinite;
}

/* si tu ne veux pas ajouter d'éléments HTML, tu peux ignorer cette partie.
   Sinon, ajoute dans le div: 
   <span class="bg-orb orb-1"></span> etc. */

.futurist-services .orb-1 {
  width: 220px;
  height: 220px;
  left: -60px;
  top: 40px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(34, 211, 238, 0.55),
    transparent 60%
  );
  animation-duration: 10s;
}
.futurist-services .orb-2 {
  width: 260px;
  height: 260px;
  right: -80px;
  top: 10px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(124, 58, 237, 0.55),
    transparent 62%
  );
  animation-duration: 12s;
}
.futurist-services .orb-3 {
  width: 240px;
  height: 240px;
  left: 35%;
  bottom: -110px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(163, 255, 18, 0.35),
    transparent 65%
  );
  animation-duration: 11s;
}

@keyframes orb-float {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -10px, 0) scale(1.05);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* ====== Cards (entrée seulement) ====== */
.futurist-card {
  position: relative;
  z-index: 1;
  grid-column: span 6;
  padding: 20px 18px;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  overflow: hidden;

  opacity: 0;
  transform: translateY(18px) scale(0.985);
  animation: card-in 760ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.futurist-card:nth-of-type(2) {
  animation-delay: 140ms;
}

/* petit “sheen” d’entrée sur la carte (pas hover) */
.futurist-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(34, 211, 238, 0) 35%,
    rgba(34, 211, 238, 0.32) 50%,
    rgba(124, 58, 237, 0) 65%,
    transparent 100%
  );
  transform: translateX(-70%);
  opacity: 0;
  pointer-events: none;
  animation: sheen-in 900ms ease forwards;
  animation-delay: 260ms;
}

.futurist-card:nth-of-type(2)::before {
  animation-delay: 380ms;
}

@keyframes card-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sheen-in {
  0% {
    opacity: 0;
    transform: translateX(-70%);
  }
  25% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: translateX(70%);
  }
}

/* ====== Titres (entrée) ====== */
.futurist-title {
  margin: 0 0 14px;
  font-size: clamp(1.05rem, 1.2vw + 0.9rem, 1.4rem);
  letter-spacing: 0.4px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 10px;

  opacity: 0;
  transform: translateY(8px);
  animation: fade-up 650ms ease forwards;
  animation-delay: 220ms;
}

.futurist-card:nth-of-type(2) .futurist-title {
  animation-delay: 340ms;
}

/* ====== Liste (entrée en cascade) ====== */
.futurist-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.futurist-item {
  position: relative;
  padding: 10px 12px 10px 38px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);

  opacity: 0;
  transform: translateX(-10px);
  animation: item-in 620ms ease forwards;
}

/* Stagger automatique par index */
.futurist-card:nth-of-type(1) .futurist-item:nth-child(1) {
  animation-delay: 260ms;
}
.futurist-card:nth-of-type(1) .futurist-item:nth-child(2) {
  animation-delay: 320ms;
}
.futurist-card:nth-of-type(1) .futurist-item:nth-child(3) {
  animation-delay: 380ms;
}
.futurist-card:nth-of-type(1) .futurist-item:nth-child(4) {
  animation-delay: 440ms;
}
.futurist-card:nth-of-type(1) .futurist-item:nth-child(5) {
  animation-delay: 500ms;
}
.futurist-card:nth-of-type(1) .futurist-item:nth-child(6) {
  animation-delay: 560ms;
}

.futurist-card:nth-of-type(2) .futurist-item:nth-child(1) {
  animation-delay: 360ms;
}
.futurist-card:nth-of-type(2) .futurist-item:nth-child(2) {
  animation-delay: 400ms;
}
.futurist-card:nth-of-type(2) .futurist-item:nth-child(3) {
  animation-delay: 440ms;
}
.futurist-card:nth-of-type(2) .futurist-item:nth-child(4) {
  animation-delay: 480ms;
}
.futurist-card:nth-of-type(2) .futurist-item:nth-child(5) {
  animation-delay: 520ms;
}
.futurist-card:nth-of-type(2) .futurist-item:nth-child(6) {
  animation-delay: 560ms;
}
.futurist-card:nth-of-type(2) .futurist-item:nth-child(7) {
  animation-delay: 600ms;
}
.futurist-card:nth-of-type(2) .futurist-item:nth-child(8) {
  animation-delay: 640ms;
}
.futurist-card:nth-of-type(2) .futurist-item:nth-child(9) {
  animation-delay: 680ms;
}
.futurist-card:nth-of-type(2) .futurist-item:nth-child(10) {
  animation-delay: 720ms;
}

@keyframes item-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.futurist-item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 4px;
  background: linear-gradient(135deg, var(--neonB), var(--neonA));
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.35);
}

/* ====== CTA (entrée seulement) ====== */
.futurist-cta {
  z-index: 1;
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding-top: 6px;

  opacity: 0;
  transform: translateY(10px);
  animation: fade-up 700ms ease forwards;
  animation-delay: 520ms;
}

.futurist-cta-wrap {
  margin: 0;
}

.futurist-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.35),
    rgba(34, 211, 238, 0.22)
  );
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.futurist-button__text {
  position: relative;
  z-index: 2;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* glow animé en continu (pas hover) */
.futurist-button__glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(34, 211, 238, 0.45),
      transparent 55%
    ),
    radial-gradient(
      circle at 70% 60%,
      rgba(124, 58, 237, 0.45),
      transparent 60%
    );
  filter: blur(14px);
  opacity: 0.75;
  z-index: 1;
  animation: glow-pulse 3.6s ease-in-out infinite;
}

@keyframes glow-pulse {
  0% {
    transform: translate3d(-6px, 4px, 0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate3d(8px, -6px, 0) scale(1.05);
    opacity: 0.92;
  }
  100% {
    transform: translate3d(-6px, 4px, 0) scale(1);
    opacity: 0.7;
  }
}

/* ====== Anim utilitaires ====== */
@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== Responsive ====== */
@media (max-width: 900px) {
  .futurist-services {
    padding: 20px;
  }
  .futurist-card {
    grid-column: 1 / -1;
  }
}

/* ====== Accessibilité ====== */
@media (prefers-reduced-motion: reduce) {
  .futurist-services::before,
  .futurist-services::after,
  .futurist-services .bg-orb,
  .futurist-card,
  .futurist-card::before,
  .futurist-title,
  .futurist-item,
  .futurist-cta,
  .futurist-button__glow {
    animation: none !important;
  }
  .futurist-card,
  .futurist-title,
  .futurist-item,
  .futurist-cta {
    opacity: 1 !important;
    transform: none !important;
  }
}

/*=================
References
===================*/
#references {
  margin: var(--top) 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

#references p {
  text-align: center;
}

.slider {
  width: 100%;
  /* margin-top: var(--top); */
  align-self: center;

  overflow: hidden;
  /* white-space: nowrap; */

  --fade: 160px;

  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    rgba(0, 0, 0, 0.15) calc(var(--fade) * 0.25),
    rgba(0, 0, 0, 0.6) calc(var(--fade) * 0.65),
    #000 var(--fade),
    #000 calc(100% - var(--fade)),
    rgba(0, 0, 0, 0.6) calc(100% - (var(--fade) * 0.65)),
    rgba(0, 0, 0, 0.15) calc(100% - (var(--fade) * 0.25)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    rgba(0, 0, 0, 0.15) calc(var(--fade) * 0.25),
    rgba(0, 0, 0, 0.6) calc(var(--fade) * 0.65),
    #000 var(--fade),
    #000 calc(100% - var(--fade)),
    rgba(0, 0, 0, 0.6) calc(100% - (var(--fade) * 0.65)),
    rgba(0, 0, 0, 0.15) calc(100% - (var(--fade) * 0.25)),
    transparent 100%
  );
}

.slide-track {
  display: flex;
  width: calc(
    (((var(--content-width) / 2)) * 2) * 2
  ); /* 6 images (duplicate for seamless loop) */
  animation: scroll 20s linear infinite;
}

.slide {
  padding: 0 40px;
  width: calc((var(--content-width) / 2));
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slide img {
  width: calc((var(--content-width) / 2) - 40px);
  height: auto;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/*================
Contact 
================*/
#contact {
  margin: var(--top) 0;
}

#contactForm {
  width: 100%;
  padding-top: var(--sub-top);
  display: flex;
  align-items: stretch; /* important : même hauteur pour les enfants */
  gap: 32px;
}

.contact-illustration {
  border-radius: var(--radius);
  width: 50%;
  /* important : laisser auto pour que stretch marche */
  height: auto; /* prend la hauteur étirée */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.contact-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-title {
  text-align: center;
}

#contact p {
  text-align: center;
}

/* --- Carte du formulaire --- */
#contactForm .contact-form {
  max-width: 50%;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 32px);

  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Société + Message en pleine largeur */
#contactForm .contact-form > div:nth-child(3),
#contactForm .contact-form > div:nth-child(4),
#contactForm .contact-form > div:nth-child(5) {
  grid-column: 1 / -1;
}

/* --- Labels --- */
#contactForm label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
  color: rgba(0, 0, 0, 0.8);
}

/* --- Champs --- */
#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;

  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.9);

  font: inherit;
  color: rgba(0, 0, 0, 0.9);

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.05s ease,
    background 0.15s ease;
  outline: none;
}

#contactForm textarea {
  resize: vertical;
  min-height: 150px;
}

/* Placeholder */
#contactForm input::placeholder,
#contactForm textarea::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

/* Focus moderne */
#contactForm input:focus,
#contactForm textarea:focus {
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
  background: #fff;
}

/* Etats validation */
#contactForm input:invalid:focus,
#contactForm textarea:invalid:focus {
  border-color: rgba(239, 68, 68, 0.9);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}

/* --- Bouton --- */
#contactForm button[type="submit"] {
  grid-column: 1 / -1;

  padding: 12px 16px;
  border: 0;
  border-radius: 12px;

  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;

  background: linear-gradient(135deg, #2563eb, var(--primary-color));
  color: #fff;

  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    filter 0.12s ease;
}

#contactForm button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.28);
  filter: brightness(1.03);
}

#contactForm button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

/* --- Responsive --- */
@media (max-width: 640px) {
  #contactForm .contact-form {
    grid-template-columns: 1fr;
  }

  #contactForm .contact-form > div:nth-child(3),
  #contactForm .contact-form > div:nth-child(5) {
    grid-column: auto;
  }
}

/* --- Dark mode (automatique si l’OS est en dark) --- */
@media (prefers-color-scheme: dark) {
  #contactForm .contact-form {
    background: rgba(17, 24, 39, 0.72);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  }

  #contactForm label {
    color: rgba(255, 255, 255, 0.85);
  }

  #contactForm input,
  #contactForm textarea {
    background: rgba(17, 24, 39, 0.55);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
  }

  #contactForm input::placeholder,
  #contactForm textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
  }

  #contactForm input:focus,
  #contactForm textarea:focus {
    border-color: rgba(96, 165, 250, 0.95);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
    background: rgba(17, 24, 39, 0.75);
  }
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/*===================
Footer CSS
===================*/

.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  padding: 0;

  color: color-mix(in srgb, var(--white) 88%, transparent);

  /* Fond : dégradés avec tes couleurs (primary/secondary/tertiary/quaternary) */
  background:
    radial-gradient(
      1200px 420px at 10% -10%,
      color-mix(in srgb, var(--secondary-color) 45%, transparent),
      transparent 55%
    ),
    radial-gradient(
      900px 380px at 95% 0%,
      color-mix(in srgb, var(--tertiary-color) 38%, transparent),
      transparent 52%
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--black) 20%, var(--primary-color) 80%) 0%,
      var(--black) 100%
    );

  border-top: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 44px) 16px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  color: color-mix(in srgb, var(--white) 96%, transparent);
}

.footer-logo {
  margin: 0 0 10px;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
}

.footer-desc {
  margin: 0 0 14px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--white) 72%, transparent);
  max-width: 42ch;
}

.site-footer address {
  font-style: normal;
  line-height: 1.7;
}

.site-footer a {
  color: color-mix(in srgb, var(--white) 86%, transparent);
  text-decoration: none;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    text-decoration-color 0.15s ease;
}

.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(
    in srgb,
    var(--secondary-color-light) 70%,
    transparent
  );
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
}

.footer-contact {
  grid-column: 4 / span 1;
  text-align: right;
}

.fa-arrow-up {
  color: white;
}

.footer-links a,
.footer-legal a {
  opacity: 0.9;
}

/* Chips réseaux sociaux */
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 10px;
}

.footer-social li {
  list-style: none;
  width: fit-content;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;

  border: 1px solid color-mix(in srgb, var(--secondary-color) 22%, transparent);
  background: color-mix(in srgb, var(--primary-color) 55%, transparent);
}

.footer-social a:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: color-mix(
    in srgb,
    var(--secondary-color-light) 45%,
    transparent
  );
  background: color-mix(in srgb, var(--primary-color) 70%, transparent);
}

.footer-nav {
  flex-direction: column;
  gap: 10px;
}

/* Bouton retour en haut */
#backToTop {
  display: none;
}

.back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 14px;
  padding: 10px 12px;

  border-radius: calc(var(--radius) - 4px);
  border: 1px solid color-mix(in srgb, var(--secondary-color) 22%, transparent);
  background: color-mix(in srgb, var(--primary-color) 60%, transparent);
  width: fit-content;
}

.back-top:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: color-mix(
    in srgb,
    var(--secondary-color-light) 50%,
    transparent
  );
  background: color-mix(in srgb, var(--primary-color) 78%, transparent);
}

/* Bas de footer */
.footer-bottom {
  border-top: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
  padding: 14px 16px;
}

.footer-bottom p {
  max-width: var(--content-width);
  text-align: center;
  font-size: 10px;
  margin: 0 auto;
  color: color-mix(in srgb, var(--white) 65%, transparent);
}

/* Responsive */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  font-size: 16px;
  border: none;
  outline: none;
  color: black;
  cursor: pointer;
}

.back-to-top a {
  text-decoration: none;
  color: inherit;
}
