/* ======================
   RESET + BASE
====================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  cursor: none;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #fff;
  color: #181b30;
  font-family: "uncut", sans-serif;
  font-weight: 400;
  font-style: normal;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin-bottom: 20px;
}
#projets{
  scroll-margin-top: 0px;
}
/* ======================
   CURSEUR CUSTOM
====================== */
.custom-cursor {
  width: 25px;
  height: 25px;
  background-color: #3022fa;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.5);
  transition: transform 0.15s ease, background-color 0.15s ease;
  z-index: 9999;
}

.custom-cursor.cursor-hover {
  transform: translate(-50%, -50%) scale(1.3);
  background-color: #fceb30;
}

/* ======================
   HEADER
====================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  height: 90px;
  padding: 20px 40px;
  background-color: #fff;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

header.shrink {
  padding: 10px 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Logo */

.logo {
  position: relative;
  height: 50px;
}

header.shrink .logo {
  height: 50px;
}

.logo img {
  position: absolute;
  inset: 0 auto auto 0;
  height: 100%;
  width: auto;
  transition: opacity 0.2s ease;
}

/* Logo caché au départ */
header .logo {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Logo visible après scroll */
header.show-logo .logo {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.logo-default {
  opacity: 1;
}

.logo-hover {
  opacity: 0;
}

.logo:hover .logo-default {
  opacity: 0;
}

.logo:hover .logo-hover {
  opacity: 1;
}

/* Navigation */
header nav a {
  margin-left: 30px;
  color: #3022fa;
  font-size: 15px;
  font-weight: 600;
}

header nav a:hover {
  color: #fceb30;
}

/* ======================
   HERO VIDEO
====================== */
.hero-video{
  min-height: calc(100vh - 120px); /* hauteur écran moins header */
  padding: 120px 40px 40px;
  display: flex;
  align-items: center;             /* si tu l’avais centré */
  overflow: visible;
  transition: opacity 0.6s ease, transform 0.6s ease; /* pour le fade */
}


/* Quand on scroll */
body.scrolled .hero-video {
  opacity: 0;
  pointer-events: none;
}

/* ✅ Layout : vidéo | flèche | texte */
.hero-inner{
  width: 100%;
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 50px;
  align-items: start;
  transform: translateY(150px);

  min-height: 140vh;     /* ✅ C’EST ÇA qui crée l’espace réel */
}

/* ✅ important : tous les enfants commencent "au top" */
.hero-inner > *{
  align-self: start;
  margin: 0;
  padding: 0;
  margin-left: clamp(40px, 8vw, 160px);
}
/* colonne vidéo : on peut laisser overflow visible (pas de recadrage) */
.hero-inner > :first-child{
  overflow: visible;
}
/* --- VIDEO --- */
/* vidéo : réglage statique */
.intro-video{
  width: clamp(220px, 18vw, 360px);
  height: auto;
  display: block;
  margin-right: -150px; /* rapproche la vidéo de la flèche */

  transform-origin: top left;
  transform: translateY(var(--video-y, 0px)) scale(var(--video-scale, 1));
  --video-scale: 1.3; /* agrandit sans déformer */
  --video-y: -95px;    /* remonte la vidéo */
}

/* --- BLOC DROIT = flèche + texte --- */
.hero-right{
  position: relative;

  --arrow-w: clamp(320px, 26vw, 560px); /* 👉 augmente si tu veux plus grand */
  --gap: 50px;

  padding-left: calc(var(--arrow-w) + var(--gap));
}

.hero-right .hero-text{
  margin-left: -150px;
}
/* flèche : on évite le flex ici, on aligne simplement au top */
/* --- FLECHE --- */
.hero-arrow{
  position: absolute;
  top: 0;
  left: 0;

  width: var(--arrow-w);
  aspect-ratio: 250.69 / 268.62; /* ✅ proportions du viewBox recadré */
  height: auto;                  /* ✅ la hauteur suit automatiquement */
  display: block;
  line-height: 0;
  color: #3022FA;
}

.arrow-svg{
  width: 100%;
  height: 100%;
  display: block;
}

.hero-arrow:hover{
  color:#fceb30;
}

/* --- TEXTE --- */
.hero-text{
  font-family: "redaction", serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(22px, 2.6vw, 42px);
  line-height: 1.2;
  color: #3022FA;
  margin: 0;
  padding: 0;
}


em{
  font-style: italic;
}
.hero-text em{
  font-style: italic;
  font-weight: 400;
}

/* ======================
   ARROW DRAW (comme avant)
====================== */
.arrow-path{
  fill:none;
  stroke:currentColor;
  stroke-width:10px;
  stroke-linecap:round;
  stroke-linejoin:round;

  stroke-dasharray:100;
  stroke-dashoffset:100;

  animation: drawOnce 2.4s ease-in-out 0.4s forwards; 
}

/* animation une seule fois */
@keyframes drawOnce{
  0%   { stroke-dashoffset:100; }
  65%  { stroke-dashoffset:0; }
  100% { stroke-dashoffset:0; }
}

/* ======================
   GALERIE
====================== */
.gallery-wrapper {
  display: flex;
  gap: 40px;
  padding: 120px 40px 1500px;
  overflow-x: hidden;   /* évite le scroll horizontal */
  overflow-y: visible;  /* ✅ ne coupe plus le bas */
}


.gallery-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.project {
  break-inside: avoid;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.project a {
  display: block;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
}

.project img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.project:hover img {
  transform: scale(1.05);
  opacity: 0;
}

/* Overlay */
.overlay {
  position: absolute;
  inset: 0;
  background-color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.project:hover .overlay {
  opacity: 0;
}

/* Titre hover (redaction = titres) */
.project .title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;

  padding: 10px;
  max-width: 90%;
  text-align: center;
  line-height: 1.3;

  font-family: "redaction", serif;
  font-size: 25px;
  font-weight: 700;
  color: #3022FA;

  opacity: 0;
  transition: opacity 0.3s ease;

  pointer-events: none;
}

.project:hover .title {
  opacity: 1;
}

.column-left,
.column-right {
  transform: translate3d(0,0,0);
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ======================
   FONTS LOCALES
====================== */
@font-face {
  font-family: "uncut";
  src: url("fonts/UncutSans-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "uncut";
  src: url("fonts/UncutSans-LightItalic.woff") format("woff");
  font-weight: 300;
  font-style: italic;
}
@font-face {
  font-family: "uncut";
  src: url("fonts/UncutSans-Book.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "uncut";
  src: url("fonts/UncutSans-BookItalic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "uncut";
  src: url("fonts/UncutSans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "uncut";
  src: url("fonts/UncutSans-RegularItalic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "uncut";
  src: url("fonts/UncutSans-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "uncut";
  src: url("fonts/UncutSans-MediumItalic.woff") format("woff");
  font-weight: 500;
  font-style: italic;
}
@font-face {
  font-family: "uncut";
  src: url("fonts/UncutSans-Semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "uncut";
  src: url("fonts/UncutSans-SemiboldItalic.woff") format("woff");
  font-weight: 600;
  font-style: italic;
}
@font-face {
  font-family: "uncut";
  src: url("fonts/UncutSans-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "uncut";
  src: url("fonts/UncutSans-BoldItalic.woff") format("woff");
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: "redaction";
  src: url("fonts/Redaction10-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: bold;
}
@font-face {
  font-family: "redaction";
  src: url("fonts/Redaction10-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "redaction";
  src: url("fonts/Redaction10-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
}

/* ======================
   PAGES PROJET
====================== */
body.projet {
  background-color: #fff;
  padding-top: 100px;
  margin: 0;
  height: 100vh;
  overflow: hidden;

  font-family: "uncut", sans-serif;
  font-weight: 400;
}

.project-container {
  display: flex;
  gap: 60px;
  width: 100%;
  margin: 0;
  padding: 30px 40px 60px;
  align-items: flex-start;
  height: calc(100vh - 120px);
}

.project-images {
  flex: 1;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: 100%;
  overflow-y: auto;
  padding-right: 20px;
}

.project-images img,
.project-images video {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border: none;
  object-fit: cover;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-text {
  flex: 1;
  max-width: 30%;
  padding: 0 30px;
  position: sticky;
  top: 0;
  height: fit-content;
  align-self: flex-start;

  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  animation-delay: 0.2s;

  font-family: "uncut";
  font-weight: 300;
}

.project-text p {
  line-height: 1.2;
  font-size: 15px;
  color: #181b30;
  white-space: normal;
  font-family: "uncut";
  font-weight: 300;
}

.project-title {
  font-family: "redaction", serif;
  font-weight: 700;
  font-size: 30px;
  margin-bottom: 10px;
  color: #181b30;
  white-space: normal;
}
.project-year{
  display: inline-block;
  margin-top: 5px;
  margin-bottom: 20px;

  padding: 6px 14px;
  border-radius: 20px;

  background-color: #3022FA; /* ton bleu */
  color: #ffffff;

  font-family: "uncut", sans-serif;
  font-weight: 400;
  font-size: 14px;
}

.back-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:Opx;
  width:110px;
  height:110px;
  color:#3022FA;           /* bleu */
  text-decoration:none;
}

.back-link:hover{
  color:#fceb30;           /* jaune */
}

.arrow-svg{
  width:100%;
  height:100%;
}

/* look du trait */
.arrow-path{
  fill:none;
  stroke:currentColor;
  stroke-width:10px;        /* + gras (mets 4px si tu veux comme Illustrator) */
  stroke-linecap:round;
  stroke-linejoin:round;

  /* animation “dessin” en boucle */
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawOnce 2.6s ease-in-out forwards;
  animation-delay: 0.6s; /* micro délai */
}


@keyframes drawOnce{
  0%   { stroke-dashoffset: 100; }
  55%  { stroke-dashoffset: 0; }   /* dessiné */
  100% { stroke-dashoffset: 0; }   /* reste dessiné */
}

.inline-link{
  color: #3022FA;
  font-weight: 400;
  text-decoration: none;

  background: linear-gradient(#3022FA, #3022FA);
  background-size: 0% 2px;        /* ligne invisible au départ */
  background-position: 0 100%;
  background-repeat: no-repeat;

  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;

  transition: background-size 0.3s ease;
}

.inline-link:hover{
  background-size: 100% 2px;      /* animation */
}

/* ======================
   À PROPOS
====================== */
.a-propos-container {
  padding: 160px 40px 60px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.a-propos-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.a-propos-image {
  flex: 0 0 300px;
}

.a-propos-image img {
  width: 100%;
  max-width: 300px;
  display: block;
  margin-bottom: 20px;
}

.a-propos-text {
  font-family: "uncut";
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
}

.a-propos-text p {
  margin-bottom: 20px;
  line-height: 1.2;
  font-size: 15px;
}

.a-propos-text strong {
  font-weight: 700;
}
.page-about{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-about main{
  flex: 1;
}
/* ======================
   FOOTER
====================== */
footer {
  height: 80px;
  padding: 20px 40px;
  background-color: #fff;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 16px;
  color: #3022fa;
  margin-top: auto;
}
.contact-footer{
  display: flex;
  align-items: center;
  gap: 25px;
  color: #3022FA;
}

/* bloc "Me contacter →" */
.contact-label{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 400;
}

/* taille flèche */
.contact-label .arrow-svg{
  width: 80px;
  height: 80px;
}

/* mail cliquable */
.contact-mail{
  color: #3022FA;
  text-decoration: none;
  position: relative;
  font-weight: 400;
  margin-left: -20px;
}

.contact-mail:hover{
  color: #fceb30;
}
@keyframes drawLoopPause {
  /* invisible */
  0%   { stroke-dashoffset: 100; }

  /* dessin */
  30%  { stroke-dashoffset: 0; }

  /* pause visible */
  60%  { stroke-dashoffset: 0; }

  /* effacement (retour vers invisible, sans négatif) */
  90%  { stroke-dashoffset: 100; }

  /* pause invisible */
  100% { stroke-dashoffset: 100; }
}

/* uniquement le footer */
.arrow-loop .arrow-path{
  stroke-dasharray: 100;
  stroke-dashoffset: 100;

  animation: drawLoopPause 4.5s linear infinite !important; /* ✅ écrase tout */
}
/* ======================
   MOBILE
====================== */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .custom-cursor {
    display: none;
  }

  * {
    cursor: auto;
  }

  header {
    height: 60px;
    padding: 10px 20px;
  }

  .logo {
    height: 30px !important;
  }

  header nav a {
    font-size: 14px;
    margin-left: 15px;
  }

  /* HERO */
.hero-video{
  min-height: 100vh;              /* prend exactement la hauteur écran */
  padding: 20px 20px 20px;        /* moins d’espace en haut/bas */
  display: flex;
  align-items: center;
  justify-content: center;
}

  /* container mobile */
  .hero-inner{
    display: flex;
    flex-direction: column;
    align-items: center;   /* vidéo centrée */
    gap: 20px;

    margin-left: 0;
    transform: none;
  }
  

  /* vidéo */
.intro-video{
  width: min(280px, 80vw);
  height: auto;

  margin: 0 auto;

  transform: none !important;
  transform-origin: center center !important;
  --video-scale: 1;
  --video-y: 0;
}

  /* bloc droite = texte puis flèche */
  .hero-right{
    position: static;
    padding-left: 0;
    margin-left: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
  }

  /* TEXTE (centré) */
  .hero-text{
    width: 100%;
    text-align: center;     /* ✅ corrige le texte collé à gauche */
    margin: 0;
    font-size: clamp(17px, 5vw, 24px);
    line-height: 1.2;
    padding: 0 15px;
    
  }


  /* FLÈCHE (en bas) */
  .hero-arrow{
    position: static;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    order: 2;
  }

  /* ✅ on force l’ordre : texte avant flèche */
  .hero-text{ order: 1; }

   /* force le centrage du texte, quoi qu'il arrive */
  .hero-video .hero-right .hero-text{
    margin-left: 0 !important;     /* annule le -150px desktop */
    text-align: center !important; /* force */
    width: 100%;
  }

  /* si tu gardes les <br>, ils cassent la mise en page */


  #projets{
    scroll-margin-top: 70px;
  }



  .gallery-wrapper {
    flex-direction: column;
    padding: 40px 20px;
    gap: 0;
  }

  .project {
    margin-bottom: 30px;
  }

  .project .title {
    display: none;
  }

  .project img {
    opacity: 1 !important;
    transform: none !important;
  }

  footer {
    height: auto;
    padding: 20px;
    font-size: 14px;
    justify-content: center;
    text-align: center;
  }

  .a-propos-content {
    flex-direction: column;
  }
  .a-propos-text .no-br br{
  display: none;
  }

  body.projet {
    overflow: auto;
    height: auto;
    padding-top: 60px;
  }

  .project-container {
    flex-direction: column;
    height: auto;
    padding: 40px 20px;
  }

  .project-text {
    max-width: 100%;
    position: static;
    padding: 0;
    margin-bottom: 40px;
  }

  .project-images {
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  
}
@media (max-width: 768px){

  /* ====== HEADER : pas de hover qui reste ====== */
  header nav a:hover,
  header nav a:focus,
  header nav a:active{
    color: #3022FA !important;
  }

  /* ====== FLÈCHES : pas de hover ====== */
  .hero-arrow:hover,
  .hero-arrow:focus,
  .hero-arrow:active,
  .back-link:hover,
  .back-link:focus,
  .back-link:active{
    color: #3022FA !important;
  }

  /* ====== PROJETS : enlever l'effet hover (image qui disparaît, zoom, titre) ====== */
  .project:hover img{
    transform: none !important;
    opacity: 1 !important;
  }

  .project:hover .title{
    opacity: 0 !important;
  }

  .project:hover .overlay{
    opacity: 0 !important;
  }

  /* iOS : évite certains états "collés" visuellement */
  a, button{
    -webkit-tap-highlight-color: transparent;
  }
   /* Désactive l'effet hover du logo */
  .logo:hover .logo-default{
    opacity: 1 !important;
  }

  .logo:hover .logo-hover{
    opacity: 0 !important;
  }

  
}

