/* ============================================================
   ALZATI — Système de design
   Bleu nuit + blanc, accent champagne. Deux ambiances.
   ============================================================ */

:root {
  /* Couleurs de marque */
  --navy:       #21294e;
  --navy-900:   #161c38;
  --navy-800:   #1b2342;
  --navy-700:   #2b3560;
  --navy-600:   #3a456f;
  --ink:        #11152b;
  --white:      #ffffff;

  /* Accent champagne (oklch harmonisé) */
  --gold:       oklch(0.74 0.07 78);     /* ~#c2a36b */
  --gold-soft:  oklch(0.84 0.05 80);     /* ~#dcc59c */
  --gold-deep:  oklch(0.62 0.07 70);     /* ~#9d7f4e */

  /* Surfaces B2B (corporate, froid) */
  --paper:      #f4f6f9;
  --paper-2:    #eaeef4;

  /* Surfaces B2C (chaleureux) */
  --cream:      #f6f1e9;
  --cream-2:    #efe5d6;
  --sand:       #e7d9c5;

  /* Texte */
  --on-dark:    rgba(255,255,255,.92);
  --on-dark-dim:rgba(255,255,255,.60);
  --on-light:   #1c2240;
  --on-light-dim: #5b6075;

  /* Lignes */
  --line-dark:  rgba(255,255,255,.16);
  --line-light: rgba(33,41,78,.12);

  /* Typo */
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "Söhne Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rythme */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 88px);
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* Ambiance courante (overridée par .u-b2b / .u-b2c) */
  --bg: var(--white);
  --fg: var(--on-light);
  --fg-dim: var(--on-light-dim);
  --line: var(--line-light);
  --surface: var(--paper);
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--ink);
  color: var(--fg);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--gold); color: var(--navy-900); }

/* ---------- Ambiances ---------- */
.u-b2b {
  --bg: var(--paper);
  --fg: var(--on-light);
  --fg-dim: var(--on-light-dim);
  --line: var(--line-light);
  --surface: #ffffff;
  --accent-warm: var(--gold);
}
.u-b2c {
  --bg: var(--cream);
  --fg: #2a2418;
  --fg-dim: #756a55;
  --line: rgba(70,55,30,.14);
  --surface: #fffaf3;
  --accent-warm: var(--gold-deep);
}

/* ---------- Typo utilitaires ---------- */
.display {
  font-family: var(--display);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.kicker {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.serif-it { font-family: var(--display); font-style: italic; font-weight: 500; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1600px; margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; }

/* ---------- Placeholder photo soigné ---------- */
.ph {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2c3760, #1a2140);
  isolation: isolate;
}
.ph::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.5'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.22;
  pointer-events: none;
}
.ph__label {
  position: absolute;
  left: 14px; bottom: 12px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  display: flex; align-items: center; gap: 7px;
}
.ph__label::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(220,197,156,.22);
}
/* moods de placeholders — dégradés évoquant la lumière */
.ph--office   { background: linear-gradient(150deg,#3a4673 0%,#222a4f 60%,#161c38 100%); }
.ph--team     { background: radial-gradient(120% 90% at 30% 20%,#46527f 0%,#262e54 55%,#191f3c 100%); }
.ph--brand    { background: linear-gradient(135deg,#2b3560 0%,#21294e 50%,#11152b 100%); }
.ph--wedding  { background: linear-gradient(150deg,#f1e3d0 0%,#e4cdb0 55%,#c9a884 100%); }
.ph--portrait { background: radial-gradient(110% 100% at 70% 15%,#f3e7d6 0%,#d8bd9c 60%,#a07f5c 100%); }
.ph--life     { background: linear-gradient(160deg,#f4ead9 0%,#e9cfae 50%,#caa472 100%); }
.ph--lifestyle{ background: linear-gradient(160deg,#f4ead9 0%,#e7cca8 55%,#bf9e78 100%); }
.ph--studio   { background: linear-gradient(135deg,#33272a 0%,#211a1c 70%,#120e0f 100%); }
.ph--video    { background: linear-gradient(135deg,#283357 0%,#171d39 100%); }
.ph--product  { background: radial-gradient(100% 100% at 50% 0%,#e9eef5 0%,#cdd6e4 60%,#aab6cc 100%); }
.ph__sheen {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.10) 50%, transparent 60%);
  pointer-events: none;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid transparent; border-radius: 0;
  transition: all .35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--gold { background: var(--gold); color: var(--navy-900); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--ghost:hover { border-color: currentColor; }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { background: rgba(255,255,255,.85); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Reveal (scroll-in) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Divider gold ---------- */
.rule-gold { width: 56px; height: 2px; background: var(--gold); border: 0; margin: 0; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--navy-700); border-radius: 0; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Champs de formulaire ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--fg-dim); text-transform: uppercase; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--fg);
  background: transparent;
  border: 0; border-bottom: 1.5px solid var(--line);
  padding: 12px 2px;
  transition: border-color .3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--fg-dim) 70%, transparent); }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }

/* utilitaires */
.eyebrow-row { display: flex; align-items: center; gap: 16px; }
.muted { color: var(--fg-dim); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ============================================================
   RESPONSIVE — Mobile first
   ============================================================ */

/* ── Base ── */
html { overflow-x: clip; scroll-behavior: smooth; }
body { overflow-x: clip; }

/* ── Tablette (≤ 980px) ── */
@media (max-width: 980px) {
  /* Nav */
  .nav-desktop, .nav-switch, .nav-lang, .nav-cta { display: none !important; }
  .nav-burger { display: inline-flex !important; }
  .nav-mobile { display: block !important; }

  /* Image toujours en premier sur tablette/mobile (services) */
  .svc-row .svc-media   { order: 1 !important; }
  .svc-row .svc-content { order: 2 !important; }

  /* Hero B2C : texte + boutons en premier, image en dessous */
  .b2c-hero-content { order: 1 !important; }
  .b2c-hero-media   { order: 2 !important; }

  /* Grids 2 colonnes */
  .svc-cards, .b2c-feat          { grid-template-columns: 1fr 1fr !important; }
  .proc-grid, .val-grid           { grid-template-columns: 1fr 1fr !important; }
  .home-port                      { grid-template-columns: 1fr 1fr !important; }
  .home-port > .reveal:first-child{ grid-column: auto !important; }
  .port-grid                      { grid-template-columns: 1fr 1fr !important; }
  .svc-row                        { grid-template-columns: 1fr !important; }
  .testi-row                      { grid-template-columns: 80px 1fr !important; gap: 20px !important; }
  .footer-grid                    { grid-template-columns: 1fr 1fr !important; gap: 36px !important; }

  /* Sections où .wrap lui-même est le grid */
  .wrap[style*="grid-template-columns: 1.15fr"],
  .wrap[style*="grid-template-columns: 1.2fr"],
  .wrap[style*="grid-template-columns: 0.9fr"],
  .wrap[style*="grid-template-columns: 1fr 1.3fr"],
  .wrap[style*="grid-template-columns: 1fr 1.2fr"],
  .wrap[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Hero B2C grid */
  .b2c-hero-grid { grid-template-columns: 1fr !important; }
}

/* ── Mobile (≤ 680px) ── */
@media (max-width: 680px) {
  :root { --gutter: 18px; }
  body  { font-size: 16px; }

  /* Nav mobile — meilleure typographie */
  .nav-mobile a[style] { font-size: 22px !important; padding: 10px 0 !important; }

  /* Tous les grids en colonne unique */
  .svc-row                            { grid-template-columns: 1fr !important; }
  .b2c-feat                           { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .home-port                          { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .svc-cards, .port-grid,
  .val-grid                          { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .proc-grid                           { grid-template-columns: 1fr 1fr !important; }

  /* Empêche les enfants de déborder leur colonne */
  .svc-cards > *, .port-grid > *, .val-grid > *,
  .b2c-feat > *, .home-port > * { min-width: 0; overflow: hidden; }
  .testi-row                           { grid-template-columns: 1fr !important; }
  .footer-grid                         { grid-template-columns: 1fr !important; gap: 28px !important; }
  .entry-split                         { flex-direction: column !important; }

  /* .wrap lui-même est le grid */
  .wrap[style*="grid-template-columns: 1.15fr"],
  .wrap[style*="grid-template-columns: 1.2fr"],
  .wrap[style*="grid-template-columns: 0.9fr"],
  .wrap[style*="grid-template-columns: 1fr 1.3fr"],
  .wrap[style*="grid-template-columns: 1fr 1.2fr"],
  .wrap[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Hero B2C grid */
  .b2c-hero-grid { grid-template-columns: 1fr !important; }

  /* Sections intérieures — padding réduit (pas les heros) */
  section[style*="paddingBottom"]:not([style*="paddingTop: \"clamp(130px"]):not([style*="paddingTop: \"clamp(140px"]) {
    padding-bottom: clamp(40px,8vw,60px) !important;
  }

  /* Boutons — pleine largeur dans les CTA */
  .cta-btns { flex-direction: column !important; align-items: stretch !important; }
  .cta-btns .btn { justify-content: center !important; width: 100% !important; }

  /* Barre sociale — cachée sur mobile (dans footer) */
  .social-bar-fixed { display: none !important; }

  /* Portfolio cards — aspect ratio portrait */
  .port-grid .port-card .ph { aspect-ratio: 4/5; }

  /* Process grid — 2 colonnes sur mobile */
  .proc-grid > .reveal { padding: 16px 0 !important; }

  /* Testimonials — centré */
  .testi-row > div:last-child { order: 2 !important; }
  .testi-row > *:first-child  { order: 1 !important; }

  /* Contact form — pleine largeur */
  .field { grid-column: 1 / -1 !important; }

  /* Footer */
  .footer-grid > div:first-child { padding-bottom: 8px; border-bottom: 1px solid var(--line-dark); }
}

/* ── Petit mobile (≤ 400px) ── */
@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .btn  { padding: 13px 18px; font-size: 13px; }
  .proc-grid { grid-template-columns: 1fr !important; }
}

/* ── Logo central entry — caché sur tablette/mobile ── */
@media (max-width: 980px) {
  .entry-logo-center { display: none !important; }
}

/* ── Entry split screen mobile ── */
@media (max-width: 680px) {
  .entry-split > div { min-height: 50dvh; flex: 1 1 50% !important; }
  .entry-split > div:first-child { min-height: 52dvh; }
  .entry-split > div:last-child  { min-height: 48dvh; }
}

/* ── Barre sociale repositionnée sur mobile ── */
@media (max-width: 768px) {
  /* La barre sociale fixe disparaît */
  div[style*="position: fixed"][style*="right: 0"][style*="top: 50%"] {
    display: none !important;
  }
}

/* ── Nav mobile améliorée ── */
.nav-mobile-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-size: 28px; font-weight: 500;
  color: var(--fg); transition: color .2s, padding-left .25s;
}
.nav-mobile-link:active { color: var(--gold); padding-left: 8px; }

/* ── Cartes portfolio — hover tactile ── */
@media (hover: none) {
  .port-card .port-over    { opacity: 1 !important; }
  .port-card .ph           { transform: none !important; }
  .svc-card:hover          { transform: none !important; }
}

/* ── Scrollbar cachée sur mobile ── */
@media (max-width: 680px) {
  ::-webkit-scrollbar { display: none; }
}

/* ── Intro hero mobile ── */
@media (max-width: 680px) {
  .intro-sound-btn {
    bottom: 16px !important; right: 16px !important;
    padding: 9px 14px !important; font-size: 11px !important;
  }
}

/* ============================================================
   FIN RESPONSIVE
   ============================================================ */

/* ---------- Intro hero ---------- */
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50%       { transform: translateY(6px); opacity: 1; }
}
@keyframes soundPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(194,163,107,.5); }
  50%       { box-shadow: 0 0 0 8px rgba(194,163,107,0); }
}
.sound-btn-pulse { animation: soundPulse 2s infinite; }
.intro-sound-btn:hover { background: rgba(255,255,255,.15) !important; border-color: rgba(255,255,255,.5) !important; color: #fff !important; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }
