/* ================================================================
   SECTIONS — Styles spécifiques à chaque section de la page
   ================================================================ */

/* ----------------------------------------------------------------
   SECTION 1 — HERO
   ---------------------------------------------------------------- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 75% 75% at 10% 55%, rgba(26,82,192,.1) 0%, transparent 55%),
        radial-gradient(ellipse 55% 65% at 90% 30%, rgba(91,33,182,.09) 0%, transparent 52%),
        radial-gradient(ellipse 45% 55% at 55% 105%, rgba(0,207,255,.05) 0%, transparent 42%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 120px;
    padding-bottom: 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 70px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(0,208,255,.08);
    border: 1px solid rgba(0,208,255,.2);
    border-radius: 100px;
    padding: 7px 18px;
    font-family: var(--fh);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--electric);
    margin-bottom: 34px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--electric);
    box-shadow: 0 0 8px var(--electric);
    animation: bdot 2.2s ease-in-out infinite;
}

@keyframes bdot {
    0%,100% { opacity: 1; }
    50%      { opacity: .25; }
}

.hero-title {
    font-family: var(--fh);
    font-size: clamp(3.4rem, 5.8vw, 6rem);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.035em;
    margin-bottom: 28px;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--t2);
    line-height: 1.78;
    max-width: 480px;
    font-weight: 300;
    margin-bottom: 52px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: .5;
    animation: scrarrow 2.4s ease-in-out infinite;
}
.scroll-hint span {
    font-size: .65rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--t2);
}

@keyframes scrarrow {
    0%,100% { transform: translateX(-50%) translateY(0); opacity: .5; }
    50%      { transform: translateX(-50%) translateY(7px); opacity: .25; }
}

/* ----------------------------------------------------------------
   SECTION 2 — CONCEPT
   ---------------------------------------------------------------- */
#concept {
    padding: var(--sp) 0;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg1) 50%, var(--bg) 100%);
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.c-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px 26px 32px;
    position: relative;
    overflow: hidden;
    transition: transform .4s ease, border-color .4s ease;
}
.c-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    opacity: 0;
    transition: opacity .4s ease;
}
.c-card:hover { transform: translateY(-5px); border-color: var(--border-h); }
.c-card:hover::after { opacity: 1; }

.c-card:nth-child(1)::after { background: radial-gradient(circle at 20% 0%, rgba(0,207,255,.07) 0%, transparent 60%); }
.c-card:nth-child(2)::after { background: radial-gradient(circle at 20% 0%, rgba(79,158,255,.07) 0%, transparent 60%); }
.c-card:nth-child(3)::after { background: radial-gradient(circle at 20% 0%, rgba(139,92,246,.07) 0%, transparent 60%); }
.c-card:nth-child(4)::after { background: radial-gradient(circle at 20% 0%, rgba(232,74,99,.07) 0%, transparent 60%); }

.c-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}
.c-card:nth-child(1) .c-icon { background: rgba(0,207,255,.1); }
.c-card:nth-child(2) .c-icon { background: rgba(79,158,255,.1); }
.c-card:nth-child(3) .c-icon { background: rgba(139,92,246,.1); }
.c-card:nth-child(4) .c-icon { background: rgba(232,74,99,.1); }

.c-card h3 {
    font-family: var(--fh);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}
.c-card p {
    font-size: .875rem;
    color: var(--t2);
    line-height: 1.7;
    font-weight: 300;
}

/* ----------------------------------------------------------------
   SECTION 3 — CARTE SOCIALE
   ---------------------------------------------------------------- */
#map-sociale {
    padding: var(--sp) 0;
    position: relative;
    overflow: hidden;
    background: var(--bg1);
}
#map-sociale::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(26,82,192,.07) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 15% 80%, rgba(91,33,182,.06) 0%, transparent 50%),
        radial-gradient(ellipse 35% 35% at 85% 20%, rgba(0,207,255,.05) 0%, transparent 40%);
    pointer-events: none;
}

/* ----------------------------------------------------------------
   SECTION 4 — MOMENTS
   ---------------------------------------------------------------- */
#moments {
    padding: var(--sp) 0;
    background: var(--bg);
}

/* ----------------------------------------------------------------
   SECTION 5 — TERRITOIRE
   ---------------------------------------------------------------- */
#territory {
    padding: var(--sp) 0;
    position: relative;
    overflow: hidden;
    background: var(--bg1);
}
#territory::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 65% at 80% 55%, rgba(26,82,192,.09) 0%, transparent 60%),
        radial-gradient(ellipse 45% 45% at 15% 45%, rgba(91,33,182,.07) 0%, transparent 50%);
    pointer-events: none;
}

/* Territory visual — cercles concentriques animés */
.terr-visual {
    position: relative;
    width: 320px;
    height: 320px;
    flex-shrink: 0;
}

.t-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(79,158,255,.18);
    animation: trpulse 3.5s ease-in-out infinite;
}
.t-ring:nth-child(1) { inset: 0;    animation-delay: 0s; }
.t-ring:nth-child(2) { inset: 32px; border-color: rgba(79,158,255,.14); animation-delay: .4s; }
.t-ring:nth-child(3) { inset: 64px; border-color: rgba(139,92,246,.13); animation-delay: .8s; }
.t-ring:nth-child(4) { inset: 96px; border-color: rgba(139,92,246,.18); animation-delay: 1.2s; }
.t-ring:nth-child(5) { inset: 128px; border-color: rgba(0,207,255,.2); background: rgba(79,158,255,.03); animation-delay: 1.6s; }

@keyframes trpulse {
    0%,100% { transform: scale(1); opacity: .8; }
    50%      { transform: scale(1.025); opacity: 1; }
}

.t-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(79,158,255,.3), rgba(139,92,246,.3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 0 40px rgba(79,158,255,.28);
    border: 1px solid rgba(79,158,255,.4);
}

.t-dot {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--electric);
    box-shadow: 0 0 12px var(--electric);
}

.t-badge {
    position: absolute;
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.5));
    animation: tbadge 3s ease-in-out infinite;
}
.t-badge-sm {
    width: 26px;
    height: 26px;
}
/* Légère flottaison décalée pour chaque badge */
.t-badge:nth-child(2) { animation-delay: .4s; }
.t-badge:nth-child(3) { animation-delay: .8s; }
.t-badge:nth-child(4) { animation-delay: 1.2s; }
.t-badge:nth-child(5) { animation-delay: 1.6s; }

@keyframes tbadge {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

/* ----------------------------------------------------------------
   SECTION 6 — VOL & DUEL
   ---------------------------------------------------------------- */
#steal-duel {
    padding: var(--sp) 0;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}
#steal-duel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 75% at 85% 50%, rgba(232,74,99,.08) 0%, transparent 60%),
        radial-gradient(ellipse 40% 45% at 15% 25%, rgba(91,33,182,.06) 0%, transparent 50%);
    pointer-events: none;
}

/* ----------------------------------------------------------------
   SECTION 7 — DUELS EN COURS
   ---------------------------------------------------------------- */
#duels {
    padding: var(--sp) 0;
    position: relative;
    overflow: hidden;
    background: var(--bg1);
}
#duels::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 65% 55% at 50% 50%, rgba(232,74,99,.06) 0%, transparent 60%);
    pointer-events: none;
}

.duel-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 42px;
}

.duel-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 26px 22px;
    text-align: center;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.duel-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .3s;
}
.duel-card:nth-child(1)::before { background: radial-gradient(circle at 50% 0%, rgba(232,74,99,.08) 0%, transparent 60%); }
.duel-card:nth-child(2)::before { background: radial-gradient(circle at 50% 0%, rgba(245,158,11,.08) 0%, transparent 60%); }
.duel-card:nth-child(3)::before { background: radial-gradient(circle at 50% 0%, rgba(79,158,255,.08) 0%, transparent 60%); }
.duel-card:hover { transform: translateY(-4px); border-color: var(--border-h); }
.duel-card:hover::before { opacity: 1; }

.duel-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
}
.duel-card h3 {
    font-family: var(--fh);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.duel-card p {
    font-size: .85rem;
    color: var(--t2);
    font-weight: 300;
    line-height: 1.65;
}

/* ----------------------------------------------------------------
   SECTION 8 — MANIFESTE
   ---------------------------------------------------------------- */
#manifesto {
    padding: var(--sp) 0;
    position: relative;
    overflow: hidden;
    background: var(--bg);
    text-align: center;
}
#manifesto::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 55%, rgba(26,82,192,.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 20%, rgba(91,33,182,.04) 0%, transparent 50%);
    pointer-events: none;
}

.manifesto-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
}

.manifesto-text {
    font-family: var(--fh);
    font-size: clamp(1.25rem, 2.4vw, 1.9rem);
    font-weight: 300;
    line-height: 1.65;
    color: var(--t2);
    letter-spacing: -0.01em;
}
.manifesto-text strong {
    font-weight: 700;
    color: var(--t1);
}

.manifesto-hr {
    display: block;
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, var(--electric), var(--violet));
    margin: 52px auto;
    border-radius: 2px;
}

.manifesto-cta {
    font-family: var(--fh);
    font-size: clamp(2.8rem, 5.5vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.0;
    margin-top: 48px;
}

/* ----------------------------------------------------------------
   SECTION 9 — GALLERY
   ---------------------------------------------------------------- */
#gallery {
    padding: var(--sp) 0;
    background: var(--bg1);
    overflow: hidden;
}

.gallery-row {
    display: flex;
    gap: 22px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 64px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.gallery-item .iphone { animation: none; }

.gallery-cap {
    font-family: var(--fh);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--t3);
    text-align: center;
}

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 64px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 56px;
}

.footer-brand .logo {
    font-size: 1.7rem;
    display: inline-block;
    margin-bottom: 18px;
}
.footer-brand p {
    font-size: .875rem;
    color: var(--t2);
    line-height: 1.75;
    max-width: 280px;
    margin-bottom: 22px;
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--t2);
    transition: color .2s ease;
}
.footer-email:hover { color: var(--t1); }

.footer-col h4 {
    font-family: var(--fh);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--t3);
    margin-bottom: 22px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.footer-links a {
    font-size: .875rem;
    color: var(--t2);
    transition: color .2s ease;
}
.footer-links a:hover { color: var(--t1); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom p {
    font-size: .78rem;
    color: var(--t3);
}

/* ================================================================
   RESPONSIVE — chargé en dernier donc prioritaire sur components.css
   ================================================================ */

/* ----------------------------------------------------------------
   TABLET (< 980px)
   ---------------------------------------------------------------- */
@media (max-width: 980px) {
    .sh-title { font-size: clamp(2rem, 5vw, 3rem); }

    /* Feature split — colonne unique, téléphone centré en haut */
    .fs,
    .fs.rev {
        display: flex !important;
        flex-direction: column !important;
        direction: ltr !important;
        gap: 48px;
    }

    .fs .fs-visual,
    .fs.rev .fs-visual {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .fs .fs-content,
    .fs.rev .fs-content {
        order: 2;
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    .fs-text { max-width: 100%; }
}

/* ----------------------------------------------------------------
   MOBILE (< 640px)
   ---------------------------------------------------------------- */
@media (max-width: 640px) {

    /* Hero */
    #hero { min-height: auto; }

    /* Feature split gaps réduits */
    .fs, .fs.rev { gap: 32px; }

    /* Concept — 2 colonnes sur mobile */
    .concept-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .c-card     { padding: 24px 18px 20px; }
    .c-icon     { width: 42px; height: 42px; font-size: 1.2rem; margin-bottom: 14px; }
    .c-card h3  { font-size: 0.95rem; }
    .c-card p   { font-size: 0.85rem; }

    /* Section header */
    .sh       { margin-bottom: 32px; }
    .sh-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
    .sh-desc  { font-size: 0.88rem; }

    /* Territory */
    .terr-visual { margin: 0 auto; }
    .t-center    { width: 56px; height: 56px; font-size: 1.4rem; }

    /* Duel cards */
    .duel-card    { padding: 20px 16px; }
    .duel-icon    { font-size: 1.6rem; margin-bottom: 10px; }
    .duel-card h3 { font-size: 0.92rem; }
    .duel-card p  { font-size: 0.82rem; }

    /* Manifesto */
    .manifesto-inner { padding: 0; }

    /* Footer */
    footer              { padding: 48px 0 32px; }
    .footer-grid        { margin-bottom: 32px; }
    .footer-brand p     { max-width: 100%; }
    .footer-brand .logo { font-size: 1.4rem; }
}
