/* Palette de couleurs */
:root {
  --primary-color: #0a2e5e;
  /* Bleu foncé */
  --secondary-color: #ff6b6b;
  /* Corail */
  --accent-color: #ffd166;
  /* Jaune */
  --light-gray-color: #f5f5f5;
  --dark-gray-color: #515050;
  --white-color: #ffffff;
  --orange-color: #ff8c00;
  /* Orange */
}

@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;
}

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

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

.btn-primary:hover {
  background-color: transparent;
  color: var(--secondary-color);
}

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

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white-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);
}

/* 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-bottom: 2rem;
}

@media (max-width: 767px) {
  .navbar {
    padding: 5px 0;
    min-height: 48px;
  }

  .navbar-brand img {
    max-height: 32px;
  }
}

/* Section titles */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 1.8rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

/* Actualités Home page*/
.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);
}
/* Section Actualités */
#actualites {
  padding: 20px 0;
}

.news-item {
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;
}

.news-item:last-child {
  border-bottom: none;
}

.news-content h3 {
  color: #333;
}

.news-content p {
  color: #555;
  font-size: 0.95rem;
}

.news-meta {
  font-size: 0.85rem;
  color: #888;
}

.news-meta i {
  color: #007bff;
}

.news-link {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.news-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .news-item {
    text-align: center;
  }

  .news-item img {
    margin: 0 auto;
  }

  .news-content {
    text-align: left;
  }
}

.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;
}

/* Produits */
#produits {
  padding: 20px;
}

.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;
}

/* Engagements */
#engagements {
  padding: 50px 20px 20px 50px;
  min-height: 350px;
  background: url(../images/bg.jpg) no-repeat center center;
  background-size: cover;
  opacity: 0.7;
}

#engagements .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#engagements h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

#engagements .col-md-4 {
  text-align: center;
  padding: 20px;
}

#engagements .bi-lock,
#engagements .bi-lightbulb,
#engagements .bi-people {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--white-color);
  background-color: var(--orange-color);
  padding: 10px;
  border-radius: 50%;
}

/* Partenaires */
#partners {
  text-align: center;
  padding: 60px 30px;
}

#partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
}

#partners .col-md-4 {
  text-align: center;
}

#partners-logos {
  max-width: 50%;
  margin: 0 auto;
  cursor: pointer;
}

/* 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);
}

/* À propos */
.about-section {
  margin-top: 20px;
  padding: 50px;
}
.hover-effect {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-effect:hover {
  transform: scale(1.1); /* Zoom léger */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Ombre plus marquée */
}
.slogan {
  display: block;
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  font-style: italic;
}

/* News*/
.news-item {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--white-color);
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.news-item img {
  width: 80%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
}

.news-content h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.news-content p {
  font-size: 1rem;
  color: #555;
}

.news-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 10px;
}

.news-link {
  font-size: 0.9rem;
  color: #ff6600;
  text-decoration: none;
  font-weight: bold;
}

.news-link:hover {
  text-decoration: underline;
}

/* News - Responsive adjustments */
@media screen and (max-width: 768px) {
  .news-item {
    flex-direction: column;
  }

  .news-item .col-md-3,
  .news-item .col-md-9 {
    width: 100%;
    max-width: 100%;
  }

  .news-item img {
    margin-bottom: 15px;
    width: 100%;
  }

  .news-content h3 {
    font-size: 1.1rem;
  }

  .news-content p {
    font-size: 1rem;
  }

  .news-meta {
    font-size: 0.8rem;
  }

  .news-link {
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 576px) {
  .news-content h3 {
    font-size: 1rem;
  }

  .news-content p {
    font-size: 0.85rem;
  }

  .news-meta {
    font-size: 0.75rem;
  }

  .news-link {
    font-size: 0.8rem;
  }
}

/* News Show - Responsive Design */
#show-news-details-container {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}
#news-details {
  margin-right: 0;
  padding: 40px;
  background-color: var(--white-color);
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.news-details-title {
  font-size: 2rem;
}

.show-news-img-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
}

.news-title {
  font-size: 1.5rem;
  margin-top: 15px;
  margin-bottom: 10px;
}

.news-meta {
  font-size: 0.9rem;
  color: #888;
  margin-top: 10px;
}
.other-news-div {
  margin-top: 10px;
  padding-left: 15px;
}

.other-news-list {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--white-color);
  padding: 5px 20px;
  border-radius: 10px;
}

.other-news {
  font-size: 1.25rem;
  margin-top: 20px;
  margin-bottom: 5px;
  margin-left: 15px;
}

.other-news-link {
  text-decoration: none;
  color: inherit;
  display: block;
  margin-bottom: 15px;
  transition: background-color 0.3s ease;
}

.other-news-link:hover {
  background-color: #f9f9f9;
  border-radius: 5px;
}

.other-news-thumbnail {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
}

.other-news-title {
  font-size: 1rem;
  margin-bottom: 5px;
}

.other-news-meta {
  font-size: 0.85rem;
  color: #888;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .other-news {
    font-size: 1.5rem;
  }
  .news-details-title {
    font-size: 1.75rem;
  }

  .news-title {
    font-size: 1.25rem;
  }

  .news-meta {
    font-size: 0.85rem;
  }

  .other-news {
    font-size: 1.1rem;
  }

  .other-news-title {
    font-size: 0.9rem;
  }

  .other-news-meta {
    font-size: 0.8rem;
  }

  .other-news-link {
    margin-bottom: 10px;
  }

  .other-news-thumbnail {
    margin-bottom: 10px;
  }
  .other-news-list {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media screen and (max-width: 576px) {
  .other-news-list {
    padding-bottom: 10px;
  }
  .news-details-title {
    font-size: 1.5rem;
  }

  .news-title {
    font-size: 1.1rem;
  }

  .news-meta {
    font-size: 0.8rem;
  }

  .other-news {
    font-size: 1.2rem;
  }

  .other-news-title {
    font-size: 0.85rem;
  }

  .other-news-meta {
    font-size: 0.75rem;
  }
}

/* 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(--secondary-color);
}

.footer .social-icons a {
  font-size: 1.5rem;
  margin: 0 10px;
}

.footer .copyright {
  margin-top: 30px;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive Design */

@media screen and (max-width: 768px) {
  .section-title {
    margin-top: 2rem;
    font-size: 1.25rem;
  }
  /* Home page */
  .container-fluid {
    padding: 15px !important;
  }
  #home-actualites {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
  }
  .btn-see-more {
    background-color: transparent !important;
    color: var(--secondary-color);
    font-weight: 600;
  }

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

  .hero h1 {
    font-size: 2rem;
  }

  /* News Section */
  .swiper-slide {
    width: 100% !important;
  }

  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }

  /* Products Section */
  #produits {
    padding: 15px !important;
  }
  #produits .section-title {
    margin-bottom: 2rem;
  }

  #produits .card-title {
    font-size: 1.5rem;
  }

  #produits .col-md-4 {
    margin-bottom: 2rem;
  }

  .card {
    margin-bottom: 20px;
  }

  /* Engagements Section */
  #engagements .col-md-4 {
    text-align: center;
    margin-bottom: 5px;
  }

  .the-second-col {
    border: none;
  }

  /* Partners Section */
  #partners-logos img {
    max-width: 100%;
    margin: 15px auto;
    display: block;
  }
}

/* Tablettes */
@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;
  }
}

/* Ajustements généraux pour les images */
.zoom-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

#partners-logos img {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

#partners-logos img:hover {
  transform: scale(1.05);
}

/* Amélioration de l'accessibilité */
@media (prefers-reduced-motion: reduce) {
  .zoom-img,
  #partners-logos img {
    transition: none;
  }
}

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