/* ============================================================
   CYCLOPE DES MERS — Design system sombre
   ============================================================ */

/* ---- Variables ------------------------------------------- */
:root {
  --bg:           #0c0a09;   /* stone-950 */
  --bg-card:      rgba(255,255,255,.03);
  --bg-card-2:    rgba(255,255,255,.05);
  --border:       rgba(255,255,255,.10);
  --border-hover: rgba(255,255,255,.22);
  --text:         #f5f5f4;   /* stone-100 */
  --muted:        #a8a29e;   /* stone-400 */
  --subtle:       #78716c;   /* stone-500 */
  --accent:       #67e8f9;   /* cyan-300 */
  --accent-dim:   rgba(103,232,249,.75);
  --accent-bg:    rgba(103,232,249,.10);
  --accent-ring:  rgba(103,232,249,.20);
  --radius-sm:    .75rem;
  --radius:       1.5rem;
  --radius-lg:    2rem;
  --max-w:        80rem;     /* 7xl */
  --px:           1.5rem;
  --header-h:     4rem;
  --transition:   200ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   SHARED UTILS
   ============================================================ */

.section-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem var(--px);
}

.label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 500;
  padding: .625rem 1.5rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid transparent;
}
.btn--primary:hover {
  background: #e7e5e4;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.05);
  border-color: var(--border-hover);
}

.btn--search {
  background: transparent;
  color: #d6d3d1;
  border: 1px solid var(--border);
  font-size: .8125rem;
  padding: .5rem 1.25rem;
}
.btn--search:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,.05);
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(12,10,9,.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  height: 100%;
}

.site-header__logo {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-header__logo-name {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--accent-dim);
}
.site-header__logo-sub {
  font-size: .8rem;
  color: var(--muted);
}

.main-nav {
  flex: 1;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.main-nav a {
  font-size: .875rem;
  color: #d6d3d1;
  transition: color var(--transition);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
}

.lang-switch a {
  font-size: .8125rem;
  color: var(--muted);
  transition: color var(--transition);
}
.lang-switch a:hover {
  color: var(--text);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: .25rem;
  margin-left: auto;
  border-radius: .5rem;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .btn--search { display: none; }
  .lang-switch { display: none; }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100dvh - var(--header-h));
    background: rgba(12, 10, 9, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.5rem var(--px) 2rem;
    z-index: 200;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
  }
  .main-nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
  }
  .main-nav a {
    font-size: 1.375rem;
    font-weight: 500;
  }

  /* Hamburger → × */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}

/* ============================================================
   HERO
   ============================================================ */

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 78vh, 900px);
  display: flex;
  align-items: flex-end;
}

@media (max-width: 1024px) {
  .home-hero { min-height: clamp(380px, 65vh, 700px); }
}
@media (max-width: 640px) {
  .home-hero {
    min-height: clamp(340px, 55vh, 560px);
    align-items: center;
  }
}

/* Image de fond via <picture>/<img> — couvre toute la section */
.home-hero picture {
  position: absolute;
  inset: 0;
  display: block;
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12,10,9,.40) 0%,
    rgba(12,10,9,.45) 50%,
    var(--bg) 100%
  );
}

.home-hero__inner {
  position: relative;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 5rem var(--px);
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: .5rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--accent-ring);
  background: var(--accent-bg);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #a5f3fc;
}

.home-hero__title {
  max-width: 52rem;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text);
}

.home-hero__baseline {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.7;
  color: rgba(245,245,244,.85);
}

.home-hero__intro {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: rgba(245,245,244,.55);
}

.home-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* ============================================================
   HOME — WHAT (bande "Sur ce site")
   ============================================================ */

.home-what {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.125rem var(--px);
}

.home-what__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.home-what__label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.home-what__items {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}

.home-what__items li {
  font-size: 0.85rem;
  color: var(--muted);
}

.home-what__items li:not(:last-child)::after {
  content: "·";
  margin: 0 0.6rem;
  color: var(--subtle);
}

/* ============================================================
   EXPLORER — 3 cards
   ============================================================ */

.home-explorer__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.home-explorer__head h2 {
  margin-top: .75rem;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -.02em;
}

.home-explorer__desc {
  display: none;
  max-width: 28rem;
  font-size: .875rem;
  line-height: 1.75;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .home-explorer__desc { display: block; }
}

/* Entry cards grid */
.entry-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .entry-grid { grid-template-columns: repeat(3, 1fr); }
}

.entry-card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card-2);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  transition: border-color var(--transition);
}
.entry-card:hover {
  border-color: var(--border-hover);
}

.entry-card__inner {
  display: block;
}

.entry-card__img-wrap {
  position: relative;
  height: 20rem;
  overflow: hidden;
}

.entry-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}
.entry-card:hover .entry-card__img {
  transform: scale(1.05);
}

.entry-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(12,10,9,.10) 60%, transparent 100%);
}

.entry-card__body {
  padding: 1.5rem;
}
.entry-card__body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}
.entry-card__body p {
  margin-top: .5rem;
  font-size: .875rem;
  line-height: 1.6;
  color: rgba(245,245,244,.85);
}

/* ============================================================
   JOURNAL
   ============================================================ */

.home-journal__layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .home-journal__layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }
}

.home-journal__sticky {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.home-journal__sticky h2 {
  margin-top: .75rem;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -.02em;
}

.home-journal__lead {
  margin-top: 1.25rem;
  font-size: .9375rem;
  line-height: 1.75;
  color: var(--muted);
}

.home-journal__feed {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Journal article card */
.journal-card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color var(--transition);
}
.journal-card:hover {
  border-color: var(--border-hover);
}

.journal-card__link {
  display: grid;
  gap: 1.25rem;
  padding: 1rem;
}

@media (min-width: 640px) {
  .journal-card__link {
    grid-template-columns: 240px 1fr;
  }
}

.journal-card__img {
  width: 100%;
  height: 13rem;
  object-fit: cover;
  border-radius: calc(var(--radius) - .25rem);
}

.journal-card__img--placeholder {
  background: rgba(255,255,255,.06);
  border-radius: calc(var(--radius) - .25rem);
}

@media (min-width: 640px) {
  .journal-card__img,
  .journal-card__img--placeholder {
    height: 100%;
    min-height: 12rem;
  }
}

.journal-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .5rem 0;
}

.journal-card__meta {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(103,232,249,.70);
}

.journal-card__body h3 {
  margin-top: .625rem;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.journal-card__body p {
  margin-top: .75rem;
  font-size: .875rem;
  line-height: 1.75;
  color: var(--muted);
}

.journal-card__read {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  color: #a5f3fc;
  transition: color var(--transition);
}
.journal-card:hover .journal-card__read {
  color: var(--text);
}

/* ============================================================
   MINUTE BIO
   ============================================================ */

.home-bio__inner {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg,
    rgba(103,232,249,.10) 0%,
    rgba(255,255,255,.02) 50%,
    rgba(52,211,153,.10) 100%);
  padding: 3rem;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .home-bio__inner {
    grid-template-columns: 1fr .9fr;
    padding: 4rem;
  }
}

.home-bio__text h2 {
  margin-top: .75rem;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -.02em;
}

.home-bio__text > p {
  margin-top: 1.25rem;
  font-size: .9375rem;
  line-height: 1.8;
  color: #d6d3d1;
}

.home-bio__pills {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  margin-top: 1.5rem;
}

.home-bio__pills span {
  padding: .4rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  font-size: .8125rem;
  color: var(--text);
}

.home-bio__card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(28,25,23,.70);
  padding: 1.25rem;
}

.home-bio__card-img-wrap {
  overflow: hidden;
  border-radius: calc(var(--radius) - .25rem);
}

.home-bio__card-img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
}

.home-bio__card-img--placeholder {
  background: rgba(255,255,255,.06);
  height: 20rem;
}

.home-bio__card-label {
  margin-top: 1.25rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(103,232,249,.70);
}

.home-bio__card h3 {
  margin-top: .625rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.home-bio__card p {
  margin-top: .625rem;
  font-size: .875rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ============================================================
   À PROPOS
   ============================================================ */

.home-about__inner {
  display: grid;
  gap: 2rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .home-about__inner {
    grid-template-columns: 320px 1fr;
    padding: 2rem;
  }
}

.home-about__img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - .5rem);
}

@media (min-width: 1024px) {
  .home-about__img {
    height: 100%;
    min-height: 18rem;
  }
}

.home-about__text {
  padding: .5rem 0;
}

.home-about__text h2 {
  margin-top: .75rem;
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -.02em;
}

.home-about__text p {
  margin-top: 1.25rem;
  font-size: .9375rem;
  line-height: 1.8;
  color: var(--muted);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem var(--px);
  font-size: .875rem;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer__name {
  font-weight: 500;
  color: var(--text);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer__nav a {
  color: var(--muted);
  transition: color var(--transition);
}
.site-footer__nav a:hover {
  color: var(--text);
}

/* ============================================================
   CONTENT PAGES — Sections list, single article
   ============================================================ */

.main {
  min-height: calc(100vh - var(--header-h) - 8rem);
}

/* Section header (list pages) */
.section-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem var(--px) 2rem;
}

.section-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
}

.section-description,
.section-intro {
  margin-top: 1rem;
  max-width: 48rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ============================================================
   SECTION HERO (pages de zone : Mer Rouge, Méditerranée…)
   ============================================================ */

.section-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(280px, 45vh, 520px);
  display: flex;
  align-items: flex-end;
}

.section-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12,10,9,.20) 0%,
    rgba(12,10,9,.65) 55%,
    rgba(12,10,9,.90) 80%,
    var(--bg) 100%
  );
}

.section-hero__inner {
  position: relative;
  z-index: 1;
  padding-bottom: 3rem;
}

.section-hero__inner h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -.02em;
  margin-top: .5rem;
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
}

.section-hero__inner .label {
  margin-bottom: .25rem;
}

.section-hero__desc {
  margin-top: .75rem;
  font-size: 1rem;
  color: rgba(245,245,244,.90);
  max-width: 42rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

/* Gallery sections grid */
.gallery-sections {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px) 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.gallery-section-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--transition), transform var(--transition);
}

.gallery-section-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.gallery-section-card__image {
  height: 11rem;
  overflow: hidden;
  background: var(--bg-card-2);
}

.gallery-section-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
  display: block;
}

.gallery-section-card:hover .gallery-section-card__image img {
  transform: scale(1.05);
}

.gallery-section-card__body {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.gallery-section-card__body h2 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.gallery-section-card__body p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Page list */
.page-list {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px) 4rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .page-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .page-list { grid-template-columns: repeat(3, 1fr); }
}

.page-list__item {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color var(--transition);
}
.page-list__item:hover {
  border-color: var(--border-hover);
}

.page-list__cover {
  display: block;
  overflow: hidden;
  height: 12rem;
}
.page-list__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.page-list__item:hover .page-list__cover img {
  transform: scale(1.04);
}

.page-list__body {
  padding: 1.25rem;
}

.page-list__body h2 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}
.page-list__body h2 a {
  color: var(--text);
  transition: color var(--transition);
}
.page-list__body h2 a:hover {
  color: var(--accent);
}

.page-list__body p {
  margin-top: .5rem;
  font-size: .875rem;
  line-height: 1.65;
  color: var(--muted);
}

.page-list__body time {
  display: inline-block;
  margin-top: .75rem;
  font-size: .75rem;
  color: var(--subtle);
  letter-spacing: .05em;
}

/* Single article */
.article {
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem var(--px) 6rem;
}

.article__header {
  margin-bottom: 2.5rem;
}

.article__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--text);
}

.article__description {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
}

.article__date {
  display: inline-block;
  margin-top: 1rem;
  font-size: .8125rem;
  color: var(--subtle);
  letter-spacing: .05em;
}

.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.tag {
  padding: .25rem .75rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card-2);
  font-size: .75rem;
  color: var(--muted);
  transition: border-color var(--transition), color var(--transition);
}
.tag:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.article__cover {
  margin-bottom: 2.5rem;
  overflow: hidden;
  border-radius: var(--radius);
}
.article__cover img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
}

/* Prose */
.article__content h1,
.article__content h2,
.article__content h3,
.article__content h4 {
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.3;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: .75rem;
}
.article__content h2 { font-size: 1.5rem; }
.article__content h3 { font-size: 1.25rem; }

.article__content p {
  margin-bottom: 1.25rem;
  color: #d6d3d1;
  line-height: 1.8;
}

.article__content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(103,232,249,.4);
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.article__content a:hover {
  color: #a5f3fc;
}

.article__content ul,
.article__content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: #d6d3d1;
}
.article__content li {
  margin-bottom: .4rem;
  line-height: 1.75;
}

.article__content blockquote {
  border-left: 2px solid var(--accent-ring);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
}

.article__content code {
  font-family: monospace;
  font-size: .875em;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  padding: .1em .35em;
  border-radius: .25rem;
  color: var(--accent-dim);
}

.article__content pre {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}
.article__content pre code {
  background: none;
  border: none;
  padding: 0;
}

.article__content img {
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

.article__content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.article__content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: .9rem;
}
.article__content th,
.article__content td {
  padding: .6rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}
.article__content th {
  background: var(--bg-card-2);
  color: var(--text);
  font-weight: 600;
}
.article__content td {
  color: #d6d3d1;
}

/* ============================================================
   GALLERY — grille + lightbox
   ============================================================ */

.gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

.gallery-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
}

.gallery-header__desc {
  margin-top: .5rem;
  color: var(--muted);
  font-size: .95rem;
}

.gallery-header__count {
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--subtle);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Grille photos */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 3px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
  background: var(--bg-card);
  display: block;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
  display: block;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
  filter: brightness(1.12);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

body.lb-active { overflow: hidden; }

.lb {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(8, 7, 6, .97);
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: opacity .2s ease;
}

.lb--open {
  display: flex;
  opacity: 1;
}

/* Barre du haut */
.lb__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .875rem 1.25rem;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.lb__counter {
  font-size: .8rem;
  letter-spacing: .06em;
  color: rgba(255,255,255,.4);
  font-variant-numeric: tabular-nums;
}

.lb__top-actions {
  display: flex;
  gap: .25rem;
  align-items: center;
}

.lb__btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.55);
  cursor: pointer;
  padding: .5rem;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .15s;
  text-decoration: none;
}

.lb__btn:hover,
.lb__btn:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.1);
}

.lb__btn[aria-pressed="true"] {
  color: var(--accent);
}

/* Corps : nav gauche + stage + info + nav droite */
.lb__body {
  flex: 1;
  display: grid;
  grid-template-columns: 3.5rem 1fr 260px 3.5rem;
  min-height: 0;
  align-items: stretch;
}

.lb__nav {
  background: none;
  border: none;
  color: rgba(255,255,255,.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color .15s, background .15s;
  flex-shrink: 0;
}

.lb__nav:hover,
.lb__nav:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.05);
}

.lb__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
}

.lb__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity .2s ease;
}

/* Mode zoom : image à taille réelle, stage scrollable */
.lb__stage--zoomed {
  overflow: auto;
  align-items: flex-start;
  justify-content: flex-start;
  cursor: move;
}

.lb__stage--zoomed .lb__img {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
}

/* Panneau info */
.lb__info {
  padding: 2rem 1.5rem;
  border-left: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5rem;
  overflow-y: auto;
}

.lb__title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

.lb__desc {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
}

.lb__loc {
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: .5rem;
}

/* Responsive — mobile */
@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
  }

  .lb__body {
    grid-template-columns: 2.5rem 1fr 2.5rem;
    grid-template-rows: 1fr auto;
  }

  .lb__info {
    grid-column: 1 / -1;
    grid-row: 2;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.06);
    padding: .875rem 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .25rem .75rem;
    justify-content: flex-start;
    align-items: baseline;
  }

  .lb__title { font-size: .9rem; }
  .lb__desc  { font-size: .78rem; }
  .lb__loc   { font-size: .7rem; margin-top: 0; }
}

