/* ==========================================================
   Le Cercle – feuille de style
   Palette : crème, vert sapin, bordeaux (d'après les maquettes)
   ========================================================== */

@font-face { font-family: "Playfair Display"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/playfair-800.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/lora-400.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/lora-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/lora-600.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/caveat-500.woff2") format("woff2"); }

:root {
  --creme: #f5efe3;
  --creme-clair: #fbf7ef;
  --creme-fonce: #ece4d4;
  --sauge: #e3e1d3;
  --vert: #173d2b;
  --vert-doux: #56705f;
  --bordeaux: #7d1f2c;
  --bordeaux-fonce: #621722;
  --encre: #2a2723;
  --encre-douce: #5b554d;
  --ligne: #d9cfbd;

  --titre: "Playfair Display", Georgia, "Times New Roman", serif;
  --texte: "Lora", Georgia, "Times New Roman", serif;
  --main: "Caveat", "Segoe Print", cursive;

  --rayon: 6px;
  --largeur: 1180px;
  --entete-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bordeaux); }
h1, h2, h3 { font-family: var(--titre); font-weight: 800; color: var(--vert); line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
p { margin: 0 0 0.9em; }
figure { margin: 0; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--vert); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 3px solid var(--bordeaux); outline-offset: 3px; border-radius: 2px; }

.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico--rouge { color: var(--bordeaux); }

.manuscrit { font-family: var(--main); font-weight: 500; color: var(--encre); line-height: 1.05; }

.trait { display: block; width: 44px; height: 2px; background: var(--bordeaux); margin: 18px 0 22px; }

.surtitre {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--texte); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bordeaux); margin-bottom: 14px;
}
.surtitre::before { content: ""; width: 34px; height: 1.5px; background: var(--bordeaux); }
.surtitre--centre { justify-content: center; }
.surtitre--centre::after { content: ""; width: 34px; height: 1.5px; background: var(--bordeaux); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--texte); font-weight: 600; font-size: 1rem;
  padding: 12px 22px; border-radius: var(--rayon);
  text-decoration: none; cursor: pointer; border: 1.5px solid var(--bordeaux);
  transition: background .2s, color .2s, transform .2s;
}
.btn--plein { background: var(--bordeaux); color: #fff; }
.btn--plein:hover { background: var(--bordeaux-fonce); }
.btn--contour { background: transparent; color: var(--bordeaux); }
.btn--contour:hover { background: var(--bordeaux); color: #fff; }
.btn--petit { padding: 9px 16px; font-size: 0.95rem; }
.btn--large { width: 100%; padding: 14px 22px; letter-spacing: 0.04em; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 239, 227, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ligne);
}
.entete__in {
  max-width: var(--largeur); margin: 0 auto; height: var(--entete-h);
  padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: relative;
}
.marque { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.marque__nom { font-family: var(--titre); font-weight: 800; font-size: 1.75rem; color: var(--vert); letter-spacing: -0.02em; }
.marque__sous { font-family: var(--texte); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bordeaux); margin-top: 3px; }
.entete__lys { width: 30px; height: 30px; color: var(--bordeaux); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }

.nav { display: none; }
.nav a:not(.btn) { color: var(--encre); text-decoration: none; font-size: 0.98rem; padding: 6px 2px; border-bottom: 1.5px solid transparent; }
.nav a:not(.btn):hover { border-bottom-color: var(--bordeaux); }

.burger {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: 0; padding: 6px; cursor: pointer; color: var(--vert);
  font: 600 0.6rem/1 var(--texte); letter-spacing: 0.15em; text-transform: uppercase;
}
.burger__barres { display: flex; flex-direction: column; gap: 5px; }
.burger__barres span { display: block; width: 28px; height: 2.5px; background: var(--vert); border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] .burger__barres span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__barres span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__barres span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav.ouvert {
  display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  position: absolute; top: var(--entete-h); left: 0; right: 0;
  background: var(--creme-clair); border-bottom: 1px solid var(--ligne);
  padding: 12px 16px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.08);
}
.nav.ouvert a:not(.btn) { padding: 12px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--ligne); }
.nav.ouvert .btn { margin-top: 12px; }

/* ---------- Bandeau inauguration ---------- */
.bandeau {
  background: var(--vert); color: #f3eee2;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 10px;
  padding: 9px 16px; text-align: center; font-size: 0.92rem;
}
.bandeau a { color: #f3d9a4; font-weight: 600; }

/* ---------- Héros ---------- */
.heros { display: grid; background: var(--creme); }
.heros__img { position: relative; }
.heros__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.heros__note {
  position: absolute; top: 5%; right: 5%; text-align: left;
  font-size: clamp(1.25rem, 4.4vw, 2rem); transform: rotate(-6deg);
  color: #3b3530; text-shadow: 0 0 12px rgba(251,247,239,.9);
}
.heros__note::after { content: ""; display: block; width: 70%; height: 1.5px; background: var(--bordeaux); margin-top: 9px; transform: rotate(-4deg); }

.heros__texte { position: relative; text-align: center; padding: 0 16px 40px; }
.heros__titre { font-size: clamp(3.6rem, 16vw, 6.2rem); letter-spacing: -0.03em; }
.heros__sous {
  font-family: var(--titre); font-weight: 800; color: var(--bordeaux);
  font-size: clamp(1.25rem, 4.6vw, 1.8rem); line-height: 1.2; margin: 14px 0 0;
}
.heros__texte .trait { margin: 20px auto; }
.devise { font-style: italic; font-size: clamp(1.15rem, 4.2vw, 1.5rem); color: var(--vert); margin: 0; }
.devise span { color: var(--bordeaux); font-style: normal; padding: 0 .25em; }

.logo-rond { position: relative; z-index: 2; width: 150px; margin: -66px auto 14px; filter: drop-shadow(0 3px 8px rgba(23,61,43,.18)); }
.logo-rond svg { width: 100%; height: auto; overflow: visible; color: var(--vert); }
.logo-rond__bordeaux { stroke: var(--bordeaux); fill: none; }
.logo-rond__bordeaux-plein { color: var(--bordeaux); }
.logo-rond__nom { font-family: var(--titre); font-weight: 800; font-size: 37px; fill: var(--vert); letter-spacing: -0.8px; }
.logo-rond__cap { font-family: var(--texte); font-weight: 600; font-size: 7px; letter-spacing: 1.8px; fill: var(--vert); }
.logo-rond__cap--rouge { fill: var(--bordeaux); font-size: 9px; letter-spacing: 1.5px; }
.logo-rond__cap--village { font-size: 7.5px; letter-spacing: 1.8px; }
.logo-rond__devise { font-family: var(--texte); font-style: italic; font-size: 7px; fill: var(--vert); }

.deco-feuille { position: absolute; color: var(--vert-doux); opacity: .55; pointer-events: none; width: 110px; height: 150px; }
.deco-feuille--g { display: none; right: 6px; top: 70px; width: 80px; height: 110px; transform: rotate(-6deg); opacity: .4; }

/* ---------- Blocs café / salle ---------- */
.bloc { display: grid; background: var(--creme-clair); border-top: 1px solid var(--ligne); }
.bloc__texte { position: relative; padding: 44px 20px 48px; }
.bloc__texte p { color: var(--encre-douce); max-width: 34em; }
.bloc__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.info-horaires { background: var(--creme); border-left: 3px solid var(--bordeaux); padding: 10px 14px; border-radius: 0 var(--rayon) var(--rayon) 0; font-size: 0.97rem; }
.info-horaires strong { color: var(--vert); }
.deco-tasse { display: none; }

.occasions { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
.occasions li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 0.95rem; color: var(--encre); line-height: 1.25; }
.occasions__ico {
  width: 62px; height: 62px; border-radius: 50%;
  border: 1.5px solid var(--bordeaux); background: var(--creme);
  display: grid; place-items: center; color: var(--bordeaux);
}
.occasions__ico svg { width: 34px; height: 34px; }

/* ---------- Inauguration ---------- */
.inauguration {
  position: relative; background: var(--sauge);
  padding: 56px 16px; display: grid; justify-items: center; gap: 28px;
  border-top: 1px solid var(--ligne);
}
.inauguration__carte {
  max-width: 720px; text-align: center; background: var(--creme-clair);
  padding: 40px 24px 32px; border-radius: var(--rayon);
  border: 1px solid var(--ligne); box-shadow: 0 1px 0 rgba(0,0,0,.03);
  position: relative;
}
.inauguration__carte::before {
  content: ""; position: absolute; inset: 8px; border: 1px solid var(--bordeaux); opacity: .35; border-radius: 3px; pointer-events: none;
}
.inauguration__lys { width: 34px; height: 34px; color: var(--bordeaux); margin: 0 auto 10px; display: block; }
.inauguration h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin-bottom: 20px; }
.inauguration p { color: var(--encre-douce); }
.inauguration__note { font-style: italic; font-size: 0.9rem; margin: 18px 0 0; color: var(--vert-doux) !important; }
.inauguration__img { display: none; }

/* ---------- Location ---------- */
.location { display: grid; background: var(--creme-fonce); border-top: 1px solid var(--ligne); }
.location__intro { position: relative; padding: 44px 20px 12px; overflow: hidden; }
.location__intro h2 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.location__intro p { color: var(--encre-douce); }
.location__ico { width: 46px; height: 46px; color: var(--bordeaux); margin-bottom: 14px; }
.deco-feuille--loc { right: -6px; top: 10px; transform: rotate(8deg); width: 90px; height: 120px; }

.formulaire { padding: 16px 20px 48px; display: grid; gap: 14px; }
.champs-2 { display: grid; gap: 14px; }
.champ { display: grid; gap: 5px; }
.champ label { font-size: 0.9rem; font-weight: 600; color: var(--vert); }
.req { color: var(--bordeaux); }
.champ input, .champ select, .champ textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--encre);
  background: #fffdf8; border: 1px solid #cfc4b0; border-radius: var(--rayon);
  padding: 11px 12px; min-height: 46px;
}
.champ select {
  appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23173d2b' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.champ textarea { resize: vertical; min-height: 110px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--vert); box-shadow: 0 0 0 3px rgba(23,61,43,.15); }
.champ.erreur input, .champ.erreur select { border-color: var(--bordeaux); box-shadow: 0 0 0 3px rgba(125,31,44,.12); }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rgpd { font-size: 0.82rem; color: var(--encre-douce); margin: 0; }
.formulaire__etat { margin: 0; font-weight: 600; min-height: 1.4em; }
.formulaire__etat.ok { color: var(--vert); background: #e3eee4; padding: 12px 14px; border-radius: var(--rayon); }
.formulaire__etat.ko { color: var(--bordeaux); background: #f6e3e3; padding: 12px 14px; border-radius: var(--rayon); }

/* ---------- Nous trouver ---------- */
.trouver { display: grid; background: var(--creme); border-top: 1px solid var(--ligne); padding: 44px 20px 48px; gap: 28px; }
.trouver h2 { font-size: clamp(1.9rem, 5vw, 2.4rem); }
.adresse { display: flex; gap: 12px; align-items: flex-start; font-size: 1.05rem; }
.adresse .ico { width: 26px; height: 26px; margin-top: 2px; }
.trouver__adresse .btn { margin-top: 8px; }
.trouver__croquis { position: relative; color: var(--vert-doux); max-width: 340px; }
.trouver__croquis .manuscrit { position: absolute; top: 0; left: 0; font-size: 1.7rem; transform: rotate(-10deg); color: #3b3530; }
.panneau { width: 100%; height: auto; margin-top: 30px; }
.panneau__txt { font-family: var(--titre); font-weight: 800; font-size: 20px; fill: var(--vert); }
.citation {
  margin: 0; background: var(--sauge); padding: 30px 26px; border-radius: var(--rayon);
  font-style: italic; font-size: 1.3rem; line-height: 1.4; color: var(--vert);
  position: relative;
}
.citation::before { content: "“"; font-family: var(--titre); font-size: 3.4rem; line-height: 1; color: var(--bordeaux); position: absolute; top: 8px; left: 14px; }
.citation p { margin: 0; padding-left: 22px; }
.citation p::after { content: ""; display: block; width: 36px; height: 1.5px; background: var(--vert); margin: 18px auto 0; }

/* ---------- Pied de page ---------- */
.pied { background: var(--vert); color: #e9e4d6; padding: 36px 16px 110px; }
.pied__in { max-width: var(--largeur); margin: 0 auto; display: grid; gap: 16px; justify-items: center; text-align: center; }
.pied__marque { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-family: var(--titre); font-weight: 800; font-size: 1.9rem; }
.pied__marque svg { width: 38px; height: 38px; color: #fff; }
.pied__desc { margin: 0; font-size: 0.95rem; }
.pied__desc span, .pied__devise { color: #cfc6ad; }
.pied__liens { display: flex; gap: 18px; font-size: 0.9rem; }
.pied__liens a { color: #e9e4d6; }
.pied__devise { font-size: 1.4rem; margin: 0; }

/* ---------- Bouton fixe mobile ---------- */
.cta-mobile {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 40; display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--bordeaux); color: #fff; text-decoration: none;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.95rem;
  padding: 15px 20px; border-radius: 999px; box-shadow: 0 8px 24px rgba(98,23,34,.35);
  transition: transform .3s, opacity .3s;
}
.cta-mobile .ico { width: 22px; height: 22px; }
.cta-mobile.cache { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* ==========================================================
   Tablette
   ========================================================== */
@media (min-width: 640px) {
  .champs-2 { grid-template-columns: 1fr 1fr; }
  .occasions { grid-template-columns: repeat(4, 1fr); }
  .trouver { grid-template-columns: 1fr 1fr; }
  .citation { grid-column: 1 / -1; }
}

/* ==========================================================
   Ordinateur
   ========================================================== */
@media (min-width: 960px) {
  :root { --entete-h: 76px; }
  .burger { display: none; }
  .entete__lys { display: none; }
  .nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
  .marque__nom { font-size: 2rem; }

  .heros { grid-template-columns: 38fr 62fr; min-height: 560px; }
  .heros__img { order: 2; }
  .heros__img img { height: 100%; aspect-ratio: auto; }
  .heros__note { left: auto; right: 5%; top: 7%; font-size: 1.9rem; transform: rotate(-6deg); }
  .heros__texte { text-align: left; padding: 36px 36px 44px 48px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
  .heros__texte .trait { margin: 22px 0; }
  .logo-rond { width: 170px; margin: 0 0 18px; filter: none; }
  .heros__titre { font-size: clamp(4.2rem, 6.4vw, 6rem); }
  .deco-feuille--g { display: block; right: 18px; top: 28px; width: 90px; height: 125px; opacity: .5; }

  .bloc { grid-template-columns: 40fr 60fr; min-height: 480px; }
  .bloc--inverse { grid-template-columns: 58fr 42fr; }
  .bloc__texte { padding: 60px 48px; align-self: center; }
  .bloc--inverse .bloc__img { order: 0; }
  .bloc__img img { aspect-ratio: auto; }
  .deco-tasse { display: block; position: absolute; right: 36px; bottom: 30px; width: 110px; color: var(--vert-doux); opacity: .6; }
  .bloc--cafe .bloc__texte { padding-bottom: 110px; }

  .inauguration { grid-template-columns: minmax(0, 720px) 300px; justify-content: center; align-items: center; gap: 40px; padding: 72px 40px; }
  .inauguration__carte { padding: 48px 48px 36px; }
  .inauguration__img { display: block; border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 300px; border: 6px solid var(--creme-clair); box-shadow: 0 0 0 1px var(--ligne); }

  .location { grid-template-columns: 38fr 62fr; }
  .location__intro { padding: 64px 40px 64px 48px; border-right: 1px solid var(--ligne); }
  .formulaire { padding: 56px 48px 60px; max-width: 760px; }

  .trouver { grid-template-columns: 1fr 1fr 1.1fr; align-items: center; padding: 60px 48px; max-width: none; }
  .citation { grid-column: auto; }

  .pied { padding: 30px 40px; }
  .pied__in { grid-template-columns: auto 1fr auto auto; text-align: left; justify-items: start; align-items: center; gap: 36px; }

  .cta-mobile { display: none; }
}

@media (min-width: 1400px) {
  .heros { min-height: 640px; }
}
