/* ── POLICES LOCALES ────────────────────────────────── */
@font-face {
  font-family: 'Versus';
  src: url('../fonts/versus-regular.otf') format('opentype');
  font-weight: 400 900;
  font-style: normal;
}
@font-face {
  font-family: 'Sloop';
  src: url('../fonts/Sloop ScriptOne Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
/* 45 Light */
@font-face {
  font-family: 'Frutiger';
  src: url('../fonts/frutiger-lt-pro/Linotype  FrutigerLTProLight.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-stretch: normal;
}

/* 46 Light Italic */
@font-face {
  font-family: 'Frutiger';
  src: url('../fonts/frutiger-lt-pro/Linotype  FrutigerLTProLightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-stretch: normal;
}

/* 55 Roman (Normal) */
@font-face {
  font-family: 'Frutiger';
  src: url('../fonts/frutiger-lt-pro/Linotype  FrutigerLTProRoman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-stretch: normal;
}

/* 65 Bold */
@font-face {
  font-family: 'Frutiger';
  src: url('../fonts/frutiger-lt-pro/Linotype  FrutigerLTProBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-stretch: normal;
}

/* 75 Black */
@font-face {
  font-family: 'Frutiger';
  src: url('../fonts/frutiger-lt-pro/Linotype  FrutigerLTProBlack.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-stretch: normal;
}

/* 47 Light Condensed */
@font-face {
  font-family: 'Frutiger';
  src: url('../fonts/frutiger-lt-pro/Linotype  FrutigerLTProLightCn.otf') format('opentype');
  font-weight: 300; /* Reste à 300 car c'est du Light ! */
  font-style: normal;
  font-stretch: condensed;
}

/* 67 Bold Condensed */
@font-face {
  font-family: 'Frutiger';
  src: url('../fonts/frutiger-lt-pro/Linotype  FrutigerLTProBoldCn.otf') format('opentype');
  font-weight: 700; /* Reste à 700 car c'est du Bold ! */
  font-style: normal;
  font-stretch: condensed;
}

/* ── VARIABLES ─────────────────────────────────────── */
:root {
  --blue:   #302388;
  --orange: #FD4400;
  --gray:   #D9D9D9;
  --white:  #FFFFFF;

  --font-display: 'Versus', sans-serif;
  --font-script:  'Sloop', cursive;
  --font-body:    'Frutiger', sans-serif;

  --radius-xl:   60px;
  --radius-md:   30px;
  --radius-pill: 9999px;

  --header-h: 72px;
  --gap:      16px;
}

/* ── RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--blue);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }

/* ── HEADER ────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  transition: background 0.3s, box-shadow 0.3s;
  border-radius: 0px 0px 60px 60px;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 24px rgba(0,0,0,0.06);
  border-radius: 0px 0px 60px 60px;
}
.site-header.scrolled-blue {
  background: rgba(48,35,136,0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 24px rgba(0,0,0,0.15);
}

/* Header on blue background (about page) */
.site-header--blue {
  background: var(--blue);
  border-radius: 0;
}
.site-header--blue .nav-btn {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.site-header--blue.scrolled-blue { border-radius: 0px 0px 60px 60px; }
.site-header--blue .nav-btn:hover  { background: var(--orange); border-color: var(--orange); }
.site-header--blue .nav-btn.active { background: transparent; border-color: var(--white); color: var(--white); }

.header-logo { width: 50px; height: 50px; }

.header-nav { display: flex; gap: 12px; }
.nav-btn {
  display: inline-block;
  padding: 9px 22px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 2px solid var(--blue);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-btn:hover  { background: var(--orange); border-color: var(--orange); }
.nav-btn.active { background: var(--orange); border-color: var(--orange); }

/* ── UTILITIES ─────────────────────────────────────── */
.page-content { padding-top: var(--header-h); }

.t-display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.t-script { font-family: var(--font-script); font-weight: 400; line-height: 1; }

.dot { color: var(--orange); }

.btn {
  display: inline-block;
  padding: 11px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-orange { background: var(--orange); color: var(--white); }

/* placeholder image box */
.img-ph {
  background: var(--white);
  border-radius: var(--radius-md);
}
.img-ph img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* ─────────────────────────────────────────────────── */
/*  HOME PAGE                                          */
/* ─────────────────────────────────────────────────── */

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 40px 80px;
}

/* Wrapper that serves as the positioning reference for decorative elements */
.hero-composition {
  position: relative;
  width: min(680px, 63vw);
}

.hero-logo {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

/* decorative illustrations — positioned relative to .hero-composition */
.hero-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.deco-citron { top: -83%;  left: -27%;  width: 50%; }
.deco-fleur  { top: 82%;  right: -10%; width: 13%; }
.deco-ble    { bottom: 2%; right: -16%;  width: 14%; }

/* ABOUT PREVIEW */
.about-preview {
  margin: 0 0px 80px;
  background: var(--blue);
  border-radius: var(--radius-xl);
  padding: 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}
.about-preview-title {
  text-align: center;
  color: var(--white);
  font-size: clamp(32px, 5vw, 60px);
  text-transform: none;
}
.about-preview-photo-wrap { position: relative; }
.about-photo {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  object-fit: cover;
  display: block;
}
.about-preview-sig {
  position: absolute;
  bottom: 0px;
  right: 50%;
  transform: translate(50%, 50%);
  color: var(--orange);
  font-size: clamp(50px, 6vw, 200px);
  pointer-events: none;
  white-space: nowrap;
}
.about-preview-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.about-preview-text {
  color: var(--white);
  font-size: clamp(17px, 1.5vw, 24px);
  line-height: 1.75;
  font-weight: 300;
}

/* GALLERY */
.gallery-section { padding: 60px 32px 80px; }
.gallery-title {
  text-align: center;
  color: var(--orange);
  font-size: clamp(30px, 5vw, 60px);
  margin-bottom: 40px;
  text-transform: uppercase;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.g-cell {
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: block;
}
.g-cell--img   { background: var(--gray); }
.g-cell--img img { width: 100%; height: 100%; object-fit: cover; }
.g-cell--txt {
  background: var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  transition: background 0.2s;
}
.g-cell--txt:hover { background: #251b72; }
.g-cat {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(14px, 2.8vw, 30px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.g-title {
  color: var(--white);
  font-size: clamp(13px, 2.4vw, 26px);
  font-weight: 400;
  margin-top: 6px;
}
.g-sub {
  color: rgba(255,255,255,0.75);
  font-size: clamp(11px, 1.6vw, 18px);
  font-style: italic;
  font-weight: 300;
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 60px 40px 40px;
  position: relative;
  background: var(--white);
}
.footer-deco { position: absolute; pointer-events: none; }
.footer-deco-l  { left: 40px;  top: 30%; transform: translateY(-50%); width: 200px; }
.footer-deco-r1 { right: 80px; bottom: 100px; width: clamp(50px, 6vw, 90px);  }
.footer-deco-r2 { right: 40px; bottom: 140px; width: clamp(40px, 5vw, 75px);  }
.footer-merci { font-size: clamp(60px, 10vw, 120px); color: var(--blue); }
.footer-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  font-size: 20px;
  color: rgba(48,35,136,0.45);
}
.footer-meta a:hover { color: var(--orange); }

/* ─────────────────────────────────────────────────── */
/*  ABOUT PAGE                                         */
/* ─────────────────────────────────────────────────── */
.about-page { background: var(--white); }

/* intro */
.about-intro {
  padding: 0px 60px 80px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  background: var(--blue);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.about-name-block {
  grid-column: 1 / -1;
  padding-top: 20px;
}
.about-name {
  color: var(--white);
  font-size: clamp(40px, 7vw, 90px);
  text-transform: uppercase;
}
.about-portrait {
  width: 70%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  object-fit: cover;
  display: block;
}
.about-desc-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 24px;
}
.about-desc-label {
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.about-desc-text {
  color: var(--white);
  font-size: 24px;
  line-height: 1.85;
  font-weight: 300;
  width: 80%;
}

/* marquee */
.marquee-band {
  background: var(--white);
  padding: 30px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 15s linear infinite;
  will-change: transform; /* Aide le navigateur à fluidifier le mouvement */
}
.marquee-track span {
  font-family: var(--font-body);
  font-weight: 300;
  font-stretch: condensed;
  font-size: clamp(22px, 3vw, 40px);
  text-transform: uppercase;
  color: var(--orange);
  padding: 0 3px;
}

.marquee-track span em {
  color: var(--orange);
  font-weight: 700;
  font-style: normal;
  font-stretch: condensed;
}
 /* 
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
 */
@keyframes marquee {
  from { 
    /* translate3d triggers hardware acceleration */
    transform: translate3d(0, 0, 0); 
  }
  to { 
    /* -50% works perfectly if the content is duplicated exactly twice */
    transform: translate3d(-50%, 0, 0); 
  }
}


/* cv */
.cv-section {
  background: var(--blue);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 80px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.cv-col-title {
  color: var(--white);
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 36px;
  text-transform: uppercase;
}
.cv-item { margin-bottom: 26px; }
.cv-item-title {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(15px, 1.5vw, 22px);
  line-height: 1.4;
}
.cv-item-detail {
  color: rgba(255,255,255,0.7);
  font-size: clamp(13px, 1.3vw, 19px);
  line-height: 1.65;
  font-family: var(--font-body);
  font-weight: 300;
  margin-top: 4px;
}

/* skills grid */
.skills-grid {
  background: var(--blue);
  padding: 0 60px 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.sk-cell {
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.sk-cell--white  { background: var(--white); }
.sk-cell--filled { background: var(--orange); }
.sk-cell-title {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(18px, 2.4vw, 34px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}
.sk-cell-list {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--blue);
  font-size: clamp(11px, 1.3vw, 17px);
  line-height: 1.6;
  text-align: center;
  list-style: none;
  padding: 0;
  margin-top: 8px;
}
.sk-cell-list li::before {
  content: "• ";
  color: var(--blue);
}

/* ─────────────────────────────────────────────────── */
/*  PROJETS GALLERY PAGE                               */
/* ─────────────────────────────────────────────────── */
.projets-page { background: var(--white); }
.projets-header-section { padding: 100px 32px 40px; text-align: center; text-transform: uppercase; }
.projets-page-title { color: var(--orange); font-size: clamp(32px, 6vw, 72px); }

/* ─────────────────────────────────────────────────── */
/*  PROJECT DETAIL PAGE                                */
/* ─────────────────────────────────────────────────── */
.project-page { background: var(--white); font-weight: 300; }

/* hero */
.project-hero {
  padding: 80px 60px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.project-hero-title-row { grid-column: 1 / -1; }
.project-cat-title { color: var(--blue); font-size: clamp(36px, 6vw, 80px); text-transform: uppercase; }

.project-main-img {
  width: 70%;
  aspect-ratio: 1/1;
}

.project-main-img-granny img,
.project-main-img-bon-entendeur-design img,
.project-main-img-bon-entendeur-illu img,
.project-main-img-granny img,
.project-main-img-spheres img,
.project-main-img-murat img,
.project-main-img-hermine img,
.project-main-img-don-bosco img {
  width: 70%;
  aspect-ratio: 1/1;
  object-fit: contain;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 32px;
}
.project-meta-group {}
.project-meta-label {
  font-size: clamp(10px, 0.8vw, 13px);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(48,35,136,0.45);
  margin-bottom: 4px;
}
.project-meta-course {
  color: var(--blue);
  font-weight: 700;
  font-size: clamp(13px, 1.3vw, 19px);
}
.project-meta-name {
  color: var(--blue);
  font-weight: 700;
  font-size: clamp(15px, 1.5vw, 22px);
  margin-bottom: 6px;
}
.project-meta-text {
  color: var(--blue);
  font-size: clamp(15px, 1.5vw, 22px);
  line-height: 1.7;
  font-weight: 300;
}
.project-meta-text strong { font-weight: 700; }

/* gallery band */
.project-band {
  margin: 0 0 60px;
  background: var(--orange);
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.band-img {
  aspect-ratio: 1/1;
  width: min(400px, 100%);
  object-fit: contain;
  border-radius: var(--radius-md);
  margin: 0 auto;
}

/* description */
.project-desc-section { padding: 0 60px 100px; }
.project-desc-title { font-size: clamp(40px, 5.5vw, 80px); color: var(--blue); margin-bottom: 32px; text-transform: uppercase; }
.project-desc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.dc {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.dc--img  { background: var(--white); }
.dc--img img { width: 100%; height: 100%; object-fit: cover; }
.dc--txt {
  background: var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
}
.dc-title {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 2.8vw, 46px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dc-text {
  color: var(--white);
  font-weight: 300;
  font-size: clamp(16px, 1.7vw, 24px);
  line-height: 1.6;
  margin-top: 8px;
}
.dc-sub {
  color: rgba(255,255,255,0.65);
  font-style: italic;
  font-size: 11px;
  margin-top: 4px;
}

/* ── PROJET AGENCE INSPIRE ──────────────────────────── */
.inspire-desc-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 380px 340px 340px;
}
.idc-1 { grid-column: 1 / 3; grid-row: 1; }
.idc-2 { grid-column: 3;     grid-row: 1; }
.idc-3 { grid-column: 1;     grid-row: 2 / 4; }
.idc-4 { grid-column: 2;     grid-row: 2; }
.idc-5 { grid-column: 2;     grid-row: 3; }
.idc-6 { grid-column: 3;     grid-row: 2 / 4; }

/* ── PROJET LA GAMELLE ──────────────────────────────── */
/* L1 : petit bloc | bloc large  ·  L2 & L3 : 2 carrés | bloc large */
.gamelle-desc-grid {
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: 380px 340px 340px;
}
.gdc-1 { grid-column: 1 / 4; grid-row: 1; } /* L1 petit gauche  */
.gdc-2 { grid-column: 4 / 9; grid-row: 1; } /* L1 large droite  */
.gdc-3 { grid-column: 1 / 3; grid-row: 2; } /* L2 carré         */
.gdc-4 { grid-column: 3 / 5; grid-row: 2; } /* L2 carré         */
.gdc-4 img { object-fit: contain; }
.gdc-5 { grid-column: 5 / 9; grid-row: 2; } /* L2 large droite  */
.gdc-6 { grid-column: 1 / 3; grid-row: 3; } /* L3 carré         */
.gdc-7 { grid-column: 3 / 5; grid-row: 3; } /* L3 carré         */
.gdc-7 img { object-fit: contain; } 
.gdc-8 { grid-column: 5 / 9; grid-row: 3; } /* L3 large droite  */

/* ── PROJET DESIGN BON ENTENDEUR ────────────────────── */
/* 3 cells row1 / col1 small | col2-3 large rows2-3 / col1 small */
.bde-desc-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 380px 340px 340px;
}
.bde-1 { grid-column: 1;     grid-row: 1; }
.bde-2 { grid-column: 2;     grid-row: 1; }
.bde-3 { grid-column: 3;     grid-row: 1; }
.bde-4 { grid-column: 1;     grid-row: 2; }
.bde-5 { grid-column: 2 / 4; grid-row: 2 / 4; }
.bde-6 { grid-column: 1;     grid-row: 3; }

/* ── PROJET ILLUSTRATION BON ENTENDEUR ──────────────── */
/* large col1-2 rows1-2 | col3 tall rows1-2 / wide col1-2 | col3 row3 */
.ibe-desc-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 380px 340px 340px;
}
.ibe-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.ibe-2 { grid-column: 3;     grid-row: 1 / 3; }
.ibe-3 { grid-column: 1 / 3; grid-row: 3; }
.ibe-4 { grid-column: 3;     grid-row: 3; }

/* ── PROJET GRANNY ──────────────────────────────────── */
/* col gauche : grand bloc L1-2 + bloc L3 · col milieu : 3 blocs · col droite : carré L1 + bloc haut L2-3 */
.granny-desc-grid {
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: 380px 340px 340px;
}
.grc-1 { grid-column: 1 / 4; grid-row: 1 / 3; } /* gauche : grand bloc haut */
.grc-2 { grid-column: 4 / 7; grid-row: 1; }     /* milieu haut */
.grc-3 { grid-column: 7 / 9; grid-row: 1; }     /* droite : carré */
.grc-4 { grid-column: 4 / 7; grid-row: 2; }     /* milieu centre */
.grc-5 { grid-column: 7 / 9; grid-row: 2 / 4; } /* droite : bloc haut */
.grc-6 { grid-column: 1 / 4; grid-row: 3; }     /* gauche bas */
.grc-7 { grid-column: 4 / 7; grid-row: 3; }     /* milieu bas */

/* ── PROJET BLACK POLAR ─────────────────────────────── */
/* L1 : petit | large  ·  L2 : 4 carrés  ·  L3 : 2 carrés | large */
.bp-desc-grid {
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: 380px 340px 340px;
}
.bpc-1 { grid-column: 1 / 4; grid-row: 1; } /* L1 petit gauche */
.bpc-2 { grid-column: 4 / 9; grid-row: 1; } /* L1 large droite */
.bpc-3 { grid-column: 1 / 3; grid-row: 2; } /* L2 carré */
.bpc-4 { grid-column: 3 / 5; grid-row: 2; } /* L2 carré */
.bpc-5 { grid-column: 5 / 7; grid-row: 2; } /* L2 carré */
.bpc-6 { grid-column: 7 / 9; grid-row: 2; } /* L2 carré */
.bpc-7 { grid-column: 1 / 3; grid-row: 3; } /* L3 carré */
.bpc-8 { grid-column: 3 / 5; grid-row: 3; } /* L3 carré */
.bpc-9 { grid-column: 5 / 9; grid-row: 3; } /* L3 large droite */

/* ── PROJET SPHÈRES (Design Éditorial) ──────────────── */
/* L1 : large gauche | bloc droite · L2-3 : grand bloc gauche | 2 carrés empilés droite */
.spheres-desc-grid {
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: 380px 340px 340px;
}
.sdc-1 { grid-column: 1 / 6; grid-row: 1; }     /* L1 large gauche */
.sdc-2 { grid-column: 6 / 9; grid-row: 1; }     /* L1 droite */
.sdc-3 { grid-column: 1 / 7; grid-row: 2 / 4; } /* grand bloc gauche L2-3 */
.sdc-4 { grid-column: 7 / 9; grid-row: 2; }     /* droite : carré haut */
.sdc-5 { grid-column: 7 / 9; grid-row: 3; }     /* droite : carré bas */

/* ── PROJET MURAT (Sérigraphie) ─────────────────────── */
/* brique : L1 moyen | large · L2 carré | moyen | moyen · L3 moyen | large */
.murat-desc-grid {
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: 380px 340px 340px;
}
.mdc-1 { grid-column: 1 / 4; grid-row: 1; } /* L1 moyen gauche */
.mdc-2 { grid-column: 4 / 9; grid-row: 1; } /* L1 large droite */
.mdc-3 { grid-column: 1 / 3; grid-row: 2; } /* L2 carré gauche */
.mdc-4 { grid-column: 3 / 6; grid-row: 2; } /* L2 moyen milieu */
.mdc-5 { grid-column: 6 / 9; grid-row: 2; } /* L2 moyen droite */
.mdc-6 { grid-column: 1 / 4; grid-row: 3; } /* L3 moyen gauche */
.mdc-7 { grid-column: 4 / 9; grid-row: 3; } /* L3 large droite */

/* ── PROJET HERMINE (Illustration) ──────────────────── */
/* gauche : grand bloc L1-2 + petit L3 · centre : large L1 | bloc L2 | large L3 · droite : grand bloc L2-3 */
.hermine-desc-grid {
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: 380px 340px 340px;
}
.hdc-1 { grid-column: 1 / 4; grid-row: 1 / 3; } /* gauche : grand bloc haut */
.hdc-1 img { object-fit: contain; }
.hdc-2 { grid-column: 4 / 9; grid-row: 1; }     /* centre/droite : large haut */
.hdc-3 { grid-column: 4 / 7; grid-row: 2; }     /* centre */
.hdc-3 img { object-fit: contain; }
.hdc-4 { grid-column: 7 / 9; grid-row: 2 / 4; } /* droite : grand bloc bas */
.hdc-4 img { object-fit: contain; }
.hdc-5 { grid-column: 1 / 3; grid-row: 3; }     /* gauche bas : petit */
.hdc-5 img { object-fit: contain; }
.hdc-6 { grid-column: 3 / 7; grid-row: 3; }     /* centre bas : large */

/* ── PROJET DON BOSCO (Publicité) ───────────────────── */
/* L1 : moyen | large · L2-3 : bloc étroit gauche | grand bloc droite */
.donbosco-desc-grid {
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: 380px 340px 340px;
}
.dbc-1 { grid-column: 1 / 4; grid-row: 1; }     /* L1 moyen gauche */
.dbc-2 { grid-column: 4 / 9; grid-row: 1; }     /* L1 large droite */
.dbc-3 { grid-column: 1 / 3; grid-row: 2 / 4; } /* gauche : bloc étroit haut */
.dbc-4 { grid-column: 3 / 9; grid-row: 2 / 4; } /* droite : grand bloc (image héro) */

/* back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 60px 40px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--orange); }
.back-link svg { width: 18px; }

/* ─────────────────────────────────────────────────── */
/*  RESPONSIVE — DEMI-PAGE / GRAND ÉCRAN  (≤ 1400px)  */
/* ─────────────────────────────────────────────────── */
@media (max-width: 1400px) {
  /* about-preview : on retire la colonne vide pour agrandir la photo */
  .about-preview-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .about-preview-empty { display: none; }
}

/* ─────────────────────────────────────────────────── */
/*  RESPONSIVE — TABLET  (≤ 1024px)                   */
/* ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-meta { font-size: 15px; }
  .about-preview { margin: 0 20px 60px; padding: 48px 40px; }
  .project-hero, .cv-section { padding: 60px 40px; }
  .skills-grid { padding: 8px 40px 60px; }
  .project-desc-section { padding: 0 40px 80px; }
  .back-link { margin: 0 40px 32px; }
}

/* ─────────────────────────────────────────────────── */
/*  RESPONSIVE — MOBILE  (≤ 768px)                    */
/* ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --radius-xl: 32px; --radius-md: 20px; }

  .site-header { padding: 12px 20px; }
  .nav-btn { padding: 8px 16px; font-size: 15px; }

  /* hero — annule le padding-top de page-content pour que la section
     parte de y=0 et soit vraiment centrée dans l'écran */
  .hero {
    margin-top: calc(-1 * var(--header-h));
    min-height: 100vh;
    min-height: 100svh; /* exclut la barre navigateur sur mobile */
    padding: calc(var(--header-h) + 20px) 20px 40px;
  }

  /* about preview */
  .about-preview { margin: 0 12px 40px; padding: 28px 20px 40px; min-height: auto; }
  .about-preview-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-preview-text { font-size: 16px; }
  .about-desc-text { font-size: 16px; width: 100%; }
  .about-preview-empty { display: none; }
  /* signature centrée sous la photo, contenue dans le wrap */
  .about-preview-sig {
    font-size: 44px;
    right: auto;
    left: 50%;
    transform: translate(-50%, 50%);
  }

  /* gallery */
  .gallery-section { padding: 40px 12px 60px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .g-cell--txt { padding: 8px; }
  .g-cat   { font-size: 13px; }
  .g-title { font-size: 12px; }
  .g-sub   { font-size: 10px; }

  /* footer */
  .site-footer { padding: 40px 20px 30px; }
  .footer-deco { display: none; }
  .footer-meta { flex-direction: column; align-items: center; gap: 6px; }

  /* about page */
  .about-intro { padding: 24px 20px 0; grid-template-columns: 1fr; gap: 20px; }
  .about-name-block { grid-column: 1; padding-top: 0; }
  .about-name { font-size: clamp(28px, 8vw, 40px); }
  .about-portrait { width: 100%; max-width: 320px; aspect-ratio: 3/4; margin: 0 auto; }

  .cv-section { padding: 40px 20px; grid-template-columns: 1fr; gap: 36px; }
  .skills-grid { padding: 0 16px 40px; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sk-cell { padding: 12px; }
  .sk-cell-title { font-size: 15px; }
  .sk-cell-list { font-size: 11px; line-height: 1.45; margin-top: 4px; }

  /* project page */
  .project-hero { padding: 40px 20px 32px; grid-template-columns: 1fr; gap: 20px; }
  .project-hero-title-row { grid-column: 1; }

  /* bande galerie : empilée et centrée au lieu de 3 vignettes minuscules */
  .project-band { margin: 0 0 32px; padding: 20px; gap: 16px; grid-template-columns: 1fr; }

  .project-desc-section { padding: 0 20px 48px; }

  /* on annule TOUTES les grilles mosaïque custom → 1 colonne empilée */
  .project-desc-grid,
  .inspire-desc-grid,
  .gamelle-desc-grid,
  .bde-desc-grid,
  .ibe-desc-grid,
  .granny-desc-grid,
  .bp-desc-grid,
  .spheres-desc-grid,
  .murat-desc-grid,
  .hermine-desc-grid,
  .donbosco-desc-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 14px;
  }
  /* chaque cellule reprend sa place naturelle dans le flux */
  .project-desc-grid > .dc {
    grid-column: auto;
    grid-row: auto;
  }
  /* images : vraie hauteur, plus de ratio figé qui les écrase */
  .project-desc-grid .dc--img { aspect-ratio: auto; }
  .project-desc-grid .dc--img img { height: auto; }
  /* cases image décoratives vides : inutiles sur mobile */
  .project-desc-grid .dc--img:empty { display: none; }
  /* textes : hauteur libre, padding confortable */
  .project-desc-grid .dc--txt { padding: 28px 24px; }

  .back-link { margin: 0 20px 20px; }

  /* projets page */
  .projets-header-section { padding: 88px 16px 32px; }
}

/* ─────────────────────────────────────────────────── */
/*  HOVER LIFT (desktop only)                          */
/* ─────────────────────────────────────────────────── */
@media (hover: hover) {
  .g-cell--txt { transition: background 0.2s, transform 0.2s; }
  .g-cell--txt:hover { transform: scale(1.02); }
}
