/* ==========================================================================
   STYLE.CSS — CLEANED / STRUCTURÉ (DV)
   But: travailler “par blocs” (numérotés), facilement maintenable.
   Notes:
   - Chaque section majeure est déjà numérotée (1..21).
   - Nettoyage effectué:
     • suppression des blocs "DV FIX / DV FINAL" dupliqués (ROLE/CONTACT/MENU) en fin de fichier
     • consolidation des variables Presse (un seul :root pour éviter overrides)
     • intégration du "custom select desktop" dans la section 17 (PRESSE)
     • correction d'un commentaire cassé avant la section 20
   - Aucun comportement volontairement modifié hors conflits/doublons.
   --------------------------------------------------------------------------
   TABLE DES MATIÈRES
   01) TYPOGRAPHIES
   02) VARIABLES & BASE
   03) TYPO GLOBALE
   04) WRAP
   05) HEADER / NAV — FINAL
   06) MENU DESKTOP — Pattern B (ligne glissante)
   07) MENU MOBILE — RIDEAU
   08) PAGES — GRID / CARTES
   09) PAGINATION
   10) HOMEPAGE — mobile only : descendre le bloc texte (si .home-copy existe)
   11) SINGLE PROJET — layout figé (header + galerie)
   12) (LEGACY) CAROUSEL custom scroll-snap — conservé si utilisé ailleurs
   13) NAV — a11y : focus visible propre (sans cadre moche)
   14) SWIPER — VERSION UNIQUE (premium + 3D + label)
   15) LIGHTBOX — overlay
   16) SINGLE PROJET — DESCRIPTION + PRESSE (délicate)
   17) PRESSE — Page Presse + Single (ADN commun + filtres + custom select desktop)
   18) Ajustements compat : boutons WP (si présents ailleurs)
   19) Réduction des mouvements
   20) BIO — FINAL (photo à droite + texte qui continue dessous)
   21) CONTACT — FINAL (même "hero" que la homepage + email)
   ========================================================================== */

/*
Theme Name: David Vera
Theme URI: https://davidvera.be
Author: David Vera
Description: Thème sur mesure – scénographie & costumes
Version: 1.0
*/

html{
  background-color: #4E1600;
}

/* =========================================================
   1) TYPOGRAPHIES
========================================================= */
@font-face{
  font-family: "AmaticSC";
  src: url("assets/fonts/AmaticSC-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "AmaticSC";
  src: url("assets/fonts/AmaticSC-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   2) VARIABLES & BASE
========================================================= */
:root{
  --text: #f6f1e6;
  --max: 1100px;

  /* Presse (délicatesse / ADN) */
  --press-line: rgba(246,241,230,.18);
  --press-line-strong: rgba(246,241,230,.28);
  --press-muted: rgba(246,241,230,.78);
  --press-soft: rgba(246,241,230,.62);
  --press-field-bg: rgba(0,0,0,.10);
  --press-field-brd: rgba(246,241,230,.20);
  --press-field-brd-focus: rgba(246,241,230,.42);

  /* Presse (UI “verre sombre” — filtres desktop custom) */
  --presse-glass-bg: rgba(30, 8, 6, .38);
  --presse-glass-bg-strong: rgba(30, 8, 6, .72);
  --presse-border: rgba(255,255,255,.22);
  --presse-border-strong: rgba(120, 20, 10, .65);
  --presse-text: rgba(255,255,255,.92);
  --presse-muted: rgba(255,255,255,.65);
}

body{
  margin: 0;
  color: var(--text);
  min-height: 100vh;
  position: relative;

  background-image: url("assets/img/Fond.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

@media (max-width: 900px){
  body{ background-attachment: scroll; }
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  pointer-events: none;
  z-index: -1;
}

/* =========================================================
   3) TYPO GLOBALE
========================================================= */
h1, h2, h3{
  font-family: "AmaticSC", sans-serif;
  font-weight: 700;
  letter-spacing: .5px;
  margin: 0 0 12px;
}

p, li, a{
  font-family: inherit;
}

/* Accessibilité : texte invisible visuellement mais lisible lecteurs d’écran */
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   4) WRAP
========================================================= */
.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 20px;
}

/* =========================================================
   5) HEADER / NAV — FINAL
========================================================= */

.site-header{
  padding: 18px 0;
  position: relative;     /* FIX clics nav desktop: header toujours au-dessus */
  z-index: 9999;
}

.site-header .wrap{
  padding: 0 20px;
}

/* Header toujours centré */
.header-inner{
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10000;
}

/* Nav = menu + extras (icône Instagram) */
.nav{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 10000;
}

/* Empêcher des couches décoratives de capter la souris (si présentes) */
.site-header::before,
.site-header::after,
.site-header .header-inner::before,
.site-header .header-inner::after{
  pointer-events: none;
}

/* Si ton hero/section du haut a des overlays, on neutralise les clics (home uniquement) */
.home .hero::before,
.home .hero::after,
.home .home-hero::before,
.home .home-hero::after,
.home .wp-block-cover__background,
.home .wp-block-cover__image-background{
  pointer-events: none;
}

/* S’assurer que les liens restent bien au-dessus */
.site-header a{
  position: relative;
  z-index: 10001;
}

/* Icône Instagram (inline SVG) — align optique + hover identique “Presse” */
.nav-ig{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  margin-left: 6px;

  line-height: 1;

  color: #ffffff;

  text-decoration: none;
  opacity: .92;

  transition: transform 160ms ease, opacity 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

/* Alignement optique + Taille (mobile/tablette par défaut) */
.nav-ig__svg{
  display: block;
  width: 32px;
  height: 32px;
  transform: translateY(-1px);
}

/* Desktop */
@media (min-width: 900px){
  .nav-ig__svg{
    width: 34px;
    height: 34px;
    transform: translateY(-3px);
  }
}
@media (hover:hover){
  .nav-ig:hover{
    transform: translateX(2px);
    opacity: 1;
  }
}

.nav-ig:focus-visible{
  outline: 2px solid rgba(246,241,230,.45);
  outline-offset: 6px;
  border-radius: 10px;

  transform: translateX(2px);
  opacity: 1;
}

/* =========================
   MENU — BASE
========================= */
.menu{
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 10000;
}

.menu a{
  color: var(--text);
  text-decoration: none;
  font-family: "AmaticSC", sans-serif;
  font-weight: 700;
  font-size: 32px;
  padding: 6px 10px;
}

/* =========================================================
   6) MENU DESKTOP — Pattern B (ligne glissante)
========================================================= */
@media (min-width: 701px){

  .menu a:hover{ background: transparent; }
  .menu a::after{ content: none; }

  .menu .current-menu-item > a,
  .menu .current_page_item > a{
    text-decoration: none;
  }

  /* Rail */
  .nav .menu{
    position: relative;
    padding-bottom: 14px;
  }

  /* Ligne unique (pilotée par JS) */
  .nav .menu-ink{
    position: absolute;
    left: 0;
    bottom: 2px;
    height: 14px;
    width: 80px; /* écrasé par JS */
    opacity: .95;
    pointer-events: none;

    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 18'%3E%3Cpath d='M4 12 C 28 4, 58 16, 88 9 S 144 3, 174 11 S 205 6, 216 9' fill='none' stroke='%23f6f1e6' stroke-width='4.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    transform: translateX(0);
    transition: transform 220ms ease, width 220ms ease, opacity 160ms ease;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
  }

  .nav .menu-ink.is-hidden{ opacity: 0; }
}

/* =========================================================
   7) MENU MOBILE — RIDEAU
========================================================= */

/* Bouton menu : caché par défaut (desktop) */
.menu-toggle{ display: none; }

@media (max-width: 700px){

  .menu-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--text);
    font-family: "AmaticSC";
    font-size: 42px;
    line-height: 1;
    cursor: pointer;

    min-width: 56px;
    min-height: 56px;
    padding: 14px 18px;

    -webkit-tap-highlight-color: transparent;
  }

  .menu-toggle__icon{
    width: 28px;
    height: 18px;
    margin-left: 12px;
    position: relative;
  }

  .menu-toggle__icon::before,
  .menu-toggle__icon::after{
    content:"";
    position:absolute;
    left:0; right:0;
    height: 3px;
    background: rgba(246,241,230,.85);
    transition: .2s ease;
  }

  .menu-toggle__icon::before{ top: 3px; }
  .menu-toggle__icon::after{ top: 13px; }

  body.nav-open .menu-toggle__icon::before,
  body.nav-open .menu-toggle__icon::after{ top: 8px; }

  body.nav-open .menu-toggle__icon::before{ transform: rotate(45deg); }
  body.nav-open .menu-toggle__icon::after{ transform: rotate(-45deg); }

  .nav{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.82);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 26px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .25s ease;
    z-index: 9999;
  }

  body.nav-open .nav{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .menu{
    flex-direction: column;
    gap: 22px;
    align-items: center;  /* centre les items */
    text-align: center;
  }

  .menu li{
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .menu a{
    width: 100%;
    display: inline-block;
    text-align: center;
    font-size: clamp(44px, 9vw, 72px);
    padding: 0;

    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  .menu a:focus,
  .menu a:focus-visible,
  .menu a:active{
    outline: none !important;
    box-shadow: none !important;
  }

  .menu .current-menu-item > a{
    text-decoration: underline;
    text-underline-offset: 10px;
  }

  /* Instagram : sous les liens, même ADN + hit area confortable */
  .nav-ig{
    margin-top: 6px;
    width: 52px;
    height: 52px;
    margin-left: 0;
  }
  .nav-ig__svg{
    width: 44px;
    height: 44px;
    transform: translateY(-1px);
  }

  body.nav-open{ overflow: hidden; }
}

/* =========================================================
   8) PAGES — GRID / CARTES
========================================================= */

.page-title{
  font-size: 64px;
  margin-bottom: 18px;
}

.grid{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}

@media (max-width:1000px){
  .grid{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width:600px){
  .grid{ grid-template-columns:1fr; }
  .page-title{ font-size:52px; }
}

.card{
  display: block;
  color: var(--text);
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
  transition: transform .15s ease;
}

.card:hover{ transform: translateY(-2px); }

.card-media{
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.06);
}

.card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform: scale(1.001);
  transition: transform .6s ease, filter .6s ease;
}

.card-media::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 62%);
  opacity:.4;
}

.card-media::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at 30% 18%, rgba(255,255,255,.18), transparent 55%);
  opacity:0;
  transition: opacity .55s ease;
}

@media (hover:hover){
  .card:hover img{
    transform: scale(1.04);
    filter: saturate(1.05) contrast(1.03);
  }
  .card:hover .card-media::after{ opacity:1; }
}

.card-body{ padding: 14px; }

/* ✅ DATE / ANNÉE sur les cards (Portfolio) */
.meta{
  margin-bottom: 6px;
  opacity: .85;

  font-family: "AmaticSC", sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 1.2px;
}

/* ✅ TITRE carte — Nom du projet (Portfolio) */
.card-title{
  font-family: "AmaticSC", sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: .9px;
  margin: 0;
  text-wrap: balance;
}

/* =========================================================
   9) PAGINATION
========================================================= */
.pagination{
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.pagination a,
.pagination .current{
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "AmaticSC";
  font-size: 28px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
}

.pagination .current{
  background: rgba(255,255,255,.14);
}

/* =========================================================
   10) HOMEPAGE — mobile only : descendre le bloc texte (si .home-copy existe)
========================================================= */
@media (max-width: 900px){
  body.home .home-copy,
  body.front-page .home-copy{
    transform: translateY(14vh);
  }
}

/* =========================================================
   11) SINGLE PROJET — layout figé (header + galerie)
========================================================= */

.project-header{
  margin-bottom: 22px;
  text-align: center;
}

/* Meta (si utilisé) */
.project-header .meta{
  font-size: 14px;
  opacity: .92;
  margin-bottom: 8px;
}

/* ✅ DATE / ANNÉE — CLASSE RÉELLE: .project-date */
.project-header .project-date{
  font-family: "AmaticSC", sans-serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 1.2px;

  opacity: .85;
  display: inline-block;
}

/* Titre */
.project-header .page-title{
  margin: 0 0 8px;
  font-family: "AmaticSC", sans-serif;
  font-weight: 700;
  font-size: clamp(58px, 7.2vw, 86px);
  line-height: 1.02;
  letter-spacing: 1.2px;
}

/* Rôles (ex: Scénographie, Costumes, ...) */
.project-header .roles{
  margin: 0;
  font-family: "AmaticSC", sans-serif;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: .8px;
  line-height: 1.1;
  opacity: .9;
}

/* ✅ Anti-régression : aucun trait décoratif sous le header */
.project-header::after{
  content: none !important;
  display: none !important;
}

.project-gallery{
  margin: 48px 0 28px;
}

/* Lieu */
.project-lieu{
  margin: -10px auto 34px;
  text-align: center;
  font-family: "AmaticSC", sans-serif;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: .8px;
  opacity: .9;
}

/* ==========================================================
   21) SINGLE PROJECT — TEXTE COMPLÉMENTAIRE
   - Note d’intention / contexte
   - Discret, lisible, distinct de la presse
   ========================================================== */

.project-texte-complementaire{
  margin: 4px auto 44px;
  text-align: center;

  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.92rem;   /* ⬅️ légèrement plus petit */
  line-height: 1.65;

  opacity: .82;         /* ⬅️ un cran plus doux */
  max-width: 58ch;      /* ⬅️ un peu plus étroit */
}
/* ==========================================================
   21) SINGLE PROJECT — TEXTE COMPLÉMENTAIRE
   - Note d’intention / contexte
   - Discret, lisible, distinct de la presse
   ========================================================== */

.project-texte-complementaire{
  margin: 4px auto 44px;
  text-align: center;

  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.88rem;   /* ⬅️ réglage final */
  line-height: 1.65;

  opacity: .82;
  max-width: 58ch;
}


/* =========================================================
   12) (LEGACY) CAROUSEL custom scroll-snap — conservé si utilisé ailleurs
========================================================= */

.dv-carousel{ position: relative; }

.dv-car-viewport{
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;

  scroll-snap-type: x mandatory;
  scroll-padding: 12px;

  border-radius: 18px;
  background: rgba(0,0,0,.18);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  max-width: 100%;
}

.dv-car-track{
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dv-car-slide{
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.dv-car-slide img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.dv-car-viewport:focus-visible{
  outline: 2px solid rgba(246,241,230,.75);
  outline-offset: 6px;
}

.dv-car-btn{
  appearance: none;
  border: 0;
  background: rgba(0,0,0,.22);
  color: var(--text);
  cursor: pointer;

  font-family: "AmaticSC", sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1;

  border-radius: 14px;
  padding: 10px 14px;

  backdrop-filter: blur(4px);
  -webkit-tap-highlight-color: transparent;
}

.dv-car-btn:disabled{
  opacity: .35;
  cursor: default;
}

@media (min-width: 701px){
  .dv-car-btn.prev,
  .dv-car-btn.next{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }
  .dv-car-btn.prev{ left: 10px; }
  .dv-car-btn.next{ right: 10px; }
}

@media (max-width: 700px){
  .dv-carousel{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "viewport viewport"
      "prev next"
      "status status"
      "dots dots";
    gap: 10px;
  }

  .dv-car-viewport{ grid-area: viewport; }
  .dv-car-btn.prev{ grid-area: prev; justify-self: start; }
  .dv-car-btn.next{ grid-area: next; justify-self: end; }
  .dv-car-status{ grid-area: status; }
  .dv-car-dots{ grid-area: dots; }
}

.dv-car-status{
  margin: 10px 0 0;
  text-align: center;
  font-size: 14px;
  opacity: .88;
}

.dv-car-dots{
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.dv-car-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;

  background: rgba(246,241,230,.28);
  transition: transform .15s ease, background .15s ease;

  -webkit-tap-highlight-color: transparent;
}

.dv-car-dot.is-active{
  background: rgba(246,241,230,.85);
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce){
  .dv-car-viewport{ scroll-behavior: auto; }
}

/* =========================================================
   13) NAV — a11y : focus visible propre (sans cadre moche)
========================================================= */
@media (min-width: 701px){
  .menu a:focus-visible{
    outline: 2px solid rgba(246,241,230,.55);
    outline-offset: 6px;
    border-radius: 10px;
  }
}

@media (max-width: 700px){
  .menu-toggle:focus-visible{
    outline: 2px solid rgba(246,241,230,.55);
    outline-offset: 6px;
    border-radius: 14px;
  }
}

/* =========================================================
   14) SWIPER — VERSION UNIQUE (premium + 3D + label)
========================================================= */

.dv-swiper{
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 14px 10px 28px;
  position: relative;
  overflow: visible;
}

.dv-swiper .swiper-wrapper{
  align-items: center;
}

.dv-swiper .swiper-slide{
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transform: scale(0.88);
  transition: transform 320ms ease, opacity 320ms ease, filter 320ms ease;
  will-change: transform;
}

@media (min-width: 900px){
  .dv-swiper{ perspective: 1200px; }

  .dv-swiper .swiper-slide-prev{
    transform: scale(0.88) rotateY(10deg);
  }

  .dv-swiper .swiper-slide-next{
    transform: scale(0.88) rotateY(-10deg);
  }
}

.dv-swiper .swiper-slide-active{
  opacity: 1;
  transform: scale(1.12);
}

.dv-swiper img{
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  cursor: zoom-in;
  display: block;
}

/* Pagination */
.dv-swiper .swiper-pagination{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
}

/* ✅ Bullets (ivoire) */
.dv-swiper .swiper-pagination-bullet{
  background: rgba(246,241,230,.35);
  opacity: 1;
  width: 8px;
  height: 8px;
  transform: scale(0.9);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.dv-swiper .swiper-pagination-bullet-active{
  background: rgba(246,241,230,.95);
  transform: scale(1.25);
  box-shadow:
    0 0 0 2px rgba(246,241,230,.25),
    0 4px 12px rgba(0,0,0,.35);
}

@media (hover:hover){
  .dv-swiper .swiper-pagination-bullet:hover{
    background: rgba(246,241,230,.65);
  }
}

/* Indication agrandissement */
.dv-swiper .swiper-slide-active::after{
  content: "Cliquer pour agrandir";
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  background: rgba(0,0,0,0.55);
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

@media (hover:hover){
  .dv-swiper .swiper-slide-active:hover::after{
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px){
  .dv-swiper{
    padding: 10px 8px 26px;
  }

  .dv-swiper .swiper-slide{
    opacity: 0.85;
    transform: scale(0.98);
  }

  .dv-swiper .swiper-slide-active{
    opacity: 1;
    transform: scale(1);
  }

  .dv-swiper .swiper-slide-active::after{
    content: "Tap pour agrandir";
    opacity: 0.9;
    transform: none;
    font-size: 13px;
  }
}

/* Slider: on cache les flèches */
.dv-swiper .swiper-button-prev,
.dv-swiper .swiper-button-next{
  display: none !important;
}

/* =========================================================
   15) LIGHTBOX — overlay
========================================================= */

.dv-lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.dv-lightbox.is-open{
  opacity: 1;
  pointer-events: auto;
}

.dv-lightbox img{
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* Lightbox : on cache les flèches */
.dv-lightbox-prev,
.dv-lightbox-next{
  display: none !important;
}

/* Lightbox — empêcher le drag natif des images */
.dv-lightbox-img{
  user-select: none;
  -webkit-user-drag: none;
}

/* Bouton fermer */
.dv-lightbox-close{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 26px;
  line-height: 1;

  color: #fff;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 10002;
}

@media (min-width: 900px){
  .dv-lightbox-close{
    position: absolute !important;
    top: 24px !important;
    right: 24px !important;
  }
}

@media (max-width: 768px){
  .dv-lightbox-close{
    position: fixed !important;
    top: 14px !important;
    right: 14px !important;
  }
}

@media (hover:hover){
  .dv-lightbox-close:hover{
    background: rgba(0,0,0,0.75);
    transform: scale(1.05);
  }
}

/* =========================================================
   16) SINGLE PROJET — DESCRIPTION + PRESSE (délicate)
========================================================= */

.project-info{
  max-width: 860px;
  margin: 28px auto 0;
  padding: 0 18px;
}

/* Description */
.project-description{
  margin: 0 auto 28px;
  line-height: 1.75;
  font-size: 1.05rem;
  opacity: .98;
}

/* Presse (single) — sobre, typographique */
.project-press{
  margin: 18px auto 44px;
}

.project-press__title{
  margin: 0 0 10px;
  text-align: center;

  font-family: "AmaticSC", sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 3.2vw, 2.8rem);
  letter-spacing: .9px;
  text-transform: uppercase;

  text-shadow: 0 8px 22px rgba(0,0,0,.35);
}

.project-press__list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.project-press__item{
  margin: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--press-line);
}

.project-press__item:last-child{
  border-bottom: 0;
  padding-bottom: 0;
}

.project-press__name{ font-weight: 600; }

.project-press__badge{
  font-family: "AmaticSC", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .6px;
  text-transform: uppercase;
  opacity: .85;
  white-space: nowrap;
}

.project-press__meta{
  margin-top: 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  opacity: .82;
}

.project-press__chip{
  display: inline-block;
  margin-right: 10px;
  opacity: .92;
}

/* =========================================================
   17) PRESSE — Page Presse + Single (ADN commun)
========================================================= */

.press-archive{
  max-width: 980px;
  margin: 0 auto;
}

/* ---------- Filtres : base ---------- */
.press-filters{
  margin: 0 0 22px;
  gap: 12px;
  position: relative;
}

/* Labels */
.press-filter__label{
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: .02em;
  opacity: .65;
}

/* Inputs/select (natif) */
.press-filter__input,
.press-filter__select{
  appearance: none;
  -webkit-appearance: none;

  width: 100%;
  padding: 10px 12px;

  border-radius: 14px;
  border: 1px solid var(--press-field-brd);
  background: var(--press-field-bg);

  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.2;

  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
  opacity: .92;
}

.press-filter__input::placeholder{
  color: rgba(246,241,230,.55);
}

.press-filter__input:focus,
.press-filter__select:focus{
  border-color: var(--press-field-brd-focus);
  box-shadow: 0 0 0 4px rgba(246,241,230,.10);
  opacity: 1;
}

/* Actions (base) */
.press-filter__actions{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Boutons WP neutralisés */
.press-filter__button.button,
.press-filter__reset.button{
  background: transparent !important;
  color: var(--text) !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;

  padding: 10px 10px !important;
  border-radius: 12px;

  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1;

  opacity: .85;
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease, background 160ms ease;
  text-decoration: none;
}

.press-filter__button.button{
  border-color: var(--press-field-brd) !important;
}

@media (hover:hover){
  .press-filter__button.button:hover,
  .press-filter__reset.button:hover{
    opacity: 1;
    transform: translateY(-1px);
    background: rgba(246,241,230,.06) !important;
    border-color: rgba(246,241,230,.30) !important;
  }
}

.press-filter__button.button:focus-visible,
.press-filter__reset.button:focus-visible{
  outline: 2px solid rgba(246,241,230,.55);
  outline-offset: 4px;
}

/* Summary (mobile) */
.press-filters__summary{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 6px 2px;
  margin: 0 0 10px;

  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--text);
  opacity: .82;

  list-style: none;
  cursor: pointer;
  user-select: none;
}

.press-filters__summary::-webkit-details-marker{ display:none; }
.press-filters__summary::marker{ content:""; }

.press-filters__summary::before{
  content:"▾";
  opacity: .75;
  transform: translateY(-1px);
  transition: transform 180ms ease, opacity 180ms ease;
}

.press-filters__details[open] > .press-filters__summary::before{
  transform: rotate(180deg) translateY(1px);
  opacity: .95;
}

.press-filters__summary:focus-visible{
  outline: 2px solid rgba(246,241,230,.55);
  outline-offset: 6px;
  border-radius: 10px;
}

.press-filters__fields{ margin-top: 2px; }

@media (min-width: 701px){
  .press-filters__summary{ display: none; }
  .press-filters__details{ display: contents; }

  .press-filters__fields{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin: 0 0 22px;
  }

  .press-filter--search{
    flex: 1;
    min-width: 240px;
    max-width: 520px;
  }

  .press-filter--project{ min-width: 220px; }
  .press-filter--type{   min-width: 180px; }
  .press-filter--year{   min-width: 150px; }

  .press-filter__actions{
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin-left: 0;
  }
}

@media (max-width: 700px){
  .press-filters{
    gap: 10px;
    margin-bottom: 16px;
  }

  .press-filter__label{ opacity: .55; }

  .press-filter__input,
  .press-filter__select{
    padding: 10px 12px;
    border-radius: 14px;
    opacity: .88;
  }

  .press-filters__fields{
    display: grid;
    gap: 10px;
  }

  .press-filter__actions{
    width: 100%;
    justify-content: flex-start;
    display: flex;
    gap: 10px;
    align-items: center;
  }
}

/* ---------- Liste presse ---------- */
.press-feed{
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--press-line);
}

.press-item{
  padding: 18px 0;
  border-bottom: 1px solid var(--press-line);
}

.press-item:last-child{ border-bottom: 0; }

.press-item__title{ margin: 0 0 6px; }

/* Lien */
.press-item__link{
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 1.35;
  padding-bottom: 6px;

  color: inherit;
  text-decoration: none !important;

  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;

  transition: transform 160ms ease, opacity 160ms ease, letter-spacing 160ms ease;
}

@media (hover:hover){
  .press-item__link:hover{
    transform: translateX(2px);
    opacity: 1;
    letter-spacing: .01em;
  }
}

.press-item__link:focus-visible{
  outline: 2px solid rgba(246,241,230,.45);
  outline-offset: 6px;
  border-radius: 10px;

  transform: translateX(2px);
  opacity: 1;
  letter-spacing: .01em;
}

.press-item__meta{
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  opacity: .80;
  color: var(--press-muted);
}

.press-item__context{
  margin-top: 6px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  opacity: .62;
  color: var(--press-soft);
}

/* ---------- SINGLE PROJET (presse) : ajustements ---------- */
.single-projet .project-press .press-feed{ border-top: none; }
.single-projet .project-press .press-item{
  border-bottom: none;
  padding-top: 14px;
  padding-bottom: 14px;
}

.single-projet .project-press .press-item:first-child{ padding-top: 6px; }

.single-projet .project-press{
  margin-top: 34px;
  margin-bottom: 54px;
}

.single-projet .project-press .press-feed{
  margin-top: 18px;
  padding-left: 6px;
  padding-right: 6px;
}

.single-projet .project-press .press-item__meta{ margin-top: 8px; }

@media (max-width: 700px){
  .single-projet .project-press{
    margin-top: 28px;
    margin-bottom: 44px;
  }
  .single-projet .project-press .press-item{
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

/* ---------- PRESSE: “Assumés mais élégants” (filtres + actions) ---------- */
/* Ces styles s'appliquent quand le template Presse ajoute:
   - .btn-filter / .btn-reset sur les boutons
   - .dv-enhance-select sur les <select> (pour le JS custom desktop)
*/
.press-filters input[type="search"],
.press-filters input[type="text"],
.press-filters select{
  background: var(--presse-glass-bg);
  color: var(--presse-text);
  border: 1px solid var(--presse-border);
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.press-filters input::placeholder{
  color: var(--presse-muted);
}

.press-filters input:focus,
.press-filters select:focus{
  border-color: rgba(255,255,255,.32);
  background: rgba(30, 8, 6, .48);
}

/* Boutons */
.press-filters .btn-filter,
.press-filters button[type="submit"],
.press-filters input[type="submit"]{
  background: rgba(30, 8, 6, .55);
  color: var(--presse-text);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease, background .2s ease, border-color .2s ease;
}

.press-filters .btn-filter:hover,
.press-filters button[type="submit"]:hover,
.press-filters input[type="submit"]:hover{
  transform: translateX(2px);
  opacity: .92;
  border-color: rgba(255,255,255,.38);
}

.press-filters .btn-reset,
.press-filters button[type="reset"],
.press-filters .reset{
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.75);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease, border-color .2s ease;
}

.press-filters .btn-reset:hover,
.press-filters button[type="reset"]:hover,
.press-filters .reset:hover{
  transform: translateX(2px);
  opacity: .9;
  border-color: rgba(255,255,255,.28);
}

/* ---------- CUSTOM SELECT (desktop only)
   - Mobile: natif (iOS/Android) => rien à faire
   - Desktop: le JS cache le <select> natif (dv-native-hidden) et injecte .dv-select
---------- */
@media (max-width: 900px){
  .dv-select{ display:none !important; }
}

@media (min-width: 901px){
  .dv-select-enhanced select.dv-native-hidden{
    position:absolute !important;
    left:-9999px !important;
    width:1px !important;
    height:1px !important;
    overflow:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
  }

  .dv-select{
    position: relative;
    width: 100%;
    max-width: 100%;
  }

  .dv-select__button{
    width: 100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 10px;

    background: var(--presse-glass-bg);
    color: var(--presse-text);
    border: 1px solid var(--presse-border);
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;

    transition: border-color .2s ease, background .2s ease, transform .2s ease, opacity .2s ease;
  }

  .dv-select__button:hover{
    opacity: .94;
    border-color: rgba(255,255,255,.32);
    transform: translateX(1px);
  }

  .dv-select__value{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dv-select__chev{
    flex: 0 0 auto;
    opacity: .85;
    transform: translateY(1px);
  }

  .dv-select__panel{
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    z-index: 9999;

    width: min(520px, 100%);
    max-height: 320px;
    overflow: auto;

    padding: 10px;
    border-radius: 28px;

    background: var(--presse-glass-bg-strong);
    border: 1px solid var(--presse-border-strong);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: 0 18px 40px rgba(0,0,0,.35);

    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }

  .dv-select.is-open .dv-select__panel{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .dv-select__option{
    display:flex;
    align-items:flex-start;
    gap: 12px;

    padding: 10px 12px;
    border-radius: 16px;

    color: rgba(255,255,255,.92);
    cursor: pointer;

    transition: transform .16s ease, opacity .16s ease, background .16s ease;
  }

  .dv-select__option:hover{
    transform: translateX(3px);
    opacity: .92;
    background: rgba(255,255,255,.06);
  }

  .dv-select__check{
    width: 18px;
    flex: 0 0 18px;
    opacity: .95;
    transform: translateY(2px);
  }

  .dv-select__label{ line-height: 1.15; }
}

/* =========================================================
   18) Ajustements compat : boutons WP (si présents ailleurs)
========================================================= */
.button{ border-radius: 14px; }

/* =========================================================
   19) Réduction des mouvements
========================================================= */
@media (prefers-reduced-motion: reduce){
  .press-item__link,
  .press-filter__input,
  .press-filter__select,
  .press-filter__button.button,
  .press-filter__reset.button,
  .dv-select__panel,
  .dv-select__option{
    transition: none !important;
  }
}

/* =========================================================
   20) BIO — FINAL (photo à droite + texte qui continue dessous)
========================================================= */

.dv-bio.wrap{
  padding-top: 44px;
  padding-bottom: 64px;
}

.bio{
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.bio__header{
  text-align: center;
  margin-bottom: 30px;
}

.bio__name{
  font-family: "AmaticSC", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 5.2vw, 72px);
  line-height: 0.95;
  letter-spacing: .01em;
  margin: 0;
}

.bio__role{
  margin-top: 10px;
  font-family: "AmaticSC", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.05;
  letter-spacing: .01em;
  opacity: .88;

  text-align: center;
  white-space: nowrap;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}

.bio__text{
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  opacity: .92;
}

.bio__text > * + *{ margin-top: 16px; }

.bio__photo{
  margin: 0;
  position: relative;
}

.bio__photo-img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow:
    0 18px 44px rgba(0,0,0,.55),
    0 2px 12px rgba(0,0,0,.35);
}

.bio__photo::before{
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 26px;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(246,241,230,.14),
    rgba(246,241,230,.06) 38%,
    rgba(0,0,0,0) 70%
  );
  filter: blur(2px);
  opacity: .9;
}

@media (min-width: 900px){
  .bio__grid{ display: block; }

  .bio__photo{
    float: right;
    width: clamp(260px, 28vw, 360px);
    margin: 10px 0 18px clamp(60px, 8vw, 140px);
    transform: translateY(26px);
  }

  .bio__text{ max-width: 92ch; }

  .bio__grid::after{
    content: "";
    display: block;
    clear: both;
  }
}

@media (max-width: 899px){
  .bio__grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .bio__photo{
    float: none;
    width: auto;
    margin: 0;
    transform: none;
  }

  .bio__text{ max-width: 62ch; }
}

/* ==========================================================================
   21) CONTACT — HERO (CLEAN, STABLE, EDIT-FRIENDLY)
   Page: Contact (template: page-contact.php)
   Objectif:
   - Desktop: scène en 3 colonnes (Identité / Email / Perso) alignée au milieu.
   - Identité: Nom + Rôle centrés.
   - Mobile: contenu aéré, positionné légèrement plus haut.
   - Accessibilité: focus visible sur le lien email.
   - Motion: animation perso désactivée si prefers-reduced-motion.
   ========================================================================== */

.dv-contact.wrap{
  padding-top: 0;
  padding-bottom: 0;
}

.dv-contact .contact-hero{
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
}

.dv-contact .contact-hero__grid{
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  column-gap: clamp(22px, 4vw, 70px);
}

.dv-contact .contact-hero__left{
  justify-self: center;
  text-align: center;
}

.dv-contact .contact-hero__id{
  width: max-content;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dv-contact .contact-hero__name{
  font-family: "AmaticSC", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(58px, 7.2vw, 86px);
  line-height: 1.02;
  letter-spacing: 1.2px;
  white-space: nowrap;
  margin: 0;
  opacity: .98;
}

.dv-contact .contact-hero__role{
  font-family: "AmaticSC", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.05;
  letter-spacing: .8px;
  opacity: .90;

  text-align: center;
  white-space: nowrap;
  margin: 0;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}

.dv-contact .contact-hero__role span{ display: inline; }
.dv-contact .contact-hero__role span:first-child::after{ content: " "; }

.dv-contact .contact-hero__center{
  justify-self: center;
  text-align: center;
}

.dv-contact .contact-hero__email{
  display: inline-block;

  font-family: "AmaticSC", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1;
  letter-spacing: .03em;

  color: inherit;
  text-decoration: none;
  opacity: .96;

  padding: 10px 12px;
  border-radius: 14px;

  transition: transform 160ms ease, opacity 160ms ease, letter-spacing 160ms ease;
}

@media (hover:hover){
  .dv-contact .contact-hero__email:hover{
    transform: translateY(-1px);
    letter-spacing: .04em;
    opacity: 1;
  }
}

.dv-contact .contact-hero__email:focus-visible{
  outline: 2px solid rgba(246,241,230,.45);
  outline-offset: 6px;
  border-radius: 14px;
}

.dv-contact .contact-hero__right{
  justify-self: end;
  display: flex;
  justify-content: flex-end;
}

.dv-contact .contact-hero__perso{
  width: clamp(260px, 28vw, 460px);
  height: auto;
  display: block;

  transform-origin: 50% 85%;
  animation: dvContactSway 3.9s ease-in-out infinite;
  will-change: transform;
  opacity: .98;
}

@keyframes dvContactSway{
  0%   { transform: rotate(-2.2deg) translateX(-8px); }
  50%  { transform: rotate( 2.2deg) translateX( 8px); }
  100% { transform: rotate(-2.2deg) translateX(-8px); }
}

@media (prefers-reduced-motion: reduce){
  .dv-contact .contact-hero__perso{ animation: none; }
}

@media (max-width: 900px){

  .dv-contact .contact-hero{
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;

    padding-top: clamp(16px, 5vh, 40px);
    padding-bottom: clamp(40px, 12vh, 120px);
    padding-left: 20px;
    padding-right: 20px;
  }

  .dv-contact .contact-hero__grid{
    grid-template-columns: 1fr;
    row-gap: clamp(18px, 3.5vh, 44px);
    text-align: center;
  }

  .dv-contact .contact-hero__left,
  .dv-contact .contact-hero__center,
  .dv-contact .contact-hero__right{
    justify-self: center;
    text-align: center;
  }

  .dv-contact .contact-hero__email{ margin-top: 6px; }

  .dv-contact .contact-hero__perso{
    width: clamp(220px, 58vw, 360px);
    margin-top: 8px;
  }
}

/* =========================================================
   END
========================================================= */
