/* ============================================================
   POPUPS — ÉCHO DU VIDE
   Fichier : assets/css/popup.css

   TABLE DES MATIÈRES
   ──────────────────────────────────────────────────────────
   01. POPUP ACHAT CONSOLE
       1.1 Overlay
       1.2 Boîte intérieure
       1.3 En-tête (titre + fermeture)
       1.4 Étape 1 — Choix du format
       1.5 Étape 2A — Format dématérialisé
       1.6 Étape 2B — Format physique (revendeurs)
       1.7 Bouton CTA "Partez à l'aventure"
   02. POPUP CONTACT
       2.1 Overlay
       2.2 Boîte intérieure
       2.3 En-tête
       2.4 Formulaire
       2.5 Messages de retour
       2.6 Notice RGPD
   ============================================================ */


/* ============================================================
   01. POPUP ACHAT CONSOLE
   ============================================================ */

/* ── 1.1 Overlay ── */

/**
 * Fond sombre couvrant tout l'écran.
 * Caché par défaut, affiché en flex quand la classe "active" est ajoutée.
 * Partagé entre la page d'accueil et la page achat (ID:36).
 */
.shop-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.shop-popup-overlay.active {
    display: flex;
}

/* ── 1.2 Boîte intérieure ── */

/**
 * Conteneur principal de la popup.
 * max-height + overflow-y pour éviter le débordement sur petits écrans.
 */
.shop-popup-inner {
    position: relative;
    background: #000C26;
    border: 4px solid #FF00D9;
    border-radius: 8px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 50px #FF00D9;
}

/* ── 1.3 En-tête ── */

/* Titre de la popup — mis à jour dynamiquement par JS */
.shop-popup-inner h3 {
    color: #ffffff !important;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* Bouton fermeture — croix positionnée en haut à droite */
.shop-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #FF00D9;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}

.shop-popup-close:hover {
    color: #ffffff;
}

/* Bouton retour — visible uniquement à l'étape physique (géré par JS) */
.shop-back-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    margin-bottom: 1rem;
    padding: 0;
}

.shop-back-btn:hover {
    color: #ffffff;
}

/* ── 1.4 Étape 1 — Choix du format ── */

/* Texte descriptif */
.shop-popup-desc {
    color: #ffffff;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Conteneur des deux boutons format */
.shop-format-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Bouton format — dématérialisé ou physique */
.shop-format-btn {
    background: #22387C;
    border: 4px solid #FF00D9;
    border-radius: 8px;
    color: #ffffff;
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
    cursor: pointer;
    flex: 1;
    transition: background 0.2s, border-color 0.2s;
}

.shop-format-btn:hover {
    background: #E8A500;
    border-color: #FFD775;
}

/* ── 1.5 Étape 2A — Format dématérialisé ── */

/* Texte descriptif commun aux étapes 2A et 2B */
.shop-step-desc {
    color: #fdfdfd;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* ── 1.6 Étape 2B — Format physique (revendeurs) ── */

/* Liste des revendeurs */
.shop-retailers {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

/* Ligne revendeur — label cliquable avec radio button */
.shop-retailer-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #22387C;
    border: 3px solid #FF00D9;
    border-radius: 6px;
    padding: 1rem;
    cursor: pointer;
    color: #ffffff;
    font-size: 1.2rem;
    transition: background 0.2s, border-color 0.2s;
}

/* État sélectionné — mis en surbrillance or */
.shop-retailer-item:has(input[type="radio"]:checked) {
    background: #E8A500;
    border-color: #FFD775;
    box-shadow: 0 0 12px rgba(255, 215, 117, 0.4);
    transform: scale(1.02);
}

.shop-retailer-item:hover {
    background: #E8A500;
    border-color: #FFD775;
}

/* Radio button — accent magenta */
.shop-retailer-item input[type="radio"] {
    accent-color: #FF00D9;
    width: 16px;
    height: 16px;
}

/* ── 1.7 Bouton CTA "Partez à l'aventure" ── */

/**
 * Bouton principal — couleur or.
 * .shop-cta-disabled le grise tant qu'aucun revendeur n'est sélectionné.
 */
.shop-cta-btn {
    display: block;
    background: #E8A500;
    border: 4px solid #FFD775;
    border-radius: 40px;
    color: #ffffff !important;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s;
}

.shop-cta-btn:hover {
    background: #c98e00;
}

/* État désactivé — en attente de sélection d'un revendeur */
.shop-cta-disabled {
    opacity: 0.4;
    pointer-events: none;
}


/* ============================================================
   02. POPUP CONTACT
   ============================================================ */

/* ── 2.1 Overlay ── */

/**
 * Fond sombre couvrant tout l'écran.
 * Même principe que la popup achat — classe "active" gérée par JS.
 */
.contact-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.contact-popup-overlay.active {
    display: flex;
}

/* ── 2.2 Boîte intérieure ── */

/**
 * Conteneur principal — bords arrondis + bordure magenta.
 * max-height + overflow-y pour les petits écrans.
 */
.contact-popup-inner {
    position: relative;
    background: #0d1b3e;
    border: 4px solid #ff00d9;
    border-radius: 40px;
    padding: 40px;
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 50px rgb(255, 0, 217);
}

/* ── 2.3 En-tête ── */

/* Titre de la popup */
.contact-popup-inner h3 {
    color: #fff;
    font-family: 'Ethnocentric', sans-serif;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 0.05em;
}

/* Bouton fermeture — croix positionnée en haut à droite */
.contact-popup-close {
    position: absolute;
    top: 18px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.contact-popup-close:hover {
    opacity: 1;
}

/* ── 2.4 Formulaire ── */

/* Conteneur des champs */
.contact-form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Chaque champ (label + input) */
.contact-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Label */
.contact-form-field label {
    color: #fff;
    font-family: 'Futura LT', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Input et textarea */
.contact-form-field input,
.contact-form-field textarea {
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 0, 217, 0.4);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff !important;
    font-family: 'Futura LT', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    resize: none;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
    border-color: #ff00d9;
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* Bouton d'envoi */
.contact-form-submit {
    margin-top: 8px;
    background: #22387C;
    border: 4px solid #ff00d9;
    border-radius: 40px;
    color: #fff;
    font-family: 'Futura LT', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 14px 30px;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.2s, transform 0.2s;
}

.contact-form-submit:hover {
    background: #ff00d9;
    transform: scale(1.02);
}

.contact-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ── 2.5 Messages de retour ── */

/* Message de succès — vert */
.contact-form-success {
    color: #4cff91;
    font-family: 'Futura LT', sans-serif;
    text-align: center;
    padding: 10px 0;
}

/* Message d'erreur — rouge */
.contact-form-error {
    color: #ff4c4c;
    font-family: 'Futura LT', sans-serif;
    text-align: center;
    padding: 10px 0;
}

/* ── 2.6 Notice RGPD ── */

.contact-form-rgpd {
    font-size: 0.72rem;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.contact-form-rgpd strong {
    font-weight: 500;
    color: #fefefe;
}

.contact-form-rgpd a {
    color: #4a90d9;
    text-decoration: underline;
    opacity: 0.8;
}

.contact-form-rgpd a:hover {
    opacity: 1;
}