/* ── Glaciel — Case Study Pages Styles ── */

/* ── Background Effects ── */
.bg-aurora,
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-aurora::before,
.bg-effects .aurora::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.06) 0%, transparent 60%);
    animation: aurora1 18s ease-in-out infinite alternate;
}

.bg-aurora::after,
.bg-effects .aurora::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse at center, rgba(45, 90, 135, 0.08) 0%, transparent 60%);
    animation: aurora2 22s ease-in-out infinite alternate;
}

.bg-effects .aurora {
    position: absolute;
    inset: 0;
}

@keyframes aurora1 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(10%, 5%) scale(1.1); opacity: 0.8; }
    100% { transform: translate(-5%, 10%) scale(0.95); opacity: 0.6; }
}

@keyframes aurora2 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    50% { transform: translate(-8%, -5%) scale(1.15); opacity: 0.7; }
    100% { transform: translate(5%, -8%) scale(1.05); opacity: 0.5; }
}

#stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#snowfall-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ── Content Containers ── */
.content-container,
.content-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Section Label ── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 24px;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--accent);
}

/* ── Section Title (used by multiple pages inside headers) ── */
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    max-width: 600px;
    margin: 0 auto;
}

/* ── Section Divider (cas-photographes) ── */
.section-divider {
    width: 100%;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.2), transparent);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ── Hero ── */
.hero {
    position: relative;
    z-index: 2;
    padding: 180px 0 100px;
}

.hero .container,
.hero .content-container,
.hero .content-narrow {
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero .subtitle,
.hero .hero-subtitle,
.hero .section-subtitle {
    font-size: 1.1rem;
    color: var(--mist);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.hero-cta {
    margin-top: 0;
}

/* ── Scenarios Section ── */
.scenarios {
    position: relative;
    z-index: 2;
    padding: 100px 0;
}

.scenarios .section-header,
.scenarios-header {
    text-align: center;
    margin-bottom: 64px;
}

.scenarios .section-header h2,
.scenarios-header h2,
.scenarios-header .section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    max-width: 600px;
    margin: 0 auto;
}

.scenario-grid,
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.scenario-card {
    background: rgba(15, 33, 55, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(45, 90, 135, 0.2);
    border-left: 3px solid rgba(239, 68, 68, 0.5);
    border-radius: 16px;
    padding: 36px 28px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.scenario-card:hover {
    transform: translateY(-4px);
    border-color: rgba(45, 90, 135, 0.35);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.scenario-card h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--cloud);
}

.scenario-card p {
    font-size: 0.95rem;
    color: var(--mist);
    line-height: 1.7;
}

/* Card icon (cas-rh, cas-photographes) */
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: rgba(239, 68, 68, 0.7);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Solution Section ── */
.solution {
    position: relative;
    z-index: 2;
    padding: 100px 0;
}

.solution .section-header,
.solution-header {
    text-align: center;
    margin-bottom: 64px;
}

.solution .section-header h2,
.solution-header h2,
.solution-header .section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    max-width: 600px;
    margin: 0 auto;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.solution-point,
.solution-item {
    display: flex;
    gap: 20px;
    padding: 32px 28px;
    background: var(--accent-subtle);
    border: 1px solid rgba(34, 211, 238, 0.08);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-point:hover,
.solution-item:hover {
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.15);
    transform: translateY(-2px);
}

.solution-icon,
.point-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(34, 211, 238, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-icon svg,
.point-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.solution-content h3,
.solution-point h3,
.solution-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--white);
}

.solution-content p,
.solution-point p,
.solution-item p {
    font-size: 0.92rem;
    color: var(--mist);
    line-height: 1.7;
}

/* ── Solution Points (vertical list layout — journalistes style) ── */
.solution-points {
    display: grid;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

.solution-points .solution-point {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 24px;
    padding: 36px 0;
    border-bottom: 1px solid rgba(45, 90, 135, 0.15);
    align-items: start;
    background: transparent;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
}

.solution-points .solution-point:first-child {
    border-top: 1px solid rgba(45, 90, 135, 0.15);
}

.solution-points .solution-point:hover {
    background: transparent;
    transform: none;
}

.solution-point-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-subtle);
    border: 1px solid rgba(34, 211, 238, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.solution-point-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.solution-points .solution-point h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--white);
}

.solution-points .solution-point p {
    font-size: 0.97rem;
    color: var(--mist);
    line-height: 1.75;
    max-width: 640px;
}

/* ── Text Accent (blue highlight for key words in titles) ── */
.text-accent {
    color: var(--accent);
}

/* ── Legal Section ── */
.legal {
    position: relative;
    z-index: 2;
    padding: 100px 0;
}

.legal .section-header,
.legal-header {
    text-align: center;
    margin-bottom: 64px;
}

.legal .section-header h2,
.legal-header h2,
.legal-header .section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    max-width: 600px;
    margin: 0 auto;
}

.legal-list,
.legal-items {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.legal-item {
    padding: 28px 32px;
    background: rgba(15, 33, 55, 0.35);
    border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
}

.legal-item:hover {
    background: rgba(15, 33, 55, 0.55);
}

.legal-item h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cloud);
    margin-bottom: 8px;
}

.legal-item p {
    font-size: 0.95rem;
    color: var(--mist);
    line-height: 1.75;
}

.legal-item strong {
    color: var(--cloud);
    font-weight: 600;
}

/* ── CTA Section ── */
.cta-section {
    position: relative;
    z-index: 2;
    padding: 120px 0 80px;
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    margin-bottom: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .subtitle,
.cta-subtitle {
    font-size: 1.1rem;
    color: var(--mist);
    margin-bottom: 48px;
}

.cta-actions,
.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.cta-box {
    max-width: 600px;
    margin: 0 auto;
}

.cta-box h2 {
    margin-bottom: 16px;
}

.cta-box .cta-subtitle {
    margin-bottom: 48px;
}

.back-link {
    color: var(--frost);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent);
}

/* ── Scroll Animations ── */
.fade-up,
.fade-in,
.animate-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible,
.fade-in.visible,
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for animate-on-scroll */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .scenario-grid,
    .scenarios-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .solution-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .solution-points .solution-point {
        grid-template-columns: 48px 1fr;
        gap: 20px;
    }

    .solution-point-icon {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 140px 0 80px;
    }

    .hero h1 {
        font-size: clamp(1.7rem, 5vw, 2.4rem);
    }

    .hero .subtitle,
    .hero .hero-subtitle,
    .hero .section-subtitle {
        font-size: 1rem;
    }

    .scenarios,
    .solution,
    .legal {
        padding: 80px 0;
    }

    .solution-point,
    .solution-item {
        flex-direction: column;
        gap: 16px;
    }

    .solution-points .solution-point {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }

    .solution-point-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        margin-left: auto;
        margin-right: auto;
    }

    .scenario-card {
        text-align: center;
        border-left: 1px solid rgba(45, 90, 135, 0.2);
        border-top: 3px solid rgba(239, 68, 68, 0.5);
        border-radius: 16px;
    }

    .card-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .legal-item {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .container,
    .content-container,
    .content-narrow {
        padding: 0 16px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .scenario-card {
        padding: 28px 20px;
    }

    .solution-point,
    .solution-item {
        padding: 24px 20px;
    }

    .btn-lg {
        padding: 14px 32px;
        font-size: 0.95rem;
    }

    .cta-section {
        padding: 80px 0 60px;
    }
}
