@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root{
  --font-main: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --h1-size: 42px;
  --h2-size: 30px;
  --h3-size: 20px;
  --p-size: 0.9rem;

  --h-weight: 700;
  --p-weight: 300;

  --line: 1.2;
  --line-p: 1.6;

  --violet-fonce:#1C1A35;
  --violet-clair:#4F5487;
  --vert:#CBD27A;
  --blanc:#f4f4f4;
}


/* TOPBAR */

/* ===== TOPBAR - V1 strict minimum ===== */

/* Header centré */
.topbar{
  position: fixed;
  top: 30px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
}

/* Cartouche violet foncé */
.topbar-box{
  width: 220px;
  height: 70px;
  background: var(--violet-fonce);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
}

/* Logo */
.topbar-link{
  display: inline-flex;
  align-items: center;
}

.topbar-logo{
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Petite boite blanche de nav */
.topbar-nav{
  width: 120px;
  height: 50px;
  background: var(--blanc);
  border-radius: 12px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 6px;
  padding: 6px;
}

.topbar-nav-link{
  text-decoration: none;
  color: var(--violet-fonce);
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.topbar-nav-link span{
  font-size: 10px;
  line-height: 1;
}

.topbar-nav-link img{
  width: 30px;
  height: 30px;
  object-fit: contain;
}




/*SIDEBAR*/

/* ===== SIDENAV ===== */

.sidenav{
  position: fixed;
  top: 0;
  left: 0;
  width: 90px;
  height: 100vh;
  z-index: 90;
  transition: opacity 200ms ease, transform 200ms ease;
}

.sidenav-nav{
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sidenav-link{
  flex: 1 1 0;                 /* 1/3 - 1/3 - 1/3 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: flex-grow 200ms ease;
}

.sidenav-link:active,
.sidenav-link.is-active,
.sidenav-link[aria-current="page"]{
  flex-grow: 1.7;
}

.sidenav.is-hidden{
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
}

/* Couleurs des 3 blocs (ordre: Design / Web / Photo) */
.sidenav-link:nth-child(1){
  background: var(--vert);
  color: var(--violet-fonce);
}

.sidenav-link:nth-child(2){
  background: var(--violet-fonce);
  color: var(--vert);
}

.sidenav-link:nth-child(3){
  background: var(--violet-clair);
  color: var(--violet-fonce);
}

/* Icônes */
.sidebar-icon{
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Texte vertical */
.sidebar-text{
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;    /* texte vertical */
  transform: rotate(180deg);    /* pour lire de bas en haut */
}

/* LIENS CONTACT */
.home-contact-links{
  display: flex;
  gap: 16px;
  padding-top: 10px;
}

.contact-links-fixed{
  display: flex;
  position: fixed;
  top: 30px;
  right: 24px;
  z-index: 95;
  flex-direction: column;
  gap: 12px;
  transition: opacity 200ms ease, transform 200ms ease;
}

.contact-links-fixed.is-hidden{
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
}

.contact-link img{
  width: 32px;
  height: auto;
}


/* FOOTER */

footer{
  background-color: var(--violet-fonce);
  color: var(--blanc);
  height: 40px;
  width: 100vw;
  position: fixed;
  bottom: 0;
  z-index: 89;
  text-align: right;
  
}

footer p{
  margin-top: 10px;
  margin-right: 50px;
  font-weight: 700;
  max-width: 100%;
}



/*COMMON*/

body{
  font-family: var(--font-main);
  font-size: var(--p-size);
  font-weight: var(--p-weight);
  line-height: var(--line-p);
  background-color: var(--blanc);
  margin: 0;
}

html, body{
  scroll-behavior: auto;
  scroll-snap-type: y mandatory;
}

html.is-smooth,
body.is-smooth{
  scroll-behavior: smooth;
}

h1, h2, h3{
  font-weight: var(--h-weight);
  line-height: var(--line);
  margin: 0;
}

h1{ font-size: var(--h1-size); }
h2{ font-size: var(--h2-size); }
h3{ font-size: var(--h3-size); }

p{ 
  font-size: var(--p-size);
  line-height: 1.5;      /* confort de lecture */
  max-width: 65ch;       /* longueur de ligne */
  margin: 0 0 1em;
  letter-spacing: 0.01em;
  word-spacing: 0.02em;
  hyphens: auto;         /* césure (lang=fr requis) */
  overflow-wrap: break-word;
  text-wrap: pretty;
 }

 p + p{
  margin-top: 0.2em;
}

#home-s1, #home-s2 {
  min-height: 100vh;
  scroll-snap-align: start;
}


/* Accueil section 1 */

#home-s1{
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  align-content: center;
  gap: 48px;
  min-height: 100vh;
  background-color: var(--violet-fonce);
  padding-left: 10%;
  padding-right: 10%;
}

.home-photo{
  max-width: 380px;
  min-width: 200px;
  width: 100%;
  height: auto;
}


.home-text h1,
.home-text h2,
.home-text p{
  color: var(--blanc);
}

.home-text p span{
  font-weight: var(--h-weight);
}

/* Accueil section 2 */

#home-s2{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}

#home-s2 h2{
  text-align: left;
  color: var(--vert);
  padding-left: 10%;
  padding-right: 10%;
}

/* Carrousel */

@keyframes carousel-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.carousel{
  --slide-height: auto;
  --slide-gap: 24px;
  overflow: hidden;
  width: 100%;
}

.carousel-track{
  display: flex;
  gap: var(--slide-gap);
  width: max-content;
  animation: carousel-scroll 60s linear infinite;
}

.carousel-slide{
  flex: 0 0 36.36vw;
  max-width: 420px;
  min-width: 220px;
  height: var(--slide-height);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.project-image{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79,84,135,0.2), rgba(28,26,53,0.2));
}

/* PAGES PROJETS */

.project-navigation{
  position: fixed;
  right: 10%;
  bottom: 64px;
  z-index: 96;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.project-dot{
  width: 15px;
  height: 15px;
  border: 0;
  padding: 0;
  background: transparent url("../assets/icons/boule-vide-violetclair.svg") center / contain no-repeat;
  cursor: pointer;
}

.project-dot.is-active{
  background-image: url("../assets/icons/boule-pleine-violetclair.svg");
}

/* Design/Web/Photo sections */

#design h2,
#web h2,
#photo h2{
  color: var(--vert);
  text-transform: uppercase;
}

#design h2,
#photo h2{
  margin-bottom: 20px;
}

#design h3,
#web h3,
#photo h3{
  text-transform: uppercase;
  margin-bottom: 20px;
}

#design p,
#web p,
#photo p{
  text-align: justify;
  font-size: 10pt;
}

#design span,
#web span,
#photo span{
  font-weight: 600;
}

#design section,
#web section,
#photo section{
  height: 100vh;
  box-sizing: border-box;
  padding: 0 10%;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scroll-snap-align: start;
}

.content-col-left{
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 70%;
  align-self: center;
}

.project-link-btn{
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 11pt;
  font-weight: 600;
  color: var(--vert);
}

#placeholder-btn{
  background-color: var(--violet-clair);
  transition: 0.5s;
}

#placeholder-btn:hover{
  background-color: var(--vert);
  color: var(--violet-fonce);
}

.contact-page{
  background-color: var(--vert);
  margin: auto;
}

.placeholder-contact{
  font-weight: 500;
  font-size: 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.content-grid-1-2{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 35px;
  width: 100%;
  height: 90%;
  min-width: 760px;
  align-items: center;
}

.content-col-right{
  height: 70%;
  display: flex;
  align-items: flex-end;
}

.content-media-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(3, minmax(90px, 1fr));
  gap: 12px;
  width: 100%;
  height: 100%;
  min-width: 760px;
}

.media-item{
  background: linear-gradient(135deg, rgba(79,84,135,0.25), rgba(28,26,53,0.25));
  border-radius: 12px;
}

.layout-startdeal .media-item-1{ grid-column: 1 / 3; grid-row: 1 / 3; }
.layout-startdeal .media-item-2{ grid-column: 3 / 7; grid-row: 1 / 2; }
.layout-startdeal .media-item-3{ grid-column: 3 / 5; grid-row: 2 / 3; }
.layout-startdeal .media-item-4{ grid-column: 5 / 7; grid-row: 2 / 3; }
.layout-startdeal .media-item-5{ grid-column: 1 / 7; grid-row: 3 / 4; }

.layout-studio15 .media-item-1{ grid-column: 1 / 3; grid-row: 1 / 2; }
.layout-studio15 .media-item-2{ grid-column: 3 / 7; grid-row: 1 / 3; }
.layout-studio15 .media-item-3{ grid-column: 1 / 3; grid-row: 2 / 4; }
.layout-studio15 .media-item-4{ grid-column: 3 / 5; grid-row: 3 / 4; }
.layout-studio15 .media-item-5{ grid-column: 5 / 7; grid-row: 3 / 4; }

.layout-kinebroye .media-item-1{ grid-column: 1 / 4; grid-row: 1 / 2; }
.layout-kinebroye .media-item-2{ grid-column: 4 / 7; grid-row: 1 / 3; }
.layout-kinebroye .media-item-3{ grid-column: 1 / 3; grid-row: 2 / 4; }
.layout-kinebroye .media-item-4{ grid-column: 3 / 4; grid-row: 2 / 3; }
.layout-kinebroye .media-item-5{ grid-column: 3 / 7; grid-row: 3 / 4; }

.layout-frame-recall .media-item-1{ grid-column: 1 / 4; grid-row: 1 / 3; }
.layout-frame-recall .media-item-2{ grid-column: 4 / 7; grid-row: 1 / 2; }
.layout-frame-recall .media-item-3{ grid-column: 4 / 7; grid-row: 2 / 4; }
.layout-frame-recall .media-item-4{ grid-column: 1 / 3; grid-row: 3 / 4; }
.layout-frame-recall .media-item-5{ grid-column: 3 / 4; grid-row: 3 / 4; }

.layout-horror-dex .media-item-1{ grid-column: 1 / 3; grid-row: 1 / 2; }
.layout-horror-dex .media-item-2{ grid-column: 3 / 7; grid-row: 1 / 3; }
.layout-horror-dex .media-item-3{ grid-column: 1 / 3; grid-row: 2 / 4; }
.layout-horror-dex .media-item-4{ grid-column: 3 / 5; grid-row: 3 / 4; }
.layout-horror-dex .media-item-5{ grid-column: 5 / 7; grid-row: 3 / 4; }

.layout-urbanisme .media-item-1{ grid-column: 1 / 7; grid-row: 1 / 4; }

.layout-portraits .media-item-1{ grid-column: 1 / 3; grid-row: 1 / 4; }
.layout-portraits .media-item-2{ grid-column: 3 / 5; grid-row: 1 / 4; }
.layout-portraits .media-item-3{ grid-column: 5 / 7; grid-row: 1 / 4; }

.layout-portraits{
  align-content: end;
}

.layout-portraits .media-item{
  align-self: end;
  aspect-ratio: 3 / 4;
}

.layout-lumiere .media-item-1{ grid-column: 1 / 7; grid-row: 1 / 4; }

.layout-cadrage .media-item-1{ grid-column: 1 / 7; grid-row: 1 / 4; }

