@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary:       #cc3234;
    --primary-dark:  #a82729;
    --gray:          #636769;
    --dark:          #343a40;
    --light:         #f8f9fa;
    --bg-white:      #ffffff;
    --text:          #343a40;
    --text-muted:    #636769;
    --border:        #e0e2e5;
    --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
    --shadow-md:     0 4px 16px rgba(204,50,52,.12);
    --shadow-lg:     0 12px 40px rgba(204,50,52,.18);
    --radius:        14px;
    --radius-pill:   100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 8%;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.logo {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    transition: color .2s;
}

.nav-links a:hover { color: var(--primary); }

.nav-badge {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    letter-spacing: .5px;
}

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 8% 80px;
    min-height: 80vh;
}

.converter-section { flex: 1; max-width: 580px; }

/* Badge gratuit */
.free-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fdeaea, #fce8e8);
    border: 1.5px solid #e8b4b4;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    margin-bottom: 20px;
    letter-spacing: .3px;
}

.free-badge::before { content: '✦'; font-size: 11px; color: var(--primary); }

h1 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--text);
    margin-bottom: 16px;
}

h1 span { color: var(--primary); }

.subtitle {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.7;
}

.formats-highlight {
    font-weight: 700;
    color: var(--primary);
    background: #fdeaea;
    padding: 2px 8px;
    border-radius: 6px;
}

/* ─── UPLOAD ZONE ─────────────────────────────────────────── */
.upload-container {
    background: var(--bg-white);
    border: 2px dashed #d8b4b4;
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    transition: border-color .25s, box-shadow .25s;
    box-shadow: var(--shadow-sm);
}

.upload-container:hover,
.upload-container.drag-over {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.upload-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fdeaea, #f5d5d5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px;
}

.upload-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.drop-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.btn-select {
    background: var(--primary);
    color: white;
    padding: 15px 36px;
    border-radius: var(--radius-pill);
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(204,50,52,.3);
    font-family: inherit;
}

.btn-select:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(204,50,52,.4);
}

#download-btn {
    background: linear-gradient(135deg, var(--gray), var(--dark));
    box-shadow: 0 4px 14px rgba(99,103,105,.35);
}

#download-btn:hover {
    background: linear-gradient(135deg, var(--dark), #1e2228);
    box-shadow: 0 8px 20px rgba(99,103,105,.45);
}

/* Progress bar custom */
.progress-wrapper { margin-top: 20px; }

.progress-track {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 99px;
    transition: width .3s ease;
}

.progress-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 8px;
    text-align: right;
}

/* Success state */
.status-success {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
    margin-top: 8px;
}

/* Image décoration */
.image-decor {
    flex: 0 0 auto;
    position: relative;
}

.image-decor::before {
    content: '';
    position: absolute;
    inset: -16px;
    background: linear-gradient(135deg, #f5d5d5, #fde8e8);
    border-radius: 50%;
    z-index: 0;
    opacity: .6;
}

.image-decor img {
    width: 440px;
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    object-fit: cover;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

/* ─── COUNTER BAR ────────────────────────────────────────── */
.counter-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 10px 22px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    font-size: 15px;
}

.counter-icon { font-size: 16px; }

#counter-value {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.5px;
    min-width: 60px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.counter-label {
    color: var(--text-muted);
    font-weight: 500;
}

/* ─── FREE BANNER ─────────────────────────────────────────── */
.free-banner {
    background: linear-gradient(135deg, var(--dark), #4a4f56);
    color: white;
    text-align: center;
    padding: 48px 8%;
}

.free-banner h2 {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.free-banner p {
    font-size: 17px;
    opacity: .85;
    max-width: 500px;
    margin: 0 auto 28px;
}

.price-tag {
    display: inline-block;
    background: white;
    color: var(--primary);
    font-size: 52px;
    font-weight: 900;
    padding: 12px 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    letter-spacing: -2px;
    margin-bottom: 8px;
}

.price-caption {
    font-size: 14px;
    opacity: .7;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ─── FEATURES ────────────────────────────────────────────── */
.features {
    padding: 80px 8%;
    background: var(--bg-white);
}

.section-label {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.5px;
    margin-bottom: 52px;
    color: var(--text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 32px 28px;
    border: 1px solid var(--border);
    transition: transform .2s, box-shadow .2s;
}

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

.feature-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #fdeaea, #f5d5d5);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ─── STEPS ───────────────────────────────────────────────── */
.steps {
    padding: 80px 8%;
    background: var(--light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(16.6% + 28px);
    right: calc(16.6% + 28px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), #e8b4b4);
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(204,50,52,.3);
}

.step h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,.9);
    padding: 56px 8% 32px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    margin-bottom: 28px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
    color: white;
    margin-bottom: 12px;
}

.footer-left p {
    font-size: 14px;
    opacity: .75;
    max-width: 320px;
    line-height: 1.7;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color .2s;
}

.footer-links a:hover { color: white; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: .55;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid::before { display: none; }
}

@media (max-width: 768px) {
    h1 { font-size: 34px; }
    .hero { flex-direction: column; padding: 40px 6% 60px; }
    .image-decor { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .navbar { padding: 16px 6%; }
    .nav-links { display: none; }
    .footer-top { flex-direction: column; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .free-banner h2 { font-size: 26px; }
    .price-tag { font-size: 40px; }
}

/* ─── PAGE POLITIQUE ──────────────────────────────────────── */
.policy-page {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 24px 80px;
}

.policy-page h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}

.policy-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.policy-page h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin: 40px 0 12px;
}

.policy-page p, .policy-page li {
    font-size: 15px;
    color: #374151;
    line-height: 1.8;
    margin-bottom: 12px;
}

.policy-page ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.policy-highlight {
    background: linear-gradient(135deg, #fdeaea, #fce8e8);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 24px;
    margin: 28px 0;
}

.policy-highlight p {
    margin: 0;
    font-weight: 600;
    color: var(--primary);
}
