/* jeanchri.com — reproduction fidèle du thème Photobook
   Palette extraite du site original :
   - texte/logo principal : #4a0063
   - liens : rgba(74,0,99,.6) — éléments secondaires rgba(74,0,99,.8)
   - survol / accent : #5500e8
   - overlay légendes galerie : rgba(85,0,175,.3)
   - footer : rgba(39,48,57,.8) et barre rgba(39,48,57,.5) */

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

:root {
  --violet: #4a0063;
  --violet-lien: rgba(74, 0, 99, .6);
  --violet-second: rgba(74, 0, 99, .8);
  --accent: #5500e8;
  --overlay: rgba(85, 0, 175, .3);
  --footer-bg: rgba(39, 48, 57, .8);
  --footer-bar: rgba(39, 48, 57, .5);
  /* thème sombre (2026-09-05, choix de l'utilisateur) */
  --sombre: #273039;
  --sombre-fonce: #1e262e;
  --texte-clair: rgba(255, 255, 255, .88);
  --texte-clair-2: rgba(255, 255, 255, .65);
}

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

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--texte-clair);
  letter-spacing: .06em;
  /* Wallpaper d'origine (WordPress custom-background) */
  background-color: #0a0a0a;
  background-image: url('../images/creation.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a { color: var(--violet-lien); text-decoration: none; }
a:hover { color: var(--accent); }

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

/* ===== En-tête ===== */
/* verre dépoli : translucide + flou, le wallpaper se devine sans gêner la lecture */
.site-header {
  background: rgba(30, 38, 46, .75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  height: 118px;
  padding: 30px 11px 30px 30px;
  position: relative;
  z-index: 100;
}

/* Sur l'accueil, voile léger : le wallpaper reste visible, le titre blanc reste lisible */
body.accueil .site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 118px;
  padding: 30px 11px 30px 30px;
  background: rgba(30, 38, 46, .4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

body.accueil .site-title { font-weight: 400; }

body.accueil .galerie { margin-top: 0; }

.site-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.site-title a { color: #fff; }
.site-title a:hover { color: var(--accent); }

.site-description {
  font-size: 13px;
  font-weight: 500;
  color: var(--texte-clair-2);
  margin-top: 2px;
}

/* ===== Menu (burger) ===== */
.dt-menu-trigger {
  position: fixed;
  top: 20px; right: 20px;
  width: 48px; height: 48px;
  background: #fff;
  border: 1px solid rgba(39, 48, 57, .35);
  cursor: pointer;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dt-menu-trigger span {
  display: block;
  width: 22px;
  height: 3px;
  background: #273039;
  transition: transform .25s, opacity .25s;
}

.dt-menu-trigger:hover { border-color: var(--accent); }
.dt-menu-trigger:hover span { background: var(--accent); }

body.menu-ouvert .dt-menu-trigger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-ouvert .dt-menu-trigger span:nth-child(2) { opacity: 0; }
body.menu-ouvert .dt-menu-trigger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.dt-main-menu {
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 32, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s;
}

body.menu-ouvert .dt-main-menu { opacity: 1; visibility: visible; }

.dt-main-menu ul { list-style: none; text-align: center; }

.dt-main-menu li { padding: 14px 0; }

.dt-main-menu li a {
  font-size: 26px;
  font-weight: 500;
  color: var(--texte-clair);
}

.dt-main-menu li a:hover { color: var(--accent); }

/* ===== Galerie accueil ===== */
/* Grille de tuiles carrées, 3 colonnes, bord à bord (comme le plugin WordPress) */
.galerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

body.accueil .galerie { margin-top: 0; }

.galerie figure {
  position: relative;
  margin: 0;
}

.galerie a { display: block; }

.galerie img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.galerie figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  background: var(--overlay);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transition: opacity .3s;
}

.galerie figure:hover figcaption,
.galerie a:focus-visible figcaption,
.galerie figure:focus-within figcaption {
  opacity: 1;
}

@media (hover: none) {
  .galerie figcaption { opacity: 1; }
}

/* ===== Pages internes ===== */
/* La bande sous l'entête est transparente : elle laisse voir le wallpaper fixe du body, comme l'original */
.bandeau-page {
  height: 40px;
}

#dt_breadcrumbs {
  background: rgba(30, 38, 46, .65);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 20px 0 20px 160px;
  font-size: 14px;
  font-weight: 500;
}

#dt_breadcrumbs li {
  display: inline-block;
  padding: 0 2px;
  color: var(--texte-clair);
  list-style: none;
}

#dt_breadcrumbs a { color: var(--texte-clair-2); }
#dt_breadcrumbs a:hover { color: #fff; }

.zone-contenu {
  padding: 90px 20px 110px;
}

.carte-contenu {
  max-width: 750px;
  margin: 0 auto;
  background: rgba(30, 38, 46, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: 45px 48px 50px;
}

.entry-title {
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--accent);
  margin-bottom: 40px;
}

.carte-contenu p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--texte-clair);
  margin-bottom: 22px;
}

.carte-contenu p:last-child { margin-bottom: 0; }

.carte-contenu a { color: var(--texte-clair-2); }
.carte-contenu a:hover { color: #fff; }

.carte-contenu p:last-child { margin-bottom: 0; }

/* Citation (pullquote) — page Musique */
.wp-block-pullquote {
  border-left: 4px solid rgba(255, 255, 255, .25);
  border-bottom: 3px solid var(--accent);
  padding: 30px 10px 34px;
  margin: 40px 0 44px;
}

.wp-block-pullquote blockquote { text-align: center; }

.wp-block-pullquote p {
  font-size: 20px;
  color: #fff;
  margin-bottom: 18px;
}

.wp-block-pullquote cite {
  font-size: 13px;
  font-style: normal;
  text-transform: uppercase;
  color: var(--texte-clair-2);
}

/* Vidéo 16/9 */
.wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 34px 0;
}

.wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.message-vide {
  font-size: 15px;
  color: var(--texte-clair-2);
}

/* ===== Pied de page ===== */
.dt-footer {
  background: var(--footer-bg);
}

.dt-footer-social {
  /* 25 + 38 (icônes) + 25 = 88px : icônes centrées verticalement */
  padding: 25px 0;
}

.dt-social-icons {
  list-style: none;
  text-align: center;
}

.dt-social-icons li {
  display: inline-block;
  margin: 0 16px;
}

.dt-social-icons a {
  display: inline-flex;
  width: 38px; height: 38px;
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: border-color .3s, color .3s;
}

.dt-social-icons a:hover {
  border-color: var(--accent);
  color: #fff;
}

.dt-social-icons svg {
  width: 17px; height: 17px;
  fill: currentColor;
}

.dt-footer-bar {
  padding: 26px 20px 24px;
  background: var(--footer-bar);
  color: rgba(255, 255, 255, .9);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: .03em;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .galerie { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .galerie { grid-template-columns: 1fr; }
  /* background-attachment: fixed est mal géré sur iOS */
  body { background-attachment: scroll; }
  .site-title { font-size: 21px; }
  .site-header { padding-left: 16px; height: 96px; }
  body.accueil .site-header { height: 96px; padding-top: 20px; }
  body.accueil .galerie { margin-top: 0; }
  #dt_breadcrumbs { padding-left: 16px; }
  .zone-contenu { padding: 50px 14px 70px; }
  .carte-contenu { padding: 32px 24px 40px; }
  .entry-title { font-size: 27px; }
}