/* GemSeek Theme - Green color scheme (matches map.html) */

/* Color palette: map.html greens */
:root {
    --gemseek-primary: #0d3b2e;
    --gemseek-primary-dark: #061f19;
    --gemseek-primary-light: #5a8f7b;
    --gemseek-primary-lighter: #8dd4b4;
    --gemseek-primary-lightest: #b8e4d0;
}

/* Buttons, links, accents use primary green */
.button,
.button:hover,
.button:focus,
.button:active {
    background-color: var(--gemseek-primary) !important;
    border-color: var(--gemseek-primary) !important;
    color: #fff !important;
}

.button:hover {
    background-color: var(--gemseek-primary-dark) !important;
    border-color: var(--gemseek-primary-dark) !important;
}

.button.alt {
    background-color: transparent !important;
    color: var(--gemseek-primary) !important;
    border-color: var(--gemseek-primary) !important;
}

.button.alt:hover {
    background-color: var(--gemseek-primary) !important;
    color: #fff !important;
}

/* Links */
a {
    color: var(--gemseek-primary) !important;
}

a:hover {
    color: var(--gemseek-primary-dark) !important;
}

/* Header styling */
#header {
    background-color: transparent !important;
}

#header h1 a {
    color: var(--gemseek-primary) !important;
}

#header .header-content p {
    color: #666 !important;
}

/* Hero section */
.hero-title {
    color: var(--gemseek-primary) !important;
}

/* Feature boxes */
.box.feature .inner header h2 {
    color: var(--gemseek-primary) !important;
}

/* Store buttons - map.html style: native-style badges, touch-friendly */
.app-buttons {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.app-buttons a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: transform 0.15s ease, opacity 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
}

.app-buttons a:active {
    transform: scale(0.97) !important;
}

.app-buttons a img {
    height: 36px !important;
    width: auto !important;
    max-width: 120px !important;
    display: block !important;
}

@media (min-width: 480px) {
    .app-buttons a img {
        height: 40px !important;
    }
}

.app-btn-ios {
    background: #000 !important;
    color: #fff !important;
    border: none !important;
}

.app-btn-android {
    background: #fff !important;
    color: #000 !important;
    border: none !important;
}

/* Text buttons (Blog, Voir la carte) - map-style green pill */
.btn-text.btn-gemseek,
.play-store-button {
    background-color: var(--gemseek-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 18px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 500 !important;
    transition: transform 0.15s ease, background-color 0.2s ease !important;
    -webkit-tap-highlight-color: transparent !important;
    box-shadow: none !important;
}

.btn-text.btn-gemseek:hover,
.play-store-button:hover {
    background-color: var(--gemseek-primary-dark) !important;
    color: #fff !important;
}

.btn-text.btn-gemseek:active,
.play-store-button:active {
    transform: scale(0.97) !important;
}

/* Legacy store-button class (e.g. hero) - no extra styling, app-btn-* do the work */
.store-button {
    background-color: transparent !important;
    color: inherit !important;
    border: none !important;
}

/* Video title */
.video-title {
    color: var(--gemseek-primary) !important;
}

/* Footer links */
#footer a {
    color: var(--gemseek-primary) !important;
}

#footer a:hover {
    color: var(--gemseek-primary-dark) !important;
}

/* Form focus states */
input:focus,
textarea:focus {
    border-color: var(--gemseek-primary) !important;
    box-shadow: 0 0 5px rgba(13, 59, 46, 0.35) !important;
}

/* Navigation */
#nav ul li a:hover {
    color: var(--gemseek-primary) !important;
}

/* Blog specific */
.blog-title,
.hero-title {
    color: var(--gemseek-primary) !important;
}

/* Override any remaining blue colors */
*[style*="#0090c5"],
*[style*="#10a0d5"],
*[style*="#20b0e5"] {
    background-color: var(--gemseek-primary) !important;
    color: #fff !important;
}

/* Specific element overrides */
#header-wrapper {
    background-color: transparent !important;
}

/* Banner section - Green theme adaptation */
#banner-wrapper {
    padding: 0 !important;
    background: transparent !important;
}

#banner {
    background: linear-gradient(135deg, var(--gemseek-primary) 0%, var(--gemseek-primary-dark) 100%) !important;
    color: white !important;
    margin: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

#banner .container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 6em 4.5em !important;
}

#banner::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') !important;
}

.hero-title {
    background: linear-gradient(45deg, #fff, #f8f8f8) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: white !important;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
}

.video-title {
    color: white !important;
    opacity: 0.95 !important;
}

/* Video section centering */
.video-section {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* ===== Hero banner UI improvements (homepage) ===== */
.hero-banner {
    position: relative;
    overflow: hidden;
}

.hero-banner #banner {
    background: linear-gradient(160deg, var(--gemseek-primary) 0%, #0a3328 45%, var(--gemseek-primary-dark) 100%) !important;
    position: relative;
}

.hero-banner #banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.hero-banner-inner .hero-row {
    align-items: center;
}

.hero-banner-inner .hero-content {
    max-width: 36em;
}

.hero-banner .hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gemseek-primary-lighter) !important;
    margin: 0 0 0.75em 0;
    font-weight: 600;
    opacity: 0.95;
}

.hero-banner .hero-tagline::before {
    content: '';
    width: 3px;
    height: 1.2em;
    background: var(--gemseek-primary-lighter);
    border-radius: 2px;
    opacity: 0.9;
}

.hero-banner .hero-title {
    font-size: clamp(2.1rem, 5.5vw, 3.5rem) !important;
    line-height: 1.15 !important;
    margin: 0 0 0.5em 0 !important;
    letter-spacing: -0.03em !important;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.15);
}

.hero-banner .hero-subtitle {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem) !important;
    line-height: 1.6 !important;
    margin: 0 0 2em 0 !important;
    opacity: 0.92;
    max-width: 28em;
}

.hero-banner .hero-actions {
    margin-top: 0.5rem;
}

.hero-banner .hero-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.hero-banner .hero-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75em 1.5em !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--gemseek-primary) !important;
    border: none !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
}

.hero-banner .hero-cta:hover {
    background: #fff !important;
    color: var(--gemseek-primary-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

/* Hero floating cards */
.hero-banner .hero-visual-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner .hero-visual {
    position: relative;
    width: 100%;
    min-height: 320px;
    max-width: 420px;
    margin: 0 auto;
}

.hero-banner .floating-card {
    position: absolute;
    background: #fff;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    animation: hero-float 5s ease-in-out infinite;
}

.hero-banner .floating-card:hover {
    transform: scale(1.05) translateY(-8px) !important;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.25), 0 12px 28px rgba(0, 0, 0, 0.15) !important;
}

.hero-banner .floating-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.hero-banner .card-1 { top: 5%; left: 0; width: 52%; animation-delay: 0s; }
.hero-banner .card-2 { top: 38%; right: 0; width: 58%; animation-delay: 1.2s; }
.hero-banner .card-3 { bottom: 8%; left: 15%; width: 50%; animation-delay: 2.4s; }

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-banner .floating-card:hover {
    animation: none;
}

/* Hero bottom curve */
.hero-banner-curve {
    display: block;
    width: 100%;
    height: 48px;
    background: #f0f2f1;
    margin-top: -1px;
    clip-path: ellipse(120% 100% at 50% 0%);
}

.hero-banner .video-section {
    margin-top: 4rem !important;
    padding-top: 2.5rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-banner .video-title {
    font-size: clamp(1.2rem, 2vw, 1.5rem) !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
}

.video-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    max-width: 800px !important;
    width: 100% !important;
}

.video-container iframe {
    display: block !important;
    margin: 0 auto !important;
}

/* Responsive design */
@media screen and (max-width: 980px) {
    #header {
        background-color: transparent !important;
    }
    
    #banner .container {
        padding: 4em 2em !important;
    }
    
    .video-container {
        max-width: 100% !important;
        padding: 0 1em !important;
    }
}

@media screen and (max-width: 736px) {
    .hero-title {
        color: white !important;
    }
    
    .button {
        background-color: var(--gemseek-primary) !important;
        color: #fff !important;
    }
    
    #banner .container {
        padding: 3em 1.5em !important;
    }
    
    .video-container {
        max-width: 100% !important;
        padding: 0 0.5em !important;
    }
    
    .video-container iframe {
        width: 100% !important;
        height: 300px !important;
    }
}

/* ===== Shared banner & burger menu (index + map) ===== */
.site-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    padding: 0.75em 1.5em;
    padding-top: max(0.75em, env(safe-area-inset-top));
    padding-left: max(1.5em, env(safe-area-inset-left));
    padding-right: max(1.5em, env(safe-area-inset-right));
    background: linear-gradient(135deg, var(--gemseek-primary) 0%, var(--gemseek-primary-dark) 100%);
    color: #fff;
    flex-wrap: wrap;
    position: relative;
    z-index: 99999;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.site-banner .banner-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    gap: 0.5em;
}

.site-banner .banner-logo img {
    height: 44px;
    width: auto;
    display: block;
}

.site-banner .banner-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

/* Language switcher (FR | EN) */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-switcher .lang-current,
.lang-switcher .lang-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    padding: 0.25em 0.5em;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-switcher .lang-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15);
}

.lang-switcher .lang-current {
    opacity: 1;
    cursor: default;
}

.lang-switcher .lang-link.lang-current {
    pointer-events: none;
    opacity: 0.85;
}

/* Burger button */
.burger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.burger-btn:hover,
.burger-btn:focus {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.burger-btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.25);
}

.burger-btn .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    position: relative;
    transition: transform 0.2s ease;
}

.burger-btn .icon-bar::before,
.burger-btn .icon-bar::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    top: -6px;
}

.burger-btn .icon-bar::after {
    top: 6px;
}

/* Burger overlay menu */
.burger-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(13, 59, 46, 0.97);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
    padding: 2em;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.burger-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.burger-overlay a {
    color: #fff !important;
    font-size: 1.35rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5em 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.burger-overlay a:hover {
    border-bottom-color: var(--gemseek-primary-lighter);
    color: #fff !important;
}

.burger-overlay .menu-close-hint {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Map page: banner above map */
body.page-map #map {
    top: 72px !important;
    height: calc(100% - 72px) !important;
    height: calc(100dvh - 72px) !important;
}

body.page-map .site-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
}

/* ===== Homepage (index.html) improvements ===== */
body.homepage #page-wrapper {
    background: #f0f2f1;
}

/* Hero */
.hero-tagline {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gemseek-primary-lighter) !important;
    margin: 0 0 0.5em 0;
    font-weight: 600;
    opacity: 0.95;
}

body.homepage .hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.2;
    margin: 0 0 0.4em 0;
    letter-spacing: -0.02em;
}

body.homepage .hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.55;
    margin: 0 0 1.75em 0;
    opacity: 0.9;
    max-width: 32em;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65em 1.25em;
    font-weight: 600;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.hero-cta:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Features section */
#features-wrapper {
    padding: 4rem 0 4.5rem 0 !important;
    background: #fff !important;
}

.features-heading {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--gemseek-primary) !important;
    margin: 0 0 0.35em 0;
    letter-spacing: -0.02em;
}

.features-intro {
    text-align: center;
    font-size: 1.05rem;
    color: #666 !important;
    margin: 0 0 2.5rem 0;
    max-width: 28em;
    margin-left: auto;
    margin-right: auto;
}

body.homepage #features-wrapper .row {
    gap: 2rem 0;
}

/* Feature cards */
.feature-card {
    background: #fff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(13, 59, 46, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    border: 1px solid rgba(13, 59, 46, 0.08) !important;
}

.feature-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 40px rgba(13, 59, 46, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.feature-card .image.featured {
    margin: 0 !important;
    overflow: hidden;
}

.feature-card .image.featured img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 0 !important;
    transition: transform 0.35s ease !important;
}

.feature-card:hover .image.featured img {
    transform: scale(1.03) !important;
}

.feature-card .inner {
    padding: 1.75rem 1.5rem 1.5rem !important;
}

.feature-card .inner header h2 {
    font-size: 1.25rem !important;
    margin: 0 0 0.2em 0 !important;
}

.feature-card .inner header p {
    font-size: 0.9rem !important;
    color: #666 !important;
    margin: 0 0 0.75rem 0 !important;
}

.feature-card .inner > p {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    color: #555 !important;
    margin: 0 0 1rem 0 !important;
}

.feature-link {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--gemseek-primary) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: color 0.2s ease, transform 0.15s ease !important;
}

.feature-link:hover {
    color: var(--gemseek-primary-dark) !important;
    transform: translateX(4px) !important;
}

/* Footer */
#footer-wrapper {
    background: var(--gemseek-primary-dark) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 2.5rem 0 2rem 0 !important;
}

#footer-wrapper a {
    color: rgba(255, 255, 255, 0.9) !important;
}

#footer-wrapper a:hover {
    color: #fff !important;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    margin: 0 0 1.5rem 0;
}

.footer-nav a {
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-social-row {
    margin-bottom: 1rem;
}

.footer-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-instagram:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.footer-instagram img {
    width: 40px !important;
    height: 40px !important;
    display: block !important;
}

.footer-copyright {
    margin: 0 !important;
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-align: center !important;
}

@media screen and (max-width: 980px) {
    .hero-banner #banner .container {
        padding: 4em 2em !important;
    }
    .hero-banner .hero-visual {
        min-height: 280px;
    }
    .hero-banner .floating-card img {
        max-width: 140px;
    }
}

@media screen and (max-width: 736px) {
    body.homepage .hero-title {
        font-size: 1.75rem;
    }
    body.homepage .hero-subtitle {
        font-size: 1rem;
    }
    .hero-banner #banner .container {
        padding: 3em 1.5em !important;
    }
    .hero-banner .hero-content {
        max-width: none;
    }
    .hero-banner .hero-tagline {
        letter-spacing: 0.12em;
        font-size: 0.75rem;
    }
    .hero-banner .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem;
        width: 100%;
        max-width: 20em;
    }
    .hero-banner .hero-cta {
        text-align: center;
    }
    .hero-banner .hero-visual {
        min-height: 240px;
        margin-top: 2rem;
    }
    .hero-banner .card-1,
    .hero-banner .card-2,
    .hero-banner .card-3 {
        width: 45% !important;
    }
    .hero-banner .floating-card img {
        max-width: 100%;
    }
    .hero-banner-curve {
        height: 32px;
    }
    .hero-banner .video-section {
        margin-top: 3rem !important;
        padding-top: 2rem !important;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    .feature-card .inner {
        padding: 1.35rem 1.25rem 1.25rem !important;
    }
    #features-wrapper {
        padding: 3rem 0 3.5rem 0 !important;
    }
}
