/* =========================================
   TARIFS.CSS — SIMULATEUR DE TARIFS
   Page spécifique : tarifs.html
   ========================================= */

/* =========================================
   1. BASE PAGE
   ========================================= */

body.page-tarifs {
    background-color: #1a1a18;
    color: #e0e0e0;
    min-height: 100vh;
}


/* =========================================
   2. NAVBAR — APPARITION IMMÉDIATE
   ========================================= */

body.page-tarifs .navbar {
    animation: slideDownNavbar 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
    pointer-events: auto;
}


/* =========================================
   3. HERO TARIFS
   ========================================= */

.tarifs-hero {
    padding: 140px 20px 60px 20px;
    text-align: center;
    position: relative;
}

.tarifs-hero .tag-pill {
    display: inline-block;
    color: var(--primary-red);
    font-family: var(--font-sub);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.tarifs-hero h1 {
    font-family: var(--font-main);
    font-size: 3rem;
    color: white;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1.1;
}

.tarifs-hero h1 .hero-red {
    color: var(--primary-red);
}

.tarifs-hero p {
    font-family: var(--font-sub);
    font-size: 1.15rem;
    color: #999;
    max-width: 550px;
    margin: 0 auto;
}


/* =========================================
   3. SECTION WIZARD PRINCIPALE
   ========================================= */

.wizard-section {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px 100px 20px;
}


/* =========================================
   4. BARRE DE PROGRESSION
   ========================================= */

.wizard-progress {
    margin-bottom: 40px;
}

.progress-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.step-bubble {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2a2a28;
    border: 2px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    color: #666;
    transition: all 0.4s ease;
}

.step-label {
    font-family: var(--font-sub);
    font-size: 0.75rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.4s ease;
    white-space: nowrap;
}

.progress-bar-line {
    flex: 1;
    height: 2px;
    background: #333;
    max-width: 120px;
    min-width: 40px;
    margin: 0 5px;
    margin-bottom: 24px; /* aligns with bubble center */
    transition: background 0.4s ease;
}

/* État actif */
.progress-step.active .step-bubble {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    box-shadow: 0 0 15px rgba(136, 29, 25, 0.4);
}
.progress-step.active .step-label { color: white; }

/* État complété */
.progress-step.completed .step-bubble {
    background: rgba(136, 29, 25, 0.2);
    border-color: var(--primary-red);
    color: var(--primary-red);
}
.progress-step.completed .step-label { color: #888; }
.progress-bar-line.completed { background: rgba(136, 29, 25, 0.5); }


/* =========================================
   5. CARTE WIZARD (CONTENEUR)
   ========================================= */

.wizard-card {
    background: #222220;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 50px 50px 40px 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    min-height: 420px;
    position: relative;
    overflow: hidden;
}


/* =========================================
   6. ÉTAPES (AFFICHAGE / MASQUAGE)
   ========================================= */

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: stepSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Quand on revient en arrière, slide depuis la gauche */
.wizard-step.active.slide-back {
    animation: stepSlideBack 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stepSlideIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes stepSlideBack {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.step-question {
    font-family: var(--font-main);
    font-size: 1.6rem;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.step-subtitle {
    font-family: var(--font-sub);
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 30px;
}


/* =========================================
   7. GRILLES D'OPTIONS
   ========================================= */

/* Grille 2 colonnes par défaut (4 ou 5 options) */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 35px;
}

/* Grille 3 colonnes (pour les étapes à 3 options) */
.options-grid-3col {
    grid-template-columns: repeat(3, 1fr);
}

.option-card {
    background: #1a1a18;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 22px 18px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    position: relative;
    user-select: none;
}

.option-card:hover {
    border-color: rgba(136, 29, 25, 0.5);
    background: #1f1f1d;
    transform: translateY(-3px);
}

.option-card.selected {
    border-color: var(--primary-red);
    background: rgba(136, 29, 25, 0.1);
    box-shadow: 0 0 20px rgba(136, 29, 25, 0.2);
}

.option-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 12px;
    width: 20px;
    height: 20px;
    background: var(--primary-red);
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 20px;
    text-align: center;
}

/* 5ème tuile : occupe toute la largeur mais reste centrée à taille d'une colonne */
.option-card-wide {
    grid-column: 1 / -1;
    justify-self: center;
    width: 50%;
    min-width: 200px;
}

/* Tuile pleine largeur (pour la tuile "Gestion complète" en featured) */
.option-card-full {
    grid-column: 1 / -1;
}

/* Tuile mise en avant — design accrocheur pour inciter le clic */
.option-card-featured {
    border-color: rgba(136, 29, 25, 0.4);
    background: rgba(136, 29, 25, 0.06);
    box-shadow: 0 0 20px rgba(136, 29, 25, 0.1);
    overflow: hidden; /* Pour le badge dans le coin */
}

.option-card-featured:hover {
    border-color: rgba(136, 29, 25, 0.65);
    box-shadow: 0 0 30px rgba(136, 29, 25, 0.2);
}

/* Badge "Recommandé" dans le coin haut-droit */
.option-card-featured::before {
    content: '⭐ Recommandé';
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-red);
    color: white;
    font-family: var(--font-sub);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 0 9px 0 9px;
    pointer-events: none;
}

/* Variante visuellement distincte pour les options "sur devis" */
.option-sur-devis {
    border-style: dashed;
    opacity: 0.7;
}
.option-sur-devis:hover, .option-sur-devis.selected {
    opacity: 1;
}

.option-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 10px;
    line-height: 1;
}

.option-card h3 {
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.option-card p {
    font-family: var(--font-sub);
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.option-card.selected h3 { color: white; }
.option-card.selected p { color: #aaa; }


/* =========================================
   8. TEXTAREA "AUTRE CHOSE"
   ========================================= */

.autre-textarea {
    width: 100%;
    min-height: 140px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    padding: 18px;
    font-family: var(--font-sub);
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.autre-textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 15px rgba(136, 29, 25, 0.15);
}

.autre-textarea::placeholder { color: #555; }


/* =========================================
   9. FORMULAIRE COORDONNÉES (STEP 4)
   ========================================= */

.coords-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.coords-form .input-group {
    margin-bottom: 18px;
    flex: 1;
}

.coords-form .input-group label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 7px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-sub);
}

.coords-form .input-group input {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 13px 15px;
    border-radius: 8px;
    font-family: var(--font-sub);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.coords-form .input-group input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 12px rgba(136, 29, 25, 0.2);
    background: rgba(255,255,255,0.06);
}

.coords-form .input-group input::placeholder { color: #444; }


/* =========================================
   10. NAVIGATION (Précédent / Suivant)
   ========================================= */

.step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.step-nav.single {
    justify-content: flex-end;
}

.btn-prev {
    background: transparent;
    border: 1px solid #444;
    color: #777;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.25s ease;
}
.btn-prev:hover {
    border-color: #888;
    color: white;
}

.btn-next {
    background: var(--primary-red);
    border: none;
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.25s ease;
}
.btn-next:hover:not(:disabled) {
    background: #a52621;
    transform: translateX(3px);
}
.btn-next:disabled {
    background: #333;
    color: #555;
    cursor: not-allowed;
}

.btn-estimate {
    background: var(--primary-red);
    border: none;
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(136, 29, 25, 0.3);
}
.btn-estimate:hover {
    background: #a52621;
    box-shadow: 0 0 30px rgba(136, 29, 25, 0.5);
    transform: translateY(-2px);
}


/* =========================================
   11. ÉCRAN RÉSULTAT (STEP 5)
   ========================================= */

.result-screen { }

/* — Cas "Sur devis" — */
.result-sur-devis {
    text-align: center;
    padding: 20px 0 10px 0;
}

.result-sur-devis .result-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.result-sur-devis h2 {
    font-family: var(--font-main);
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.result-sur-devis p {
    font-family: var(--font-sub);
    font-size: 1rem;
    color: #888;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-mailto {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 15px 35px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(136, 29, 25, 0.3);
}
.btn-mailto:hover {
    background: #a52621;
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(136, 29, 25, 0.5);
    color: white;
}

/* — Prix mis en valeur (centré) — */
.result-price-hero {
    text-align: center;
    padding: 35px 25px 28px 25px;
    margin-bottom: 35px;
    background: rgba(136, 29, 25, 0.07);
    border: 1px solid rgba(136, 29, 25, 0.3);
    border-radius: 14px;
    box-shadow: 0 0 40px rgba(136, 29, 25, 0.12);
}

.result-label {
    font-family: var(--font-sub);
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.price-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.price-from {
    font-family: var(--font-sub);
    font-size: 1rem;
    color: #aaa;
}

.price-amount {
    font-family: var(--font-accent); /* Anton */
    font-size: 5.5rem;
    color: white;
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 0 0 40px rgba(255,255,255,0.08);
}

.price-period {
    font-family: var(--font-sub);
    font-size: 1.2rem;
    color: #aaa;
}

.price-ht {
    font-family: var(--font-sub);
    font-size: 0.85rem;
    color: var(--primary-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--primary-red);
    border-radius: 4px;
    padding: 2px 7px;
    margin-top: 4px;
}

.result-mention {
    font-family: var(--font-sub);
    font-size: 0.8rem;
    color: #555;
}

/* — Inclus dans la prestation — */
.result-includes {
    margin-bottom: 30px;
}

.result-includes h3 {
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: #777;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
    text-align: center;
}

.includes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.includes-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 13px 16px;
    transition: border-color 0.3s ease;
}

.includes-list li:hover {
    border-color: rgba(136, 29, 25, 0.3);
}

.include-emoji {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1.4;
}

.include-text strong {
    display: block;
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.include-text span {
    font-family: var(--font-sub);
    font-size: 0.82rem;
    color: #777;
    line-height: 1.4;
}

/* — CTA résultat (centré) — */
.result-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    text-align: center;
}

.btn-devis {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 16px 40px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(136, 29, 25, 0.35);
    text-decoration: none;
}
.btn-devis:hover {
    background: #a52621;
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(136, 29, 25, 0.55);
    color: white;
}

.btn-restart {
    background: transparent;
    border: none;
    color: #555;
    font-family: var(--font-sub);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.25s ease;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.btn-restart:hover { color: #aaa; }

/* Note de bas de page */
.result-note {
    font-family: var(--font-sub);
    font-size: 0.8rem;
    color: #555;
}


/* =========================================
   12. RESPONSIVE
   ========================================= */

@media (max-width: 700px) {
    .tarifs-hero h1 { font-size: 2.2rem; }
    .tarifs-hero { padding-top: 120px; }

    .wizard-card {
        padding: 30px 20px 25px 20px;
    }

    .step-question { font-size: 1.3rem; }

    .options-grid { gap: 10px; }
    .options-grid-3col { grid-template-columns: repeat(3, 1fr); }
    .option-card { padding: 15px 10px; }
    .option-card-wide { max-width: 100%; }
    .option-icon { font-size: 1.8rem; }
    .option-card h3 { font-size: 0.8rem; }
    .option-card p { display: none; }

    .coords-form .form-row { flex-direction: column; gap: 0; }

    .progress-bar-line { min-width: 20px; max-width: 50px; }
    .step-label { display: none; }
    .step-bubble { width: 32px; height: 32px; font-size: 0.8rem; }

    .price-amount { font-size: 3.5rem; }
}

@media (max-width: 480px) {
    /* Sur très petit écran : tout en 1 colonne */
    .options-grid,
    .options-grid-3col { grid-template-columns: 1fr; }
    .option-card-wide { max-width: 100%; }
    .option-card p { display: block; }
}
