:root {
  --bleu-fonce: #0C1457;
  --bleu-clair: #379AC6;
  --orange: #ff8c00;
  --blanc: #ffffff;
  --gris-clair: #f4f4f4;
  --gris-texte: #444;
}


html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--blanc);
  color: var(--gris-texte);
}



/* HEADER SIMPLE AVEC MENU HORIZONTAL */
header.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 20px 30px;
  color: #333;
  position: relative;
  z-index: 100;
}


.header-left p {
  margin: 0;
  color: black;
  font-weight: bold;
  font-size: 0.9em;
  line-height: 1.3;
}

.header-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}

.header-menu a {
  color: black;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: color 0.3s ease;
}

.header-menu a:hover {
  color: var(--orange);
}


/* SIDEBAR */
.burger-menu {
  position: relative;
}

.menu-icon {
  font-size: 34px; 
  background: none;
  border: none;
  color: black;
  cursor: pointer;
  z-index: 9999;
  position: relative;
  margin-right: 25px; 
}



.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 250px;
  height: 100vh;
  background-color: var(--bleu-fonce);
  color: var(--blanc);
  padding: 20px;
  transition: right 0.3s ease-in-out;
  z-index: 1100;
  box-shadow: -2px 0 10px rgba(0,0,0,0.3);
}

.sidebar-active .menu-icon {
  display: none;
}


.sidebar ul {
  list-style: none;
  padding: 0;
  margin-top: 60px;
}

.sidebar li {
  margin: 20px 0;
}

.sidebar a {
  color: var(--blanc);
  text-decoration: none;
  font-size: 1.2em;
  font-weight: 500;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 30px;
  color: var(--blanc);
  cursor: pointer;
}

#overlay {
  display: none;
  position: fixed;
  inset: 0;
  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.sidebar.active {
  right: 0;
}

#overlay.active {
  display: block;
}

.hero {
  background:
    linear-gradient(to bottom, rgba(255, 140, 0, 0.2) 0%, #fff3e0 98%),
    url('asset/images/fond-banniere.png') center/cover no-repeat;
  position: relative;
  padding: 100px 20px;
  text-align: center;
  color: var(--gris-texte);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);

}




.hero h1 {
  font-size: 2.5em;
  animation: fadeInDown 1s ease-out;
  background-color: rgba(255, 255, 255, 0.6);
  display: inline-block;
  padding: 10px 20px;
  border-radius: 12px;
  font-family: 'Quicksand', sans-serif;

}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* À PROPOS */
.a-propos {
  padding: 60px 20px 30px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  color: var(--gris-texte);
}

.a-propos img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #e0e0e0;
  object-fit: cover;
  margin-bottom: 20px;
}

.a-propos p {
  font-size: 1em;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  text-align: justify;
}

/* CARTES RAPPORTS */
.cartes-rapports {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 40px 20px;
}

.carte {
  background-color: var(--gris-clair);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  width: 200px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: var(--bleu-fonce);
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

.carte:hover {
  transform: scale(1.05);
  box-shadow: 4px 4px 12px rgba(0,0,0,0.15);
}

.carte img {
  width: 50px;
  margin-bottom: 10px;
}

/* FOOTER */
footer {
  background: white;
  color: black; /* Texte noir */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 20px;
  flex-wrap: wrap;
  font-size: 0.95em;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.footer-left img {
  height: 150px;
}

.footer-right img {
  height: 60px;
  transition: transform 0.3s ease;
}

.footer-left img:hover,
.footer-right img:hover {
  transform: scale(1.05);
}

.footer-center a:hover {
  color: #ff8c00; /* Couleur orange de ta bannière */
  text-decoration: underline;
}

.footer-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.footer-center a {
  text-decoration: none;
  color: black; /* Texte noir */
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-center a:hover {
  color: #dceeff;
}

.footer-center p {
  margin: 5px 0 0;
  font-size: 0.85em;
  color: black; /* Texte noir */
}



/* CARTES RAPPORT */
.rapport-container {
  max-width: 1000px;
  margin: 80px auto 60px;
  padding: 0 20px;
}

.titre-page {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 40px;
  font-family: 'Quicksand', sans-serif;
  background-color: rgba(255, 255, 255, 0.7);
  display: inline-block;
  padding: 10px 20px;
  border-radius: 12px;
}

.carte-rapport {
  background-color: var(--gris-clair);
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carte-rapport:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.carte-rapport h2 {
  color: var(--bleu-fonce);
  font-size: 1.4em;
  margin-bottom: 15px;
}

.carte-rapport p {
  line-height: 1.6;
  text-align: justify;
  font-size: 1em;
  margin-bottom: 10px;
}



/*TIMELINE*/
.timeline-horizontal {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 60px auto;
  padding: 80px 40px 40px;
  max-width: 1100px;
  border-top: 4px solid transparent;
  border-image: linear-gradient(to right, #379AC6, #ff8c00) 1;
  opacity: 0;
  transform: translateY(30px);
  animation: drawLine 1.5s ease forwards;
}


@keyframes drawLine {
  0% {
    opacity: 0;
    transform: translateY(30px);
    border-image: linear-gradient(to right, transparent, transparent) 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    border-image: linear-gradient(to right, #379AC6, #ff8c00) 1;
  }
}

.timeline-event {
  position: relative;
  text-align: center;
  width: 160px;
  opacity: 0;
  transform: scale(0.8);
  animation: fadeZoomIn 1s ease forwards;
  animation-delay: 1s;
}


.timeline-event:nth-child(2) { animation-delay: 1.2s; }
.timeline-event:nth-child(3) { animation-delay: 1.4s; }
.timeline-event:nth-child(4) { animation-delay: 1.6s; }
.timeline-event:nth-child(5) { animation-delay: 1.8s; }

@keyframes fadeZoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.dot {
  width: 24px;
  height: 24px;
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #ddd;
  margin: 0 auto;
  background-color: #aaa;
  z-index: 2;
  transition: transform 0.3s ease;
  position: relative;
  top: -12px;
}

.dot.orange {
  background-color: #ff8c00;
}

.dot.blue {
  background-color: #379AC6;
}

.timeline-date {
  margin-top: 10px;
  font-weight: bold;
  font-size: 1em;
  color: var(--bleu-fonce);
}

.timeline-desc {
  margin-top: 8px;
  padding: 10px 15px;
  background-color: #f4f4f4;
  border-radius: 12px;
  font-size: 0.9em;
  line-height: 1.4;
  color: var(--gris-texte);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}



.drive-preview {
  background: white;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.drive-container {
  max-width: 900px;
  width: 100%;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  padding: 40px;
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.drive-icon {
  font-size: 60px;
  background-color: var(--bleu-clair);
  color: white;
  padding: 20px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.drive-content h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.8em;
  color: var(--bleu-fonce);
  margin: 0 0 10px;
}

.drive-content p {
  color: var(--gris-texte);
  font-size: 1em;
  margin: 0 0 20px;
  max-width: 500px;
}

.drive-link {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--orange, #ff8c00);
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.drive-link:hover {
  background-color: var(--bleu-clair);
}




/* =================== */
/* Responsive Mobile   */
/* =================== */

@media screen and (max-width: 768px) {

  /* HEADER */
  .header-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1em 0;
  }

  .header-left p {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .header-menu ul {
    flex-direction: column;
    gap: 0.5em;
  }

  .header-menu li {
    margin: 0;
  }

  .header-menu a {
    font-size: 16px;
    padding: 0.5em 1em;
  }

  /* HERO */
  .hero h1 {
    font-size: 22px;
    padding: 0 1em;
    text-align: center;
  }

  /* À PROPOS */
  .a-propos {
    flex-direction: column;
    align-items: center;
    padding: 1.5em 1em;
  }

  .a-propos img {
    width: 100px;
    margin-bottom: 1em;
  }

  .a-propos p {
    font-size: 14px;
    text-align: justify;
  }

  .timeline-horizontal {
    flex-direction: column;
    align-items: flex-end;
    border: none;
    padding: 20px 20px;
    gap: 30px;
    position: relative;
    margin-top: 40px;
  }
  
  .timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 0;
    right: 20px; /* position de la ligne verticale */
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #379AC6, #ff8c00);
    z-index: 0;
  }
  
  .timeline-event {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
    padding-right: 80px; /* espace entre texte et ligne à droite */
    text-align: right;
  }
  
  .timeline-event .dot {
    position: absolute;
    right: 8px; /* rond collé à la ligne */
    top: 0;
  }
  
  .timeline-date {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--bleu-fonce);
  }
  
  .timeline-desc {
    background-color: #f4f4f4;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--gris-texte);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    max-width: 90%;
  }
  
  /* CARTES */
  .cartes-rapports {
    flex-direction: column;
    align-items: center;
    gap: 1em;
    padding: 1em;
  }

  .carte {
    width: 80%;
    max-width: 300px;
  }

  .carte img {
    width: 100%;
  }

  .carte h3 {
    font-size: 16px;
  }

  /* DRIVE */
  .drive-preview {
    padding: 1em;
  }

  .drive-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .drive-icon {
    font-size: 40px;
  }

  .drive-content h2 {
    font-size: 18px;
  }

  .drive-content p {
    font-size: 14px;
  }

  /* FOOTER */
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1em;
    padding: 2em 1em;
  }

  .footer-left img,
  .footer-right img {
    width: 100px;
  }

  .footer-links a {
    display: block;
    margin-bottom: 0.5em;
  }

  .footer-center p {
    font-size: 12px;
  }
}

.flipbook {
  overflow: hidden;
}

.flipbook .page {
  position: absolute;
  top: 0;
  left: 0;
}

.swiper {
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  margin: auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
