/* ==============================================
   VARIABLES ET IMPORTATIONS
============================================== */

/* Palette de couleurs */
:root {
  --primary-color: #0056a6; /* Bleu foncé logo couleur 1*/
  --light-gray-color: #f5f5f5;
  --white-color: #ffffff; /* Blanc logo couleur 2*/
  --orange-color: #f35828; /* Orange foncé logo couleur 3*/
}

/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");

/* ==============================================
   GLOBAL STYLES
============================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--light-gray-color);
  color: var(--dark-gray-color);
  padding-top: 80px;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary-color);
  font-weight: 700;
}

p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ==============================================
   BOUTONS
============================================== */
.btn {
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.hero .btn-custom {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero .btn-custom:hover {
  background-color: #e56700; /* orange plus foncé au hover */
  color: #fff;
  transform: translateY(-2px); /* petit effet de relief */
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: 2px solid var(--primary-color) !important;
}
.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--orange-color) !important;
}

.btn-secondary {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--orange-color);
}

.btn-orange {
  background-color: var(--secondary-color);
  color: var(--white-color);
  border: 2px solid var(--secondary-color);
}
.btn-orange:hover {
  background-color: var(--white-color);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.btn-see-more {
  background-color: var(--secondary-color);
  color: var(--white-color);
  border: 2px solid var(--secondary-color);
  border-radius: 50px;
  padding: 10px 20px;
}
.btn-see-more:hover {
  background-color: var(--white-color);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

/* ==============================================
   NAVIGATION
============================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
  background: var(--white-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 7px 0;
  transition: background-color 0.3s ease;
  min-height: 50px;
}

.navbar-brand img {
  height: 50px;
  width: auto;
  margin-right: 8px;
}

.navbar .nav-link {
  color: var(--primary-color) !important;
  font-weight: 600;
  margin: 0 15px;
  position: relative;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
}

/* ==============================================
   HERO SECTION
============================================== */
.hero {
  margin-top: -10px;
  background: linear-gradient(rgba(10, 46, 94, 0.8), rgba(10, 46, 94, 0.8)),
    url(../images/hero.jpg) no-repeat center center;
  background-size: cover;
  color: var(--white-color);
  padding: 120px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--white-color);
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem auto; /* centrage horizontal + marge bas */
  text-align: center;
}

/* ==============================================
   CARDS
============================================== */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  border-radius: 15px 15px 0 0;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 30px;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.card-link {
  text-decoration: none;
  transition: color 0.3s ease;
}

/* ==============================================
   LOGIN
============================================== */
.login {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent !important;
  padding: 80px 0;
}

.login .login-card {
  max-width: 400px;
  margin: 0 auto;
  padding: 30px;
  background-color: var(--white-color);
  border-radius: 15px;
}

.login .login-card-header {
  background-color: transparent;
}

.login .login-card img {
  max-width: 100px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.login .login-card-body form .form-control {
  border-radius: 50px;
  padding: 10px;
  transition: border-color 0.3s ease;
}

/* ==============================================
   CONTACT
============================================== */
.contact-section {
  padding: 60px 0;
}

.contact-section form {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--white-color);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ==============================================
   FOOTER
============================================== */
.footer {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 60px 0 20px 0;
}
.footer a {
  color: var(--white-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer a:hover {
  color: var(--orange-color);
}
.footer .social-icons a {
  font-size: 1.5rem;
  margin: 0 10px;
}
.footer .copyright {
  margin-top: 30px;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ==============================================
   SWIPER / CAROUSEL
============================================== */
.swiper-container {
  width: 100%;
  padding: 20px 0;
}

.swiper-slide {
  background: var(--white-color);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}
.swiper-slide:hover {
  transform: translateY(-10px);
}
.swiper-slide img {
  width: 100%;
  object-fit: cover;
}

.swiper-slide-content {
  padding: 0 20px;
}

.swiper-slide-caption {
  margin-top: 30px;
  padding-left: 20px;
  padding-right: 20px;
  font-size: 1.2rem;
  font-weight: 600;
}

.swiper-slide-description {
  font-size: 1rem;
  margin-bottom: 15px;
}

.swiper-slide-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 10px 30px;
  color: var(--dark-gray-color);
  margin-bottom: 10px;
}

.read-more {
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--secondary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.744);
  font-size: 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: var(--secondary-color);
  opacity: 1;
}

/* ==============================================
   AJUSTEMENTS IMAGES ET ACCESSIBILITÉ
============================================== */
.zoom-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Préférence réduction animation */
@media (prefers-reduced-motion: reduce) {
  .zoom-img,
  #partners-logos img {
    transition: none;
  }
}

/* Support écran haute densité */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero {
    background-size: cover;
  }
}

/* ==============================================
   MEDIA QUERIES RESPONSIVE
============================================== */
@media (max-width: 767px) {
  /* Navbar */
  .navbar {
    padding: 5px 0;
    min-height: 48px;
  }
  .navbar-brand img {
    max-height: 32px;
  }
}

@media screen and (max-width: 768px) {
  /* Section Titles */
  .section-title {
    margin-top: 2rem;
    font-size: 1.25rem;
  }

  /* Hero */
  .hero {
    padding: 2rem 1rem;
    text-align: center;
  }
  .hero h1 {
    font-size: 2rem;
  }

  /* Cards */
  .card {
    margin-bottom: 20px;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .container-fluid {
    padding: 20px !important;
  }
  .card {
    margin-bottom: 20px;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
}
