/* ─── VARIABLES ───────────────────────────────────── */
:root {
  --green-deep:   #0d2818;
  --green-mid:    #1a4a2e;
  --green-bright: #2d7a4f;
  --green-light:  #4db87a;
  --green-pale:   #c8f0d8;
  --orange:       #ff6b1a;
  --orange-warm:  #ff8c42;
  --orange-pale:  #fff0e6;
  --cream:        #f5f0e8;
  --dark:         #080f0a;
  --text-main:    #1a2d1f;
  --text-muted:   #5a7a62;
  --white:        #ffffff;
  --radius:       4px;
  --radius-lg:    12px;
}

/* ─── RESET & BASE ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Mono', monospace;
  background: var(--cream);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── TRANSITION DE PAGE ──────────────────────────── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: fadeIn .35s ease; }

/* ─── NAV ─────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--green-deep);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 64px;
  border-bottom: 2px solid var(--orange);
}
.nav-logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.2rem;
  color: var(--white); letter-spacing: -0.02em; cursor: pointer;
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.nav-logo span { color: var(--orange); }
.nav-logo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--orange); display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.4);opacity:.7} }
.nav-links { display: flex; gap: 0; }
.nav-link {
  color: var(--green-pale); font-family: 'DM Mono', monospace;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .5rem 1.1rem; cursor: pointer; border: none; background: none;
  transition: color .2s, background .2s; border-radius: var(--radius);
  text-decoration: none; display: inline-block;
}
.nav-link:hover, .nav-link.active { color: var(--orange); background: rgba(255,107,26,.1); }
.hamburger { display: none; }

/* ─── HERO ────────────────────────────────────────── */
.hero {
  min-height: 100vh; padding-top: 64px;
  background: var(--green-deep);
  position: relative; overflow: hidden;
  display: flex; align-items: stretch;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 70% 50%, rgba(45,122,79,.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(255,107,26,.12) 0%, transparent 60%);
}
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(77,184,122,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,184,122,.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  justify-content: center; padding: 5rem 2.5rem 5rem 5vw;
  max-width: 760px;
}
.hero-eyebrow {
  font-family: 'DM Mono', monospace; font-size: .75rem;
  color: var(--orange); letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .8rem;
}
.hero-eyebrow::before {
  content: ''; display: inline-block;
  width: 40px; height: 2px; background: var(--orange);
}
.hero-title {
  font-family: 'Fraunces', serif; font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700; line-height: .95; color: var(--white);
  margin-bottom: 1.5rem; letter-spacing: -.03em;
}
.hero-title em { color: var(--green-light); font-style: normal; }
.hero-sub {
  font-size: .9rem; color: var(--green-pale); line-height: 1.7;
  max-width: 480px; margin-bottom: 3rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--orange); color: var(--white);
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .9rem 2rem; border: none; cursor: pointer;
  border-radius: var(--radius); transition: transform .15s, box-shadow .15s;
  box-shadow: 4px 4px 0 rgba(255,140,66,.4);
}
.btn-primary:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 rgba(255,140,66,.5); }
.btn-secondary {
  background: transparent; color: var(--green-pale);
  font-family: 'Syne', sans-serif; font-weight: 600;
  font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .9rem 2rem; border: 2px solid rgba(200,240,216,.3); cursor: pointer;
  border-radius: var(--radius); transition: border-color .2s, color .2s;
}
.btn-secondary:hover { border-color: var(--green-light); color: var(--green-light); }
.hero-right { display: none; } /* supprimé — le canvas couvre tout le hero */
#hero-3d {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
#hero-3d canvas {
  display: block; width: 100% !important; height: 100% !important;
}

/* ─── TYPES BAR ───────────────────────────────────── */
.hero-types {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(13,40,24,.9); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(77,184,122,.2);
  display: flex; align-items: stretch; overflow: hidden;
  z-index: 3;
}
.hero-type {
  flex: 1; padding: 1.2rem 1rem; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  border-right: 1px solid rgba(77,184,122,.15);
  transition: background .2s;
}
.hero-type:last-child { border-right: none; }
.hero-type:hover { background: rgba(255,107,26,.08); }
.type-icon { font-size: 1.5rem; }
.type-label { font-size: .68rem; color: var(--green-pale); letter-spacing: .1em; text-transform: uppercase; }

/* ─── SECTION SHARED ──────────────────────────────── */
.section { padding: 6rem 5vw; }
.section-header { margin-bottom: 3.5rem; }
.section-label {
  font-size: .72rem; color: var(--orange); letter-spacing: .18em;
  text-transform: uppercase; margin-bottom: .8rem;
  display: flex; align-items: center; gap: .6rem;
}
.section-label::before { content:''; width:30px; height:2px; background:var(--orange); }
.section-title {
  font-family: 'Fraunces', serif; font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; line-height: 1.05; color: var(--text-main);
  letter-spacing: -.02em;
}
.section-title em { color: var(--green-bright); font-style: normal; }

/* ─── FEATURED PROJECTS (HOME) ────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
}
.project-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(45,122,79,.15);
}
.card-thumb {
  width: 100%; aspect-ratio: 16/9;
  background: var(--green-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative; overflow: hidden;
}
.card-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform .4s ease;
}
.project-card:hover .card-thumb img { transform: scale(1.05); }
.card-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(45,122,79,.4), rgba(255,107,26,.2));
}
.card-type-badge {
  position: absolute; top: .75rem; right: .75rem; z-index: 1;
  background: var(--orange); color: var(--white);
  font-size: .65rem; font-family: 'Syne',sans-serif; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px;
}
.card-body { padding: 1.4rem; }
.card-category {
  font-size: .68rem; color: var(--green-bright);
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: .5rem;
}
.card-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 1.1rem; color: var(--text-main); margin-bottom: .6rem;
  line-height: 1.25;
}
.card-desc { font-size: .8rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.2rem; }
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .9rem; border-top: 1px solid var(--green-pale);
}
.card-year { font-size: .72rem; color: var(--text-muted); }
.card-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-pale); display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: background .2s, color .2s;
  color: var(--green-bright);
}
.project-card:hover .card-arrow { background: var(--orange); color: var(--white); }

/* ─── ABOUT SECTION (HOME) ────────────────────────── */
.about-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center;
}
.about-photo-block { position: relative; }
.about-photo {
  width: 100%; aspect-ratio: 3/4; max-width: 400px;
  background: var(--green-mid);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; position: relative; overflow: hidden;
}
.about-photo::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(45,122,79,.6) 0%, rgba(13,40,24,.8) 100%);
}
.about-deco {
  position: absolute; bottom: -16px; right: -16px;
  width: 120px; height: 120px; border-radius: var(--radius-lg);
  background: var(--orange); z-index: -1;
}
.about-text { }
.about-intro {
  font-family: 'Fraunces', serif; font-size: 1.35rem;
  font-weight: 300; line-height: 1.5; color: var(--text-main);
  margin-bottom: 1.5rem; font-style: italic;
}
.about-body { font-size: .85rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 2rem; }
.skills-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.skill-tag {
  background: var(--green-pale); color: var(--green-mid);
  font-size: .72rem; font-family: 'Syne', sans-serif; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .4rem .9rem; border-radius: 999px;
}
.skill-tag.orange { background: rgba(255,107,26,.12); color: var(--orange); }

/* ─── PORTFOLIO PAGE ──────────────────────────────── */
.portfolio-hero {
  background: var(--green-deep); padding: 8rem 5vw 4rem;
  position: relative; overflow: hidden;
}
.portfolio-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}
.portfolio-hero-title {
  font-family: 'Fraunces', serif; font-size: clamp(3rem, 6vw, 5rem);
  color: var(--white); font-weight: 700; margin-bottom: .8rem;
}
.portfolio-hero-sub { color: var(--green-pale); font-size: .9rem; }

/* ─── FILTERS ─────────────────────────────────────── */
.filters-bar {
  background: var(--white); border-bottom: 2px solid var(--green-pale);
  padding: 1rem 5vw; display: flex; gap: .7rem; flex-wrap: wrap;
  align-items: center; position: sticky; top: 64px; z-index: 50;
}
.filter-btn {
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: .75rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .5rem 1.2rem; border-radius: 999px;
  border: 2px solid var(--green-pale); background: transparent;
  color: var(--text-muted); cursor: pointer; transition: all .2s;
}
.filter-btn:hover { border-color: var(--green-bright); color: var(--green-bright); }
.filter-btn.active { background: var(--green-bright); border-color: var(--green-bright); color: var(--white); }
.filter-btn.active.orange { background: var(--orange); border-color: var(--orange); }
.filter-count {
  margin-left: .4rem; background: rgba(255,255,255,.25);
  padding: .1rem .45rem; border-radius: 999px; font-size: .65rem;
}

/* ─── PORTFOLIO GRID ──────────────────────────────── */
.portfolio-grid-wrap { padding: 3rem 5vw 6rem; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.port-card {
  cursor: pointer; border-radius: var(--radius-lg);
  background: var(--white); overflow: hidden;
  border: 2px solid var(--green-pale);
  transition: all .2s; transform-origin: center bottom;
}
.port-card:hover { border-color: var(--orange); transform: scale(1.02); box-shadow: 0 20px 50px rgba(0,0,0,.1); }
.port-card[data-hidden="true"] { display: none; }
.port-thumb {
  aspect-ratio: 4/3; background: var(--green-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; position: relative; overflow: hidden;
}
.port-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform .4s ease;
}
.port-card:hover .port-thumb img { transform: scale(1.05); }
.port-type-tag {
  position: absolute; bottom: .6rem; left: .6rem;
  background: var(--orange); color: var(--white);
  font-size: .62rem; font-family: 'Syne',sans-serif; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px;
  display: flex; align-items: center; gap: .35rem;
  box-shadow: 0 2px 8px rgba(255,107,26,.45);
}
.port-body { padding: 1.2rem; }
.port-title { font-family: 'Syne',sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: .4rem; }
.port-meta { font-size: .72rem; color: var(--text-muted); }

/* ─── PROJECT TEMPLATE PAGE ───────────────────────── */
.project-page { background: var(--cream); }
.project-page-hero {
  background: var(--green-deep); padding: 9rem 5vw 5rem;
  position: relative; overflow: hidden;
}
.project-back {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--green-pale); font-size: .78rem; cursor: pointer;
  margin-bottom: 2rem; transition: color .2s;
  background: none; border: none; font-family: 'DM Mono', monospace;
  text-decoration: none;
}
.project-back:hover { color: var(--orange); }
.project-type-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,107,26,.15); color: var(--orange-warm);
  border: 1px solid rgba(255,107,26,.3);
  font-size: .72rem; font-family: 'Syne',sans-serif; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.project-hero-title {
  font-family: 'Fraunces', serif; font-size: clamp(2.5rem,5vw,4.5rem);
  color: var(--white); font-weight: 700; line-height: 1;
  margin-bottom: 1rem; letter-spacing: -.02em;
}
.project-hero-desc { color: var(--green-pale); max-width: 600px; line-height: 1.7; font-size: .9rem; }
.project-meta-bar {
  display: flex; gap: 3rem; flex-wrap: wrap; margin-top: 2.5rem;
  padding-top: 2rem; border-top: 1px solid rgba(77,184,122,.2);
}
.project-meta-item {}
.meta-label { font-size: .65rem; color: var(--green-bright); letter-spacing: .12em; text-transform: uppercase; margin-bottom: .3rem; }
.meta-value { font-family: 'Syne',sans-serif; font-weight: 600; color: var(--white); font-size: .9rem; }
.project-media-zone {
  margin: 3rem 5vw;
  background: var(--green-deep);
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; position: relative;
}
.media-placeholder-label {
  position: absolute; bottom: 1.5rem; left: 0; right: 0;
  text-align: center; font-size: .75rem; color: var(--green-pale);
  font-family: 'DM Mono', monospace;
}
.project-body { padding: 0 5vw 6rem; display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; }
.project-description h3 {
  font-family: 'Syne',sans-serif; font-weight: 700; font-size: 1.1rem;
  color: var(--text-main); margin-bottom: 1rem; margin-top: 2rem;
}
.project-description h3:first-child { margin-top: 0; }
.project-description p { font-size: .87rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }
.project-sidebar {}
.sidebar-block {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.5rem; margin-bottom: 1.2rem;
  border: 2px solid var(--green-pale);
}
.sidebar-block-title {
  font-family: 'Syne',sans-serif; font-weight: 700; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--green-bright);
  margin-bottom: 1rem;
}
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag { background: var(--green-pale); color: var(--green-mid); font-size: .72rem; padding: .3rem .7rem; border-radius: 999px; }

/* ─── CONTACT PAGE ────────────────────────────────── */
.contact-page { background: var(--green-deep); min-height: 100vh; padding-top: 64px; }
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
}
.contact-left {
  padding: 5rem 4rem;
  background: linear-gradient(160deg, var(--green-mid) 0%, var(--green-deep) 100%);
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid rgba(77,184,122,.15);
}
.contact-big {
  font-family: 'Fraunces', serif; font-size: clamp(2.5rem,4vw,4rem);
  color: var(--white); font-weight: 700; line-height: 1.05;
  margin-bottom: 2rem; letter-spacing: -.02em;
}
.contact-big em { color: var(--orange); font-style: normal; }
.contact-desc { color: var(--green-pale); line-height: 1.7; font-size: .9rem; margin-bottom: 3rem; }
.contact-channels { display: flex; flex-direction: column; gap: 1rem; }
.contact-channel {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(255,255,255,.05); border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem; border: 1px solid rgba(77,184,122,.15);
  transition: border-color .2s, background .2s; cursor: pointer;
}
.contact-channel:hover { border-color: var(--orange); background: rgba(255,107,26,.07); }
.ch-icon { font-size: 1.4rem; }
.ch-info {}
.ch-label { font-size: .68rem; color: var(--green-bright); letter-spacing: .1em; text-transform: uppercase; }
.ch-value { font-family: 'Syne',sans-serif; font-weight: 600; color: var(--white); font-size: .9rem; }
.contact-right {
  padding: 5rem 4rem;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--cream);
}
.contact-form-title {
  font-family: 'Syne',sans-serif; font-weight: 800; font-size: 1.4rem;
  margin-bottom: .5rem; color: var(--text-main);
}
.contact-form-sub { font-size: .8rem; color: var(--text-muted); margin-bottom: 2.5rem; }
.form-row { margin-bottom: 1.5rem; }
.form-row label {
  display: block; font-size: .72rem; color: var(--green-bright);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem;
  font-family: 'Syne',sans-serif; font-weight: 600;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%; background: var(--white); border: 2px solid var(--green-pale);
  border-radius: var(--radius); padding: .85rem 1rem;
  font-family: 'DM Mono', monospace; font-size: .85rem; color: var(--text-main);
  transition: border-color .2s; outline: none;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--green-bright);
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.submit-btn {
  width: 100%; background: var(--orange); color: var(--white);
  font-family: 'Syne',sans-serif; font-weight: 700; font-size: .9rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 1.1rem; border: none; cursor: pointer;
  border-radius: var(--radius); transition: transform .15s, box-shadow .15s;
  box-shadow: 4px 4px 0 rgba(255,140,66,.35);
}
.submit-btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 rgba(255,140,66,.45); }

/* ─── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--dark); padding: 3rem 5vw;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  border-top: 2px solid var(--orange);
}
.footer-logo { font-family: 'Syne',sans-serif; font-weight: 800; color: var(--white); font-size: 1.1rem; text-decoration: none; }
.footer-logo span { color: var(--orange); }
.footer-copy { font-size: .72rem; color: #556; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-link { font-size: .75rem; color: #889; cursor: pointer; transition: color .2s; text-decoration: none; }
.footer-link:hover { color: var(--orange); }

/* ─── SCROLL TOP ──────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 200;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  border: none; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
  box-shadow: 0 4px 20px rgba(255,107,26,.4);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }

/* ─── TOAST ───────────────────────────────────────── */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--green-mid); color: var(--white); border-left: 4px solid var(--orange);
  padding: 1rem 1.8rem; border-radius: var(--radius-lg); font-size: .85rem;
  z-index: 999; transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .about-wrap, .contact-wrap { grid-template-columns: 1fr; }
  .project-body { grid-template-columns: 1fr; }
  .hero-types .type-label { display: none; }
  .hamburger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: .5rem;
  }
  .hamburger span { display: block; width: 22px; height: 2px; background: var(--white); transition: all .3s; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--green-deep); padding: 1rem;
    border-bottom: 2px solid var(--orange);
  }
}
@media (max-width: 600px) {
  .hero-types { flex-wrap: wrap; }
  .hero-type { min-width: 33%; }
  .contact-left { padding: 3rem 1.5rem; }
  .contact-right { padding: 3rem 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ─── GALERIE PROJET ──────────────────────────────── */
.project-gallery {
  padding: 0 5vw 4rem;
}
.gallery-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-bright); margin-bottom: 1.2rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-item {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--green-mid); aspect-ratio: 16/9;
  cursor: zoom-in; position: relative;
  transition: transform .2s, box-shadow .2s;
}
.gallery-item:hover { transform: scale(1.02); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.gallery-item.portrait { aspect-ratio: 9/16; }
.gallery-item.square   { aspect-ratio: 1/1; }
.gallery-item.wide     { grid-column: span 2; aspect-ratio: 21/9; }
.gallery-main {
  padding: 0 5vw 2rem;
}
.gallery-main img {
  width: 100%; border-radius: var(--radius-lg); display: block;
  max-height: 70vh; object-fit: cover;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}

/* Lightbox simple */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92); display: flex;
  align-items: center; justify-content: center;
  cursor: zoom-out; opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 92vw; max-height: 92vh; object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 60px rgba(0,0,0,.5);
}
