/* ============================================================
   nails_irz — Studio porcelaine + bleu poudré
   Bodoni Moda (titres) + Manrope (texte)
   ============================================================ */

:root {
  --porcelaine: #f6f4f1;
  --blanc: #fbfaf8;
  --encre: #2b2724;
  --encre-doux: #8b8179;
  --bleu: #a9c3d4;
  --bleu-d: #7fa3b8;
  --bleu-pale: #eef3f6;
  --or: #c9a86a;
  --or-d: #ac8c4f;
  --ligne: #e6e1da;

  --ft: 'Bodoni Moda', Georgia, serif;   /* titres */
  --fc: 'Manrope', system-ui, sans-serif; /* corps */

  --wrap: 1180px;
  --r: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--fc);
  font-weight: 400;
  color: var(--encre);
  background: var(--porcelaine);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { width: min(100% - 2.6rem, var(--wrap)); margin-inline: auto; }

/* ---- Accessibilité ---- */
.skip-link {
  position: fixed; top: -60px; left: 50%; transform: translateX(-50%);
  z-index: 200; background: var(--encre); color: #fff;
  padding: .7em 1.2em; border-radius: 0 0 8px 8px; transition: top .2s;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--bleu-d); outline-offset: 3px; }

/* ---- Typo commune ---- */
.eyebrow {
  font-family: var(--fc);
  font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  font-size: .7rem; color: var(--or-d); margin: 0 0 .9rem;
}
.section-title {
  font-family: var(--ft);
  font-weight: 400; font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.08; letter-spacing: -.01em; margin: 0;
}
.section-title em { font-style: italic; color: var(--bleu-d); }
.lead { color: var(--encre-doux); font-size: 1.08rem; max-width: 56ch; margin: 1rem 0 0; }

/* ---- Boutons ---- */
.btn {
  --pad: .92em 1.5em;
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--fc); font-weight: 600; font-size: .93rem;
  padding: var(--pad); border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-blue { background: var(--encre); color: var(--blanc); }
.btn-blue:hover { background: var(--bleu-d); }
.btn-ghost { background: transparent; color: var(--encre); border-color: var(--encre); }
.btn-ghost:hover { background: var(--encre); color: var(--blanc); }
.btn-insta {
  background: var(--blanc); color: var(--encre); border-color: var(--ligne);
}
.btn-insta:hover { border-color: var(--bleu-d); color: var(--bleu-d); }

/* ---- Reveal (seulement si JS actif : sans JS tout reste visible) ---- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
.stagger.visible > * { animation: rise .6s var(--ease) both; }
.stagger.visible > *:nth-child(2) { animation-delay: .08s; }
.stagger.visible > *:nth-child(3) { animation-delay: .16s; }
.stagger.visible > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger.visible > * { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.05rem clamp(1.3rem, 4vw, 2.6rem);
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--porcelaine) 88%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--ligne);
  padding-block: .75rem;
}
.brand {
  font-family: var(--ft); font-style: italic; font-size: 1.5rem;
  text-decoration: none; letter-spacing: -.01em;
}
.brand span { color: var(--bleu-d); font-style: normal; font-family: var(--fc); font-weight: 700; font-size: .95em; letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links > a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: .92rem; color: var(--encre);
  position: relative; padding: .2em 0;
}
.nav-links > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--or); transition: width .3s var(--ease);
}
.nav-links > a:not(.btn):hover::after { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
  background-image: url('../assets/gallery/fleur-bleue-french.jpg');
  background-size: cover; background-position: 50% 35%; background-repeat: no-repeat;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(28,25,22,.05) 0%, rgba(28,25,22,.12) 45%, rgba(28,25,22,.62) 100%);
}
.hero-inner {
  width: min(100% - 2.6rem, var(--wrap)); margin-inline: auto;
  padding-bottom: clamp(3rem, 8vh, 6rem); color: var(--blanc);
}
.hero-kicker {
  font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  font-size: .72rem; margin: 0 0 1rem; color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}
.hero h1 {
  font-family: var(--ft); font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 1; letter-spacing: -.02em;
  margin: 0; max-width: 15ch; text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero h1 em { font-style: italic; }
.hero-sub {
  font-size: clamp(1.02rem, 2vw, 1.22rem); max-width: 46ch; margin: 1.3rem 0 0;
  color: #f3efe9; text-shadow: 0 1px 16px rgba(0,0,0,.4);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn-ghost:hover { background: #fff; color: var(--encre); }
.hero-scroll {
  position: absolute; right: clamp(1.3rem, 4vw, 2.6rem); bottom: 1.6rem;
  color: #fff; text-decoration: none; font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: .5em;
  opacity: .9;
}
.hero-scroll span { animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ============================================================
   BLOCS
   ============================================================ */
.block { padding: clamp(3.6rem, 9vw, 7rem) 0; }
.section-head { max-width: 60ch; margin-bottom: 2.8rem; }

/* ---- Signature ---- */
.signature { background: var(--blanc); border-block: 1px solid var(--ligne); }
.sig-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.sig-copy .section-title { margin-top: .2rem; }
.sig-list { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .85rem; }
.sig-list li { display: flex; align-items: baseline; gap: .8rem; color: var(--encre); }
.sig-list .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--bleu-d); transform: translateY(-1px); }
.sig-media { position: relative; }
.sig-media img { border-radius: var(--r); box-shadow: 0 30px 60px -30px rgba(43,39,36,.4); }
.sig-tag {
  position: absolute; left: -14px; bottom: 26px;
  background: var(--blanc); border: 1px solid var(--ligne); border-left: 3px solid var(--or);
  padding: .9rem 1.15rem; max-width: 15rem; margin: 0; font-size: .9rem;
  box-shadow: 0 18px 40px -22px rgba(43,39,36,.5);
}
.sig-tag b { font-family: var(--ft); font-style: italic; font-weight: 500; display: block; margin-bottom: .2rem; }
.sig-tag span { color: var(--encre-doux); font-size: .84rem; }

/* ---- Galerie (masonry) ---- */
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2.2rem; }
.chip {
  font-family: var(--fc); font-weight: 600; font-size: .84rem;
  padding: .5em 1.1em; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--encre-doux); border: 1px solid var(--ligne);
  transition: all .22s var(--ease);
}
.chip:hover { color: var(--encre); border-color: var(--encre-doux); }
.chip[aria-pressed="true"] { background: var(--encre); color: var(--blanc); border-color: var(--encre); }

.gallery { columns: 3 240px; column-gap: 1.1rem; }
.tile {
  break-inside: avoid; margin: 0 0 1.1rem; position: relative;
  border-radius: var(--r); overflow: hidden; background: var(--bleu-pale);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .3s;
}
.tile img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.tile:hover { box-shadow: 0 24px 44px -24px rgba(43,39,36,.5); transform: translateY(-3px); }
.tile:hover img { transform: scale(1.04); }
.tile-cap {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem .95rem .8rem;
  display: flex; flex-direction: column; gap: .1rem; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(28,25,22,.72));
  opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s;
}
.tile:hover .tile-cap, .tile:focus-within .tile-cap { opacity: 1; transform: none; }
.t-kind { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--bleu); font-weight: 700; }
.t-name { font-family: var(--ft); font-style: italic; font-size: 1.05rem; }
.tile.is-hidden { display: none; }

/* ---- Prestations ---- */
.prestations { background: var(--blanc); border-block: 1px solid var(--ligne); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.card {
  background: var(--porcelaine); border: 1px solid var(--ligne); border-radius: var(--r);
  padding: 1.5rem 1.6rem; transition: border-color .3s, transform .3s var(--ease);
}
.card:hover { border-color: var(--bleu-d); transform: translateY(-2px); }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.card-top h3 { font-family: var(--ft); font-weight: 500; font-size: 1.25rem; margin: 0; }
.price { font-family: var(--fc); font-weight: 700; font-size: 1rem; color: var(--or-d); white-space: nowrap; }
.card p { margin: 0; color: var(--encre-doux); font-size: .95rem; }

/* ---- Process ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.6rem); }
.step { padding-top: 1.4rem; border-top: 1px solid var(--ligne); }
.step-n { font-family: var(--ft); font-style: italic; font-size: 2.2rem; color: var(--bleu-d); display: block; margin-bottom: .5rem; }
.step h3 { font-family: var(--ft); font-weight: 500; font-size: 1.3rem; margin: 0 0 .5rem; }
.step p { margin: 0; color: var(--encre-doux); }

/* ---- RDV ---- */
.rdv { background: var(--bleu-pale); }
.rdv-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.rdv-aside .btn-insta { margin-top: 1.6rem; }
.rdv-meta { margin-top: 2rem; display: grid; gap: .1rem; }
.rdv-meta > div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--ligne); font-size: .92rem; }
.rdv-meta .k { color: var(--encre-doux); }
.rdv-meta .v { font-weight: 600; text-align: right; }

.form {
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r);
  padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: 0 30px 60px -40px rgba(43,39,36,.4);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-weight: 600; font-size: .82rem; margin-bottom: .4rem; color: var(--encre); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--fc); font-size: .95rem; color: var(--encre);
  padding: .72em .85em; border: 1px solid var(--ligne); border-radius: var(--r);
  background: var(--porcelaine); transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--bleu-d); background: var(--blanc);
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -5000px; }
.form-status { margin: 0 0 1rem; padding: .8em 1em; border-radius: var(--r); font-size: .9rem; font-weight: 600; }
.form-status { background: var(--bleu-pale); color: var(--bleu-d); }
.form-status.is-ok { background: #eaf3ec; color: #3a7a4e; }
.form-status.is-err { background: #f8ecec; color: #b0483f; }
.form-note { color: var(--encre-doux); font-size: .82rem; margin: .9rem 0 0; }
.form .btn { width: 100%; justify-content: center; margin-top: .3rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--encre); color: #d9d2ca; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer .brand { font-family: var(--ft); font-style: italic; font-size: 1.7rem; margin: 0 0 .6rem; color: #fff; }
.footer .brand span { color: var(--bleu); font-family: var(--fc); font-style: normal; font-weight: 700; font-size: .9em; }
.footer-brand p { color: #b3aba2; max-width: 30ch; margin: 0; }
.footer-col h4 { font-family: var(--fc); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--or); margin: 0 0 1rem; }
.footer-col a, .footer-col p { display: block; text-decoration: none; color: #d9d2ca; margin: 0 0 .55rem; font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; padding-top: 1.6rem; font-size: .8rem; color: #8f877e; }
.footer-legal a { color: #b3aba2; }
.footer-legal a:hover { color: #fff; }

/* ---- Filigrane DÉMO plein écran ---- */
.demo-watermark {
  position: fixed; inset: 0; z-index: 140; pointer-events: none;
  background-image: url('../assets/watermark.svg');
  background-repeat: repeat; background-size: 440px auto;
}

/* ---- Demo mark ---- */
.demo-mark {
  position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%);
  z-index: 150; background: rgba(43,39,36,.9); color: #f3efe9;
  font-size: .7rem; letter-spacing: .1em; padding: .4em 1em; border-radius: 999px;
  pointer-events: none; white-space: nowrap;
}

/* ============================================================
   PAGES SECONDAIRES
   ============================================================ */
.page-thanks, .page-legal { background: var(--porcelaine); }
.thanks-wrap {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; padding: 2rem; gap: .3rem;
}
.thanks-wrap h1 { font-family: var(--ft); font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.4rem); margin: .3rem 0; }
.thanks-wrap .lead { margin-inline: auto; }
.thanks-ctas { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.8rem; }

.legal-wrap { width: min(100% - 2.6rem, 780px); margin-inline: auto; padding: clamp(3rem, 8vw, 6rem) 0; }
.legal-wrap .back { display: inline-block; text-decoration: none; color: var(--encre-doux); font-weight: 600; font-size: .9rem; margin-bottom: 2rem; }
.legal-wrap .back:hover { color: var(--encre); }
.legal-wrap h1 { font-family: var(--ft); font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.2rem); margin: 0 0 1.5rem; }
.legal-wrap h2 { font-family: var(--ft); font-weight: 500; font-size: 1.4rem; margin: 2.2rem 0 .6rem; }
.legal-wrap p { color: #4d453f; }
.legal-wrap a { color: var(--bleu-d); }
.legal-wrap .tbd { color: var(--or-d); font-size: .9rem; border-left: 3px solid var(--or); padding-left: .9rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { gap: 1rem; }
  .nav-links > a:not(.btn) { display: none; }
  .sig-grid, .rdv-grid { grid-template-columns: 1fr; }
  .sig-media { max-width: 460px; }
  .sig-tag { left: auto; right: 10px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hero { min-height: 88vh; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; }
  .demo-mark { font-size: .62rem; }
}
