html, body {
   margin: 0;
  padding: 0;
  font-family: 'Manrope';
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
}

.top-bar {
  width: 100%;
  height: 25px;
  background: white;
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 12px;
  box-sizing: border-box;
  font-size: 12px;
  color: #333;
  font-family: 'Helvetica Neue', sans-serif;
  border-bottom: 1px solid #ddd;
}

.top-bar a.euronext-link {
  margin-right: 10px;
  font-weight: bold;
  color: black;
  text-decoration: none;
}

.top-bar a.euronext-link:hover {
  text-decoration: underline;
}

.market-data {
  margin-right: 85px; /* pousse ce bloc vers la gauche */
  color: #444;
}

.market-data span {
  font-weight: bold;
  margin: 0 4px;
}

/* Section hero avec image en fond */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.background-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Contenu par-dessus */
.overlay-content {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
}

.logo {
  width: 250px;
  height: auto;
}

/* Barre de menu */
.menu-bar {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.menu-btn {
  width: 180px;
  height: 55px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-btn svg {
  stroke: white;
}

/* Trait séparateur */
.separator {
  width: 2px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 0 10px;
}

/* Overlay du menu */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 100vh;
  background: white;
  z-index: 10000;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
  padding: 30px;
  box-sizing: border-box;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
}

.menu-overlay.active {
  transform: translateX(0);
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;
}

.close-btn {
  font-size: 18px;
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
}

.menu-links {
  list-style: none;
  padding: 40px 0 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-links li a {
  position: relative;
  display: inline-block; /* IMPORTANT : permet de prendre la largeur du texte */
  font-size: 24px;
  font-weight: bold;
  color: #D4AF37;
  cursor: pointer;
  transition: color 0.3s ease;
  text-decoration: none; /* on enlève le soulignement */
  padding-bottom: 4px; /* espace pour la ligne */
  border-bottom: 2px solid transparent; /* ligne invisible par défaut */
}

.menu-links li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #a7892b;
  transition: width 0.3s ease;
}

/* Au survol, on étend la ligne sur toute la largeur */
.menu-links li a:hover {
  color: #a7892b;
}

.menu-links li a:hover::after {
  width: 100%;
}

.main-content {
  position: relative; /* nécessaire pour le canvas en absolute à l’intérieur */
  background: #3b5f6d;
  padding: 100px 20px;
  overflow: hidden; /* évite que le canvas dépasse */
}

.main-content canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* pour ne pas bloquer les clics */
  z-index: 0; /* en dessous du contenu */
}

.section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  width: 80vw;
  min-height: 500px; /* 🔥 définit une hauteur minimale */
  margin: 0 auto 120px auto;
  background: white;
  padding: 40px 80px; /* espace intérieur régulier */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
  text-align: center;
}

.section p {
  font-size: 20px;
  line-height: 1.6;
}

.section p:nth-last-child(2) {
  margin-bottom: 5px; /* Ajustez selon le besoin */
}

.section p:last-child {
  margin-top: 0; /* Pour éliminer un éventuel espace par défaut */
  margin-bottom: 0; /* Pour éviter un trop grand espace après ce paragraphe */
}

.section.show {
  opacity: 1;
  transform: translateY(0);
}

.gold-title {
  font-size: 48px;
  color: #D4AF37;
  margin: 0 0 30px 0;
  font-weight: bold;
}

.image-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Permet le retour à la ligne */
  gap: 30px;
  margin: 20px 0;
}

.image-row img {
  width: 100%;
  max-width: 500px; /* Largeur maximale */
  height: auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  object-fit: cover;
  transition: box-shadow 0.3s ease;
}

.image-row img:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
}

.nav-arrow.left {
  left: 30px;
}

.nav-arrow.right {
  right: 30px;
}

.nav-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.gold-separator {
  border: none;
  height: 3px;
  width: 90%;
  max-width: 1150px;
  margin: 60px auto;
  background-color: #D4AF37; /* Or */
}

.citation-greatvibes p {
  font-family: 'Great Vibes', cursive;
  font-size: 35px;
  line-height: 1.6;
  text-align: center;
}

.citation-dancingscript p {
  font-family: 'Dancing Script', cursive;
  font-size: 31px;
  line-height: 1.6;
  text-align: center;
}

.citation-tangerine p {
  font-family: 'Tangerine', cursive;
  font-size: 47px;
  line-height: 1.6;
  text-align: center;
}

.citation-author {
  text-align: right;
  margin-top: 15px;
  font-style: italic;
  font-size: 18px;
  color: black;
}

.talent-list {
  list-style-position: inside;
  margin: 0 auto;
  padding: 0;
  text-align: left;
  max-width: 600px;
}

.talent-list li {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 2;
  white-space: nowrap; /* Empêche le retour à la ligne */
}

@media (max-width: 768px) {
  .talent-list li {
    white-space: normal;
    font-size: 19px;
    line-height: 1.5;
  }
}

.talent-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  max-width: 1200px;
  margin: 2em auto;
  padding: 0 40px;
  flex-wrap: wrap; /* Ajouté pour que la grille se réorganise si nécessaire */
}

.talent-col {
  flex: 1;
  list-style: none;
  padding-left: 0;
}

.talent-col li {
  margin-bottom: 1.2em;
  font-size: 1.2rem;
  line-height: 1.5;
}

.pole-synergy-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: -3.8em; /* Pour ajuster l'espacement entre Pole Synergy et les autres secteurs */
}

.pole-synergy-container .talent-col {
  display: flex;
  align-items: center; /* Alignement du logo et du texte */
  margin: 0; /* Retirer les marges supplémentaires */
}

.pole-synergy-container li {
  text-align: left; /* Pour aligner le texte à gauche */
  display: flex;
  align-items: center; /* Alignement vertical du logo et du texte */
  gap: 10px; /* Espacement entre le logo et le texte */
}


.pole-synergy-container img {
  width: 40px; /* Ajuste la taille du logo si nécessaire */
  height: auto;
}

.bold-text {
    font-weight: bold;
 } 

.certifications-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
  margin-top: 80px;
  border-top: 2px solid #e0e0e0;
}

.certifications-title {
  font-size: 2rem;
  color: #bfa046; /* doré élégant */
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.certifications-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 80px;
  margin-top: 60px;
}

.cert-logo img {
  max-height: 80px;
  max-width: 150px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.1));
}

.cert-logo img:hover {
  transform: scale(1.1);
}

.segment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  padding: 20px;
}

.segment-box {
  display: flex;
  flex-direction: column; /* Pour une meilleure gestion sur tous les écrans */
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  min-height: 250px; /* Hauteur minimale uniforme */
  padding: 25px 30px;
  border: 2px solid #D4AF37;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  box-sizing: border-box;
  overflow: visible;
  height: 100%;
}

.segment-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.segment-box img {
  width: 100px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.segment-text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: visible;
}

.segment-text h3 {
  margin: 0;
  color: #D4AF37;
  font-size: 24px;
}

.segment-text p {
  margin: 0;
  color: #333;
  line-height: 1.4;
  word-wrap: break-word;  /* Coupe les longs mots si nécessaire */
  overflow-wrap: break-word;  /* Pareil pour l'overflow des mots longs */
  flex-grow: 1; /* Permet au texte de remplir l'espace restant */
  display: block;
  white-space: normal; /* Permet au texte de s'afficher sur plusieurs lignes */
}

.segment-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.language-switcher select {
  background: transparent;
  border: none;
  color: black;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  padding: 5px;
  cursor: pointer;
  outline: none;
}

.language-switcher select option {
  background-color: white;
  color: black;
}

.contact-section {
  background: white;
  padding: 60px 20px;
  margin: 60px auto;
  max-width: 800px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact-section h2 {
  font-size: 40px;
  color: #D4AF37;
  margin-bottom: 40px;
  font-weight: bold;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.form-group {
  width: 90%;
  max-width: 600px;
  margin: 0 auto 20px auto;
}

/* Style général des inputs */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-family: 'Manrope', sans-serif;
  transition: border-color 0.3s;
  display: block;
  box-sizing: border-box;
  margin-bottom: -60px;
  resize: none;
  height: 50px;
}

/* Décalage spécifique de l’input email */
.offset-input {
  margin-top: 70px; /* décale l’email un peu en dessous */
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #D4AF37;
  outline: none;
}

.subject-group input {
  margin-bottom: -28px !important;
}

.message-group input {
  height: 170px !important;
}
.contact-form button {
  align-self: center;
  padding: 15px 30px;
  font-size: 18px;
  background-color: #D4AF37;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  font-family: 'Manrope', sans-serif;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #b18e2e;
}

@media (max-width: 768px) {
  .section {
    padding: 40px 20px;
  }

  .gold-title {
    font-size: 28px;
    margin: 30px 0 20px;
  }

  .section p {
    font-size: 20px;
  }

 @media (max-width: 600px) {
  .image-row {
    gap: 20px;
  }

  .image-row img {
    max-width: 150%;
  }
}

  .segment-box {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px; /* espace autour des éléments */
  gap: 10px;
}

  .segment-box img {
    width: 90px;
    height: auto;
    margin: 0 auto;
  }

  .segment-box img.special-image {
  width: 90px;      /* plus petit ou adapté pour ne pas toucher l'arrondi */
  height: 50px;     /* conserve le ratio */
  }

  .segment-text h3 {
    font-size: 25px;
  }

  .segment-text p {
    font-size: 20px;
  }

  .segment-link {
  margin-bottom: 30px; /* espace entre chaque box, ajustable */
}

  .talent-grid {
    flex-direction: column;
    gap: 30px;
    padding: 0 10px;
  }

  .certifications-logos {
    flex-direction: column;
    gap: 25px;
  }

  .overlay-content {
    padding: 0 15px;
  }

  .menu-overlay {
    width: 100vw; /* prend toute la largeur sur mobile */
    padding: 20px;
  }
  .menu-links li a {
    font-size: 18px;
  }

  .logo {
    width: 120px;
  }

  .menu-btn {
    width: 40px;
    height: 15px;
  }

  .menu-bar {
    padding: 8px 12px;
  }

  .top-bar {
    font-size: 10px;
    padding: 3px 6px;
  }
}

/* Tablette paysage : iPad Pro 11", Air, etc. */
@media screen and (max-width: 1024px) {
  .segment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablette portrait : iPad 9.7", Mini, etc. */
@media screen and (max-width: 900px) {
  .segment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Petits écrans / smartphone */
@media screen and (max-width: 600px) {
  .segment-grid {
    grid-template-columns: 1fr;
  }
}

.talent-grid li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.talent-grid li img.icon {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  flex-shrink: 0;
}

.talent-grid li span {
  flex: 1;
}

@media (max-width: 768px) {
  .market-data {
    margin: 4px 0;
    order: 2; /* facultatif : permet de changer l'ordre si nécessaire */
  }

  .top-bar a.euronext-link,
  .language-switcher {
    margin: 4px 8px;
  }

  .language-switcher {
    order: 3;
  }

  .top-bar a.euronext-link {
    order: 1;
  }

  }

@media screen and (max-width: 600px) {
  .citation-greatvibes p {
    font-size: 1.6rem;
  }
  .citation-dancingscript p {
    font-size: 1.4rem;
  }
  .citation-tangerine p {
    font-size: 1.9rem;
  }
}

@media (max-width: 768px) {
  .citation-author {
    font-size: 15px !important;
    margin-top: 15px !important;
  }
}

@media (max-width: 768px) {
  .talent-grid li {
    flex-direction: column;  /* empile image + texte verticalement */
    align-items: center;     /* centre tout */
    text-align: center;      /* centre le texte */
    margin-bottom: 40px;     /* espace uniforme mobile/tablette */
  }

  .talent-grid li img.icon {
    margin: 0 0 15px 0;      /* espace entre l'image et le texte */
    width: 40px;             /* ajustable */
    height: 40px;
  }
}

