/* =========================================================
   HOLDYN STUDIO — feuille de style
   Blanc, aéré, lumineux ; accents dorés discrets.
   ========================================================= */

:root {
  --blanc: #FFFFFF;
  --ivoire: #FAF9F6;
  --ivoire-2: #F3F0E9;
  --texte: #202020;
  --gris: #646464;
  --trait: #E8E4DB;
  --or: #B99A5B;
  --or-fonce: #8C7240;      /* or lisible pour du texte sur fond blanc */
  --erreur: #A8342B;
  --ok: #3C6E47;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(72px, 11vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--blanc);
  color: var(--texte);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--texte); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Typo ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--or-fonce);
  margin-bottom: 1.4em;
}
.gold-line { display: block; width: 64px; height: 1px; background: var(--or); margin: 1.6em 0; }

/* ---------- Bouton ---------- */
.btn {
  display: inline-block;
  font: 400 .82rem/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--texte);
  background: transparent;
  border: 1px solid var(--or);
  padding: 18px 32px;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.btn:hover { background: var(--or); color: #fff; }
.btn[disabled] { opacity: .55; cursor: wait; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--trait); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand img { width: 168px; height: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 40px; }
.nav a {
  text-decoration: none;
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 400;
  padding: 6px 0;
  background: linear-gradient(var(--or), var(--or)) left bottom / 0 1px no-repeat;
  transition: background-size .3s;
}
.nav a:hover, .nav a.active { background-size: 100% 1px; }

.nav-toggle { display: none; }

@media (max-width: 820px) {
  .header-inner { height: 70px; }
  .brand img { width: 138px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0 8px;
  }
  .nav-toggle .bar { display: block; height: 1px; background: var(--texte); transition: transform .3s; }
  .nav-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--blanc); border-bottom: 1px solid var(--trait);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 12px var(--gutter) 24px; }
  .nav a { display: block; padding: 14px 0; background: none; }
}

/* ---------- Photos (emplacements) ---------- */
.photo { margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  position: relative; width: 100%; height: 100%;
  background:
    radial-gradient(120% 90% at 75% 15%, #fff 0%, rgba(255,255,255,0) 60%),
    linear-gradient(160deg, var(--ivoire) 0%, var(--ivoire-2) 100%);
  display: flex; align-items: flex-end; justify-content: flex-start;
}
.photo-placeholder::before {
  content: ""; position: absolute; inset: 18px; border: 1px solid rgba(185,154,91,.45);
}
.photo-placeholder span {
  position: relative; margin: 34px; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gris);
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 var(--section); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero-lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.4; color: var(--texte); margin-top: .6em; }
.hero-body { color: var(--gris); max-width: 34em; margin-bottom: 2.4em; }
.photo-hero { aspect-ratio: 4 / 3; overflow: hidden; }
.photo-hero img { object-position: 30% 50%; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(48px, 7vw, 80px); }

/* Solutions */
.solutions { background: var(--ivoire); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.card {
  background: var(--blanc);
  padding: clamp(32px, 4vw, 52px) clamp(26px, 3vw, 40px);
  border: 1px solid var(--trait);
  transition: border-color .3s;
}
.card:hover { border-color: var(--or); }
.card p { color: var(--gris); margin: 0; }
.icon { width: 40px; height: 40px; fill: none; stroke: var(--or); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 28px; }
.integrations { text-align: center; color: var(--gris); font-size: .95rem; margin: clamp(36px, 5vw, 56px) 0 0; }

/* Approche */
.approche-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 104px); align-items: center; }
.photo-approche { aspect-ratio: 4 / 3; overflow: hidden; }
.approche-text p:not(.eyebrow) { color: var(--gris); max-width: 32em; }

/* Contact */
.contact { border-top: 1px solid var(--trait); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.contact-info > p:not(.eyebrow) { color: var(--gris); max-width: 28em; }
.coords { list-style: none; padding: 0; margin: 2.2em 0 0; }
.coords li { padding: 14px 0; border-top: 1px solid var(--trait); display: flex; gap: 24px; }
.coords li:last-child { border-bottom: 1px solid var(--trait); }
.coords span { min-width: 92px; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--or-fonce); padding-top: 3px; }
.coords a { text-decoration: none; }
.coords a:hover { color: var(--or-fonce); }

/* ---------- Formulaire ---------- */
.form { background: var(--ivoire); padding: clamp(28px, 4vw, 52px); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.row-3 { grid-template-columns: 130px 1fr 1fr; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 400; margin-bottom: 8px; }
.req { color: var(--or-fonce); }
.opt { text-transform: none; letter-spacing: 0; color: var(--gris); font-size: .85rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea, .field select {
  width: 100%;
  font: 300 1rem/1.5 var(--sans);
  color: var(--texte);
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: 0;
  padding: 13px 14px;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field select {
  appearance: none; cursor: pointer; padding-right: 40px;
  background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23B99A5B' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--or); }
.field [aria-invalid="true"] { border-color: var(--erreur); }
.err { color: var(--erreur); font-size: .85rem; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }

.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.check input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--or); }
.check label { text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--gris); margin: 0; }
.check label a { color: var(--texte); }
.check .err { grid-column: 2; }
.req-note { font-size: .82rem; color: var(--gris); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 18px 0 0; font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--ok); }
.form-status.ko { color: var(--erreur); }
.form.sent .row, .form.sent .field, .form.sent .req-note, .form.sent button { display: none; }
.form.sent .form-status {
  font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; color: var(--texte); margin: 0;
  padding-left: 22px; border-left: 1px solid var(--or);
}

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--trait); padding: 56px 0 40px; text-align: center; }
.footer-logo { width: 140px; margin: 0 auto 14px; }
.footer-tag { font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gris); }
.footer-links { font-size: .88rem; color: var(--gris); display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 26px 0 10px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--or-fonce); }
.footer-copy { font-size: .8rem; color: var(--gris); margin: 0; }

/* ---------- Pages légales ---------- */
.legal { padding: clamp(48px, 8vw, 104px) 0 var(--section); }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 1.7rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.05rem; font-weight: 600; margin: 1.6em 0 .5em; color: var(--texte); }
.legal p, .legal li { color: var(--gris); }
.legal .todo { background: #FFF7E6; border-left: 2px solid var(--or); padding: 2px 8px; color: var(--texte); }

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 820px) {
  .hero-grid, .approche-grid, .contact-grid { grid-template-columns: 1fr; }
  .photo-hero { aspect-ratio: 4 / 3; order: -1; }
  .hero { padding-top: 24px; }
  .row, .row-3 { grid-template-columns: 1fr; }
}
