/* =========================================
   RESC PRESENTATION / ABOUT PAGE STYLES
   ========================================= */

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0B101E !important;
}

#resc_presentation_main {
    padding-top: 80px;
    padding-bottom: 5rem;
    min-height: 100vh;
}

/* --- Hero Section --- */
.presentation-hero {
    position: relative;
    padding: 4rem 2rem 5rem 2rem;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid rgba(42, 86, 255, 0.15);
}

.hero-pattern-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('/assets/logos/rkj_id_white.webp');
    background-size: 250px auto;
    background-repeat: repeat;
    opacity: 0.05;
    transform: rotate(-18deg);
    pointer-events: none;
    z-index: 1;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 20%, rgba(42, 86, 255, 0.22) 0%, rgba(11, 16, 30, 0.98) 75%);
    z-index: 2;
    pointer-events: none;
}

.presentation-hero-inner {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
}

.presentation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(42, 86, 255, 0.15);
    border: 1px solid rgba(42, 86, 255, 0.4);
    border-radius: 30px;
    color: #79a2ff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.presentation-hero-logo {
    max-width: 380px;
    width: 80%;
    height: auto;
    margin: 0 auto 1.5rem auto;
    display: block;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6));
}

.presentation-hero-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 auto 1rem auto;
    line-height: 1.2;
    text-align: center;
}

.presentation-hero-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #b8c1d9;
    margin: 0 auto 2rem auto;
    max-width: 760px;
    text-align: center;
}

.presentation-hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.presentation-hero-actions .btn-solid,
.presentation-hero-actions .btn-outline {
    border-radius: 50px !important;
    padding: 0.8rem 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- Container Général --- */
.presentation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Section Piliers (Cards) --- */
.presentation-pillars {
    margin-top: -2.5rem;
    position: relative;
    z-index: 10;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.pillar-card {
    background: #0f162b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.pillar-card:hover {
    transform: translateY(-4px);
    border-color: rgba(42, 86, 255, 0.4);
    box-shadow: 0 15px 35px rgba(42, 86, 255, 0.15);
}

.pillar-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(42, 86, 255, 0.15);
    border: 1px solid rgba(42, 86, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-sim, #2a56ff);
    margin-bottom: 1.2rem;
}

.pillar-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
    margin: 0 0 0.6rem 0;
}

.pillar-card p {
    color: #9aa5bf;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* --- Section Présentation & Catégories --- */
.presentation-section {
    padding: 4.5rem 0;
}

.presentation-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-sim, #2a56ff);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.presentation-section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 0.8rem 0;
}

.presentation-section-subtitle {
    color: #9aa5bf;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Grille Catégories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: #0f162b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(42, 86, 255, 0.4);
}

.category-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: #050811;
}

.category-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-img-wrap img {
    transform: scale(1.05);
}

.category-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
    margin: 0;
}

.category-level {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background: rgba(42, 86, 255, 0.15);
    color: #79a2ff;
}

.category-desc {
    color: #9aa5bf;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* --- Section Déroulement d'un week-end de course --- */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.timeline-step {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 1.8rem;
    position: relative;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-sim, #2a56ff);
    opacity: 0.7;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.timeline-step h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.timeline-step p {
    color: #9aa5bf;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

/* --- Section Règlement Officiel (Téléchargement & Preview) --- */
.rules-download-section {
    margin-top: 2rem;
    scroll-margin-top: 110px;
    background: linear-gradient(135deg, #0d1428 0%, #080d19 100%);
    border: 1px solid rgba(42, 86, 255, 0.3);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.rules-download-section::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(42, 86, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.rules-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: center;
}

/* Document Preview Visual */
.rules-preview-card {
    position: relative;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    aspect-ratio: 1 / 1.414; /* Ratio A4 */
    background: #12182c;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(42, 86, 255, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rules-preview-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 30px rgba(42, 86, 255, 0.3);
}

.doc-corner-fold {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.1) 50%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.doc-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.8rem;
}

.doc-icon-svg {
    color: var(--accent-sim, #2a56ff);
}

.doc-season-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    background: rgba(42, 86, 255, 0.2);
    color: #79a2ff;
    border-radius: 4px;
}

.doc-center-content {
    text-align: center;
    padding: 1rem 0;
}

.doc-brand-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    margin: 0 0 0.3rem 0;
    letter-spacing: 1px;
}

.doc-type-text {
    font-size: 0.75rem;
    color: #8894b5;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.doc-lines-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 1rem;
}

.doc-line {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}
.doc-line.short { width: 60%; margin: 0 auto; }
.doc-line.medium { width: 80%; margin: 0 auto; }
.doc-line.full { width: 95%; margin: 0 auto; }

.doc-bottom-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    color: #7a86a6;
    text-transform: uppercase;
}

/* Rules Info & Actions */
.rules-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.rules-heading {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
}

.rules-lead {
    color: #b8c1d9;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.rules-key-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
    margin: 0.5rem 0;
}

.rules-key-point {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #ddd;
    font-size: 0.88rem;
}

.rules-key-point svg {
    color: #2ecc71;
    flex-shrink: 0;
}

.rules-actions-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.btn-download-rules {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--accent-sim, #2a56ff);
    color: #fff !important;
    padding: 0.9rem 1.8rem;
    border-radius: 6px;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(42, 86, 255, 0.4);
}

.btn-download-rules:hover {
    background: #1c3fd9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 86, 255, 0.6);
}

.rules-unavailable-alert {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #aaa;
    font-size: 0.9rem;
}

/* --- FAQ / Questions Fréquentes --- */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.faq-card {
    background: #0f162b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
}

.faq-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    margin: 0 0 0.8rem 0;
}

.faq-card p {
    color: #9aa5bf;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* --- Banner CTA Rejoindre --- */
.join-banner {
    background: linear-gradient(to right, rgba(42, 86, 255, 0.2), rgba(107, 69, 150, 0.1));
    border: 1px solid rgba(42, 86, 255, 0.3);
    border-radius: 16px;
    padding: 3.5rem 2rem;
    text-align: center;
    margin-top: 3rem;
}

.join-banner h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #fff;
    text-transform: uppercase;
    margin: 0 0 1rem 0;
}

.join-banner p {
    color: #b8c1d9;
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

.join-banner-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.join-banner-buttons .btn-solid,
.join-banner-buttons .btn-outline {
    border-radius: 50px !important;
    padding: 0.8rem 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 900px) {
    .rules-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .rules-key-points {
        justify-content: center;
    }

    .rules-actions-wrap {
        justify-content: center;
    }

    .presentation-hero-title {
        font-size: 1.8rem;
    }

    .presentation-section-title {
        font-size: 1.6rem;
    }

    .rules-download-section {
        padding: 2rem 1.5rem;
    }
}

