/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Template: astra
Author: Brainstorm Force
Author URI: https://wpastra.com/about/
Description: Astra Child Theme
Version: 1.0.0
*/

/* Import de la police Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* ========================================
   CSS FICHE PISCINE - Version forcée
   ======================================== */

.mpi-article {
    --primary-blue: #2c3b9b;
    --link-blue: #00b3ff;
    --text-dark: #090F43;
    --highlight-light: #dcf4ff;
    max-width: 800px;
    margin: 30px auto !important;
    color: var(--text-dark) !important;
    line-height: 1.7 !important;
    font-family: 'Poppins', sans-serif !important;
}

.mpi-article * {
    box-sizing: border-box;
}

.mpi-article h1 {
    font-size: 35px !important;
    color: #2c3b9b !important;
    margin: 0 0 30px !important;
    font-weight: 700 !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #2c3b9b !important;
    font-family: 'Poppins', sans-serif !important;
}

.mpi-article h2 {
    font-size: 28px !important;
    color: #2c3b9b !important;
    margin: 40px 0 20px !important;
    font-weight: 700 !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #2c3b9b !important;
    font-family: 'Poppins', sans-serif !important;
}

.mpi-article p { 
    margin: 15px 0 !important; 
    line-height: 1.8 !important;
    color: #333 !important;
}

.mpi-article a {
    color: #00b3ff !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
    transition: color 0.2s;
}

.mpi-article a:hover { 
    color: #2c3b9b !important; 
}

.mpi-article .mpi-info-box {
    background: #f8f9fa !important;
    border-left: 4px solid #00b3ff !important;
    padding: 20px !important;
    margin: 25px 0 !important;
    border-radius: 5px !important;
}

.mpi-article .mpi-info-item {
    margin: 12px 0 !important;
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
}

.mpi-article .mpi-info-label {
    font-weight: 700 !important;
    color: #2c3b9b !important;
    min-width: 120px !important;
    margin-right: 10px !important;
}

.mpi-article .mpi-info-value {
    color: #090F43 !important;
    flex: 1;
}

.mpi-article .mpi-phone-link {
    background-color: #00b3ff !important;
    color: white !important;
    text-decoration: none !important;
    padding: 8px 20px !important;
    border-radius: 5px !important;
    font-weight: 700 !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 5px rgba(0, 179, 255, 0.3) !important;
}

.mpi-article .mpi-phone-link:hover {
    background-color: #2c3b9b !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 179, 255, 0.4) !important;
}

.mpi-article .mpi-phone-inline {
    color: #00b3ff !important;
    font-weight: 700 !important;
}

/* ========================================
   SECTION GOOGLE MAP EMBED
   ======================================== */

.mpi-article .mpi-map-section {
    margin: 40px 0 !important;
}

.mpi-article .mpi-map-section h2 {
    font-size: 28px !important;
    color: #2c3b9b !important;
    margin: 0 0 20px !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #2c3b9b !important;
    padding-bottom: 10px !important;
}

.mpi-article .mpi-map-wrapper {
    position: relative !important;
    padding-bottom: 56.25% !important; /* Ratio 16:9 responsive */
    height: 0 !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    background: #f8f9fa !important;
}

.mpi-article .mpi-map-wrapper iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 12px !important;
}

/* ========================================
   FIN SECTION GOOGLE MAP
   ======================================== */

.mpi-article .mpi-horaires-box {
    background: #f8f9fa !important;
    padding: 20px !important;
    margin: 20px 0 !important;
    border-radius: 5px !important;
    border-left: 4px solid #00b3ff !important;
}

.mpi-article .mpi-horaires-content {
    font-size: 1em !important;
    line-height: 1.8 !important;
    color: #555 !important;
    white-space: pre-line !important;
}

.mpi-article .mpi-table-responsive {
    overflow-x: auto !important;
    margin: 30px 0 !important;
}

.mpi-article .mpi-table {
    width: 100% !important;
    border-collapse: collapse !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    min-width: 500px !important;
}

.mpi-article .mpi-table thead {
    background: #2c3b9b !important;
    color: white !important;
}

.mpi-article .mpi-table th {
    padding: 15px !important;
    text-align: left !important;
    font-weight: 700 !important;
    color: white !important;
}

.mpi-article .mpi-table td {
    padding: 15px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    vertical-align: top !important;
}

.mpi-article .mpi-table tbody tr:nth-child(even) {
    background: #f8f9fa !important;
}

.mpi-article .mpi-table tbody tr:hover {
    background: #dcf4ff !important;
}

.mpi-article .mpi-price {
    font-weight: 700 !important;
    color: #2c3b9b !important;
    font-size: 1.1em !important;
}

.mpi-article .mpi-description-box {
    background: #f8f9fa !important;
    border-left: 4px solid #00b3ff !important;
    padding: 20px !important;
    margin: 20px 0 !important;
    border-radius: 5px !important;
}

.mpi-article .mpi-description-box p {
    margin: 0 !important;
    line-height: 1.8 !important;
    color: #555 !important;
}

.mpi-article .mpi-location-box {
    background: #2c3b9b !important;
    padding: 25px !important;
    margin: 30px 0 !important;
    border-radius: 8px !important;
    color: white !important;
}

.mpi-article .mpi-coordinates-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 20px !important;
    margin-top: 10px !important;
}

.mpi-article .mpi-coordinate-item {
    background-color: rgba(255,255,255,0.1) !important;
    padding: 15px !important;
    border-radius: 5px !important;
    border-left: 3px solid #00b3ff !important;
}

.mpi-article .mpi-coordinate-label {
    display: block !important;
    color: #00b3ff !important;
    font-weight: 700 !important;
    margin-bottom: 5px !important;
    font-size: 0.9em !important;
}

.mpi-article .mpi-coordinate-value {
    display: block !important;
    font-size: 1.1em !important;
    font-weight: 600 !important;
    color: white !important;
}

.mpi-article .mpi-expert-box {
    background: #dcf4ff !important;
    border-left: 5px solid #00b3ff !important;
    padding: 20px !important;
    border-radius: 5px !important;
    margin: 25px 0 !important;
}

.mpi-article .mpi-expert-box strong {
    color: #2c3b9b !important;
}

/* ========================================
   INTERNAL LINKING - Nouveau design
   ======================================== */

/* Liens catégories après Informations Pratiques */
.mpi-category-links-box {
    background: #dcf4ff !important;
    padding: 15px 20px !important;
    margin: 25px 0 !important;
    border-radius: 5px !important;
    border-left: 4px solid #00b3ff !important;
}

.mpi-category-links-box p {
    margin: 8px 0 !important;
}

.mpi-category-inline-link {
    color: #2c3b9b !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: color 0.2s !important;
}

.mpi-category-inline-link:hover {
    color: #00b3ff !important;
    text-decoration: underline !important;
}

/* Section footer département (liste inline) */
.mpi-dept-footer {
    margin: 50px 0 30px !important;
    padding: 25px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    border-top: 3px solid #2c3b9b !important;
}

.mpi-dept-footer h2 {
    color: #2c3b9b !important;
    font-size: 24px !important;
    margin: 0 0 15px !important;
    font-weight: 700 !important;
    border: none !important;
    padding: 0 !important;
}

.mpi-dept-inline-links {
    line-height: 2 !important;
    margin: 0 !important;
}

.mpi-dept-inline-links a {
    color: #00b3ff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.2s !important;
}

.mpi-dept-inline-links a:hover {
    color: #2c3b9b !important;
    text-decoration: underline !important;
}

/* ========================================
   AUTRES PISCINES MÊME VILLE - FIX
   ======================================== */

.mpi-ville-section {
    margin: 40px 0 !important;
}

/* Box "autres piscines" même ville */
.mpi-ville-section .mpi-city-pool-card {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  background: #f3f3f3 !important;
  border-radius: 16px !important;
  padding: 18px 22px !important;
  font-family: 'Poppins', sans-serif !important;
  max-width: 900px !important;
  margin-bottom: 18px !important;
}

.mpi-ville-section .mpi-city-pool-image-wrapper {
  flex-shrink: 0 !important;
}

.mpi-ville-section .mpi-city-pool-image-wrapper img {
  width: 190px !important;
  height: 140px !important;
  border-radius: 16px !important;
  object-fit: cover !important;
  display: block !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18) !important;
}

.mpi-ville-section .mpi-city-pool-content {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.mpi-ville-section .mpi-city-pool-title {
  margin: 0 !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #2c3b9b !important;
  font-family: 'Poppins', sans-serif !important;
}

.mpi-ville-section .mpi-city-pool-title a {
  color: inherit !important;
  text-decoration: none !important;
  font-family: 'Poppins', sans-serif !important;
}

.mpi-ville-section .mpi-city-pool-title a:hover {
  text-decoration: underline !important;
}

.mpi-ville-section .mpi-city-pool-address {
  margin: 0 !important;
  font-size: 1rem !important;
  color: #555 !important;
}

.mpi-ville-section .mpi-city-pool-phone {
  margin-top: 6px !important;
  display: inline-block !important;
  padding: 8px 20px !important;
  background-color: #00b3ff !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: 0 3px 8px rgba(0,179,255,0.4) !important;
  transition: all 0.2s ease !important;
}

.mpi-ville-section .mpi-city-pool-phone:hover {
  background-color: #2c3b9b !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25) !important;
  transform: translateY(-1px) !important;
}

/* ========================================
   PAGE ARCHIVE MARQUE CUSTOM
   ======================================== */

.marque-archive-custom {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 40px 20px;
}

/* En-tête */
.marque-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 3px solid #2c3b9b;
}

.marque-header h1 {
    font-size: 2.5em !important;
    color: #2c3b9b !important;
    margin: 0 0 15px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    border: none !important;
    padding: 0 !important;
}

.marque-description {
    font-size: 1.1em;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Grille produits */
.marque-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
    margin-bottom: 50px;
}

/* Card produit */
.marque-product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.marque-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

/* Image */
.marque-product-card .product-thumbnail {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    height: 280px;
}

.marque-product-card .product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.marque-product-card:hover .product-thumbnail img {
    transform: scale(1.1);
}

/* Contenu card */
.product-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Titre */
.marque-product-card .product-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.4em !important;
    font-weight: 700 !important;
    font-family: 'Poppins', sans-serif !important;
    color: #2c3b9b !important;
    line-height: 1.3 !important;
    border: none !important;
}

.marque-product-card .product-title a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.marque-product-card .product-title a:hover {
    color: #00b3ff !important;
}

/* Bouton "Voir le produit" - ALIGNÉ À GAUCHE */
.marque-product-card .btn-voir-produit {
    display: inline-block;
    padding: 12px 30px;
    background: #00b3ff;
    color: white !important;
    text-align: center;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s;
}

.marque-product-card .btn-voir-produit:hover {
    background: #2c3b9b;
    transform: translateY(-2px);
}

/* ========================================
   RATING BOX SIMPLIFIÉE DANS CARDS MARQUE
   ======================================== */

.mpi-rating-simple {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.mpi-rating-simple:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.mpi-rating-label {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #2c3b9b !important;
    font-family: 'Poppins', sans-serif !important;
    border: none !important;
    line-height: 1.3 !important;
}

.mpi-score-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 8px;
    padding: 8px 14px;
    display: flex;
    align-items: baseline;
    gap: 2px;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.25);
    transition: all 0.2s ease;
}

.mpi-rating-simple:hover .mpi-score-badge {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.35);
}

.mpi-score-number {
    font-size: 22px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.mpi-score-max {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1;
}

/* Pagination */
.marque-archive-custom .pagination {
    margin-top: 50px;
    text-align: center;
}

.marque-archive-custom .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #f8f9fa;
    color: #2c3b9b;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.2s;
}

.marque-archive-custom .page-numbers:hover,
.marque-archive-custom .page-numbers.current {
    background: #2c3b9b;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .mpi-article h1 { font-size: 28px !important; }
    .mpi-article h2 { font-size: 24px !important; }
    .mpi-article .mpi-info-item { flex-direction: column !important; }
    .mpi-article .mpi-info-label { margin-bottom: 5px !important; }
    .mpi-article .mpi-table { font-size: 0.9em !important; }
    .mpi-article .mpi-coordinates-grid { grid-template-columns: 1fr !important; }
    
    /* Map responsive mobile */
    .mpi-article .mpi-map-wrapper {
        padding-bottom: 75% !important;
    }
    
    /* Page marque responsive */
    .marque-products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .marque-header h1 {
        font-size: 2em !important;
    }
    
    .marque-product-card .product-thumbnail {
        height: 220px;
    }
}

@media (max-width: 480px) {
  .mpi-rating-simple {
    padding: 12px 15px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .mpi-rating-label {
    font-size: 14px !important;
  }
  
  .mpi-score-badge {
    padding: 7px 12px;
  }
  
  .mpi-score-number {
    font-size: 20px;
  }
  
  .mpi-score-max {
    font-size: 13px;
  }
}

@media (max-width: 700px) {
  .mpi-ville-section .mpi-city-pool-card {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .mpi-ville-section .mpi-city-pool-image-wrapper img {
    width: 100% !important;
    max-width: 320px !important;
    height: auto !important;
  }
}
/* ========================================
   SECTION AUTRES MARQUES
   ======================================== */

.autres-marques-section {
    margin: 60px 0 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border-top: 3px solid #2c3b9b;
}

.autres-marques-section h3 {
    font-size: 1.5em !important;
    color: #2c3b9b !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    font-weight: 700 !important;
    font-family: 'Poppins', sans-serif !important;
    border: none !important;
}

.autres-marques-section .marques-links {
    line-height: 2 !important;
    margin: 0 !important;
}

.autres-marques-section .marques-links a {
    color: #00b3ff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.2s !important;
    font-size: 1em !important;
}

.autres-marques-section .marques-links a:hover {
    color: #2c3b9b !important;
    text-decoration: underline !important;
}
/* ========================================
   STYLES PAGE MARQUE
   ======================================== */

/* Header + Logo */
.marque-header-custom {
    margin-bottom: 20px;
}

.marque-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.marque-h1 {
    font-size: 32px;
    font-weight: 700;
    color: #090F43;
    margin: 0;
    flex: 1;
}

.marque-logo {
    flex-shrink: 0;
}

.marque-logo img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

/* Breadcrumbs */
.marque-breadcrumbs {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.marque-breadcrumbs a {
    color: #00b3ff;
    text-decoration: none;
}

.marque-breadcrumbs a:hover {
    text-decoration: underline;
}

/* Description */
.marque-description-section {
    margin-bottom: 25px;
}

/* Tableau et FAQ (tu garderas le HTML sans le <style>) */
.marque-tableau-section,
.marque-faq-section {
    margin-bottom: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .marque-header-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .marque-h1 {
        font-size: 24px;
    }
    
    .marque-logo img {
        width: 150px;
        height: 150px;
    }
}
