/* =========================================================================
   ANTHASMA — Layout & components
   ========================================================================= */

/* ============================================================== HEADER === */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex; align-items: center;
  transition: background .5s var(--ease), box-shadow .5s var(--ease), height .4s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid rgba(251,247,239,.12);
  background: linear-gradient(to bottom, #4a7659 0%, #2f4a38 46%, #182a1e 100%);
}
.site-header.scrolled {
  background: linear-gradient(to bottom, rgba(74,118,89,.92) 0%, rgba(47,74,56,.92) 46%, rgba(24,42,30,.95) 100%);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: rgba(251,247,239,.14);
  box-shadow: 0 6px 26px rgba(40,41,31,.18);
  height: 96px;
}
.site-header.scrolled .logo-mark { width: 80px; height: 80px; }
.site-header .btn-primary { background: var(--ivory); color: var(--sage-deep); box-shadow: 0 6px 18px rgba(40,41,31,.18); }
.site-header .btn-primary:hover { background: #fff; color: #2f4a38; box-shadow: 0 12px 28px rgba(40,41,31,.24); }
.header-inner { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

/* Logo */
.logo { display: flex; align-items: center; gap: .7rem; }
.logo-mark {
  width: 152px; height: 152px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  transition: width .4s var(--ease), height .4s var(--ease);
}
.logo-text { display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.logo-name { font-family: "Allura", cursive; font-weight: 400; font-size: 2.75rem; letter-spacing: .01em; line-height: 1; color: var(--ivory); }
.logo-tag  { font-size: .8rem; letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; color: var(--clay-soft); font-weight: 600; }

/* ANTHASMA ⇄ SAMANTHA — exact anagram cross-fade morph (from source site) */
.morph-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--sage-deep);
  font-size: clamp(2.25rem, 4.6vw, 3rem);
  line-height: 1.25;
  letter-spacing: -.02em;
  margin-bottom: .9rem;
}
.morph-text {
  grid-column: 1;
  grid-row: 1;
  transition: opacity 2s ease-in-out, filter 2s ease-in-out, -webkit-filter 2s ease-in-out;
  will-change: opacity, filter;
}
.morph-text.hidden-word {
  opacity: 0;
  filter: blur(12px);
  -webkit-filter: blur(12px);
  pointer-events: none;
}
.morph-text.visible-word {
  opacity: 1;
  filter: blur(0px);
  -webkit-filter: blur(0px);
}
@media (prefers-reduced-motion: reduce) {
  .morph-text { transition: none; }
}

/* Nav */
.nav { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; row-gap: .45rem; column-gap: 1.7rem; }
.nav-break { flex-basis: 100%; height: 0; margin: 0; }
.nav a {
  font-family: var(--font-display);
  font-size: .92rem; font-weight: 500; color: rgba(244,238,226,.82);
  position: relative; padding: .3rem 0;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--clay-soft); transition: width .35s var(--ease);
}
.nav a:hover { color: var(--ivory); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1.1rem; }

/* Language toggle */
.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(251,247,239,.24); border-radius: 100px;
  padding: 3px; background: rgba(251,247,239,.08);
  font-family: var(--font-display);
}
.lang-toggle button {
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  padding: .34rem .68rem; border-radius: 100px; color: rgba(244,238,226,.7);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.lang-toggle button.active { background: var(--ivory); color: var(--sage-deep); }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 22px; height: 1.8px; background: var(--ivory); transition: transform .35s var(--ease), opacity .25s; }
.burger.open span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: var(--paper);
  padding: calc(var(--header-h) + 2rem) var(--pad-x) 3rem;
  display: flex; flex-direction: column; gap: .4rem;
  transform: translateX(100%); transition: transform .5s var(--ease);
  overflow-y: auto;
}
.mobile-nav.open { transform: none; }
.mobile-nav a { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; color: var(--ink); padding: .7rem 0; border-bottom: 1px solid var(--line-soft); }
.mobile-nav .btn { margin-top: 1.6rem; }

/* ================================================================ HERO === */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)); padding-bottom: var(--section-y); overflow: hidden; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-copy { max-width: 600px; position: relative; }
.hero-copy > :not(.hero-watermark) { position: relative; z-index: 1; }
.hero-watermark {
  position: absolute;
  top: 38%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
  opacity: .14;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.hero h1 { margin-top: 1.6rem; }
.hero .lead { margin-top: 1.8rem; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; }
.hero-meta { display: flex; gap: 2.4rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero-meta .stat { display: flex; flex-direction: column; gap: .15rem; }
.hero-meta .num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 300; color: var(--sage-deep); letter-spacing: -.02em; }
.hero-meta .label { font-size: .82rem; color: var(--ink-faint); line-height: 1.4; }

.hero-visual { position: relative; }
.hero-visual image-slot { width: 100%; height: clamp(420px, 52vw, 620px); border-radius: 220px 220px var(--radius-lg) var(--radius-lg); }
.hero-photo {
  width: 100%; height: clamp(420px, 52vw, 620px);
  object-fit: cover; object-position: center 30%;
  border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}
.hero-badge {
  position: absolute; left: -28px; bottom: 44px;
  background: var(--ivory); border-radius: var(--radius-md);
  padding: 1rem 1.3rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .8rem; max-width: 250px;
}
.hero-badge .dot { width: 38px; height: 38px; border-radius: 50%; background: var(--clay-tint); display: grid; place-items: center; flex-shrink: 0; color: var(--clay); }
.hero-badge .dot svg { width: 20px; height: 20px; }
.hero-badge p { font-size: .82rem; line-height: 1.4; color: var(--ink-soft); }
.hero-badge strong { color: var(--ink); font-weight: 700; display: block; font-family: var(--font-display); }

.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: -1; pointer-events: none; }
.blob-1 { width: 480px; height: 480px; background: var(--sage-tint); top: -120px; right: -120px; }
.blob-2 { width: 360px; height: 360px; background: var(--clay-tint); bottom: -100px; left: -140px; }

/* ============================================================ MARQUEE === */
.trust { border-block: 1px solid var(--line-soft); }
.trust .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-block: 1.8rem; }
.trust-item { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: .92rem; font-weight: 500; color: var(--ink-soft); }
.trust-item svg { width: 19px; height: 19px; color: var(--sage); }

/* ============================================================== ABOUT === */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.about-visual { position: relative; }
.about-visual image-slot,
.about-visual .about-photo { width: 100%; height: clamp(440px, 50vw, 600px); border-radius: var(--radius-lg); }
.about-visual .about-photo { object-fit: cover; object-position: center 30%; display: block; }
.about-visual .frame { position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--clay-soft); border-radius: var(--radius-lg); z-index: -1; }
.section-head { max-width: 640px; }
.section-head h2 { margin-top: 1.1rem; }
.section-head p { margin-top: 1.3rem; }
.signature { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 1.5rem; color: var(--sage-deep); margin-top: 1.8rem; }

.value-list { display: grid; gap: 1.1rem; margin-top: 2rem; }
.value-item { display: flex; gap: 1rem; align-items: flex-start; }
.value-item .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--sage-tint); color: var(--sage-deep); display: grid; place-items: center; flex-shrink: 0; }
.value-item .ico svg { width: 20px; height: 20px; }
.value-item h4 { font-size: 1.08rem; font-weight: 600; font-family: var(--font-display); letter-spacing: -.01em; }
.value-item p { font-size: .95rem; color: var(--ink-soft); margin-top: .2rem; line-height: 1.55; }

/* ============================================================ VISION === */
.vision { position: relative; overflow: hidden; }
.vision-head { text-align: center; max-width: 720px; margin: 0 auto; }
.vision-head h2 { margin-top: 1.1rem; }
.vision-head p { margin-top: 1.3rem; }
.vision-body { max-width: 1040px; margin: 1.4rem auto 0; }
.vision-body::after { content: ""; display: block; clear: both; }
.vision-figure { float: right; width: clamp(400px, 48%, 640px); margin: .2rem 0 1rem 2.6rem; }
.vision-figure img { display: block; width: 100%; height: auto; border-radius: 14px; }
.vision-body .lead { margin-top: 0; }
.vision-body .lead + .lead { margin-top: 1.3rem; }
@media (max-width: 760px) {
  .vision-figure { float: none; width: 100%; max-width: 460px; margin: 1.4rem auto; }
}
.vision-head .eyebrow { font-size: 1.35rem; letter-spacing: .14em; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 3.6rem; }
.pillar {
  background: var(--ivory); border: 1px solid var(--line-soft);
  border-radius: var(--radius-md); padding: 2.3rem 2rem;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pillar .num { font-family: var(--font-display); font-size: .85rem; font-weight: 700; letter-spacing: .1em; color: var(--clay); }
.pillar h3 { font-size: 1.4rem; font-weight: 500; margin-top: 1.1rem; }
.pillar p { font-size: .96rem; color: var(--ink-soft); margin-top: .7rem; line-height: 1.6; }

/* ===================================================== ACCOMPAGNEMENTS === */
.serv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3.2rem; }
.serv-card {
  background: var(--ivory); border: 1px solid var(--line-soft);
  border-radius: var(--radius-md); padding: 2.3rem; position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
  display: flex; flex-direction: column;
}
.serv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--sand); }
.serv-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--clay-tint); color: var(--clay); display: grid; place-items: center; }
.serv-icon svg { width: 26px; height: 26px; }
.serv-card h3 { font-size: 1.45rem; font-weight: 500; margin-top: 1.4rem; }
.serv-card p { font-size: .98rem; color: var(--ink-soft); margin-top: .7rem; line-height: 1.6; flex: 1; }
.serv-meta { display: flex; align-items: center; gap: 1.2rem; margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line-soft); }
.serv-meta .price { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.serv-meta .dur { font-size: .85rem; color: var(--ink-faint); }
.serv-meta .link-arrow { margin-left: auto; }

/* =============================================================== RECIPES == */
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3.2rem; }
.recipe-card { border-radius: var(--radius-md); overflow: hidden; background: var(--ivory); border: 1px solid var(--line-soft); transition: transform .5s var(--ease), box-shadow .5s var(--ease); display: flex; flex-direction: column; }
.recipe-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.recipe-card image-slot { width: 100%; height: 230px; border-radius: 0; box-shadow: none; }
.recipe-body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.tag { align-self: flex-start; font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-deep); background: var(--sage-tint); padding: .3rem .7rem; border-radius: 100px; }
.recipe-body h3 { font-size: 1.25rem; font-weight: 500; margin-top: .9rem; }
.recipe-body p { font-size: .92rem; color: var(--ink-soft); margin-top: .5rem; flex: 1; }
.recipe-foot { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; font-size: .82rem; color: var(--ink-faint); }
.recipe-foot span { display: inline-flex; align-items: center; gap: .4rem; }
.recipe-foot svg { width: 15px; height: 15px; }
.recipes-empty { text-align: center; color: var(--ink-faint); font-size: 1rem; margin-top: 3rem; }

/* Filtre par catégorie (page Toutes les recettes) */
.recipe-filter { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.recipe-filter-field { display: flex; flex-direction: column; gap: .45rem; }
.recipe-filter label { font-family: var(--font-display); font-size: .82rem; font-weight: 600; letter-spacing: .01em; color: var(--ink-soft); }
.recipe-filter .select-wrap { position: relative; }
.recipe-filter select {
  appearance: none; -webkit-appearance: none;
  font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: var(--ink);
  background: var(--ivory); border: 1px solid var(--line); border-radius: 100px;
  padding: .7rem 2.8rem .7rem 1.3rem; cursor: pointer; min-width: 14rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C5D51' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.1rem center; background-size: 16px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.recipe-filter select:hover { border-color: var(--sage); }
.recipe-filter select:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-tint); }
.recipe-count { font-family: var(--font-display); font-size: .9rem; color: var(--ink-faint); padding-bottom: .85rem; }

/* ============================================================== BURNOUT == */
.burnout { background: #2C2D26; color: var(--paper); position: relative; overflow: hidden; }
.burnout .blob-1 { background: rgba(140,154,123,.4); opacity: .35; }
.burnout-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.burnout .eyebrow { color: var(--clay-soft); }
.burnout .eyebrow::before { background: var(--clay-soft); }
.burnout h2 { color: var(--paper); margin-top: 1.1rem; }
.burnout .lead { color: rgba(244,238,226,.78); margin-top: 1.3rem; }
.signs { display: grid; gap: .9rem; margin-top: 2.2rem; }
.sign { display: flex; gap: .8rem; align-items: center; font-size: 1rem; color: rgba(244,238,226,.9); }
.sign svg { width: 20px; height: 20px; color: var(--sage); flex-shrink: 0; }
.burnout-visual img { width: 100%; height: clamp(360px, 44vw, 500px); border-radius: var(--radius-lg); object-fit: cover; display: block; }

/* =========================================================== TESTIMONIALS = */
.testi-head { text-align: center; max-width: 640px; margin: 0 auto; }
.testi-head h2 { margin-top: 1.1rem; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3.4rem; }
.testi-card { background: var(--ivory); border: 1px solid var(--line-soft); border-radius: var(--radius-md); padding: 2.1rem; display: flex; flex-direction: column; }
.stars { display: flex; gap: 3px; color: var(--clay); margin-bottom: 1.1rem; }
.stars svg { width: 17px; height: 17px; }
.testi-card blockquote { font-size: 1.05rem; line-height: 1.6; color: var(--ink); font-weight: 400; flex: 1; }
.testi-author { display: flex; align-items: center; gap: .8rem; margin-top: 1.6rem; }
.testi-author image-slot { width: 46px; height: 46px; border-radius: 50%; box-shadow: none; flex-shrink: 0; }
.testi-author .who { line-height: 1.3; }
.testi-author .name { font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.testi-author .role { font-size: .8rem; color: var(--ink-faint); }

/* ============================================================= CTA BAND === */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  background: linear-gradient(135deg, var(--sage-deep), #3a5a44);
  border-radius: var(--radius-lg);
  padding: clamp(3rem, 7vw, 5.5rem);
  text-align: center; position: relative; overflow: hidden;
  color: var(--paper);
}
.cta-inner h2 { color: var(--ivory); max-width: 16em; margin: 0 auto; }
.cta-inner p { color: rgba(244,238,226,.8); margin: 1.2rem auto 0; max-width: 34em; }
.cta-inner .hero-cta { justify-content: center; margin-top: 2.4rem; }
.cta-inner .blob { background: rgba(215,180,155,.4); opacity: .4; }

/* ================================================================ FOOTER = */
.site-footer { background: #28291F; color: rgba(244,238,226,.72); padding-top: clamp(4rem, 8vw, 6rem); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid rgba(244,238,226,.12); }
.footer-brand .logo-name { color: var(--paper); }
.footer-brand p { margin-top: 1.2rem; font-size: .92rem; line-height: 1.6; max-width: 30em; }
.footer-col h5 { font-family: var(--font-display); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--clay-soft); font-weight: 600; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: grid; gap: .7rem; }
.footer-col a { font-size: .92rem; color: rgba(244,238,226,.72); transition: color .3s; }
.footer-col a:hover { color: var(--paper); }
.footer-contact a { color: var(--paper); }
.footer-contact a[href^="mailto"] { font-weight: 600; }
.footer-contact a:hover { color: var(--clay-soft); }
.footer-news p { font-size: .9rem; margin-bottom: 1rem; }
.news-form { display: flex; gap: .5rem; }
.news-form input { flex: 1; background: rgba(244,238,226,.07); border: 1px solid rgba(244,238,226,.16); border-radius: 100px; padding: .7rem 1.1rem; color: var(--paper); font-family: var(--font-body); font-size: .9rem; }
.news-form input::placeholder { color: rgba(244,238,226,.45); }
.news-form button { background: var(--clay); color: var(--ivory); border-radius: 100px; width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; transition: background .3s, transform .3s; }
.news-form button:hover { background: #A87053; transform: translateY(-1px); }
.news-status { font-size: .84rem; line-height: 1.45; margin-top: .7rem; max-width: 30ch;
  opacity: 0; transform: translateY(-3px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.news-status.show { opacity: 1; transform: none; }
.news-status.ok { color: #B7D2A6; }
.news-status.err { color: var(--clay-soft); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.8rem; font-size: .82rem; color: rgba(244,238,226,.5); }
.footer-bottom .links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--paper); }
.socials { display: flex; gap: .7rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(244,238,226,.16); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.socials a:hover { background: rgba(244,238,226,.1); border-color: transparent; }
.socials svg { width: 17px; height: 17px; }

/* ============================================================ RESPONSIVE = */
@media (max-width: 1000px) {
  .nav, .header-actions .btn { display: none; }
  .burger { display: flex; }
  .hero-grid, .about-grid, .burnout-grid { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--header-h) + 1.5rem); }
  .hero-copy { max-width: none; }
  .hero-meta { margin-top: 2.2rem; }
  .about-visual, .burnout-visual { order: -1; }
  .pillars, .recipe-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .serv-grid, .pillars, .recipe-grid, .testi-grid, .footer-top { grid-template-columns: 1fr; }
  .hero-meta { gap: 1.4rem; }
  /* Header mobile : logo + « Anthasma » agrandis. FR/EN compact + burger à droite.
     Tailles par paliers pour que mark+texte+actions tiennent TOUJOURS dans la largeur. */
  .site-header .logo { gap: .25rem; flex: 0 0 auto; }
  .site-header .logo-mark { width: 115px !important; height: 115px; }
  .site-header.scrolled .logo-mark { width: 96px !important; height: 96px; }
  .site-header .logo-name { font-size: 3.12rem; white-space: nowrap; }
  .site-header .logo-tag { font-size: .82rem; letter-spacing: .16em; text-indent: .16em; }
  .header-inner { gap: .5rem; padding-inline: 1rem; }
  .header-actions { flex-shrink: 0; }
  .header-actions .lang-toggle button { padding: .24rem .5rem; font-size: .68rem; }
  .hero-badge { left: 50%; transform: translateX(-50%); bottom: -28px; }
}

/* ≤430px (iPhone 12–15 standard, etc.) : réduction pour que tout rentre sans chevauchement */
@media (max-width: 430px) {
  .site-header .logo-mark { width: 100px !important; height: 100px; }
  .site-header.scrolled .logo-mark { width: 84px !important; height: 84px; }
  .site-header .logo-name { font-size: 2.85rem; }
}

/* Très petits écrans : réduction supplémentaire */
@media (max-width: 370px) {
  .site-header .logo-mark { width: 86px !important; height: 86px; }
  .site-header.scrolled .logo-mark { width: 74px !important; height: 74px; }
  .site-header .logo-name { font-size: 2.45rem; }
}

/* Toggle de langue : placé SOUS le hamburger (colonne, aligné à droite) pour
   ne pas empiéter sur le logo « Anthasma » sur les petits écrans. */
@media (max-width: 1000px) {
  .header-actions { flex-direction: column; align-items: flex-end; gap: .55rem; }
  .burger { order: 1; }
  .lang-toggle { display: inline-flex; order: 2; }
  .lang-toggle button { padding: .28rem .56rem; font-size: .72rem; }
  /* le toggle du menu hamburger devient redondant → masqué */
  .mobile-nav .lang-toggle { display: none; }
}

/* ============================================================== BOOKING === */
.booking { background: var(--paper-deep); }
.booking-head { max-width: 620px; margin: 0 auto 2.8rem; text-align: center; }
.booking-head .eyebrow { justify-content: center; }
.booking-head h2 { margin-top: 1rem; }
.booking-head p { margin-top: 1.1rem; color: var(--ink-soft); }

/* Mini Google Calendar — availability */
.avail-cal {
  max-width: 780px; margin: 0 auto 1.8rem;
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.avail-cal-head {
  display: flex; align-items: center; gap: .7rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}
.avail-cal-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); flex-shrink: 0; }
.avail-cal-head h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  color: var(--ink); letter-spacing: -.01em;
}
.avail-cal-head .hint {
  margin-left: auto; font-family: var(--font-display);
  font-weight: 600; font-size: 1.02rem;
  color: var(--ink); letter-spacing: -.01em;
}
/* Weekly availability calendar (custom, on-brand) */
.avail-cal .ac { padding: 1.1rem 1.1rem 1.4rem; }
.wk-top { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1rem; }
.wk-nav {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper);
  color: var(--ink-soft); font-size: 1.2rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.wk-nav:hover { border-color: var(--sage); color: var(--sage-deep); background: var(--sage-tint); }
.wk-label {
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  color: var(--ink); min-width: 210px; text-align: center; text-transform: capitalize;
}
.wk-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wk-inner { min-width: 580px; }

/* header row + body share the same 7-column track (52px gutter + 7×1fr) */
.wk-headrow,
.wk-allday { display: grid; grid-template-columns: 52px repeat(7, 1fr); }
.wk-corner { }
.wk-dayhead {
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  padding: .5rem 0 .7rem; border-bottom: 1px solid var(--line-soft);
}
.wk-dow {
  font-family: var(--font-display); font-size: .68rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint);
}
.wk-dnum { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.wk-dayhead.today .wk-dnum {
  background: var(--clay); color: var(--ivory);
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: grid; place-items: center;
}
.wk-dayhead.today .wk-dow { color: var(--clay); }

/* all-day band */
.wk-allday { border-bottom: 1px solid var(--line-soft); min-height: 34px; }
.wk-allday-lab {
  font-family: var(--font-display); font-size: .64rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint);
  display: flex; align-items: center; justify-content: flex-end; padding-right: .4rem;
}
.wk-allday-cell { padding: 3px; border-left: 1px solid var(--line-soft); }
.wk-ev.allday {
  position: static; margin-bottom: 2px; background: var(--clay-tint); color: var(--clay);
  border-left: 2px solid var(--clay); padding: 2px 5px; border-radius: 4px;
  font-size: .72rem; font-weight: 600; line-height: 1.25;
}

/* time grid */
.wk-body { display: grid; grid-template-columns: 52px repeat(7, 1fr); }
.wk-gutter { }
.wk-hourlab {
  font-family: var(--font-display); font-size: .7rem; color: var(--ink-faint);
  text-align: right; padding-right: .5rem; transform: translateY(-.5em);
}
.wk-cols { display: contents; }
.wk-col { position: relative; border-left: 1px solid var(--line-soft); }
.wk-col.today { background: color-mix(in oklab, var(--sage-tint) 45%, transparent); }
.wk-hour { border-top: 1px solid var(--line-soft); }
.wk-hour:first-child { border-top: 0; }
.wk-ev {
  position: absolute; overflow: hidden;
  background: var(--sage-deep); color: var(--ivory);
  border-radius: 6px; padding: 3px 6px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1px;
}
.wk-ev-time { font-family: var(--font-display); font-weight: 700; font-size: .68rem; opacity: .92; }
.wk-ev-title { font-size: .74rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
/* Créneaux « Libre » — vert pâle */
.wk-ev.free { background: #CFE0C3; color: var(--sage-deep); }
.wk-ev.free .wk-ev-time { opacity: .85; }
.wk-ev.allday.free { background: #CFE0C3; color: var(--sage-deep); border-left-color: var(--sage-deep); }

.wk-msg { color: var(--ink-faint); font-size: .92rem; padding: 1rem .2rem .2rem; line-height: 1.5; text-align: center; }
.wk-msg.err { color: var(--clay); }

@media (max-width: 600px) {
  .avail-cal-head .hint { display: none; }
}

.booking-card {
  max-width: 780px; margin: 0 auto;
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.7rem, 4vw, 3rem);
}
.booking-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem 1.3rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-display); font-size: .82rem; font-weight: 600;
  letter-spacing: .01em; color: var(--ink-soft);
}
.field label .req { color: var(--clay); margin-left: .15rem; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .82rem 1rem; width: 100%;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C5D51' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px;
  padding-right: 2.6rem; cursor: pointer;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--sage);
  box-shadow: 0 0 0 3px var(--sage-tint);
}
.booking-actions {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  margin-top: .5rem;
}
.booking-actions .btn { flex-shrink: 0; }
.booking-actions .btn[disabled] { opacity: .6; pointer-events: none; }
.form-consent { font-size: .8rem; color: var(--ink-faint); line-height: 1.5; flex: 1; min-width: 220px; }
.form-status {
  grid-column: 1 / -1; display: none;
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem; font-size: .96rem; line-height: 1.5;
  font-family: var(--font-display); font-weight: 500;
}
.form-status.show { display: block; }
.form-status.ok { background: var(--sage-tint); color: var(--sage-deep); }
.form-status.err { background: var(--clay-tint); color: var(--clay); }

@media (max-width: 600px) {
  .booking-form { grid-template-columns: 1fr; }
  .booking-actions { flex-direction: column; align-items: stretch; }
  .booking-actions .btn { width: 100%; }
}
