:root {
  --bg: #010A13;
  --surface: #161a20;
  --text: #f5f5f5;
  --muted: #a9b0b8;
  --accent: #ff6a00;
  --border: #2a313b;
}

@font-face {
  font-family: "Titres";
  src: url("../Typos/Titres.otf") format("opentype");
}

@font-face {
  font-family: "Sous-titres";
  src: url("../Typos/Sous-titres.otf") format("opentype");
}

@font-face {
  font-family: "Textes";
  src: url("../Typos/Textes.otf") format("opentype");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6; 
}

html,
body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.img-centree {
  display: block;
  margin: 0 auto;
  width: 300px;
  height: 300px;
  object-fit: cover;
  object-position: center;
}

.container {
  width: min(94%, 1280px);
  margin: 0 auto;
}

.site-header {
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(2px);
}

.logo img {
  width: 80px;
  height: auto;
}

.header-inner {
  display: flex;
  align-items: center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.main-nav .nav-link {
  color: var(--text);
  text-decoration: none;
  padding: 0;
  font-family: "Sous-titres";
  font-weight: 400;
}

.nav-link.active {
  -webkit-text-fill-color: #f5f5f5;
  text-decoration: none;
  font-family : "Sous-titres";
}

.hero {
  padding : 100px;
  background: url("../Photos/baaa.png") center/cover no-repeat;
  min-height: 10vh;
  text-align : center;
}

.subtitle {
  color: var(--accent);
  margin-bottom: 20px;
  text-align : center;
  font-family: "Sous-titres" ;
}

.hero h1 {
  font-size: 60px;
  margin-bottom: 20px;
  font-family: "Titres";
}

.description {
  color: var(--muted);
  margin : auto auto 30px;
  text-align : center;
  max-width: 480px;
  font-family : "Textes";
}

.btn {
  display: inline-block;
  background-color: var(--accent);
  color: #f5f5f5;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 8px;
  margin : 0 auto;
  width : fit-content;
  font-family: "Textes"; 
  clip-path: polygon(
    10% 0%,
    90% 0%,
    100% 50%,
    90% 100%,
    10% 100%,
    0% 50%
  );
}

.services,
.portfolio-list {
  font-family: "Sous-titres";
}

.services,
.portfolio-list h2 {
    padding: 60px 0;
  margin-bottom: 80px;
  text-align: center;
}

.social-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 0 20px;
  margin-top: 60px;
  text-align: center;
  background: transparent;
}

.social-footer-title {
  font-family: "Sous-titres";
  font-size: 26px;
  color: var(--text);
  margin-bottom: 18px;
}

.hex-social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hex-social {
  width: 64px;
  aspect-ratio: 1 / 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  font-family: "Sous-titres";
  font-size: 15px;
  background: linear-gradient(180deg, #20242c, #12161d);
  clip-path: polygon(
    50% 0%,
    100% 25%,
    100% 75%,
    50% 100%,
    0% 75%,
    0% 25%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.hex-social:hover {
  transform: translateY(-3px) scale(1.04);
  background: var(--accent);
  color: #fff;
}

.social-footer-copy {
  color: var(--muted);
  font-family: "Textes";
  font-size: 14px;
}

.hex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.hex-card {
  position: relative;
  width: 220px;
  aspect-ratio: 1 / 1.15;
  clip-path: polygon(
    50% 0%,
    100% 25%,
    100% 75%,
    50% 100%,
    0% 75%,
    0% 25%
  );
  overflow: hidden;
  background: #222;
  border: 0px solid rgba(255, 0, 0, 0.08);
  flex: 0 0 auto;
}

.hex-grid--categories .hex-card {
  width: 280px;
  background: linear-gradient(180deg, #20242c, #12161d);
  margin-top: 70px;
}

.hex-grid--categories .hex-card:nth-child(2) {
  transform: scale(1.3);
  margin-left: 44px;
  margin-right: 44px;
}

.hex-grid--portfolio {
  --hex-size: 210px;
  --hex-gap: 20px;
  --hex-overlap: 60px;
  --hex-offset: 0px;
  gap: var(--hex-gap);
}

.hex-grid--portfolio .hex-card {
  width: var(--hex-size);
  aspect-ratio: 1 / 1.15;
  position: relative;
  flex: 0 0 auto;
  margin-top : -60px;
}

/* À partir du 6e élément de chaque bloc de 9 :
   on remonte la ligne de 4 */
.hex-grid--portfolio .hex-card:nth-child(9n + 6),
.hex-grid--portfolio .hex-card:nth-child(9n + 7),
.hex-grid--portfolio .hex-card:nth-child(9n + 8),
.hex-grid--portfolio .hex-card:nth-child(9n + 9) {
  margin-top: calc(-1 * var(--hex-overlap));
}

.hex-grid--portfolio .hex-card:nth-child(9n + 6) {
  margin-left: var(--hex-offset);
}

.hex-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.75);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.hex-card:hover img {
  transform: scale(1.08);
  filter: brightness(0.95);
}

.hex-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 24px 18px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.20) 45%,
    rgba(0,0,0,0.05) 100%
  );
}

.hex-overlay h2 {
  font-size: 22px;
  padding : 5px 50px 0px;
  color: white;
  margin-bottom: 15px;
}

.hex-overlay h4{
  color: var(--accent);
  font-size: 13px;
  padding: 5px 50px 15px;
  letter-spacing: 1px;
  font-family: "Sous-titres";
}

.hex-overlay h3{
  font-size: 15px;
  padding : 10px 30px 5px;
  margin-bottom: 00px;
}

.hex-overlay h5{
  font-size: 24px;
  padding : 10px 30px 5px;
  margin-bottom: 30px;
}

.hex-overlay p:last-of-type {
  font-size: 14px;
  color: #e6e6e6;
}

.hex-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.contact-header {
  position: relative;
  background: #0b0b0d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-page {
  background:
  /*linear-gradient(rgba(8, 8, 10, 0.88), rgba(8, 8, 10, 0.94)),*/
    url("../Photos/baaa.png") center/cover no-repeat;
  min-height: 100vh;
  padding: 90px 20px;
}

.contact-wrapper {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(18, 18, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  font-family: "Titres";
}

.contact-brand {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #ff6a00;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.contact-page h1 {
  text-align: center;
  font-size: 52px;
  color: #ffffff;
  margin-bottom: 40px;
  line-height: 1.1;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}

.form-group.full,
.form-consent.full,
.form-submit.full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 18px 20px;
  background: #111114;
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-size: 15px;
  font-family: "Textes";
  outline: none;
  transition: 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.contact-form select {
  color: rgba(255, 255, 255, 0.75);
}

.contact-form textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #ff6a00;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
  background: #151519;
}

.form-consent {
  margin-top: 8px;
  font-family: "Textes";
}

.form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #ff6a00;
}

.upload-row {
  width: 100%;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 5px;
  text-align: center;
}

.upload-help {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10spx;
  line-height: 1.5;
  font-family: "Textes";
  text-align: center;
  max-width: 520px;
}

.upload-small-btn {
  display: inline-block;
  min-width: 200px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  font-family: "Textes";
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: 0.2s ease;
  clip-path: polygon(
    10% 0%,
    90% 0%,
    100% 50%,
    90% 100%,
    10% 100%,
    0% 50%
  );
}

.upload-small-btn:hover {
  background: rgba(255, 106, 0, 0.12);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.form-submit {
  text-align: center;
  margin-top: 20px;
}

.form-submit button {
  display: inline-block;
  min-width: 280px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 18px 42px;
  font-size: 18px;
  font-weight: 700;
  font-family: "Textes";
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  clip-path: polygon(
    8% 0%,
    92% 0%,
    100% 50%,
    92% 100%,
    8% 100%,
    0% 50%
  );
}

.form-submit button:hover {
  background: rgba(255, 106, 0, 0.12);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.form-note {
  margin-top: 28px;
}

.form-note p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.7;
  text-align: center;
  font-family: "Textes";
}

@media (max-width: 768px) {
  .site-header {
    position: relative;
    padding: 16px 0;
    background: #131920;
  }

  .header-inner {
    display: flex;
    gap: 20px;
    align-items: center;
  }

  .hero h1 {
  font-size: 40px;
  }

  .description {
    Margin-right: 10px;
    margin-left: 10px;
    font-size: 14px ;
  }

  .main-nav {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  margin-left: auto;
  margin-right: 10px;
}

  .hero {
    min-height: auto;
    padding: 80px 0 70px;
  }

 .hex-grid--portfolio {
  --hex-size: 128px;
  --hex-gap-x: 14px;
  --hex-gap-y: 0px;
  --hex-lift: -14px;

  display: grid;
  grid-template-columns: repeat(2, var(--hex-size));
  justify-content: center;
  column-gap: var(--hex-gap-x);
  row-gap: var(--hex-gap-y);
  margin: 0 auto;
  max-width: 262px;
}

.hex-grid--portfolio .hex-card {
  width: var(--hex-size);
  aspect-ratio: 1 / 1.15;
  position: relative;
  margin: 0 !important;
}

/* 3e, 6e, 9e... = seul centré */
.hex-grid--portfolio .hex-card:nth-child(3n) {
  grid-column: 1 / 3;
  justify-self: center;
  margin-top: var(--hex-lift) !important;
  margin-bottom: -16px !important;
}

/* on neutralise totalement les règles desktop */
.hex-grid--portfolio .hex-card:nth-child(9n + 6),
.hex-grid--portfolio .hex-card:nth-child(9n + 7),
.hex-grid--portfolio .hex-card:nth-child(9n + 8),
.hex-grid--portfolio .hex-card:nth-child(9n + 9) {
  margin-left: 0 !important;
}

  .hex-overlay h4{
    padding: 5px 20px 15px;
    font-size: 14px;
  }


  .hex-overlay h2 {
    font-size: 18px;
    line-height: 1.05;
    margin-bottom: 0;
  }

  .hex-overlay h3{
    font-size: 15px;
  }

  .hex-overlay p:last-of-type {
    font-size: 22px;
  }
   /* CONTACT */
  .contact-page {
    padding: 40px 16px 56px;
  }

  .contact-wrapper {
    padding: 28px 18px;
  }

  .contact-page h1 {
    font-size: 34px;
    margin-bottom: 24px;
  }

  .contact-form {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-group.full,
  .form-consent.full,
  .form-submit.full {
    grid-column: auto;
  }

  .form-submit button {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
  }
}


/* ========= PAGE PROJET ========= */

.project-page {
  padding-top: 140px;
  background:
   url("../Photos/baaa.png") center/cover no-repeat;
}

.project-hero {
  padding: 40px 0 60px;
}

.project-hero-inner {
  max-width: 760px;
}

.project-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-bottom: 18px;
  font-family: "Sous-titres";
  font-size: 14px;
}

.project-hero h1 {
  font-family: "Titres";
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.95;
  margin-bottom: 24px;
  max-width: 9ch;
  color: white;
}

.project-intro {
  max-width: 560px;
  color: var(--muted);
  font-family: "Textes";
  font-size: 17px;
}

.project-editorial {
  padding: 30px 0 80px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 90px 120px;
  align-items: start;
}

.editorial-card {
  position: relative;
}

.editorial-card--text,
.editorial-card--text2 {
  padding: 34px;
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.editorial-card--text{
  margin-top: 60px;
}

.editorial-card--text h2,
.editorial-card--text2 h2 {
  font-family: "Sous-titres";
  font-size: 28px;
  margin-bottom: 18px;
  color: #ff6a00;
}

.editorial-card--text p,
.editorial-card--text2 p {
  color: var(--muted);
  font-family: "Textes";
  max-width: 34ch;
}

.editorial-index {
  display: inline-block;
  margin-bottom: 18px;
  color: white;
  font-family: "Sous-titres";
  font-size: 13px;
  letter-spacing: 1.4px;
}

.editorial-card--photo,
.editorial-card--double {
  overflow: hidden;
  background: #0a0f16;
  clip-path: polygon(
    50% 0%,
    100% 25%,
    100% 75%,
    50% 100%,
    0% 75%,
    0% 25%
  );
}

.editorial-card--photo {
  aspect-ratio: 1 / 1.18;
  margin-top: 40px;
}

.editorial-card--double {
  aspect-ratio: 1 / 1.18;
  margin-top: -280px;
}

.editorial-card--photo img,
.editorial-card--double img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(8%) contrast(1.02);
}

.project-final-shot {
  padding: 10px 0 80px;
}

.final-shot-intro {
  text-align: center;
  margin-bottom: 28px;
}

.final-shot-intro h2 {
  font-family: "Titres";
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.final-shot-media {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
  background: #0a0f16;
}

.final-shot-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project-review-shot {
  max-width: 560px;
  margin: 20px auto 20px;
  padding: 10px;
  border: 2px solid rgba(255, 106, 0, 0.35);
  border-radius: 12px;
  background: transparent;
}

.project-review-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 6px;
}

.project-nav {
  padding: 20px 0 40px;
}

.project-nav-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
}

.project-nav-link {
  color: var(--text);
  text-decoration: none;
  font-family: "Sous-titres";
}

.project-nav-link:hover {
  color: var(--accent);
}

/* ========= RESPONSIVE PAGE PROJET ========= */

@media (max-width: 900px) {
  .project-page {
    padding-top: 110px;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .editorial-card--photo,
  .editorial-card--double,
  .editorial-card--text {
    margin-top: 0;
  }

  .editorial-card--text {
    min-height: auto;
    padding: 26px;
  }

  .project-nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .project-hero {
    padding: 20px 0 40px;
  }

  .project-intro {
    font-size: 16px;
  }

  .editorial-card--text h2 {
    font-size: 22px;
  }

  .final-shot-media {
    max-width: 100%;
  }

  .project-review-shot {
  margin-top: 18px;
  padding: 6px;
}
.social-footer-title {
  font-size: 22px;
}

.hex-social {
  width: 54px;
  font-size: 13px;
}

.hex-social-links {
  gap: 10px;
}
}