/* =====================================================
   JOB-ARABIE — Design moderne 2026
   Palette : vert émeraude saoudien + or doux + sable
   Typo : Inter (Google Fonts) avec fallback system
   ===================================================== */

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

:root {
    /* Surfaces */
    --bg:           #fbfaf6;
    --bg-soft:      #f5f1e8;
    --surface:      #ffffff;
    --surface-2:    #faf8f3;
    --border:       #e8e3d4;
    --border-soft:  #f0ece1;

    /* Texte */
    --text:         #0a1f15;
    --text-soft:    #4a5d54;
    --text-muted:   #8a9690;

    /* Couleurs primaires */
    --primary:        #006c35;
    --primary-soft:   #00582b;
    --primary-deep:   #003d1d;
    --primary-bg:     #e8f5ee;

    --accent:         #c8a04b;
    --accent-soft:    #a78338;
    --accent-light:   #f3e9d0;

    --sand:           #d4b88f;
    --sand-light:     #f0e3cb;

    /* États */
    --success: #10b981;
    --error:   #ef4444;
    --warning: #f59e0b;
    --info:    #0ea5e9;

    /* Ombres modernes en couches */
    --shadow-xs:  0 1px 2px rgba(10, 31, 21, 0.04);
    --shadow-sm:  0 2px 4px rgba(10, 31, 21, 0.05), 0 1px 2px rgba(10, 31, 21, 0.04);
    --shadow:     0 4px 12px rgba(10, 31, 21, 0.08), 0 2px 4px rgba(10, 31, 21, 0.04);
    --shadow-lg:  0 12px 32px rgba(10, 31, 21, 0.10), 0 4px 8px rgba(10, 31, 21, 0.06);
    --shadow-xl:  0 24px 48px rgba(10, 31, 21, 0.12), 0 8px 16px rgba(10, 31, 21, 0.08);
    --shadow-glow: 0 0 0 4px rgba(0, 108, 53, 0.12);

    /* Rayons */
    --r-xs: 4px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-2xl: 32px;
    --r-full: 9999px;

    /* Typo */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing scale */
    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
    --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
    --s-20: 80px; --s-24: 96px; --s-32: 128px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
    text-rendering: optimizeLegibility;
}

/* Selection */
::selection { background: var(--primary); color: #fff; }
::-moz-selection { background: var(--primary); color: #fff; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover { color: var(--primary-soft); }

img, svg { max-width: 100%; display: block; }

/* =====================================================
   Layout — container et grilles
   ===================================================== */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--s-6);
}

.container-narrow {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 var(--s-6);
}

/* =====================================================
   Header mobile-first — sticky avec backdrop blur + hamburger
   ===================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border-soft);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    height: 64px;
    min-width: 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text);
    letter-spacing: -0.02em;
    flex-shrink: 1;
    min-width: 0;
}
.brand:hover { color: var(--text); }
.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.brand:hover .brand-logo { transform: rotate(-3deg) scale(1.05); }
.brand-name {
    letter-spacing: -0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hamburger button — visible uniquement < 768px */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    margin: 0 auto;
    transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
    display: flex;
    align-items: center;
    gap: var(--s-5);
}
.site-nav a {
    color: var(--text-soft);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.15s ease;
    white-space: nowrap;
}
.site-nav a:hover { color: var(--text); }
.nav-cta { padding: 8px 16px; }
.site-nav .btn-primary {
    color: #fff;
    padding: 9px 18px;
    font-size: 0.9rem;
}

/* MOBILE : nav devient drawer plein écran */
@media (max-width: 768px) {
    .header-inner { height: 56px; padding: 0 var(--s-4); }
    .container { padding: 0 var(--s-4); }
    .brand { font-size: 1.05rem; gap: 8px; }
    .brand-logo { width: 30px; height: 30px; }
    .brand-name {
        max-width: calc(100vw - 120px); /* laisse de la place pour le hamburger */
    }

    .nav-toggle { display: flex; }

    .site-nav {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--surface);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--s-5) var(--s-4);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 40;
        overflow-y: auto;
    }
    .site-nav.is-open { transform: translateX(0); }
    body.nav-open { overflow: hidden; }

    .site-nav a {
        padding: 14px 16px;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--border-soft);
        color: var(--text);
        text-align: left;
    }
    .site-nav a:last-child { border-bottom: none; }
    .site-nav .btn-primary,
    .site-nav .nav-cta {
        margin-top: var(--s-4);
        text-align: center;
        border-radius: var(--r-md);
        background: linear-gradient(135deg, var(--primary), var(--primary-soft));
        color: #fff !important;
        font-weight: 600;
        padding: 14px;
        font-size: 1rem;
    }
    .site-nav .nav-cta:not(.btn-primary) {
        background: transparent;
        color: var(--text-soft) !important;
        border: 1px solid var(--border);
    }
}

/* =====================================================
   Boutons modernes
   ===================================================== */
.btn,
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: 12px 22px;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    line-height: 1;
    font-family: inherit;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    color: #fff;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: #1a1305;
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    color: #1a1305;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
    box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
    background: var(--surface);
    border-color: var(--text-soft);
    color: var(--text);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
}
.btn-ghost:hover {
    background: var(--bg-soft);
    color: var(--text);
}

.btn-large { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--r-md); }
.btn-block { width: 100%; }

.btn-arrow::after {
    content: "→";
    transition: transform 0.18s ease;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* =====================================================
   Hero — gradient mesh + texte impactant
   ===================================================== */
.hero {
    position: relative;
    padding: var(--s-24) var(--s-6) var(--s-20);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(at 20% 10%, rgba(0, 108, 53, 0.10) 0%, transparent 50%),
        radial-gradient(at 80% 20%, rgba(200, 160, 75, 0.10) 0%, transparent 50%),
        radial-gradient(at 50% 80%, rgba(212, 184, 143, 0.08) 0%, transparent 60%);
    z-index: -1;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path d='M0 20 Q10 0 20 20 T40 20' stroke='%23006c35' stroke-width='0.5' fill='none' opacity='0.04'/></svg>");
    z-index: -1;
    opacity: 0.5;
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--s-5);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    animation: logoEnter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@media (max-width: 768px) {
    .hero-logo { width: 88px; height: 88px; }
}
@keyframes logoEnter {
    0% { opacity: 0; transform: scale(0.8) translateY(-12px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.hero .badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: 6px 14px;
    background: var(--primary-bg);
    color: var(--primary-soft);
    border: 1px solid rgba(0, 108, 53, 0.2);
    border-radius: var(--r-full);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: var(--s-6);
    animation: fadeInDown 0.6s ease;
}
.hero .badge::before {
    content: "";
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0 auto var(--s-6);
    max-width: 880px;
    color: var(--text);
    animation: fadeInUp 0.7s ease 0.1s both;
}
.hero h1 .highlight {
    background: linear-gradient(120deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .lead {
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    color: var(--text-soft);
    max-width: 640px;
    margin: 0 auto var(--s-8);
    line-height: 1.6;
    animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: var(--s-3);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-meta {
    margin-top: var(--s-5);
    font-size: 0.88rem;
    color: var(--text-muted);
    animation: fadeInUp 0.7s ease 0.4s both;
}
.hero-meta strong { color: var(--text-soft); }

/* Stats inline sous hero */
.hero-stats {
    margin-top: var(--s-12);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--s-4);
    max-width: 720px;
    margin-inline: auto;
    animation: fadeInUp 0.8s ease 0.5s both;
}
.hero-stat {
    text-align: center;
    padding: var(--s-4);
}
.hero-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: var(--s-1);
    font-weight: 500;
}

/* =====================================================
   Sections génériques
   ===================================================== */
.section {
    padding: var(--s-20) 0;
}
.section-narrow { padding: var(--s-16) 0; }

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--s-12);
}
.section-eyebrow {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: var(--s-3);
}
.section-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text);
}
.section-sub {
    margin-top: var(--s-3);
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* =====================================================
   Cards modernes
   ===================================================== */
.card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: var(--s-8);
    box-shadow: var(--shadow-xs);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--border);
}

.card-feature {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: var(--s-6);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.card-feature:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.card-feature .icon {
    width: 44px; height: 44px;
    border-radius: var(--r-sm);
    background: var(--primary-bg);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: var(--s-4);
    transition: transform 0.18s ease;
}
.card-feature:hover .icon { transform: scale(1.05) rotate(-3deg); }
.card-feature h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--s-2);
    color: var(--text);
    letter-spacing: -0.01em;
}
.card-feature p {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Numérotation steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--s-4);
}
.step-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: var(--s-6);
    position: relative;
    transition: all 0.2s ease;
}
.step-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--border);
}
.step-num {
    position: absolute;
    top: var(--s-4);
    right: var(--s-4);
    width: 32px; height: 32px;
    border-radius: var(--r-full);
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}
.step-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: var(--s-1) 0 var(--s-2);
    color: var(--text);
    padding-right: 40px;
}
.step-card p {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* =====================================================
   Pricing card premium
   ===================================================== */
.pricing-wrap {
    display: flex;
    justify-content: center;
}
.pricing-card {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--r-2xl);
    padding: var(--s-12) var(--s-10);
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.pricing-card::before {
    content: "";
    position: absolute;
    top: -2px; left: -2px; right: -2px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}
.pricing-tagline {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-light);
    color: var(--accent-soft);
    border-radius: var(--r-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: var(--s-4);
}
.pricing-amount {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--text);
    margin: var(--s-2) 0;
}
.pricing-amount .currency {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    vertical-align: top;
    margin-right: 4px;
}
.pricing-period {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: var(--s-8);
}
.pricing-features {
    list-style: none;
    text-align: left;
    margin: var(--s-6) 0;
}
.pricing-features li {
    padding: 10px 0 10px 32px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text);
    border-bottom: 1px solid var(--border-soft);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 22px; height: 22px;
    background: var(--primary-bg);
    border-radius: 50%;
}
.pricing-features li::after {
    content: "✓";
    position: absolute;
    left: 6px;
    top: 11px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 22px;
}

/* =====================================================
   FAQ moderne avec accordéon
   ===================================================== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    margin-bottom: var(--s-3);
    transition: all 0.2s ease;
    overflow: hidden;
}
.faq-item[open] {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.faq-item summary {
    padding: var(--s-5) var(--s-6);
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-4);
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    color: var(--primary);
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer {
    padding: 0 var(--s-6) var(--s-5);
    color: var(--text-soft);
    line-height: 1.7;
    animation: fadeIn 0.3s ease;
}

/* =====================================================
   Footer moderne
   ===================================================== */
.site-footer {
    background: var(--text);
    color: #d8e0dc;
    padding: var(--s-12) 0 var(--s-8);
    margin-top: var(--s-20);
}
.site-footer .container { text-align: center; }
.legal-disclaimer {
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 740px;
    margin: 0 auto var(--s-5);
    color: rgba(216, 224, 220, 0.7);
}
.footer-nav {
    display: flex;
    justify-content: center;
    gap: var(--s-6);
    margin: var(--s-4) 0;
    flex-wrap: wrap;
}
.footer-nav a {
    color: #d8e0dc;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s ease;
}
.footer-nav a:hover { color: var(--accent); }
.copyright {
    margin-top: var(--s-3);
    font-size: 0.8rem;
    color: rgba(216, 224, 220, 0.5);
}

/* =====================================================
   Forms modernes
   ===================================================== */
.form { max-width: 480px; margin: 0 auto; }
.form-row { margin-bottom: var(--s-4); }
.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--s-2);
    font-size: 0.92rem;
    color: var(--text);
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}
.form-row input::placeholder { color: var(--text-muted); }
.form-row .help {
    display: block;
    margin-top: var(--s-1);
    font-size: 0.82rem;
    color: var(--text-muted);
}
.form-row.checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    padding: var(--s-3);
    background: var(--bg-soft);
    border-radius: var(--r-md);
}
.form-row.checkbox label {
    margin: 0;
    font-weight: 400;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-soft);
    cursor: pointer;
}
.form-row.checkbox input { margin-top: 4px; accent-color: var(--primary); flex-shrink: 0; }

/* =====================================================
   Flash messages modernes
   ===================================================== */
.flash {
    padding: 12px 16px;
    border-radius: var(--r-md);
    margin-bottom: var(--s-4);
    font-size: 0.95rem;
    border-left: 3px solid;
    display: flex;
    align-items: center;
    gap: var(--s-3);
}
.flash::before {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}
.flash-success { background: #ecfdf5; color: #064e3b; border-color: var(--success); }
.flash-success::before { content: "✓"; background: var(--success); }
.flash-error   { background: #fef2f2; color: #7f1d1d; border-color: var(--error); }
.flash-error::before { content: "!"; background: var(--error); }
.flash-warning { background: #fffbeb; color: #78350f; border-color: var(--warning); }
.flash-warning::before { content: "⚠"; background: var(--warning); }
.flash-info    { background: #eff6ff; color: #1e3a8a; border-color: var(--info); }
.flash-info::before { content: "i"; background: var(--info); }

/* =====================================================
   Animations
   ===================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 108, 53, 0.6); }
    50% { box-shadow: 0 0 0 6px rgba(0, 108, 53, 0); }
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================
   Utility classes
   ===================================================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-soft { color: var(--text-soft); }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-6 { margin-bottom: var(--s-6); }

/* =====================================================
   Main wrap
   ===================================================== */
.site-main {
    min-height: calc(100vh - 72px - 280px);
}

/* =====================================================
   Profile / Steps page
   ===================================================== */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-soft);
    border-radius: var(--r-full);
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
    border-radius: var(--r-full);
}
.dynamic-list { margin: var(--s-3) 0; }
.dynamic-item {
    background: var(--surface-2);
    padding: var(--s-4);
    border-radius: var(--r-md);
    margin-bottom: var(--s-3);
    border: 1px solid var(--border-soft);
}
.dynamic-item .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--s-3);
}
.dynamic-item input,
.dynamic-item select,
.dynamic-item textarea {
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 0.9rem;
    background: var(--surface);
    width: 100%;
    font-family: inherit;
}
.dynamic-item textarea { resize: vertical; min-height: 60px; }
.dynamic-remove {
    background: none;
    border: none;
    color: var(--error);
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: var(--s-2);
    font-family: inherit;
    padding: 4px 0;
}
.dynamic-remove:hover { text-decoration: underline; }

.btn-add {
    background: var(--surface);
    border: 1.5px dashed var(--border);
    color: var(--primary);
    padding: 11px 16px;
    border-radius: var(--r-md);
    cursor: pointer;
    width: 100%;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.15s ease;
}
.btn-add:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    border-style: solid;
}

.tag-input {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface);
    min-height: 48px;
    transition: border-color 0.15s ease;
}
.tag-input:focus-within { border-color: var(--primary); box-shadow: var(--shadow-glow); }
.tag {
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--r-full);
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tag button {
    background: rgba(255,255,255,0.25);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    font-size: 0.75rem;
    width: 16px; height: 16px;
    border-radius: 50%;
    line-height: 1;
}
.tag button:hover { background: rgba(255,255,255,0.4); }
.tag-input input {
    border: none !important;
    outline: none;
    flex: 1;
    min-width: 140px;
    padding: 4px 8px;
    font-size: 0.92rem;
    background: transparent !important;
}

.tag-add-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: var(--r-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.15s ease;
    flex-shrink: 0;
}
.tag-add-btn:hover { background: var(--primary-soft); }

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: var(--s-2);
    margin-top: var(--s-2);
}
.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    background: var(--surface);
    border: 1.5px solid var(--border);
    padding: 11px 14px;
    border-radius: var(--r-md);
    cursor: pointer;
    font-weight: 400;
    font-size: 0.92rem;
    transition: all 0.15s ease;
}
.checkbox-grid label:hover { border-color: var(--text-soft); background: var(--bg-soft); }
.checkbox-grid label:has(input:checked) {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary-soft);
    font-weight: 600;
}
.checkbox-grid input { accent-color: var(--primary); }

.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: var(--s-6);
    gap: var(--s-3);
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 768px) {
    body { font-size: 15px; }
    .hero { padding: var(--s-10) var(--s-4) var(--s-8); }
    .hero-logo { width: 72px; height: 72px; margin-bottom: var(--s-4); }
    .hero .badge {
        font-size: 0.78rem;
        padding: 5px 12px;
        max-width: 100%;
        white-space: normal;
        line-height: 1.3;
        text-align: center;
    }
    .hero h1 { font-size: 1.8rem; line-height: 1.1; letter-spacing: -0.03em; }
    .hero .lead { font-size: 0.95rem; padding: 0 var(--s-2); }
    .hero-stats { margin-top: var(--s-6); gap: var(--s-2); grid-template-columns: repeat(2, 1fr); }
    .hero-stat { padding: var(--s-2); }
    .hero-stat-num { font-size: 1.4rem; }
    .hero-stat-label { font-size: 0.72rem; }

    .section { padding: var(--s-12) 0; }
    .section-title { font-size: 1.5rem; }
    .section-sub { font-size: 0.95rem; }
    .section-head { margin-bottom: var(--s-8); }

    .pricing-card { padding: var(--s-8) var(--s-5); }
    .pricing-amount { font-size: 2.8rem; }
    .pricing-amount .currency { font-size: 1.4rem; }
    .pricing-features li { font-size: 0.92rem; padding: 9px 0 9px 30px; }

    .card { padding: var(--s-5); }
    .container, .container-narrow { padding: 0 var(--s-4); }

    /* Footer mobile */
    .footer-nav { gap: var(--s-3); flex-direction: column; align-items: center; }
    .legal-disclaimer { font-size: 0.82rem; padding: 0 var(--s-2); }

    /* Article cards : pile en colonne */
    [style*="grid-template-columns:repeat(auto-fit, minmax(300px"] { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns:repeat(auto-fit, minmax(280px"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: stretch; gap: var(--s-2); }
    .hero-actions .btn,
    .hero-actions .btn-primary,
    .hero-actions .btn-outline { width: 100%; }
    .hero h1 { font-size: 1.6rem; }
    .pricing-amount { font-size: 2.4rem; }
    .faq-item summary { padding: var(--s-4); font-size: 0.95rem; gap: var(--s-2); }
    .faq-answer { padding: 0 var(--s-4) var(--s-4); font-size: 0.92rem; }
    .btn-large { padding: 13px 24px; font-size: 0.98rem; }
}

/* GLOBAL : empeche tout debordement horizontal sur tous les ecrans */
html, body { overflow-x: hidden; max-width: 100vw; }
img, svg, video, iframe { max-width: 100%; height: auto; }
table { max-width: 100%; }
