/* ==========================================================================
   La Rose des Sables — Stylesheet
   Palette : Sable dore / Teal profond / Terracotta
   Fonts  : DM Serif Display (titres) / DM Sans (corps)
   ========================================================================== */

/* --- Base Reset & Typography --- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #3a3633;
  background-color: #faf9f7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.25;
  color: #1f1d1a;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background-color: #c8956c;
  color: #fff;
}

/* --- Layout Utilities --- */

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: 780px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.sr-only-focusable:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: .75rem 1.5rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  background: #2a7a72;
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
}

/* --- Header / Navigation --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #ece8e1;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo__img {
  height: 36px;
  width: auto;
  border-radius: 4px;
}

.site-logo__text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  color: #1f1d1a;
}

.site-logo:hover .site-logo__text {
  color: #2a7a72;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #5c5650;
  text-transform: uppercase;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #2a7a72;
  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: #2a7a72;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #5c5650;
}

.mobile-nav {
  display: none;
  padding: 0.75rem 0 1rem;
}

.mobile-nav a {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.9375rem;
  color: #5c5650;
  border-bottom: 1px solid #ece8e1;
}

.mobile-nav a:hover {
  color: #2a7a72;
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav.is-open { display: block; }
}

/* --- Hero Section --- */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(20, 18, 15, 0.82) 0%,
    rgba(20, 18, 15, 0.45) 40%,
    rgba(20, 18, 15, 0.08) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: 4rem 0 3.5rem;
  width: 100%;
}

.hero__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c8956c;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  color: #fff;
  max-width: 680px;
  margin-bottom: 1rem;
}

.hero__desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f1d1a;
  background: #c8956c;
  border-radius: 4px;
  transition: background 0.25s ease, transform 0.2s ease;
}

.hero__cta:hover {
  background: #b8844f;
  transform: translateY(-1px);
  color: #fff;
}

.hero__cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.hero__cta:hover svg {
  transform: translateX(3px);
}

/* --- Section Shared --- */

.section {
  padding: 5rem 0;
}

.section--alt {
  background: #f3f0eb;
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section__subtitle {
  font-size: 1.0625rem;
  color: #7a746d;
  max-width: 560px;
  margin: 0 auto;
}

/* --- Editorial Intro (below hero) --- */

.editorial-intro {
  padding: 4.5rem 0;
  border-bottom: 1px solid #ece8e1;
}

.editorial-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.editorial-intro__text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.editorial-intro__text p {
  color: #5c5650;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.editorial-intro__text p:last-child {
  margin-bottom: 0;
}

.editorial-intro__img {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.editorial-intro__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .editorial-intro__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .editorial-intro__img { order: -1; }
}

/* --- Article Card Grid --- */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 960px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ece8e1;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.card__img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card__img img {
  transform: scale(1.04);
}

.card__body {
  padding: 1.5rem;
}

.card__category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a7a72;
  margin-bottom: 0.5rem;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.card__title a {
  color: #1f1d1a;
}

.card__title a:hover {
  color: #2a7a72;
}

.card__excerpt {
  font-size: 0.9375rem;
  color: #7a746d;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: #a09a93;
}

.card__read-more {
  font-weight: 600;
  color: #2a7a72;
}

.card__read-more:hover {
  color: #c8956c;
}

/* --- Categories Showcase --- */

.categories-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .categories-showcase { grid-template-columns: repeat(2, 1fr); }
}

.cat-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.cat-card__img {
  position: absolute;
  inset: 0;
}

.cat-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cat-card:hover .cat-card__img img {
  transform: scale(1.06);
}

.cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,18,15,0.7) 0%, rgba(20,18,15,0.15) 60%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.cat-card__name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.375rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.cat-card__count {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}

/* --- Destinations Highlight (full-width image + text overlay) --- */

.highlight-banner {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.highlight-banner__bg {
  position: absolute;
  inset: 0;
}

.highlight-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.highlight-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(20, 18, 15, 0.78) 0%,
    rgba(20, 18, 15, 0.35) 60%,
    transparent 100%
  );
  z-index: 2;
}

.highlight-banner__content {
  position: relative;
  z-index: 3;
  max-width: 480px;
  padding: 3rem 0;
}

.highlight-banner__content h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
}

.highlight-banner__content p {
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.btn--outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.25s ease;
}

.btn--outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

/* --- Single Article --- */

.article-header {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.article-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, #faf9f7);
  z-index: 4;
  pointer-events: none;
}

.article-header__bg {
  position: absolute;
  inset: 0;
}

.article-header__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.article-header__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 18, 15, 0.82) 0%,
    rgba(20, 18, 15, 0.5) 35%,
    rgba(20, 18, 15, 0.15) 65%,
    rgba(20, 18, 15, 0.05) 100%
  );
  z-index: 2;
}

.article-header__content {
  position: relative;
  z-index: 5;
  padding: 4rem 0 5.5rem;
  width: 100%;
}

.article-header__category {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c8956c;
  border: 1px solid rgba(200, 149, 108, 0.45);
  padding: 0.3rem 0.85rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.article-header__title {
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  color: #fff;
  max-width: 720px;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.article-header__meta {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

.article-header__sep {
  margin: 0 0.6rem;
  opacity: 0.4;
}

/* --- Article Wrap (body + footer) --- */

.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2rem;
}

/* --- Article Body Prose --- */

.article-body {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #3a3633;
}

/* Drop cap on first paragraph */
.article-body.drop-cap > p:first-child::first-letter {
  float: left;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 3.75rem;
  line-height: 0.8;
  padding: 0.1em 0.12em 0 0;
  color: #2a7a72;
  font-weight: 400;
}

.article-body p {
  margin-bottom: 1.35rem;
}

/* H2 — editorial heading with subtle left accent */
.article-body h2 {
  font-size: 1.65rem;
  margin: 3rem 0 1.15rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #ece8e1;
  position: relative;
}

.article-body h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 48px;
  height: 2px;
  background: #c8956c;
}

.article-body h3 {
  font-size: 1.3rem;
  margin: 2.25rem 0 0.85rem;
  color: #2a7a72;
}

.article-body strong {
  color: #1f1d1a;
  font-weight: 600;
}

.article-body a {
  color: #2a7a72;
  text-decoration: underline;
  text-decoration-color: rgba(42, 122, 114, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.article-body a:hover {
  color: #c8956c;
  text-decoration-color: #c8956c;
}

/* Lists with custom markers */
.article-body ul {
  list-style: none;
  margin: 1.25rem 0 1.5rem 0;
  padding: 0;
}

.article-body ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8956c;
}

.article-body ol {
  margin: 1.25rem 0 1.5rem 1.5rem;
  color: #3a3633;
}

.article-body ol li {
  margin-bottom: 0.65rem;
  padding-left: 0.35rem;
}

.article-body ol li::marker {
  color: #c8956c;
  font-weight: 600;
}

/* Blockquote — editorial pull-quote style */
.article-body blockquote {
  border-left: 3px solid #c8956c;
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
  background: #f7f5f1;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #5c5650;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body img {
  border-radius: 6px;
  margin: 2rem 0;
}

/* Horizontal rule in article */
.article-body hr {
  border: none;
  height: 1px;
  background: #ece8e1;
  margin: 2.5rem auto;
  max-width: 120px;
}

/* --- Article Footer (tags section) --- */

.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #ece8e1;
}

.article-tags {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-tags__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a09a93;
  padding-top: 0.4rem;
  white-space: nowrap;
}

.article-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-tags__list a {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #5c5650;
  background: #f3f0eb;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.article-tags__list a:hover {
  background: #2a7a72;
  color: #fff;
  border-color: #2a7a72;
}

/* --- Related Articles --- */

.related-articles {
  background: #f3f0eb;
  padding: 4rem 0 5rem;
}

.related-articles__title {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
}

.related-articles__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: #c8956c;
  margin: 0.75rem auto 0;
}

/* --- Breadcrumb --- */

.breadcrumb {
  font-size: 0.8125rem;
  color: #a09a93;
  margin-bottom: 0.5rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.55);
}

.breadcrumb a:hover {
  color: #c8956c;
}

.breadcrumb__sep {
  margin: 0 0.4rem;
  opacity: 0.5;
}

/* --- List / Archive Page --- */

.archive-header {
  text-align: center;
  padding: 4rem 0 3rem;
  border-bottom: 1px solid #ece8e1;
}

.archive-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.archive-header p {
  color: #7a746d;
  font-size: 1.0625rem;
}

.archive-body {
  padding: 3.5rem 0 5rem;
}

/* --- Footer --- */

.site-footer {
  background: #1f1d1a;
  color: #a09a93;
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-grid h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.125rem;
  color: #e8e4de;
  margin-bottom: 1rem;
}

.footer-grid p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: #a09a93;
}

.footer-links a:hover {
  color: #c8956c;
}

.footer-bottom {
  border-top: 1px solid #35312d;
  margin-top: 3rem;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: #6b655e;
}

/* --- Pagination --- */

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
  list-style: none;
  padding: 0;
}

.pagination li a,
.pagination li span {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  border: 1px solid #ece8e1;
  border-radius: 4px;
  color: #5c5650;
}

.pagination li.active span {
  background: #2a7a72;
  color: #fff;
  border-color: #2a7a72;
}

.pagination li a:hover {
  background: #f3f0eb;
  border-color: #c8956c;
  color: #1f1d1a;
}

/* --- Section Link --- */

.section__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #2a7a72;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: 2.5rem;
}

.section__link:hover {
  color: #c8956c;
}

.section__link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.section__link:hover svg {
  transform: translateX(3px);
}

/* --- Article Responsive --- */

@media (max-width: 768px) {
  .article-header {
    min-height: 45vh;
  }
  .article-header__content {
    padding: 2.5rem 0 4rem;
  }
  .article-header__title {
    font-size: 1.65rem;
  }
  .article-wrap {
    padding: 2.5rem 1rem 1.5rem;
  }
  .article-body.drop-cap > p:first-child::first-letter {
    font-size: 3rem;
  }
  .article-body h2 {
    font-size: 1.4rem;
    margin-top: 2.25rem;
  }
  .article-body h3 {
    font-size: 1.15rem;
  }
  .article-tags {
    flex-direction: column;
    gap: 0.5rem;
  }
  .related-articles {
    padding: 3rem 0 4rem;
  }
}

/* --- Utility --- */

.text-center { text-align: center; }
.mt-section { margin-top: 5rem; }
