/* =====================================================================
   Blog Triomphe Hôtel - charte du site (src/app/globals.css)
   #0B4527 vert profond · #176B3A vert · #F2C300 or · #FAFAF7 fond · #171717 texte
   ===================================================================== */
:root {
  --bg: #FAFAF7;
  --fg: #171717;
  --card: #FFFFFF;
  --muted: #5C5C56;
  --sand: #F0EFE6;
  --border: #E5E4DC;
  --green: #176B3A;
  --green-deep: #0B4527;
  --green-deeper: #083419;
  --gold: #F2C300;
  --gold-light: #FFDF4D;
  --gold-deep: #D4AA00;
  --danger: #B42318;
  --radius: 1rem;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --shadow: 0 1px 2px rgba(23, 23, 23, .04), 0 8px 24px rgba(23, 23, 23, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1rem/1.65 var(--font-sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; color: var(--fg); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 600; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--fg); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 820px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* --- Boutons ----------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1.4rem; border-radius: 999px;
  font: 600 .95rem/1 var(--font-sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-gold { background: var(--gold); color: var(--fg); }
.btn-gold:hover { background: var(--gold-light); color: var(--fg); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-deep); color: #fff; }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: #fff; }

/* --- En-tête du site --------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 247, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand img { height: 48px; width: auto; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: inline-flex; flex-direction: column; gap: 5px; padding: 10px; cursor: pointer; }
.nav-burger span { width: 24px; height: 2px; background: var(--fg); border-radius: 2px; }
.main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--border);
  flex-direction: column; padding: 1rem 16px 1.5rem; box-shadow: var(--shadow); }
.nav-toggle:checked ~ .main-nav { display: flex; }
.main-nav a { color: var(--fg); text-decoration: none; padding: .6rem 0; font-weight: 500; border-bottom: 1px solid var(--sand); }
.main-nav a.is-active { color: var(--green); }
.main-nav .nav-cta { margin-top: .8rem; border-bottom: 0; color: var(--fg); }
.main-nav .nav-sep { display: none; }
.main-nav .nav-hotel { color: var(--green); font-weight: 600; }
.main-nav .nav-hotel::after { content: " ↗"; font-size: .8em; }
@media (min-width: 1024px) {
  .main-nav .nav-sep { display: block; width: 1px; height: 22px; background: var(--border); }
  .nav-burger { display: none; }
  .main-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 1.4rem; padding: 0; box-shadow: none; border: 0; background: transparent; }
  .main-nav a { padding: .3rem 0; border: 0; font-size: .92rem; }
  .main-nav a.is-active { box-shadow: inset 0 -2px 0 var(--gold); }
  .main-nav .nav-cta { margin: 0 0 0 .4rem; padding: .6rem 1.2rem; }
}

/* --- Bandeau de titre ---------------------------------------------------- */
.hero-band { background: linear-gradient(135deg, var(--green-deep), var(--green-deeper)); color: #fff; padding: 2.2rem 0 2.6rem; margin-bottom: 2rem; }
.hero-band h1 { color: #fff; margin-bottom: .4rem; }
.hero-band .lead { color: rgba(255, 255, 255, .85); max-width: 46rem; }
.hero-band .breadcrumbs a, .hero-band .breadcrumbs span { color: rgba(255, 255, 255, .8); }
.lead { font-size: 1.12rem; color: var(--muted); }
.eyebrow { display: inline-block; font: 600 .75rem/1.2 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--green); text-decoration: none; margin-bottom: .6rem; }
.eyebrow--light { color: var(--gold); }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0 0 1rem; font-size: .85rem; }
.breadcrumbs li + li::before { content: "›"; margin-right: .3rem; opacity: .6; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: var(--muted); }

.search-inline { display: flex; gap: .5rem; margin-top: 1.4rem; max-width: 34rem; }
.search-inline input { flex: 1; min-width: 0; padding: .75rem 1rem; border-radius: 999px; border: 1px solid var(--border); font: inherit; background: #fff; color: var(--fg); }

/* --- Catégories (puces) ---------------------------------------------------- */
.chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1.6rem; scrollbar-width: thin; }
.chip { flex: none; display: inline-flex; gap: .4rem; align-items: center; padding: .45rem .9rem; border-radius: 999px; background: var(--card);
  border: 1px solid var(--border); color: var(--fg); text-decoration: none; font-size: .88rem; font-weight: 500; }
.chip span { color: var(--muted); font-size: .78rem; }
.chip:hover, .chip.is-active { border-color: var(--green); color: var(--green); }
.chip.is-active { background: #EAF3EE; }

/* --- Cartes ---------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-bottom: 2rem; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { display: block; aspect-ratio: 16 / 10; background: var(--sand); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--sand), #E3E9DF); }
.card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.28rem; margin-bottom: .5rem; }
.card-title a { color: var(--fg); text-decoration: none; }
.card-title a:hover { color: var(--green); }
.card-excerpt { color: var(--muted); margin: 0 0 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { color: var(--muted); font-size: .85rem; margin: auto 0 0; }
.featured { margin-bottom: 1.5rem; }
@media (min-width: 900px) {
  .card--large { flex-direction: row; }
  .card--large .card-media { flex: 1.4; aspect-ratio: auto; min-height: 360px; }
  .card--large .card-body { flex: 1; padding: 2rem; justify-content: center; }
  .card--large .card-title { font-size: 1.9rem; }
  .card--large .meta { margin-top: 0; }
}
.empty, .result-count { color: var(--muted); margin: 1rem 0 2rem; }

/* --- Pagination -------------------------------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 1rem 0 3rem; }
.page-link { min-width: 2.6rem; padding: .55rem .9rem; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--fg); text-decoration: none; text-align: center; }
.page-link:hover { border-color: var(--green); color: var(--green); }
.page-link.is-current { background: var(--green); border-color: var(--green); color: #fff; }
.page-gap { padding: .55rem .3rem; color: var(--muted); }

/* --- Article ------------------------------------------------------------------- */
.preview-banner { background: var(--gold); color: var(--fg); text-align: center; padding: .6rem 1rem; font-weight: 600; }
.post-header { padding: 2rem 0 1rem; }
.post-header .meta { margin-top: .8rem; }
.post-cover { margin: 0 auto 2rem; }
.post-cover img { width: 100%; border-radius: var(--radius); }
.post-cover figcaption { color: var(--muted); font-size: .85rem; margin-top: .5rem; text-align: center; }
.post-layout { padding-bottom: 2rem; }
.toc { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: .75rem; padding: 1rem 1.3rem; margin-bottom: 2rem; }
.toc-title { font-weight: 700; margin: 0 0 .4rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc a { text-decoration: none; }

.prose { font-size: 1.08rem; line-height: 1.8; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose h1, .prose h2 { font-size: 1.75rem; margin-top: 2em; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.35rem; margin-top: 1.6em; scroll-margin-top: 90px; }
.prose h4 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 700; margin-top: 1.4em; }
.prose p { margin: 0; }
.prose p + p { margin-top: 1em; }
.prose a { color: var(--green); font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.6em 0; padding: .8em 1.4em; border-left: 4px solid var(--gold); background: var(--card); border-radius: 0 .75rem .75rem 0; font-family: var(--font-display); font-size: 1.15rem; font-style: italic; }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 2.4em 0; }
.prose img { border-radius: .75rem; margin: 0 auto; }
.prose figure { margin: 1.8em auto; }
.prose figure[data-align="left"] { margin-left: 0; }
.prose figure[data-align="right"] { margin-right: 0; }
.prose figure[data-align="full"] { width: 100% !important; }
@media (min-width: 768px) {
  .prose figure[data-align="left"] { float: left; margin: .4em 1.5em 1em 0; max-width: 50%; }
  .prose figure[data-align="right"] { float: right; margin: .4em 0 1em 1.5em; max-width: 50%; }
  .prose::after { content: ""; display: table; clear: both; }
}
.prose figcaption { color: var(--muted); font-size: .88rem; text-align: center; margin-top: .5rem; font-style: italic; }
.prose mark { background: #FFF1A8; padding: 0 .15em; border-radius: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.prose th { background: var(--sand); font-weight: 600; }
.prose code { background: var(--sand); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
.prose pre { background: #1d1d1b; color: #f5f5f0; padding: 1rem; border-radius: .75rem; overflow-x: auto; }

.post-gallery { margin-top: 2.5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-grid figure { margin: 0; }
.gallery-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: .6rem; }
.gallery-grid figcaption { font-size: .8rem; color: var(--muted); margin-top: .3rem; }

.tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1.6rem 0; padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: .9rem; }
.share span { font-weight: 600; }
.share a { text-decoration: none; padding: .35rem .8rem; border-radius: 999px; background: var(--card); border: 1px solid var(--border); color: var(--fg); }
.share a:hover { border-color: var(--green); color: var(--green); }
.author-box, .cta-box { border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 1.6rem 0; }
.author-box { background: var(--card); border: 1px solid var(--border); }
.author-name { font-weight: 700; margin: 0 0 .3rem; }
.cta-box { background: linear-gradient(135deg, var(--green-deep), var(--green)); color: #fff; }
.cta-box p { margin: 0 0 .6rem; }
.cta-title { font-family: var(--font-display); font-size: 1.35rem; }
.cta-box .btn-outline { border-color: #fff; color: #fff; }
.cta-box .btn-outline:hover { background: #fff; color: var(--green-deep); }

/* --- Commentaires ------------------------------------------------------------- */
.comments { margin-top: 2.5rem; }
.comment { background: var(--card); border: 1px solid var(--border); border-radius: .75rem; padding: 1rem 1.2rem; margin-bottom: .8rem; }
.comment-author { font-weight: 600; margin: 0 0 .3rem; }
.comment-author time { font-weight: 400; color: var(--muted); font-size: .82rem; margin-left: .4rem; }
.comment p:last-child { margin-bottom: 0; }
.comment-form { margin-top: 1.4rem; display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea { font: inherit; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: .6rem; background: #fff; color: var(--fg); width: 100%; }
.field input:focus, .field textarea:focus { border-color: var(--green); outline: 2px solid rgba(23, 107, 58, .2); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .85rem; }
.notice { padding: .8rem 1rem; border-radius: .6rem; font-weight: 500; }
.notice--ok { background: #EAF3EE; color: var(--green-deep); }
.notice--error { background: #FDECEA; color: var(--danger); }
.comment-form .btn { justify-self: start; }

.related { background: var(--sand); padding: 2.5rem 0 1rem; margin-top: 2rem; }
.section-title { font-size: 1.6rem; margin-bottom: 1.2rem; }

/* --- Pied de page --------------------------------------------------------------- */
.site-footer { background: var(--green-deeper); color: rgba(255, 255, 255, .82); padding: 2.5rem 0 1.2rem; margin-top: 2rem; font-size: .92rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-title { font-family: var(--font-display); color: #fff; font-size: 1.15rem; margin: 0 0 .6rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 1.6rem; padding-top: 1rem; font-size: .82rem; }

/* --- Pages simples (installation, erreurs) ------------------------------------------ */
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.box { width: 100%; max-width: 30rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.box h1 { font-size: 1.7rem; }
.stack { display: grid; gap: 1rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .share, .comments, .related, .cta-box { display: none; } }
