
/* HERO */

.hero-banner-container {
    position: relative;
    width: 100%;       /* S'étale sur toute la largeur disponible */
    max-width: 100vw;  /* S'assure de ne JAMAIS dépasser la largeur de l'écran */
    margin: 0 auto;
    overflow: hidden;  /* Coupe tout ce qui pourrait dépasser par accident */
    line-height: 0;
}
/* IMAGE S'ADAPTANT PARFAITEMENT À L'ÉCRAN */
.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
}



/* EFFET OPTIONNEL AU SURVOL (Pour que l'utilisateur sente que c'est cliquable) */
.hero-btn-overlay:hover {
    background: rgba(0, 0, 0, 0.08); /* Légère ombre au survol du bouton */
}

/* Ajustements pour les très petits écrans si nécessaire */
@media (max-width: 600px) {
    .hero-btn-overlay {
        border-radius: 4px; /* Les arrondis diminuent proportionnellement */
    }
}

/* LAYOUT */
.section{max-width:1400px;margin:0 auto;padding:36px 20px}
/* .section-title{font-size:18px;font-weight:700;color:#222;margin-bottom:22px;display:flex;align-items:center;gap:12px} */
.section-title {
    font-size: 22px;
    font-weight: 700;
    color: rgb(11 49 49); /* Ton vert en titre */
    margin-bottom: 24px;
}
.section-title::after{content:'';flex:1;height:1px;background:#ddd}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}




/* LA CARTE PRODUIT COMPLÈTE */
.card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(11, 49, 49, 0.1); /* Bordure douce avec ton vert */
    padding: 16px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

/* EFFET HOVER AVEC TA COULEUR VERTE UNIQUE */
.card:hover {
    border-color: rgb(11 49 49); /* Ton vert s'active au survol */
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(11, 49, 49, 0.05); /* Ombre diffuse verte très légère */
}

/* CONTENEUR IMAGE */
.card-img {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f7f6; /* Fond légèrement bleuté/gris assorti à la bannière */
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    padding: 10px;
}
.card-img img {
    max-height: 130px;
    max-width: 100%;
    object-fit: contain;
}

/* TEXTES & NOM PROD */
.card-name {
    font-size: 16px;
    font-weight: 700;
    color: rgb(11 49 49); /* Nom du téléphone en vert profond */
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* BADGES UNIFIÉS STYLE BANNIÈRE */
.badge {
    font-size: 10px;
    font-weight: 600;
    background: rgba(11, 49, 49, 0.08); /* Fond transparent vert doux */
    color: rgb(11 49 49);
    padding: 2px 8px;
    border-radius: 10px;
}
/* Badge Vert d'eau (pour la 5G, calqué sur le bas de ta photo) */
.badge.g {
    background: #d1fae5;
    color: #065f46;
}
/* Badge Spécial Gaming */
.badge.gm {
    background: #e0f2fe;
    color: #0369a1;
}

/* BLOC DES CARACTÉRISTIQUES */
.specs {
    background: #f8faf9;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    color: #556b6b; /* Gris tirant légèrement sur le vert */
    margin-bottom: 14px;
    line-height: 1.9;
    border: 1px solid rgba(11, 49, 49, 0.03);
}
.specs span {
    display: block;
}

/* BLOC DE PRIX */
.price-box {
    margin-top: auto;
    border-top: 1px solid #f0f4f4;
    padding-top: 10px;
}
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 4px 0;
    color: #708585;
}

/* LE PRIX FINAL APPLIQUE TON VERT */
.price-row:last-child {
    margin-top: 2px;
}
.price-row:last-child .amount {
    color: rgb(11 49 49); /* Prix final mis en valeur avec ton vert signature */
    font-size: 16px;
    font-weight: 700;
}

/* INFO SECTION */
/* BLOC D'INFORMATION PRINCIPAL */
.info-section {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(11, 49, 49, 0.1); /* Bordure alignée sur ton vert */
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(11, 49, 49, 0.02);
}

/* LE HEADER PASSE EN GRADIENT VERT DEUX TONS (Très pro) */
.info-header {
    background: linear-gradient(135deg, rgb(11 49 49) 0%, #163d3d 100%);
    padding: 24px 28px;
    border-bottom: 3px solid #10b981; /* Petit rappel vert émeraude */
}
.info-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}
.info-header p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 6px;
}

/* LE CORPS DE LA SECTION */
.info-body {
    padding: 32px 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.info-block h3 {
    font-size: 15px;
    font-weight: 700;
    color: rgb(11 49 49); /* Titre des blocs en vert profond */
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* PETITS POINTS EN VERT LUMINEUX */
.icon-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981; 
    flex-shrink: 0;
}

.info-block p, .info-block li {
    font-size: 13px;
    color: #4c5e5e; /* Gris teinté de vert pour la lisibilité */
    line-height: 1.8;
}
.info-block ul {
    padding-left: 16px;
}
.info-block li {
    margin-bottom: 5px;
    list-style-type: square; /* Puces carrées modernes */
    color: #10b981; /* Met la puce en vert */
}
.info-block li text, .info-block li {
    color: #4c5e5e; /* Garde le texte de la liste lisible */
}

/* CHIPS TÉLÉPHONE REVISITÉS */
.phone-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(11, 49, 49, 0.06); /* Fond doux */
    border: 1px solid rgba(11, 49, 49, 0.15);
    color: rgb(11 49 49); /* Texte en vert pur */
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    margin-top: 8px;
    margin-right: 6px;
}

/* CHIPS DES AGENCES (SHOWROOMS) */
.locations {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.loc-chip {
    font-size: 12px;
    background: #f4f7f6;
    border: 1px solid rgba(11, 49, 49, 0.08);
    color: #4c5e5e;
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.2s;
}
.loc-chip:hover {
    background: rgb(11 49 49);
    color: #fff;
}
.locations a.loc-chip {
    text-decoration: none; /* Supprime le soulignement */
    
    transition: all 0.2s ease;
}

/* Effet de survol sympa pour faire comprendre au client qu'il peut cliquer */
.locations a.loc-chip:hover {
    background-color: rgb(11 49 49); /* Ton vert ou var(--rouge) selon tes préférences */
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* BOUTON D'ACTION (CTA FACEBOOK) */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgb(11 49 49); /* Bouton habillé avec ta couleur */
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 16px;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(11, 49, 49, 0.15);
}
.cta-btn:hover {
    background: #163d3d; /* Version légèrement plus claire au survol */
    transform: translateY(-1px);
}

/* REPLAY RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .info-body {
        grid-template-columns: 1fr; /* Bascule sur une seule colonne sur mobile */
        gap: 24px;
    }
}

/* ==========================================
   STYLE DE LA MODALE POP-UP (GLASSMORPHISM)
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 49, 49, 0.4); /* Voile sombre teinté de ton vert */
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Classe active lancée par le JS */
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: #ffffff;
    width: 90%;
    max-width: 850px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-overlay.active .modal-container {
    transform: translateY(0);
}

/* Bouton Fermer */
.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    background: none; border: none;
    font-size: 32px; color: #777;
    cursor: pointer; transition: color 0.2s;
}
.modal-close:hover { color: rgb(11 49 49); }

/* Layout Contenu */
.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin-top: 15px;
}

/* GALERIE D'IMAGES (À gauche) */
.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.main-preview {
    background: #f4f7f6;
    border-radius: 14px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border: 1px solid rgba(11, 49, 49, 0.05);
}
.main-preview img {
    max-height: 100%; max-width: 100%;
    object-fit: contain;
}
.thumbnail-list {
    display: flex; gap: 10px;
    flex-wrap: wrap;
}
.thumb {
    width: 60px; height: 60px;
    border: 2px solid #eee;
    border-radius: 8px; cursor: pointer;
    padding: 4px; background: #fff;
    transition: all 0.2s;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb:hover, .thumb.active {
    border-color: rgb(11 49 49);
    background: #f4f7f6;
}

/* DETAILS DU PRODUIT (À droite) */
.modal-details h2 {
    font-size: 24px; color: rgb(11 49 49);
    display: flex; align-items: center; gap: 10px;
}
.modal-section-title {
    font-size: 13px; text-transform: uppercase;
    letter-spacing: 1px; color: #888;
    margin: 20px 0 10px 0; font-weight: 700;
}
.modal-specs {
    background: #f8faf9; border-radius: 12px;
    padding: 15px; border: 1px solid rgba(11, 49, 49, 0.04);
}
.modal-specs span {
    display: block; font-size: 13px;
    color: #4c5e5e; padding: 4px 0;
}

/* PRIX DANS LA MODALE */
.modal-prices {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.modal-price-card {
    background: #f4f7f6; padding: 12px;
    border-radius: 10px; text-align: center;
    border: 1px solid rgba(11, 49, 49, 0.05);
}
.modal-price-card .period { display: block; font-size: 11px; color: #666; }
.modal-price-card .value { display: block; font-size: 16px; font-weight: 700; color: #333; margin-top: 4px; }

/* Mise en avant de l'offre 12 mois */
.modal-price-card.highlight {
    background: rgb(11 49 49); border-color: rgb(11 49 49);
}
.modal-price-card.highlight .period { color: rgba(255,255,255,0.75); }
.modal-price-card.highlight .value { color: #fff; font-size: 18px; }

/* RESPONSIVE POPUP */
@media (max-width: 768px) {
    .modal-content { grid-template-columns: 1fr; gap: 20px; }
    .main-preview { height: 200px; }
}