/* ═══════════════════════════════════════════════════════════
   BYSAR — pages.css
   Styles communs aux pages intérieures :
   Page-hero · Ateliers · Vidéo · Portfolio · Lightbox
   Prestations · Biographie · Contact (infos + formulaire)
   ═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   PAGE HERO (en-tête de toutes les pages intérieures)
───────────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--dark-mid);
}
.page-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.page-hero-title {
  font-family: var(--font-display);
  font-weight: 400;           /* Instrument Serif n'a qu'un weight : 400 */
  font-style: italic;
  font-size: clamp(3rem, 8vw, 7.5rem);
  color: var(--pure-white);
  line-height: .92;
  letter-spacing: -.01em;
}
.page-hero-meta {
  font-family: var(--font-body);
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
  line-height: 1.8;
  text-align: right;
}

/* ─────────────────────────────────────────
   ATELIERS (ateliers.html)
───────────────────────────────────────── */
.section-ateliers { padding: clamp(4rem, 8vw, 7rem) 0; }

.ateliers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--dark-mid);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.atelier-card {
  background: var(--black);
  display: flex;
  flex-direction: column;
  transition: background var(--t);
}
.atelier-card:hover { background: var(--dark); }

.atelier-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.atelier-img .ph { position: absolute; inset: 0; min-height: unset; }
.atelier-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.atelier-card:hover .atelier-img img { transform: scale(1.04); }

.atelier-body {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.atelier-tag {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
  border: 1px solid var(--dark-mid);
  padding: .25rem .65rem;
  display: inline-block;
  margin-bottom: 1rem;
  align-self: flex-start;
}
.atelier-body h3 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  color: var(--off-white);
  margin-bottom: .7rem;
}
.atelier-body > p {
  font-size: .87rem;
  color: var(--grey-light);
  flex: 1;
  line-height: 1.75;
}
.atelier-details {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-top: 1.25rem;
}
.atelier-details li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .8rem;
  color: var(--grey);
}
.atelier-details i { color: var(--grey-light); width: 14px; text-align: center; }

@media (max-width: 680px) { .ateliers-grid { grid-template-columns: 1fr; } }

/* ─────────────────────────────────────────
   VIDÉO (ateliers.html)
───────────────────────────────────────── */
.section-video { background: var(--dark); overflow: hidden; }
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}
.video-wrap video,
.video-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border: none;
}
.video-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--dark);
  border: 1px dashed var(--dark-mid);
  color: var(--grey);
  text-align: center;
}
.video-ph i    { font-size: 3rem; opacity: .35; }
.video-ph p    { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; letter-spacing: .06em; }
.video-ph span { font-size: .68rem; color: var(--mid); letter-spacing: .08em; }

/* ─────────────────────────────────────────
   PORTFOLIO (portfolio.html)
───────────────────────────────────────── */
.section-portfolio { padding: clamp(4rem, 8vw, 7rem) 0; }

/* Filtres */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.filter-btn {
  background: none;
  border: 1px solid var(--dark-mid);
  color: var(--grey);
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .45rem 1.1rem;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
  cursor: pointer;
}
.filter-btn:hover  { border-color: var(--grey-light); color: var(--grey-light); }
.filter-btn.active { background: var(--off-white); border-color: var(--off-white); color: var(--black); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 0;
  background: var(--black);
  width: 100%;
  box-sizing: border-box;
}

.pf-item {
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: zoom-in;
  background: var(--dark);
  outline: 3px solid var(--black);   /* ← séparation noire uniforme */
  outline-offset: -1px;              /* ← évite que l'outline déborde */
}

.pf-wide { 
  grid-column: span 2; 
  aspect-ratio: 2/1;
}
.pf-tall { 
  grid-row: span 2;      
  aspect-ratio: 1/2;
}

.pf-thumb { width: 100%; height: 100%; position: relative; }
.pf-thumb .ph { position: absolute; inset: 0; min-height: unset; }
.pf-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease-out);
}
.pf-item:hover .pf-thumb img,
.pf-item:focus-within .pf-thumb img { transform: scale(1.05); }

.pf-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .6rem;
  opacity: 0;
  transition: background var(--t), opacity var(--t);
  color: var(--pure-white);
  font-size: 1.4rem;
}
.pf-item:hover .pf-overlay,
.pf-item:focus-within .pf-overlay {
  background: rgba(8,8,8,.5);
  opacity: 1;
}
.pf-overlay .t-label { font-size: .6rem; }
.pf-item.is-hidden   { display: none; }

@media (max-width: 860px) {
  .portfolio-grid { --cols: 2; }
  .pf-wide { grid-column: span 1; }
  .pf-tall { grid-row: span 1; }
}
@media (max-width: 500px) {
  .portfolio-grid { --cols: 1; --gap: 3px; }
}

/* ─────────────────────────────────────────
   LIGHTBOX (portfolio.html)
───────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4,4,4,.97);
  z-index: var(--z-lightbox);
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t), visibility var(--t);
}
#lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; }

.lb-content {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-content img { max-width: 100%; max-height: 85vh; object-fit: contain; display: block; }
.lb-ph { width: 560px; max-width: 88vw; height: 380px; max-height: 65vh; min-height: unset; }

.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--pure-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast);
  cursor: pointer;
}
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover  { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.lb-close { top: 1.5rem; right: 1.5rem; width: 44px; height: 44px; font-size: 1rem; }
.lb-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }

/* ─────────────────────────────────────────
   PRESTATIONS (prestations.html)
───────────────────────────────────────── */
.section-prestations { padding: clamp(4rem, 8vw, 7rem) 0; }

.prestations-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--dark-mid);
}
.prest-item {
  display: grid;
  grid-template-columns: 64px 1fr 1fr;
  align-items: stretch;
  background: var(--black);
  transition: background var(--t);
  position: relative;
}
.prest-item:hover { background: var(--dark); }

.prest-num {
  display: flex;
  align-items: flex-start;
  padding: clamp(2rem, 4vw, 3rem) .5rem clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3rem;
  color: var(--dark-mid);
  line-height: 1;
  user-select: none;
  transition: color var(--t);
}
.prest-item:hover .prest-num { color: var(--mid); }

.prest-content {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.prest-content h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); color: var(--off-white); margin-bottom: .9rem; }
.prest-content p  { font-size: .87rem; color: var(--grey-light); max-width: 460px; line-height: 1.75; margin-bottom: .5rem; }
.prest-address    { font-size: .78rem; color: var(--grey); display: flex; align-items: flex-start; gap: .5rem; line-height: 1.5; margin-top: .5rem; }

.prest-img { overflow: hidden; position: relative; }
/* min-height uniquement sur desktop pour éviter l'écrasement */
@media (min-width: 861px) {
  .prest-img { min-height: 280px; }
}
.prest-img .ph { position: absolute; inset: 0; min-height: unset; }
.prest-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.prest-item:hover .prest-img img { transform: scale(1.04); }

@media (max-width: 860px) {
  .prest-item { grid-template-columns: 1fr; }
  .prest-num  { padding: 1.5rem clamp(1.5rem,3vw,2rem) 0; font-size: 2.4rem; }
  .prest-img  { aspect-ratio: 16/7; min-height: unset; }
}

/* ─────────────────────────────────────────
   BIOGRAPHIE (biographie.html)
───────────────────────────────────────── */
.section-bio {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--black-soft);
  border-top:    1px solid var(--dark-mid);
  border-bottom: 1px solid var(--dark-mid);
}
.bio-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.bio-portrait {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.bio-portrait-img { aspect-ratio: 3/4; overflow: hidden; position: relative; }
.bio-portrait-img .ph { position: absolute; inset: 0; min-height: unset; }
.bio-portrait-img img { width: 100%; height: 100%; object-fit: cover; }

.bio-socials { display: flex; gap: .75rem; }
.bio-socials a {
  width: 42px; height: 42px;
  border: 1px solid var(--dark-mid);
  color: var(--grey);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.bio-socials a:hover { border-color: var(--off-white); color: var(--off-white); }

.bio-text   { padding-top: .25rem; }
.bio-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--pure-white);
  margin-bottom: .4rem;
  font-weight: 300;
  line-height: 1;
}
.bio-location {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
  display: flex; align-items: center; gap: .45rem;
  margin-bottom: 2rem;
}
.bio-content p { font-size: clamp(.87rem, 1.2vw, 1rem); color: var(--grey-light); margin-bottom: 1.25rem; line-height: 1.85; }
.bio-content p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .bio-layout { grid-template-columns: 1fr; }
  .bio-portrait { position: static; flex-direction: row; align-items: flex-start; }
  .bio-portrait-img { width: 160px; flex-shrink: 0; }
}
@media (max-width: 500px) {
  .bio-portrait { flex-direction: column; }
  .bio-portrait-img { width: 100%; max-width: 280px; }
}

/* ─────────────────────────────────────────
   CONTACT (contact.html)
───────────────────────────────────────── */
.section-contact { padding: clamp(4rem, 8vw, 7rem) 0; }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

/* Infos */
.contact-info dl  { display: flex; flex-direction: column; gap: 1.6rem; margin-bottom: 2rem; }
.contact-info dt  { font-size: .68rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.contact-info dd  { font-size: .9rem; color: var(--off-white); padding-left: 1.2rem; }
.contact-info dd a { color: var(--off-white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.18); transition: text-decoration-color var(--t-fast); }
.contact-info dd a:hover { text-decoration-color: rgba(255,255,255,.7); }

.map-ph {
  width: 100%; height: 220px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  background: var(--dark); border: 1px dashed var(--dark-mid);
  color: var(--mid); font-family: var(--font-body); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  overflow: hidden;
}
.map-ph i    { font-size: 1.8rem; opacity: .35; }
.map-ph span { color: var(--grey); font-size: .65rem; }
.map-ph iframe { width: 100%; height: 100%; border: none; }

/* Formulaire */
.contact-form-wrap { width: 100%; }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; position: relative; }
.form-group label { font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-light); }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark);
  border: 1px solid var(--dark-mid);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: .9rem;
  padding: .85rem 1rem;
  width: 100%;
  outline: none;
  appearance: none;
  border-radius: 0;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group select option { background: var(--dark); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus   { border-color: var(--grey-light); background: var(--dark-mid); }
.form-group input.has-err,
.form-group select.has-err,
.form-group textarea.has-err { border-color: #d44; }
.form-group textarea { resize: vertical; min-height: 160px; }

.form-char  { font-size: .68rem; color: var(--mid); text-align: right; }
.form-error { font-size: .68rem; color: #e06060; min-height: 1em; }

/* Checkbox RGPD */
.form-check { display: flex; align-items: flex-start; gap: .75rem; cursor: pointer; }
.check-box {
  flex-shrink: 0; width: 18px; height: 18px;
  border: 1px solid var(--dark-mid); background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast);
  margin-top: 2px;
}
.form-check input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.form-check input:checked + .check-box { background: var(--off-white); border-color: var(--off-white); }
.form-check input:checked + .check-box::after {
  content: ''; display: block;
  width: 10px; height: 7px;
  border-left: 2px solid var(--black); border-bottom: 2px solid var(--black);
  transform: rotate(-45deg) translate(1px, -1px);
}
.form-check input:focus-visible + .check-box { outline: 1px solid var(--grey-light); outline-offset: 2px; }
.check-label { font-size: .78rem; color: var(--grey); line-height: 1.55; }

/* Feedback */
.form-feedback { padding: 1rem 1.2rem; font-size: .85rem; display: none; border-radius: 0; }
.form-feedback.show    { display: block; }
.form-feedback.success { background: rgba(80,200,100,.07); border: 1px solid rgba(80,200,100,.25); color: #7ee88e; }
.form-feedback.error   { background: rgba(220,80,80,.07);  border: 1px solid rgba(220,80,80,.25);  color: #e08080; }

@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

/* ─────────────────────────────────────────
   Vidéo portrait dans la biographie
───────────────────────────────────────── */
.bio-video {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 320px;          /* même largeur que le portrait */
  aspect-ratio: 9 / 16;      /* format portrait type Reels/TikTok */
  background: var(--black, #0a0a0a);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.bio-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ── Carte Google Maps ── */
.contact-map {
  margin-top: 2rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--dark-mid);
  filter: grayscale(0.4) contrast(1.05);
  transition: filter var(--t);
}
.contact-map:hover {
  filter: grayscale(0) contrast(1);
}
.contact-map iframe {
  width: 100%;
  height: 350px;
  display: block;
}

