/* Custom Futuristic Styles */

/* ===== BASE ===== */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #050505;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    margin: 0;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: #06b6d4;
    text-decoration: none;
    transition: 0.3s ease;
}

a:hover {
    color: white;
}

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

* {
    box-sizing: border-box;
}

/* ===== GLASSMORPHISM ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.3);
}

/* ===== ANIMATED GRID BACKGROUND ===== */
.bg-grid {
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0%   { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

/* ===== FADE IN ANIMATION ===== */
.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== NAVBAR SCROLL EFFECT ===== */
nav.scrolled {
    background-color: rgba(5, 5, 5, 0.95);
    border-bottom-color: rgba(6, 182, 212, 0.3);
    backdrop-filter: blur(10px);
}

/* ===== CONTENT PAGES ===== */
.legal-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 5%;
}

.legal-page h1 {
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ===== TITRES INSTITUTIONNELS — Autorité typographique ===== */
.legal-page h1,
.post-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
}

.legal-page h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.legal-page h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.35rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.legal-page p {
    opacity: 0.92;
    margin-bottom: 1rem;
}

.legal-page ul,
.legal-page ol {
    margin: 1rem 0 1.5rem 1.25rem;
    padding-left: 1rem;
}

.legal-page li {
    margin-bottom: 0.7rem;
}

.legal-page blockquote {
    border-left: 3px solid #06b6d4;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.92);
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* ===== ÉTUDES DE CAS — composants spécifiques ===== */
.section-kicker {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #06b6d4;
    margin-bottom: 0.5rem;
}

.legal-card {
    padding: 40px 48px;
    margin-top: 40px;
}

.soft-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 48px 0;
}

/* ===== GRID / CARDS ===== */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.legal-page .glass-card,
.grid-layout .glass-card {
    padding: 30px;
}

/* ===== CTA BUTTONS ===== */
.case-cta {
    margin-top: 1.4rem;
}

.btn-source {
    display: inline-block;
    border: 1px solid #06b6d4;
    color: #06b6d4;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-source:hover {
    background: #06b6d4;
    color: #050505;
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 768px) {
    .legal-page {
        padding: 60px 6%;
    }

    .legal-page h1 {
        font-size: 2.2rem;
    }

    .legal-page h2 {
        font-size: 1.6rem;
    }

    .grid-layout {
        grid-template-columns: 1fr;
    }

    .legal-card {
        padding: 24px 20px;
    }
}

/* ======================================================
   AMÉLIORATIONS UX & DESIGN - GSF CONSULTING
   Cible : Tableaux, Citations et Responsive
   ====================================================== */

/* ===== TABLEAUX POST-CONTENT ===== */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.post-content th {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    text-align: left;
    padding: 16px;
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #06b6d4;
}

.post-content td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    vertical-align: top;
    color: rgba(255, 255, 255, 0.88);
}

.post-content tr:last-child td {
    border-bottom: none;
}

.post-content tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ===== CITATIONS POST-CONTENT (migration depuis post.html) ===== */
.post-content blockquote {
    margin: 2.5rem 0;
    padding: 24px 28px;
    background: rgba(6, 182, 212, 0.05);
    border-left: 4px solid #06b6d4;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
}

.post-content blockquote p {
    margin: 0;
}

/* ===== RESPONSIVE TABLEAUX & CITATIONS ===== */
@media (max-width: 768px) {
    .post-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .post-content blockquote {
        padding: 18px 20px;
        margin: 1.5rem 0;
    }
}
