/* =========================================================
   FWP — Annuaire Photographes + Séries (CSS propre)
   - Responsive
   - Hero full-bleed à gauche (desktop)
   - Image hero entière (pas de crop)
   ========================================================= */

/* ===============
   DIRECTORY GRID
   =============== */
.fwp-directory{
 /* max-width: 1200px;*/
  margin: 0 auto;
  padding: 24px 16px;
}

.fwp-initials{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin: 0 0 18px;
}

.fwp-chip{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border:1px solid rgba(0,0,0,.15);
  border-radius:0px;
  text-decoration:none;
  font-size:14px;
}

.fwp-chip.is-active{
  border-color: rgba(0,0,0,.45);
  font-weight:600;
}

.fwp-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1024px){ .fwp-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px){ .fwp-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px){ .fwp-grid{ grid-template-columns: 1fr; } }

/* Liste des photographes : N&B par défaut, couleur au survol */
.fwp-grid .fwp-card__media .fwp-portrait{
  filter: grayscale(100%);
  transition: filter .35s ease, transform .35s ease;
  transform: scale(1.01);
}

.fwp-grid .fwp-card:hover .fwp-card__media .fwp-portrait{
  filter: grayscale(0%);
}


.fwp-card{ text-align:center; }
.fwp-card__media{ display:block; }
.fwp-card__title{ margin: 10px 0 0; font-size: 16px; line-height:1.2; }
.fwp-card__title a{ text-decoration:none; }

.fwp-portrait{
  width:240px;
  height:240px;
  object-fit:cover;
  max-width:100%;
  border-radius: 0px;
}

.fwp-portrait--placeholder{
  width:240px;
  height:240px;
  border-radius:0px;
  background: rgba(0,0,0,.08);
  margin:0 auto;
}

.fwp-loader{ text-align:center; padding: 14px 0; opacity:.7; }
.fwp-empty{ opacity:.75; }


.fwp-card__last-name {
  text-transform: uppercase;
  font-weight: 600
}

.fwp-region-filter{
  margin: 0 0 18px;
}

.fwp-region-filter select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  display: inline-flex;
  align-items: center;
  min-width: 220px;
  max-width: 100%;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 0;
  background-color: #fff;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23000' height='14' viewBox='0 0 20 20' width='14' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-size: 14px;

  /*padding: 10px 44px 10px 12px; /* + d'espace à droite */
  /* flèche plus grosse */
  /*background-position: right 12px center;*/
}

.fwp-region-filter.is-active select{
  border-color: rgba(0,0,0,.45);
  font-weight: 600;
}

/* ===============
   SINGLE (base)
   =============== */
.fwp-single{
  /*max-width: 1200px;*/
  margin: 0 auto;
  padding: 24px 16px;
}
.fwp-single,
.fwp-container{
  max-width: min(1600px, 92vw);
}

/* texte bio */
.fwp-bio{
    text-align: justify;
}


/* ===============
   SINGLE PHOTOGRAPHER — HERO
   =============== */

/* IMPORTANT :
   On cible la page CPT uniquement (évite d'impacter le site).
   .single-fwp_photographer est la classe body WordPress pour ce CPT.
*/
/* ===============
   SINGLE PHOTOGRAPHER — HERO
   =============== */

.single-fwp_photographer .fwp-hero{
  display:grid;
  grid-template-columns: 65% 35%;
  gap:24px;
  align-items:start;
}

/* Desktop */
@media (min-width: 901px){
  .single-fwp_photographer .site-content,
  .single-fwp_photographer #content,
  .single-fwp_photographer .content-area,
  .single-fwp_photographer .container,
  .single-fwp_photographer .vc_row,
  .single-fwp_photographer .wpb_wrapper,
  .single-fwp_photographer .fwp-single,
  .single-fwp_photographer .fwp-hero{
    overflow: visible !important;
  }

  .single-fwp_photographer .fwp-hero__image{
    width:100%;
    max-width:100%;
    margin-left:-40px;
  }
}

.single-fwp_photographer .fwp-profile__portrait .fwp-portrait{
  width:300px;
  height:300px;
  max-width:100%;
}

/* Mobile */
@media (max-width: 900px){
  .single-fwp_photographer .fwp-hero{
    grid-template-columns:1fr;
  }

  .single-fwp_photographer .fwp-hero__image{
    width:100%;
    max-width:100%;
    margin-left:0;
  }

  .single-fwp_photographer .fwp-hero__content{
    width:100%;
  }
}

@media (max-width: 900px){
  .single-fwp_photographer .fwp-hero{
    gap:16px;
  }
}


/* HERO contenu */
.fwp-name{ margin: 0 0 14px; }
.fwp-name__last{ font-size: 40px; font-weight: 700; letter-spacing: .5px; }
.fwp-name__first{ font-size: 32px; font-weight: 400; opacity: .9; }

/* ===============
   SINGLE PHOTOGRAPHER — PROFIL
   =============== */
.fwp-profile{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  margin-top: 26px;
  align-items:start;
}
@media (max-width: 900px){ .fwp-profile{ grid-template-columns: 1fr; } }

.fwp-info{ margin-bottom: 12px; }
.fwp-section-title{ margin: 0px 0 16px; font-size: 30px; }

.fwp-series-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 1024px){ .fwp-series-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .fwp-series-grid{ grid-template-columns: 1fr; } }

.fwp-series-card__img{
  width:100%;
  /*height:232px;*/
  object-fit:cover;
  border-radius: 0px;
}
.fwp-series-card__img--placeholder{
  background: rgba(0,0,0,.08);
  width:100%;
  height:232px;
  border-radius:0px;
}
.fwp-series-card__title{ margin: 10px 0 6px; font-size: 21px; }

.fwp-series-card__summary{
	opacity:.9;
	text-align: justify;
}

.fwp-profile{
  display:grid;
  grid-template-columns: 47% 53%;
  gap:32px;
}

.fwp-profile__main{
  display:grid;
  grid-template-columns:300px 1fr;
  gap:24px;
  align-items:start;
}

.fwp-profile__awards{
  background:#fff;
  position: sticky;
  padding-left: 24px; /* espace avec la ligne */
}

.fwp-profile__awards::before{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%; /* longueur de la ligne */
  width: 1px;
  background: rgba(0,0,0,0.15);
}


@media (max-width: 900px){
  .fwp-profile__awards::before{
    display: none;
  }

  .fwp-profile__awards{
    padding-left: 0;
  }
}

.fwp-profile__awards__content{
  line-height:1.6;
}

@media (max-width: 900px){
  .fwp-profile{
    grid-template-columns:1fr;
  }

  .fwp-profile__main{
    grid-template-columns:1fr;
  }
}

.fwp-awards{
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Ligne simple (titre / texte) */
.fwp-awards__item--text{
  font-weight:500;
}

/* Ligne avec puce */
.fwp-awards__item--bullet{
  position:relative;
  padding-left:18px;
  line-height:15px;
}

/* Puce élégante */
.fwp-awards__item--bullet::before{
  content:"";
  position:absolute;
  left:0;
  top:6px;
  width:6px;
  height:6px;
  border-radius:50%;
  background:currentColor;
  opacity:.7;
}


.fwp-hero
{ margin-bottom: 60px; }

.fwp-profile
{ margin-bottom: 60px; }

.fwp-profile__portrait
{ margin-top: 5px; }

.fwp-series-card__summary {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

.fwp-series-card__summary p {
  margin: 0 0 10px;
}

.fwp-series-card__summary p:last-child {
  margin-bottom: 0;
}
/* ===============
   SINGLE SERIES
   =============== */

.fwp-single.fwp-single--series{
  max-width: 1320px !important;
  margin: 0 auto;
  padding: 24px 20px;
}

.fwp-series{ 
  margin-top: 25px; 
}

.fwp-series-header{ 
  margin-bottom: 40px; 
}

.fwp-series-title{ 
  margin: 0 0 8px; 
  font-size: 34px; 
}

.fwp-series-author {
    opacity: .85;
    font-size: 18px;
}

.fwp-series .fwp-section-title { 
  font-size: 30px; 
}

.fwp-series-intro__cols{
  column-count: 2;
  column-gap: 60px;
  line-height: 1.7;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

@media (max-width: 900px){
  .fwp-series-intro__cols{ 
    column-count: 1; 
  }
}

/* Galerie séries */
.fwp-series-gallery{
  margin-top: 28px;
}

.fwp-series-gallery__grid{
  position: relative;
}

.fwp-series-gallery__sizer,
.fwp-series-gallery__item{
  width: calc((100% - 36px) / 3);
}

.fwp-series-gallery__item{
  margin-bottom: 18px;
}

/* tablette */
@media (max-width: 900px){
  .fwp-series-gallery__sizer,
  .fwp-series-gallery__item{
    width: calc((100% - 18px) / 2);
  }
}

/* mobile */
@media (max-width: 560px){
  .fwp-series-gallery__sizer,
  .fwp-series-gallery__item{
    width: 100%;
  }
}
.fwp-series-gallery__item a{
  display: block;
  text-decoration: none;
}
.fwp-series-gallery__img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.fwp-series-meta {
  margin-top: 6px;
  margin-bottom: 30px;
}

.fwp-series-temporality,
.fwp-series-location {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

/* petit style éditorial */
.fwp-series-temporality {
  font-style: italic;
}

.fwp-series-summary {
  margin: 15px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

/* ===============================
   LIGHTBOX
   =============================== */
.fwp-lightbox-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.fwp-lightbox-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

.fwp-lightbox-img{
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.fwp-lightbox-close,
.fwp-lightbox-prev,
.fwp-lightbox-next{
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}

.fwp-lightbox-close{
  top: 20px;
  right: 30px;
  font-size: 50px;
}

.fwp-lightbox-prev{
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.fwp-lightbox-next{
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

/* =========================================================
   FWP mini-grid (bootstrap-like, sans dépendance)
   ========================================================= */
.fwp-container{ max-width:1200px; margin:0 auto; padding:24px 16px; }

.fwp-row{ display:flex; flex-wrap:wrap; margin-left:-12px; margin-right:-12px; }
.fwp-row > [class*="fwp-col-"]{ padding-left:12px; padding-right:12px; box-sizing:border-box; }

.fwp-col-12{ flex:0 0 100%; max-width:100%; }
.fwp-col-6{ flex:0 0 50%; max-width:50%; }
.fwp-col-4{ flex:0 0 33.3333%; max-width:33.3333%; }
.fwp-col-8{ flex:0 0 66.6666%; max-width:66.6666%; }

@media (max-width: 900px){
  .fwp-col-6, .fwp-col-4, .fwp-col-8{ flex:0 0 100%; max-width:100%; }
}


/* Full-bleed gauche sur desktop, image entière */
@media (min-width: 901px){
.single-fwp_photographer .fwp-hero-left{
  margin-left: 0;
  width: 100%;
  max-width: 100%;
}
  /* évite le clipping par le thème */
  .single-fwp_photographer #content,
  .single-fwp_photographer .site-content,
  .single-fwp_photographer .content-area,
  .single-fwp_photographer .container,
  .single-fwp_photographer .vc_row,
  .single-fwp_photographer .wpb_wrapper{
    overflow: visible !important;
  }
}

.single-fwp_photographer .fwp-hero-left{
  padding: clamp(12px, 1.4vw, 20px);
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
}

.single-fwp_photographer .fwp-hero-left img{
  width:100% !important;
  height:auto !important;
  object-fit: contain !important;
  display:block;
  max-height: clamp(420px, 62vh, 720px) !important;
}
