/* ═══════════════════════════════════════════════════════════
   VDZ.Nath — Architecte DPLG
   style.css — Design minimaliste, mobile first
   ═══════════════════════════════════════════════════════════ */

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

:root {
  /* Palette */
  --color-bg:        #f9f8f6;
  --color-surface:   #ffffff;
  --color-text:      #1a1a18;
  --color-muted:     #6b6b63;
  --color-accent:    #b5a48a;
  --color-border:    #e2e0da;
  --color-nav-bg:    rgba(249, 248, 246, 0.92);

  /* Typography */
  --font-serif:      'Cormorant Garamond', Georgia, serif;
  --font-sans:       'Inter', system-ui, sans-serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   7rem;

  /* Layout */
  --max-width:  1200px;
  --nav-height: 64px;
}

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

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

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

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

ul {
  list-style: none;
}

/* ─── UTILITY ───────────────────────────────────────────── */
.section {
  padding: var(--space-xl) var(--space-md);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.label-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.section-title em {
  font-style: italic;
  color: var(--color-muted);
}

/* ─── NAVIGATION ────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-nav-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

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

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

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Mobile nav open state */
.nav-open .nav-links {
  display: flex;
}

/* ─── HERO ──────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-height) var(--space-md) var(--space-xl);
  position: relative;
  overflow: hidden;
}

/* Subtle grid texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.hero-sub {
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
}

.hero-cta {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

.hero-cta--secondary {
  color: var(--color-muted);
  border-bottom-color: var(--color-border);
}

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



/* ─── ABOUT ─────────────────────────────────────────────── */
.about {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.about-content p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  max-width: 66ch;
  text-align: justify;
}

.about-services {
  margin-top: var(--space-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs) var(--space-md);
}

.about-services li {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  padding-left: 1rem;
  position: relative;
}

.about-services li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* ─── PORTFOLIO ──────────────────────────────────────────── */
.portfolio {
  background: var(--color-bg);
}

.portfolio-header {
  margin-bottom: var(--space-lg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.project-card {
  background: var(--color-surface);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.project-img-wrap {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-border);
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--color-border);
}

.project-info h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.project-info h3 em {
  display: block;
  font-style: italic;
  color: var(--color-muted);
  font-size: 1rem;
}

.project-info p {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  text-transform: uppercase;
}

/* ─── CONTACT ────────────────────────────────────────────── */
.contact {
  background: var(--color-text);
  color: var(--color-bg);
  border-top: none;
}

.contact .label-tag {
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.contact .section-title {
  color: var(--color-bg);
  margin-bottom: 0.75rem;
  line-height: 1.0;
}

.contact .section-title em {
  color: var(--color-accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.contact-left p {
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  line-height: 1.8;
  color: rgba(249, 248, 246, 0.65);
  max-width: 42ch;
  margin-top: 0;
}

.contact-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg) var(--space-md);
  align-content: start;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.contact-label {
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.contact-value {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-bg);
  transition: color 0.2s ease;
}

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

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--color-text);
  border-top: 1px solid rgba(249, 248, 246, 0.1);
  padding: var(--space-md);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-bg);
  letter-spacing: 0.05em;
}

.footer-copy,
.footer-location {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(249, 248, 246, 0.45);
}

.footer-legal {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(249, 248, 246, 0.35);
  transition: color 0.2s ease;
}
.footer-legal:hover {
  color: rgba(249, 248, 246, 0.65);
}

/* ─── RESPONSIVE — TABLET (≥ 640px) ─────────────────────── */
@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 200px 1fr;
  }
}

/* ─── RESPONSIVE — DESKTOP (≥ 1024px) ───────────────────── */
@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .about-grid {
    grid-template-columns: 240px 1fr;
    gap: var(--space-xl);
  }
}

/* ─── RESPONSIVE — MOBILE (< 640px) ─────────────────────── */
@media (max-width: 639px) {
  :root {
    --space-xl: 4rem;
    --space-lg: 2.5rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-nav-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-md);
    border-bottom: 1px solid var(--color-border);
  }

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

  .nav-toggle {
    display: flex;
  }

  .about-services {
    grid-template-columns: 1fr;
  }

  .contact-right {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
  }
}

/* ─── FOCUS STYLES (accessibility) ──────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Hero entrance — CSSpur, pas de reveal JS */
.hero-eyebrow {
  animation: fadeIn 0.8s ease both;
  animation-delay: 0.1s;
}

.hero-title {
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.25s;
}

.hero-sub {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.45s;
}

.hero-ctas {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.6s;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hover cards */
.project-card {
  transition: border-color 0.3s ease;
}
.project-card:hover {
  border-color: var(--color-accent);
}

/* Nav underline au hover */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}
.nav-links a:hover::after {
  width: 100%;
}

/* Image fade-in au chargement + zoom hover */
.project-img-wrap img {
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s ease;
}
.project-card.is-visible .project-img-wrap img.loaded {
  opacity: 1;
}
.project-card:hover .project-img-wrap img {
  transform: scale(1.03);
}

/* About label align tablet+ */
@media (min-width: 640px) {
  .about-label {
    padding-top: 0.5rem;
  }
}

/* ─── MENTIONS LÉGALES ───────────────────────────────────── */
.legal-page {
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-xl);
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  min-height: 100svh;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
  transition: color 0.2s ease;
}
.legal-back:hover { color: var(--color-text); }
.legal-back::before {
  content: '←';
  font-size: 0.875rem;
  letter-spacing: 0;
}

/* Titre aligné sur la colonne contenu */
.legal-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: var(--space-xl);
  padding-left: calc(240px + var(--space-xl));
}

/* Section : grid identique à .about-grid desktop */
.legal-section {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0 var(--space-xl);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-label {
  padding-top: 0.25rem;
}

.legal-content {
  display: flex;
  flex-direction: column;
  /* Largeur calée sur la ligne la plus longue */
  max-width: 520px;
}

/* Bloc clé / valeur */
.legal-block {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 0.5rem var(--space-md);
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--color-border);
  align-items: baseline;
}
.legal-block:first-child { border-top: 1px solid var(--color-border); }
.legal-block:last-child  { border-bottom: none; }

.legal-key {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

.legal-val {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
}

.legal-val a {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.legal-val a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* Prose (PI, RGPD, Crédits) */
.legal-prose {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--color-text);
}
.legal-prose p { margin-bottom: var(--space-sm); }
.legal-prose p:last-child { margin-bottom: 0; }
.legal-prose--justified p { text-align: justify; }
.legal-prose a {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.legal-prose a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* Tablet */
@media (min-width: 640px) and (max-width: 1023px) {
  .legal-section {
    grid-template-columns: 200px 1fr;
    gap: 0 var(--space-lg);
  }
  .legal-title {
    padding-left: calc(200px + var(--space-lg));
  }
}

/* Mobile */
@media (max-width: 639px) {
  .legal-title { padding-left: 0; }
  .legal-section {
    grid-template-columns: 1fr;
    gap: var(--space-sm) 0;
  }
  .legal-content { max-width: 100%; }
  .legal-block {
    grid-template-columns: 1fr;
    gap: 0.125rem;
  }
  .legal-block:first-child { border-top: none; }
  .legal-key {
    font-size: 0.6875rem;
    color: var(--color-accent);
  }
}

/* ─── SKIP LINK (accessibilité) ──────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 200;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-text);
  color: var(--color-bg);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0 0 4px 4px;
}
.skip-link:focus {
  top: 0;
}


/* ─── SR-ONLY (accessibilité screen readers) ─────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── BANNIÈRE COOKIES ───────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--color-text);
  border-top: 1px solid rgba(249, 248, 246, 0.1);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-text {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(249, 248, 246, 0.65);
  line-height: 1.5;
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.cookie-btn {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cookie-btn--refuse {
  background: transparent;
  border-color: rgba(249, 248, 246, 0.2);
  color: rgba(249, 248, 246, 0.5);
}

.cookie-btn--refuse:hover {
  border-color: rgba(249, 248, 246, 0.5);
  color: rgba(249, 248, 246, 0.8);
}

.cookie-btn--accept {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text);
}

.cookie-btn--accept:hover {
  background: #c4b49a;
  border-color: #c4b49a;
}

@media (max-width: 639px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-btn {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-eyebrow,
  .hero-title,
  .hero-sub,
  .hero-ctas {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .project-img-wrap img {
    opacity: 1;
    transition: none;
  }

  .project-card,
  .nav-links a::after,
  .contact-value,
  .legal-back,
  .legal-val a,
  .legal-prose a,
  .footer-legal {
    transition: none;
  }
}
