@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

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

:root {
  --bg:        #0d0d0b;
  --bg-soft:   #151512;
  --text:      #ede8e0;
  --text-muted:#8a8278;
  --accent:    #c4724a;
  --line:      rgba(237,232,224,0.12);
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Inter', system-ui, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  mix-blend-mode: normal;
  transition: background 0.4s;
}

nav.scrolled {
  background: rgba(13,13,11,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-logo img {
  height: 30px;
  width: auto;
  display: block;
  flex-shrink: 0;
  opacity: 0.9;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-cta {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 0.6rem 1.4rem;
  transition: border-color 0.2s, color 0.2s;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/coucher-ville.jpg');
  background-size: cover;
  background-position: center 40%;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13,13,11,0.90) 0%,
    rgba(13,13,11,0.72) 60%
  );
}

.hero-content { position: relative; z-index: 1; max-width: 860px; padding-top: 8rem; }

.hero-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 2rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--text-muted);
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--accent);
  padding: 0.9rem 2rem;
  transition: background 0.2s, color 0.2s;
}

.btn:hover { background: var(--accent); color: var(--bg); }
.btn-arrow::after { content: '→'; }

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

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

h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 2rem;
}

h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

p { color: var(--text-muted); margin-bottom: 1.2rem; max-width: 64ch; }
p:last-child { margin-bottom: 0; }

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ─── INTRO ─── */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: start;
}

.intro-text p { font-size: 1.05rem; }

.intro-aside { padding-top: 0.5rem; }

.intro-aside .aside-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.aside-item:first-child { border-top: 1px solid var(--line); }

.aside-item .label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.aside-item p {
  font-size: 0.9rem;
  margin: 0;
}

/* ─── SERVICES PREVIEW ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 4rem;
}

.service-card {
  background: var(--bg);
  padding: 3rem 2.5rem;
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
}

.service-card:hover { background: var(--bg-soft); }

.service-card .num {
  font-family: var(--serif);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.service-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.service-card p { font-size: 0.88rem; }

.service-card .link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.service-card .link:hover { opacity: 0.7; }

/* ─── SINGULARITÉ ─── */
.singularite {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.singularite-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.singularite-inner h2 { margin-bottom: 2.5rem; }
.singularite-inner p { margin: 0 auto 1.2rem; text-align: left; }

/* ─── PUBLICATIONS ─── */
.pub-list { margin-top: 3rem; }

.pub-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.pub-item:first-child { border-top: 1px solid var(--line); }

.pub-year {
  font-family: var(--serif);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 0.2rem;
}

.pub-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.pub-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.pub-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.pub-title a:hover { border-bottom-color: var(--accent); }

.video-embed {
  margin-top: 1.5rem;
  aspect-ratio: 16/9;
  max-width: 640px;
}
.video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── LOGOS / INSTITUTIONS ─── */
.institutions {
  text-align: center;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem 4rem;
  margin-top: 3rem;
}

.logo-grid img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.45;
  transition: opacity 0.3s;
}

.logo-grid img:hover {
  opacity: 0.85;
}

.logo-grid img.logo-boost {
  filter: grayscale(1) invert(1) brightness(2);
}

/* ─── CTA FINAL ─── */
.cta-section {
  text-align: center;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { margin: 0 auto 2.5rem; }

/* ─── PAGE HEADER (pages intérieures) ─── */
.page-header {
  padding: 14rem 4rem 6rem;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  max-width: 800px;
}

.page-header .sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-top: 1.5rem;
}

/* ─── SERVICES PAGE ─── */
.services-list { margin-top: 0; }

.service-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 6rem;
  padding: 6rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.service-block:first-child { border-top: 1px solid var(--line); }

.service-block-label { padding-top: 0.3rem; }

.service-block-label .num {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-block-label h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0;
}

.service-block-content h3 {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 400;
}

.service-block-content ul {
  list-style: none;
  margin-bottom: 2rem;
}

.service-block-content ul li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  padding-left: 1rem;
  position: relative;
}

.service-block-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.format-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--line);
  padding: 0.4rem 0.9rem;
  margin: 0.3rem 0.3rem 0 0;
}

/* ─── À PROPOS ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 6rem;
  align-items: start;
}

.about-photo {
  position: sticky;
  top: 8rem;
  aspect-ratio: 3/4;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.parcours-list { margin-top: 3rem; }

.parcours-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
}

.parcours-item:first-child { border-top: 1px solid var(--line); }

.parcours-dates {
  font-family: var(--serif);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 0.15rem;
}

.parcours-desc strong {
  font-weight: 500;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.2rem;
}

.parcours-desc small {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ─── PUBLICATIONS PAGE ─── */
.pub-section { padding: 4rem 0; border-bottom: 1px solid var(--line); }
.pub-section:last-child { border-bottom: none; }

.pub-section-title {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

/* ─── CONTACT ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 8rem;
  align-items: start;
}

.contact-info { padding-top: 1rem; }

.contact-info .info-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-info .info-item:first-child { border-top: 1px solid var(--line); }

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

.contact-info .info-label + p { margin: 0; font-size: 0.9rem; }

form { display: flex; flex-direction: column; gap: 1.5rem; }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-group label {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.8rem 0;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

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

.form-group select option { background: var(--bg); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

button[type="submit"].btn {
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
}
button[type="submit"].btn:hover {
  background: transparent;
  color: var(--text);
}

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

.footer-left {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  gap: 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-right a:hover { color: var(--text); }

.footer-credits {
  width: 100%;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}

/* ─── FADE IN ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ─── HAMBURGER ─── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
  flex-shrink: 0;
}

.nav-hamburger:hover { border-color: var(--accent); color: var(--accent); }

/* ─── PHOTO STRIPS ─── */
.photo-strip {
  width: 100%;
  height: 420px;
  overflow: hidden;
  position: relative;
  margin: 0;
}

.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.75) saturate(0.85);
}

.photo-strip.tall { height: 560px; }
.photo-strip.short { height: 280px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  nav { padding: 1.2rem 2rem; }
  .hero { padding: 0 2rem 5rem; }
  section { padding: 6rem 2rem; }
  .intro { grid-template-columns: 1fr; gap: 4rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; aspect-ratio: 3/4; max-width: 320px; order: -1; margin: 0 auto 3rem; }
  .service-block { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
  .page-header { padding: 10rem 2rem 4rem; }
  footer { flex-direction: column; gap: 1.5rem; text-align: center; }
}

@media (max-width: 640px) {
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }

  .nav-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
  }

  .hero h1 { font-size: 2.8rem; }
  .pub-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .parcours-item { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ─── LEGAL PAGES ─── */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.legal-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  margin: 2.5rem 0 0.75rem;
}
.legal-content p,
.legal-content li {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}
.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.legal-content a:hover {
  border-bottom-color: var(--accent);
}
