/* ==========================================================================
   MAIN.CSS — Milan Guedec Portfolio
   Fusion de style.css + styleIndex.css + work.css
   (workAnimation.css reste séparé — fichier généré par SVG Artista)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs */
  --color-bg: #121212;
  --color-primary: #ffffff;
  --color-text-dark: #191919;
  --color-accent: #ffb743;
  --color-accent-light: #f9d6a2;
  --color-overlay: rgba(0, 0, 0, 0.95);
  --color-shadow: rgba(150, 150, 150, 0.7);

  /* Typo */
  --font-heading: "futura-bold";
  --font-bold: "Hind-Bold.ttf";
  --font-regular: "Hind-Regular.ttf";
  --font-semibold: "Hind-SemiBold.ttf";
  --font-light: "Hind-Light.ttf";

  /* Work page — section projet / carrousel */
  --work-image-width: 45%;
  --work-clip-angle: 12%;
    --work-image-fade: 80%;
  --carousel-interval: 5000ms;
  --carousel-transition: 0.6s ease-in-out;
}

/* --------------------------------------------------------------------------
   2. FONTS
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Hind-Regular.ttf";
  src: url("../FONTS/Hind-Regular.ttf"); /* bug corrigé : pointait vers Hind-Bold.ttf dans styleIndex.css */
}
@font-face {
  font-family: "Hind-Bold.ttf";
  src: url("../FONTS/Hind-Bold.ttf");
}
@font-face {
  font-family: "Hind-Light.ttf";
  src: url("../FONTS/Hind-Light.ttf");
}
@font-face {
  font-family: "Hind-SemiBold.ttf";
  src: url("../FONTS/Hind-SemiBold.ttf");
}
@font-face {
  font-family: "futura-bold";
  src: url("../FONTS/unicode.futurab.ttf");
}

/* --------------------------------------------------------------------------
   3. RESET / BASE
   -------------------------------------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

.bloc {
  display: block;
  clear: both;
}

body {
  position: relative;
}

a {
  text-decoration: none;
  color: var(--color-bg);
}

h1 {
  z-index: -10;
  font-size: 0.01vw;
}

h2 {
  color: var(--color-primary);
  font-family: var(--font-bold);
  font-size: 1vw;
  line-height: 1.3vw;
  letter-spacing: 0.7vw;
  margin-bottom: 1vw;
  z-index: 5;
  text-shadow: 4px 4px 17px black;
}

h3 {
  color: var(--color-bg);
  font-family: var(--font-bold);
  font-size: 2vw;
  line-height: 2vw;
  letter-spacing: 0.8vw;
}

h4 {
  color: var(--color-primary) !important;
  font-family: var(--font-bold);
  text-transform: uppercase;
  font-size: 1vw;
  line-height: 1.3vw;
  letter-spacing: 0.5vw;
  margin-bottom: 1vw;
  z-index: 5;
  text-shadow: 4px 4px 17px var(--color-shadow);
  transition: 0.5s;
}
h4 a { color: var(--color-primary); }
h4:hover { opacity: 70%; color: var(--color-primary); }

p {
  color: var(--color-primary);
  opacity: 1;
  font-family: var(--font-regular);
  font-size: 2vw;
  -webkit-margin-before: 0 !important;
  -webkit-margin-after: 0 !important;
  -webkit-margin-start: 0px !important;
  -webkit-margin-end: 0px !important;
}

video {
  z-index: 20;
  position: absolute;
  background: cover;
}

/* --------------------------------------------------------------------------
   4. KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes grow {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

@keyframes reveal {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0px); }
}
@keyframes reveal50 {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 0.5; transform: translateY(0px); }
}
@keyframes reveal30 {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 0.3; transform: translateY(0px); }
}

@keyframes bounce {
  0% { transform: translate(0, 0); }
  100% { transform: translate(0, 20px); }
}

@keyframes fadeOut {
  0% { opacity: 1; z-index: 1000; }
  99% { opacity: 0; }
  100% { opacity: 0; z-index: -1000; }
}

@keyframes scaleIntro {
  0% { transform: scaleY(0); }
  100% { transform: scaleY(1); }
}

@keyframes animatedBackground {
  0% { background-position: 0% 4%; }
  50% { background-position: 100% 97%; }
  100% { background-position: 0% 4%; }
}

@keyframes hithere {
  30% { transform: scale(1.08); }
  40%, 60% { transform: rotate(-10deg) scale(1.08); }
  50% { transform: rotate(10deg) scale(1.08); }
  70% { transform: rotate(0deg) scale(1.08); }
  100% { transform: scale(1); }
}
@keyframes hithere2 {
  30% { transform: scale(1.08); }
  40%, 60% { transform: rotate(-5deg) scale(1.08); }
  50% { transform: rotate(5deg) scale(1.08); }
  70% { transform: rotate(0deg) scale(1.08); }
  100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   5. COMPOSANTS PARTAGÉS — logo / social / mute / footer
   (scopés .page-home / .page-work car les 2 pages ont un #logo, #muteDiv,
   #socialPictosContainer et un header différents)
   -------------------------------------------------------------------------- */

/* Header */
header {
  position: absolute;
  z-index: 10;
}
.page-work header {
  width: 100%;
  height: 10%;
  z-index: 100;
}

/* Logo — version accueil (grand, centré en bas) */
.page-home #logo {
  position: absolute;
  width: 4em;
  left: 0;
  right: 0;
  bottom: 5em;
  margin-left: auto;
  margin-right: auto;
  z-index: 35 !important;
  cursor: pointer;
  animation: grow 1s forwards, hithere 2s ease infinite;
}
.page-home #logo svg {
  width: 4em !important;
  min-width: 4em;
}

/* Logo — version work (petit, en haut à gauche) */
.page-work #logo {
  margin-top: 20px;
  margin-left: 20px;
  z-index: 35;
  cursor: pointer;
  animation: grow 0.6s ease-in-out;
}
.page-work #logo svg {
  width: 40px;
}

#logo img {
  height: 100%;
}

/* Mute button — accueil uniquement (lottie player) */
.page-home #muteDiv {
  width: 3em !important;
  margin: 20px !important;
  opacity: 0.3;
  transition: 0.2s ease-in-out;
  transform: scale(1);
  cursor: pointer;
  animation: grow 1s forwards, hithere2 2s ease infinite;
}
.page-home #muteDiv:hover {
  transform: scale(1.03);
  opacity: 1;
}
.page-work #muteDiv {
  display: none;
}

/* Social pictos — commun (footer), overridé sur work (header work, toujours visible) */
#socialPictosContainer {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 500;
  display: none;
  flex-direction: column;
  align-items: center;
  width: auto;
  opacity: 0;
  transition: 0.25s ease-in-out;
}
.socialPictosContainerVisible {
  opacity: 1 !important;
  transition: 0.25s ease-in-out;
}
#socialPictosContainer a {
  width: 25px;
  margin-top: 5px;
  margin-bottom: 5px;
  opacity: 1;
  transition: 0.2s;
}
.socialPictos {
  transform: scale(1) rotate(0deg);
  transition: transform 0.15s ease-in-out;
}
.socialPictos:hover {
  transform: scale(1.05) rotate(-10deg);
}

.page-work #socialPictosContainer {
  right: 16px;
  z-index: 50;
  opacity: 1;
}
.page-work #socialPictosContainer a {
  opacity: 0.7;
  transform: scale(0);
  animation: grow 0.6s ease-in-out forwards;
  animation-delay: 0.3s;
}

/* Footer */
footer {
  width: 100vw;
  height: 50vh;
  position: absolute;
  bottom: 0;
  z-index: 0;
  display: flex;
  align-content: flex-end;
  align-items: flex-end;
  text-align: center;
}

#footerTxtPictosContainer {
  display: flex;
  align-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 50;
  position: absolute;
  top: 5vh;
}

#nameSocialContainer {
  width: auto;
}
#nameSocialContainer h2 {
  color: var(--color-text-dark);
  text-shadow: none;
  font-family: var(--font-bold);
  letter-spacing: normal;
  font-size: 2em;
  margin-bottom: 0.5em;
}

#txtFooterContainer {
  z-index: 50;
  width: 60%;
  margin-bottom: 3vw;
  display: flex;
  align-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
}
#txtFooterContainer h2 {
  font-size: 2.663vw;
  line-height: 2.5vw;
  text-shadow: none;
  color: var(--color-text-dark);
  letter-spacing: normal;
  margin-bottom: 1vw;
}
#txtFooterContainer p {
  font-size: 1em;
  text-align: justify;
  color: var(--color-text-dark);
  line-height: 1.2em;
  font-family: var(--font-regular);
}

.txtContainerVisible {
  opacity: 0.8;
  transition: 0.25s ease-in-out;
}
.txtContainerInvisible {
  opacity: 0;
  transition: 0.25s ease-in-out;
}

#animatedDivs {
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
}
#animatedDiv1 { transition-delay: 0.2s; }
#animatedDiv2 { transition-delay: 0.1s; }

.closedDivs {
  background: var(--color-primary);
  width: 0%;
  height: 33%;
  transition: 0.5s ease-in-out;
}
.openedDivs {
  background: var(--color-primary);
  width: 100%;
  height: 33%;
  transition: 0.5s ease-in-out;
}

/* Boutons liens */
.projectLink {
  position: relative;
  font-family: var(--font-bold);
  color: var(--color-primary);
  font-size: 15px;
  line-height: 19px;
  display: flex;
  text-decoration: none;
  border: 2px solid var(--color-primary);
  text-transform: uppercase;
  overflow: hidden;
  z-index: 15;
  padding: 5px 20px 2px;
  transition: 0.25s all ease;
}
.projectLink:hover {
  border-color: var(--color-accent);
}
.projectLinkBlack {
  color: var(--color-bg);
  border: 2px solid var(--color-bg);
  margin-top: 20px;
}
.projectLinkBlack:hover {
  border-color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   6. NAV WORK (menu overlay "SON / LIGHT / EVENTS 360 / LOCATION")
   -------------------------------------------------------------------------- */
#nav {
  display: none;
  align-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  transition: 0.5s;
  opacity: 0;
  z-index: 10;
  position: absolute;
  background-color: var(--color-overlay);
  cursor: url("../IMG/crossCursor.png"), auto;
}
.navHidden {
  z-index: -50;
  opacity: 0;
  transition: 0.5s;
}
.navShown {
  z-index: 5;
  opacity: 1;
  transition: 0.5s;
  background-color: var(--color-overlay);
}
.workLinksContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.workLinks {
  padding:15px;
  letter-spacing: 0.15vw;
  font-size: 2vw;
  opacity: 0.4;
  transition: all 0.2s ease-in-out;
  position: relative;
}
.workLinks:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   7. PAGE ACCUEIL (index.php)
   -------------------------------------------------------------------------- */

/* Média de fond des cartes catégories — vidéo OU image, même traitement */
.category video,
.category .categoryMedia {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.borderCategory video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


body.page-home {
  background: #000;
  overflow: hidden;
}

#introReveal {
  background-color: var(--color-bg);
  position: absolute;
  display: flex;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 1;
  animation: fadeOut 0.6s ease forwards;
  animation-delay: 0.8s;
}
#introReveal svg {
  width: 80px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -40px;
  margin-top: -31px;
}
#rect1Intro { animation: scaleIntro 0.5s ease-in-out forwards; transform: scaleY(0); }
#rect2Intro { animation: scaleIntro 0.5s ease-in-out forwards; animation-delay: 0.1s; transform: scaleY(0); }
#rect3Intro { animation: scaleIntro 0.5s ease-in-out forwards; animation-delay: 0.2s; transform: scaleY(0); }

#logosClients {
  position: absolute;
  opacity: 0;
  animation: reveal 1s forwards;
  animation-delay: 0.9s;
  right: 20px;
  width: 20em;
  z-index: 50;
  margin-top: 20px;
}

#lottie {
  z-index: 500;
}

#mainContainer {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: row;
  position: relative;
  z-index: 5;
}

.category {
  height: 100%;
  width: 25%;
  opacity: 20%;
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease-in-out;
  cursor: pointer;
  filter: blur(1em);
}
.category:hover {
  width: 30%;
  opacity: 100%;
  filter: blur(0);
}
.borderCategory {
  display: none;
  position: relative;
  overflow: hidden;
  text-align: center;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease-in-out;
}

.categoryTitle {
  color: var(--color-heading);
  font-family: var(--font-bold);
    color:white;
  line-height: 55px;
  position: relative;
  z-index: 30;
  font-size: 4vw;
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   8. PAGE WORK (work.php) — général
   -------------------------------------------------------------------------- */
.fp-section {
  background: linear-gradient(300deg, #353535, #101010);
  background-size: 400% 400%;
  animation: animatedBackground 10s ease infinite;
}

#headPart {
  width: 100%;
  padding: 0vw;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#menuCTAContainer {
  display: flex;
  flex-direction: row;
  align-content: center;
  align-items: center;
}

.CTAButtonHeader {
  margin-top: 18px;
  margin-right: 30px;
  animation: grow 0.6s ease-in-out;
  background: var(--color-primary);
  color: var(--color-bg);
}
.CTAButtonHeader:hover {
  background: none;
  color: var(--color-primary);
}

#menuWork {
  width: 50px;
  z-index: 10;
  padding-top: 20px;
  padding-right: 20px;
  cursor: pointer;
  transition: 0.4s;
  text-align: center;
}
#menuWork img {
  width: 100%;
  transition: 0.4s;
  animation: grow 0.6s ease-in-out forwards;
  animation-delay: 0.1s;
}
#menuWork p:hover {
  opacity: 1;
}

.surligne {
  color: var(--color-accent);
  cursor: pointer;
  text-align: center;
  transition: 0.4s;
}
.surligne:hover {
  color: var(--color-accent-light);
}

.projectPage {
  height: 100%;
  display: flex;
  align-content: center;
  align-items: center;
  flex-direction: column;
}

/* Fond / vidéo de la 1ère section (INCHANGÉ) */
#backgroundTraitsContainer {
  position: absolute;
  top: 0;
  width: 100vw;
  clip-path: polygon(0 0, 100% 44%, 100% 0);
}
#videoContainer {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  clip-path: polygon(0 0, 100% 63.5%, 100% 100%, 0% 100%);
  opacity: 0.5;
  mix-blend-mode: multiply;
  overflow: hidden;
}
#videoContainer video {
  transform: scale(5);
}

.partDescriptionContainer {
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: flex-start;
  width: 700px;
  padding: 80px;
  margin-top: 80px;
}
.partTitle, .partTitle2, .partTitle3 {
  font-family: var(--font-heading);
  font-size: 45px;
  line-height: 42px;
  text-shadow: none;
  color: var(--color-primary);
  letter-spacing: 0;
  margin: 0;
  padding: 0;
  transition: 0.8s;
  opacity: 0;
}
.partTitle  { animation: reveal   1s ease-in-out forwards; }
.partTitle2 { animation: reveal50 1s ease-in-out 0.2s forwards; }
.partTitle3 { animation: reveal30 1s ease-in-out 0.3s forwards; margin-bottom: 20px; }
.partTitle:hover {
  letter-spacing: 0px;
  opacity: 1;
}
.partDescription {
  font-size: 20px;
  line-height: 24px;
  text-align: justify;
  font-family: var(--font-semibold);
  padding-bottom: 40px;
  animation: reveal 1s ease-in-out;
  opacity: 0;
  animation-delay: 0.4s;
  animation-fill-mode: forwards;
}
.partDescriptionSecondary {
  font-size: 16px;
  line-height: 20px;
  text-align: justify;
  font-family: var(--font-regular);
  padding-bottom: 40px;
  animation: reveal 1s ease-in-out;
  opacity: 0;
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
}



#scrollIconTop {
  width: 40px;
  position: fixed;
  left: 20px;
  bottom: 30px;
  transform: rotate(180deg);
  cursor: pointer;
  opacity: 0;
  transition: 0.5s;
  z-index: 3;
}
#scrollIconTop:hover {
  opacity: 1 !important;
}

/* --------------------------------------------------------------------------
   9. SECTIONS PROJET (sections fullpage suivantes)
   -------------------------------------------------------------------------- */
.section {
  position: relative; /* garantit un containing block fiable pour .projectRight,
                          quel que soit le wrapper interne de fullPage.js */
}

.project {
  position: relative;
  z-index: 2;
  height: 60%;
  max-width: 100vw;
  padding-left: 100px;
  padding-right: 100px;
  pointer-events: none; /* laisse passer les clics vers le carrousel/la flèche en dessous */
}

.projectTitleContainer,
.projectInfosContainer {
  pointer-events: auto; /* le texte et les liens restent cliquables */
}

.projectInfosContainer {
  width: 100%;
  display: flex;
  align-content: center;
}

.projectLeft {
  width: 100%;
  max-width: 550px; /* même largeur que .partDescriptionContainer, cohérence avec la 1ère section */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.projectTitleContainer,
.titleNumber {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 60px;
  line-height: 0.8em;
  letter-spacing: normal;
  display: flex;
  flex-direction: row;
  align-items: baseline;
}
.projectTitle {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 36px;
  line-height: 0.8em;
  letter-spacing: normal;
  margin-bottom: 20px;
}

.roleDateContainer {
  display: flex;
  flex-direction: row;
  align-items: baseline;
}
.projectRoleTitle {
  font-family: var(--font-bold);
  color: var(--color-primary);
  font-size: 20px;
}
.projectRole {
  font-family: var(--font-regular);
  color: var(--color-primary);
  padding-left: 15px;
  font-size: 15px;
}
.projectDescription {
  font-family: var(--font-regular);
  color: var(--color-primary);
  font-size: 15px;
  line-height: 20px;
  width: 100%;
  max-height: 40vh;
  overflow-x: hidden;
  text-align: justify;
  padding-top: 20px;
  padding-bottom: 20px;
}

/* --------------------------------------------------------------------------
   10. IMAGE / VIDÉO EN "BG" : crop en angle + carrousel + nav numérotée
   -------------------------------------------------------------------------- */
.projectRight {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--work-image-width);
  height: 100%;
  z-index: 1;
  overflow: hidden;
  clip-path: polygon(var(--work-clip-angle) 0%, 100% 0%, 100% 100%, 0% 100%);

  /* Masque alpha : transparent côté gauche → opaque à partir de --work-image-fade */
  -webkit-mask-image: linear-gradient(
    100deg,
    transparent 20%,
    black var(--work-image-fade, 70%)
  );
  mask-image: linear-gradient(
    100deg,
    transparent 20%,
    black var(--work-image-fade, 70%)
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.projectRight video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform var(--carousel-transition);
}
.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}
.carousel-slide img,
.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-arrow {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.carousel-arrow {
  color: var(--color-primary);
  transition: 0.3s;
}

.carousel-arrow svg {
  width: 48px;
  height: 48px;
  display: block;
    transform: rotate(-90deg);
}

.carousel-arrow:hover {
  color: var(--color-accent);

}

.carousel-arrow:hover {
  border-color: var(--color-accent);
}
.carousel.single .carousel-arrow {
  display: none;
}

/* Nav numérotée en haut à droite de la div image (desktop uniquement) *//* Nav fullpage en haut à droite — titres sur desktop, numéros sur mobile */
.fp-nav-numbers {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.fp-nav-item {
  cursor: pointer;
  text-align: right;
  max-width: 220px;
}

.fp-nav-number,
.fp-nav-title {
  font-family: var(--font-bold);
  color: var(--color-primary);
  opacity: 0.4;
  transition: 0.3s;
}

.fp-nav-title {
  font-size: 13px;
  letter-spacing: 0.05vw;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.fp-nav-number {
  font-size: 14px;
  display: none;
}

.fp-nav-item.active .fp-nav-title,
.fp-nav-item.active .fp-nav-number,
.fp-nav-item:hover .fp-nav-title,
.fp-nav-item:hover .fp-nav-number {
  opacity: 1;
  color: var(--color-accent);
}

.fp-nav-item:first-child .fp-nav-title {
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}



@media screen and (max-width: 949px) {
  .fp-nav-numbers {
    right: 20px;
    top: 24px;
  }
  .fp-nav-title {
    display: none;
  }
  .fp-nav-number {
    display: block;
  }
}



/* --------------------------------------------------------------------------
   11. MEDIA QUERIES — mobile / tablette
   -------------------------------------------------------------------------- */
@media screen and (max-width: 750px) {
  /* Nav overlay */
  #nav {
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100%;
    transition: 0.5s;
    position: absolute;
    justify-content: center;
  }
  .workLinks {
    font-size: 1.3em;
    padding: 1.5em;
    line-height: 1em;
  }

  /* Footer / accueil */
  #txtFooterContainer { width: 80%; margin-bottom: 8vw; }
  #txtFooterContainer h2 { font-size: 20px; margin-bottom: 20px; line-height: 20px; }
  #txtFooterContainer p { font-size: 18px; line-height: 22px; }
  #nameSocialContainer { display: flex; align-content: center; align-items: baseline; }
  #nameSocialContainer h2 { font-size: 4.5vw; margin-bottom: 2vw; }

  h1 {
    text-align: center;
    font-size: 0.001vw;
    width: 100%;
    text-shadow: 4px 4px 17px var(--color-shadow);
  }
  h2 { font-size: 3.7vw; margin-bottom: 5vw; }
  h3 { font-size: 6vw; line-height: 2vw; letter-spacing: 0.8vw; }
  h4 { font-size: 3vw; }

  footer { height: 80vh; }

  #socialPictosContainer {
    flex-direction: row;
    position: absolute;
    left: 0; right: 0;
    margin-left: auto; margin-right: auto;
    width: 160px;
  }
  #socialPictosContainer a { width: 30px; margin: 5px; }

  #animatedDiv1 { transition-delay: 0.4s; }
  #animatedDiv2 { transition-delay: 0.2s; }

  /* Home */
  body.page-home {
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100%;
    overscroll-behavior-y: contain;
  }
  body.page-home::-webkit-scrollbar { display: none; }

  .page-home #logosClients { position: fixed; right: 20px; width: 20em; margin-top: 20px; }
  .page-home #logo { position: fixed; opacity: 1; animation: hithere 2s ease infinite; }
  .page-home #muteDiv { position: fixed; width: 3em !important; }
  .page-home #logo svg { width: 3em !important; }

  #mainContainer {
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    /* marge pour pouvoir centrer la 1re et la dernière carte (250px / 2 = 125px) */
    padding-top: calc(50vh - 125px);
    padding-bottom: calc(50vh - 125px);
    padding-top: calc(50dvh - 125px);
    padding-bottom: calc(50dvh - 125px);
  }

  .category {
    width: 100%;
    height: 250px;
    min-height: 250px;
    flex: 0 0 250px;
    box-sizing: border-box;
    opacity: 0.3;
    overflow: hidden;
    filter: blur(0);
    touch-action: pan-y;
    transition: height .4s ease-in-out, min-height .4s ease-in-out,
                flex-basis .4s ease-in-out, opacity .4s ease-in-out;
  }
  .category:hover,
  .category:focus-visible {
    width: 100%;
    opacity: 1;
    filter: blur(0);
  }
  .category[aria-current="true"] {
    height: 400px;
    min-height: 400px;
    flex-basis: 400px;
    opacity: 1;
  }

  /* une seule stratégie : média absolu qui couvre toute la carte */
  .category video,
  .category .categoryMedia,
  .borderCategory video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .borderCategory {
    display: flex;
    position: relative;
    width: 100%;
    height: 150px;
    min-height: 150px;
    flex: 0 0 150px;
    box-sizing: border-box;
    opacity: 0.1;
    overflow: hidden;
    align-items: center;
    justify-content: center;
  }

  .category h2 { width: 100%; }
  .categoryTitle { opacity: 1; font-size: 2.5em; }
  #footer { position: fixed; }

  /* Work — sections projet en colonne */
  .project {
    height: 100%;
    padding-left: 24px;
    padding-right: 24px;
  }
  .projectLeft {
    max-width: 100%;
  }
  .projectRight {
    width: 70%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 55%);
    mask-image: linear-gradient(90deg, transparent 0%, black 55%);
  }
  .projectTitleContainer { margin-top: 20px; }
  .projectTitle { font-size: 20px; line-height: 20px; margin-bottom: 10px; }
  .projectDescription { font-size: 13px; line-height: 18px; padding-top: 10px; }
  .titleNumber { font-size: 30px; }

  .CTAButtonHeader {
    margin-right: 15px;
    font-size: 12px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .partDescriptionContainer { padding: 20px; width: 100%; margin-top: 0; }
  .partTitle, .partTitle2, .partTitle3 { font-size: 32px; line-height: 32px; }
  .partDescription { font-size: 16px; line-height: 20px; width: 90%; }
  .partDescriptionSecondary { font-size: 14px; line-height: 18px; width: 90%; }
  .scrollIconContainer { width: 90%; }
}

@media screen and (max-width: 950px) and (min-width: 751px) {
  .project { padding-left: 80px; padding-right: 80px; }
}

@media screen and (max-width: 1200px) {
  .projectVideo { max-height: 100%; }
}

@media screen and (max-width: 450px) {
  .page-home #logosClients { margin-top: 25px; width: 15em; }
  #socialPictosContainer { margin-top: 40px; }
  #socialPictosContainer a { margin: 5px; }
}

@media screen and (max-width: 400px) {
  #txtFooterContainer p { font-size: 16px; line-height: 20px; }
  #txtFooterContainer { width: 90%; }
  #txtFooterContainer h2 { font-size: 25px; line-height: 25px; }
}

/* --------------------------------------------------------------------------
   12. MEDIA QUERIES — grands écrans
   -------------------------------------------------------------------------- */
@media screen and (min-width: 1440px) {
  .page-work #logo { margin-top: 2vw; margin-left: 2vw; }
  .page-work #logo svg { width: 2.7vw; }
  #menuWork { width: 2.5vw; padding-top: 2vw; padding-right: 2vw; }
  .page-work #socialPictosContainer { right: 2vw; bottom: 2vw; }
  .page-work #socialPictosContainer a { width: 2vw; margin-top: 0.3vw; margin-bottom: 0.3vw; }

  .project { height: 60%; padding-left: 7vw; padding-right: 7vw; }
  .projectLeft { padding-right: 2vw; }
  .projectTitle { font-size: 2.5vw; line-height: 0.4vw; margin-bottom: 2vw; }
  .titleNumber { font-size: 4vw; line-height: 0.4vw; }
  .projectRole { padding-left: 1vw; font-size: 1vw; }
  .projectRoleTitle { font-size: 1.3vw; }
  .projectDescription { font-size: 1.1vw; line-height: 1.4vw; padding-top: 2vw; padding-bottom: 1.2vw; }
  .projectLink {
    font-size: 1.1vw;
    border: 0.12vw solid var(--color-primary);
    padding: 0.5vw 1.3vw 0.3vw;
  }
  .CTAButtonHeader { margin-top: 1.7vw; }

  .partDescriptionContainer { padding: 5vw; width: 42vw; margin-top: 5vw; }
  .partTitle, .partTitle2, .partTitle3 { font-size: 3.1vw; line-height: 3vw; }
  .partDescription { font-size: 1.4vw; line-height: 1.7vw; width: 90%; }
  .partDescriptionSecondary { font-size: 1.2vw; line-height: 1.5vw; width: 90%; }
  .scrollIcon { width: 3.5vw; }
}

@media screen and (min-width: 1500px) {
  .projectLinkBlack { margin-top: 2vw; }
  #txtFooterContainer p { font-size: 1.2vw; }
  #nameSocialContainer { width: 16vw; }
  #nameSocialContainer h2 { font-size: 2.2vw; margin-bottom: 0.7vw; }
  .page-home #logo { width: 3.2vw; }
  .page-home #muteDiv { width: 3.2vw !important; margin: 2vw !important; }
  .page-home #logosClients { right: 2.2vw; width: 22vw; margin-top: 2vw; }
  #socialPictosContainer { width: 100%; }
}