/* ========================================
   HOTEL ARPÈGE - Premium Hotel Guide
   Palette: Navy #0F172A, Gold #D4A574, Cream #FBF7F0
   Fonts: System stack premium
   ======================================== */

/* === VARIABLES === */
:root {
    --ha-navy: #0F172A;
    --ha-navy-light: #1E293B;
    --ha-gold: #D4A574;
    --ha-gold-dark: #B8860B;
    --ha-gold-light: #F5DEB3;
    --ha-cream: #FBF7F0;
    --ha-text: #1E293B;
    --ha-text-light: #64748B;
    --ha-border: #E2E8F0;
    --ha-radius: 10px;
    --ha-shadow: 0 2px 12px rgba(15,23,42,0.08);
    --ha-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* === GLOBAL === */
body { font-family: var(--ha-font); color: var(--ha-text); background: #fff; }
a { color: var(--ha-gold-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ha-gold); }
img { max-width: 100%; height: auto; }

/* === HEADER === */
.site-header { background: var(--ha-navy) !important; border-bottom: 2px solid var(--ha-gold) !important; }
/* Header flex : logo a gauche, nav a droite, tout centré verticalement */
.inside-header { display: flex !important; align-items: center !important; justify-content: space-between !important; padding: 0 40px !important; height: 70px !important; }
.inside-header > * { float: none !important; }
.site-branding { display: none !important; }
/* Logo */
.site-logo { display: flex !important; align-items: center !important; height: 70px !important; flex-shrink: 0 !important; }
.site-logo a { display: flex !important; align-items: center !important; height: 70px !important; }
.site-logo img, .header-image { max-height: 45px !important; width: auto !important; }

/* Nav centré verticalement */
#site-navigation { float: none !important; display: flex !important; align-items: center !important; height: 70px !important; }
.inside-navigation { display: flex !important; align-items: center !important; height: 70px !important; padding: 0 !important; }
.main-navigation .main-nav { display: flex !important; align-items: center !important; height: 70px !important; }
.main-navigation .main-nav > ul { display: flex !important; align-items: center !important; height: 70px !important; margin: 0 !important; }
.main-navigation .main-nav > ul > li { display: flex !important; align-items: center !important; height: 70px !important; }
.main-navigation .main-nav > ul > li > a { display: flex !important; align-items: center !important; height: 70px !important; padding: 0 14px !important; text-transform: uppercase !important; font-size: 0.8rem !important; letter-spacing: 0.8px !important; line-height: 1 !important; }
.main-navigation .main-nav > ul > li > a:hover,
.main-navigation .main-nav > ul > li.current-menu-item > a { color: var(--ha-gold) !important; }

/* Hide GP default footer */
.site-footer, .footer-bar, .site-info { display: none !important; }

/* === CONTENT AREA === */
.content-area, #primary { width: 100% !important; max-width: 820px !important; margin: 0 auto !important; float: none !important; }
#secondary, .widget-area { display: none !important; }

/* === ARTICLE SINGLE === */
.single .entry-header { margin-bottom: 1.5rem !important; }
.single .entry-title { font-size: 2rem !important; font-weight: 700 !important; color: var(--ha-navy) !important; line-height: 1.25 !important; }
.single .entry-meta { color: var(--ha-text-light) !important; font-size: 0.85rem !important; }
.single .entry-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--ha-navy); margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--ha-gold); }
.single .entry-content h3 { font-size: 1.2rem; font-weight: 600; color: var(--ha-navy-light); margin: 2rem 0 0.75rem; }
.single .entry-content p { line-height: 1.75; margin-bottom: 1.25rem; }
.single .entry-content figure { margin: 2rem 0; }
.single .entry-content figcaption { font-size: 0.82rem; color: var(--ha-text-light); font-style: italic; margin-top: 0.5rem; }
.single .entry-content img { border-radius: var(--ha-radius); }

/* === BLOG/ARCHIVE GRID === */
body.blog main#main,
body.archive main#main { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 1.5rem !important; }
body.blog article.post,
body.archive article.post { margin: 0 !important; padding: 0 !important; }
body.blog .inside-article,
body.archive .inside-article { display: flex !important; flex-direction: column !important; overflow: hidden !important; border-radius: var(--ha-radius) !important; box-shadow: var(--ha-shadow) !important; background: #fff !important; transition: transform 0.2s, box-shadow 0.2s !important; height: 100% !important; }
body.blog .inside-article:hover,
body.archive .inside-article:hover { transform: translateY(-3px) !important; box-shadow: 0 6px 20px rgba(15,23,42,0.12) !important; }
body.blog .inside-article > .post-image,
body.archive .inside-article > .post-image { order: -10 !important; height: 220px !important; overflow: hidden !important; }
body.blog .inside-article > .post-image img,
body.archive .inside-article > .post-image img { object-fit: cover !important; width: 100% !important; height: 100% !important; }
body.blog .inside-article > header.entry-header,
body.archive .inside-article > header.entry-header { order: -5 !important; padding: 1rem 1.25rem 0 !important; }
body.blog .entry-title,
body.archive .entry-title { font-size: 1.05rem !important; line-height: 1.35 !important; font-weight: 700 !important; }
body.blog .entry-title a,
body.archive .entry-title a { color: var(--ha-navy) !important; font-weight: 700 !important; }
body.blog .entry-title a:hover,
body.archive .entry-title a:hover { color: var(--ha-gold) !important; }
body.blog .inside-article > .entry-summary,
body.archive .inside-article > .entry-summary { order: 0 !important; padding: 0 1.25rem !important; flex: 1 !important; }
body.blog .entry-summary p,
body.archive .entry-summary p { font-size: 0.88rem !important; color: var(--ha-text-light) !important; line-height: 1.55 !important; }
body.blog .inside-article > footer.entry-meta,
body.archive .inside-article > footer.entry-meta { order: 10 !important; padding: 0.75rem 1.25rem !important; border-top: 1px solid var(--ha-border) !important; }

@media (max-width: 768px) {
    body.blog main#main, body.archive main#main { grid-template-columns: 1fr !important; }
}

/* === SHORTCODES === */

/* Summary / En bref */
.site-summary { background: var(--ha-cream); border-left: 4px solid var(--ha-gold); border-radius: 0 var(--ha-radius) var(--ha-radius) 0; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.site-summary-title { font-weight: 700; color: var(--ha-navy); margin-bottom: 0.5rem; font-size: 1.05rem; }
.site-summary ul { margin: 0; padding-left: 1.25rem; }
.site-summary li { margin-bottom: 0.4rem; line-height: 1.55; }

/* TOC */
.site-toc { background: #F8FAFC; border: 1px solid var(--ha-border); border-radius: var(--ha-radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.site-toc-title { font-weight: 700; color: var(--ha-navy); margin-bottom: 0.75rem; font-size: 1rem; }
.site-toc ol { margin: 0; padding-left: 1.25rem; }
.site-toc li { margin-bottom: 0.35rem; }
.site-toc a { color: var(--ha-gold-dark); font-size: 0.92rem; }
.site-toc a:hover { color: var(--ha-gold); text-decoration: underline; }

/* Chiffres clés */
.site-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.site-chiffre { background: var(--ha-navy); color: #fff; border-radius: var(--ha-radius); padding: 1.25rem; text-align: center; }
.site-chiffre-val { display: block; font-size: 1.5rem; font-weight: 800; color: var(--ha-gold); margin-bottom: 0.3rem; }
.site-chiffre-label { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.75); }

/* Table */
.site-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.site-table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.site-table-wrap thead { background: var(--ha-navy); color: #fff; }
.site-table-wrap th { padding: 12px 14px; text-align: left; font-weight: 600; white-space: nowrap; }
.site-table-wrap td { padding: 10px 14px; border-bottom: 1px solid var(--ha-border); }
.site-table-wrap tbody tr:hover { background: var(--ha-cream); }

/* Encart */
.site-encart { background: var(--ha-cream); border-left: 4px solid var(--ha-gold); border-radius: 0 var(--ha-radius) var(--ha-radius) 0; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.site-encart-title { font-weight: 700; color: var(--ha-navy); margin-bottom: 0.5rem; }

/* Alerte */
.site-alerte { background: #FEF2F2; border-left: 4px solid #DC2626; border-radius: 0 var(--ha-radius) var(--ha-radius) 0; padding: 1rem 1.25rem; margin: 1.5rem 0; color: #991B1B; }

/* FAQ */
.site-faq { margin: 2rem 0; }
.site-faq-item { margin-bottom: 8px; border: 1px solid var(--ha-border); border-radius: var(--ha-radius); overflow: hidden; }
.site-faq-item summary { padding: 14px 18px; font-weight: 600; cursor: pointer; background: #F8FAFC; color: var(--ha-navy); font-size: 0.95rem; transition: background 0.2s; list-style: none; }
.site-faq-item summary::-webkit-details-marker { display: none; }
.site-faq-item summary::before { content: "▸ "; color: var(--ha-gold); font-weight: 700; }
.site-faq-item[open] summary::before { content: "▾ "; }
.site-faq-item[open] summary { background: var(--ha-cream); border-bottom: 1px solid var(--ha-border); }
.site-faq-answer { padding: 14px 18px; line-height: 1.65; }

/* Bio */
.site-bio { display: flex; align-items: center; gap: 1.25rem; background: var(--ha-cream); border-radius: var(--ha-radius); padding: 1.5rem; margin: 2.5rem 0; border: 1px solid var(--ha-border); }
.site-bio-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--ha-gold); }
.site-bio-name { font-weight: 700; color: var(--ha-navy); font-size: 1rem; margin-bottom: 0.3rem; }
.site-bio-desc { font-size: 0.88rem; color: var(--ha-text-light); line-height: 1.55; margin: 0; }

/* Hide page title on front page */
body.home .entry-title, body.page-id-6 .entry-title { display: none !important; }
body.home .entry-header { display: none !important; }

/* Archive/category: masquer le page-header GP quand on a le hero */
body.category .page-header { display: none !important; }
/* Masquer aussi le titre H1 archive que GP injecte */
body.category .archive-title, body.category h1.page-title { display: none !important; }
/* Mais afficher la description sous le hero via un hook séparé */
body.archive:not(.category) .page-header { grid-column: 1 / -1 !important; margin-bottom: 1rem !important; padding-bottom: 1rem !important; border-bottom: 2px solid var(--ha-gold) !important; }
body.archive:not(.category) .page-header .page-title { font-size: 1.8rem !important; color: var(--ha-navy) !important; font-weight: 700 !important; }
/* Hero + description + pagination + no-results : full width dans la grille */
.ha-cat-hero { grid-column: 1 / -1 !important; margin-bottom: 1.5rem !important; }
.ha-cat-description { grid-column: 1 / -1 !important; color: var(--ha-text-light) !important; font-size: 0.95rem !important; line-height: 1.6 !important; margin-bottom: 1.5rem !important; padding-bottom: 1rem !important; border-bottom: 1px solid var(--ha-border) !important; }
body.archive nav.navigation, body.category nav.navigation { grid-column: 1 / -1 !important; }
body.category .no-results { grid-column: 1 / -1 !important; }

/* Articles grid */
.site-articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 1.5rem 0; }
.ha-card { display: flex; flex-direction: column; border-radius: var(--ha-radius); overflow: hidden; box-shadow: var(--ha-shadow); transition: transform 0.2s, box-shadow 0.2s; background: #fff; text-decoration: none; }
.ha-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(15,23,42,0.12); }
.ha-card-img { height: 180px; overflow: hidden; }
.ha-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ha-card-body { padding: 1rem; flex: 1; }
.ha-card-title { font-size: 1rem; font-weight: 700; color: var(--ha-navy); margin: 0 0 0.5rem; line-height: 1.35; display: block !important; visibility: visible !important; }
.ha-card-excerpt { font-size: 0.82rem; color: var(--ha-text-light); margin: 0; line-height: 1.5; }

@media (max-width: 768px) {
    .site-articles-grid { grid-template-columns: 1fr; }
}

/* Badge */
.site-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; color: #fff; }

/* === HOMEPAGE === */
.ha-hero { position: relative; margin: 0 calc(-50vw + 50%); width: 100vw; overflow: hidden; }
.ha-hero img { width: 100%; height: 400px; object-fit: cover; display: block; }
.ha-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,23,42,0.3), rgba(15,23,42,0.7)); display: flex; align-items: center; justify-content: center; text-align: center; }
.ha-hero-text { color: #fff; max-width: 600px; padding: 2rem; }
.ha-hero-text h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.75rem; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.ha-hero-text p { font-size: 1.1rem; opacity: 0.9; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }

/* Category hero banner - styles visuels */
/* grid-column is set in the archive section below */
.ha-cat-hero { position: relative; border-radius: var(--ha-radius); overflow: hidden; }
.ha-cat-hero img { width: 100%; height: 350px; object-fit: cover; display: block; }
.ha-cat-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, rgba(15,23,42,0.7)); display: flex; align-items: flex-end; padding: 1.5rem 2rem; }
.ha-cat-hero h2 { color: #fff; font-size: 1.8rem; font-weight: 700; margin: 0; text-shadow: 0 2px 6px rgba(0,0,0,0.3); }

/* === FOOTER === */
.ha-footer { background: var(--ha-navy); color: rgba(255,255,255,0.75); padding: 3rem 0 0; margin-top: 3rem; }
.ha-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.ha-footer h4 { color: var(--ha-gold); font-size: 0.95rem; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.ha-footer p { font-size: 0.88rem; line-height: 1.6; margin: 0; }
.ha-footer ul { list-style: none; margin: 0; padding: 0; }
.ha-footer li { margin-bottom: 0.5rem; }
.ha-footer a { color: rgba(255,255,255,0.75); font-size: 0.88rem; }
.ha-footer a:hover { color: var(--ha-gold); }
.ha-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2rem; padding: 1.25rem 2rem; text-align: center; font-size: 0.8rem; }

@media (max-width: 768px) {
    .ha-footer-inner { grid-template-columns: 1fr 1fr; }
    .ha-hero-text h1 { font-size: 1.5rem; }
    .inside-header { padding: 12px 16px !important; }
}

/* === FIX: Images centrées dans les articles === */
.single .entry-content .article-image,
.single .entry-content figure {
    text-align: center;
    display: block;
}
.single .entry-content .article-image img,
.single .entry-content figure img {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* === FIX: Masquer la author box GP par défaut (garder seulement [ha_bio]) === */
.single .author-info,
.single .post-author-info,
.single .entry-meta .byline,
.single .author-box,
.single footer.entry-meta {
    display: none !important;
}

/* Fix: toutes les tables de contenu scrollables */
.entry-content table { display: block; overflow-x: auto; max-width: 100%; }
.entry-content table thead { white-space: nowrap; }

