/* =========================================================
   Portfolio Damien Erambert
   Version propre avec masonry JS
   ========================================================= */

:root {
  --bg: #f7f2ea;
  --bg-soft: #fffaf3;
  --dark: #0f172a;
  --text: #23314d;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.12);
  --white: #ffffff;
  --accent: #c59b63;
  --accent-dark: #8b6a3d;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --radius: 28px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(197, 155, 99, 0.16), transparent 34rem),
    linear-gradient(180deg, #fbf7ef 0%, var(--bg) 45%, #fffaf3 100%);
  color: var(--text);
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 90px 0;
}

.section-xl {
  padding: 150px 0 100px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h1,
h2,
h3 {
  color: var(--dark);
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(3.1rem, 8vw, 6.9rem);
  letter-spacing: -0.07em;
}

h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  letter-spacing: -0.055em;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

p {
  margin: 0;
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 18px 24px auto;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  color: var(--dark);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--dark);
  color: var(--white);
  font-size: 0.82rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.93rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.78);
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--dark);
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--dark);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 24%, rgba(197, 155, 99, 0.18), transparent 24rem),
    radial-gradient(circle at 20% 70%, rgba(15, 23, 42, 0.08), transparent 22rem);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 54px;
  align-items: center;
}

.hero-lead {
  margin-top: 26px;
  max-width: 720px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--muted);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.62);
  border-color: var(--line);
  color: var(--dark);
}

.hero-proof {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-proof span,
.tag {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: var(--dark);
  font-size: 0.76rem;
  font-weight: 800;
}

.hero-card {
  padding: 34px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: var(--shadow);
}

.availability {
  width: max-content;
  margin-bottom: 22px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(197, 155, 99, 0.15);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.hero-card p {
  margin-top: 18px;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.stats-grid div {
  min-height: 92px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.04);
}

.stats-grid strong {
  display: block;
  color: var(--dark);
  font-size: 1.45rem;
  line-height: 1;
}

.stats-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.brands-strip {
  padding: 0 0 55px;
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.strip-inner span {
  padding: 9px 14px;
  color: var(--dark);
  font-weight: 800;
  font-size: 0.88rem;
}

.intro-grid,
.expertise-grid,
.faq-grid,
.split-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.section-heading.centered {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

.section-heading > p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

.intro-text {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.projects-section {
  padding-top: 80px;
}

.projects-grid {
  position: relative;
  margin-top: 56px;
}

.masonry-grid {
  display: block;
}

.project-card {
  position: absolute;
  width: calc((100% - 56px) / 3);
  overflow: hidden;
  border-radius: 30px;
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.14);
}

.project-card a {
  display: block;
  height: 100%;
}

.project-card img {
  width: 100%;
  height: 255px;
  object-fit: cover;
  object-position: top center;
  background: #e8e1d7;
}

.project-card.project-featured img {
  height: 330px;
}

.project-card.project-wide img {
  height: 300px;
}

.project-content {
  padding: 25px 25px 28px;
}

.project-content h3 {
  margin-top: 15px;
  font-size: 1.55rem;
}

.project-content p {
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.98rem;
}

.project-content ul {
  margin: 18px 0 0;
  padding-left: 19px;
  color: var(--text);
  font-size: 0.92rem;
}

.dark-section {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.74);
}

.dark-section h2,
.dark-section h3 {
  color: #ffffff;
}

.dark-section .eyebrow {
  color: #e8c98d;
}

.expertise-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.expertise-card,
.offer-card,
.timeline-item,
.quote-card,
.contact-card,
.faq-list details {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.expertise-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.expertise-card span {
  display: block;
  margin-bottom: 24px;
  color: #e8c98d;
  font-weight: 900;
}

.expertise-card p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.66);
}

.timeline {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.timeline-item {
  padding: 28px;
}

.timeline-item span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  font-weight: 900;
}

.timeline-item p,
.offer-card p,
.reason-list span,
.faq-list p {
  margin-top: 12px;
  color: var(--muted);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.offer-card {
  padding: 30px;
}

.offer-card.featured {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.76);
}

.offer-card.featured h3 {
  color: #fff;
}

.offer-card ul {
  margin: 22px 0 0;
  padding-left: 19px;
  color: inherit;
}

.quote-card {
  padding: 40px;
  background: var(--dark);
}

.quote-card p {
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.reason-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.reason-list div {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.reason-list strong {
  display: block;
  color: var(--dark);
}

.reason-list span {
  display: block;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 22px 24px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--dark);
  font-weight: 900;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.contact-card {
  padding: clamp(34px, 6vw, 70px);
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(197, 155, 99, 0.18), transparent 25rem),
    rgba(255, 255, 255, 0.78);
}

.contact-card p:not(.eyebrow) {
  max-width: 740px;
  margin: 18px auto 0;
  color: var(--muted);
}

.contact-actions {
  justify-content: center;
}

.site-footer {
  padding: 32px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.footer-inner a {
  color: var(--dark);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.09s;
}

.delay-2 {
  transition-delay: 0.18s;
}

@media (max-width: 980px) {
  .section,
  .section-xl {
    padding: 76px 0;
  }

  .hero-grid,
  .intro-grid,
  .expertise-grid,
  .faq-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    width: calc((100% - 26px) / 2);
  }

  .timeline,
  .offers-grid,
  .expertise-list {
    grid-template-columns: 1fr 1fr;
  }

  .main-nav {
    position: fixed;
    inset: 76px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    border-radius: 28px;
    background: rgba(255, 250, 243, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    inset-top: 12px;
    width: calc(100% - 24px);
  }

  .brand span:last-child {
    display: none;
  }

  .hero-proof,
  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-proof span,
  .tag {
    width: fit-content;
  }

  .stats-grid,
  .timeline,
  .offers-grid,
  .expertise-list {
    grid-template-columns: 1fr;
  }

  .project-card {
    width: 100%;
  }

  .project-card img,
  .project-card.project-featured img,
  .project-card.project-wide img {
    height: 230px;
  }

  .footer-inner {
    flex-direction: column;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.4rem);
  }
}
