/* =============================================
   DESIGN TOKENS
   ============================================= */
@font-face {
    font-family: 'Redemption';
    src: url('assets/fonts/redemption_regular.ttf') format('truetype');
    font-weight: 400 700;
    font-display: swap;
}

:root {
    /* Brand Colors */
    --c-primary:       #495533;
    --c-primary-mid:   #5A5B37;
    --c-primary-light: #8b8d5a;
    --c-copper:        #A8763E;
    --c-copper-light:  #d19756;

    /* Neutrals */
    --c-ghost-white:   #ffffff;
    --c-carbon-black:  #0a0a0a;
    --c-onyx:          #111111;
    --c-onyx-light:    #1a1a1a;

    /* Status */
    --c-success: #66BB6A;
    --c-error:   #EF5350;

    /* Gradients */
    --g-brand: linear-gradient(135deg, rgba(73, 85, 51, 0.8) 0%, rgba(90, 91, 55, 0.8) 100%);

    /* Spacing */
    --sp-xs:   4px;
    --sp-s:    8px;
    --sp-m:    16px;
    --sp-l:    24px;
    --sp-xl:   32px;
    --sp-xxl:  48px;
    --sp-xxxl: 80px;

    /* Typography */
    --font-display: 'Redemption', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Radius */
    --r-m:    8px;
    --r-l:    16px;
    --r-xl:   24px;
    --r-pill: 999px;

    /* Transitions */
    --t-fast: 0.15s ease;
    --t-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--c-carbon-black);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--sp-xl);
}

.section {
    padding: var(--sp-xxxl) 0;
}

.section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--c-ghost-white);
    text-align: center;
    margin-bottom: var(--sp-xxl);
    letter-spacing: -0.02em;
}

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    height: 100svh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--c-carbon-black);
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.85;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 0.85) 100%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: var(--sp-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-m);
}

.hero__logo {
    width: clamp(80px, 12vw, 140px);
    height: auto;
    filter: invert(1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
    margin-bottom: var(--sp-s);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    color: var(--c-ghost-white);
    letter-spacing: 0.04em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
    line-height: 1;
}

.hero__baseline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.01em;
}

.hero__scroll {
    position: absolute;
    bottom: var(--sp-xxl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.6;
}

.hero__scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--r-pill);
    position: relative;
}

.hero__scroll-mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--c-ghost-white);
    border-radius: var(--r-pill);
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50%      { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

/* =============================================
   SURCHARGE PROGRESSIVE
   ============================================= */
.overload {
    background-color: var(--c-carbon-black);
    position: relative;
}

.overload__card {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-xl);
    padding: var(--sp-xxxl) var(--sp-xxl);
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.overload__card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(168, 118, 62, 0.15), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.overload__badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-copper-light);
    background: rgba(168, 118, 62, 0.1);
    border: 1px solid rgba(168, 118, 62, 0.2);
    padding: 6px 16px;
    border-radius: var(--r-pill);
    margin-bottom: var(--sp-l);
}

.overload__title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    color: var(--c-ghost-white);
    line-height: 1.2;
    margin-bottom: var(--sp-l);
    letter-spacing: -0.02em;
}

.overload__text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--sp-m);
}

.overload__text b {
    color: var(--c-ghost-white);
}

.overload__highlight {
    display: inline-block;
    margin-top: var(--sp-l);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--c-copper-light);
    padding: var(--sp-m) var(--sp-xl);
    background: rgba(168, 118, 62, 0.05);
    border-radius: var(--r-l);
    border: 1px solid rgba(168, 118, 62, 0.2);
}

/* =============================================
   DESCRIPTION
   ============================================= */
.description {
    background-color: var(--c-carbon-black);
}

.description__card {
    max-width: 820px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--c-onyx) 0%, var(--c-onyx-light) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--r-xl);
    padding: var(--sp-xxl);
    text-align: center;
}

.description__text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.75);
}

.description__text b {
    color: var(--c-ghost-white);
}

/* =============================================
   DOWNLOAD
   ============================================= */
.download {
    position: relative;
    text-align: center;
    background: var(--c-carbon-black);
}

.download::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--g-brand);
    opacity: 0.15;
    pointer-events: none;
}

.download__subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--sp-xxl);
}

.download__buttons {
    display: flex;
    gap: var(--sp-l);
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.download .section__title {
    margin-bottom: var(--sp-xs);
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-m);
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-l);
    text-decoration: none;
    color: var(--c-ghost-white);
    transition: var(--t-base);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.store-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.store-btn__icon {
    width: 32px;
    height: 32px;
}

.store-btn__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-btn__label {
    font-size: 0.7rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.store-btn__name {
    font-size: 1.2rem;
    font-weight: 600;
}

/* =============================================
   TABLEAU COMPARATIF
   ============================================= */
.pricing {
    background-color: var(--c-carbon-black);
}

.pricing__wrapper {
    overflow-x: auto;
    border-radius: var(--r-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--c-onyx);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pricing__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    min-width: 600px;
}

.pricing__table th {
    padding: var(--sp-xl) var(--sp-l);
    text-align: center;
    color: var(--c-ghost-white);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing__table th:first-child {
    text-align: left;
    width: 45%;
}

.pricing__plan-name {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.pricing__plan-price {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.pricing__plan-price--premium {
    color: var(--c-copper-light);
    font-weight: 600;
    opacity: 1;
}

.pricing__table tbody tr {
    transition: background var(--t-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.pricing__table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.pricing__table td {
    padding: var(--sp-m) var(--sp-l);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    vertical-align: middle;
}

.pricing__table td:first-child {
    text-align: left;
    color: rgba(255, 255, 255, 0.9);
}

.pricing__table td i {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.4);
    display: block;
    margin-top: 4px;
    font-style: normal;
}

.premium-col {
    background: rgba(168, 118, 62, 0.05);
    position: relative;
}

.pricing__table th.premium-col {
    background: rgba(168, 118, 62, 0.1);
    border-top: 3px solid var(--c-copper-light);
}

/* Check / cross cells */
.check {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
    font-weight: 600;
}

.check--premium {
    color: var(--c-success);
}

.check--partial {
    color: var(--c-copper-light);
    font-size: 0.9rem;
}

.cross {
    color: rgba(239, 83, 80, 0.4);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background-color: #050505;
    padding: var(--sp-xxl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-m);
}

.footer__copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer__nav {
    display: flex;
    align-items: center;
    gap: var(--sp-xl);
}

.footer__link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--t-fast);
}

.footer__link:hover {
    color: var(--c-ghost-white);
}

.footer__link--instagram {
    display: flex;
    align-items: center;
    gap: var(--sp-s);
}

.footer__link--instagram:hover {
    color: #E1306C;
}

/* =============================================
   PAGE LÉGALE
   ============================================= */
.legal-page {
    background: var(--c-carbon-black);
}

/* En-tête sticky */
.legal-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--sp-m);
    padding-bottom: var(--sp-m);
}

.legal-back {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: var(--sp-s);
    transition: color var(--t-fast);
}

.legal-back:hover {
    color: var(--c-ghost-white);
}

.legal-header__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: var(--c-ghost-white);
}

/* Hero légal */
.legal-hero {
    position: relative;
    padding: var(--sp-xxxl) 0 var(--sp-xxl);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(168, 118, 62, 0.12), transparent 50%),
        radial-gradient(circle at 80% 100%, rgba(73, 85, 51, 0.18), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.legal-hero > .container {
    position: relative;
    z-index: 1;
}

.legal-hero__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--c-copper-light);
    background: rgba(168, 118, 62, 0.1);
    border: 1px solid rgba(168, 118, 62, 0.25);
    padding: 6px 16px;
    border-radius: var(--r-pill);
    margin-bottom: var(--sp-l);
}

.legal-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--c-ghost-white);
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: var(--sp-m);
}

.legal-hero__subtitle {
    max-width: 620px;
    margin: 0 auto var(--sp-l);
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

.legal-hero__updated {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-s);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

.legal-hero__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-success);
    box-shadow: 0 0 8px rgba(102, 187, 106, 0.6);
}

/* Layout principal */
.legal-main {
    padding: var(--sp-xxl) 0 var(--sp-xxxl);
}

.legal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--sp-xxl);
    align-items: start;
}

/* Sommaire */
.legal-toc {
    position: sticky;
    top: 88px;
    background: var(--c-onyx);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--r-l);
    padding: var(--sp-l);
}

.legal-toc__title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: var(--sp-m);
}

.legal-toc__list {
    list-style: none;
    counter-reset: toc;
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
}

.legal-toc__list li {
    counter-increment: toc;
}

.legal-toc__link {
    display: block;
    position: relative;
    padding: 10px 12px 10px 36px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: var(--r-m);
    transition: var(--t-fast);
    line-height: 1.4;
}

.legal-toc__link::before {
    content: counter(toc, decimal-leading-zero);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--c-copper-light);
    letter-spacing: 0.05em;
}

.legal-toc__link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--c-ghost-white);
}

/* Sections */
.legal-content {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xxl);
    min-width: 0;
}

.legal-section {
    background: var(--c-onyx);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--r-xl);
    padding: var(--sp-xxl);
    scroll-margin-top: 96px;
}

.legal-section__header {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-l);
    padding-bottom: var(--sp-l);
    margin-bottom: var(--sp-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-section__num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--r-m);
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--c-copper-light);
    background: rgba(168, 118, 62, 0.08);
    border: 1px solid rgba(168, 118, 62, 0.25);
    letter-spacing: 0.05em;
}

.legal-h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--c-ghost-white);
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.legal-section__lead {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

/* Articles (sous-sections) */
.legal-article {
    padding: var(--sp-l) 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.legal-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.legal-article:first-of-type {
    padding-top: 0;
}

.legal-h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--c-ghost-white);
    margin-bottom: var(--sp-s);
    letter-spacing: 0.005em;
}

.legal-article p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.98rem;
    line-height: 1.7;
}

.legal-article p + p {
    margin-top: var(--sp-m);
}

/* Listes */
.legal-list {
    list-style: none;
    margin-top: var(--sp-m);
    display: flex;
    flex-direction: column;
    gap: var(--sp-s);
}

.legal-list li {
    position: relative;
    padding-left: var(--sp-l);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.98rem;
    line-height: 1.6;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-copper-light);
}

.legal-list--rights li {
    padding: var(--sp-s) var(--sp-m) var(--sp-s) calc(var(--sp-l) + 4px);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--r-m);
    border-left: 2px solid rgba(168, 118, 62, 0.4);
}

.legal-list--rights li::before {
    left: var(--sp-m);
    top: 1.1em;
}

.legal-list b {
    color: var(--c-ghost-white);
    font-weight: 600;
}

/* Callout */
.legal-callout {
    margin-top: var(--sp-l);
    padding: var(--sp-m) var(--sp-l);
    background: rgba(168, 118, 62, 0.06);
    border: 1px solid rgba(168, 118, 62, 0.2);
    border-radius: var(--r-m);
}

.legal-callout p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Liens */
.legal-link {
    color: var(--c-copper-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(209, 151, 86, 0.3);
    transition: var(--t-fast);
}

.legal-link:hover {
    color: var(--c-ghost-white);
    border-bottom-color: var(--c-ghost-white);
}

/* Cartes infos éditeur / hébergeur */
.legal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--sp-l);
}

.legal-info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--r-l);
    padding: var(--sp-l);
}

.legal-info-card__title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-copper-light);
    margin-bottom: var(--sp-m);
    padding-bottom: var(--sp-s);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-info-card__list {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: var(--sp-s) var(--sp-m);
    font-size: 0.93rem;
    line-height: 1.5;
}

.legal-info-card__list dt {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
}

.legal-info-card__list dd {
    color: rgba(255, 255, 255, 0.85);
    word-break: break-word;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--sp-m);
    }

    .overload__card, .description__card {
        padding: var(--sp-xl) var(--sp-m);
    }

    .store-btn {
        width: 100%;
        justify-content: center;
    }

    .pricing__table th,
    .pricing__table td {
        padding: var(--sp-m) var(--sp-s);
        font-size: 0.85rem;
    }

    .pricing__plan-name {
        font-size: 1rem;
    }

    .pricing__table td:first-child {
        min-width: 150px;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
        gap: var(--sp-l);
    }

    /* Page légale — mobile */
    .legal-layout {
        grid-template-columns: 1fr;
        gap: var(--sp-l);
    }

    .legal-toc {
        position: static;
    }

    .legal-section {
        padding: var(--sp-xl) var(--sp-l);
    }

    .legal-section__header {
        gap: var(--sp-m);
    }

    .legal-section__num {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .legal-hero {
        padding: var(--sp-xxl) 0 var(--sp-xl);
    }

    .legal-info-card__list {
        grid-template-columns: 80px 1fr;
    }
}
