/* ===== Florence Coiffure – coiffure à domicile ===== */

:root {
  --bg: #f7f4ef;
  --tint: #eee8df;
  --ink: #1f2b2d;
  --muted: #5d6668;
  --accent: #a8754f;
  --accent-dark: #8a5c3b;
  --line: #ddd4c8;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(31, 43, 45, .07);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font: 400 16.5px/1.7 var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { text-wrap: balance; font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 32px); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: .5rem 1rem; }

.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .8rem;
}
.lead { font-size: 1.1rem; color: var(--muted); }

/* ----- Boutons ----- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.6rem; border-radius: 6px;
  background: var(--ink); color: #fff; font-weight: 500; text-decoration: none;
  border: 1px solid var(--ink); transition: background .2s, color .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: #fff; }
.btn--small { padding: .55rem 1rem; font-size: .9rem; }

/* ----- En-tête ----- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 239, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 2rem; height: 72px; }
.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font: 600 1.6rem var(--serif); margin: 0; }
.logo img { width: 42px; height: 42px; }
.logo em { font-style: italic; font-weight: 500; color: var(--accent); }
.nav { display: flex; gap: 1.8rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav a:hover { color: var(--accent); }

/* ----- Accroche ----- */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.hero h1 span { display: block; font-style: italic; font-weight: 500; color: var(--accent); font-size: .55em; margin-top: .35em; }
.hero .lead { max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0; }
.hero__facts { list-style: none; padding: 1.4rem 0 0; margin: 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; font-size: .92rem; color: var(--muted); }
.hero__facts li { display: flex; align-items: center; gap: .5rem; }
.hero__facts .ico { color: var(--accent); }

.visual { position: relative; aspect-ratio: 4 / 5; container-type: inline-size; }
.visual__art {
  position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-linecap: round;
  /* la mèche s'estompe sur les côtés au lieu d'être coupée net */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.visual__hair path { stroke: url(#g-gold); fill: none; }
.visual__scissors { stroke: var(--accent); stroke-width: 3.5; stroke-linejoin: round; }
.visual__scissors .blade { fill: url(#g-blade); stroke: none; }
.visual__scissors .screw { fill: var(--bg); stroke-width: 2.5; }
.visual__scissors .fill { fill: var(--accent); stroke: none; }
.visual__caption {
  position: absolute; left: 0; right: 0; bottom: 14%; text-align: center; color: var(--muted);
}
.visual__caption strong { display: block; font: 600 clamp(1.5rem, 8.5cqw, 2.3rem)/1 var(--serif); color: var(--ink); }
.visual__caption strong em { font-weight: 500; color: var(--accent); }

/* ----- Sections ----- */
.section { padding: clamp(3.5rem, 6vw, 4.5rem) 0; }
/* Sections du menu : plein écran et contenu centré quand on y arrive par un lien */
@media (min-width: 900px) and (min-height: 620px) {
  #prestations, #zone, #contact { min-height: calc(100svh - 72px); display: flex; align-items: center; }
}
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: #e9e4dc; }
.section--dark h2 { color: #fff; }
.section__head { text-align: center; max-width: 780px; margin: 0 auto 2.2rem; }
.section__head p:not(.eyebrow) { max-width: 620px; margin-inline: auto; }
.section__head p:last-child:not(.eyebrow) { color: var(--muted); }

/* ----- Prestations ----- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card { background: #fff; border-radius: var(--radius); padding: 1.5rem 1.4rem; text-align: center; box-shadow: var(--shadow); border: 1px solid transparent; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card__ico { display: block; margin-inline: auto; width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .6rem; }
.card h3 { margin-bottom: .3em; }
.card p { color: var(--muted); margin: 0; font-size: .93rem; line-height: 1.6; }

/* ----- Étapes ----- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: none; }
.steps li { text-align: center; padding: 0 1rem; }
.steps__num {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent); font: 600 1.6rem var(--serif); margin-bottom: 1rem;
}
.steps p { color: var(--muted); }

/* ----- Zone ----- */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.towns { list-style: none; padding: 0; margin: 1.8rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.towns li { display: flex; align-items: center; gap: .6rem; padding: .9rem 1rem; border: 1px solid rgba(255, 255, 255, .15); border-radius: 8px; font-weight: 500; color: #fff; }
.towns .ico { color: var(--accent); }
.towns small { margin-left: auto; color: #9aa3a4; font-weight: 400; }
.muted-light { color: #9aa3a4; font-size: .93rem; }
.zone__map { position: relative; border-radius: var(--radius); overflow: hidden; }
.zone__map iframe { display: block; width: 100%; height: 540px; border: 0; pointer-events: none; }
.zone__overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.zone__area { fill: rgba(168, 117, 79, .18); stroke: #a8754f; stroke-width: 2.5; stroke-dasharray: 8 6; stroke-linejoin: round; }
.zone__open {
  /* recouvre le bouton Google (non cliquable car la carte est figée) */
  position: absolute; top: 8px; left: 8px; min-width: 175px; padding: .55rem .9rem; border-radius: 4px;
  background: #fff; color: #1a73e8; font-size: .9rem; font-weight: 500; text-decoration: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.zone__open:hover { color: var(--accent-dark); }

/* ----- À propos ----- */
.about { text-align: center; }
.about p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }

/* ----- Contact ----- */
.contact { text-align: center; }
.contact__grid { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 560px; margin-inline: auto; gap: 1rem; margin-top: 2rem; text-align: left; }
.contact__item {
  display: flex; align-items: center; gap: .9rem; padding: 1.2rem 1.3rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; transition: border-color .2s;
  overflow-wrap: anywhere;
}
.contact__item:hover { border-color: var(--accent); }
.contact__item .ico { width: 26px; height: 26px; color: var(--accent); }
.contact__item small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* ----- Pied de page ----- */
.footer { background: var(--ink); color: #b9c0c0; padding: 3rem 0 1.4rem; font-size: .93rem; }
.footer a { color: #e9e4dc; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.footer__logo { width: 300px; max-width: 100%; height: auto; margin-bottom: .8rem; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2rem; padding-top: 1.2rem; font-size: .83rem; }

.mobile-bar { display: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .zone { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { padding-bottom: 60px; }
  .nav { display: none; }
  .header .btn--small { margin-left: auto; }
  .logo { font-size: 1.35rem; }
  .logo img { width: 36px; height: 36px; }
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__visual { max-width: 300px; width: 100%; margin-inline: auto; }
  .cards, .steps { grid-template-columns: 1fr; }
  .towns { grid-template-columns: 1fr; }
  .zone__map iframe { height: 420px; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--ink); box-shadow: 0 -4px 20px rgba(0, 0, 0, .15);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; color: #fff; text-decoration: none; padding: 1rem; font-weight: 500; }
  .mobile-bar a + a { border-left: 1px solid rgba(255, 255, 255, .15); }
}

@media (max-width: 420px) {
  .header .btn--small { padding: .5rem .7rem; font-size: 0; gap: 0; }
  .header .btn--small .ico { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
