/*
Theme Name: Aventure Berbère
Theme URI: https://aventure-berbere.com
Author: Arnaud Bruckler
Author URI: https://arnaud-bruckler.fr
Description: Thème custom pour aventure-berbere.com — Aventures au Sahara, désert marocain, culture berbère et écosystème du désert.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ab
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ===== VARIABLES ===== */
:root {
    --ab-terracotta:     #C75B39;
    --ab-terracotta-dark:#A84830;
    --ab-olive:          #5C6B3C;
    --ab-olive-light:    #7A8C55;
    --ab-gold:           #D4A843;
    --ab-gold-dark:      #B8922E;
    --ab-sand:           #FBF8F3;
    --ab-white:          #FFFFFF;
    --ab-dune-light:     #F0E6D6;
    --ab-dune:           #A89882;
    --ab-dune-dark:      #5D5142;
    --ab-night:          #2A1F14;
    --ab-overlay:        rgba(42, 31, 20, 0.6);
    --ab-radius:         6px;
    --ab-shadow:         0 2px 8px rgba(42, 31, 20, 0.1);
    --ab-shadow-hover:   0 4px 16px rgba(42, 31, 20, 0.15);
}

/* ===== RESET ===== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
*, *::before, *::after {
    box-sizing: border-box;
}
img {
    max-width: 100%;
    width: auto;
    height: auto;
}

/* ===== BASE ===== */
html {
    font-size: 16px;
}
body {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--ab-dune-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-color: var(--ab-sand);
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: var(--ab-terracotta);
    transition: color 0.2s ease;
}
a:hover {
    color: var(--ab-terracotta-dark);
}
strong, b {
    font-weight: 700;
}
em, i {
    font-style: italic;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}
.page-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.main-content {
    flex: 1;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--ab-night);
    font-weight: 700;
    line-height: 1.25;
}
h1 { font-size: 2.4rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }
p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--ab-radius);
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}
.btn-gold {
    background: var(--ab-gold);
    color: var(--ab-night);
}
.btn-gold:hover {
    background: var(--ab-gold-dark);
    color: var(--ab-night);
}
.btn-blue {
    background: var(--ab-terracotta);
    color: var(--ab-white);
}
.btn-blue:hover {
    background: var(--ab-terracotta-dark);
    color: var(--ab-white);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--ab-terracotta);
    color: var(--ab-terracotta);
}
.btn-outline:hover {
    background: var(--ab-terracotta);
    color: var(--ab-white);
}

/* ===== HEADER ===== */
.header {
    background: var(--ab-white);
    border-bottom: 1px solid var(--ab-dune-light);
    position: sticky;
    top: 0;
    z-index: 100;
}
.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.1;
}
.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ab-night);
}
.logo-accent {
    color: var(--ab-terracotta);
}
.logo-tagline {
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--ab-dune);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Nav */
.main-nav .menu {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav .menu > li > a {
    display: block;
    padding: 8px 16px;
    color: var(--ab-dune-dark);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--ab-radius);
    transition: all 0.2s ease;
}
.main-nav .menu > li > a:hover,
.main-nav .menu > li.current-menu-item > a,
.main-nav .menu > li.current_page_item > a,
.main-nav .menu > li.current-page-ancestor > a {
    color: var(--ab-terracotta);
    background: rgba(199, 91, 57, 0.08);
}

/* Burger toggle */
.burger-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.burger-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ab-night);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.burger-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger-toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.burger-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--ab-dune);
    margin-bottom: 12px;
    line-height: 1.5;
}
.breadcrumb a {
    color: var(--ab-dune);
}
.breadcrumb a:hover {
    color: var(--ab-terracotta);
}
.breadcrumb > span {
    color: var(--ab-dune);
}

/* ===== SECTIONS ===== */
.section-text {
    padding: 30px 0;
}
.section-text .container > h1 {
    margin-bottom: 0.5rem;
}

/* Article header */
.article-header {
    padding: 32px 0 16px;
}
.article-header h1 {
    max-width: 800px;
}

/* Hero image band */
.article-hero-image {
    padding: 0 0 12px;
}
.article-hero-image .hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--ab-radius);
}

/* Article layout with sidebar */
.section-article-layout {
    padding: 30px 0 50px;
}
.article-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}
.article-main {
    min-width: 0;
}

/* ===== GUTENBERG CONTENT ===== */
.article-main h2 {
    margin-top: 2rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--ab-dune-light);
}
.article-main h3 {
    margin-top: 1.5rem;
}
.article-main p {
    line-height: 1.8;
    margin-bottom: 1rem;
}
.article-main p:last-child {
    margin-bottom: 0;
}
.article-main ul,
.article-main ol {
    margin: 0 0 1.2rem 1.5rem;
}
.article-main ul {
    list-style: disc;
}
.article-main ol {
    list-style: decimal;
}
.article-main li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}
.article-main blockquote {
    border-left: 4px solid var(--ab-gold);
    padding: 16px 20px;
    margin: 1.5rem 0;
    background: rgba(212, 168, 67, 0.08);
    font-style: italic;
    color: var(--ab-dune-dark);
}
.article-main img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--ab-radius);
    margin: 1.2rem 0;
}
/* Elementor image galleries */
.content-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 1.5rem 0;
}
.content-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin: 0;
}

.article-main a {
    color: var(--ab-terracotta);
    text-decoration: underline;
    text-decoration-color: rgba(199, 91, 57, 0.3);
    text-underline-offset: 2px;
}
.article-main a:hover {
    text-decoration-color: var(--ab-terracotta);
}

/* Gutenberg tables */
.article-main .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2rem 0;
}
.article-main .wp-block-table th,
.article-main .wp-block-table td {
    padding: 10px 14px;
    border: 1px solid var(--ab-dune-light);
    text-align: left;
    line-height: 1.5;
}
.article-main .wp-block-table th {
    background: var(--ab-night);
    color: var(--ab-white);
    font-weight: 600;
}
.article-main .wp-block-table tr:nth-child(even) td {
    background: var(--ab-sand);
}

/* ===== CARD META ===== */
.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--ab-dune);
    margin: 6px 0;
}
.card-meta svg {
    vertical-align: -1px;
    margin-right: 3px;
    fill: var(--ab-dune);
}

/* ===== SIDEBAR — Trek Summary ===== */
.sidebar {
    position: sticky;
    top: 90px;
}
.sidebar-trek {
    background: var(--ab-white);
    border: 1px solid var(--ab-dune-light);
    border-radius: var(--ab-radius);
    padding: 24px;
    box-shadow: var(--ab-shadow);
}
.sidebar-trek-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ab-night);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ab-gold);
}
.sidebar-trek-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-trek-list li {
    margin-bottom: 2px;
}
.sidebar-trek-list a {
    display: block;
    padding: 6px 10px;
    font-size: 0.85rem;
    color: var(--ab-dune-dark);
    border-radius: 4px;
    transition: all 0.15s ease;
}
.sidebar-trek-list a:hover {
    background: rgba(199, 91, 57, 0.08);
    color: var(--ab-terracotta);
}
.sidebar-trek-list .is-current > a {
    background: rgba(199, 91, 57, 0.1);
    color: var(--ab-terracotta);
    font-weight: 600;
}
.sidebar-trek-list .sidebar-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ab-dune);
    padding: 10px 10px 4px;
    margin-top: 8px;
}
.sidebar-trek-list .sidebar-etape-num {
    color: var(--ab-terracotta);
    font-weight: 700;
    margin-right: 4px;
}

/* ===== CARDS GRID ===== */
.section-cards {
    padding: 40px 0 60px;
}
.section-cards .container > h2 {
    text-align: center;
    margin-bottom: 2rem;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.card {
    background: var(--ab-white);
    border-radius: var(--ab-radius);
    overflow: hidden;
    box-shadow: var(--ab-shadow);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover {
    box-shadow: var(--ab-shadow-hover);
    transform: translateY(-2px);
}
.card-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.card-body {
    padding: 20px;
}
.card-body h3 {
    margin-bottom: 8px;
}
.card-body h3 a {
    color: var(--ab-night);
    text-decoration: none;
}
.card-body h3 a:hover {
    color: var(--ab-terracotta);
}
.card-body p {
    font-size: 0.9rem;
    color: var(--ab-dune-dark);
    line-height: 1.6;
    margin-bottom: 12px;
}
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ab-terracotta);
}
.read-more:hover {
    color: var(--ab-terracotta-dark);
}
.read-more svg {
    transition: transform 0.2s ease;
}
.read-more:hover svg {
    transform: translateX(3px);
}

/* ===== HERO TREK (Homepage) ===== */
.hero-trek {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: var(--ab-white);
}
.hero-trek-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(42, 31, 20, 0.82) 0%, rgba(42, 31, 20, 0.55) 100%);
}
.hero-trek .container {
    position: relative;
    z-index: 2;
    padding-top: 60px;
    padding-bottom: 60px;
}
.hero-trek h1 {
    color: var(--ab-white);
    font-size: 3rem;
    max-width: 700px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-trek .hero-subtitle {
    font-size: 1.15rem;
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

/* ===== TREK OVERVIEW BAR ===== */
.trek-overview-bar {
    background: var(--ab-night);
    color: var(--ab-white);
    padding: 24px 0;
}
.overview-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.overview-stat {
    text-align: center;
}
.overview-stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ab-gold);
    display: block;
}
.overview-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ab-dune);
    margin-top: 4px;
}

/* ===== ETAPES GRID (Homepage) ===== */
.section-etapes {
    padding: 60px 0;
    background: var(--ab-white);
}
.section-etapes .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-etapes .section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--ab-dune);
}
.etape-card {
    display: block;
    background: var(--ab-white);
    border-radius: var(--ab-radius);
    overflow: hidden;
    box-shadow: var(--ab-shadow);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
}
.etape-card:hover {
    box-shadow: var(--ab-shadow-hover);
    transform: translateY(-3px);
}
.etape-card-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    filter: brightness(0.6);
}
.etape-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--ab-terracotta);
    color: var(--ab-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.etape-card-body {
    padding: 16px 20px 20px;
}
.etape-card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}
.etape-card-body h3 a {
    color: var(--ab-night);
    text-decoration: none;
}
.etape-card-body h3 a:hover {
    color: var(--ab-terracotta);
}
.etape-card-stats {
    display: flex;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--ab-dune);
}
.etape-card-stats span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* ===== INFO ITEMS (FAQ — Accordion) ===== */
.section-info-items {
    padding: 50px 0;
    background: var(--ab-sand);
}
.section-info-items .container > h2 {
    text-align: center;
    margin-bottom: 2rem;
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}
.info-item {
    background: var(--ab-white);
    border: 1px solid var(--ab-dune-light);
    border-bottom: none;
    padding: 0;
    transition: background 0.2s ease;
}
.info-item:first-child {
    border-radius: var(--ab-radius) var(--ab-radius) 0 0;
}
.info-item:last-child {
    border-bottom: 1px solid var(--ab-dune-light);
    border-radius: 0 0 var(--ab-radius) var(--ab-radius);
}
.info-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    cursor: pointer;
    user-select: none;
}
.info-item-header:hover {
    background: var(--ab-sand);
}
.info-item-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}
.info-item h3 {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--ab-night);
    flex: 1;
}
.info-item-toggle {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.3s ease;
}
.info-item-toggle::before,
.info-item-toggle::after {
    content: '';
    position: absolute;
    background: var(--ab-dune);
    border-radius: 1px;
    transition: transform 0.3s ease;
}
.info-item-toggle::before {
    width: 14px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.info-item-toggle::after {
    width: 2px;
    height: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.info-item.is-open .info-item-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}
.info-item-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.info-item.is-open .info-item-body {
    max-height: 500px;
}
.info-item-body-inner {
    padding: 0 24px 20px 60px;
}
.info-item p {
    font-size: 0.9rem;
    color: var(--ab-dune-dark);
    line-height: 1.7;
    margin-bottom: 8px;
}
.info-item a.info-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ab-terracotta);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ===== SECTION DISCOVER (Homepage) ===== */
.section-discover {
    padding: 60px 0;
    background: var(--ab-white);
}
.section-discover .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.discover-card {
    position: relative;
    border-radius: var(--ab-radius);
    overflow: hidden;
    min-height: 260px;
    display: flex;
    align-items: flex-end;
}
.discover-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.discover-card:hover img {
    transform: scale(1.03);
}
.discover-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(42, 31, 20, 0.82) 0%, rgba(42, 31, 20, 0.35) 100%);
}
.discover-card-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    color: var(--ab-white);
    width: 100%;
}
.discover-card-content h3 {
    color: var(--ab-white);
    font-size: 1.2rem;
    margin-bottom: 6px;
}
.discover-card-content p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* ===== NEWSLETTER ===== */
.section-newsletter {
    padding: 60px 0;
    background: var(--ab-night);
    color: var(--ab-white);
    text-align: center;
}
.section-newsletter h2 {
    color: var(--ab-white);
    margin-bottom: 0.5rem;
}
.section-newsletter p {
    color: var(--ab-dune);
    margin-bottom: 1.5rem;
}
.nl-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 0;
}
.nl-form input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255,255,255,0.15);
    border-right: none;
    border-radius: var(--ab-radius) 0 0 var(--ab-radius);
    background: rgba(255,255,255,0.08);
    color: var(--ab-white);
    font-size: 0.95rem;
    font-family: 'Lato', sans-serif;
    outline: none;
    transition: border-color 0.2s ease;
}
.nl-form input[type="email"]::placeholder {
    color: var(--ab-dune);
}
.nl-form input[type="email"]:focus {
    border-color: var(--ab-gold);
}
.nl-form button {
    padding: 12px 24px;
    border: none;
    border-radius: 0 var(--ab-radius) var(--ab-radius) 0;
    background: var(--ab-gold);
    color: var(--ab-night);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}
.nl-form button:hover {
    background: var(--ab-gold-dark);
}
.nl-hp {
    position: absolute;
    left: -9999px;
}
.nl-message {
    margin-top: 12px;
    font-size: 0.9rem;
}
.nl-success {
    color: var(--ab-olive-light);
}
.nl-error {
    color: #E53E3E;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--ab-night);
    color: var(--ab-dune);
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-main {
    padding: 40px 0;
}
.footer-main .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}
.footer-brand {
    text-align: center;
}
.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    width: 100%;
}
.footer-brand .footer-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ab-white);
}
.footer-brand .logo-accent {
    color: var(--ab-terracotta);
}
.footer-brand .footer-tagline {
    font-size: 0.82rem;
    color: var(--ab-dune);
    margin-top: 6px;
}
.footer-links h4 {
    color: var(--ab-white);
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 6px;
}
.footer-links a {
    color: var(--ab-dune);
    font-size: 0.85rem;
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: var(--ab-gold);
}
.footer-etapes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-etape-day {
    color: var(--ab-gold);
    font-weight: 700;
    margin-right: 3px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 16px 0;
    text-align: center;
    font-size: 0.8rem;
}
.footer-bottom a {
    color: var(--ab-dune);
}
.footer-bottom a:hover {
    color: var(--ab-gold);
}
.footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0 0 8px;
}
.footer-menu a {
    color: var(--ab-dune);
    font-size: 0.82rem;
}
.footer-menu a:hover {
    color: var(--ab-gold);
}

/* ===== ETAPE PAGE ===== */
.etape-meta-block {
    padding: 0 0 20px;
    background: var(--ab-sand);
    border-bottom: 1px solid var(--ab-dune-light);
}
.stat-item-difficulty {
    margin-left: auto;
}
.stat-item-refuge .etape-refuge {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}
.etape-day-badge {
    display: inline-block;
    background: var(--ab-terracotta);
    color: var(--ab-white);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.etape-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin: 0 0 16px;
    padding: 20px 24px;
    background: var(--ab-white);
    border: 1px solid var(--ab-dune-light);
    border-radius: var(--ab-radius);
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.stat-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(199, 91, 57, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}
.stat-item-icon svg {
    fill: var(--ab-terracotta);
}
.stat-item-data {
    display: flex;
    flex-direction: column;
}
.stat-item-value {
    font-weight: 700;
    color: var(--ab-night);
    font-size: 1rem;
}
.stat-item-label {
    font-size: 0.75rem;
    color: var(--ab-dune);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.difficulty-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.difficulty-facile {
    background: rgba(92, 107, 60, 0.12);
    color: var(--ab-olive);
}
.difficulty-moyen {
    background: rgba(212, 168, 67, 0.15);
    color: #B8922E;
}
.difficulty-difficile {
    background: rgba(229, 62, 62, 0.12);
    color: #C53030;
}

/* Etape navigation */
.etape-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--ab-dune-light);
}
.etape-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--ab-white);
    border: 1px solid var(--ab-dune-light);
    border-radius: var(--ab-radius);
    color: var(--ab-dune-dark);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.etape-nav a:hover {
    border-color: var(--ab-terracotta);
    color: var(--ab-terracotta);
}
.etape-nav .etape-nav-next {
    margin-left: auto;
}

/* ===== HERO 404 ===== */
.hero-404 {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--ab-night);
    color: var(--ab-white);
    overflow: hidden;
}
.hero-404-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(42, 31, 20, 0.85), rgba(42, 31, 20, 0.6));
}
.hero-404-content {
    position: relative;
    z-index: 2;
}
.hero-404-code {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 700;
    color: var(--ab-gold);
    display: block;
    margin-bottom: 16px;
}
.hero-404 h1 {
    color: var(--ab-white);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.hero-404 p {
    max-width: 500px;
    margin: 0 auto 1.5rem;
    color: var(--ab-dune);
    line-height: 1.7;
}
.hero-404-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--ab-gold);
    color: var(--ab-night);
    font-weight: 600;
    border-radius: var(--ab-radius);
    transition: background 0.2s ease;
}
.hero-404-btn:hover {
    background: var(--ab-gold-dark);
    color: var(--ab-night);
}

/* ===== ARCHIVE / LISTING ===== */
.section-cards-listing .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== REFUGE LINK ===== */
.etape-refuge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(199, 91, 57, 0.06);
    border: 1px solid var(--ab-dune-light);
    border-radius: var(--ab-radius);
    font-size: 0.9rem;
    margin: 0;
}
.etape-refuge strong {
    color: var(--ab-night);
}
.etape-refuge a {
    color: var(--ab-terracotta);
    font-weight: 600;
}

/* ===== PAGINATION ===== */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 30px 0 60px;
}
.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--ab-radius);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ab-dune-dark);
    background: var(--ab-white);
    border: 1px solid var(--ab-dune-light);
    transition: all 0.2s ease;
}
.nav-links .page-numbers:hover {
    border-color: var(--ab-terracotta);
    color: var(--ab-terracotta);
}
.nav-links .page-numbers.current {
    background: var(--ab-terracotta);
    color: var(--ab-white);
    border-color: var(--ab-terracotta);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
    .article-with-sidebar {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
    }
    .hero-trek h1 {
        font-size: 2.2rem;
    }
    .overview-stats {
        gap: 24px;
    }
    .cards-grid,
    .section-cards-listing .container {
        grid-template-columns: repeat(2, 1fr);
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .content-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .content-gallery img {
        height: 140px;
    }
    .burger-toggle {
        display: flex;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--ab-white);
        border-bottom: 1px solid var(--ab-dune-light);
        padding: 16px 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .main-nav.nav-open {
        display: block;
    }
    .main-nav .menu {
        flex-direction: column;
        gap: 0;
    }
    .main-nav .menu > li > a {
        padding: 10px 12px;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }

    .hero-trek {
        min-height: 400px;
    }
    .hero-trek h1 {
        font-size: 1.8rem;
    }
    .overview-stats {
        gap: 16px;
    }
    .overview-stat-value {
        font-size: 1.2rem;
    }
    .cards-grid,
    .section-cards-listing .container {
        grid-template-columns: 1fr;
    }
    .etape-stats {
        gap: 16px;
    }
    .etape-nav {
        flex-direction: column;
    }
    .etape-nav .etape-nav-next {
        margin-left: 0;
    }
    .nl-form {
        flex-direction: column;
    }
    .nl-form input[type="email"] {
        border-right: 2px solid rgba(255,255,255,0.15);
        border-radius: var(--ab-radius);
    }
    .nl-form button {
        border-radius: var(--ab-radius);
    }
    .article-hero-image .hero-img {
        height: 250px;
    }
    .hero-404-code {
        font-size: 3.5rem;
    }
}
