/* =========================================================
   BASE & RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  -webkit-user-select: none;
  /* Safari */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer / Edge */
  user-select: none;
  /* Standard */
}

html,
body {
  height: 100%;
  flex-direction: column;
  background-color: #ffffff;
  color: #333333;
  line-height: 1.6;
}

/* =========================================================
   HEADER GLOBAL
========================================================= */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  border-bottom: 3px solid #ff9f01;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

header .logo img {
  height: 50px;
  width: auto;
  display: block;
}

/* Menu principal */
.menu-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 2rem;
}

.menu-lang nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-lang nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.menu-lang nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #ff9f01;
  transition: width 0.3s ease;
}

.menu-lang nav ul li a:hover,
.menu-lang nav ul li a.active {
  color: #ff9f01;
}

.menu-lang nav ul li a:hover::after,
.menu-lang nav ul li a.active::after {
  width: 100%;
}

/* Sélecteur de langue */
.language-select select {
  border: 1px solid #ff9f01;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  background-color: #ffffff;
  color: #333333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-select select:hover {
  background-color: #ff9f01;
  color: #ffffff;
}

/* Responsive header */
@media (max-width: 992px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
  }

  .menu-lang {
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
  }
}

/* =========================================================
   GLOBAL STRUCTURE
========================================================= */

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 80px;
}

section {
  width: 100%;
  max-width: 1000px;
  padding: 4rem 2rem;
  margin: 3rem auto;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(51, 51, 51, 0.08);
  text-align: center;
  border: 1px solid rgba(51, 51, 51, 0.05);
}

section h1,
section h2 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  text-align: center;
}

/* Barre orange sous tous les titres principaux */
section h1::after,
section h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #ff9f01;
  border-radius: 2px;
}

/* Suppression volontaire sur sous-sections internes (h3) */
section h3::after {
  content: none !important;
}

/* Cas particuliers : titres dans timeline, cartes, formulaires */
#method .step-content h3,
#expertise .expertise-item h3,
#solutions .solution h3,
#about .member h3,
#contact-form h3 {
  position: static;
  margin-bottom: 1rem;
}

section p {
  font-size: 1.1rem;
  color: #444;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  line-height: 1.7;
}

section:hover {
  box-shadow: 0 6px 24px rgba(51, 51, 51, 0.12);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* =========================================================
   PAGE : ACCUEIL
========================================================= */

#hero {
  text-align: center;
  background-color: white;
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: 3rem auto;
}

#hero h1 {
  font-size: 3rem;
  color: #222;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  text-align: center;
}

#hero p {
  font-size: 1.1rem;
  color: #444;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 60px;
}

#hero p strong {
  font-size: 1.3rem;
  color: #444;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  line-height: 1.7;
  font-weight: 1200;
}

.cta {
  display: inline-block;
  background-color: #ff9f01;
  color: #ffffff;
  padding: 0.8rem 1.6rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta:hover {
  background-color: #e58900;
}

/* Mission */
#mission {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 3rem auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.mission-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.mission-points div {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  width: 280px;
  transition: transform 0.3s ease;
}

.mission-points div:hover {
  transform: translateY(-5px);
}

/* Clients */
#clients {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 4rem 2rem;
  max-width: 1000px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.client-carousel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0;
}

.client-carousel img {
  height: 60px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.client-carousel img:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* === HERO SCROLL INDICATOR – version compacte & fluide === */
.scroll-wrap {
  margin-top: -2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.scroll-caption {
  margin-top: 1rem;
  font-size: 1rem;
  color: #333;
  font-weight: 700;
  opacity: 0.75;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.scroll-wrap:hover .scroll-caption {
  color: #ff9f01;
  opacity: 1;
}


/* =========================================================
   PAGE : SOLUTIONS (améliorée)
========================================================= */


#solutions {
  background-color: #fff;
  /* fluidité, pas de rupture visuelle */
}

/* Intro intégrée, sans bloc coloré */
#solutions .solutions-intro {
  padding: 0;
  /* la section parent gère déjà des paddings globaux */
  margin-bottom: 1rem;
  text-align: center;
  background: transparent;
  border: 0;
}

#solutions .solutions-intro h1 {
  margin-bottom: 1.25rem;
  font-size: 2rem;
  color: #222;
}

#solutions .solutions-intro p {
  max-width: 820px;
  margin: 0 auto 2.25rem auto;
  color: #444;
  font-size: 1.06rem;
  line-height: 1.7;
}

/* Grille */
#solutions .solution-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

/* Cartes discrètes et pro */
#solutions .solution {
  background: #fff;
  border: 1px solid rgba(51, 51, 51, 0.06);
  border-radius: 10px;
  padding: 2rem 1.6rem;
  box-shadow: 0 1px 4px rgba(51, 51, 51, 0.04);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  min-height: 220px;
}

#solutions .solution:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(255, 159, 1, 0.18);
  border-color: rgba(255, 159, 1, 0.24);
}

#solutions .solution-icon {
  width: 192px;
  height: 192px;
  border-radius: 16px;
  margin: 0 auto 1.5rem auto;
  background: linear-gradient(180deg, #fafafa 0%, #f2f2f2 100%);
  border: 1px solid #eee;
  display: grid;
  place-items: center;
  overflow: hidden;
}

#solutions .solution-icon>img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* pas de distorsion */
  display: block;
}

/* Typo */
#solutions .solution h3 {
  color: #ff9f01;
  margin-bottom: 0.65rem;
  font-size: 1.38rem;
  line-height: 1.25;
}

#solutions .solution p {
  color: #555;
  font-size: 1.03rem;
  line-height: 1.6;
  margin: 0;
}

/* CTA de fin (conserve ta classe existante) */
#solutions .solutions-cta {
  padding-top: 2.5rem;
  text-align: center;
}

#solutions .solutions-cta p {
  font-size: 1.12rem;
  color: #333;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
  #solutions .solutions-intro p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  #solutions .solution-list {
    gap: 1.25rem;
  }

  #solutions .solution {
    padding: 1.6rem 1.2rem;
    min-height: unset;
  }

  #solutions .solution h3 {
    font-size: 1.28rem;
  }
}

/* Accessibilité : réduit les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  #solutions .solution {
    transition: none;
  }

  #solutions .solution:hover {
    transform: none;
  }
}

/* =========================================================
   PAGE : CONSULTING (améliorée)
========================================================= */

#expertise {
  background-color: #fff;
}

/* INTRO */
#expertise .expertise-intro {
  text-align: center;
  margin-bottom: 2.5rem;
  background: transparent;
}

#expertise .expertise-intro h1 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 1.25rem;
}

#expertise .expertise-intro p {
  max-width: 820px;
  margin: 0 auto;
  color: #444;
  font-size: 1.06rem;
  line-height: 1.7;
}

/* GRID DES DOMAINES */
#expertise .expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  justify-items: center;
  /* centre les éléments dans chaque colonne */
}

/* CARTES */
#expertise .expertise-item {
  background: #fff;
  border: 1px solid rgba(51, 51, 51, 0.06);
  border-radius: 12px;
  padding: 2.4rem 1.6rem;
  box-shadow: 0 1px 4px rgba(51, 51, 51, 0.04);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  min-height: 360px;
  width: 100%;
  max-width: 420px;
  /* limite la largeur des cartes pour un centrage harmonieux */
}

#expertise .expertise-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 159, 1, 0.18);
  border-color: rgba(255, 159, 1, 0.25);
}

/* CENTRAGE AUTO SI NOMBRE IMPAIR */
#expertise .expertise-grid>.expertise-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
}

/* ICONES / IMAGES */
#expertise .expertise-icon {
  width: 192px;
  height: 192px;
  border-radius: 16px;
  margin: 0 auto 1.5rem auto;
  background: linear-gradient(180deg, #fafafa 0%, #f2f2f2 100%);
  border: 1px solid #eee;
  display: grid;
  place-items: center;
  overflow: hidden;
}

#expertise .expertise-icon>img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0.95;
  transition: opacity 200ms ease;
}

#expertise .expertise-item:hover .expertise-icon>img {
  opacity: 1;
}

/* TYPOGRAPHIE */
#expertise .expertise-item h3 {
  color: #ff9f01;
  margin-bottom: 0.75rem;
  font-size: 1.45rem;
  line-height: 1.3;
}

#expertise .expertise-item p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}

/* VALUE STATEMENT */
#expertise .expertise-value {
  text-align: center;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(51, 51, 51, 0.05);
}

#expertise .expertise-value h2 {
  font-size: 1.7rem;
  color: #222;
  margin-bottom: 1rem;
}

#expertise .expertise-value p {
  max-width: 850px;
  margin: 0 auto;
  font-size: 1.06rem;
  color: #444;
  line-height: 1.7;
}

/* CTA */
#expertise .expertise-cta {
  padding-top: 3rem;
  text-align: center;
}

#expertise .expertise-cta p {
  font-size: 1.15rem;
  color: #333;
  margin-bottom: 1rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  #expertise .expertise-intro p {
    font-size: 1rem;
  }

  #expertise .expertise-grid {
    gap: 1.5rem;
  }

  #expertise .expertise-item {
    padding: 1.8rem 1.2rem;
    min-height: unset;
  }

  #expertise .expertise-icon {
    width: 160px;
    height: 160px;
    margin-bottom: 1.2rem;
  }

  #expertise .expertise-item h3 {
    font-size: 1.3rem;
  }
}

/* ACCESSIBILITÉ — réduit les animations */
@media (prefers-reduced-motion: reduce) {
  #expertise .expertise-item {
    transition: none;
  }

  #expertise .expertise-item:hover {
    transform: none;
  }

  #expertise .expertise-icon>img {
    transition: none;
  }
}

/* ----- Toggle liste complète (sobre & cohérent avec la DA) ----- */
.tech-toggle {
  text-align: center;
  margin-top: 2rem;
}

.tech-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #555;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
  user-select: none;
}

.tech-toggle-label:hover {
  color: #ff9f01;
  transform: translateY(-1px);
}

/* Flèche vers le bas (fermé) / vers le haut (ouvert) */
.tech-toggle-label .arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  /* vers le bas */
  transition: transform 0.3s ease;
}

/* Ouvert = flèche vers le haut */
.tech-toggle-label.active .arrow {
  transform: rotate(135deg);
}

/* Bloc liste caché par défaut (SEO-safe) */
.tech-list-collapsed {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  /* rapide à la fermeture */
}

.tech-list-expanded {
  max-height: 1200px;
  /* ajuster selon contenu */
  transition: max-height 0.8s ease;
  /* fluide à l’ouverture */
}

/* Liste complète des technologies */
#full-tech-list ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  text-align: left;
  max-width: 800px;
}

#full-tech-list li {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.6;
  position: relative;
  padding-left: 1.2rem;
}

#full-tech-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #aaa;
  font-weight: bold;
}

/* =========================================================
   SECTION : TECH CASCADE  */

#tech-cascade {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  background: #fff;
  text-align: center;
}

#tech-cascade h2 {
  font-size: 1.6rem;
  color: #222;
  margin-bottom: 2.5rem;
}

/* Fenêtre d’animation centrée (largeur alignée sur ton layout) */
#tech-cascade .tech-sky {
  position: relative;
  max-width: 1000px;
  height: 500px;
  /* fenêtre visible (le JS lit cette valeur) */
  margin: 0 auto;
  overflow: hidden;

  /* Fondu en haut/bas pour un rendu premium */
  mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);

  /* Variables CSS propagées aux enfants (le JS met à jour --sky-h) */
  --sky-h: 500px;
  /* sera écrasé par le JS à la valeur réelle */
  --dot-h: 96px;
  --overshoot: 40px;
  /* marge au-dessus/au-dessous pour sortie/entrée douce */
}

/* Particule (un logo) */
.tech-dot {
  position: absolute;
  width: var(--dot-h);
  height: var(--dot-h);
  left: 0;
  /* la position X est définie en inline-style (JS) */

  /* Animation CSS : toutes vers le bas, durées/délais variables par colonne */
  animation-name: techFall;
  animation-duration: var(--dur, 62s);
  animation-timing-function: linear;
  animation-delay: var(--delay, 0s);
  animation-iteration-count: infinite;
  will-change: transform;
}

/* Image normalisée (pas de distorsion) */
.tech-dot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 8px;
  box-sizing: border-box;
  display: block;
  opacity: 0.85;
  filter: grayscale(25%) brightness(0.95);
  transition: opacity 200ms ease, transform 200ms ease, filter 200ms ease, background 200ms ease;
  pointer-events: none;
}

.tech-dot:hover img {
  opacity: 1;
  transform: scale(1.07);
  filter: none;
  background: #fff;
}

/* Trajectoire basée sur la hauteur réelle (pas de %) */
@keyframes techFall {
  0% {
    transform: translateY(calc(-1 * (var(--dot-h) + var(--overshoot))));
  }

  100% {
    transform: translateY(calc(var(--sky-h) + var(--overshoot)));
  }
}

/* Mobile */
@media (max-width: 700px) {
  #tech-cascade {
    padding: 3rem 0;
  }

  #tech-cascade .tech-sky {
    height: 380px;
    max-width: 90%;
    --sky-h: 380px;
    /* valeur par défaut avant mise à jour JS */
    --dot-h: 72px;
    --overshoot: 30px;
  }

  .tech-dot img {
    padding: 6px;
  }
}

/* =========================================================
   PAGE : MÉTHODE (Version stable et responsive)
========================================================= */

#method {
  text-align: center;
}

/* ---------- INTRO ---------- */
#method .intro {
  text-align: center;
  margin-bottom: 3rem;
}

#method .intro h1 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 2rem;
}

#method .intro h1::after {
  content: none;
}

#method .intro h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: #555;
  margin-top: 0;
  margin-bottom: 2rem;
}

#method .intro h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #ff9f01;
  margin: 0.6rem auto 0 auto;
  border-radius: 2px;
}

#method .intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- BLOCS DE CONTENU ---------- */

/* Les titres de section restent centrés */
#method section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Paragraphes principaux centrés sous le titre */
#method section>p {
  text-align: center;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

/* ---------- BLOCS ILLUSTRÉS (Texte + Image) ---------- */

#method .illustrated-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  margin: 3rem auto;
  flex-wrap: nowrap;
  max-width: 1000px;
  text-align: left;
  /* le contenu interne n’est plus centré */
}

/* Colonnes équilibrées */
#method .illustrated-block .illustration,
#method .illustrated-block .text-block,
#method .illustrated-block .approach-card {
  flex: 1;
  min-width: 320px;
}

/* Ordre d’affichage gauche/droite */
#method .illustrated-block.left .illustration {
  order: 1;
}

#method .illustrated-block.left .text-block,
#method .illustrated-block.left .approach-card {
  order: 2;
}

#method .illustrated-block.right .illustration {
  order: 2;
}

#method .illustrated-block.right .text-block,
#method .illustrated-block.right .approach-card {
  order: 1;
}

/* Image centrée dans sa colonne */
#method .illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

#method .illustration img {
  width: 100%;
  max-width: 360px;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

#method .small-illustration .illustration img {
  max-width: 300px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  #method .illustrated-block {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  #method .illustrated-block .illustration {
    order: 1 !important;
  }

  #method .illustrated-block .text-block,
  #method .illustrated-block .approach-card {
    order: 2 !important;
  }

  #method .illustration img {
    max-width: 100%;
  }

  #method section>p {
    text-align: center;
  }
}

/* =========================================================
   TIMELINE STRUCTURE
========================================================= */

.timeline {
  position: relative;
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 0 3rem 0;
}

/* Ligne verticale centrale */
.timeline::before {
  content: "";
  position: absolute;
  width: 4px;
  background: #ff9f01 90%;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
}

/* Étapes */
.step {
  position: relative;
  width: 50%;
  padding: 2rem 3rem;
}

.step.left {
  left: 0;
  text-align: center;
}

.step.right {
  left: 50%;
  text-align: center;
}

/* Conteneur du contenu */
.step .content {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.step:nth-child(even) .content {
  background-color: #fafafa;
}

.step .content:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(255, 159, 1, 0.25);
}

/* --- Numéro dans le conteneur (aligné avec la ligne centrale) --- */
.step .number {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background-color: #ff9f01;
  color: #fff;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 3;
}

.step.left .number {
  right: -18px;
}

.step.right .number {
  left: -18px;
}

.step .content:hover .number {
  background-color: #ff9f01;
  transform: translateY(-50%) scale(1.1);
}

/* --- Connecteur rond sur la ligne (effet pulse) --- */
.step .connector {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -10px;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border: 3px solid #ff9f01;
  border-radius: 50%;
  z-index: 2;
}

.step.right .connector {
  left: -10px;
  right: auto;
}

/* --- Ligne horizontale entre le connecteur et le numéro --- */
.step::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  background-color: #ff9f01;
  opacity: 0.4;
  z-index: 1;
}

.step.left::after {
  right: 0px;
  width: 30px;
}

.step.right::after {
  left: 0px;
  width: 30px;
}

/* --- Pulse animation sur le petit rond --- */
.step .connector::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 159, 1, 0.4);
  top: -5px;
  left: -5px;
  animation: pulseConnector 2.5s infinite ease-in-out;
}

@keyframes pulseConnector {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.4);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* --- Typographie --- */
.step h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.step p {
  color: #555;
  line-height: 1.6;
  font-size: 1rem;
}

/* Réduction de l’espace vertical entre les étapes */
.step+.step {
  margin-top: -0.5rem;
}

/* =========================================================
   CTA FINAL
========================================================= */

.method-cta {
  text-align: center;
  margin-top: 5rem;
}

.method-cta h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 1rem;
}

.method-cta p {
  color: #555;
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.method-cta .cta {
  display: inline-block;
  background-color: #ff9f01;
  color: #fff;
  padding: 1rem 2.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.method-cta .cta:hover {
  background-color: #e58900;
  transform: scale(1.05);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .timeline::before {
    left: 8px;
  }

  .step {
    width: 100%;
    padding: 1.5rem 1.5rem;
  }

  .step.left,
  .step.right {
    left: 0;
    text-align: left;
  }

  .step::after {
    display: none;
  }

  .step .connector {
    left: -18px;
  }

  .step .content {
    text-align: left;
  }

  .step.right .connector {
    visibility: hidden;
  }

  .step.left .connector {
    visibility: hidden;
  }

  .step.left .number {
    right: 310px;
  }

  .step.right .number {
    left: -30px;
  }

  .method-cta h3 {
    font-size: 1.5rem;
  }
}

/* =========================================================
   PAGE : À PROPOS
========================================================= */

#about {
  text-align: center;
}

#about .values ul {
  list-style: none;
  padding: 0;
  margin: 2rem auto;
  max-width: 700px;
  text-align: center;
}

#about .values li {
  margin-bottom: 0.8rem;
  padding-left: 0;
}

.team-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.member {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 2rem 1.5rem;
  flex: 0 1 400px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 2rem;
}

.member:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(255, 159, 1, 0.25);
}

.member img {
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid #ff9f01;
  width: 150px;
  height: 150px;
  object-fit: cover;
}

.member .member-title {
  display: block;
  font-style: italic;
  margin-bottom: 1rem;
  color: #ff9f01;
  font-weight: 500;
}

.member .linkedin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  padding: 0;
  margin-top: 0.4rem;
  transition: opacity 0.25s ease;
}

.member .linkedin-link img {
  width: 22px;
  height: 22px;
  border: none;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.member .linkedin-link:hover img {
  opacity: 1;
}

/* SECTION : NOS VALEURS (nouvelle mise en page) */

#about .values {
  background-color: #f9f9f9;
  padding: 4rem 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-top: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* ✅ 2 colonnes fixes sur desktop */
  gap: 2rem;
  margin-top: 2rem;
}

.value-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 14px rgba(255, 159, 1, 0.25);
}

.value-icon {
  display: inline-block;
  font-size: 2rem;
  /* même taille qu’avant */
  color: #ff9f01;
  margin-bottom: 1rem;
  line-height: 1.2;
  /* évite la coupe sur le bas */
  padding-bottom: 0.1em;
  /* espace minuscule sous l’emoji */
  vertical-align: middle;
  /* centre visuellement dans son bloc */
}

.value-card h3 {
  color: #222;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

.value-card p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ✅ Responsive : passe à 1 colonne sur mobile */
@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PAGE : CONTACT
========================================================= */

#contact {
  background-color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 3rem auto;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#contact-form {
  width: 100%;
  max-width: 600px;
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 2rem 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: left;
}

#contact-form label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

#contact-form input,
#contact-form textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 1.2rem;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #ff9f01;
  outline: none;
  box-shadow: 0 0 5px rgba(255, 159, 1, 0.4);
}

#contact-form .cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.9rem;
  border-radius: 30px;
  background-color: #ff9f01;
  color: #fff;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#contact-form .cta:hover {
  background-color: #ff9f01;
  transform: translateY(-2px);
}

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

footer {
  position: relative;
  flex-shrink: 0;
  background-color: #333333;
  color: #ffffff;
  text-align: center;
  padding: 1.5rem;
  z-index: 10;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-copy {
  margin: 0;
  flex: 1;
  text-align: left;
  font-weight: 400;
  color: #ccc;
}

/* --- Icônes sociales --- */
.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex: 1;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social-icon img {
  width: 18px;
  height: 18px;
  filter: invert(0);
  transition: transform 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 159, 1, 0.5);
}

/* --- Signature --- */
.made-by {
  flex: 1;
  text-align: right;
  color: #aaa;
  font-size: 0.95rem;
  margin: 0;
}

.made-by .youbs-link {
  color: #ff9f01;
  text-decoration: none;
  font-weight: 600;
}

.made-by .youbs-link:hover {
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
  }

  .footer-copy,
  .made-by {
    text-align: center;
  }
}

/* =========================================================
   ANIMATIONS
========================================================= */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {
  main section {
    padding: 2rem 1rem;
  }

  main section h1,
  main section h2 {
    font-size: 1.6rem;
  }

  main section p {
    font-size: 1rem;
  }

  .mission-points {
    flex-direction: column;
    gap: 1rem;
  }

  .team-grid {
    flex-direction: column;
  }

  #contact-form {
    padding: 1.5rem;
  }
}

/* =========================
   PAGE D’ACCUEIL — EXPERTISES
========================= */

#expertises {
  background-color: #fafafa;
  padding: 5rem 2rem;
  text-align: center;
}

#expertises h2 {
  margin-bottom: 3rem;
}

.expertise-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto 6rem auto;
  text-align: left;
}

.expertise-block.reverse {
  flex-direction: row-reverse;
}

.expertise-img img {
  width: 360px;
  height: 360px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 3px solid #ff9f01;
}

.expertise-text {
  flex: 1;
}

.expertise-text h3 {
  color: #222;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.expertise-text p {
  color: #444;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

#expertises .cta {
  margin-top: 1rem;
}

/* === Responsive === */
@media (max-width: 900px) {
  .expertise-block {
    flex-direction: column !important;
    text-align: center;
  }

  .expertise-img img {
    width: 100%;
    max-width: 400px;
    height: auto;
  }

  .expertise-text {
    text-align: center;
  }
}

/* =========================
   PAGE D’ACCUEIL — PRÉVIEWS
========================= */

#about-preview,
#contact-preview {
  background-color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 5rem auto;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#contact-preview {
  background-color: #f9f9f9;
}

#about-preview h2,
#contact-preview h2 {
  margin-bottom: 2rem;
}

#about-preview p,
#contact-preview p {
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #444;
}

.team-preview {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 2rem;
}

.team-preview .member img {
  border-radius: 50%;
  border: 3px solid #ff9f01;
}

@media (max-width: 900px) {
  .team-preview {
    flex-direction: column;
    align-items: center;
  }
}

/* ======== BACKGROUND THREE.JS ======== */

canvas.three-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
  top: 0;
  left: 0;
}

#background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}

/* =========================
   PAGE Terms 
========================= */
#terms {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  color: var(--text-color, #1b1b1b);
  text-align: center;
  /* Centrage global des titres et CTA */
}

/* Intro */
.terms-intro {
  max-width: 720px;
  margin: 0 auto;
}

.terms-intro p {
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* Titres */
#terms h1 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  text-align: center;
}

#terms h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

/* Barre décorative sous les H2 */
#terms h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.2;
  margin: 0.5rem auto 0;
}

/* Sections générales */
.terms-section {
  margin-top: 2.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Blocs d’énumération (tarifs, conditions, etc.) */
.terms-table {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  max-width: 720px;
}

.terms-table p {
  margin: 0.4rem 0;
  line-height: 1.5;
}

/* Notes et petits paragraphes */
.terms-note {
  opacity: 0.85;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
  max-width: 720px;
  margin: 0.75rem auto 0;
}

/* CTA */
#terms .cta-container {
  text-align: center;
  margin-top: 3rem;
}

#terms .cta-container p {
  margin-bottom: 1rem;
}

/* =========================================================
   STYLE DES LIENS (global + footer + contextuels)
   ========================================================= */
#terms a,
.link-note a,
.footer-links a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}

#terms a:hover,
.link-note a:hover,
.footer-links a:hover {
  opacity: 0.7;
}

/* Bloc de liens dans le footer */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.5rem 0 0.75rem;
  font-size: 0.95rem;
  list-style: none;
  /* supprime les puces */
}

/* Liens contextuels sur autres pages */
.link-note {
  margin-top: 1rem;
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.5;
  text-align: center;
}

.link-note a {
  font-weight: 500;
}

/* Responsive : tailles et espacements ajustés */
@media (max-width: 768px) {
  #terms {
    padding: 1.5rem 1rem 3rem;
  }

  #terms h1 {
    font-size: 1.7rem;
  }

  #terms h2 {
    font-size: 1.1rem;
  }

  .terms-table {
    width: 100%;
    max-width: 100%;
  }
}


/* =======================================
   FIX : Responsive menu + sections full width
======================================= */
@media (max-width: 768px) {

  /* Décale le contenu sous le menu fixe plus haut sur mobile */
  main {
    margin-top: 160px;
    /* ajuste selon la hauteur réelle du header mobile */
  }

  /* Supprime les marges latérales et bords arrondis sur mobile */
  section,
  #hero,
  #mission,
  #clients,
  #solutions,
  #expertise,
  #about,
  #contact,
  #terms,
  #tech-cascade,
  #method {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }

  /* Garde un peu d’air visuel à l’intérieur */
  section,
  #hero,
  #mission,
  #clients,
  #solutions,
  #expertise,
  #about,
  #contact,
  #terms,
  #tech-cascade,
  #method {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Ajuste la fenêtre d’animation interne de la cascade */
  #tech-cascade .tech-sky {
    max-width: 100%;
    width: 100%;
  }

  /* Ajuste les blocs de la page méthode sur mobile */
  #method .illustrated-block {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0 1rem;
  }
}
