/* ================= RESET & BASE ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  background: #020617;   /* fond très sombre, plus de grosse barre bleue */
  color: #0f172a;
}




a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.8rem;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* ================= NAV BULLE ================= */
.services {
  background: #020617;
  color: #e5e7eb;
  padding: 3rem 0 3.4rem;
  border-top: 1px solid rgba(15, 23, 42, 0.6);
}

.services-title {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.services-subtitle {
  color: #9ca3af;
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
  max-width: 520px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.service-card {
  background: #020617;
  border-radius: 18px;
  padding: 1.6rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.6);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.92rem;
  color: #cbd5f5;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #2563eb;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.4);
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}




/* ================= NAV BULLE ================= */
.top-nav {
  position: fixed;
  top: 0.75rem;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.top-nav.nav-hidden {
  transform: translateY(-120%);
  opacity: 0;
}

.nav-shell {
  pointer-events: auto;
  max-width: 920px;
  width: 100%;
}

.nav-toggle {
  display: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.6rem 1.45rem;
  background: #f8fafc;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 999px;              /* forme ronde */
  background: #0b1f4a;               /* fond bleu foncé propre */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;                  /* cache ce qui dépasse de l'image */
}

/* Image à l'intérieur de la bulle */
.nav-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;                 /* l'image remplit bien le cercle */
  border-radius: 999px;              /* rend l'image elle-même ronde */
  display: block;
}



.nav-center {
  display: flex;
  gap: 1.5rem;
  font-size: 0.98rem;
}

.nav-center a {
  color: #0f172a;
  opacity: 0.85;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.nav-center a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.92rem;
}

/* Lien "Rejoignez-nous" */
.nav-join {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #0f172a;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.nav-join:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Bouton "Contactez-nous" */
/* Bouton "Contactez-nous" -> clair */
.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  background: #f3f4ff; /* fond clair */
  color: #111827;      /* texte foncé */
  font-weight: 500;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none;
  transition: background-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.14s ease;
}

.nav-contact:hover {
  background: #e5ebff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}


/* Bouton "Postuler" */
/* Bouton "Postuler" -> bleu */
.nav-apply {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: #2563eb; /* bleu */
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
  border: none;
  transition: background-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.14s ease;
}

.nav-apply:hover {
  background: #1d4ed8;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}


/* Burger mobile */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 0.22rem;
  cursor: pointer;
}

.nav-burger span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #0f172a;
}

/* ================= HERO FULL SCREEN ================= */
.hero {
  margin-top: 0;                /* plus d’espace vide bleu au-dessus */
  padding: 5.4rem 0 3.4rem;     /* on compense le margin-top pour garder la même hauteur visuelle */
  color: #fff;
  position: relative;
  overflow: hidden;

  min-height: 100vh;            /* le hero couvre tout l’écran */
  display: flex;
  align-items: center;

  background-color: #0f3c8f;
  background-image: url("assets/uqrp.png"); /* ton fond perso */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
   border-bottom: 1px solid rgba(15, 23, 42, 0.65);
}




/* container du hero : image collée à droite */
.hero .container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.8rem;
}



.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><text x='40' y='45' text-anchor='middle' font-size='32' fill='white' opacity='0.9'>⚜</text></svg>");
  background-repeat: repeat;
  background-size: 140px 140px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;   /* centre le contenu */
  max-width: 720px;
  padding-left: 0;
  margin: 0 auto;
}



.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: center;  /* centré */
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}


.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  background: rgba(15, 23, 42, 0.17);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.hero-title {
  font-size: 3.6rem;      /* plus grand */
  line-height: 1.05;
  margin-bottom: 1rem;
  font-weight: 700;
  text-align: center;     /* bien centré */
}

.hero-text {
  font-size: 1.1rem;
  max-width: 620px;
  opacity: 0.95;
  margin-bottom: 2rem;
  text-align: center;     /* centré */
}

.hero-sub {
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;   /* <<< AJOUT */
  gap: 1rem 1.6rem;
}



/* colonne droite */
.hero-right {
  display: flex;
  justify-content: flex-end;
}


/* Image qui va VRAIMENT jusqu’au bord droit de l’écran */
.hero-image {
  width: 100vw;              /* largeur = largeur de l'écran */
  max-width: none;
  margin-right: calc(100% - 70vw); /* décale l'image pour coller à droite */
  border-radius: 22px 0 0 22px;    /* arrondi côté gauche seulement */
  background: #0b1728;
  min-height: 420px;
  height: clamp(420px, 65vh, 620px);
  background-size: cover;
  background-position: center;
}


/* ================= BOUTONS GÉNÉRAUX ================= */
.btn-primary {
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.9rem;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
  transform: translateY(0);
  transition: background-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.14s ease, filter 0.18s ease;
}

.btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn-primary:active {
  background: #1e40af;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.5);
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  border: 1px solid #2563eb;
  color: #2563eb;
  border-radius: 999px;
  padding: 0.9rem 1.8rem;
  font-weight: 500;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease, transform 0.14s ease;
}

.btn-outline:hover {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-outline:active {
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.4);
  transform: translateY(0);
}

/* ================= SECTION "À PROPOS / STATS" ================= */
.features {
  background: #020617;
  color: #f9fafb;
  padding: 3.8rem 0 4.1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(15, 23, 42, 0.65);
}

.features-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 3rem;
  align-items: flex-start;
}

/* Colonne gauche */
.features-left {
  padding-right: 1rem;
}

.features-kicker {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #60a5fa;
  margin-bottom: 0.6rem;
}

.features-title {
  font-size: 1.9rem;
  line-height: 1.25;
}

/* Colonne centre */
.features-center {
  font-size: 0.98rem;
  color: #d1d5db;
}

.features-center p + p {
  margin-top: 0.0rem;
}

.features-cta {
  margin-top: 1.4rem;
  display: inline-flex;
}

/* Colonne droite : stats */
.features-right {
  border-left: 1px solid rgba(148, 163, 184, 0.28);
  padding-left: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.features-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.features-stat-number {
  font-size: 1.8rem;
  font-weight: 700;
}

.features-stat-label {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.features-stat-sub {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0;
  margin-top: 0.1rem;
  color: #e5e7eb;
}



/* ================= GALERIE PHOTO ================= */
/* ================= GALERIE PHOTO (SLIDESHOW) ================= */
.gallery-section {
  /* hauteur de page plus grande pour la galerie */
  min-height: 80vh;
  padding: 4.5rem 0 4.5rem;

  /* fond personnalisable */
  background-color: #020617;
  background-image: url("assets/uqrp.png"); /* mets ce que tu veux ici */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: #e5e7eb;
  border-top: 1px solid rgba(15, 23, 42, 0.7);
}

.gallery-header {
  text-align: center;
  margin-bottom: 2.4rem;
}

.gallery-header h2 {
  font-size: 1.8rem;
}

/* wrapper pour garder tout au centre */
.gallery-slider-wrapper {
  display: flex;
  justify-content: center;
}

/* cadre principal du slideshow */
.gallery-slider {
  position: relative;
  width: min(70vw, 1100px);
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(15, 23, 42, 1);
}

/* chaque slide */
.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 0.9s ease;
}

.gallery-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

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

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #e5e7eb;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease, border-color 0.2s ease;
}

.gallery-arrow:hover {
  background: rgba(37, 99, 235, 0.95);
  border-color: rgba(191, 219, 254, 0.9);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.9);
  transform: translateY(-50%) scale(1.05);
}

.gallery-arrow-prev {
  left: 1rem;
}

.gallery-arrow-next {
  right: 1rem;
}




/* option : petit effet hover */
.gallery-slider:hover .gallery-slide.is-active img {
  transform: scale(1.03);
  transition: transform 0.6s ease;
}

/* Carte photo */
.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(15, 23, 42, 1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.65),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 1);
  border-color: #2563eb;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.03);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}


/* ================= LIGHTBOX ================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.85);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  width: 70vw;          /* 70% de la largeur de l'écran */
  max-width: 1100px;
  height: 70vh;         /* 70% de la hauteur de l'écran */
  max-height: 800px;

  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85);
  background: #020617;
}

.lightbox-content img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;    /* l'image remplit bien le cadre */
}


.lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  border: none;
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  font-size: 1.2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  cursor: pointer;
}




/* ================= CONTACT & FOOTER ================= */
.contact-section {
  background: #020617;
  color: #e5e7eb;
  padding: 2.7rem 0 3.1rem;
}

.contact-inner h2 {
  margin-bottom: 0.6rem;
  font-size: 1.6rem;
}

.footer {
  background: #020617;
  color: #e5e7eb;
  padding: 1.9rem 0 2.2rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: #9ca3af;
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
}

/* ================= OVERLAY MENU MOBILE ================= */
.overlay-menu {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}

.overlay-panel {
  position: relative;
  width: 90%;
  max-width: 380px;
  background: rgba(248, 250, 252, 0.97);
  border-radius: 28px;
  padding: 1.4rem 1.6rem 1.7rem;
  color: #111827;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.65);
  transform: translateY(10px) scale(0.97);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.overlay-logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 999px;  /* rond propre */
  object-fit: cover;     /* image bien cadrée */
}


.overlay-close {
  border: none;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: #111827;
}

.overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: center;
  margin-bottom: 1.8rem;
}

.overlay-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.btn-ghost {
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  border: 1px solid rgba(15, 23, 42, 0.25);
  background: rgba(255, 255, 255, 0.8);
  color: #111827;
  font-size: 0.92rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  transition: background-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.14s ease;
}

.btn-ghost:hover {
  background: #e5ebff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Ouverture du menu mobile */
.nav-toggle:checked ~ .overlay-menu {
  opacity: 1;
  pointer-events: auto;
}

.nav-toggle:checked ~ .overlay-menu .overlay-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .nav-center,
  .nav-join,
  .nav-contact {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 4.5rem;
  }

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;       /* centre horizontalement */
  justify-content: center;   /* centre verticalement dans le hero */
  gap: 1.6rem;
  padding-right: 0;
  text-align: center;        /* texte centré */
}



  .hero-right {
    order: -1;
    justify-content: center;
  }

  .hero-left {
    padding-left: 0;
  }

  .hero-image {
    height: 260px;
    min-height: 260px;
    border-radius: 18px;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .hero-text {
    font-size: 0.98rem;
  }

  .features-inner {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .features-right {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
    padding-top: 1.7rem;
  }
}


/* ================= ANIMATION AU SCROLL ================= */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}





@media (max-width: 1000px) {
  .hero-title {
    font-size: 2.7rem;
  }
  .hero-text {
    font-size: 1rem;
  }
}


/* ===== Galerie : version mobile ===== */
@media (max-width: 640px) {
  /* on enlève le titre "Galerie photo" */
  .gallery-header {
    display: none;
  }

  /* section un peu plus compacte */
  .gallery-section {
    min-height: auto;
    padding: 2.5rem 0 2.8rem;
  }

  /* on recentre bien le slider */
  .gallery-slider-wrapper {
    display: flex;
    justify-content: center;
  }

  .gallery-slider {
    width: 90vw;        /* un peu moins large que l'écran */
    margin: 0 auto;     /* bien au milieu */
    border-radius: 18px;
  }
}

/* ===== HERO VERSION MOBILE ===== */
@media (max-width: 640px) {
  .hero {
    min-height: 100vh;      /* prend toute la hauteur de l'écran */
    padding: 5rem 0 3.5rem; /* espace haut/bas pour respirer */
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
