/* ═══════════════════════════════════════════════════════
   Kavontrix — Ocean Blue + Brutalism + Atomic utilities (u-*)
   ═══════════════════════════════════════════════════════ */

:root {
    --deep-sea: #061826;
    --wave-foam: #e0f2fe;
    --coral-accent: #fb923c;

    --pure-black: #020617;
    --pure-white: #f0f9ff;

    --bg-body: #071a2e;
    --bg-card: #0c2744;
    --bg-header: #082238;
    --bg-card-solid: #0c2744;
    --surface-deep: #04121f;

    --text-primary: #f0f9ff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent: #22d3ee;
    --accent-bright: #67e8f9;

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-xl: 8px;

    --shadow-sm: 3px 3px 0 #000;
    --shadow-md: 6px 6px 0 #000;
    --shadow-lg: 8px 8px 0 #000;
    --shadow-brutal: 6px 6px 0 rgba(0, 0, 0, 0.9), 0 0 0 2px #22d3ee;
    --shadow-neu-out: var(--shadow-brutal);
    --shadow-neu-in: inset 0 0 0 2px rgba(34, 211, 238, 0.35);

    --header-height: 70px;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition-fast: 0.12s ease;
    --transition-normal: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* Header — neumorphic strip */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-header);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1000;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo__text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-bright);
}

.nav-desktop {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    font-weight: 500;
    padding: var(--space-sm) 0;
    position: relative;
    color: var(--text-secondary);
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--accent-bright);
}

.nav-link.is-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}

@media (max-width: 992px) {
    .nav-desktop {
        display: none;
    }
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.burger-menu span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-normal);
}

@media (max-width: 992px) {
    .burger-menu {
        display: flex;
    }
}

.burger-menu.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger-menu.is-open span:nth-child(2) {
    opacity: 0;
}
.burger-menu.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background: var(--bg-card-solid);
    box-shadow: var(--shadow-neu-in);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    z-index: 999;
    transition: right var(--transition-normal);
    overflow-y: auto;
}

.nav-mobile.is-open {
    right: 0;
}

.nav-mobile__link {
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.nav-mobile__link:hover {
    background: rgba(34, 211, 238, 0.15);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    transition: var(--transition-normal);
}

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

.main {
    padding-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* Hero */
.hero {
    padding: var(--space-3xl) 0;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.12) 0%, transparent 58%);
}

.hero--small {
    padding: var(--space-2xl) 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.08) 0%, transparent 50%);
}

.hero__logo {
    max-height: 60px;
    margin-bottom: var(--space-md);
}

.hero__title {
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.section {
    padding: var(--space-3xl) 0;
}

.section__title {
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn--primary {
    background: var(--accent);
    color: var(--pure-white);
    box-shadow: var(--shadow-neu-out);
}

.btn--primary:hover {
    background: var(--accent-bright);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background: rgba(34, 211, 238, 0.12);
    border: 2px solid rgba(34, 211, 238, 0.45);
    color: var(--accent-bright);
    box-shadow: 6px 6px 14px rgba(0, 0, 0, 0.35), -3px -3px 10px rgba(255, 255, 255, 0.02);
}

.btn--secondary:hover {
    background: var(--accent);
    color: var(--pure-white);
    border-color: var(--accent);
}

/* Cards — neumorphism */
.card {
    background: var(--bg-card-solid);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-neu-out);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

.card__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

/* Offer cards */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.offer-card {
    background: var(--bg-card-solid);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    box-shadow: var(--shadow-neu-out);
}

.offer-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.offer-card__logo {
    width: 80px;
    height: 60px;
    object-fit: contain;
}

.offer-card__rating {
    color: var(--accent-bright);
}

.offer-card__bonus {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-bright);
}

.offer-card__features {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.offer-card__feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
}

.offer-card__feature::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
}

.offer-card__buttons {
    display: flex;
    gap: var(--space-md);
    margin-top: auto;
    flex-wrap: wrap;
}

.offer-card__buttons .btn {
    flex: 1;
    min-width: 140px;
    padding: var(--space-md) var(--space-lg);
}

/* FAQ */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid rgba(34, 211, 238, 0.2);
}

.faq__question {
    width: 100%;
    padding: var(--space-lg) 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq__question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    transition: var(--transition-fast);
}

.faq__item.is-open .faq__question::after {
    transform: rotate(45deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq__item.is-open .faq__answer {
    max-height: 500px;
}

.faq__answer p {
    padding-bottom: var(--space-lg);
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--bg-card-solid);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-3xl) 0 var(--space-xl);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer__section h4 {
    margin-bottom: var(--space-md);
    color: var(--accent-bright);
}

.footer__section ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__section a:hover {
    color: var(--accent-bright);
}

.footer__bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(34, 211, 238, 0.15);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer__compliance {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md) var(--space-lg);
    margin-top: var(--space-lg);
    align-items: center;
    justify-items: start;
    max-width: 320px;
}

@media (max-width: 768px) {
    .footer__compliance {
        justify-items: center;
        max-width: 100%;
    }
}

.footer__compliance-logo {
    height: 50px;
    width: auto;
    max-width: 90px;
    opacity: 0.85;
    transition: var(--transition-fast);
    object-fit: contain;
}

.footer__compliance-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer__compliance-logo--light-bg {
    background-color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
}

.disclaimer {
    background: var(--surface-deep);
    padding: var(--space-md) 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

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

.modal__content {
    background: var(--bg-card-solid);
    border: 1px solid rgba(34, 211, 238, 0.35);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-neu-out);
}

.modal__content h2 {
    margin-bottom: var(--space-md);
}

.modal__buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-xl);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card-solid);
    border-top: 1px solid rgba(34, 211, 238, 0.35);
    padding: var(--space-lg) 0;
    z-index: 1500;
    transform: translateY(100%);
    transition: var(--transition-normal);
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.cookie-banner p {
    flex: 1;
    font-size: 0.875rem;
}

.article-card {
    background: var(--bg-card-solid);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-neu-out);
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.35);
}

.article-card__content {
    padding: var(--space-lg);
}

.article-card__category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-bright);
    margin-bottom: var(--space-sm);
}

.article-card__title {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.article-card__excerpt {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--pure-white);
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 100;
    box-shadow: var(--shadow-neu-out);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-bright);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.hero--404 .hero__title--huge {
    font-size: 4rem;
    color: var(--accent-bright);
}

/* Atomic-style helpers (complément BEM) */
.u-flex { display: flex; }
.u-flex-wrap { flex-wrap: wrap; }
.u-items-center { align-items: center; }
.u-justify-between { justify-content: space-between; }
.u-gap-sm { gap: var(--space-sm); }
.u-gap-md { gap: var(--space-md); }
.u-gap-lg { gap: var(--space-lg); }
.u-mt-md { margin-top: var(--space-md); }
.u-mt-xl { margin-top: var(--space-xl); }
.u-p-md { padding: var(--space-md); }
