/* ============================================
   PAGES SECONDAIRES — Les Aventuriers du Jeu
   FAQ, Presse, Mentions légales
   ============================================ */

:root {
    --brown-dark: #2c1810;
    --brown: #5c3a1e;
    --gold: #c8a45a;
    --gold-light: #d4b46a;
    --cream: #f5ecd7;
    --parchment: #e8d5a0;
    --parchment-dark: #c4a96a;
    --leather: #5c3a1e;
    --text-dark: #1a0e08;
    --text-body: #3a2a1e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--cream);
    color: var(--text-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Page Navbar --- */
.page-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(44, 24, 16, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(200, 164, 90, 0.2);
    padding: 0.75rem 0;
}

.page-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.page-nav-logo img {
    width: 40px;
    height: 40px;
}

.page-nav-logo span {
    font-family: 'Cinzel Decorative', serif;
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 700;
}

.page-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.page-nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.page-nav-links a:hover,
.page-nav-links a.active {
    color: var(--gold);
}

.page-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(200, 164, 90, 0.4);
    border-radius: 6px;
    transition: all 0.2s;
}

.page-nav-back:hover {
    background: rgba(200, 164, 90, 0.1);
    border-color: var(--gold);
}

/* --- Page Header (Hero-like) --- */
.page-header {
    padding: 8rem 1.5rem 3rem;
    background: linear-gradient(180deg, var(--brown-dark) 0%, var(--brown) 60%, var(--cream) 100%);
    text-align: center;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40'%3E%3Cpath d='M0,20 Q100,0 200,15 T400,20 T600,10 T800,25 T1000,15 T1200,20 L1200,40 L0,40 Z' fill='%23f5ecd7'/%3E%3C/svg%3E") no-repeat center bottom;
    background-size: cover;
}

.page-header h1 {
    font-family: 'Cinzel Decorative', serif;
    color: var(--gold);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.page-header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Page Content --- */
.page-content {
    flex: 1;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

/* --- FAQ Accordion --- */
.faq-category {
    margin-bottom: 2.5rem;
}

.faq-category-title {
    font-family: 'Cinzel Decorative', serif;
    color: var(--brown-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-item {
    background: white;
    border: 1px solid rgba(200, 164, 90, 0.25);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: 0 2px 12px rgba(200, 164, 90, 0.15);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1rem 1.25rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    font-family: inherit;
    transition: color 0.2s;
}

.faq-question:hover { color: var(--gold); }

.faq-question .faq-icon {
    font-size: 1.2rem;
    color: var(--gold);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 1.25rem 1.25rem;
}

.faq-answer p {
    color: var(--text-body);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- Press Page --- */
.press-kit {
    background: white;
    border: 1px solid rgba(200, 164, 90, 0.25);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}

.press-kit h2 {
    font-family: 'Cinzel Decorative', serif;
    color: var(--brown-dark);
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

.press-kit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.press-stat {
    background: var(--cream);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.press-stat .number {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
}

.press-stat .label {
    font-size: 0.8rem;
    color: var(--text-body);
    font-weight: 500;
}

.press-logo-download {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    border: 1px solid rgba(200, 164, 90, 0.25);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}

.press-logo-download img {
    width: 80px;
    height: 80px;
}

.press-logo-download .info h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.press-logo-download .info p {
    font-size: 0.85rem;
    color: var(--text-body);
}

.press-articles {
    margin-bottom: 2.5rem;
}

.press-articles h2 {
    font-family: 'Cinzel Decorative', serif;
    color: var(--brown-dark);
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

.press-article {
    background: white;
    border: 1px solid rgba(200, 164, 90, 0.25);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: box-shadow 0.2s;
}

.press-article:hover {
    box-shadow: 0 2px 12px rgba(200, 164, 90, 0.15);
}

.press-article .article-info h3 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.press-article .article-info p {
    font-size: 0.8rem;
    color: var(--text-body);
}

.press-contact {
    background: var(--brown-dark);
    border-radius: 12px;
    padding: 2rem;
    color: white;
    text-align: center;
}

.press-contact h2 {
    font-family: 'Cinzel Decorative', serif;
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.press-contact p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.press-contact a {
    color: var(--gold);
    text-decoration: none;
}

.press-contact a:hover { text-decoration: underline; }

/* --- Legal Page --- */
.legal-section {
    background: white;
    border: 1px solid rgba(200, 164, 90, 0.25);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.legal-section h2 {
    font-family: 'Cinzel Decorative', serif;
    color: var(--brown-dark);
    font-size: 1.15rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--parchment);
}

.legal-section p,
.legal-section li {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 0.5rem;
}

.legal-section ul {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section strong {
    color: var(--text-dark);
}

/* --- Page Footer --- */
.page-footer {
    background: var(--brown-dark);
    border-top: 3px solid var(--gold);
    padding: 2rem 1.5rem;
    text-align: center;
}

.page-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-footer-brand img {
    width: 32px;
    height: 32px;
}

.page-footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.page-footer-links {
    display: flex;
    gap: 1.5rem;
}

.page-footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.page-footer-links a:hover { color: var(--gold); }

.page-footer-copy {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .page-nav-links { display: none; }

    .page-header h1 { font-size: 1.6rem; }
    .page-header { padding: 7rem 1.25rem 2.5rem; }

    .page-content { padding: 2rem 1.25rem 3rem; }

    .press-kit-grid { grid-template-columns: 1fr; }

    .press-logo-download {
        flex-direction: column;
        text-align: center;
    }

    .press-article {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (min-width: 1024px) {
    .page-header h1 { font-size: 2.8rem; }
}

/* ============================================
   CALENDRIER — Vue mensuelle interactive
   ============================================ */

.calendar-wrapper {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

/* --- Navigation mois --- */
.cal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cal-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: transparent;
    color: var(--gold);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cal-nav-btn:hover {
    background: var(--gold);
    color: var(--brown-dark);
}

.cal-month-label {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brown-dark);
    min-width: 280px;
    text-align: center;
}

.cal-today-btn {
    position: absolute;
    right: 0;
    background: none;
    border: 1px solid rgba(200, 164, 90, 0.4);
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.cal-today-btn:hover {
    background: rgba(200, 164, 90, 0.1);
    border-color: var(--gold);
}

.cal-nav-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Légende --- */
.cal-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.cal-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-body);
}

.cal-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.cal-legend-dot.session { background: var(--gold); }
.cal-legend-dot.event { background: #c0392b; }

/* --- Grille du calendrier --- */
.cal-grid {
    background: white;
    border-radius: 14px;
    border: 1px solid rgba(200, 164, 90, 0.25);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(44, 24, 16, 0.08);
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--brown-dark);
}

.cal-weekday {
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.cal-day {
    position: relative;
    min-height: 70px;
    padding: 0.5rem;
    border-right: 1px solid rgba(200, 164, 90, 0.1);
    border-bottom: 1px solid rgba(200, 164, 90, 0.1);
    cursor: default;
    transition: background 0.15s;
}

.cal-day:nth-child(7n) {
    border-right: none;
}

.cal-day.other-month {
    background: rgba(200, 164, 90, 0.04);
}

.cal-day.other-month .cal-day-num {
    color: rgba(92, 58, 30, 0.25);
}

.cal-day-num {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.cal-day.today .cal-day-num {
    background: var(--gold);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.cal-day.has-event {
    cursor: pointer;
}

.cal-day.has-event:hover {
    background: rgba(200, 164, 90, 0.08);
}

.cal-day.selected {
    background: rgba(200, 164, 90, 0.12);
}

.cal-day-dots {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.cal-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.cal-dot.session { background: var(--gold); }
.cal-dot.event { background: #c0392b; }

/* Labels d'événements dans les cellules */
.cal-day-label {
    font-size: 0.65rem;
    line-height: 1.2;
    padding: 1px 4px;
    border-radius: 3px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.cal-day-label.session {
    background: rgba(200, 164, 90, 0.2);
    color: var(--brown);
}

.cal-day-label.event {
    background: rgba(192, 57, 43, 0.15);
    color: #8e2e22;
}

/* --- Panneau détail --- */
.cal-detail {
    margin-top: 1.5rem;
    background: white;
    border: 1px solid rgba(200, 164, 90, 0.25);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: none;
    animation: calDetailIn 0.25s ease;
}

.cal-detail.visible {
    display: block;
}

@keyframes calDetailIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.cal-detail-date {
    font-family: 'Cinzel Decorative', serif;
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--parchment);
}

.cal-detail-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(200, 164, 90, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.cal-detail-item:last-child { border-bottom: none; }

.cal-detail-badge {
    flex-shrink: 0;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cal-detail-badge.session {
    background: var(--gold);
    color: white;
}

.cal-detail-badge.event {
    background: #c0392b;
    color: white;
}

.cal-detail-info h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.15rem;
}

.cal-detail-info p {
    font-size: 0.8rem;
    color: var(--text-body);
    line-height: 1.5;
}

.cal-detail-info .cal-time {
    font-weight: 600;
    color: var(--gold);
}

/* --- Vue liste pour le mois en cours --- */
.cal-month-list {
    margin-top: 2rem;
}

.cal-month-list h3 {
    font-family: 'Cinzel Decorative', serif;
    color: var(--brown-dark);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
}

.cal-list-empty {
    text-align: center;
    color: var(--text-body);
    font-size: 0.9rem;
    font-style: italic;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    border: 1px solid rgba(200, 164, 90, 0.15);
}

.cal-list-item {
    background: white;
    border: 1px solid rgba(200, 164, 90, 0.2);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow 0.2s;
}

.cal-list-item:hover {
    box-shadow: 0 2px 12px rgba(200, 164, 90, 0.15);
}

.cal-list-date {
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

.cal-list-date .day {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.cal-list-date .weekday {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-body);
    font-weight: 600;
}

.cal-list-info {
    flex: 1;
}

.cal-list-info h4 {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.15rem;
}

.cal-list-info p {
    font-size: 0.78rem;
    color: var(--text-body);
}

.cal-list-badge {
    flex-shrink: 0;
    padding: 0.25rem 0.65rem;
    border-radius: 5px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cal-list-badge.session {
    background: rgba(200, 164, 90, 0.15);
    color: var(--brown);
}

.cal-list-badge.event {
    background: rgba(192, 57, 43, 0.12);
    color: #8e2e22;
}

/* --- Responsive Calendrier --- */
@media (max-width: 768px) {
    .cal-wrapper { padding: 2rem 1rem 3rem; }

    .cal-month-label { font-size: 1.2rem; min-width: auto; }

    .cal-nav { gap: 0.75rem; }

    .cal-today-btn { position: static; margin-top: 0.5rem; }

    .cal-nav-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .cal-day {
        min-height: 52px;
        padding: 0.3rem;
    }

    .cal-day-num { font-size: 0.75rem; }

    .cal-day.today .cal-day-num {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .cal-day-label { display: none; }

    .cal-dot { width: 5px; height: 5px; }

    .cal-weekday { font-size: 0.65rem; padding: 0.5rem 0.25rem; }

    .cal-detail { padding: 1rem 1.25rem; }

    .cal-legend { gap: 1rem; }
}

@media (max-width: 480px) {
    .cal-day { min-height: 44px; }
}
