/* ===== VARIABLES & BASE FOOTER ===== */
:root {
  --footer-text-color   : #e0e0e0;
  --footer-bg-color     : #25375f;
  --footer-title-color  : #ffffff;
  --footer-link-color   : #b0bec5;
  --footer-link-hover   : #ffffff;
  --footer-divider      : rgba(255,255,255,0.1);
  --accent-color        : #6366f1;
  --transition-speed    : .3s;
  --transition-timing   : ease-in-out;
}

.landing-footer {
  color: var(--footer-text-color);
  font-size: .95rem;
  line-height: 1.6;
  background: var(--footer-bg-color);
  position: relative;
  overflow: hidden;
}

.plachedor {
  background: var(--footer-bg-color);
}

/* Top & bottom */
.footer-top {
  padding: 4rem 0 3rem;
}

.footer-bottom {
  border-top: 1px solid var(--footer-divider);
  padding: 2rem 0;
}

/* Titles */
.footer-title {
  color: var(--footer-title-color);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  transition: transform var(--transition-speed) var(--transition-timing);
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0px;
  height: 2px;
  background: var(--accent-color);
  transition: width var(--transition-speed) var(--transition-timing);
}

.footer-title:hover {
  transform: translateX(5px);
}

.footer-title:hover::after {
  width: 50px;
}
.border2 {
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Variantes avec différentes opacités */
.border2-light {
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.border2-medium {
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
}


/* Links */
.footer-link {
  color: var(--footer-link-color);
  text-decoration: none;
   position: relative; 
   transition: all var(--transition-speed) var(--transition-timing); 
   display: inline-block; 
}

.footer-link:hover {
  color: var(--footer-link-hover);
  transform: translateX(3px);
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--footer-link-hover);
  transition: width var(--transition-speed) var(--transition-timing);
}

.footer-link:hover::after {
  width: 100%;
}

/* Texte */
.footer-text {
  color: var(--footer-text-color);
  opacity: .9;
 
}

/* Description logo responsive */
.footer-logo-description {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Form newsletter responsive */
#newsletter-form {
  width: 100%;
}

#newsletter-form .position-relative {
  min-width: 200px;
}

/* Styles pour l'effet de label flottant */
#email-input:focus {
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
  outline: none !important;
}

#email-input:focus + label,
#email-input:valid + label {
  top: 0 !important;
  transform: translateY(-50%) scale(0.85) !important;
  color: #0d6efd !important;
  font-weight: 500 !important;
}

#email-input:not(:placeholder-shown) + label {
  top: 0 !important;
  transform: translateY(-50%) scale(0.85) !important;
  color: #6c757d !important;
}

/* Responsive Footer */
@media screen and (max-width: 992px) {
  .footer-top {
    padding: 3rem 0 2rem;
  }
  
  .footer-title {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }
  
  .landing-footer {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 768px) {
  .footer-top {
    padding: 2.5rem 0 1.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 0;
  }
  
  .footer-bottom > * {
    margin-bottom: 1rem;
  }
  
  .footer-title {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  
  .footer-logo-description {
    font-size: 0.85rem;
  }
  
  .landing-footer {
    font-size: 0.85rem;
  }
  
  #newsletter-form {
    flex-direction: column;
    gap: 15px;
  }
  
  #newsletter-form .position-relative {
    min-width: 100%;
  }
  
  #newsletter-form .btn {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .footer-top {
    padding: 2rem 0 1rem;
  }
  
  .footer-bottom {
    padding: 1rem 0;
  }
  
  .footer-title {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }
  
  .footer-logo-description {
    font-size: 0.8rem;
    line-height: 1.4;
  }
  
  .landing-footer {
    font-size: 0.8rem;
  }
  
  .footer-title:hover {
    transform: none;
  }
  
  .footer-link:hover {
    transform: none;
  }
  .Margin-start-scren-min{
       margin-left: 50px;
       
  }
  .input-responsive{
      max-width:  300px;
  }
  .bouton-responsive{
    max-width: 200px;
     justify-content: center; 
     margin-top: 5px;
  }
  
}  
/* pop up */
.newsletter-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px); 
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.newsletter-popup {
  background: #ffffff;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.newsletter-popup-content {
  padding: 2rem;
}

.newsletter-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 2rem;
}

.newsletter-icon-img {
  width: 40px;
  height: 40px;
  margin-right: 0.5rem;
}

.newsletter-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000000; /* Changé en noir */
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  color: #495057;
  font-size: 1.1rem;
  z-index: 2;
}

.form-input {
  width: 100%;
  padding: 1rem 1rem 0.5rem 2.8rem;
  border: 2px solid #ced4da;
  border-radius: 8px;
  background: transparent;
  color: #000000;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: #000000;
}

/* CORRECTION : Ajouter .select-label aux sélecteurs d'animation */
.form-input:focus + .form-label,
.form-input:valid + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-select:focus + .form-label,
.form-select:valid + .form-label,
.form-select:not([value=""]) + .form-label,
.form-select:focus + .select-label,
.form-select:valid + .select-label,
.form-select:not([value=""]) + .select-label {
  top: 8px;
  transform: translateY(-20px);
  font-size: 0.75rem;
  color: #000000;
}

.select-container {
  position: relative;
  display: flex;
  align-items: center;
}

.form-select {
  width: 100%;
  padding: 1rem 1rem 0.5rem 2.8rem;
  border: 2px solid #ced4da;
  border-radius: 8px;
  background: #ffffff;
  color: #000000;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23495057' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

.form-select:focus {
  border-color: #000000;
}

.form-select option {
  background: #ffffff;
  color: #000000;
}

/* CORRECTION : Uniformiser le style des labels */
.select-label,
.form-label {
  position: absolute;
  left: 2.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #495057;
  font-size: 1rem;
  transition: all 0.3s ease;
  pointer-events: none;
  background: #ffffff;
  padding: 0 4px;
  z-index: 1;
}

/* Supprimer la duplication inutile */
/*
.form-label {
  position: absolute;
  left: 2.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #495057;
  font-size: 1rem;
  transition: all 0.3s ease;
  pointer-events: none;
  background: #ffffff;
  padding: 0 4px;
}
*/

.form-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-cancel-1,
.btn-primary-1 {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-cancel-1 {
  background: transparent;
  color: #495057;
  border: 1px solid #495057; /* Toujours 1px solid */
  box-sizing: border-box; /* Important pour éviter le déplacement */
}

.btn-cancel-1:hover {
  background: #fd9210; 
  color: white;
  color: white;
  border: 1px solid #fd9210;; /* Même bordure au survol */
}

.btn-primary-1 {
  background: #3184ff ;
  color: white;
}

.btn-primary-1:hover {
  background: #0167ff ;
}

/* Responsive Design */
@media (max-width: 576px) {
  .newsletter-popup {
    width: 95%;
    margin: 1rem;
  }
  
  .newsletter-popup-content {
    padding: 1.5rem;
  }
  
  .newsletter-brand {
    font-size: 1.25rem;
  }
  
  .newsletter-icon-img {
    width: 35px;
    height: 35px;
  }
  
  .form-buttons {
    flex-direction: column;
  }
  
  .btn-cancel-1,
  .btn-primary-1 {
    padding: 0.875rem 1rem;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .newsletter-popup {
    max-height: 85vh;
  }
  
  .newsletter-popup-content {
    padding: 1.25rem;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  .newsletter-popup {
    max-width: 450px;
  }
}
/* mention legal  */
.legal-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.legal-popup-overlay.legal-popup-active {
    opacity: 1;
    visibility: visible;
}

.legal-popup-container {
    position: absolute;
    right: 20px;
    bottom: 80px;
    width: 320px;
    max-width: 90vw;
    background: var(--footer-bg-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--bs-border-color, #dee2e6);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    overflow: hidden;
}

.legal-popup-overlay.legal-popup-active .legal-popup-container {
    transform: translateY(0) scale(1);
}

.legal-popup-header {
    padding: 16px 20px;
    background: var(--footer-bg-color);
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-popup-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #dee2e6;
}

.legal-popup-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.legal-popup-close:hover {
    background: var(--bs-danger, #dc3545);
    color: white;
}

.legal-popup-content {
    padding: 20px;
}

.legal-popup-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-popup-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08));
}

.legal-popup-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.legal-popup-icon {
    margin-right: 12px;
    font-size: 16px;
    color: var(--bs-primary, #0d6efd);
    min-width: 20px;
}

.legal-popup-link {
    text-decoration: none;
    color: #dee2e6;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    flex: 1;
}

.legal-popup-link:hover {
    color: var(--bs-primary, #0d6efd);
    text-decoration: none;
}

.legal-trigger {
    position: relative;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-popup-overlay {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 4px;
    }
    
    .legal-popup-container {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        max-width: none;
        margin: 0;
        transform: translateY(0) scale(0.95);
    }
    
    .legal-popup-overlay.legal-popup-active .legal-popup-container {
        transform: translateY(0) scale(1);
    }
    
    .legal-popup-header {
        padding: 12px 16px;
    }
    
    .legal-popup-content {
        padding: 16px;
    }
    
    .legal-popup-list li {
        padding: 6px 0;
        margin-bottom: 8px;
    }
    
    .legal-popup-icon {
        margin-right: 10px;
        font-size: 14px;
    }
    
    .legal-popup-link {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .legal-popup-container {
        right: 5px;
        bottom: 50px;
        width: 260px;
        max-width: calc(100vw - 10px);
    }
    
    .legal-popup-title {
        font-size: 14px;
    }
    
    .legal-popup-close {
        font-size: 18px;
    }
}