/*
Theme Name:   PasDeBook
Description:  Thème maison pour pasdebook.com — carnets de voyage et balades à moto. Habillage sombre type "carnet de route nocturne", les fiches de sortie restent en clair façon page de roadbook papier.
Author:       Yann (avec Claude)
Version:      1.0.0
Text Domain:  pasdebook
*/

:root {
    --dk-bg:          #10141a;
    --dk-bg-elevated: #181e27;
    --dk-bg-card:     #1c2330;
    --dk-line:        rgba(255, 255, 255, 0.08);
    --dk-text:        #EEEAE0;
    --dk-text-muted:  #9aa6b8;
    --brand-rouge:    #C8453A;
    --brand-rouge-2:  #B03A2E;
    --brand-amber:    #D9A24B;
    --brand-marine:   #1C2B4A;
    --paper:          #F7F6F1;
    --font-titres:    'Oswald', 'Arial Narrow', sans-serif;
    --font-corps:     'Inter', system-ui, -apple-system, sans-serif;
    --font-accent:    'Caveat', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--dk-bg);
    color: var(--dk-text);
    font-family: var(--font-corps);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; }

.screen-reader-text {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.screen-reader-text:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    z-index: 1000;
    padding: 0.8rem 1.2rem;
    background: var(--brand-rouge);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-titres);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}

.pdb-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ================= HEADER ================= */
.pdb-offset-header { padding-top: 78px; }
@media (max-width: 600px) {
    .pdb-offset-header { padding-top: 64px; }
}
.pdb-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: linear-gradient(180deg, rgba(8, 10, 14, 0.55) 0%, rgba(8, 10, 14, 0) 100%);
    transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.pdb-site-header.is-solid {
    background: rgba(13, 16, 22, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--dk-line);
}
.pdb-site-header.is-hidden { transform: translateY(-100%); }

.pdb-site-header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.3rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}
.pdb-logo {
    font-family: var(--font-titres);
    font-weight: 600;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: baseline;
    justify-self: start;
}
.pdb-logo-dot { color: var(--brand-rouge); }

.pdb-quicklinks {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    justify-self: center;
}
.pdb-quicklinks a {
    font-family: var(--font-titres);
    font-weight: 600;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.15s ease;
}
.pdb-quicklinks a:hover,
.pdb-quicklinks a.is-active {
    color: #fff;
}
@media (max-width: 760px) {
    .pdb-quicklinks { display: none; }
}

.pdb-menu-trigger {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 0.7rem;
    background: none;
    border: 0;
    cursor: pointer;
    color: #fff;
    padding: 0.3rem 0.2rem;
}
.pdb-menu-trigger-label {
    font-family: var(--font-titres);
    font-weight: 500;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.pdb-burger { display: flex; flex-direction: column; gap: 5px; width: 24px; }
.pdb-burger span {
    height: 2px;
    width: 100%;
    background: #fff;
    display: block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 600px) {
    .pdb-menu-trigger-label { display: none; }
    .pdb-site-header-inner { padding: 1rem 1.2rem; }
}

/* ---------- Menu plein écran ---------- */
.pdb-overlay-nav {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: #0a0d12;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}
.pdb-overlay-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.pdb-overlay-close {
    position: absolute;
    top: 1.3rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--dk-line);
    background: transparent;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}
.pdb-overlay-close:hover { background: rgba(255, 255, 255, 0.08); }
.pdb-overlay-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    text-align: center;
}
.pdb-overlay-list a {
    font-family: var(--font-titres);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: clamp(2.1rem, 7vw, 3.8rem);
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}
.pdb-overlay-list a:hover,
.pdb-overlay-list .current-menu-item a { color: #fff; }
.pdb-overlay-tag {
    font-family: var(--font-accent);
    font-size: 1.4rem;
    color: var(--brand-amber);
    margin-top: 2.2rem;
}
body.pdb-overlay-open { overflow: hidden; }

/* ================= HERO ================= */
@keyframes pdbKenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}
.pdb-hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
}
.pdb-hero-bg { position: absolute; inset: 0; z-index: 0; }
.pdb-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: pdbKenBurns 26s ease-in-out infinite alternate;
}
.pdb-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 13, 18, 0.25) 0%, rgba(10, 13, 18, 0.45) 45%, rgba(10, 13, 18, 0.98) 100%);
    z-index: 1;
}
.pdb-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}
.pdb-scroll-cue {
    position: absolute;
    bottom: 1.8rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 14px;
}
.pdb-scroll-cue::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: pdbScrollCue 1.8s ease-in-out infinite;
}
@keyframes pdbScrollCue {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(10px); }
}
.pdb-hero-kicker {
    font-family: var(--font-accent);
    font-size: 1.6rem;
    color: var(--brand-amber);
    margin: 0 0 0.3rem;
}
.pdb-hero h1 {
    font-family: var(--font-titres);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    line-height: 1.05;
    margin: 0 0 1rem;
    color: #fff;
}
.pdb-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 560px;
    margin: 0 0 2rem;
}
.pdb-hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Bannière plus petite pour les archives */
.pdb-page-hero {
    position: relative;
    display: flex;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
}
.pdb-page-hero .pdb-hero-bg img { animation-duration: 30s; }
.pdb-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 13, 18, 0.45) 0%, rgba(10, 13, 18, 0.94) 100%);
    z-index: 1;
}
.pdb-page-hero-content { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; padding: 2.4rem 1.5rem; text-align: center; }
.pdb-page-hero h1 {
    font-family: var(--font-titres);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: clamp(2rem, 4.5vw, 3rem);
    color: #fff;
    margin: 0 0 0.5rem;
}
.pdb-page-hero p { color: rgba(255, 255, 255, 0.78); margin: 0; font-size: 1.05rem; }

/* ================= BOUTONS ================= */
.pdb-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--brand-rouge);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-titres);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
    padding: 0.85rem 1.8rem;
    border-radius: 4px;
    transition: background 0.15s ease, transform 0.15s ease;
}
.pdb-btn:hover { background: var(--brand-rouge-2); transform: translateY(-1px); }
.pdb-btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
}
.pdb-btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

/* ================= SECTIONS / TITRES ================= */
.pdb-section { padding: 5rem 0; }
.pdb-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2.2rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.pdb-section-head h2 {
    font-family: var(--font-titres);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 1.7rem;
    margin: 0;
    color: var(--dk-text);
}
.pdb-section-head h2::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 3px;
    background: var(--brand-rouge);
    margin-right: 0.8rem;
    vertical-align: middle;
}
.pdb-section-link {
    font-family: var(--font-titres);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-amber);
    text-decoration: none;
}
.pdb-section-link:hover { color: #fff; }
.pdb-js .pdb-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.pdb-js .pdb-reveal.is-visible { opacity: 1; transform: none; }

.pdb-empty {
    color: var(--dk-text-muted);
    font-style: italic;
    border: 1px dashed var(--dk-line);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

/* ================= CARTES (grille sombre) ================= */
.pdb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.6rem;
}
.pdb-tile {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--dk-text);
    background: var(--dk-bg-card);
    border: 1px solid var(--dk-line);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    isolation: isolate;
}
.pdb-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    border-color: rgba(200, 69, 58, 0.45);
}
.pdb-tile-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    font-family: var(--font-titres);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-amber);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.pdb-tile:hover .pdb-tile-cta { opacity: 1; transform: none; }
.pdb-tile-cta svg { width: 13px; height: 13px; transition: transform 0.25s ease; }
.pdb-tile:hover .pdb-tile-cta svg { transform: translateX(3px); }
.pdb-tile-img {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--dk-bg-elevated);
    overflow: hidden;
}
.pdb-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.pdb-tile:hover .pdb-tile-img img { transform: scale(1.06); }
.pdb-tile-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 20, 26, 0) 50%, rgba(16, 20, 26, 0.92) 100%);
}
.pdb-tile-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    z-index: 2;
    background: var(--brand-rouge);
    color: #fff;
    font-family: var(--font-titres);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
    border-radius: 3px;
}
.pdb-tile-body { padding: 1.1rem 1.2rem 1.3rem; }
.pdb-tile-kicker {
    font-family: var(--font-titres);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand-amber);
    display: block;
    margin-bottom: 0.35rem;
}
.pdb-tile h3 {
    font-family: var(--font-titres);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 1.12rem;
    margin: 0 0 0.45rem;
    color: #fff;
}
.pdb-tile p { margin: 0; font-size: 0.88rem; color: var(--dk-text-muted); }
.pdb-tile-meta {
    display: flex;
    gap: 0.9rem;
    margin-top: 0.7rem;
    font-size: 0.78rem;
    color: var(--dk-text-muted);
    flex-wrap: wrap;
}

/* ================= PAGE PAPIER (fiches sortie / voyage) ================= */
.pdb-main-single { padding: 1rem 1.5rem 5rem; }
.pdb-paper-wrap { max-width: 1080px; margin: 0 auto; }
.pdb-paper {
    background: var(--paper);
    border-radius: 10px;
    padding: clamp(1.5rem, 4vw, 3.2rem);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    animation: pdbPaperIn 0.6s ease both;
}
@keyframes pdbPaperIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}
@media (max-width: 600px) {
    .pdb-main-single { padding: 2rem 0.8rem 3rem; }
}

/* ================= PAGE GÉNÉRIQUE ================= */
.pdb-page-content { max-width: 760px; margin: 0 auto; padding: 4rem 1.5rem; }
.pdb-page-content h1 {
    font-family: var(--font-titres);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
}

/* ================= FOOTER ================= */
.pdb-site-footer {
    border-top: 1px solid var(--dk-line);
    padding: 2.5rem 0;
    margin-top: 2rem;
}
.pdb-site-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--dk-text-muted);
}
.pdb-site-footer a { color: var(--dk-text-muted); text-decoration: none; }
.pdb-site-footer a:hover { color: var(--brand-amber); }
.pdb-footer-tag { font-family: var(--font-accent); font-size: 1.15rem; color: var(--brand-amber); }
