/* largeur de la scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

/* fond */
::-webkit-scrollbar-track {
  background: #111; /* noir */
}

/* barre (le curseur) */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4af37, #ffd700);
  border-radius: 10px;
}

/* hover */
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffd700, #d4af37);
}

html {
  scrollbar-width: thin;
  scrollbar-color: #d4af37 #111;
  scroll-behavior: smooth;
}

body {
  cursor: url("../images/cursor/icons8-hammer-48.png"), auto;
}

button:hover,
a:hover {
  cursor: url("../images/cursor/icons8-screwdriver-48.png"), pointer;
}

.section-video {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Vidéo en arrière-plan */
.section-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
}

/* Contenu centré */
.content-video {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.content-video h3 {
  font-size: 2rem;
  width: 50rem;
}

/* Option : overlay sombre */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

/* TITRE */
.nameSections {
  color: #d4af37;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: Arial, sans-serif;
}

/* IMAGE */
.about-img {
  max-width: 80%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.about-img:hover {
  transform: scale(1.05);
}

/* TITRE SECTION */
.section-title {
  color: #555;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* TEXTE */
.about-text {
  color: #333;
  line-height: 1.6;
  font-size: 1.1rem;
}

.about-text .gold-text {
  color: #d4af37;
  font-weight: 600;
}

.mission-text {
  color: #666;
  font-style: italic;
  margin-bottom: 1rem;
}

/* VIDEO */
.founder-video {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 2px solid #d4af37;
  margin-bottom: 0.5rem;
}

/* FONDATEUR */
.founder-name {
  display: block;
  color: #555;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* écran loader */
#loader {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: #111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* logo */
.logo {
  width: 120px;
  margin-bottom: 20px;
  animation: zoom 2s ease;
}

/* texte CERD */
.text span {
  font-size: 40px;
  color: #d4af37;
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.text span:nth-child(1) {
  animation-delay: 0.2s;
}
.text span:nth-child(2) {
  animation-delay: 0.4s;
}
.text span:nth-child(3) {
  animation-delay: 0.6s;
}
.text span:nth-child(4) {
  animation-delay: 0.8s;
}

/* phrase */
.subtitle {
  color: #fff;
  margin-top: 15px;
  opacity: 0;
  animation: fadeIn 2s forwards;
  animation-delay: 1s;
}

/* animations */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoom {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.services .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.services .card img {
  height: 200px; /* même hauteur pour toutes les images */
  object-fit: cover; /* évite déformation */
}

.services .card-body {
  flex-grow: 1; /* prend tout l'espace */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.services .card-text {
  flex-grow: 1; /* aligne les boutons en bas */
}

.back-to-top {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
}
