/* ============================================================
   assets/css/index.css — Page d'accueil publique
   ============================================================ */

body { display:flex; flex-direction:column; min-height:100dvh; }
main { flex:1; }
#mainContent { opacity:0; }

/* ════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════ */
.site-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    padding: 0 5%; position:sticky; top:0; z-index:100;
    box-shadow: var(--shadow-sm);
    transition: background .25s, border-color .25s;
}
.header-inner {
    max-width: 1280px; margin:0 auto;
    height:68px; display:flex; align-items:center;
    justify-content:space-between; gap:20px;
}
.site-logo {
    display:flex; align-items:center; gap:10px;
    font-weight:700; font-size:1.2rem; color: var(--text-primary);
    text-decoration:none; flex-shrink:0;
}
.site-logo svg { width:28px; height:28px; color: var(--accent); }
.site-logo img { max-height:34px; }

/* Nav links (desktop) */
.nav-links { display:flex; align-items:center; gap:2rem; list-style:none; }
.nav-links a { color: var(--text-secondary); font-weight:500; font-size:.93rem; transition: color .15s; }
.nav-links a:hover { color: var(--accent); }

/* Header right */
.header-right { display:flex; align-items:center; gap:14px; }
.btn-login {
    background: var(--accent); color:#fff; border:none;
    border-radius: var(--radius); padding: 9px 20px;
    font-weight:600; font-size:.9rem; cursor:pointer;
    text-decoration:none; transition: background .2s, box-shadow .2s;
    white-space:nowrap; font-family: var(--font-sans);
}
.btn-login:hover { background: var(--accent-hover); box-shadow: 0 4px 12px rgba(37,99,235,.3); color:#fff; }

/* Hamburger mobile */
.mobile-menu-btn {
    display:none; background:none; border:none;
    color: var(--text-primary); cursor:pointer; padding:6px;
    border-radius: var(--radius-sm);
}
.mobile-menu-btn:hover { background: var(--bg-page); }
.mobile-menu-btn svg { width:24px; height:24px; display:block; }

/* Menu mobile déroulant */
.nav-mobile {
    display:none; flex-direction:column; gap:2px;
    padding: 10px 0 14px; border-top: 1px solid var(--border);
}
.nav-mobile.open { display:flex; }
.nav-mobile a {
    display:block; padding: 10px 4px;
    color: var(--text-secondary); font-weight:500; font-size:.95rem;
    transition: color .15s;
}
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile-actions {
    display:flex; flex-direction:column; gap:8px; padding-top:8px;
    border-top: 1px solid var(--border); margin-top:6px;
}

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--bg-page) 60%);
    padding: 80px 5% 72px; text-align:center;
    border-bottom: 1px solid var(--border);
}
.hero-inner { max-width:720px; margin:0 auto; }
.hero h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight:800; letter-spacing:-.03em;
    color: var(--text-primary); margin-bottom:16px; line-height:1.15;
}
.hero h1 span { color: var(--accent); }
.hero p { font-size:1.05rem; color: var(--text-secondary); margin-bottom:32px; line-height:1.7; }
.hero-actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

.btn-hero-primary {
    background: var(--accent); color:#fff; border:none;
    border-radius: var(--radius-lg); padding: 14px 32px;
    font-size:1rem; font-weight:700; cursor:pointer; text-decoration:none;
    transition: background .2s, box-shadow .2s, transform .15s;
    box-shadow: 0 4px 14px rgba(37,99,235,.3);
    font-family: var(--font-sans);
}
.btn-hero-primary:hover { background: var(--accent-hover); transform:translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.4); color:#fff; }
.btn-hero-secondary {
    background: var(--bg-card); color: var(--text-primary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg); padding: 14px 32px;
    font-size:1rem; font-weight:600; cursor:pointer; text-decoration:none;
    transition: all .2s; font-family: var(--font-sans);
}
.btn-hero-secondary:hover { background: var(--bg-page); border-color: var(--accent); color: var(--accent); }

/* ════════════════════════════════════════════════════════════
   SECTIONS
   ════════════════════════════════════════════════════════════ */
.section { padding: 72px 5%; max-width:1280px; margin:0 auto; }
.section-title-center {
    text-align:center; font-size: clamp(1.4rem,3vw,2rem);
    font-weight:800; color: var(--text-primary); margin-bottom:12px; letter-spacing:-.02em;
}
.section-desc-center {
    text-align:center; color: var(--text-secondary);
    font-size:1rem; margin-bottom:44px;
    max-width:560px; margin-left:auto; margin-right:auto;
}

/* Procédures grid */
.procedures-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap:18px; }
.procedure-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 26px 22px;
    display:flex; flex-direction:column; align-items:flex-start; gap:12px;
    cursor:pointer; text-decoration:none;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.procedure-card:hover { transform:translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.procedure-card-icon {
    width:46px; height:46px; background: var(--accent-light);
    border-radius: var(--radius-lg); display:flex; align-items:center;
    justify-content:center; color: var(--accent); flex-shrink:0;
}
.procedure-card-icon svg { width:24px; height:24px; }
.procedure-card h3 { font-size:1rem; font-weight:700; color: var(--text-primary); line-height:1.3; }
.procedure-card p  { font-size:.85rem; color: var(--text-secondary); line-height:1.6; }
.procedure-card .card-price { margin-top:auto; font-size:1.05rem; font-weight:800; color: var(--accent); }

/* Comment ça marche */
.steps-alt {
    background: var(--bg-page); padding: 72px 5%;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    transition: background .25s;
}
.steps-inner { max-width:1280px; margin:0 auto; }
.steps-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap:22px; }
.step-item {
    text-align:center; padding: 26px 18px;
    background: var(--bg-card); border-radius: var(--radius-xl);
    border: 1px solid var(--border); transition: box-shadow .2s, background .25s;
}
.step-item:hover { box-shadow: var(--shadow); }
.step-number {
    width:46px; height:46px; background: var(--accent); color:#fff;
    border-radius:50%; font-size:1rem; font-weight:800;
    display:flex; align-items:center; justify-content:center; margin: 0 auto 14px;
}
.step-item h4 { font-size:.95rem; font-weight:700; color: var(--text-primary); margin-bottom:8px; }
.step-item p  { font-size:.83rem; color: var(--text-secondary); line-height:1.6; }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--bg-card); border-top: 1px solid var(--border);
    padding: 22px 5%; transition: background .25s;
}
.footer-inner {
    max-width:1280px; margin:0 auto;
    display:flex; align-items:center; justify-content:space-between;
    flex-wrap:wrap; gap:12px; font-size:.86rem; color: var(--text-secondary);
}
.footer-links { display:flex; gap:18px; flex-wrap:wrap; }
.footer-links a { color: var(--text-secondary); transition: color .15s; }
.footer-links a:hover { color: var(--accent); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .procedures-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid      { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Header */
    .site-header { padding: 0 16px; }
    .header-inner { height:60px; }
    .nav-links  { display:none; }
    .mobile-menu-btn { display:flex !important; }

    /* Hero */
    .hero { padding: 48px 16px 40px; }
    .hero p { font-size:.95rem; }
    .hero-actions { flex-direction:column; align-items:stretch; gap:10px; }
    .btn-hero-primary, .btn-hero-secondary { text-align:center; padding:13px 20px; }

    /* Sections */
    .section    { padding: 40px 16px; }
    .steps-alt  { padding: 40px 16px; }

    /* Procédures */
    .procedures-grid { grid-template-columns: 1fr 1fr; gap:12px; }
    .procedure-card  { padding: 16px 14px; }
    .procedure-card p { display:none; }

    /* Steps */
    .steps-grid { grid-template-columns: 1fr 1fr; gap:12px; }
    .step-item  { padding: 18px 12px; }

    /* Footer */
    .footer-inner { flex-direction:column; text-align:center; }
    .footer-links { justify-content:center; }
}

@media (max-width: 480px) {
    .procedures-grid { grid-template-columns: 1fr; }
    .steps-grid      { grid-template-columns: 1fr; }
    .hero h1 { font-size:1.6rem; }
    .site-header { padding: 0 12px; }
}
