/* ==== SECTION PRINCIPALE ==== */
.main-section {
  position: relative;
  color: #fff;
  min-height: 45vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bandeau {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.filter {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(34, 87, 130, 0.7);
}

/* ==== CONTENU PRINCIPAL (GRID 3 COLONNES) ==== */
.content {
  min-height: 600px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  padding: 2rem 5%;
  margin: 5rem auto 0;
  width: 100%;
}

/* Texte à gauche */
.text-description {
  max-width: 400px;
  text-align: left;
  justify-self: start;
}

.main-title {
  color: #fff;  
  font-size: clamp(1.4rem, 2.2vw, 2rem); 
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.text-description p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
}

/* Image centrée */
.content img {
  display: block;
  justify-self: center;  /* CENTRE DANS LA COLONNE CENTRALE */
  max-width: 600px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  transform: translateX(-50px); /* ← décale l’image vers la gauche */
}

/* Bloc prix à droite */
a.prestation-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
  justify-self: end; /* ALIGNE À DROITE */
}

.pricing-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 35px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  text-align: left;
  font-size: 1.1rem;
  width: 280px;
}

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

.pricing-card h3 {
  font-weight: 700;
  font-size: 1.2rem;
  color: #222;
  margin-bottom: 0.25rem;
}

.pricing-card .price {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c71aa;
  margin-bottom: 0.5rem;
}

.pricing-card .ht {
  font-size: 1.1rem;
  color: #666;
  font-weight: 500;
}

.pricing-card .small {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.pricing-card ul {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding: 0;
  list-style: none;
}

.pricing-card ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  color: #222;
}

.pricing-card ul li::before {
  content: "✔";
  display: inline-block;
  color: #000;
  font-weight: bold;
  font-size: 1.1rem;
}

.prestation-notice{
  margin: 0;
  font-size: 0.68rem;
}

.btn-custom {
  background-color: #2c71aa;
  border: 1px solid #2c71aad1;
  border-radius: 10px;
  padding: 8px 22px;
  font-size: 1rem;
  font-weight: 600;
  color: #ffff;
  transition: all 0.3s ease;
}

.btn-custom:hover {
  background-color: #2c71aad1;
  color: #fff;
  border: none;
}

/* ===== SECTION DETAILS ===== */

.details-section h2 {
  color: #2c71aa;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  font-size: 24px;
  text-transform: uppercase;
}
.details-section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #83D0FF;
  margin: 10px auto 0;
  border-radius: 2px;
}

.details-cards {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.detail-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 25px 30px;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.detail-card h4 {
  color: #2c71aa;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.detail-card h5 {
  color: #555;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.detail-card ul {
  list-style: disc inside;
  padding-left: 0;
  margin: 0;
  line-height: 1.8;
}

.detail-card li {
  margin-bottom: 8px;
  color: #333;
}

.red {
  color: #c0392b;
  font-weight: 500;
  font-size: 0.95rem;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 991px) {
  .content {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .content img {
    max-width: 90%;
    transform: translateX(0);
  }
  .text-description {
    text-align: center;
  }
  a.prestation-link {
    justify-self: unset;
  }
  .price-card {
    margin-top: 20px;
  }
  .details-cards {
    gap: 20px;
    padding: 0 10px;
  }
}

@media (min-width: 992px) and (max-width: 1300px) {
    .content {
        display: flex !important;
        flex-direction: row !important; 
        flex-wrap: wrap; 
        
        margin: 7rem auto 0 !important; 
        max-width: 1100px; 
        width: 95%; 
        
        align-items: flex-start !important; 
        
        justify-content: center !important; 
        
        gap: 35px; 
        padding: 2rem 1.5rem;
        
        overflow: hidden !important; 
    }
    
    .text-description {
        width: 100% !important; 
        max-width: 100% !important; 
        
        text-align: center !important;
        margin: 0 auto; 
        
        order: 1; 
        flex-basis: 100%; 
    }

    .main-title {
        font-size: 2.2rem !important;
        text-align: center !important;
        margin-top: 0; 
        width: 100%;
    }

    .content img {
        float: none !important; 
        
        max-width: 45% !important; 
        width: auto;
        
        height: auto;
        margin: 0; 
        transform: none !important;
        
        order: 2; 
        
        flex-grow: 0;
        flex-shrink: 0;
        
        margin-right: 20%; 
    }

    a.prestation-link {
        float: none !important; 
        
        max-width: 45%; 
        width: auto;
        
        display: flex !important; 
        justify-content: center !important; 
        
        order: 3; 
        
        flex-grow: 0;
        flex-shrink: 0;
    }

    .content::after, .content::before {
        content: none !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .content {
        display: flex !important;
        flex-direction: row !important; 
        flex-wrap: wrap; 
        
        margin: 7rem auto 0 !important; 
        max-width: 1100px; 
        width: 95%; 
        
        align-items: flex-start !important; 
        
        justify-content: center !important; 
        
        gap: 35px; 
        padding: 2rem 1.5rem;
        
        overflow: hidden !important; 
    }
    
    .text-description {
        width: 100% !important; 
        max-width: 100% !important; 
        
        text-align: center !important;
        margin: 0 auto; 
        
        order: 1; 
        flex-basis: 100%; 
    }

    .main-title {
        font-size: 2.2rem !important;
        text-align: center !important;
        margin-top: 0; 
        width: 100%;
    }

    .content img {
        float: none !important; 
        
        max-width: 50% !important; 
        width: auto;
        
        height: auto;
        margin: 0; 
        transform: none !important;
        
        order: 2; 
        
        flex-grow: 0;
        flex-shrink: 0;
        
    }

    a.prestation-link {
        float: none !important; 
        height: 30%;
        
        display: flex !important; 
        justify-content: center !important; 
        
        order: 3; 
        flex-grow: 0;
        flex-shrink: 0;
    }

    .content::after, .content::before {
        content: none !important;
    }
}