/* Palette de couleurs panafricaines */
:root {
  --socopravec-green: #1B9D3D;
  --socopravec-yellow: #FFCD00;
  --socopravec-red: #E51C24;
  --socopravec-dark: #212121;
  --socopravec-light: #F5F5F5;
  --socopravec-shadow: 0 2px 5px rgba(0, 0, 0, 0.16), 0 2px 10px rgba(0, 0, 0, 0.12);
}

/* Styles personnalisés pour SOCOPRAVEC */
.bg-socopravec {
  background-color: #154854;
}

.text-socopravec {
  color: #154854;
}

.btn-socopravec {
  background-color: #154854;
  color: white;
}

.btn-socopravec:hover {
  background-color: #0d3540;
  color: white;
}

section {
  padding: 60px 0;
}

section h1 {
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

section h1:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: #154854;
}

footer {
  padding: 20px 0;
}

/* Styles pour centrer le texte h1 après dans toutes les sections */
section h1.text-center:after {
  left: 50%;
  transform: translateX(-50%);
}

/* Styles pour les cards */
.card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Style pour les liens du footer */
footer a.text-white {
  text-decoration: none;
  transition: opacity 0.3s;
}

footer a.text-white:hover {
  opacity: 0.8;
}

/* Amélioration du style des témoignages */
#testimonialCarousel .card {
  max-width: 700px;
  margin: 0 auto;
  border: none;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
} 

/* Animations au scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Délai progressif pour les éléments dans une grille */
.row > div:nth-child(1) .animate-on-scroll {
    transition-delay: 0.1s;
}

.row > div:nth-child(2) .animate-on-scroll {
    transition-delay: 0.2s;
}

.row > div:nth-child(3) .animate-on-scroll {
    transition-delay: 0.3s;
}

/* Formulaire de contact */
.form-control:focus {
    border-color: #154854;
    box-shadow: 0 0 0 0.2rem rgba(21, 72, 84, 0.25);
}

.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Material Design Elements */
.bg-socopravec-green {
  background-color: var(--socopravec-green);
}

.bg-socopravec-yellow {
  background-color: var(--socopravec-yellow);
}

.bg-socopravec-red {
  background-color: var(--socopravec-red);
}

.text-socopravec-green {
  color: var(--socopravec-green);
}

.text-socopravec-yellow {
  color: var(--socopravec-yellow);
}

.text-socopravec-red {
  color: var(--socopravec-red);
}

/* Material Design Buttons */
.btn-socopravec-green {
  background-color: var(--socopravec-green);
  color: white;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: var(--socopravec-shadow);
  transition: all 0.3s ease;
  border: none;
  padding: 10px 16px;
}

.btn-socopravec-green:hover {
  background-color: #157f31;
  color: white;
  box-shadow: 0 5px 11px rgba(0, 0, 0, 0.18), 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-socopravec-yellow {
  background-color: var(--socopravec-yellow);
  color: var(--socopravec-dark);
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: var(--socopravec-shadow);
  transition: all 0.3s ease;
  border: none;
  padding: 10px 16px;
}

.btn-socopravec-yellow:hover {
  background-color: #e0b400;
  color: var(--socopravec-dark);
  box-shadow: 0 5px 11px rgba(0, 0, 0, 0.18), 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-socopravec-red {
  background-color: var(--socopravec-red);
  color: white;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: var(--socopravec-shadow);
  transition: all 0.3s ease;
  border: none;
  padding: 10px 16px;
}

.btn-socopravec-red:hover {
  background-color: #c4171e;
  color: white;
  box-shadow: 0 5px 11px rgba(0, 0, 0, 0.18), 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Material Design Cards */
.card {
  border-radius: 4px;
  border: none;
  box-shadow: var(--socopravec-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 17px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19);
}

.card .card-header {
  border-bottom: none;
}

.card .card-footer {
  border-top: none;
  background-color: transparent;
}

/* Material Design Inputs */
.form-control {
  border-radius: 0;
  border: none;
  border-bottom: 2px solid #ddd;
  padding: 12px 8px;
  background-color: transparent;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: var(--socopravec-green);
  box-shadow: none;
}

.form-label {
  color: #757575;
  font-size: 14px;
  font-weight: 500;
}

/* Section Headers with Material Design */
section {
  padding: 60px 0;
}

section h1 {
  font-weight: 300;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
  color: var(--socopravec-dark);
}

section h1:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--socopravec-green);
}

section h1.accent-yellow:after {
  background-color: var(--socopravec-yellow);
}

section h1.accent-red:after {
  background-color: var(--socopravec-red);
}

section h1.text-center:after {
  left: 50%;
  transform: translateX(-50%);
}

/* Navbar Material Design */
.navbar {
  box-shadow: var(--socopravec-shadow);
  transition: transform 0.3s ease-in-out;
}

.navbar-hide {
  transform: translateY(-100%);
}

.navbar-dark.bg-socopravec-green .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  /* text-transform: lowercase; */
  letter-spacing: 0.5px;
  padding: 12px 16px;
  transition: all 0.3s;
}

.navbar-dark.bg-socopravec-green .navbar-nav .nav-link:hover,
.navbar-dark.bg-socopravec-green .navbar-nav .nav-link:focus {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Carousel with Overlay */
.hero-carousel {
  position: relative;
  height: 80vh;
  min-height: 500px;
  margin-top: 56px;
  overflow: hidden;
}

.hero-carousel .carousel-item {
  height: 80vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
}

.hero-carousel .carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.hero-carousel .carousel-caption {
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
}

.hero-carousel .carousel-caption h1 {
  font-size: 3.5rem;
  font-weight: 300;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-carousel .carousel-caption p {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 25px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-carousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 8px;
}

/* Hero Carousel Styles */
.hero-carousel {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.hero-carousel .carousel-item {
  height: 80vh;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.carousel-caption {
  bottom: 20%;
  padding-left: 5%;
  padding-right: 5%;
  text-align: center;
}

.carousel-caption h1 {
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
  font-size: 1.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-btn {
  padding: 10px 25px;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .carousel-caption {
      bottom: 15%;
  }
  
  .carousel-caption h1 {
      font-size: 2.5rem;
  }
  
  .carousel-caption p {
      font-size: 1.2rem;
  }
  
  /* Show carousel captions on mobile */
  .carousel-caption.d-none.d-md-block {
      display: block !important;
  }
}

/* For very small screens */
@media (max-width: 576px) {
  .carousel-caption h1 {
      font-size: 1.8rem;
  }
  
  .carousel-caption p {
      font-size: 1rem;
  }
  
  .hero-btn {
      padding: 8px 16px;
      font-size: 0.9rem;
  }
}

/* Styles globaux pour tous les boutons et liens sauf footer */
.btn,
button:not(.navbar-toggler):not(.carousel-control-prev):not(.carousel-control-next),
a:not(.navbar-brand):not(.navbar-toggler):not(footer a) {
  background-color: var(--socopravec-green) !important;
  color: white !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
}

.btn:hover,
button:not(.navbar-toggler):not(.carousel-control-prev):not(.carousel-control-next):hover,
a:not(.navbar-brand):not(.navbar-toggler):not(footer a):hover {
  background-color: var(--socopravec-yellow) !important;
  color: var(--socopravec-dark) !important;
}

/* Exception pour les liens de la navbar qui ont déjà un style spécifique */
.navbar-nav .nav-link {
  background-color: transparent !important;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Boutons avec des classes spécifiques */
.btn-socopravec,
.btn-socopravec-green,
.btn-socopravec-red,
.hero-btn {
  background-color: var(--socopravec-green) !important;
  color: white !important;
}

.btn-socopravec:hover,
.btn-socopravec-green:hover,
.btn-socopravec-red:hover,
.hero-btn:hover {
  background-color: var(--socopravec-yellow) !important;
  color: var(--socopravec-dark) !important;
}

/* Separator for footer sections */
.footer-separator {
  border: none;
  border-top: 3.5px solid rgba(255,255,255,0.25);
  width: 100%;
}

@media (min-width: 768px) {
  .footer-separator {
    margin: 0 20px;
    width: auto;
  }
}

