/* ============================================
   JURILIO - LANDING PAGE CSS
   Design System "Encre & Papier"
   Version 1.0 - 19/12/2025
   ============================================ */

/* ----------------------------------------
   VARIABLES
   ---------------------------------------- */
:root {
    /* Fonds */
    --fond: #fafaf9;
    --fond-secondary: #f5f5f4;
    --fond-hover: #e7e5e4;
    --fond-carte: #ffffff;
    
    /* Textes */
    --texte: #1c1917;
    --texte-secondary: #57534e;
    --texte-muted: #a8a29e;
    
    /* Bordures */
    --bordure: #e7e5e4;
    --bordure-dark: #d6d3d1;
    
    /* Navigation */
    --nav-bg: #1c1917;
    --nav-hover: #292524;
    --nav-text: #ffffff;
    --nav-muted: #a8a29e;
    
    /* Accent Neutre */
    --accent: #57534e;
    --accent-hover: #44403c;
    --accent-light: #f5f5f4;
    
    /* Statuts */
    --vert: #10b981;
    --vert-fond: #ecfdf5;
    
    /* Espacements */
    --espace-xs: 4px;
    --espace-sm: 8px;
    --espace-md: 16px;
    --espace-lg: 24px;
    --espace-xl: 32px;
    --espace-2xl: 48px;
    --espace-3xl: 64px;
    --espace-4xl: 96px;
    
    /* Rayons */
    --rayon-sm: 4px;
    --rayon-md: 6px;
    --rayon-lg: 8px;
    --rayon-xl: 12px;
    --rayon-2xl: 16px;
    --rayon-full: 9999px;
    
    /* Ombres */
    --ombre-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
    --ombre-md: 0 4px 12px rgba(28, 25, 23, 0.08);
    --ombre-lg: 0 8px 24px rgba(28, 25, 23, 0.12);
    --ombre-xl: 0 16px 48px rgba(28, 25, 23, 0.15);
    
    /* Transitions */
    --transition: 0.15s ease;
    --transition-slow: 0.3s ease;
    
    /* Typo */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 32px;
    --font-size-4xl: 40px;
    --font-size-5xl: 48px;
    
    --line-height: 1.6;
    --line-height-tight: 1.3;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--texte);
    background: var(--fond);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: var(--line-height-tight);
    color: var(--texte);
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* ----------------------------------------
   NAVIGATION
   ---------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-slow);
}

.nav.scrolled {
    background: var(--nav-bg);
    padding: 12px 32px;
    box-shadow: var(--ombre-lg);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 48px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--nav-text);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-menu a {
    padding: 8px 16px;
    color: var(--nav-muted);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--rayon-md);
    transition: all var(--transition);
}

.nav-menu a:hover {
    color: var(--nav-text);
    background: var(--nav-hover);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ----------------------------------------
   BOUTONS
   ---------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: var(--rayon-md);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn--secondary {
    background: var(--fond-carte);
    color: var(--texte);
    border-color: var(--bordure);
}

.btn--secondary:hover {
    background: var(--fond-hover);
    border-color: var(--bordure-dark);
}

.btn--ghost {
    background: transparent;
    color: var(--nav-muted);
    border-color: transparent;
}

.btn--ghost:hover {
    color: var(--nav-text);
    background: var(--nav-hover);
}

.btn--white {
    background: #ffffff;
    color: var(--texte);
    border-color: #ffffff;
}

.btn--white:hover {
    background: var(--fond);
    transform: translateY(-1px);
}

.btn--outline-white {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn--outline-white:hover {
    background: #ffffff;
    color: var(--texte);
    border-color: #ffffff;
}

.btn--lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* ----------------------------------------
   HERO
   ---------------------------------------- */
.hero {
    min-height: 100vh;
    background: var(--nav-bg);
    display: flex;
    align-items: center;
    padding: 120px 32px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(87, 83, 78, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(87, 83, 78, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: var(--rayon-full);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--vert);
    border-radius: 50%;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    color: #ffffff;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 22px);
    color: rgba(255, 255, 255, 0.7);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 48px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ----------------------------------------
   SECTIONS
   ---------------------------------------- */
.section {
    padding: var(--espace-4xl) 32px;
}

.section--alt {
    background: var(--fond-secondary);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--espace-3xl);
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(28px, 3vw, 36px);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--texte-secondary);
}

/* ----------------------------------------
   COMMENT CA MARCHE (3 etapes)
   ---------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.step {
    text-align: center;
    padding: 32px 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--rayon-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.step p {
    color: var(--texte-secondary);
    font-size: 15px;
}

/* ----------------------------------------
   AVANTAGES
   ---------------------------------------- */
.benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .benefits {
        grid-template-columns: 1fr;
    }
}

.benefit {
    background: var(--fond-carte);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon-xl);
    padding: 28px;
    transition: all var(--transition);
}

.benefit:hover {
    border-color: var(--bordure-dark);
    box-shadow: var(--ombre-md);
}

.benefit-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    border-radius: var(--rayon-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.benefit-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.benefit h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.benefit p {
    color: var(--texte-secondary);
    font-size: 15px;
    line-height: 1.5;
}

/* ----------------------------------------
   POUR QUI
   ---------------------------------------- */
.audience {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 640px) {
    .audience {
        grid-template-columns: 1fr;
    }
}

.audience-card {
    background: var(--fond-carte);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon-xl);
    padding: 32px;
    text-align: center;
}

.audience-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.audience-card p {
    color: var(--texte-secondary);
    font-size: 15px;
}

/* ----------------------------------------
   FAQ
   ---------------------------------------- */
.faq-container {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--bordure);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 500;
    color: var(--texte);
    text-align: left;
    cursor: pointer;
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--texte-muted);
    transition: transform var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--texte-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* ----------------------------------------
   CTA
   ---------------------------------------- */
.cta {
    background: var(--nav-bg);
    padding: var(--espace-4xl) 32px;
    text-align: center;
}

.cta h2 {
    font-size: clamp(28px, 3vw, 36px);
    color: #ffffff;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ----------------------------------------
   FOOTER
   ---------------------------------------- */
.footer {
    background: var(--fond-secondary);
    padding: var(--espace-3xl) 32px var(--espace-xl);
    border-top: 1px solid var(--bordure);
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
}

.footer-brand .logo {
    color: var(--texte);
    margin-bottom: 12px;
    display: inline-block;
}

.footer-brand p {
    color: var(--texte-secondary);
    font-size: 15px;
    max-width: 300px;
}

@media (max-width: 768px) {
    .footer-brand p {
        max-width: none;
    }
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--texte);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--texte-secondary);
    font-size: 15px;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1000px;
    margin: var(--espace-xl) auto 0;
    padding-top: var(--espace-lg);
    border-top: 1px solid var(--bordure);
    text-align: center;
    font-size: 14px;
    color: var(--texte-muted);
}

/* ----------------------------------------
   MODAL CONNEXION
   ---------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--fond-carte);
    border-radius: var(--rayon-2xl);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-slow);
    box-shadow: var(--ombre-xl);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--texte-muted);
    cursor: pointer;
    border-radius: var(--rayon-md);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--fond-hover);
    color: var(--texte);
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--texte);
    margin-bottom: 16px;
}

.modal-logo span {
    color: var(--accent);
}

.modal-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--texte-secondary);
    font-size: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--texte-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-family);
    font-size: 15px;
    color: var(--texte);
    background: var(--fond);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon-md);
    transition: all var(--transition);
}

.form-input:hover {
    border-color: var(--bordure-dark);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-input::placeholder {
    color: var(--texte-muted);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--texte-secondary);
    cursor: pointer;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.forgot-link {
    color: var(--accent);
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.modal-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--texte-secondary);
}

.modal-footer a {
    color: var(--accent);
    font-weight: 500;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* ----------------------------------------
   RESPONSIVE
   ---------------------------------------- */
@media (max-width: 768px) {
    .nav {
        padding: 12px 20px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .section {
        padding: var(--espace-3xl) 20px;
    }
    
    .cta {
        padding: var(--espace-3xl) 20px;
    }
    
    .footer {
        padding: var(--espace-2xl) 20px var(--espace-lg);
    }
}

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

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
