/* =========================================================
   Art Coiffure & Beauté by Ysa — feuille de style principale
   Aucune dépendance externe (pas de Google Fonts, pas de CDN)
   ========================================================= */

:root {
  --color-bg: #faf6f2;
  --color-bg-alt: #f1e9e2;
  --color-text: #2c2622;
  --color-text-muted: #6b5f56;
  --color-primary: #9c4f4f;      /* terracotta / rosewood */
  --color-primary-dark: #7c3d3d;
  --color-accent: #b7924a;       /* doré discret */
  --color-white: #ffffff;
  --color-border: #e4d9cd;

  --font-heading: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 6px;
  --shadow: 0 4px 16px rgba(44, 38, 34, 0.08);
  --max-width: 1180px;
}

/* ---------- Reset minimal ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary-dark); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  line-height: 1.25;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Accessibilité : lien d'évitement ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* Focus visible clavier partout */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- En-tête ---------- */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  gap: 1rem;
}
.site-header .logo img { height: 48px; width: auto; }
.site-header .logo { flex-shrink: 0; }

.main-nav ul {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary);
  text-decoration: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--color-primary-dark);
}
.btn-outline:hover, .btn-outline:focus {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}
.btn-small { padding: 0.4rem 0.9rem; font-size: 0.8rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0.25rem; padding: 1rem 0; }
  .site-header .container { flex-wrap: wrap; }
  .header-actions .btn-outline { display: none; }
}

/* ---------- Bandeau info (horaires / tel) ---------- */
.info-bar {
  background: var(--color-bg-alt);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.info-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}
.info-bar a { color: var(--color-text-muted); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  background: var(--color-text);
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem 3.5rem;
}
.hero .container { display: flex; flex-direction: column; align-items: center; }
.hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
}
.hero-plaque {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 0 1.75rem;
}
.hero p {
  max-width: 50ch;
  font-size: 1.1rem;
  color: #f3e9df;
}
.hero .btn-primary { margin-top: 0.5rem; }

/* Bandeau simple pour pages internes (sans grande image) */
.page-banner {
  background: var(--color-bg-alt);
  padding: 2.5rem 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.page-banner h1 { margin-bottom: 0.4rem; }
.page-banner p { color: var(--color-text-muted); margin: 0; }

/* ---------- Sections génériques ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title {
  text-align: center;
  margin-bottom: 2rem;
}
.section-title h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-title p { color: var(--color-text-muted); max-width: 60ch; margin: 0 auto; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
}
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card img { aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 1.25rem 1.4rem; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card-body p { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Carte des services ---------- */
.services-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.services-toc a {
  display: inline-block;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  color: var(--color-text);
}
.services-toc a:hover { border-color: var(--color-primary); text-decoration: none; color: var(--color-primary-dark); }

.service-category { margin-bottom: 2.75rem; scroll-margin-top: 5.5rem; }
.service-category h2 {
  font-size: 1.35rem;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}
.service-list { display: flex; flex-direction: column; }
.service-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--color-border);
}
.service-item:last-child { border-bottom: none; }
.service-item-name {
  font-weight: 700;
  color: var(--color-text);
}
.service-item-desc {
  display: block;
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
  max-width: 62ch;
}
.service-item-price {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--color-primary-dark);
  white-space: nowrap;
  text-align: right;
}
.service-item-duration {
  display: block;
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* ---------- Équipe ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}
.team-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.team-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin: 0 auto 1rem;
  border: 2px solid var(--color-primary);
}
.team-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 2px solid var(--color-primary);
  display: block;
}
.team-card h3 { margin-bottom: 0.15rem; }
.team-role {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  display: block;
}
.team-card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-list { margin-bottom: 1.5rem; }
.contact-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--color-border); }
.contact-list li:last-child { border-bottom: none; }
.contact-list strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-text-muted); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { text-align: left; padding: 0.45rem 0; border-bottom: 1px solid var(--color-border); font-size: 0.95rem; }
.hours-table th { font-weight: 600; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--color-border); }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- Widget de réservation en ligne ---------- */
.booking-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  background: var(--color-white);
}
.booking-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 780px;
  border: 0;
  display: block;
}
@media (max-width: 600px) {
  .booking-embed iframe { min-height: 900px; }
}

/* ---------- Bandeau réservation ---------- */
.cta-banner {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 3rem 0;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #f6e9e9; margin-bottom: 1.5rem; }
.cta-banner .btn-outline { border-color: #fff; color: #fff; }
.cta-banner .btn-outline:hover { background: #fff; color: var(--color-primary-dark); }

/* ---------- Pied de page ---------- */
.site-footer {
  background: #241f1c;
  color: #d8cec6;
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 0.8rem; }
.site-footer a { color: #d8cec6; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #40382f;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #a89c90;
}
.footer-bottom ul { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---------- Utilitaires ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
