/* ============================================================
   instants ordinaires — feuille de style du prototype Hugo
   Design inspiré du thème actuel (Signify Pro / WEN Themes)
   ============================================================ */

:root {
  --accent: #ffd75e;          /* jaune — liens, survols, accents */
  --texte: #f2f2f2;           /* blanc — texte courant */
  --texte-doux: #9aa1a9;
  --fond: #0a0b0d;            /* fond noir du site */
  --fond-doux: #16181c;       /* fonds légèrement éclaircis (cartes, citations) */
  --bordure: #2a2d33;
  --sombre: #000000;          /* barres haut et bas */
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--texte);
  background: var(--fond);
  line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.conteneur { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---- Barre du haut (date / région) ---- */
.topbar { background: var(--sombre); color: #c9ced4; font-size: 0.8rem; border-bottom: 1px solid var(--bordure); }
.topbar-inner { display: flex; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }

/* ---- En-tête ---- */
.entete { border-bottom: 1px solid var(--bordure); background: var(--fond); }
.entete-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px;
  padding-top: 22px; padding-bottom: 22px;
}
.titre-site {
  font-family: var(--serif);
  font-size: 2rem; font-weight: 700; color: var(--texte);
  letter-spacing: 0.5px;
}
.titre-site:hover { text-decoration: none; color: var(--accent); }
.slogan { margin: 2px 0 0; color: var(--texte-doux); font-size: 0.9rem; }
/* Menus : blancs, jaunes au survol */
.menu-principal { display: flex; flex-wrap: wrap; gap: 4px; }
.menu-principal a {
  padding: 8px 14px; color: #ffffff; font-size: 0.95rem;
  border-radius: 4px; transition: color 0.15s ease;
}
.menu-principal a:hover { color: var(--accent); text-decoration: none; }
.menu-principal a.actif { color: var(--accent); font-weight: 600; }

/* ---- Accueil : image plein écran + citation ---- */
.hero { position: relative; }
.hero img { width: 100%; max-height: 82vh; object-fit: cover; }
.hero-citation {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 45%);
}
.hero-citation blockquote {
  margin: 0; max-width: 720px; text-align: center; color: #fff;
  font-family: var(--serif);
}
.hero-citation p { font-size: 1.35rem; line-height: 1.5; margin: 0 0 8px; text-shadow: 0 1px 6px rgba(0,0,0,0.6); white-space: pre-line; }
.hero-citation cite { font-style: normal; font-size: 0.95rem; opacity: 0.9; }
/* Fondu lors du changement de citation */
.hero-citation blockquote { transition: opacity 0.7s ease; }
.hero-citation blockquote.citation-fondu { opacity: 0; }

/* ---- Pages et articles ---- */
.article { padding: 36px 20px 56px; max-width: 860px; }
.article-entete h1, .titre-section {
  font-family: var(--serif); font-size: 2rem; margin: 0 0 6px;
}
.titre-section { margin: 32px 0 18px; }
.meta { color: var(--texte-doux); font-size: 0.85rem; margin-top: 0; }
.article blockquote {
  margin: 24px 0; padding: 14px 22px;
  border-left: 4px solid var(--accent); background: var(--fond-doux);
  font-family: var(--serif); font-style: italic; color: #cfd3d8;
}
.lien-original { margin-top: 32px; font-size: 0.9rem; }

/* ---- Galeries photo ---- */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 28px 0;
}
.galerie-item {
  position: relative; overflow: hidden; border-radius: 6px;
  background: var(--fond-doux); display: block;
}
.galerie-item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 0.35s ease;
}
.galerie-item:hover img { transform: scale(1.04); }
.galerie-item .legende {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 10px 8px; font-size: 0.8rem; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  opacity: 0; transition: opacity 0.25s ease;
}
.galerie-item:hover .legende { opacity: 1; }

/* Les galeries s'étendent au-delà de la colonne de texte sur grand écran */
.article .galerie { margin-left: calc(50% - 50vw + 20px); margin-right: calc(50% - 50vw + 20px); padding: 0 24px; }
@media (max-width: 900px) {
  .article .galerie { margin-left: 0; margin-right: 0; padding: 0; }
}

/* ---- Visionneuse (lightbox) ----
   Clavier : ← → naviguer · Espace plein écran · Échap fermer */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 12, 15, 0.94);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 30px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 80vh; width: auto; border-radius: 4px; }

/* Barre d'info : légende à gauche, EXIF à droite, sur la même ligne */
.lightbox-info {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; flex-wrap: wrap;
  width: min(92vw, 1100px); margin-top: 14px;
}
#lightbox-legende {
  color: #ffd75e;                      /* jaune — légende */
  font-size: 1rem; margin: 0; text-align: left;
}
#lightbox-exif {
  color: #7fd4e8;                      /* cyan clair — EXIF (modifiable ici) */
  font-size: 0.82rem; margin: 0; text-align: right;
  font-family: "SF Mono", Menlo, monospace; letter-spacing: 0.4px;
  white-space: nowrap;
}
#lightbox-fermer {
  position: absolute; top: 14px; right: 22px;
  background: none; border: none; color: #fff;
  font-size: 2.4rem; cursor: pointer; line-height: 1; z-index: 2;
}
/* Flèches précédent / suivant (cliquables, en plus du clavier) */
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08); border: none; color: #fff;
  font-size: 2.6rem; line-height: 1; cursor: pointer;
  width: 54px; height: 84px; border-radius: 8px;
  transition: background 0.2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.18); }
#lightbox-prec { left: 16px; }
#lightbox-suiv { right: 16px; }
/* En plein écran (barre espace), l'image occupe tout l'espace */
.lightbox:fullscreen img { max-width: 98vw; max-height: 88vh; }

/* ---- Blog : grille de cartes ---- */
.grille-blog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin: 24px 0 56px;
}
.carte {
  border: 1px solid var(--bordure); border-radius: 8px; overflow: hidden;
  background: var(--fond-doux); display: flex; flex-direction: column;
  transition: border-color 0.25s ease;
}
.carte:hover { border-color: var(--accent); }
.carte-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.carte-corps { padding: 16px 18px 20px; }
.carte-categories {
  text-transform: uppercase; letter-spacing: 1px;
  font-size: 0.72rem; color: var(--accent); margin: 0 0 4px;
}
.carte h2 { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 4px; line-height: 1.35; }
.carte h2 a { color: var(--texte); }
.carte h2 a:hover { color: var(--accent); text-decoration: none; }
.carte p { font-size: 0.92rem; color: #c2c7cd; }
.lire-suite { font-size: 0.88rem; font-weight: 600; }

/* ---- Pied de page ---- */
.pied { background: var(--sombre); color: #aab1b8; margin-top: 40px; border-top: 1px solid var(--bordure); }
.reseaux a:hover, .copyright a:hover { color: var(--accent); }
.pied .conteneur { padding-top: 28px; padding-bottom: 28px; text-align: center; }
.reseaux { list-style: none; margin: 0 0 10px; padding: 0; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.reseaux a { color: #d6dade; font-size: 0.9rem; }
.copyright { font-size: 0.8rem; margin: 0; }
.copyright a { color: #d6dade; }

/* ---- CV (page About) : plus petit et discret ---- */
.cv { font-size: 0.85rem; color: var(--texte-doux); line-height: 1.6; }

/* ---- Vidéo responsive (page YouTube) ---- */
.video-cadre { position: relative; padding-bottom: 56.25%; height: 0; margin: 24px 0; }
.video-cadre iframe, .video-cadre video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 6px;
}
