/* ════════════════════════════════════════════
   TOMA Digital — styles.css
   Design : tomadigital.ch pixel perfect
   Logique : radok.be — zéro dépendance
   ════════════════════════════════════════════ */


/* ── Police locale ── */
@font-face {
  font-family: 'SuisseIntl';
  src: url('../fonts/SuisseIntl-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
h1,h2,h3,h4,h5,h6 { font-weight: inherit; font-size: inherit; line-height: inherit; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
button { background: none; border: none; font-family: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid #000; outline-offset: 3px; }


/* ── Base ── */
html, body { padding: 0; margin: 0; }

body {
  background-color: #ffffff;
  font-family: 'SuisseIntl', sans-serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.7;
  color: #000;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

@media (hover: none) { body { cursor: auto; } }

a { color: currentColor; text-decoration: none; outline: none; }
p { margin: 0 0 30px; }
p:last-child { margin-bottom: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ══════════════════════════════════════
   PRELOADER
══════════════════════════════════════ */
#preloader {
  position: fixed; inset: 0; z-index: 9000;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#preloader-inner { animation: preloader-pulse 1.4s ease-in-out infinite; }
#preloader-inner img { width: clamp(100px, 12vw, 160px); height: auto; }

@keyframes preloader-pulse {
  0%, 100% { opacity: 0.2; transform: scale(0.97); }
  50%       { opacity: 1;   transform: scale(1.03); }
}


/* ══════════════════════════════════════
   CURSEUR
══════════════════════════════════════ */
#cur {
  position: fixed;
  width: 10px; height: 10px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

@media (hover: none) { #cur { display: none; } }


:root {
  --page-margin: 5%;
}

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
#tt-header {
  position: fixed; top: 0; left: 0;
  width: 100%; z-index: 999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--page-margin); height: 100px;
  background-color: transparent;
  transition: background-color 0.3s ease, height 0.3s ease, box-shadow 0.3s ease;
}

#tt-header.scrolled {
  background-color: rgba(255,255,255,0.97);
  height: 70px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.logo { display: flex; align-items: center; flex-shrink: 0; z-index: 9; }
.logo img {
  height: 50px; width: auto;
  transition: opacity 0.3s ease;
}
/* Pas de filter:invert — le JS swape entre logo-white.svg et logo-black.svg */

.desktop-nav {
  display: flex; align-items: center;
  gap: 3rem; height: 100px;
  transition: height 0.3s ease;
}
#tt-header.scrolled .desktop-nav { height: 70px; }

.desktop-nav a {
  font-size: 32px; font-weight: 600;
  color: white; position: relative; padding-bottom: 4px;
  transition: color 0.3s ease;
}
#tt-header.scrolled .desktop-nav a { color: #000; }

.desktop-nav a::after {
  content: ''; position: absolute;
  bottom: 8px; left: 0; width: 0; height: 2px;
  background-color: white; transition: width 0.3s ease;
}
#tt-header.scrolled .desktop-nav a::after { background-color: black; }

@media (hover: hover) and (pointer: fine) {
  .desktop-nav a:hover::after { width: 100%; }
}

#nav-toggle {
  display: none; cursor: pointer;
  font-size: 28px; color: white;
  padding-bottom: 8px; transition: color 0.3s ease;
}
#tt-header.scrolled #nav-toggle { color: #000; }
@media (hover: none) { #nav-toggle { cursor: pointer; } }


/* ══════════════════════════════════════
   OVERLAY NAV MOBILE
══════════════════════════════════════ */
#nav-overlay {
  display: none; position: fixed; inset: 0;
  z-index: 1000; background: #000; color: #fff;
  flex-direction: column; padding: 30px 20px;
}
#nav-overlay.open { display: flex; }

#nav-overlay-close {
  position: absolute; top: 5px; right: 20px;
  font-size: 50px; font-weight: 200; color: white;
  cursor: pointer; line-height: 1;
  opacity: 0.8; transition: opacity 0.2s;
  background: none; border: none;
}
@media (hover: hover) and (pointer: fine) {
  #nav-overlay-close:hover { opacity: 1; }
}

#nav-overlay nav { margin-top: 80px; display: flex; flex-direction: column; gap: 4px; }
#nav-overlay nav a { display: block; color: white; font-size: 18px; font-weight: 600; }

.overlay-contact { margin-top: auto; display: flex; flex-direction: column; }
.overlay-contact span,
.overlay-contact a { font-size: 20px; font-weight: 600; color: white; line-height: 1.5; }


/* ══════════════════════════════════════
   HERO — avec parallax vidéo
══════════════════════════════════════ */
#hero {
  position: relative;
  height: 100vh; width: 100%;
  overflow: clip; background-color: #000;
}

/* Conteneur référent pour le titre (statique, plein hero) */
#hero-video-wrap {
  position: absolute;
  inset: 0;
}

/* Wrapper média — translateY au scroll via JS */
#hero-media {
  position: absolute;
  inset: -10% 0;        /* débordement haut/bas pour absorber le parallax */
  will-change: transform;
}

#hero-media video,
#hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Caption positionnée en bas à gauche */
.ph-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-start; align-items: flex-end;
  padding: 0 30px 80px;
}

.ph-caption-title-small {
  font-size: 72px;
  font-weight: 800;
  color: white;
  display: flex; align-items: baseline;
  gap: 0.25em; flex-wrap: nowrap;
}

/* Liste mots animés — aligné avec "I create" */
#anim-list {
  display: inline-block;
  position: relative;
  overflow: hidden;
  height: 1em;
  min-width: 7em;
  vertical-align: top;    /* aligne le haut du bloc avec le haut de "I create" */
}

#anim-list li {
  position: absolute; top: 0; left: 0;
  transform: translateY(100%); white-space: nowrap;
  animation: showWord 10s linear infinite;
}
#anim-list li:nth-child(1) { animation-delay: 0s; }
#anim-list li:nth-child(2) { animation-delay: 2s; }
#anim-list li:nth-child(3) { animation-delay: 4s; }
#anim-list li:nth-child(4) { animation-delay: 6s; }
#anim-list li:nth-child(5) { animation-delay: 8s; }

@keyframes showWord {
  0%        { transform: translateY(100%); opacity: 0; }
  5%, 20%   { transform: translateY(0%);  opacity: 1; }
  25%, 100% { transform: translateY(-100%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #anim-list li              { animation: none; transform: translateY(100%); opacity: 0; }
  #anim-list li:nth-child(1) { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
  #hero { height: 60vh; }
  .ph-caption { padding: 0 20px 24px; }
  .ph-caption-title-small { font-size: clamp(28px, 7vw, 48px); flex-wrap: wrap; }
  #anim-list { min-width: 6em; }
}


/* ══════════════════════════════════════
   CONTENU PRINCIPAL
══════════════════════════════════════ */
#page-content {
  position: relative;
  background: #ffffff;
}

footer { margin-top: auto; }
#page-content:has(footer) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#page-content:has(footer) > * {
  flex-shrink: 0;
}


/* ══════════════════════════════════════
   INTRO — plus d'espace avant et après
══════════════════════════════════════ */
.des-content {
  font-size: 32px;
  line-height: 38px;
  color: black;
  font-weight: bold;
  padding: 80px 32px 80px 32px;   /* augmenté : 32→80 haut et bas */
}

@media (min-width: 768px) {
  .des-content {
    padding: 80px 215px 80px 32px;
  }
}

@media (max-width: 768px) {
  .des-content {
    font-size: 16px;
    line-height: 24px;
    padding: 48px 20px;
  }
}


/* ══════════════════════════════════════
   GRILLE PROJETS
   Desktop 2 col avec espace — Mobile 1 col
══════════════════════════════════════ */
#grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 0 24px 24px;
}

.work {
  display: block;
  background: #ffffff;
  cursor: none;
}
@media (hover: none) { .work { cursor: pointer; } }

.work-img-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #ffffff;
  padding: 0;
  transition: padding 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

@media (hover: hover) and (pointer: fine) {
  .work:hover .work-img-wrap {
    padding: 14px;
  }
}

.pgi-caption { padding: 16px 20px 28px; }

.pgi-title {
  font-size: 20px; font-weight: 600;
  color: #000; line-height: 1.3; margin-bottom: 6px;
}

.pgi-category {
  font-size: 13px; color: #000;
  font-weight: 600; line-height: 1.4; margin: 0;
}

/* Variante 3 colonnes — page Projets */
#grid.grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  padding: 0 24px 160px;
}

@media (max-width: 1024px) {
  #grid.grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  #grid.grid-3 { grid-template-columns: 1fr; gap: 16px; padding: 0 16px 40px; }
}


/* Mobile : 1 colonne */
@media (max-width: 768px) {
  #grid { grid-template-columns: 1fr; gap: 16px; padding: 0 16px 16px; }
  .pgi-title    { font-size: 16px; }
  .pgi-category { font-size: 11px; }
}


/* ══════════════════════════════════════
   CTA
══════════════════════════════════════ */
.explore-wrap {
  padding: 80px 0 160px;
  display: flex; justify-content: center; align-items: center;
}

.explore-btn {
  display: inline-block;
  background-color: black; color: white;
  padding: 10px 40px; border-radius: 50px;
  font-size: 20px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  cursor: none;
  transition: background-color 0.25s ease;
}
@media (hover: none) { .explore-btn { cursor: pointer; } }
@media (hover: hover) and (pointer: fine) {
  .explore-btn:hover { background-color: #333; }
}
@media (max-width: 768px) {
  .explore-wrap { padding: 50px 20px 100px; }
  .explore-btn  { font-size: 13px; padding: 14px 32px; }
}


/* ══════════════════════════════════════
   LOGO WALL CLIENTS
   Desktop : grille 5×2, logos grands
   Mobile  : 2 colonnes
══════════════════════════════════════ */
#clients {
  background-color: #ffffff;
  padding: 40px clamp(20px, 5vw, 80px) 80px;
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px 24px;
  align-items: center;
  justify-items: center;
  width: 100%;
}

.logo-wall li {
  display: flex; align-items: center; justify-content: center;
  opacity: 0.85; transition: opacity 0.25s ease;
}

.logo-wall li a {
  display: flex; align-items: center; justify-content: center;
}

.logo-wall li img {
  height: 80px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
  .logo-wall li:hover { opacity: 1; }
}

/* Tablette */
@media (max-width: 1024px) {
  #clients { padding: 60px 40px; }
  .logo-wall { gap: 48px 24px; }
  .logo-wall li img { height: 150px; max-width: 260px; }
}

/* Mobile — 2 colonnes */
@media (max-width: 768px) {
  #clients { padding: 48px 24px; }
  .logo-wall {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 20px;
  }
  .logo-wall li img { height: 100px; max-width: 180px; }
}


/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer { background-color: #000; padding: 20px 30px; }

.social-email {
  display: flex; justify-content: space-between; align-items: center;
}

.footer-copy { font-size: 20px; font-weight: 600; color: white; }

.footer-social { display: flex; align-items: center; gap: 8px; }

.footer-social a {
  font-size: 20px; font-weight: 600; color: white;
  position: relative; padding-bottom: 2px;
}

.footer-social a::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; width: 0; height: 2px;
  background-color: white; transition: width 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer-social a:hover::after { width: 100%; }
}

@media (max-width: 768px) {
  footer { padding: 20px; }
  .footer-copy, .footer-social a { font-size: 16px; }
}

@media (max-width: 480px) {
  .social-email { flex-direction: column; align-items: flex-start; gap: 12px; }
}


/* ══════════════════════════════════════
   RESPONSIVE HEADER MOBILE
══════════════════════════════════════ */
@media (max-width: 768px) {
  #tt-header         { height: 70px; padding: 0 var(--page-margin); }
  #tt-header.scrolled { height: 56px; }
  .logo img          { height: 36px; }
  .desktop-nav       { display: none; }
  #nav-toggle        { display: block; }
}


/* ══════════════════════════════════════
   PAGES INTÉRIEURES
══════════════════════════════════════ */
.page-interior {
  padding-top: 100px;
}

.desktop-nav a.nav-active::after { width: 100%; }

@media (max-width: 768px) {
  .page-interior { padding-top: 70px; }
}


/* ══════════════════════════════════════
   PAGE SERVICES
══════════════════════════════════════ */

/* Intro — grande typo pleine largeur */
.services-intro {
  padding: 60px clamp(20px, 5vw, 80px) 120px;
}

.services-intro-text p {
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.15;
  font-weight: 800;
  color: #000;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.services-intro-text p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .services-intro { padding: 40px 20px 48px; }
  .services-intro-text p { font-size: clamp(22px, 6vw, 32px); margin-bottom: 24px; }
}


/* Grille services */
.services-grid {
  padding: 0 clamp(20px, 5vw, 80px) 140px;
}

/* Chaque rangée : label | col1 | col2 */
.service-row {
  display: grid;
  grid-template-columns: clamp(120px, 18vw, 260px) 1fr 1fr;
  gap: 0 40px;
  margin-bottom: 60px;
}

.service-row:last-child { margin-bottom: 0; }

/* Label — petit texte noir */
.service-label p {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  letter-spacing: 0.01em;
  margin: 0;
  padding-top: 6px;
}

/* Items — grande typo bold */
.service-col ul {
  list-style: none;
  padding: 0; margin: 0;
}

.service-col ul li {
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 700;
  color: #000;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

/* Tablette */
@media (max-width: 1200px) and (min-width: 768px) {
  .service-row {
    grid-template-columns: clamp(100px, 15vw, 200px) 1fr 1fr;
    gap: 0 28px;
    margin-bottom: 48px;
  }
  .service-col ul li { font-size: clamp(18px, 2.4vw, 26px); }
}

/* Mobile — 1 colonne */
@media (max-width: 767px) {
  .services-grid { padding: 0 20px 48px; }

  .service-row {
    grid-template-columns: 1fr;
    gap: 12px 0;
    margin-bottom: 36px;
  }

  .service-label p { font-size: 11px; color: #000000; }
  .service-col ul li { font-size: 20px; line-height: 1.6; }
}


/* ══════════════════════════════════════
   PAGE PROJET INDIVIDUEL
══════════════════════════════════════ */

/* Hero — image pleine page + titre + services */
.project-hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* image gérée via #hero-video-wrap img */

/* Titre en overlay blanc sur l'image */
.project-hero-title {
  position: absolute;
  left: var(--page-margin);
  bottom: 130px;
  color: #fff;
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 900;
  line-height: 1;
  margin: 0;
  z-index: 1;
}

/* Bandeau blanc — Services : label + liste, sur une ligne.
   Overlay en bas du hero, identique desktop/mobile. */
.project-hero-caption {
  position: absolute;
  bottom: 0;
  left: var(--page-margin); right: var(--page-margin);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 30px;
  font-weight: 600;
  color: #000;
  padding: 20px;
}

.project-hero-caption .label {
  font-weight: 600;
  flex-shrink: 0;
}

.project-hero-caption .project-services-list {
  flex: 1;
  text-align: right;
}

@media (max-width: 767px) {
  #hero {
    height: 60vh;
  }
  .project-hero-title {
    bottom: 150px;
    font-size: clamp(28px, 9vw, 44px);
  }
  .project-hero-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 18px;
    padding: 16px var(--page-margin);
  }
  .project-hero-caption .project-services-list { text-align: left; }
}

/* Intro texte */
.project-intro {
  width: 90%;
  margin: 0 auto;
  padding: 60px 20px 60px;
}

.project-intro p {
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  color: #000;
  text-align: left;
}

/* Galerie — colonne d'images/vidéos */
.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 90%;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px 0 60px;
  box-sizing: border-box;
}

.gallery-full {
  width: 100%;
  box-sizing: border-box;
  align-self: stretch;
}

.gallery-full img {
  width: 100%;
  display: block;
}

.gallery-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.gallery-two img,
.gallery-two .video-embed {
  width: 100%;
}

.gallery-two img {
  display: block;
  object-fit: cover;
}

/* Classes ratio réutilisables — à appliquer selon le format réel de chaque visuel */
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3  { aspect-ratio: 4 / 3; }
.ratio-1-1  { aspect-ratio: 1 / 1; }
.ratio-3-4  { aspect-ratio: 3 / 4; }
.ratio-4-5  { aspect-ratio: 4 / 5; }
.ratio-9-16 { aspect-ratio: 9 / 16; }
.ratio-auto { aspect-ratio: auto; }

.video-embed {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  /* Par défaut : aspect-ratio pour les duos (fonctionne dans grid) */
  aspect-ratio: 16 / 9;
}

/* Dans gallery-two : aspect-ratio natif — le grid aligne les hauteurs */
.gallery-two .video-embed           { aspect-ratio: 16 / 9; height: auto; }
.gallery-two .video-embed.ratio-16-9{ aspect-ratio: 16 / 9; height: auto; }
.gallery-two .video-embed.ratio-4-3 { aspect-ratio: 4 / 3;  height: auto; }
.gallery-two .video-embed.ratio-1-1 { aspect-ratio: 1 / 1;  height: auto; }
.gallery-two .video-embed.ratio-3-4 { aspect-ratio: 3 / 4;  height: auto; }
.gallery-two .video-embed.ratio-4-5 { aspect-ratio: 4 / 5;  height: auto; }
.gallery-two .video-embed.ratio-9-16{ aspect-ratio: 9 / 16; height: auto; }

/* Plein écran : aspect-ratio + width:100% — le player Vimeo respecte les proportions de l'iframe */
.gallery-full .video-embed,
.video-full   .video-embed                { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.gallery-full .video-embed.ratio-16-9,
.video-full   .video-embed.ratio-16-9     { aspect-ratio: 16 / 9; }
.gallery-full .video-embed.ratio-4-3,
.video-full   .video-embed.ratio-4-3      { aspect-ratio: 4 / 3;  }
.gallery-full .video-embed.ratio-1-1,
.video-full   .video-embed.ratio-1-1      { aspect-ratio: 1 / 1;  }
.gallery-full .video-embed.ratio-3-4,
.video-full   .video-embed.ratio-3-4      { aspect-ratio: 3 / 4;  }
.gallery-full .video-embed.ratio-9-16,
.video-full   .video-embed.ratio-9-16     { aspect-ratio: 9 / 16; }

/* Exception portrait dans gallery-full : on laisse la largeur du parent contrôler */
.gallery-full .video-embed.ratio-4-5,
.video-full   .video-embed.ratio-4-5      { height: auto; aspect-ratio: 4 / 5; }

/* Cinemascope 2.39:1 — bandes intégrées dans le fichier source */
.video-embed.ratio-cine { height: auto; aspect-ratio: 2.39 / 1; }

.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.video-embed [data-video-id] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

/* Recadre une vidéo source verticale (9:16) pour remplir
   un conteneur horizontal (16:9) sans bandes noires.
   177.78% = (16/9) ÷ (9/16) — facteur de surdimensionnement. */
.video-cover-portrait iframe {
  width: 177.78%;
  height: 100%;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

/* Recadre une vidéo 9:16 dans un conteneur 4:5 sans bandes noires.
   Facteur : (4/5) ÷ (9/16) = 64/45 ≈ 142.2% en largeur */
.video-cover-4-5 iframe {
  width: 142.2%;
  height: 100%;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.gallery-text {
  padding: 60px 20px;
}

.gallery-text p {
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  color: #000;
  text-align: left;
}

@media (max-width: 767px) {
  .project-intro { width: auto; padding: 40px 16px 0; }
  .project-intro p, .gallery-text p { font-size: 20px; line-height: 26px; }
  .project-gallery { width: auto; padding: 16px 16px 40px; gap: 10px; }
  .gallery-two {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  /* En mobile, gallery-two passe en 1 col → même largeur que gallery-full */
  .gallery-two .video-embed,
  .gallery-two .video-embed.ratio-16-9 { height: calc(100vw * 9 / 16); }
  .gallery-two .video-embed.ratio-4-3  { height: calc(100vw * 3 / 4);  }
  .gallery-two .video-embed.ratio-1-1  { height: 100vw;                 }
  .gallery-two .video-embed.ratio-3-4  { height: calc(100vw * 4 / 3);  }
  .gallery-two .video-embed.ratio-4-5  { height: calc(100vw * 5 / 4);  }
  .gallery-two .video-embed.ratio-9-16 { height: calc(100vw * 16 / 9); }
  .gallery-full .video-embed,
  .video-full   .video-embed           { height: calc(100vw * 9 / 16); }
  .gallery-two img,
  .gallery-two .video-embed {
    width: 100%;
  }
  .gallery-two img:not([class*="ratio-"]) {
    aspect-ratio: 16 / 9;
  }
  .gallery-text { padding: 32px 16px; }
}


/* Autres projets */
.other-projects {
  width: 90%;
  margin: 0 auto;
  padding-top: 40px;
  padding-bottom: 120px;
}

.other-projects h2 {
  font-size: 2.6rem;
  line-height: 3rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0;
}

.other-projects #grid.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 2rem;
  padding: 0;
}

.other-projects .work-img-wrap {
  aspect-ratio: auto;
  height: 220px;
}

@media (max-width: 767px) {
  .other-projects h2 { font-size: 1.8rem; line-height: 2.2rem; }
  .other-projects #grid.grid-3 {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .other-projects .work-img-wrap { height: 160px; }
}

/* Caption en overlay au hover — fond blanc, texte noir */
.other-projects .work {
  position: relative;
}

/* Désactive le rétrécissement au hover pour cette section */
.other-projects .work:hover .work-img-wrap {
  padding: 0;
}

.other-projects .pgi-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .other-projects .work:hover .pgi-caption {
    opacity: 1;
  }
}

@media (hover: none) {
  .other-projects .pgi-caption {
    opacity: 0;
    background: rgba(255, 255, 255, 0.95);
  }
  .other-projects .work.is-active .pgi-caption {
    opacity: 1;
  }
}

.other-projects .pgi-title,
.other-projects .pgi-category {
  color: #000;
}


/* ══════════════════════════════════════
   PAGE PROJETS — intro titre + sous-titre
══════════════════════════════════════ */
.projects-intro {
  padding: 60px clamp(20px, 5vw, 80px) 80px;
}

.projects-intro h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #000;
  margin-bottom: 16px;
}

.projects-intro p {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.4;
  color: #000;
  margin-bottom: 0;
  max-width: none;
}

@media (max-width: 767px) {
  .projects-intro { padding: 40px 20px 48px; }
  .projects-intro h1 { font-size: clamp(28px, 8vw, 40px); margin-bottom: 12px; }
  .projects-intro p { font-size: 16px; }
}


/* ══════════════════════════════════════
   PAGE CONTACT
══════════════════════════════════════ */
.contact-section {
  padding: 200px clamp(20px, 5vw, 80px) 120px;
}

.contact-title {
  font-size: clamp(36px, 6vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #000;
  margin-bottom: 40px;
}

.contact-block p {
  font-size: clamp(36px, 6vw, 50px);
  font-weight: 800;
  line-height: 1.3;
  color: #000;
  margin-bottom: 0;
}

.contact-block a {
  color: #000;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .contact-block a:hover { opacity: 0.45; }
}

.contact-social {
  margin-top: 40px;
}

.contact-social p {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: clamp(36px, 6vw, 50px);
  font-weight: 800;
}

/* Mobile */
@media (max-width: 767px) {
  .contact-section {
    padding: 60px 20px 80px;
  }
  .contact-title { font-size: clamp(28px, 8vw, 40px); margin-bottom: 28px; }
  .contact-block p { font-size: clamp(28px, 8vw, 40px); line-height: 1.3; }
  .contact-social { margin-top: 28px; }
  .contact-social p { gap: 20px; font-size: clamp(28px, 8vw, 40px); }
}


/* ══════════════════════════════════════
   TRANSITION DE PAGE — rideau noir
   CSS pur (transform), GPU-accelerated,
   zéro dépendance.
══════════════════════════════════════ */
#page-transition {
  position: fixed;
  inset: 0;
  background: #000;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 10000;
  pointer-events: none;
}

#page-transition.cover { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  #page-transition { transition: none; }
}


/* ══════════════════════════════════════
   FIX ANIMATION HERO + LOGOS — 2026-06-19
══════════════════════════════════════ */

.ph-caption-title-small {
  align-items: flex-start;
}

#anim-list {
  min-width: 7em;
}

.logo-wall li img {
  height: 160px !important;
  max-width: 280px;
}
@media (max-width: 1024px) {
  .logo-wall li img { height: 130px !important; max-width: 220px; }
}
@media (max-width: 768px) {
  .logo-wall li img { height: 120px !important; max-width: 180px; }
}
