/* =========================================================
   NÉROLI — Salon de coiffure & institut, Bordeaux
   Identité : épurée, douce, botanique, féminine moderne
   Palette  : sauge · terre/argile · crème · encre douce
   Typo     : Marcellus (serif élégant) + Jost (sans géométrique)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --sauge:    #8A9A7B;
  --sauge-d:  #6E7E60;
  --sauge-l:  #A7B59A;
  --sauge-pale:#EAEEE3;
  --terre:    #C28568;
  --terre-d:  #A86D51;
  --creme:    #FAF6F0;
  --creme-2:  #F1EAE0;
  --ivoire:   #FFFFFF;
  --encre:    #2E2A24;
  --encre-2:  #4A443C;
  --gris:     #7C766C;
  --gris-l:   #A89F92;
  --ligne:    #E7DFD3;
  --ligne-2:  #D8CDBC;

  --maxw:    1200px;
  --pad-x:   clamp(22px, 5vw, 60px);
  --t:       260ms cubic-bezier(.33, 0, .15, 1);
  --serif:   'Marcellus', Georgia, 'Times New Roman', serif;
  --sans:    'Jost', system-ui, -apple-system, sans-serif;
  --r:       14px;

  --sh-sm: 0 2px 14px rgba(46, 42, 36, .05);
  --sh-md: 0 20px 50px rgba(46, 42, 36, .10);
  --sh-lg: 0 40px 80px rgba(46, 42, 36, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.75;
  font-weight: 300; color: var(--encre-2); background: var(--creme);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.14; color: var(--encre); letter-spacing: .005em; }
p { margin: 0 0 1em; }
::selection { background: var(--sauge); color: var(--ivoire); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }

/* ============ BOUTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 500; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 15px 32px; border-radius: 100px; cursor: pointer; border: 1px solid transparent; transition: var(--t); white-space: nowrap;
}
.btn--solid  { background: var(--sauge); color: var(--ivoire); }
.btn--solid:hover  { background: var(--sauge-d); transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn--terre  { background: var(--terre); color: var(--ivoire); }
.btn--terre:hover  { background: var(--terre-d); transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn--outline{ background: transparent; color: var(--encre); border-color: var(--ligne-2); }
.btn--outline:hover{ border-color: var(--sauge); color: var(--sauge-d); }
.btn--ghost  { background: transparent; color: var(--ivoire); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover  { background: var(--ivoire); color: var(--sauge-d); border-color: var(--ivoire); }
.btn--sm { padding: 11px 22px; font-size: .78rem; }
.btn--lg { padding: 17px 40px; font-size: .92rem; }

.link-arrow { font-family: var(--sans); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; color: var(--terre-d); display: inline-flex; align-items: center; gap: 9px; transition: var(--t); }
.link-arrow svg { transition: var(--t); }
.link-arrow:hover { color: var(--terre); } .link-arrow:hover svg { transform: translateX(4px); }

/* ============ TOPBAR ============ */
.topbar { background: var(--sauge-d); color: var(--sauge-pale); font-size: .78rem; letter-spacing: .08em; }
.topbar__inner { display: flex; align-items: center; justify-content: center; gap: 12px; height: 40px; }
.topbar a:hover { color: #fff; }
.topbar__sep { opacity: .4; }
@media (max-width: 640px) { .topbar__item--hide, .topbar__sep--hide { display: none; } }

/* ============ HEADER ============ */
.header { position: sticky; top: 0; z-index: 60; background: rgba(250,246,240,.85); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: var(--t); }
.header.is-scrolled { border-bottom-color: var(--ligne); box-shadow: var(--sh-sm); background: rgba(250,246,240,.96); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 30px; }
.logo { display: block; color: var(--encre); flex-shrink: 0; }
.logo svg { height: 44px; width: auto; }

.nav { display: flex; gap: 36px; }
.nav__link { font-family: var(--sans); font-weight: 500; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-2); position: relative; padding: 4px 0; transition: var(--t); }
.nav__link::after { content: ''; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px; background: var(--terre); transform: scaleX(0); transform-origin: center; transition: var(--t); }
.nav__link:hover { color: var(--terre-d); } .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--terre-d); }

.header__cta { display: flex; align-items: center; gap: 16px; }
.burger { display: none; flex-direction: column; gap: 5px; width: 30px; height: 30px; background: none; border: none; cursor: pointer; padding: 5px; }
.burger span { display: block; height: 1.5px; width: 100%; background: var(--encre); transition: var(--t); }

@media (max-width: 920px) {
  .nav { display: none; } .burger { display: flex; } .header__inner { height: 72px; } .logo svg { height: 38px; }
}

/* ============ MENU MOBILE ============ */
.mobile-overlay { position: fixed; inset: 0; background: rgba(46,42,36,.45); opacity: 0; visibility: hidden; transition: var(--t); z-index: 90; }
.mobile-overlay.is-open { opacity: 1; visibility: visible; }
.mobile-menu { position: fixed; top: 0; right: 0; height: 100%; width: min(350px, 84vw); background: var(--sauge); color: var(--ivoire); z-index: 100; transform: translateX(100%); transition: transform 360ms cubic-bezier(.33,0,.15,1); padding: 78px 36px 40px; display: flex; flex-direction: column; gap: 2px; }
.mobile-menu.is-open { transform: translateX(0); box-shadow: var(--sh-lg); }
.mobile-menu__close { position: absolute; top: 24px; right: 26px; background: none; border: none; color: var(--ivoire); cursor: pointer; }
.mobile-menu__eyebrow { font-family: var(--serif); font-size: 1.2rem; letter-spacing: .14em; opacity: .65; margin-bottom: 18px; }
.mobile-menu a { font-family: var(--serif); font-size: 1.6rem; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.16); transition: var(--t); }
.mobile-menu a:hover { padding-left: 8px; color: var(--creme-2); }
.mobile-menu__resa { color: var(--creme) !important; }
.mobile-menu__phone { margin-top: auto; font-family: var(--sans) !important; font-size: 1.05rem !important; letter-spacing: .06em; border: none !important; opacity: .85; }

/* ============ SECTIONS ============ */
.section { padding: clamp(64px, 9vw, 130px) 0; }
.section--sage { background: var(--sauge-pale); }
.section--deep { background: var(--sauge); color: var(--ivoire); }
.section--ivory { background: var(--ivoire); }
.section--tight { padding: clamp(48px, 6vw, 84px) 0; }

.eyebrow { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--terre-d); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--terre); }
.section--deep .eyebrow { color: var(--creme); } .section--deep .eyebrow::before { background: var(--creme); }

.section__head { max-width: 640px; margin-bottom: 60px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__title { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.section__lead { font-size: 1.1rem; color: var(--gris); margin-top: 18px; font-weight: 300; }
.section--deep .section__lead { color: var(--sauge-pale); }

/* ============ HERO ============ */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; color: var(--ivoire); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(46,42,36,.62) 0%, rgba(46,42,36,.28) 55%, rgba(46,42,36,.08) 100%); }
.hero__inner { position: relative; z-index: 1; padding: 130px 0 60px; max-width: 660px; }
.hero__eyebrow { color: var(--creme); } .hero__eyebrow::before { background: var(--creme); }
.hero__title { font-size: clamp(2.8rem, 6.4vw, 5rem); line-height: 1.04; }
.hero__title em { font-style: italic; }
.hero__text { font-size: clamp(1.05rem, 1.5vw, 1.22rem); max-width: 480px; margin-top: 22px; color: rgba(255,255,255,.92); font-weight: 300; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 36px; }

/* ============ SPLIT ============ */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r); box-shadow: var(--sh-md); }
.split__media--round img { border-radius: 200px 200px var(--r) var(--r); }
.split__tag { position: absolute; bottom: 24px; left: -22px; background: var(--terre); color: var(--ivoire); padding: 14px 24px; border-radius: 100px; font-family: var(--serif); font-size: 1.05rem; box-shadow: var(--sh-md); }
.split__title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 22px; }
.split__text p { color: var(--gris); }
.signature { font-family: var(--serif); font-size: 1.4rem; color: var(--sauge-d); margin-top: 26px; }
.signature small { display: block; font-family: var(--sans); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gris-l); margin-top: 6px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 46px; } .split--reverse .split__media { order: 0; } .split__media img { aspect-ratio: 3/2; } .split__media--round img { border-radius: var(--r); } .split__tag { left: 14px; } }

/* ============ CARTES PRESTATIONS (accueil) ============ */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service { background: var(--ivoire); border-radius: var(--r); overflow: hidden; transition: var(--t); border: 1px solid var(--ligne); }
.service:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.service__media { aspect-ratio: 3/4; overflow: hidden; }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.33,0,.15,1); }
.service:hover .service__media img { transform: scale(1.07); }
.service__body { padding: 22px 22px 26px; }
.service__name { font-size: 1.32rem; margin-bottom: 8px; }
.service__desc { font-size: .9rem; color: var(--gris); margin: 0 0 14px; }
.service__from { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--terre-d); font-weight: 500; }
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .services { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; } }

/* ============ ONGLETS PRESTATIONS ============ */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 48px; }
.tab { font-family: var(--sans); font-weight: 500; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; padding: 12px 26px; border-radius: 100px; border: 1px solid var(--ligne-2); background: transparent; color: var(--encre-2); cursor: pointer; transition: var(--t); }
.tab:hover { border-color: var(--sauge); }
.tab.is-active { background: var(--sauge); color: var(--ivoire); border-color: var(--sauge); }
.panel { display: none; }
.panel.is-active { display: block; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ============ LISTE TARIFS ============ */
.price-list { max-width: 760px; margin: 0 auto; }
.price-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--ligne); }
.price-row:last-child { border-bottom: none; }
.price-row__name { font-family: var(--serif); font-size: 1.2rem; color: var(--encre); }
.price-row__price { font-family: var(--serif); font-size: 1.2rem; color: var(--terre-d); white-space: nowrap; }
.price-row__price small { font-family: var(--sans); font-size: .72rem; letter-spacing: .08em; color: var(--gris-l); text-transform: uppercase; }
.price-row__desc { grid-column: 1 / -1; font-size: .9rem; color: var(--gris); margin: 0; }
.price-row__meta { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gris-l); margin-top: 3px; }

/* ============ FORFAITS ============ */
.forfaits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.forfait { background: var(--ivoire); border: 1px solid var(--ligne); border-radius: var(--r); padding: 36px 30px; text-align: center; transition: var(--t); }
.forfait:hover { box-shadow: var(--sh-md); transform: translateY(-4px); }
.forfait__name { font-size: 1.5rem; margin-bottom: 14px; }
.forfait__detail { font-size: .94rem; color: var(--gris); margin-bottom: 18px; min-height: 48px; }
.forfait__price { font-family: var(--serif); font-size: 2.4rem; color: var(--sauge-d); }
@media (max-width: 820px) { .forfaits { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } .forfait__detail { min-height: 0; } }

/* ============ ÉQUIPE ============ */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.member { text-align: center; }
.member__photo { width: 190px; height: 190px; border-radius: 50%; object-fit: cover; margin: 0 auto 22px; box-shadow: var(--sh-sm); border: 4px solid var(--ivoire); }
.member__name { font-size: 1.4rem; }
.member__role { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terre-d); margin: 6px 0 12px; }
.member__bio { font-size: .92rem; color: var(--gris); margin: 0; }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; gap: 40px; max-width: 320px; margin: 0 auto; } }

/* ============ VALEURS ============ */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value { text-align: center; }
.value__ico { width: 56px; height: 56px; margin: 0 auto 18px; color: var(--sauge-d); }
.value__ico svg { width: 100%; height: 100%; }
.value h3 { font-size: 1.35rem; margin-bottom: 10px; }
.value p { color: var(--gris); font-size: .95rem; margin: 0; }
.section--deep .value { color: var(--ivoire); } .section--deep .value__ico { color: var(--creme); } .section--deep .value p { color: var(--sauge-pale); }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; gap: 34px; max-width: 380px; margin: 0 auto; } }

/* ============ GALERIE ============ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--r); aspect-ratio: 3/4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.33,0,.15,1); }
.gallery figure:hover img { transform: scale(1.06); }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ============ BANDEAU CTA ============ */
.cta-band { text-align: center; }
.cta-band__title { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.cta-band__title em { font-style: italic; }
.cta-band__text { max-width: 520px; margin: 18px auto 34px; color: var(--sauge-pale); font-size: 1.1rem; font-weight: 300; }

/* ============ PAGE HERO ============ */
.page-hero { position: relative; color: var(--ivoire); padding: clamp(120px, 16vw, 210px) 0 clamp(50px, 7vw, 90px); overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(46,42,36,.42), rgba(46,42,36,.7)); }
.page-hero__inner { position: relative; z-index: 1; max-width: 700px; }
.page-hero__title { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.page-hero__title em { font-style: italic; }
.page-hero__text { font-size: 1.1rem; color: rgba(255,255,255,.9); margin-top: 16px; max-width: 560px; font-weight: 300; }

/* ============ FORMULAIRE ============ */
.form-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
@media (max-width: 880px) { .form-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--ivoire); border: 1px solid var(--ligne); border-radius: var(--r); padding: clamp(28px, 4vw, 48px); box-shadow: var(--sh-sm); }
.field { margin-bottom: 22px; }
.field label { display: block; font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-2); margin-bottom: 9px; }
.field input, .field select, .field textarea { width: 100%; font-family: var(--sans); font-size: 1rem; font-weight: 300; color: var(--encre); padding: 13px 16px; border: 1px solid var(--ligne-2); border-radius: 8px; background: var(--creme); transition: var(--t); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sauge); background: var(--ivoire); box-shadow: 0 0 0 3px rgba(138,154,123,.18); }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .84rem; color: var(--gris-l); margin-top: 6px; }
.err { color: var(--terre-d); }

.aside-info { display: flex; flex-direction: column; gap: 26px; }
.info-block h3 { font-size: 1.3rem; color: var(--sauge-d); margin-bottom: 14px; }
.info-block ul li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--ligne); font-size: .94rem; }
.info-block ul li .is-closed { color: var(--gris-l); }
.info-block address { font-style: normal; color: var(--gris); line-height: 1.9; }
.info-block a { color: var(--terre-d); font-weight: 500; }
.info-soft { background: var(--sauge-pale); border-radius: var(--r); padding: 26px; }

/* ============ CARTE / MAP ============ */
.map-frame { width: 100%; aspect-ratio: 16/10; border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; background: var(--creme-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) sepia(.08); }

/* ============ FOOTER ============ */
.footer { background: var(--encre); color: var(--sauge-pale); padding: clamp(60px, 8vw, 96px) 0 36px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1.1fr; gap: 44px; padding-bottom: 50px; border-bottom: 1px solid rgba(234,238,227,.14); }
.logo--footer { color: var(--creme); margin-bottom: 22px; } .logo--footer svg { height: 46px; }
.footer__bio { font-size: .94rem; color: var(--gris-l); max-width: 330px; font-weight: 300; }
.footer__insta { font-weight: 500; color: var(--sauge-l); letter-spacing: .04em; }
.footer__col h4 { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--creme); margin-bottom: 18px; }
.footer__col a { display: block; padding: 6px 0; color: var(--gris-l); font-size: .94rem; transition: var(--t); }
.footer__col a:hover { color: var(--sauge-l); }
.footer__hours li { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; font-size: .86rem; color: var(--gris-l); }
.footer__hours .is-closed { opacity: .55; }
.footer__address { font-style: normal; color: var(--gris-l); font-size: .94rem; line-height: 1.7; }
.footer__address a:hover { color: var(--sauge-l); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 28px; font-size: .8rem; color: var(--gris); }
.footer__legal { display: flex; gap: 24px; } .footer__legal a:hover { color: var(--sauge-pale); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ============ FLASH ============ */
.flash { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; align-items: center; gap: 11px; background: var(--sauge-d); color: var(--ivoire); padding: 15px 28px; border-radius: 100px; box-shadow: var(--sh-lg); font-weight: 400; font-size: .95rem; transition: opacity 500ms ease; max-width: 90vw; }

/* ============ REVEAL & UTILS ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 750ms cubic-bezier(.33,0,.15,1), transform 750ms cubic-bezier(.33,0,.15,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { scroll-behavior: auto !important; } }
.text-center { text-align: center; }
.divider-quote { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.4; text-align: center; max-width: 820px; margin: 0 auto; color: var(--encre); }
.divider-quote span { color: var(--terre-d); font-style: italic; }
.attrib { text-align: center; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gris-l); margin-top: 24px; }
