/**
 * CalcuGIR.fr - Stylesheet principal
 * 
 * Design System : 
 * - Tailwind CSS via CDN pour les classes utilitaires
 * - Ce fichier contient les styles custom et composants
 * 
 * Palette de couleurs :
 * - Primary: Blue (#2563EB)
 * - Secondary: Teal (#0D9488)
 * - Success: Green (#22C55E)
 * - Warning: Amber (#F59E0B)
 * - Danger: Red (#DC2626)
 */

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

/* ===== LAYOUT UTILITIES ===== */
.container {
    width: 100%;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
    background: white;
    color: #2563EB;
    border: 2px solid #2563EB;
}

.btn-secondary:hover {
    background: #EFF6FF;
}

.btn-success {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ===== CARDS ===== */
.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.card-gradient {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 1px solid #BFDBFE;
}

/* ===== GIR BADGES ===== */
.gir-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
}

.gir-badge-1 {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
}

.gir-badge-2 {
    background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
}

.gir-badge-3 {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.gir-badge-4 {
    background: linear-gradient(135deg, #EAB308 0%, #CA8A04 100%);
}

.gir-badge-5 {
    background: linear-gradient(135deg, #84CC16 0%, #65A30D 100%);
}

.gir-badge-6 {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
}

/* ===== PROGRESS BAR (Wizard) ===== */
.progress-bar {
    height: 0.5rem;
    background: #E5E7EB;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563EB 0%, #0891B2 100%);
    border-radius: 9999px;
    transition: width 0.4s ease;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-hint {
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 0.25rem;
}

/* ===== RADIO OPTIONS (pour le wizard) ===== */
.radio-options {
    display: grid;
    gap: 0.75rem;
}

.radio-option {
    position: relative;
}

.radio-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-option label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option label:hover {
    border-color: #2563EB;
    background: #F8FAFC;
}

.radio-option input:checked+label {
    border-color: #2563EB;
    background: #EFF6FF;
}

.radio-option input:checked+label::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background: #2563EB;
    color: white;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: bold;
}

/* ===== RESULT DISPLAY ===== */
.result-container {
    text-align: center;
    padding: 3rem 2rem;
}

.result-gir {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 8rem;
    height: 8rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.result-montant {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    color: #22C55E;
    line-height: 1;
}

.result-label {
    font-size: 1.25rem;
    color: #6B7280;
    margin-top: 0.5rem;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 40%, #06b6d4 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* ===== STATS COUNTER ===== */
.stats-counter {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2563EB;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 0.25rem;
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
    border-bottom: 1px solid #E5E7EB;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 0;
    font-weight: 600;
    color: #111827;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding-bottom: 1.25rem;
    color: #4B5563;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes pulse-soft {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

.animate-pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .stats-counter {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero {
        padding: 3rem 0;
    }
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}