/* =========================================================
   STUDIO HUIT — Portfolio Océane Chevalier
   Feuille de style principale
   ========================================================= */

:root{
  --marron: #442e2a;
  --olive: #6b6e58;
  --vert-fonce: #2f3a23;
  --cream: #f8f8ef;
  --beige: #f2eee2;
  --beige-2: #eeecde;
  --offwhite: #fffaf5;
  --btn-border: #c8c1b1;
  --btn-text: #795f2e;
  --black: #181818;
  --text: #313131;

  --font-display: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --max-width: 1512px;
  --gutter: 8.33%;
}

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

html{ scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--marron);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }
img{ max-width: 100%; display: block; }
ul{ list-style: none; margin: 0; padding: 0; }

.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;
}

.container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 8.33%;
}

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   NAV
   ========================================================= */
.nav{
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 32px 0 0;
}
.nav--light .nav-link, .nav--light .nav-toggle span{ color: #f5f5f5; }
.nav-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}
.nav--light .nav-bar{ border-bottom-color: rgba(255,255,255,0.35); }

.logo{
  display: block;
  height: 34px;
}
.logo img{ height: 100%; width: auto; display: block; }
.logo .logo-light{ display: none; }
.nav--light .logo .logo-dark{ display: none; }
.nav--light .logo .logo-light{ display: block; }

.nav-links{
  display: flex;
  gap: 44px;
  font-size: 18px;
}
.nav-link{ transition: opacity .2s ease; }
.nav-link:hover{ opacity: .6; }

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  color: var(--black);
}
.nav-toggle span{
  width: 22px; height: 1.5px; background: currentColor; display: block;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }
.nav--light .nav-toggle{ color: var(--offwhite); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 20px;
  border: 1px solid var(--btn-border);
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 300;
  color: var(--btn-text);
  transition: background .2s ease, transform .2s ease;
}
.btn:hover{ background: var(--beige); transform: translateY(-1px); }
.btn .btn-arrow{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 20px;
  background: var(--btn-border);
  color: var(--offwhite);
  border-radius: 10px;
  font-size: 15px;
}
.btn--prev{ padding: 10px 20px 10px 10px; }
.btn--prev .btn-arrow{ transform: scaleX(-1); }

/* =========================================================
   MARQUEE TICKER
   ========================================================= */
.marquee{
  position: relative;
  overflow: hidden;
  background: var(--vert-fonce);
  color: #fff;
  padding: 15px 0;
}
.marquee--light{ background: var(--cream); color: var(--olive); }
.marquee-track{
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
}
.marquee-track span{
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  padding-right: 24px;
}
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* =========================================================
   HERO / PROJECT GRID (HOME)
   ========================================================= */
.hero-stage{
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  cursor: default;
}
.hero-doodle{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  pointer-events: none;
}

.floating-photo{
  position: absolute;
  height: 169px;
  width: auto;
  aspect-ratio: 166/225;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  opacity: 0;
  transform: rotate(var(--rot)) scale(.96);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: auto;
  will-change: opacity, transform;
}
.floating-photo:hover{
  opacity: 1;
  transform: rotate(0deg) scale(1.04);
  z-index: 5;
  box-shadow: 0 24px 50px rgba(0,0,0,0.28);
}

@media (max-width: 720px){
  .hero-stage{ display: none; }
}

.mobile-doodle{ display: none; }

.section{ position: relative; }
.section-title{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 50px;
  color: var(--marron);
  margin: 0 0 60px;
}

.projects-scroller{
  padding: 140px 0 100px;
}
.projects-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 0 8.33%;
}
.project-card{ display: block; }
.project-card figure{
  margin: 0 0 12px;
}
.project-card img{ width: 100%; aspect-ratio: 565/678; object-fit: cover; display:block; border-radius: 4px; transition: transform .6s ease; }
.project-card:hover img{ transform: scale(1.04); }
.project-card .meta{
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-style: italic;
  font-weight: 300;
  margin-top: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(68,46,42,0.25);
  margin-bottom: 16px;
}
.project-card h3{ font-size: 22px; font-weight: 400; margin: 0 0 8px; }
.project-card p{ font-size: 18px; font-weight: 300; line-height: 1.4; margin: 0; color: var(--marron); }

.see-all{ display:flex; justify-content:flex-end; padding: 50px 8.33% 60px; }

/* =========================================================
   ABOUT / PRESENTATION
   ========================================================= */
.about{
  display: grid;
  grid-template-columns: 585fr 464fr;
  gap: 80px;
  align-items: center;
  padding: 160px 8.33% 180px;
}
.about figure{
  margin: 0;
  aspect-ratio: 585/390;
  border-radius: 4px;
  overflow: hidden;
  background: var(--beige);
}
.about img{ width:100%; height:100%; object-fit: cover; object-position: 50% 15%; }
.about p{ font-size: 20px; font-weight: 300; line-height: 1.55; margin: 0; }

/* =========================================================
   QUOTE BAND
   ========================================================= */
.quote-band{
  background: var(--cream);
  padding: 140px 8.33%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.quote-band h2{
  font-style: italic;
  font-weight: 400;
  font-size: 50px;
  color: var(--olive);
  margin: 0;
  line-height: 1.15;
}
.quote-band p{
  font-size: 20px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--olive);
  margin: 0;
}
.mobile-break{ display: none; }

/* =========================================================
   SERVICES
   ========================================================= */
.services{ padding: 140px 8.33% 160px; }
.services-list{ border-top: 1px solid rgba(68,46,42,0.2); }
.service-row{ border-bottom: 1px solid rgba(68,46,42,0.2); }
.service-toggle{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 34px 0;
  text-align: left;
}
.service-toggle .num{ font-size: 15px; font-style: italic; font-weight: 300; color: var(--black); width: 60px; }
.service-toggle .label{ font-size: 20px; font-weight: 300; color: var(--text); flex: 1; }
.service-arrow{
  width: 101px; height: 41px;
  border-radius: 20px;
  background: var(--beige);
  display: flex; align-items: center; justify-content: center;
  color: var(--olive);
  font-size: 24px;
  font-weight: 300;
  transition: background .2s ease, transform .3s ease;
}
.service-row:hover .service-arrow{ background: #e7e2d2; }
.service-row.is-open .service-arrow{ background: var(--olive); color: var(--offwhite); }

.service-panel{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.service-panel > p{
  overflow: hidden;
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--marron);
  max-width: 700px;
}
.service-row.is-open .service-panel{ grid-template-rows: 1fr; }
.service-row.is-open .service-panel > p{ padding-bottom: 30px; }
@media (hover: hover){
  .service-row:hover .service-panel{ grid-template-rows: 1fr; }
  .service-row:hover .service-panel > p{ padding-bottom: 30px; }
}
.service-panel{ min-height: 0; }
.service-panel > p{ min-height: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer{
  background: var(--olive);
  color: var(--beige);
  padding: 90px 8.33% 60px;
}
.footer-logo{
  width: 100%;
  margin-bottom: 60px;
}
.footer-logo img{ width: 100%; height: auto; display: block; }
.footer-cols{
  display: flex;
  gap: 90px;
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.9;
}
.footer-cols a{ transition: opacity .2s ease; }
.footer-cols a:hover{ opacity: .7; }

/* =========================================================
   BREADCRUMB MOBILE (pages projet)
   ========================================================= */
.breadcrumb-mobile{
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--beige);
  padding: 10px 20px;
  font-size: 13px;
}
.breadcrumb-mobile .arrow{ color: var(--vert-fonce); font-size: 14px; }
.breadcrumb-mobile .sep{ color: var(--olive); }
.breadcrumb-mobile .current{ color: var(--marron); }

/* =========================================================
   PROJECT PAGE
   ========================================================= */
.project-hero{
  position: relative;
  height: 907px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.project-intro{
  padding: 90px 8.33% 60px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
.project-intro .title-block h1{
  font-style: italic;
  font-weight: 400;
  font-size: 50px;
  margin: 0;
}
.project-intro .desc{ font-size: 15px; font-weight: 300; line-height: 1.75; }
.project-intro .tags{
  font-size: 15px; font-weight: 300; line-height: 1.75; text-transform: uppercase;
  text-align: right;
}
.project-intro .year{
  font-style: italic; font-weight: 400; font-size: 50px; text-align: right;
}

.project-gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 8.33% 100px;
}
.project-gallery figure{
  margin: 0;
  aspect-ratio: 464/648;
  border-radius: 4px;
  overflow: hidden;
  background: var(--beige);
}
.project-gallery img,
.project-gallery video{ width: 100%; height: 100%; object-fit: cover; display: block; }
.video-figure{ position: relative; }
.video-figure video{ background: var(--beige); }

.project-desc{
  padding: 90px 8.33% 100px;
}
.project-desc-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}
.project-desc-grid h2{
  font-style: italic; font-weight: 400; font-size: 50px; margin: 0;
  color: var(--marron);
}
.project-desc-grid p{ font-size: 15px; font-weight: 300; line-height: 1.8; color: var(--marron); }
.project-desc-photo{
  margin: 0;
  aspect-ratio: 1512/700;
  border-radius: 4px;
  overflow: hidden;
  background: var(--beige);
}
.project-desc-photo img,
.project-desc-photo video{ width: 100%; height: 100%; object-fit: cover; display: block; background: var(--beige); }

.testimonial{
  padding: 130px 8.33% 60px;
  text-align: center;
  position: relative;
}
.testimonial .quote-mark{
  font-size: 160px;
  font-family: Georgia, serif;
  color: var(--marron);
  opacity: 0.1;
  position: absolute;
  left: 50%;
  top: 40px;
  transform: translateX(-50%);
  line-height: 1;
}
.testimonial p{
  max-width: 705px;
  margin: 0 auto;
  font-size: 22px;
  line-height: 1.45;
  color: #000;
  position: relative;
}

.project-nav{
  display: flex;
  justify-content: space-between;
  padding: 0 8.33% 100px;
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-hero{
  padding: 200px 8.33% 60px;
  border-bottom: 1px solid rgba(68,46,42,0.15);
}
.contact-title{
  font-style: italic;
  font-weight: 400;
  font-size: 64px;
  line-height: 1.15;
  color: var(--marron);
  margin: 0 0 30px;
}
.contact-lead{
  font-size: 20px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--marron);
  max-width: 560px;
  margin: 0;
}

.contact-body{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 90px;
  padding: 90px 8.33% 140px;
}

.contact-form{ display: flex; flex-direction: column; gap: 26px; }
.form-row{ display: flex; flex-direction: column; gap: 10px; }
.form-row label{
  font-size: 14px;
  font-style: italic;
  font-weight: 300;
  color: var(--olive);
}
.form-row input,
.form-row textarea{
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--marron);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(68,46,42,0.3);
  padding: 10px 2px;
  resize: vertical;
  transition: border-color .2s ease;
}
.form-row input::placeholder,
.form-row textarea::placeholder{ color: rgba(68,46,42,0.4); }
.form-row input:focus,
.form-row textarea:focus{
  outline: none;
  border-bottom-color: var(--olive);
}

.contact-submit{
  align-self: flex-start;
  margin-top: 10px;
  padding: 14px 14px 14px 28px;
  font-size: 16px;
  border-color: var(--marron);
  color: var(--marron);
}
.contact-submit .btn-arrow{ background: var(--marron); }

.form-note{
  font-size: 13px;
  font-style: italic;
  font-weight: 300;
  color: rgba(68,46,42,0.55);
  margin: 0;
}

.contact-infos{
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 40px;
  background: var(--cream);
  border-radius: 4px;
  height: fit-content;
}
.contact-block{ display: flex; flex-direction: column; gap: 6px; }
.contact-label{
  font-size: 13px;
  font-style: italic;
  font-weight: 300;
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-block a,
.contact-block p{
  font-size: 18px;
  font-weight: 300;
  color: var(--marron);
  margin: 0;
}
.contact-block a:hover{ color: var(--olive); }
.all-projects{ padding: 200px 8.33% 120px; }
.all-projects-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px){
  .about, .quote-band, .project-desc-grid{ grid-template-columns: 1fr; }
  .projects-grid, .all-projects-grid{ grid-template-columns: repeat(2, 1fr); }
  .project-gallery{ grid-template-columns: 1fr 1fr; }
  .project-intro{ grid-template-columns: 1fr; }
  .project-intro .tags, .project-intro .year{ text-align: left; }
}

@media (max-width: 720px){
  .container{ padding: 0 20px; }
  .nav{ padding-top: 20px; }
  .nav-links{
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 28px 20px;
    gap: 22px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }
  .nav-links .nav-link{ font-size: 20px; }
  .nav--light .nav-links{ background: var(--vert-fonce); }
  .nav-links.is-open{ display: flex; }
  .nav-toggle{ display: flex; }
  .nav{
    position: relative;
    padding: 0;
    background: #fff;
  }
  .nav--light{ background: var(--vert-fonce); }
  .nav-bar{
    padding: 16px 20px;
    border-bottom: none;
  }
  .nav--light .nav-bar{ border-bottom: none; }
  .logo{ height: 22px; }

  .marquee{ background: var(--cream); padding: 10px 0; }
  .marquee-track span{ color: var(--olive); font-size: 13px; }

  .breadcrumb-mobile{ display: flex; }

  .projects-scroller{ position: relative; }
  .mobile-doodle{
    display: block;
    position: absolute;
    top: 20px;
    left: 21%;
    width: 88%;
    max-width: 360px;
    opacity: .1;
    transform: rotate(-6deg);
    z-index: 0;
    pointer-events: none;
  }
  .projects-scroller .container,
  .projects-scroller .projects-grid{ position: relative; z-index: 1; }

  .section-title{ font-size: 25px; margin-bottom: 30px; }

  .projects-scroller{ padding: 300px 0 40px; position: relative; }
  .projects-grid{ grid-template-columns: 1fr; gap: 32px; padding: 0 20px; }
  .project-card figure{ position: relative; margin-bottom: 10px; }
  .project-card img{ aspect-ratio: 333/180; height: auto; border-radius: 6px; }
  .project-card .meta{
    position: absolute;
    left: 10px; right: 10px; bottom: 13.5px;
    border-bottom: none;
    padding: 0;
    margin: 0;
    font-size: 10.5px;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
  }
  .project-card .meta span:first-child{ font-size: 10.5px; font-style: italic; }
  .project-card .meta span:last-child{ font-style: normal; }
  .project-card h3{ font-size: 21px; font-weight: 500; font-style: italic; margin: 0 0 6px; color: #111; }
  .project-card p{ font-size: 16px; font-weight: 400; }

  .about{
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: flex-start;
    gap: 20px;
    padding: 50px 20px 60px;
  }
  .about figure{ aspect-ratio: 156/192; border-radius: 4px; }
  .about p{ font-size: 16px; font-weight: 400; line-height: 1.5; }

  .quote-band{ padding: 50px 20px; gap: 24px; }
  .quote-band h2{ font-size: 30px; line-height: 1.25; }
  .quote-band p{ font-size: 16px; font-weight: 400; color: var(--vert-fonce); }
  .mobile-break{ display: inline; }

  .services{ padding: 50px 20px 70px; }
  .service-toggle{ padding: 20px 0; }
  .service-toggle .num{ color: #aaaaaa; }
  .service-toggle .label{ font-size: 21px; font-weight: 500; font-style: italic; }
  .service-arrow{ width: 60px; height: 26px; font-size: 15px; border-radius: 14px; }
  .service-panel > p{ font-size: 16px; font-weight: 400; }

  .footer{ padding: 50px 20px 40px; }
  .footer-logo{ margin-bottom: 40px; }
  .footer-cols{ gap: 40px; font-size: 16px; font-weight: 400; }

  .project-hero{ height: 420px; }
  .project-intro{ padding: 40px 20px 30px; grid-template-columns: 1fr; gap: 24px; display: flex; flex-direction: column; }
  .project-intro .title-block h1{ font-size: 26px; }
  .project-intro .meta-block{ display: flex; flex-direction: column; gap: 20px; border-top: 1px solid rgba(68,46,42,0.25); padding-top: 20px; }
  .project-intro .year{ font-size: 20px; order: 1; }
  .project-intro .tags{ order: 2; }
  .project-intro .desc, .project-intro .tags{ font-size: 16px; font-weight: 400; }

  .project-gallery{ grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 20px 40px; }
  .project-gallery figure:nth-child(3){ grid-column: 1 / -1; aspect-ratio: 333/465; }

  .project-desc{ padding: 40px 20px 60px; }
  .project-desc-grid{ gap: 20px; margin-bottom: 24px; }
  .project-desc-grid h2{ font-size: 26px; }
  .project-desc-grid p{ font-size: 16px; font-weight: 400; }
  .project-desc-photo{ aspect-ratio: 333/220; }

  .testimonial{ padding: 70px 20px 30px; }
  .testimonial .quote-mark{ font-size: 90px; top: 10px; }
  .testimonial p{ font-size: 16px; font-weight: 400; }

  .project-nav{ flex-direction: row; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 20px 70px; }
  .project-nav .btn{ width: auto; padding: 0; border: none; background: none; }
  .project-nav .btn-text{ display: none; }
  .project-nav .btn-arrow{
    width: 42px; height: 42px;
    border-radius: 50%;
    background: none;
    border: 1.5px solid var(--btn-border);
    color: var(--btn-text);
    font-size: 17px;
  }

  .see-all{ padding: 30px 20px 40px; }

  .all-projects{ padding: 120px 20px 60px; }
  .all-projects-grid{ grid-template-columns: 1fr; gap: 30px; }

  .contact-hero{ padding: 100px 20px 40px; }
  .contact-title{ font-size: 32px; }
  .contact-lead{ font-size: 16px; font-weight: 400; }
  .contact-body{ grid-template-columns: 1fr; gap: 50px; padding: 50px 20px 80px; }
  .contact-infos{ padding: 26px; }
  .contact-block a, .contact-block p{ font-size: 16px; font-weight: 400; }
  .contact-submit{ width: 100%; justify-content: space-between; }
}
