/* Morena — charte : Parisienne (M uniquement) + Jost, bleu nuit / blanc marbre / rouge */
:root {
  --bleu: #0F1A2E;
  --bleu-2: #1B2946;
  --marbre: #E9EAEC;
  --marbre-2: #D5D8DD;
  --rouge: #A51F2F;
  --ardoise: #4A5163;
  --texte-doux: #C9CBD1;
  --ligne: rgba(233, 234, 236, 0.18);
  --script: 'Parisienne', cursive;
  --sans: 'Jost', system-ui, sans-serif;
  --gutter: clamp(24px, 6.5vw, 96px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bleu);
  color: var(--marbre);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Logo */
.logo { display: inline-flex; align-items: baseline; font-weight: 300; line-height: 1; }
.logo__m { font-family: var(--script); font-weight: 400; line-height: 1; }
.logo--sm .logo__m { font-size: 48px; margin-right: -2px; }
.logo--sm .logo__rest { font-size: 20px; }
.logo--xl .logo__m { font-size: clamp(140px, 19vw, 280px); margin-right: -0.035em; }
.logo--xl .logo__rest { font-size: clamp(60px, 8.3vw, 120px); }

/* Typo */
.overline { font-size: 15px; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.75; }
.overline--red { color: var(--rouge); opacity: 1; }
.overline--muted { color: var(--ardoise); opacity: 1; }
.h2 { font-size: clamp(38px, 4.5vw, 64px); font-weight: 300; line-height: 1.05; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 0 32px;
  font-size: 15px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase;
  transition: opacity .2s, background-color .2s, color .2s;
}
.btn--sm { min-height: 48px; padding: 0 22px; font-size: 14px; gap: 10px; }
.btn--red { background: var(--rouge); color: var(--marbre); }
.btn--red:hover { background: #8C1C2A; }
.btn--marble { background: var(--marbre); color: var(--rouge); }
.btn--marble:hover { background: #fff; }
.btn--outline { border: 1px solid rgba(233, 234, 236, 0.55); }
.btn--outline:hover { background: rgba(233, 234, 236, 0.08); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.icon-btn:hover { opacity: .75; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }
.actions--center { justify-content: center; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 26, 46, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(233, 234, 236, 0.12);
}
.nav__inner { height: 96px; display: flex; align-items: center; justify-content: space-between; }
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__anchor { font-size: 15px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; }
.nav__anchor:hover { opacity: .7; }

/* Accueil */
.hero { position: relative; overflow: hidden; min-height: min(824px, calc(100vh - 96px)); display: flex; align-items: center; }
.hero__watermark {
  position: absolute; right: -3vw; top: -12vw;
  font-family: var(--script); font-size: clamp(620px, 83vw, 1200px); line-height: 1;
  opacity: 0.05; pointer-events: none; user-select: none;
}
.hero__inner { position: relative; display: flex; flex-direction: column; gap: 40px; padding-top: 80px; padding-bottom: 80px; }
.hero__lead { max-width: 620px; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.5; }

/* Portfolio */
.portfolio { background: var(--marbre); color: var(--bleu); padding: clamp(64px, 8.3vw, 120px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.section-head > div { display: flex; flex-direction: column; gap: 14px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tile {
  aspect-ratio: 4 / 5; padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .3s ease;
}
.tile:hover { transform: translateY(-4px); }
.tile--bleu { background: var(--bleu); color: var(--marbre); }
.tile--blanc { background: var(--marbre-2); color: var(--bleu); }
.tile--rouge { background: var(--rouge); color: var(--marbre); }
.tile__cat { font-size: 13px; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; opacity: .75; }
.tile__ph { flex-grow: 1; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; opacity: .55; text-align: center; }
.tile__foot { display: flex; justify-content: space-between; align-items: baseline; }
.tile__name { font-size: clamp(16px, 1.8vw, 26px); }
.tile__m { font-family: var(--script); font-size: 40px; line-height: 1; }

/* À propos */
.about { padding: clamp(64px, 8.3vw, 120px) 0; }
.about__inner { display: grid; grid-template-columns: 5fr 1fr 6fr; align-items: center; }
.about__portrait {
  grid-column: 1; aspect-ratio: 4 / 5; max-height: 600px; background: var(--bleu-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(233, 234, 236, 0.6);
}
.about__text { grid-column: 3; display: flex; flex-direction: column; gap: 28px; }
.h2--about { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.15; }
.about__bio { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--texte-doux); }
.services { border-top: 1px solid var(--ligne); }
.services li { padding: 18px 0; border-bottom: 1px solid var(--ligne); display: flex; flex-direction: column; gap: 6px; }
.services h3 { margin: 0; font-size: clamp(18px, 1.5vw, 21px); font-weight: 400; }
.services p { font-size: 16px; line-height: 1.5; color: var(--texte-doux); }

/* Contact */
.contact { background: var(--rouge); padding: clamp(64px, 8.3vw, 120px) 0; text-align: center; }
.contact__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.contact__m { font-family: var(--script); font-size: clamp(120px, 12.5vw, 180px); line-height: 1; }
.contact__lead { max-width: 560px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; }
.contact .actions { margin-top: 12px; }

/* Demande de devis */
.quote {
  width: 100%; max-width: 920px; margin-top: 56px;
  padding: clamp(28px, 5vw, 64px);
  background: var(--marbre); color: var(--bleu); text-align: left;
}
.quote__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.quote__title { margin: 0; font-size: clamp(30px, 3.4vw, 44px); font-weight: 300; line-height: 1.1; }
.quote__intro { font-size: 17px; line-height: 1.5; color: var(--ardoise); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.field > label, .field > legend {
  display: block; padding: 0; margin-bottom: 10px;
  font-size: 13px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ardoise);
}
.req { color: var(--rouge); }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(15, 26, 46, 0.35); border-radius: 0;
  background: transparent; color: var(--bleu);
  font: inherit; font-size: 18px; font-weight: 300;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%230F1A2E' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 4px center;
}
.field input::placeholder, .field textarea::placeholder { color: #7A8090; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--rouge); box-shadow: 0 1px 0 var(--rouge); }
.field.is-invalid input:not([type=checkbox]):not([type=radio]), .field.is-invalid select, .field.is-invalid textarea { border-bottom-color: var(--rouge); box-shadow: 0 1px 0 var(--rouge); }
.field.is-invalid .consent { color: var(--rouge); }
.field.is-invalid .chip span { border-color: var(--rouge); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid rgba(15, 26, 46, 0.35); font-size: 15px; font-weight: 400; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip span:hover { border-color: var(--bleu); }
.chip input:checked + span { background: var(--bleu); border-color: var(--bleu); color: var(--marbre); }
.chip input:focus-visible + span { outline: 2px solid var(--rouge); outline-offset: 2px; }
.consent { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; font-weight: 300; line-height: 1.5; color: var(--bleu); cursor: pointer; }
.consent input { flex-shrink: 0; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--rouge); }
.quote__actions { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.quote__actions .btn { border: 0; cursor: pointer; font-family: inherit; }
.quote__actions .btn:disabled { opacity: .6; cursor: wait; }
.quote__note { font-size: 14px; color: var(--ardoise); }
.form-status { font-size: 16px; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-ok { padding: 16px 20px; background: var(--bleu); color: var(--marbre); }
.form-status.is-error { padding: 16px 20px; border: 1px solid var(--rouge); color: var(--rouge); }
.form-status a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pied de page */
.footer { padding: 48px 0; font-size: 14px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer .logo { text-transform: none; letter-spacing: 0; }
.footer__copy { opacity: .7; }
.footer__links { display: flex; gap: 32px; }
.footer__links a:hover { opacity: .7; }

/* Tablette */
@media (max-width: 960px) {
  .nav__anchor { display: none; }
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__portrait, .about__text { grid-column: 1; }
  .about__portrait { max-height: 520px; }
}

/* Mobile */
@media (max-width: 640px) {
  html { scroll-padding-top: 72px; }
  .nav__inner { height: 72px; }
  .nav__links { gap: 8px; }
  .btn--sm { min-height: 44px; padding: 0 16px; font-size: 13px; }
  .logo--sm .logo__m { font-size: 42px; }
  .logo--sm .logo__rest { font-size: 18px; }
  .hero { min-height: 640px; }
  .hero__inner { gap: 28px; }
  .overline { font-size: 13px; }
  .actions { flex-direction: column; width: 100%; }
  .actions .btn { width: 100%; min-height: 56px; font-size: 14px; }
  .section-head { margin-bottom: 32px; }
  .section-head .overline--muted { display: none; }
  .grid { gap: 6px; }
  .tile { padding: 10px; justify-content: flex-end; }
  .tile__cat, .tile__ph, .tile__m { display: none; }
  .tile__name { font-size: 11px; }
  .footer__inner { flex-direction: column; gap: 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 24px; }
  .quote { margin-top: 40px; }
  .quote__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .btn { transition: none; }
}
