/**
* Dr. Imprimante - Styles Personnalisés
*
* Ce fichier contient tous les styles spécifiques
* au site Dr. Imprimante.
*
* Palette de couleurs :
* - Primaire : #0B4F9E (bleu confiance)
* - Succès/CTA : #12B76A (vert rassurant)
* - Fond : #FFFFFF et #F8FAFC
* - Texte : #0F172A et #475569
* - Alerte : #E5484D
*
* v1.7.0 : FIX FAQ — les réponses s'affichent désormais (sélecteur [open])
*/

/* Variables CSS */
:root {
    --dri-primary: #0B4F9E;
    --dri-primary-dark: #083A75;
    --dri-success: #12B76A;
    --dri-success-dark: #0E9F5C;
    --dri-bg: #FFFFFF;
    --dri-bg-alt: #F8FAFC;
    --dri-text: #0F172A;
    --dri-text-muted: #475569;
    --dri-alert: #E5484D;
    --dri-border: #E2E8F0;
    --dri-radius: 12px;
    --dri-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --dri-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Styles globaux */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dri-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Boutons personnalisés */
.dri-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 16px;
    border-radius: var(--dri-radius);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.dri-btn-primary {
    background-color: var(--dri-primary);
    color: white;
}

.dri-btn-primary:hover {
    background-color: var(--dri-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--dri-shadow-lg);
}

.dri-btn-success {
    background-color: var(--dri-success);
    color: white;
}

.dri-btn-success:hover {
    background-color: var(--dri-success-dark);
    transform: translateY(-2px);
    box-shadow: var(--dri-shadow-lg);
}

.dri-btn-outline {
    background-color: transparent;
    color: var(--dri-primary);
    border: 2px solid var(--dri-primary);
}

.dri-btn-outline:hover {
    background-color: var(--dri-primary);
    color: white;
}

/* Cartes */
.dri-card {
    background-color: white;
    border-radius: var(--dri-radius);
    border: 1px solid var(--dri-border);
    box-shadow: var(--dri-shadow);
    padding: 24px;
    transition: all 0.3s ease;
}

.dri-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--dri-shadow-lg);
    border-color: var(--dri-primary);
}

/* Sections */
.dri-section {
    padding: 80px 0;
}

.dri-section-alt {
    background-color: var(--dri-bg-alt);
}

/* Badges */
.dri-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dri-badge-success {
    background-color: #D1FAE5;
    color: #065F46;
}

.dri-badge-primary {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.dri-badge-warning {
    background-color: #FEF3C7;
    color: #92400E;
}

/* Formulaire Stepper */
.dri-stepper {
    max-width: 600px;
    margin: 0 auto;
}

.dri-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.dri-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progression du stepper */
.dri-progress {
    height: 4px;
    background-color: var(--dri-border);
    border-radius: 2px;
    margin-bottom: 24px;
    overflow: hidden;
}

.dri-progress-bar {
    height: 100%;
    background-color: var(--dri-success);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Options cliquables */
.dri-option {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    background-color: white;
    border: 2px solid var(--dri-border);
    border-radius: var(--dri-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dri-option:hover {
    border-color: var(--dri-primary);
    background-color: #F0F7FF;
}

.dri-option.selected {
    border-color: var(--dri-success);
    background-color: #ECFDF5;
}

.dri-option-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 16px;
    font-size: 24px;
}

/* Console de diagnostic (Hero) */
.dri-console {
    background-color: #1E293B;
    border-radius: var(--dri-radius);
    padding: 24px;
    color: #4ADE80;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    box-shadow: var(--dri-shadow-lg);
}

.dri-console-header {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.dri-console-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dri-console-dot-red { background-color: #EF4444; }
.dri-console-dot-yellow { background-color: #F59E0B; }
.dri-console-dot-green { background-color: #22C55E; }

/* Tableau des interventions */
.dri-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: var(--dri-radius);
    overflow: hidden;
    box-shadow: var(--dri-shadow);
}

.dri-table th,
.dri-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--dri-border);
}

.dri-table th {
    background-color: var(--dri-bg-alt);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dri-text-muted);
}

.dri-table tr:hover {
    background-color: var(--dri-bg-alt);
}

/* Tarifs */
.dri-pricing-card {
    background-color: white;
    border-radius: var(--dri-radius);
    border: 1px solid var(--dri-border);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.dri-pricing-card.featured {
    border-color: var(--dri-primary);
    box-shadow: var(--dri-shadow-lg);
    transform: scale(1.05);
}

.dri-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--dri-shadow-lg);
}

.dri-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--dri-text);
}

.dri-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--dri-text-muted);
}

/* ============================================
FAQ
✅ FIX v1.7.0 : le template utilise <details>/<summary> natifs.
Le navigateur masque automatiquement la réponse quand c'est fermé :
il ne faut DONC PAS forcer display:none ici, et il faut cibler
l'ATTRIBUT [open] (et non une classe .open qui n'existe jamais).
============================================ */
.dri-faq-item {
    border: 1px solid var(--dri-border);
    border-radius: var(--dri-radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.dri-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: white;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.dri-faq-question:hover {
    background-color: var(--dri-bg-alt);
}

.dri-faq-answer {
    padding: 20px;
    background-color: var(--dri-bg-alt);
}

.dri-faq-item[open] .dri-faq-answer,
.dri-faq-item.open .dri-faq-answer {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .dri-section {
        padding: 40px 0;
    }

    .dri-btn {
        width: 100%;
        padding: 16px;
    }

    .dri-table {
        font-size: 14px;
    }

    .dri-table th,
    .dri-table td {
        padding: 12px 8px;
    }

    .dri-pricing-card.featured {
        transform: none;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.dri-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0.6, 1) infinite;
}