/* =====================================================================
   O'Ana Brunch : styles communes à toutes les pages
   Direction : botanique doré (couleurs du logo), Playfair Display SC + Karla
   ===================================================================== */

/* ---------- Polices (hébergées sur le site, licence SIL OFL 1.1) ---------- */
@font-face { font-family: "Playfair Display SC"; src: url("../fonts/playfair-display-sc-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display SC"; src: url("../fonts/playfair-display-sc-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla-400-700.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

/* ---------- Jetons de design ---------- */
:root {
  /* palette du logo */
  --green-950: #0e1a14;
  --green-900: #13231b;
  --green-800: #1d3428;
  --green-700: #2a4434;
  --leaf: #4f6b3a;
  --gold: #c9a24a;
  --gold-light: #e3c67e;
  --gold-ink: #7a5a17;
  --cream: #f8f3e7;
  --paper: #fffdf7;
  --line: #e6dcc6;
  --ink: #1c2620;
  --muted: #55625b;

  /* rôles */
  --bg: var(--cream);
  --surface: var(--paper);
  --text: var(--ink);
  --text-muted: var(--muted);
  --on-dark: #f3ead6;
  --on-dark-muted: #cfc6b0;
  --accent: var(--gold);
  --on-accent: var(--green-950);
  --focus: var(--gold);

  /* typographie */
  --font-display: "Playfair Display SC", Georgia, "Times New Roman", serif;
  --font-body: "Karla", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* espaces (rythme de 8) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* formes et ombres */
  --r-s: 10px; --r: 16px; --r-l: 24px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(14,26,20,.06), 0 6px 16px -10px rgba(14,26,20,.18);
  --shadow-2: 0 2px 6px rgba(14,26,20,.06), 0 22px 44px -22px rgba(14,26,20,.4);

  /* mouvement */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --t-1: 150ms; --t-2: 240ms; --t-3: 380ms;

  --header-h: 72px;
  --wrap: 1160px;
  color-scheme: light;
}
@media (max-width: 860px) { :root { --header-h: 64px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  overflow-x: hidden; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.12; letter-spacing: .01em; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--gold); color: var(--green-950); padding: 12px 18px; border-radius: var(--r-s); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- Textures et ornements ---------- */
.on-dark { position: relative; isolation: isolate; background: var(--green-900); color: var(--on-dark); }
.on-dark::after { /* grain papier, très léger */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../images/deco/grain.svg"); opacity: .07; mix-blend-mode: overlay;
}
.frond { position: absolute; z-index: -1; pointer-events: none; width: 240px; aspect-ratio: 240 / 520; background: url("../images/deco/fronde.svg") center / contain no-repeat; opacity: .16; }
.ornament { display: block; width: 120px; height: 24px; background: url("../images/deco/feuille.svg") center / contain no-repeat; }
.kicker { display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.on-dark .kicker { color: var(--gold-light); }

/* ---------- En-tête : menu à gauche, logo en haut à droite ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 35, 27, .96);
  -webkit-backdrop-filter: saturate(140%) blur(8px); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(201, 162, 74, .28);
}
.bar { height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.nav { display: flex; gap: 2px; }
.nav a {
  position: relative; color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: .97rem; letter-spacing: .02em;
  padding: 12px 14px; border-radius: var(--r-pill);
  transition: color var(--t-1) var(--ease-out), background-color var(--t-1) var(--ease-out);
}
.nav a:hover { color: var(--gold-light); background: rgba(201, 162, 74, .12); }
.nav a[aria-current="page"] { color: var(--gold-light); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1.5px; background: var(--gold); border-radius: 2px; }
.brand { margin-left: auto; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-name { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold-light); letter-spacing: .02em; }
.brand img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(201, 162, 74, .6); }
.burger {
  display: none; width: 48px; height: 48px; flex: none; align-items: center; justify-content: center; cursor: pointer;
  border-radius: 14px; border: 1px solid rgba(201, 162, 74, .5); background: transparent; color: var(--gold-light);
}
.burger svg { width: 24px; height: 24px; }
@media (max-width: 860px) {
  .burger { display: inline-flex; }
  .brand-name { display: none; }
  .brand img { width: 46px; height: 46px; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h); display: none; flex-direction: column; gap: 0;
    padding: 8px 16px 18px; background: var(--green-900); border-bottom: 1px solid rgba(201, 162, 74, .28);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .6);
  }
  .nav.open { display: flex; }
  .nav a { padding: 15px 10px; border-radius: var(--r-s); font-size: 1.06rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav a[aria-current="page"]::after { left: 10px; right: auto; width: 28px; bottom: 9px; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  font: 700 1rem/1 var(--font-body); letter-spacing: .02em; text-decoration: none;
  transition: transform var(--t-1) var(--ease-out), background-color var(--t-2) var(--ease-out), box-shadow var(--t-2) var(--ease-out), color var(--t-2) var(--ease-out);
  touch-action: manipulation;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--gold); color: var(--on-accent); box-shadow: 0 12px 26px -16px rgba(201, 162, 74, .95); }
.btn-primary:hover { background: var(--gold-light); }
.btn-ghost { background: transparent; color: var(--green-800); box-shadow: inset 0 0 0 1.5px var(--green-800); }
.btn-ghost:hover { background: rgba(29, 52, 40, .07); }
.on-dark .btn-ghost, .btn-ghost.light { color: var(--gold-light); box-shadow: inset 0 0 0 1.5px rgba(227, 198, 126, .65); }
.on-dark .btn-ghost:hover, .btn-ghost.light:hover { background: rgba(227, 198, 126, .1); }

/* ---------- Titres de section ---------- */
.section { padding: var(--s-9) 0; }
@media (max-width: 767px) { .section { padding: 72px 0; } }
.section-head { max-width: 640px; margin-bottom: var(--s-7); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .ornament { margin: 0 auto; }
.section-head .ornament { margin-bottom: var(--s-4); }
.section-head h2 { font-size: clamp(2.1rem, 5vw, 3.1rem); color: var(--green-800); margin-top: var(--s-2); }
.on-dark .section-head h2 { color: var(--gold-light); }
.section-head p { color: var(--text-muted); margin-top: var(--s-3); font-size: 1.08rem; }
.on-dark .section-head p { color: var(--on-dark-muted); }

/* ---------- Apparition douce au défilement (désactivée sans JS ou si « moins d'animations ») ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--t-3) var(--ease-out), transform var(--t-3) var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Pied de page ---------- */
.site-footer { padding: var(--s-8) 0 var(--s-6); font-size: .97rem; overflow: hidden; }
.site-footer .frond { right: -40px; bottom: -60px; width: 200px; opacity: .12; transform: rotate(-18deg); }
.foot-grid { display: grid; gap: var(--s-6); }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(201, 162, 74, .55); }
.foot-brand strong { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; color: var(--gold-light); }
.site-footer h2 { font-family: var(--font-body); font-weight: 700; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: var(--s-3); }
.site-footer p, .site-footer li { color: var(--on-dark-muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.socials { display: flex; gap: 10px; margin-top: var(--s-4); }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(201, 162, 74, .45); color: var(--gold-light); transition: background-color var(--t-1) var(--ease-out); }
.socials a:hover { background: rgba(201, 162, 74, .14); text-decoration: none; }
.socials svg { width: 20px; height: 20px; }
.foot-links { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; }
.foot-links a[aria-current="page"] { color: var(--gold-light); }
.foot-bottom { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(201, 162, 74, .22); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--on-dark-muted); font-size: .9rem; }

/* ---------- Plan d'accès (Google Maps chargée seulement après accord) ---------- */
.plan { padding: var(--s-8) 0; background: var(--paper); border-top: 1px solid var(--line); }
.plan-grid { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 860px) { .plan-grid { grid-template-columns: 1fr 1.6fr; } }
.plan h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); color: var(--green-800); margin: var(--s-2) 0 var(--s-3); }
.plan-texte p { color: var(--text-muted); margin: 0 0 var(--s-5); }
.plan-grid > * { min-width: 0; }
.plan-carte { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-l); overflow: hidden; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
.plan-carte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 860px) { .plan-carte { aspect-ratio: 16 / 10; } }
.plan-attente { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--s-4); padding: var(--s-5); text-align: center; }
.plan-attente p { max-width: 36ch; margin: 0; color: var(--text-muted); font-size: .97rem; }

/* ---------- Bandeau cookies ---------- */
.cookies { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 12px; max-width: 760px; margin: 0 auto; background: var(--paper); color: var(--text); border-radius: var(--r-l); box-shadow: 0 0 0 1px var(--line), var(--shadow-2); max-height: calc(100vh - 24px); overflow: auto; }
.cookies[hidden] { display: none; }
.cookies-in { padding: var(--s-5); }
.cookies h2 { font-size: 1.4rem; color: var(--green-800); margin-bottom: var(--s-2); }
.cookies p { margin: 0; font-size: .97rem; color: var(--text-muted); }
.cookies p a { color: var(--gold-ink); }
.cookies-choix { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.cookies-choix[hidden] { display: none; }
.interrupteur { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-s); background: var(--cream); cursor: pointer; font-size: .95rem; }
.interrupteur input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--green-800); }
.cookies-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-4); }
.cookies-btns .btn { flex: 1 1 160px; justify-content: center; }
.cookies-btns .btn[hidden] { display: none; }
body.avec-cookies { padding-bottom: 0; }
.lien-cookies { background: none; border: 0; padding: 0; font: inherit; color: var(--on-dark); cursor: pointer; }
.lien-cookies:hover { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.lien-cookies-texte { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
.lien-cookies-texte:hover { color: var(--green-800); }
