/* ==========================================================================
   BLH Photographie — styles.css
   Direction : sobre & lumineux. Les photos portent le site.
   ========================================================================== */

:root {
  --bg: #fdfdfc;
  --bg-alt: #f4f3f0;
  --ink: #1a1a18;
  --ink-soft: #55554f;
  --ink-faint: #8a8a82;
  --accent: #1f3a5f;          /* bleu profond corporate */
  --accent-hover: #16293f;
  --line: #e4e2dc;
  --placeholder-a: #e9e7e1;
  --placeholder-b: #d8d5cd;
  --max: 1140px;
  --radius: 2px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Typographie ---------- */

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p  { max-width: 66ch; }

a  { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.kicker {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* ---------- Layout ---------- */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

section { padding: 5.5rem 0; }
section.alt { background: var(--bg-alt); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  section { padding: 3.5rem 0; }
}
@media (max-width: 540px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 253, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.logo strong { font-weight: 600; }
.logo span { color: var(--ink-faint); font-style: italic; }

.main-nav { display: flex; gap: 1.8rem; align-items: center; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.main-nav .btn { border-bottom: none; }

.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem;
    gap: 1.1rem;
  }
  .main-nav.open { display: flex; }
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.9rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
}
.btn-ghost:hover { background: var(--accent); color: #fff !important; }

/* ---------- Hero ---------- */

.hero { padding: 6.5rem 0 5rem; }
.hero .grid-2 { align-items: center; }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { margin-bottom: 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Hero mosaïque ---------- */

.hero-mosaic {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}
.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mosaic .span-rows { grid-row: span 2; }
.mosaic .span-cols { grid-column: span 2; }
.hero-overlay {
  position: relative;
  z-index: 2;
  background: rgba(253, 253, 252, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 3.2rem 3.5rem;
  max-width: 680px;
  margin: 1.5rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(26, 26, 24, 0.18);
}
.hero-overlay h1 { margin-bottom: 1.2rem; font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
.hero-overlay .lead { margin: 0 auto 1.8rem; font-size: 1.08rem; }
.hero-overlay .hero-actions { justify-content: center; }
@media (max-width: 900px) {
  .hero-mosaic { min-height: 78vh; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic .m-hide { display: none; }
  .hero-overlay { padding: 2.2rem 1.6rem; }
}

/* ---------- Placeholders photo ----------
   À remplacer par de vraies images : conserver les classes
   ratio-* et remplacer le div.ph par <img>. */

.ph {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, var(--placeholder-a), var(--placeholder-b));
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  padding: 1rem;
}
img.photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
}
.ratio-45  { aspect-ratio: 4 / 5; }
.ratio-32  { aspect-ratio: 3 / 2; }
.ratio-169 { aspect-ratio: 16 / 9; }
.ratio-11  { aspect-ratio: 1 / 1; }

/* ---------- Cartes prestation ---------- */

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover { box-shadow: 0 12px 32px rgba(26, 26, 24, 0.08); transform: translateY(-3px); }
.card-body { padding: 1.6rem 1.6rem 1.9rem; }
.card-body h3 { margin-bottom: 0.6rem; }
.card-body p { font-size: 0.97rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.card-link { font-weight: 600; font-size: 0.92rem; }
.card-link::after { content: " →"; }

/* ---------- Process / étapes ---------- */

.steps { counter-reset: step; }
.step { position: relative; padding-left: 4.2rem; margin-bottom: 2.4rem; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0.1rem;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--accent);
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Listes à puces sobres ---------- */

.checklist { list-style: none; }
.checklist li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.7rem;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---------- FAQ ---------- */

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 0.9rem; color: var(--ink-soft); }

/* ---------- Bandeau CTA ---------- */

.cta-band { background: var(--ink); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { margin: 0 auto 2rem; color: #c9c8c2; }
.cta-band .btn { background: #fff; color: var(--ink) !important; }
.cta-band .btn:hover { background: var(--bg-alt); }

/* ---------- Logos clients ---------- */

.logos { display: flex; flex-wrap: wrap; gap: 2.5rem 3.5rem; align-items: center; justify-content: center; opacity: 0.55; }
.logos span { font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Témoignages ---------- */

.quote {
  border-left: 3px solid var(--accent);
  padding-left: 1.6rem;
}
.quote p { font-family: var(--font-serif); font-size: 1.25rem; font-style: italic; margin-bottom: 0.8rem; }
.quote cite { font-style: normal; font-size: 0.9rem; color: var(--ink-faint); }

/* ---------- Formulaire ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.35rem; }
input, select, textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}
textarea { min-height: 140px; resize: vertical; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.9rem; color: var(--ink); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent); }
.footer-legal { border-top: 1px solid var(--line); padding-top: 1.5rem; font-size: 0.82rem; color: var(--ink-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Page hero (pages intérieures) ---------- */

.page-hero { padding: 5rem 0 3.5rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: 1.2rem; }
.page-hero .lead { max-width: 58ch; }

/* ---------- Galerie ---------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 800px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- Divers ---------- */

.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }

.zone-list { columns: 2; gap: 3rem; font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 640px) { .zone-list { columns: 1; } }
