/* ═══════════════════════════════════════════════════════════
   VARIABLES & RESET
═══════════════════════════════════════════════════════════ */
:root {
    --primary:      #0077B6;
    --primary-dark: #023E8A;
    --secondary:    #90E0EF;
    --accent:       #00B4D8;
    --text:         #2B2D42;
    --text-light:   #6B7280;
    --bg:           #F0F7FF;
    --white:        #FFFFFF;
    --radius:       10px;
    --shadow:       0 4px 20px rgba(0,119,182,0.10);
    --shadow-hover: 0 8px 30px rgba(0,119,182,0.18);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.65;
    font-size: 16px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--primary-dark); }

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

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

/* ═══════════════════════════════════════════════════════════
   HEADER & NAV
═══════════════════════════════════════════════════════════ */
header {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.logo:hover { color: var(--primary-dark); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
}
.nav-links a:hover { color: var(--primary); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    padding: 4px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.82rem;
    color: var(--text-light);
    padding: 6px 0 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    align-items: center;
}
.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb span[aria-current] { color: var(--text-light); }

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.25);
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}
.hero p {
    font-size: 1.15rem;
    margin-bottom: 32px;
    opacity: 0.92;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-trust {
    font-size: 0.88rem;
    opacity: 0.75;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--secondary);
    color: var(--primary-dark);
    font-weight: 700;
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    text-decoration: none;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(144,224,239,0.45);
    color: var(--primary-dark);
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(0,119,182,0.35);
}

/* ═══════════════════════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════════════════════ */
.stats-bar {
    background: var(--white);
    border-bottom: 3px solid var(--secondary);
    padding: 28px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.stat-item strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-item span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ═══════════════════════════════════════════════════════════
   CARDS & GRID
═══════════════════════════════════════════════════════════ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid rgba(0,119,182,0.08);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.card h3 {
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: var(--primary-dark);
}
.card-cta {
    display: block;
    margin-top: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   WIDGET DEVIS
═══════════════════════════════════════════════════════════ */
.widget-section {
    background: var(--white);
    padding: 40px 0;
    margin: 40px 0;
    border-top: 3px solid var(--secondary);
    border-bottom: 3px solid var(--secondary);
    box-shadow: inset 0 1px 6px rgba(0,119,182,0.05);
}
.widget-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px;
    background: var(--bg);
    border-radius: var(--radius);
    text-align: center;
}
.widget-container h2 {
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-size: 1.4rem;
}
.widget-container p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════════════════════ */
.feature-item {
    text-align: center;
    padding: 10px;
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 14px;
}
.feature-item h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}
.feature-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   HOWTO STEPS
═══════════════════════════════════════════════════════════ */
.howto-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.howto-step {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    flex: 1;
    min-width: 180px;
    max-width: 260px;
    box-shadow: var(--shadow);
}
.step-number {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.howto-step h3 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}
.howto-step p { font-size: 0.88rem; color: var(--text-light); }
.howto-arrow {
    font-size: 1.5rem;
    color: var(--secondary);
    font-weight: 700;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   FAQ ACCORDION
═══════════════════════════════════════════════════════════ */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    font-family: inherit;
}
.faq-question:hover { background: var(--bg); }
.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.3s;
}
.faq-question[aria-expanded="true"]::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
footer { margin-top: 60px; }

.footer-top {
    background: var(--primary-dark);
    padding: 50px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-col h4 {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.footer-tagline {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 20px;
}
.footer-cta {
    font-size: 0.95rem;
    padding: 12px 24px;
}

.footer-bottom {
    background: #011d3a;
    padding: 18px 0;
    text-align: center;
}
.footer-bottom-inner p {
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════════════ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); padding: 20px; gap: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); z-index: 99; }
    .nav-links.nav-open { display: flex; }
    .nav-toggle { display: block; }

    .hero { padding: 50px 0; }
    .hero h1 { font-size: 1.7rem; }
    .hero p { font-size: 1rem; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .stat-item strong { font-size: 1.3rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .howto-steps { flex-direction: column; align-items: stretch; }
    .howto-arrow { transform: rotate(90deg); text-align: center; }
    .howto-step { max-width: 100%; }

    .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .card { padding: 16px; }

    /* city.php layout responsive */
    .container > div[style*="grid-template-columns:2fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 1.5rem; }
    .btn { width: 100%; max-width: 320px; }
}