/* ============================================
   Le Patron – Main Stylesheet
   Colors: Navy #063e85, Red #e52613, White #fff
   ============================================ */

:root {
    --color-navy: #063e85;
    --color-navy-light: #0a56b8;
    --color-navy-dark: #042c5e;
    --color-red: #e52613;
    --color-red-light: #ff3d2e;
    --color-white: #ffffff;
    --color-off-white: #f8f9fc;
    --color-gray-50: #f1f3f8;
    --color-gray-100: #e4e8f0;
    --color-gray-200: #c8cfd9;
    --color-gray-400: #8b95a5;
    --color-gray-600: #5a6370;
    --color-gray-800: #2a2f38;
    --color-gray-900: #1a1f28;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(6, 62, 133, .08);
    --shadow-lg: 0 12px 48px rgba(6, 62, 133, .12);
    --transition: .2s ease;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--color-gray-800);
    background: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-gray-100);
    transition: var(--transition);
}
.nav--scrolled {
    box-shadow: var(--shadow);
}
.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav__logo img { height: 36px; }
.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav__links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-gray-600);
    transition: color var(--transition);
}
.nav__links a:hover { color: var(--color-navy); }
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-gray-800);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn--sm { padding: 8px 18px; font-size: 14px; }
.btn--lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius); }
.btn--block { width: 100%; }
.btn--primary {
    background: var(--color-navy);
    color: var(--color-white);
}
.btn--primary:hover {
    background: var(--color-navy-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(6, 62, 133, .3);
}
.btn--outline {
    background: transparent;
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
    padding: 6px 16px;
}
.btn--outline:hover {
    background: var(--color-navy);
    color: var(--color-white);
}
.btn--ghost {
    background: transparent;
    color: var(--color-gray-600);
}
.btn--ghost:hover { color: var(--color-navy); }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}
.hero__bg {
    position: fixed;
    top: 0; right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 62, 133, .03) 0%, rgba(229, 38, 19, .03) 100%);
    z-index: -1;
}
.hero__content {
    flex: 1;
    max-width: 580px;
}
.hero__badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(6, 62, 133, .08);
    color: var(--color-navy);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 24px;
    letter-spacing: .3px;
}
.hero__title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-gray-900);
    margin-bottom: 24px;
}
.hero__highlight {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-gray-600);
    margin-bottom: 36px;
}
.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero__visual {
    flex: 0 0 380px;
}
.hero__card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: cardFloat 6s ease-in-out infinite;
}
@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.hero__card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--color-gray-50);
    border-bottom: 1px solid var(--color-gray-100);
}
.hero__card-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.hero__card-dot--green { background: #2aba75; }
.hero__card-label {
    font-size: 13px;
    font-weight: 600;
    color: #2aba75;
}
.hero__card-body { padding: 20px; }
.hero__card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-gray-50);
}
.hero__card-row:last-child { border-bottom: none; }
.hero__card-key {
    font-size: 13px;
    color: var(--color-gray-400);
}
.hero__card-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-800);
}
.hero__card-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.hero__card-badge--valid {
    background: rgba(42, 186, 117, .12);
    color: #2aba75;
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}
.section--dark {
    background: var(--color-gray-900);
    color: var(--color-white);
}
.section--dark .section__subtitle { color: rgba(255,255,255,.6); }
.section__header {
    text-align: center;
    margin-bottom: 64px;
}
.section__title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    margin-bottom: 12px;
}
.section__subtitle {
    font-size: 18px;
    color: var(--color-gray-400);
    max-width: 560px;
    margin: 0 auto;
}

/* ===== Features Grid ===== */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature {
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}
.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(6, 62, 133, .15);
}
.feature__icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 62, 133, .08);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--color-navy);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-gray-900);
}
.feature__text {
    font-size: 15px;
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* ===== Steps ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.step {
    text-align: center;
}
.step__number {
    font-size: 64px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
}
.step__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}
.step__text {
    font-size: 15px;
    color: rgba(255,255,255,.6);
    line-height: 1.6;
}

/* ===== Benefits ===== */
.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.benefit {
    text-align: center;
    padding: 40px 24px;
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-lg);
}
.benefit__metric {
    font-size: 56px;
    font-weight: 900;
    color: var(--color-navy);
    line-height: 1;
    margin-bottom: 8px;
}
.benefit__label {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 12px;
}
.benefit__text {
    font-size: 15px;
    color: var(--color-gray-600);
}

/* ===== Footer ===== */
.footer {
    background: var(--color-gray-900);
    color: rgba(255,255,255,.7);
    padding: 48px 0 24px;
}
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand img { margin-bottom: 8px; }
.footer__tagline {
    font-size: 14px;
    color: rgba(255,255,255,.4);
}
.footer__links {
    display: flex;
    gap: 24px;
}
.footer__links a {
    font-size: 14px;
    transition: color var(--transition);
}
.footer__links a:hover { color: var(--color-white); }
.footer__bottom {
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,.3);
}

/* ===== Login Page ===== */
.login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-50);
    padding: 24px;
}
.login__card {
    width: 100%;
    max-width: 420px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 48px 40px;
}
.login__logo {
    text-align: center;
    margin-bottom: 32px;
}
.login__logo img { margin: 0 auto; }
.login__title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    color: var(--color-gray-900);
}
.login__form { margin-bottom: 24px; }
.login__back {
    display: block;
    text-align: center;
    font-size: 14px;
    color: var(--color-gray-400);
    transition: color var(--transition);
}
.login__back:hover { color: var(--color-navy); }

/* Forms */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray-600);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-gray-200);
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--font);
    color: var(--color-gray-800);
    background: var(--color-white);
    transition: border-color var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--color-navy);
    box-shadow: 0 0 0 3px rgba(6, 62, 133, .1);
}
.form-error {
    display: block;
    color: var(--color-red);
    font-size: 13px;
    margin-top: 4px;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}
.alert--danger { background: rgba(229, 38, 19, .08); color: var(--color-red); }
.alert--success { background: rgba(42, 186, 117, .08); color: #2aba75; }
.alert--info { background: rgba(6, 62, 133, .08); color: var(--color-navy); }

/* Error page */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
}
.error-page h1 {
    font-size: 96px;
    font-weight: 900;
    color: var(--color-navy);
    line-height: 1;
}
.error-page p {
    font-size: 18px;
    color: var(--color-gray-400);
    margin-bottom: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero { flex-direction: column; text-align: center; min-height: auto; padding-top: 100px; }
    .hero__content { max-width: 100%; }
    .hero__actions { justify-content: center; }
    .hero__visual { flex: none; width: 100%; max-width: 380px; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: var(--color-white);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--color-gray-100);
        box-shadow: var(--shadow);
    }
    .nav__toggle { display: flex; }
    .features { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .benefits { grid-template-columns: 1fr; }
    .hero { padding: 100px 24px 60px; }
    .section { padding: 60px 0; }
    .login__card { padding: 32px 24px; }
    .footer__inner { flex-direction: column; gap: 24px; text-align: center; }
}
