/* 
   TRADUCTEUR DES ALPES - PROFESSIONAL DESIGN SYSTEM (2025 Refit)
   Palette: Navy Blue (Authority), Gold (Prestige), White (Clarity)
*/

:root {
    /* --- Palette de Couleurs --- */
    --primary: #1e3a8a;
    /* Bleu Marine Profond (Confiance, Institution) */
    --primary-light: #2563eb;
    --secondary: #b45309;
    /* Bronze / Or Doré (Assermentation, Premium) */
    --secondary-light: #d97706;

    --bg-body: #f8fafc;
    /* Gris très clair (Papier administratif) */
    --bg-card: #ffffff;
    --text-main: #334155;
    /* Gris Ardoise (Lisible) */
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --border: #e2e8f0;
    --border-hover: #cbd5e1;

    --success: #10b981;
    --error: #ef4444;

    /* --- Typographie --- */
    --font-serif: "Merriweather", "Playfair Display", Georgia, serif;
    --font-sans: "Inter", system-ui, -apple-system, sans-serif;

    /* --- Espacements & Radius --- */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    color: var(--primary);
    margin: 0 0 1rem 0;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin: 0 0 1.5rem 0;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: 0.2s;
    font-weight: 500;
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-sm {
    padding: 40px 0;
}

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

/* --- Utilities --- */
.text-muted {
    color: var(--text-muted);
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.font-bold {
    font-weight: 700;
}

.d-flex {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* --- Header / Navigation --- */
header.nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.brand img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary);
}

.nav-links a.cta-btn {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-lg);
    transition: background 0.2s;
}

.nav-links a.cta-btn:hover {
    background: var(--primary-light);
    color: white;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px rgba(30, 58, 138, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(30, 58, 138, 0.3);
    color: white;
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: #eff6ff;
}

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card h3 {
    margin-bottom: 0.5rem;
}

/* --- Forms --- */
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: 0.2s;
    background: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* --- Hero Section Specifics --- */
.hero {
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fffbeb;
    color: var(--secondary);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: 1px solid #fcd34d;
    margin-bottom: 24px;
}

.hero::before {
    content: "";
    position: absolute;
    right: -5%;
    top: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(180, 83, 9, 0.05) 0%, transparent 70%);
    z-index: 0;
}

/* --- Footer --- */
footer {
    background: var(--primary);
    color: white;
    padding: 60px 0 20px;
}

footer h3 {
    color: white;
    font-family: var(--font-sans);
}

footer p,
footer a {
    color: #cbd5e1;
    font-size: 0.95rem;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section {
        padding: 40px 0;
    }

    .nav-inner {
        flex-direction: column;
        gap: 0.5rem;
        height: auto;
        padding: 0.75rem 1rem;
    }

    .nav-links {
        gap: 12px;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 8px 0;
    }

    .nav-links a.cta-btn {
        width: 100%;
        text-align: center;
    }

    .hero-content {
        padding: 0 1rem;
        text-align: center;
    }

    .hero-content p.lead {
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content .d-flex {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content .d-flex .btn {
        width: 100%;
    }

    .hero-content .mt-4.text-muted {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem !important;
        align-items: center;
    }

    .grid-2,
    .radio-card-group {
        grid-template-columns: 1fr;
    }

    /* Stack flex containers on mobile (general helper) */
    .d-flex-mobile-stack {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    /* Specific adjustments for "Comment ca marche" steps if they use d-flex */
    .grid .d-flex {
        align-items: flex-start;
    }

    /* Wizard Mobile Adjustments */
    .step-indicator {
        margin-bottom: 1.5rem;
    }

    .progress-line {
        width: 140px;
        /* Shorten line on mobile */
    }

    .step-ball {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    /* Reduce padding on mobile cards */
    .card {
        padding: 1.5rem;
    }

    /* Adjust logo size for mobile */
    .logo {
        width: 100%;
        max-width: 200px;
        /* Smaller max width on mobile */
        height: 120px;
    }
}

/* --- Trust Us / Logos --- */
.logo-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.logo {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 160px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.logo:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* --- Trust Badges (Form) --- */
.secure-upload-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ecfdf5;
    color: #059669;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
    border: 1px solid #d1fae5;
}

.logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}