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

:root {
    --navy: #2B3A5C;
    --steel: #4A6FA5;
    --steel-light: #6B8EC4;
    --white: #FFFFFF;
    --off-white: #F7F9FC;
    --light-bg: #EEF2F7;
    --gold: #D32F2F;
    --gold-hover: #B71C1C;
    --text: #2D3748;
    --text-light: #718096;
    --text-on-dark: #CBD5E0;
    --green: #38A169;
    --red: #E53E3E;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(43,58,92,0.10);
    --shadow-lg: 0 8px 40px rgba(43,58,92,0.15);
    --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); }
h2 { font-size: 2rem; font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; margin: 1.5rem 0 0.75rem; }
p { margin-bottom: 1rem; }

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

/* ===== HEADER ===== */
#header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 16px rgba(43,58,92,0.08);
}
.header-top {
    border-bottom: 1px solid rgba(43,58,92,0.06);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto; padding: 10px 24px;
}
/* Text logo */
.header-logo-text {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; flex-shrink: 0;
}
.header-logo-text:hover { text-decoration: none; }
.header-logo-img {
    height: 36px; width: auto;
}
.logo-text { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.5px; line-height: 1; }
.logo-part1 { color: #2B3A5C; }
.logo-part2 { color: #4A6FA5; }

/* Header slogan */
.header-slogan-wrap {
    flex: 1; display: flex; justify-content: center; padding: 0 20px;
}
.header-slogan {
    font-size: 0.78rem; font-weight: 500; color: var(--steel);
    letter-spacing: 1.5px; text-transform: uppercase;
    line-height: 1.3; text-align: center;
}

/* Header actions (lang only) */
.header-actions {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}

/* Language selector */
/* Language dropdown */
.lang-dropdown { position: relative; }
.lang-current {
    display: flex; align-items: center; gap: 5px;
    background: transparent; border: 2px solid var(--light-bg);
    border-radius: 8px; padding: 6px 12px; font-size: 0.85rem;
    cursor: pointer; font-weight: 600; color: var(--navy);
    transition: all var(--transition);
}
.lang-current:hover { border-color: var(--steel); background: var(--off-white); }
.lang-flag { font-size: 1.1rem; }
.lang-arrow { font-size: 0.7rem; color: var(--text-light); transition: transform 0.2s; }
.lang-dropdown.open .lang-arrow { transform: rotate(180deg); }
.lang-menu {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    background: var(--white); border-radius: 10px; padding: 6px 0;
    box-shadow: 0 8px 30px rgba(43,58,92,0.15); min-width: 160px;
    z-index: 1001; border: 1px solid rgba(43,58,92,0.08);
}
.lang-dropdown.open .lang-menu { display: block; }
.lang-option {
    display: block; width: 100%; text-align: left; padding: 8px 16px;
    background: none; border: none; font-size: 0.85rem; cursor: pointer;
    color: var(--text); transition: background 0.15s; font-weight: 500;
}
.lang-option:hover { background: var(--off-white); }
.lang-option.active { color: var(--steel); font-weight: 700; }

/* Hamburger */
.hamburger {
    display: none; background: none; border: none; cursor: pointer;
    width: 32px; height: 24px; position: relative; z-index: 1001;
}
.hamburger span {
    display: block; width: 100%; height: 3px; background: var(--navy);
    border-radius: 2px; position: absolute; left: 0;
    transition: all var(--transition);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg); top: 10px; }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg); top: 10px; }

/* Timeline nav */
.timeline-nav {
    background: var(--navy); overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.timeline-track {
    display: flex; align-items: center; justify-content: center;
    max-width: 1200px; margin: 0 auto; padding: 0 16px;
    min-height: 52px;
}
.timeline-step {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; color: rgba(255,255,255,0.7);
    font-size: 0.85rem; font-weight: 500; white-space: nowrap;
    transition: all var(--transition); position: relative;
    text-decoration: none;
}
.timeline-step:hover { color: var(--white); }
.timeline-step.active { color: var(--white); }
.timeline-step.active .step-num {
    background: var(--gold); color: var(--white);
    transform: scale(1.15);
}
.step-num {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.2); color: rgba(255,255,255,0.8);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
    transition: all var(--transition);
}
.timeline-line {
    width: 32px; height: 2px; background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

/* ===== HERO ===== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding-top: 120px;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    background-repeat: no-repeat;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        135deg,
        rgba(43,58,92,0.75) 0%,
        rgba(74,111,165,0.55) 50%,
        rgba(43,58,92,0.7) 100%
    );
}
.hero-content {
    position: relative; z-index: 1;
    text-align: center; padding: 60px 24px 80px;
    max-width: 1060px;
}
/* hero logo container removed */
.hero h1 {
    font-size: 3rem; font-weight: 900; color: var(--white);
    margin-bottom: 20px; letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}
.hero-subtitle {
    font-size: 1.15rem; color: rgba(255,255,255,0.9);
    max-width: 700px; margin: 0 auto 40px; line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.4s both;
}
.hero-ctas {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 50px;
    font-size: 1rem; font-weight: 700; cursor: pointer;
    transition: all var(--transition); text-decoration: none;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-hover));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(211,47,47,0.35);
}
.btn-primary:hover {
    transform: translateY(-2px); color: var(--white);
    box-shadow: 0 6px 28px rgba(211,47,47,0.45);
}
.btn-secondary {
    background: rgba(255,255,255,0.15); color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.25); color: var(--white);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent; color: var(--steel);
    border: 2px solid var(--steel);
}
.btn-outline:hover {
    background: var(--steel); color: var(--white);
    transform: translateY(-2px);
}
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-light { background: var(--off-white); }
.section-white { background: var(--white); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--text-on-dark); }

.section-title {
    text-align: center; margin-bottom: 48px;
    position: relative;
}
.section-title::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: var(--gold); margin: 16px auto 0; border-radius: 2px;
}
.section-intro {
    font-size: 1.15rem; text-align: center; max-width: 800px;
    margin: 0 auto 24px; color: var(--text-light);
}

/* ===== ÉTAPES ===== */
.etape-header {
    display: flex; align-items: flex-start; gap: 24px;
    margin-bottom: 40px;
}
.etape-number {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, var(--steel), var(--navy));
    color: var(--white); display: flex; align-items: center;
    justify-content: center; font-size: 2rem; font-weight: 900;
    flex-shrink: 0; box-shadow: 0 4px 20px rgba(74,111,165,0.3);
}
.etape-number.light {
    background: linear-gradient(135deg, var(--gold), var(--gold-hover));
}
.etape-badge {
    display: inline-block; padding: 6px 16px; border-radius: 50px;
    background: var(--off-white); color: var(--steel);
    font-size: 0.9rem; font-weight: 600; margin-top: 8px;
}
.etape-badge.light {
    background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9);
}

.etape-body {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    align-items: start;
}
.etape-content { min-width: 0; }
.etape-body.reverse { direction: rtl; }
.etape-body.reverse > * { direction: ltr; }

.etape-image {
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.etape-image img {
    width: 100%; height: 360px; object-fit: cover;
    transition: transform 0.6s ease;
}
.etape-image:hover img { transform: scale(1.03); }

.etape-cta { text-align: center; margin-top: 40px; }

/* Key points */
.key-points {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin: 20px 0;
}
.key-point {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: var(--radius-sm);
    background: var(--off-white); font-size: 0.95rem;
}
.kp-icon { font-size: 1.2rem; flex-shrink: 0; }

/* Check lists */
.check-list { margin: 12px 0 20px; }
.check-list li {
    padding: 8px 0 8px 28px; position: relative;
    border-bottom: 1px solid var(--light-bg);
}
.check-list li:last-child { border: none; }
.check-list li::before {
    content: '✓'; position: absolute; left: 0; top: 8px;
    color: var(--green); font-weight: 700;
}
.check-list.red li::before { content: '✗'; color: var(--red); }
.check-list.green li::before { color: var(--green); }

/* Info box */
.info-box {
    display: flex; gap: 16px; padding: 22px 26px;
    border-radius: var(--radius); background: linear-gradient(135deg, #EEF2F7 0%, #F7F9FC 100%);
    border-left: 4px solid var(--steel); margin: 20px 0;
    align-items: flex-start;
}
.info-box.light {
    background: rgba(255,255,255,0.1);
    border-left-color: var(--gold);
}
.info-icon {
    font-size: 1.1rem; flex-shrink: 0;
    width: 36px; height: 36px; display: flex;
    align-items: center; justify-content: center;
    background: var(--white); border-radius: 10px;
    box-shadow: 0 2px 8px rgba(43,58,92,0.08);
}

/* Grid */
.grid-2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin: 16px 0;
}
.mini-card {
    padding: 14px 18px; border-radius: var(--radius-sm);
    background: var(--off-white); font-weight: 500;
    font-size: 0.95rem; transition: transform var(--transition);
}
.mini-card:hover { transform: translateY(-2px); }

/* Two cols */
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.col-card {
    padding: 28px; border-radius: var(--radius);
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
}
.col-card.highlight {
    background: rgba(255,255,255,0.12);
    border-color: var(--gold);
}
.col-card h3 { margin-top: 0; }

/* ===== CANTON TABS ===== */
.canton-tabs {
    display: flex; justify-content: center; gap: 8px;
    margin-bottom: 32px;
}
.canton-tab {
    padding: 12px 28px; border-radius: 50px;
    background: var(--white); border: 2px solid var(--light-bg);
    font-weight: 600; cursor: pointer; color: var(--text-light);
    transition: all var(--transition); font-size: 0.95rem;
}
.canton-tab:hover { border-color: var(--steel); color: var(--navy); }
.canton-tab.active {
    background: var(--navy); border-color: var(--navy); color: var(--white);
}
.canton-content { display: none; }
.canton-content.active { display: block; }

.canton-card {
    background: var(--white); border-radius: var(--radius);
    padding: 36px; box-shadow: var(--shadow);
}
.canton-info {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
    margin: 24px 0;
}
.canton-detail {
    padding: 20px; border-radius: var(--radius-sm);
    background: var(--off-white);
}

/* Compare table */
.compare-table {
    background: var(--white); border-radius: var(--radius);
    padding: 8px; box-shadow: var(--shadow); overflow: hidden;
}
.compare-row {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 0; padding: 16px 20px;
    border-bottom: 1px solid var(--light-bg);
    align-items: center;
}
.compare-row:last-child { border: none; }
.compare-row.header {
    background: var(--navy); color: var(--white); font-weight: 700;
    border-radius: var(--radius-sm);
}
.highlight-green { color: var(--green); font-weight: 600; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--light-bg); border-radius: var(--radius);
    margin-bottom: 12px; overflow: hidden;
    transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-question {
    width: 100%; padding: 20px 24px;
    display: flex; justify-content: space-between; align-items: center;
    background: none; border: none; cursor: pointer;
    font-size: 1.05rem; font-weight: 600; color: var(--navy);
    text-align: left; gap: 16px;
}
.faq-icon {
    font-size: 1.5rem; font-weight: 300; color: var(--steel);
    transition: transform var(--transition); flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer > div { padding: 0 24px 24px; }
.faq-answer p, .faq-answer li { font-size: 0.95rem; color: var(--text-light); }
.faq-answer ul, .faq-answer ol { margin: 8px 0 12px 20px; }
.faq-answer li { padding: 4px 0; list-style: disc; }
.faq-answer ol li { list-style: decimal; }

/* ===== CTA SECTION ===== */
.section-cta {
    background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
    text-align: center; color: var(--white); padding: 100px 0;
}
.section-cta h2 { color: var(--white); font-size: 2.5rem; margin-bottom: 20px; }
.section-cta p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 700px; margin: 0 auto 32px; }
.cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.cta-motivation { margin-top: 40px !important; font-size: 1.1rem !important; }

/* ===== LOCATION PILLS (Étape 1 CTA) ===== */
.cta-heading {
    font-size: 1.2rem; font-weight: 700; color: var(--navy);
    margin-bottom: 20px; text-align: center;
}
.location-pills {
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center; margin-bottom: 16px;
}
.pill-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: 50px;
    background: var(--white); color: var(--navy);
    border: 2px solid var(--steel-light);
    font-size: 0.9rem; font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(43,58,92,0.06);
}
.pill-btn:hover {
    background: var(--steel); color: var(--white);
    border-color: var(--steel);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(74,111,165,0.25);
}
.pill-btn-red {
    background: #D32F2F; color: var(--white);
    border-color: #D32F2F;
}
.pill-btn-red:hover {
    background: #B71C1C; border-color: #B71C1C;
    color: var(--white);
}
.all-locations-link {
    display: inline-block; margin-top: 8px;
    font-weight: 700; font-size: 0.95rem;
    color: var(--steel); text-decoration: none;
    transition: color var(--transition);
}
.all-locations-link:hover { color: var(--gold); }

/* ===== FOOTER TEXT LOGO ===== */
.footer-logo-text {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px;
}
.footer-logo-text .logo-text { font-size: 1.4rem; font-weight: 900; }
.footer-logo-text .logo-part1 { color: #8BA4CC; }
.footer-logo-text .logo-part2 { color: #A8C4E6; }
.footer-logo-text .logo-icon { font-size: 1.4rem; }
.footer-logo-img {
    height: 42px; width: auto; border-radius: 6px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

/* ===== FOOTER ===== */
#footer {
    background: #1a2540; color: var(--text-on-dark); padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
/* .footer-logo removed — using text logo now */
.footer-col h4 { color: var(--white); margin-bottom: 16px; font-size: 1rem; }
.footer-col ul { margin: 0; }
.footer-col li { padding: 6px 0; }
.footer-col a { color: var(--text-on-dark); }
.footer-col a:hover { color: var(--gold); }
/* gold is now red — intentional naming kept for consistency */
.footer-col p { font-size: 0.9rem; margin-bottom: 8px; color: var(--text-on-dark); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px; text-align: center; font-size: 0.85rem;
}
.footer-disclaimer { color: rgba(255,255,255,0.4); font-size: 0.8rem; margin: 8px 0; }

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

.animate-on-scroll {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1; transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .etape-body, .etape-body.reverse {
        grid-template-columns: 1fr; direction: ltr;
    }
    .etape-image { order: -1; }
    .two-cols { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    html { scroll-padding-top: 100px; }
    .hero h1 { font-size: 2rem; }
    .pill-btn { padding: 8px 14px; font-size: 0.82rem; }
    .logo-text { font-size: 1.2rem !important; }
    .hero-subtitle { font-size: 1rem; }
    h2 { font-size: 1.6rem; }
    .section { padding: 60px 0; }
    
    .header-slogan-wrap { display: none; }
    .hamburger { display: block; }
    .timeline-nav {
        display: none; position: fixed; top: 72px; left: 0; right: 0;
        background: var(--navy); z-index: 999;
    }
    .timeline-nav.open { display: block; }
    .timeline-track {
        flex-direction: column; align-items: stretch; padding: 12px;
    }
    .timeline-line { display: none; }
    .timeline-step { padding: 12px 16px; justify-content: flex-start; }
    
    .etape-header { flex-direction: column; align-items: center; text-align: center; }
    .etape-number { width: 60px; height: 60px; font-size: 1.6rem; }
    .key-points { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .canton-info { grid-template-columns: 1fr; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .btn-lg { padding: 16px 32px; font-size: 1rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .compare-row { grid-template-columns: 1.5fr 1fr 1fr; font-size: 0.85rem; padding: 12px; }
    .lang-dropdown .lang-menu { right: 0; left: auto; }
    .canton-tabs { flex-wrap: wrap; }
    .canton-tab { padding: 10px 20px; font-size: 0.85rem; }
}

/* ===== ARABIC RTL ===== */
[data-lang="ar"] { direction: rtl; text-align: right; }

/* ===== EASY RESCUE CONTACT ===== */
.easy-rescue-contact {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-top: 16px; flex-wrap: wrap;
    font-size: 0.95rem; font-weight: 500;
}
.easy-rescue-contact a {
    color: var(--steel); text-decoration: none;
    transition: color var(--transition);
}
.easy-rescue-contact a:hover { color: var(--gold); }
.contact-sep { color: var(--text-light); }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: var(--navy); color: var(--white);
    padding: 16px 24px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    transform: translateY(0);
    transition: transform 0.4s ease;
}
.cookie-banner.hidden { transform: translateY(100%); }
.cookie-content {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
}
.cookie-content p { margin: 0; font-size: 0.9rem; color: rgba(255,255,255,0.85); flex: 1; }
.cookie-content a { color: var(--steel-light); text-decoration: underline; }
#cookie-accept { flex-shrink: 0; padding: 10px 24px; font-size: 0.9rem; }

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .logo-text { font-size: 1.1rem !important; }
    .container { padding: 0 16px; }
    .btn { padding: 12px 24px; font-size: 0.9rem; }
    .etape-body { gap: 24px; }
    .section-cta h2 { font-size: 1.8rem; }
}
