/* =============================================
   STYLE.CSS — Portfolio Adrian Gelineau
   Partagé par toutes les pages
   ============================================= */

/* --- BASE --- */
body {
  font-family: 'Esteban', serif;
  font-size: 13px;
  line-height: 1.4;
  color: #111;
  background-color: #f5f4f2;
  margin: 0;
  padding: 0;
  display: flex;
  min-height: 100vh;
}
* { box-sizing: border-box; }

/* --- SIDEBAR --- */
.sidebar {
  width: 310px;
  flex-shrink: 0;
  padding: 3rem 2.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.sidebar-nom {
  margin-bottom: 2.5rem;
}
.sidebar-nom a {
  text-decoration: none;
  color: #111;
}
.nom {
  display: block;
  font-weight: 900;
  font-size: 1.9em;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}
.sous-nom {
  display: block;
  font-style: normal;
  color: #888;
  font-size: 1em;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.sidebar-nav a {
  text-decoration: none;
  color: #111;
  font-style: italic;
  transition: opacity 0.2s;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  opacity: 0.4;
}
.nav-separateur {
  display: block;
  border-top: 1px solid #ccc;
  margin: 0.6rem 0;
}
.instagram-sidebar {
  margin-top: auto;
  padding-top: 2rem;
  opacity: 0.45;
  transition: opacity 0.2s;
}
.instagram-sidebar:hover { opacity: 1; }

/* --- CONTENU --- */
.contenu {
  flex: 1;
  padding: 3rem 0 6rem 2.5rem;
  min-width: 0;
}

/* =============================================
   PATCHWORK (masonry — photos qui comblent les trous)
   --------------------------------------------
   POUR AJUSTER : change uniquement les 4 valeurs.
   Plus --air est grand, plus les photos respirent.
   ============================================= */
.patchwork {
  --colonnes:          3;        /* nombre de colonnes */
  --espace-cote:       3rem;     /* espace gauche-droite entre colonnes */
  --espace-haut-bas:   3rem;     /* espace vertical entre photos */
  --air:               88%;      /* largeur des photos (plus petit = plus d'air autour) */

  column-count: var(--colonnes);
  column-gap: var(--espace-cote);
  padding-right: 2rem;
}
.pw-item {
  display: block;
  text-decoration: none;
  width: var(--air);
  margin: 0 auto var(--espace-haut-bas);   /* centré dans sa colonne */
  break-inside: avoid;          /* évite qu'une photo soit coupée entre 2 colonnes */
}
.pw-item img { width: 100%; height: auto; display: block; transition: opacity 0.3s; }
.pw-item:hover img { opacity: 0.75; }


/* =============================================
   PATCHWORK ACCUEIL (zigzag — index.html uniquement)
   --------------------------------------------
   Colonne 1 en haut, colonne 2 descendue,
   colonne 3 remontée au niveau de la 1.
   ============================================= */
.patchwork-accueil {
  --colonnes:          3;        /* nombre de colonnes */
  --espace-cote:       2.5rem;   /* espace gauche-droite entre colonnes */
  --espace-haut-bas:   3rem;     /* espace vertical entre photos */
  --taille-photo:      85%;      /* largeur des photos dans leur colonne */
  --decalage:          4rem;     /* de combien la colonne du milieu descend */

  display: grid;
  grid-template-columns: repeat(var(--colonnes), 1fr);
  column-gap: var(--espace-cote);
  align-items: start;
  padding-right: 2rem;
}
.patchwork-accueil .pw-item {
  display: block;
  text-decoration: none;
  max-width: var(--taille-photo);
  margin: 0 auto var(--espace-haut-bas);
}
/* Zigzag : colonne du milieu descend, colonnes 1 et 3 restent en haut */
.patchwork-accueil .pw-item:nth-child(3n+2) { transform: translateY(var(--decalage)); }
.patchwork-accueil .pw-item img { width: 100%; height: auto; display: block; transition: opacity 0.3s; }
.patchwork-accueil .pw-item:hover img { opacity: 0.75; }
/* =============================================
   PAGES DE SÉRIES — bandes horizontales
   ============================================= */
.page-titre {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 3rem 0;
  padding-right: 2rem;
}

.serie {
  margin-bottom: 3rem;
}
.serie-info {
  margin-bottom: 1rem;
  padding-right: 2rem;
}
.serie-titre {
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0em;
  margin: 0 0 0rem 0;
  padding: 0;
}
.serie-credits {
  font-style: normal;
  color: #999;
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
}

/* Bande horizontale */
.galerie-bande {
  display: flex;
  flex-direction: row;
  gap: 3px;
  overflow-x: auto;
  overflow-y: hidden;
  height: 320px;             /* ← hauteur des bandes */
  padding-bottom: 6px;
  cursor: grab;
}
.galerie-bande:active { cursor: grabbing; }
.galerie-bande::-webkit-scrollbar { height: 2px; }
.galerie-bande::-webkit-scrollbar-track { background: transparent; }
.galerie-bande::-webkit-scrollbar-thumb { background: #ccc; }

.galerie-bande a {
  display: block;
  flex-shrink: 0;
  height: 100%;
  text-decoration: none;
}
.galerie-bande img {
  height: 100%;
  width: auto;
  display: block;
  transition: opacity 0.25s;
}
.galerie-bande a:hover img { opacity: 0.8; }

/* =============================================
   PAGE À PROPOS
   ============================================= */
.apropos-wrap {
  display: flex;
  gap: 3rem;
  padding-right: 2rem;
  align-items: flex-start;
}
.apropos-photo {
  width: 500px;
  flex-shrink: 0;
}
.apropos-photo img {
  width: 100%;
  display: block;
}
.apropos-texte {
  flex: 1;
  max-width: 480px;
}
.apropos-texte h2 {
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.05em;
  margin: 0 0 1.2rem 0;
}
.apropos-texte p {
  font-style: normal;
  line-height: 1.8;
  color: #333;
  margin: 0 0 1rem 0;
}
.apropos-contact {
  margin-top: 2rem;
  font-style: italic;
  color: #888;
}
.apropos-contact a {
  color: #111;
}

/* --- LIENS --- */
a { color: #111; }

/* =============================================
   HAMBURGER + RESPONSIVE MOBILE
   ============================================= */

/* Desktop : barre mobile cachée */
.sidebar-mobile-header { display: none; }
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 15px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #111;
  transition: opacity 0.2s;
}
.hamburger:hover span { opacity: 0.4; }

@media (max-width: 700px) {

  body { flex-direction: column; }

  /* Sidebar = barre fixe en haut */
  .sidebar {
    width: 100%;
    height: auto;
    position: fixed;
    top: 0; left: 0;
    z-index: 100;
    padding: 0;
    background: #f5f4f2;
    border-bottom: 1px solid #ddd;
    overflow: visible;
    flex-direction: column;
  }

  /* Barre mobile : nom à gauche, hamburger à droite */
  .sidebar-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    width: 100%;
  }
  .sidebar-mobile-nom { text-decoration: none; color: #111; }
  .sidebar-mobile-nom .nom    { font-size: 0.95em; font-weight: 900; display: block; }
  .sidebar-mobile-nom .sous-nom { font-size: 0.75em; color: #888; display: block; }

  /* Hamburger visible */
  .hamburger { display: flex; }

  /* Contenu sidebar caché par défaut */
  .sidebar-inner { display: none; }
  .sidebar.menu-open .sidebar-nom { display: none; }

  /* Overlay plein écran quand ouvert */
  .sidebar.menu-open .sidebar-inner {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem 2rem;
    background: #f5f4f2;
    width: 100%;
    min-height: calc(100vh - 56px);
  }
  .sidebar.menu-open .sidebar-nom { margin-bottom: 1.5rem; }
  .sidebar.menu-open .sidebar-nav { gap: 1rem; font-size: 1.05em; }
  .sidebar.menu-open .instagram-sidebar { margin-top: 2rem; padding-top: 0; }
  /* Contenu décalé sous la barre fixe */
  .contenu { padding-top: 5rem; padding-left: 1rem; }

  .galerie-bande { height: 200px; }
  /* Patchwork sur mobile : 1 colonne (mets 2 si tu préfères) */
  .patchwork,
  .patchwork-accueil {
    --colonnes: 1;
    --espace-haut-bas: 1.5rem;
    padding-right: 1rem;
  }
  .apropos-wrap { flex-direction: column; }
  .apropos-photo { width: 100%; max-width: 280px; }
}

/* ==============================================
   POLICES — changer manuellement
   ================================================
   ACTIVE : Esteban (serif élégant, éditorial)
   <head> : <link href="https://fonts.googleapis.com/css2?family=Esteban&display=swap" rel="stylesheet">
   CSS    : font-family: 'Esteban', serif;
   -----------------------------------------------
   Fragment Mono (monospace techno)
   <head> : <link href="https://fonts.googleapis.com/css2?family=Fragment+Mono&display=swap" rel="stylesheet">
   CSS    : font-family: 'Fragment Mono', monospace;
   -----------------------------------------------
   Space Mono (underground, minimal)
   <head> : <link href="https://fonts.googleapis.com/css2?family=Space+Mono:ital@0;1&display=swap" rel="stylesheet">
   CSS    : font-family: 'Space Mono', monospace;
   -----------------------------------------------
   DM Mono (monospace propre, photo/éditorial)
   <head> : <link href="https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;1,300&display=swap" rel="stylesheet">
   CSS    : font-family: 'DM Mono', monospace;
   -----------------------------------------------
   Playfair Display (élégant, mystique)
   <head> : <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap" rel="stylesheet">
   CSS    : font-family: 'Playfair Display', serif;
   -----------------------------------------------
   Gelasio (serif expressif)
   <head> : <link href="https://fonts.googleapis.com/css2?family=Gelasio:ital,wght@0,400;1,400&display=swap" rel="stylesheet">
   CSS    : font-family: 'Gelasio', serif;
   -----------------------------------------------
   ============================================== */
