/* ===== part1-base-hero.css — Base : reset, variables, header/nav, hero (lignes 1-436 du style.css original) ===== */
/* ═══════════════════════════════════════════════════════════════════════════
   IPASE - INSTITUT PROFESSIONNEL ACTION SANTÉ ÉDUCATION
   Design System & Styling complet
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --primary-blue: #00205B;
    --primary-blue-hover: #003399;
    --accent-red: #C8102E;
    --accent-red-hover: #A00C24;
    --accent-gold: #D4AF37;
    --whatsapp-green: #25D366;
    --bg-slate: #F8FAFC;
    --text-dark: #0F172A;
    --text-muted: #475569;
    --border-color: #E2E8F0;
    --card-shadow: 0 10px 30px -5px rgba(0, 32, 91, 0.08), 0 4px 12px -2px rgba(0, 32, 91, 0.04);
    --hover-shadow: 0 20px 40px -10px rgba(0, 32, 91, 0.16);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #EAEFF5;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

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

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

/* ── Barre de progression de défilement ── */
.scroll-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
    border-radius: 0 3px 3px 0;
    transition: width 0.1s linear;
    z-index: 1001;
}

/* ── Enveloppe Générale ── */
.site-wrapper {
    max-width: 1360px;
    margin: 0 auto;
    background: #FFFFFF;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.08);
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER / NAVIGATION FIXE
   ═══════════════════════════════════════════════════════════════════════════ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #FFFFFF;
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

/* Header compact au scroll (style UNIGE) */
.header.scrolled-compact .header-container {
    padding-top: 6px;
    padding-bottom: 6px;
}

.header.scrolled-compact .logo-img {
    height: 64px;
}

.header.scrolled-compact {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
}

.logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.logo-img:hover {
    transform: scale(1.02);
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px 24px;
}

.nav a {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.03em;
    transition: all 0.2s ease;
    position: relative;
}

.nav a:hover {
    color: var(--accent-red);
    background: rgba(200, 16, 46, 0.05);
}

.nav a.active {
    color: var(--primary-blue);
    background: rgba(0, 32, 91, 0.08);
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 12px;
    right: 12px;
    height: 3px;
    background: var(--accent-red);
    border-radius: 4px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.mobile-toggle:hover {
    background: rgba(0, 32, 91, 0.06);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS DE PAGE (NAVIGATION SPA)
   ═══════════════════════════════════════════════════════════════════════════ */
.main-body {
    flex: 1;
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.35s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Bannière d'en-tête de page ── */
.page-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #001235 100%);
    color: #FFFFFF;
    padding: 60px 32px;
    text-align: center;
    position: relative;
}

.banner-overlay h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.banner-overlay p {
    font-size: 18px;
    color: #CBD5E1;
    max-width: 760px;
    margin: 0 auto;
}

.catalog-download-box {
    margin-top: 24px;
}

.btn-catalog {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-red);
    color: #FFFFFF;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.4);
    transition: all 0.3s ease;
}

.btn-catalog:hover {
    background: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 16, 46, 0.5);
}

/* ── Conteneur de section commun ── */
.section-container {
    padding: 56px 40px;
    max-width: 1240px;
    margin: 0 auto;
}

.section-container.light-bg {
    background: var(--bg-slate);
    border-radius: var(--radius-lg);
    margin-top: 32px;
    margin-bottom: 32px;
}

.section-header {
    text-align: center;
    margin-bottom: 44px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -0.01em;
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--accent-red);
    margin: 12px auto 0;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE 1 : ACCUEIL
   ═══════════════════════════════════════════════════════════════════════════ */
.hero-card {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 48px 40px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F1F5F9 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    flex: 1.2;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FEE2E2;
    color: var(--accent-red);
    font-weight: 700;
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 40px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.18;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 580px;
}

.hero-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-hover) 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 36px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0, 32, 91, 0.25);
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 32, 91, 0.35);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-red);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 36px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.25);
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: var(--accent-red-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(200, 16, 46, 0.35);
}

.hero-image-wrapper {
    flex: 0.9;
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-width: 440px;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--hover-shadow);
    border: 3px solid #FFFFFF;
}

/* Grille Pourquoi Nous Choisir */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.feature-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(0, 32, 91, 0.2);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 32, 91, 0.06);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 20px;
}

.feature-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.agrément-code {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent-red);
    background: #FEE2E2;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    display: inline-block;
}
