/*
Theme Name: Gautier Boudat
Theme URI: https://gautierboudat.com
Author: Gautier Boudat
Description: Thème WordPress du portfolio de Gautier Boudat : photographie (concert, art, sport, reportage), vidéo, conseil en image, projet en cours, rédaction et contact. Le design du site statique d'origine est repris à l'identique ; tous les contenus sont modifiables depuis l'administration WordPress.
Version: 1.6.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gautier-boudat
*/

/* Le design principal est dans assets/css/main.css (repris du site d'origine).
   Ci-dessous : uniquement les ajustements propres à WordPress. */

body.admin-bar header.fixed { top: 32px; }
@media (max-width: 782px) { body.admin-bar header.fixed { top: 46px; } }

header nav ul { list-style: none; margin: 0; padding: 0; }

/* Texte libre des pages (éditeur WordPress) */
.gb-prose { max-width: 42rem; margin-inline: auto; padding-inline: 1.25rem; font-size: 1.125rem; line-height: 1.7; }
.gb-prose > * + * { margin-top: 1.25em; }
.gb-prose h2 { font-size: 1.875rem; margin-top: 2em; }
.gb-prose h3 { font-size: 1.5rem; margin-top: 1.6em; }
.gb-prose a { text-decoration: underline; text-underline-offset: 3px; }
.gb-prose ul { list-style: disc; padding-left: 1.4em; }
.gb-prose ol { list-style: decimal; padding-left: 1.4em; }
.gb-prose img { height: auto; }

.screen-reader-text { clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; position: absolute; white-space: nowrap; }

/* ==========================================================================
   Affichage « photos d'abord » (v1.4)
   ========================================================================== */
:root { --gb-gap: 6px; }

/* En-tête discret des galeries : titre + intro sur une ligne, pour laisser la place aux photos. */
.gb-slim-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1.5rem; padding: 6rem var(--gb-gap) 1rem; margin-inline: 8px; }
.gb-slim-head h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.1; }
.gb-slim-head .lead { font-size: .95rem; line-height: 1.5; color: var(--muted-foreground); max-width: 40rem; }

/* Galerie quasi pleine largeur, en colonnes (mosaïque). */
.gb-gallery { columns: 2; column-gap: var(--gb-gap); padding-inline: 8px; }
@media (min-width: 768px)  { .gb-gallery { columns: 3; } }
@media (min-width: 1280px) { .gb-gallery { columns: 4; } }
@media (min-width: 1280px) { .gb-gallery.gb-gallery--many { columns: 5; } }
.gb-gallery .gb-shot { display: block; width: 100%; margin: 0 0 var(--gb-gap); padding: 0; overflow: hidden; break-inside: avoid; cursor: zoom-in; background: var(--muted); }
.gb-gallery .gb-shot img { display: block; width: 100%; height: auto; transition: opacity .5s ease, transform .9s ease; }
.gb-gallery .gb-shot:hover img { opacity: .92; transform: scale(1.015); }

/* 1 seule photo : elle occupe la hauteur de l'écran, centrée. */
.gb-gallery--1 { columns: 1 !important; }
.gb-gallery--1 .gb-shot { max-width: calc((100vh - 170px) * var(--r, 1.5)); margin-inline: auto; }
/* 2 photos : côte à côte dès la tablette. */
.gb-gallery--2 { columns: 1; }
@media (min-width: 640px) { .gb-gallery--2 { columns: 2 !important; } }

/* Image large sous le titre d'une page (ex. Conseil en image). */
.gb-bleed { display: block; width: 100%; max-height: 88vh; object-fit: cover; }

/* Visionneuse plein écran avec navigation. */
.static-lightbox { padding: 0 !important; background: rgba(12, 10, 8, .97) !important; }
.static-lightbox img { max-width: 100vw !important; max-height: 94vh !important; width: auto; height: auto; object-fit: contain; }
.static-lightbox figcaption { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0 !important; font-size: .85rem; opacity: .8; pointer-events: none; }
.static-lightbox button { font-size: 2rem; line-height: 1; padding: .4rem .9rem; cursor: pointer; color: inherit; }
.static-lightbox .gb-nav { top: 50%; transform: translateY(-50%); right: auto; left: auto; font-size: 2.6rem; padding: .6rem 1rem; opacity: .75; }
.static-lightbox .gb-nav:hover { opacity: 1; }
.static-lightbox .gb-prev { left: 8px; }
.static-lightbox .gb-next { right: 8px; }
.static-lightbox .gb-count { position: absolute; top: 24px; left: 20px; font-size: .8rem; letter-spacing: .15em; opacity: .7; }

/* ==========================================================================
   Page « Projet en cours » (v1.5)
   ========================================================================== */
.gb-projet-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1.5rem; max-width: 64rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px) { .gb-projet-facts { grid-template-columns: repeat(4, 1fr); gap: 0 2.5rem; } }
.gb-projet-fact { border-top: 1px solid var(--border); padding: 1.25rem 0 1.5rem; }
.gb-projet-fact .font-display { margin-top: .5rem; font-size: 1.5rem; line-height: 1.2; }

.gb-projet-dossier { max-width: 64rem; margin: 6rem auto 0; padding-inline: 1.25rem; text-align: center; }
.gb-projet-h2 { margin-top: .75rem; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; }
.gb-projet-lead { margin: 1rem auto 0; max-width: 36rem; color: var(--muted-foreground); line-height: 1.6; }

.gb-projet-cover { display: block; margin: 2.5rem auto 0; max-width: 46rem; overflow: hidden; border: 1px solid var(--border); }
.gb-projet-cover img { display: block; width: 100%; height: auto; transition: opacity .5s ease, transform .9s ease; }
.gb-projet-cover:hover img { opacity: .92; transform: scale(1.015); }

.gb-projet-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.75rem; }
.gb-btn { display: inline-block; padding: .8rem 1.6rem; border: 1px solid var(--foreground); background: var(--foreground); color: var(--background); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; transition: opacity .3s ease; }
.gb-btn:hover { opacity: .75; }
.gb-btn--ghost { background: transparent; color: var(--foreground); }

/* Lecteur PDF intégré : seulement sur les écrans larges (les mobiles ouvrent le PDF dans leur lecteur). */
.gb-projet-viewer { display: none; }
@media (min-width: 1024px) { .gb-projet-viewer { display: block; width: 100%; height: 85vh; margin-top: 3rem; border: 1px solid var(--border); } }

/* ==========================================================================
   Page « Projet en cours » (v1.6) : langues FR / EN et partenaires
   ========================================================================== */
.gb-projet-wrap { position: relative; }

/* Une seule langue visible à la fois (data-lang posé par le serveur, corrigé par le navigateur). */
.gb-projet-wrap[data-lang="fr"] [data-gb-lang="en"],
.gb-projet-wrap[data-lang="en"] [data-gb-lang="fr"] { display: none; }

.gb-lang { position: absolute; top: 5.25rem; right: 1.25rem; z-index: 5; display: flex; gap: .15rem; font-size: .75rem; letter-spacing: .18em; }
.gb-lang a { padding: .35rem .6rem; opacity: .5; border-bottom: 1px solid transparent; transition: opacity .3s ease; }
.gb-lang a:hover { opacity: 1; }
.gb-lang a[aria-current="true"] { opacity: 1; border-bottom-color: var(--foreground); }

.gb-partners { max-width: 64rem; margin: 5rem auto 0; padding-inline: 1.25rem; text-align: center; }
.gb-partners-main { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.gb-partners-note { margin: 0; }
.gb-partners-row { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem 3.5rem; }

.gb-partner { display: inline-flex; align-items: center; justify-content: center; height: 3rem; max-width: 11rem; transition: opacity .3s ease, filter .3s ease; }
.gb-partner img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.gb-partner--main { height: 4.5rem; max-width: 18rem; }
a.gb-partner:hover { opacity: 1 !important; }

/* Apparence des logos (Personnaliser > Logos des partenaires). */
.gb-partners--mono .gb-partner img { filter: brightness(0); }
.gb-partners--mono .gb-partner { opacity: .8; }
.gb-partners--gray .gb-partner img { filter: grayscale(1); mix-blend-mode: multiply; }
.gb-partners--gray a.gb-partner:hover img { filter: none; }
.gb-partners--gray .gb-partner { opacity: .85; }

@media (max-width: 767px) { .gb-lang { top: 4.6rem; } .gb-partner--main { height: 3.6rem; } }
