/* ─── FRANKLIN GOTHIC URW ──────────────────────────────────────── */
@font-face {
  font-family: 'Franklin Gothic URW';
  src: url('FranklinGothic URW/.12783.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Franklin Gothic URW';
  src: url('FranklinGothic URW/.12784.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Franklin Gothic URW';
  src: url('FranklinGothic URW/.12788.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'Franklin Gothic URW';
  src: url('FranklinGothic URW/.12785.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Franklin Gothic URW';
  src: url('FranklinGothic URW/.12789.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
}
@font-face {
  font-family: 'Franklin Gothic URW';
  src: url('FranklinGothic URW/.12786.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Franklin Gothic URW';
  src: url('FranklinGothic URW/.12790.otf') format('opentype');
  font-weight: 600;
  font-style: italic;
}
@font-face {
  font-family: 'Franklin Gothic URW';
  src: url('FranklinGothic URW/.12787.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Franklin Gothic URW';
  src: url('FranklinGothic URW/.12791.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
}

/* ─── RESET & BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --noir:      #0a0a0a;
  --noir-doux: #111111;
  --gris:      #1a1a1a;
  --gris-mid:  #333333;
  --gris-clair:#888888;
  --blanc:     #f5f5f0;
  --blanc-pur: #ffffff;
  --accent:    #c8b99a;   /* or chaud — ligne de détail */
  --transition: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--noir);
  color: var(--blanc);
  font-family: 'Franklin Gothic URW', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; width: 100%; }
a  { color: inherit; text-decoration: none; }
em { font-style: normal; }

/* ─── TYPOGRAPHIE ──────────────────────────────────────────────── */
h1, h2, h3, .logo {
  font-family: 'Franklin Gothic URW', sans-serif;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.section-number {
  font-family: 'Franklin Gothic URW', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  color: var(--blanc-pur);
  margin-bottom: 2rem;
}

/* ─── NAVIGATION ───────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem 4rem;
  transition: background var(--transition), padding var(--transition);
}

nav.scrolled {
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(8px);
  padding: 1.2rem 4rem;
  border-bottom: 1px solid var(--gris);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 38px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.8rem;
}

nav ul li a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris-clair);
  transition: color var(--transition);
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

nav ul li a:hover { color: var(--blanc-pur); }
nav ul li a:hover::after { width: 100%; }

/* ─── HAMBURGER (mobile) ───────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 1px;
  background: var(--blanc);
  transition: var(--transition);
}

/* ─── HERO ─────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 5rem 4rem 6rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.8s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg.active { opacity: 1; }

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.93) 35%, rgba(10,10,10,0.45) 100%);
}

.hero-bg-1 { background-image: url('images/hero-bg.webp'); }
.hero-bg-2 { background-image: url('images/hero-bg2.webp'); }
.hero-bg-3 { background-image: url('images/hero-bg3.webp'); }

.hero-content { position: relative; z-index: 1; max-width: 900px; }

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: block;
}

.hero-title {
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.95;
  font-weight: 300;
  color: var(--blanc-pur);
  margin-bottom: 2rem;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 300;
  color: var(--gris-clair);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blanc-pur);
  border: 1px solid var(--gris-mid);
  padding: 1rem 2rem;
  transition: var(--transition);
}

.hero-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-cta svg { transition: transform var(--transition); }
.hero-cta:hover svg { transform: translateX(5px); }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem; right: 4rem;
  writing-mode: vertical-rl;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gris-clair);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1;
}

.hero-scroll::before {
  content: '';
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--accent));
}

/* ─── SECTIONS COMMUNES ────────────────────────────────────────── */
section { padding: 7rem 4rem; }

.section-inner { max-width: 1200px; margin: 0 auto; }

.divider {
  width: 40px; height: 1px;
  background: var(--accent);
  margin-bottom: 3rem;
}

/* ─── À PROPOS ─────────────────────────────────────────────────── */
#apropos { background: var(--noir-doux); }

.apropos-grid {
  display: grid;
  grid-template-columns: 0.28fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.apropos-photo {
  position: relative;
  border: 1px solid var(--accent);
  padding: 6px;
}

.apropos-photo img {
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(20%);
  display: block;
  width: 100%;
}

.apropos-text p {
  font-size: 1rem;
  color: var(--gris-clair);
  margin-bottom: 1.4rem;
  line-height: 1.85;
}

.apropos-text p strong {
  color: var(--blanc);
  font-weight: 400;
}

.apropos-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--gris);
}

.stat-number {
  font-family: 'Franklin Gothic URW', sans-serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--blanc-pur);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gris-clair);
  margin-top: 0.4rem;
}

/* ─── PARCOURS (timeline carrière) ────────────────────────────── */
.parcours {
  margin: 2rem 0 2.5rem;
  border-top: 1px solid var(--gris);
}

.parcours-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gris);
}

.parcours-date {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  white-space: nowrap;
  min-width: 90px;
  font-weight: 400;
  padding-top: 3px;
  text-transform: uppercase;
}

.parcours-info strong {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--blanc-pur);
  display: block;
  margin-bottom: 0.15rem;
}

.parcours-info span {
  font-size: 0.8rem;
  color: var(--gris-clair);
  line-height: 1.5;
}

/* ─── EXPERTISE ────────────────────────────────────────────────── */
#expertise { background: var(--noir); }

.expertise-intro {
  max-width: 600px;
  margin-bottom: 4rem;
}

.expertise-intro p {
  font-size: 1rem;
  color: var(--gris-clair);
  line-height: 1.85;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gris);
}

.expertise-card {
  background: var(--noir);
  padding: 2.5rem 2rem;
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.expertise-card:hover { background: var(--gris); }
.expertise-card:hover::before { width: 100%; }

.expertise-icon {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.expertise-card h3 {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--blanc-pur);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.expertise-card p {
  font-size: 0.88rem;
  color: var(--gris-clair);
  line-height: 1.8;
}

.expertise-refs {
  list-style: none;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--gris-mid);
}

.expertise-refs li {
  font-size: 0.72rem;
  color: var(--gris-clair);
  padding: 0.28rem 0 0.28rem 1rem;
  position: relative;
  line-height: 1.5;
}

.expertise-refs li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.project-toggle {
  background: none;
  border: none;
  padding: 0;
  color: var(--gris-clair);
  font-family: 'Franklin Gothic URW', sans-serif;
  font-size: 0.72rem;
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.5;
  transition: color var(--transition);
}

.project-toggle:hover { color: var(--blanc); }

.project-toggle .toggle-icon {
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.project-toggle.active { color: var(--blanc); }
.project-toggle.active .toggle-icon { transform: rotate(45deg); }

.project-desc {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 0.68rem;
  color: var(--gris-clair);
  line-height: 1.7;
  padding-left: 1rem;
  transition: max-height 0.4s ease, opacity 0.35s ease, padding 0.35s ease;
}

.project-desc.open {
  max-height: 200px;
  opacity: 1;
  padding-top: 0.45rem;
  padding-bottom: 0.3rem;
}

/* ─── RÉALISATIONS ─────────────────────────────────────────────── */
#realisations { background: var(--noir-doux); }

.realisations-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.realisations-link {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris-clair);
  border-bottom: 1px solid var(--gris-mid);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.realisations-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 1.2rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--gris);
}

.project-card:nth-child(1) { grid-column: 1 / 8; grid-row: 1; }
.project-card:nth-child(2) { grid-column: 8 / 13; grid-row: 1; }
.project-card:nth-child(3) { grid-column: 1 / 5; grid-row: 2; }
.project-card:nth-child(4) { grid-column: 5 / 10; grid-row: 2; }
.project-card:nth-child(5) { grid-column: 10 / 13; grid-row: 2; }

.project-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  filter: grayscale(40%) brightness(0.7);
  transition: filter var(--transition), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img {
  filter: grayscale(0%) brightness(0.85);
  transform: scale(1.04);
}

.project-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.8rem 1.8rem;
  background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, transparent 100%);
  transform: translateY(0);
  transition: var(--transition);
}

.project-tag {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.project-name {
  font-family: 'Franklin Gothic URW', sans-serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--blanc-pur);
  line-height: 1.2;
}

.project-detail {
  font-size: 0.8rem;
  color: var(--gris-clair);
  margin-top: 0.4rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.project-card:hover .project-detail { max-height: 120px; }

.project-credit {
  font-size: 0.58rem;
  color: var(--gris-clair);
  letter-spacing: 0.08em;
  margin-top: 0.6rem;
  opacity: 0.7;
}

/* placeholder quand pas d'image */
.project-placeholder {
  width: 100%;
  min-height: 280px;
  background: var(--gris);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-placeholder span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris-mid);
}

/* ─── CONTACT ──────────────────────────────────────────────────── */
#contact { background: var(--noir); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--blanc-pur);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-details { margin-bottom: 3rem; }

.contact-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--gris);
}

.contact-item:last-child { border-bottom: none; }

.contact-label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--blanc);
  font-weight: 300;
}

.contact-value a {
  transition: color var(--transition);
}
.contact-value a:hover { color: var(--accent); }

/* Formulaire */
.form-group {
  margin-bottom: 1.8rem;
}

.form-group label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gris-clair);
  margin-bottom: 0.6rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gris-mid);
  padding: 0.8rem 0;
  color: var(--blanc);
  font-family: 'Franklin Gothic URW', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group select,
.form-group textarea:focus {
  border-bottom-color: var(--accent);
}

.form-group select option { background: var(--gris); }

.form-group textarea {
  resize: none;
  height: 110px;
  line-height: 1.7;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--blanc-pur);
  color: var(--noir);
  border: none;
  padding: 1.1rem 2.5rem;
  font-family: 'Franklin Gothic URW', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover { background: var(--accent); }

.form-success {
  display: none;
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-top: 1.5rem;
}

/* ─── FOOTER ───────────────────────────────────────────────────── */
footer {
  background: var(--gris);
  padding: 2.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--gris-mid);
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--gris-clair);
  letter-spacing: 0.08em;
}

.footer-logo {
  height: 30px;
  width: auto;
}

/* ─── ANIMATIONS AU SCROLL ─────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .apropos-grid      { grid-template-columns: 1fr; gap: 3rem; }
  .expertise-grid    { grid-template-columns: 1fr 1fr; }
  .contact-grid      { grid-template-columns: 1fr; gap: 3rem; }
  .apropos-photo::after { display: none; }
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
  .project-card:nth-child(n) { grid-column: auto; grid-row: auto; }
}

@media (max-height: 820px) and (min-width: 769px) {
  .hero-title {
    font-size: clamp(2rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
  }
  .hero-eyebrow { margin-bottom: 0.8rem; }
  .hero-subtitle { margin-bottom: 1.5rem; }
  #hero { padding-bottom: 2.5rem; }
}

@media (max-width: 768px) {
  nav { padding: 1.4rem 1.8rem; }
  nav.scrolled { padding: 1rem 1.8rem; }
  nav ul { display: none; }
  .hamburger { display: flex; }
  nav ul.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--noir);
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
  }
  nav ul.open li a { font-size: 1.1rem; }

  section { padding: 5rem 1.8rem; }
  #hero { padding: 0 1.8rem 5rem; }
  .hero-scroll { display: none; }
  .realisations-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .expertise-grid { grid-template-columns: 1fr; }
  .apropos-stats { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card:nth-child(n) { grid-column: auto; grid-row: auto; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}
