/* =====================================================================
   TOTO BWA : base commune (polices, couleurs, matières, en-tête, pied)
   Couleurs relevées sur les murs du hangar : lambris magenta, comptoir
   turquoise, poutres jaunes, tôle rouge, parpaings vert / violet / rouge.
   ===================================================================== */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-var.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Patrick Hand";
  src: url("../fonts/patrick-hand.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* murs */
  --lambris: #d35bc6;
  --lambris-fonce: #a8429c;
  --turquoise: #5fdce6;
  --turquoise-fonce: #33b9c4;
  --soley: #f5cb2e;
  --jaune: #ffd23f;
  --tole: #b8402f;
  --rouge: #d9142e;
  --violet: #7a3cad;
  --vert: #36a03a;
  /* encres */
  --encre: #1b1230;
  --nuit: #2a2452;
  --plum: #8f2a83;
  --blanc: #fffaf3;
  --cyan: #7ed6ee;
  --ecran: #47cf7e;
  --wa: #25d366;

  --f-titre: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-main: "Patrick Hand", "Comic Sans MS", "Chalkboard SE", cursive;

  --t-display: clamp(2.5rem, 1.55rem + 4vw, 5rem);
  --t-h3: clamp(1.25rem, 1.05rem + .8vw, 1.7rem);
  --t-body: clamp(1.06rem, 1rem + .25vw, 1.2rem);
  --t-creole: clamp(1.3rem, 1.05rem + 1vw, 1.85rem);

  --gouttiere: clamp(16px, 4vw, 44px);
  --max: 1240px;
  --h-toit: 74px;
  --planche: 58px;
  --contour: 0 0 0 var(--encre);
  --ombre: 4px 4px 0 var(--encre);
}
@media (max-width: 760px) {
  :root { --h-toit: 64px; --planche: 44px; }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--h-toit) + 44px);
}
body {
  margin: 0;
  font-family: var(--f-titre);
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--encre);
  background: var(--encre);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 .8em; }
h1, h2, h3 { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible {
  outline: 3px solid var(--jaune);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--encre);
  border-radius: 6px;
}
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lien-evitement {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--jaune); color: var(--encre); padding: 10px 14px;
  border: 3px solid var(--encre); border-radius: 8px; font-weight: 600; text-decoration: none;
}
.lien-evitement:focus { top: 12px; }
.conteneur { width: min(100% - 2 * var(--gouttiere), var(--max)); margin-inline: auto; }

/* ---------- matières ---------- */
.lambris {
  background-color: var(--lambris);
  background-image:
    url("../img/textures/grain-bois.png"),
    repeating-linear-gradient(180deg,
      transparent 0 calc(var(--planche) - 5px),
      rgba(104, 18, 94, .34) calc(var(--planche) - 5px) calc(var(--planche) - 2px),
      rgba(255, 255, 255, .16) calc(var(--planche) - 2px) var(--planche));
  background-size: 384px 96px, auto;
}
.planches-turquoise {
  background-color: var(--turquoise);
  background-image:
    url("../img/textures/grain-bois.png"),
    repeating-linear-gradient(180deg,
      transparent 0 calc(var(--planche) - 5px),
      rgba(10, 90, 100, .28) calc(var(--planche) - 5px) calc(var(--planche) - 2px),
      rgba(255, 255, 255, .28) calc(var(--planche) - 2px) var(--planche));
  background-size: 384px 96px, auto;
}
.parpaings {
  --mur: var(--vert);
  background-color: var(--mur);
  background-image:
    url("../img/textures/grain.png"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cg fill='none' stroke='rgba(0,0,0,.2)' stroke-width='2.5'%3E%3Cpath d='M0 1.2H120M0 31.2H120M1.2 1V31M61.2 1V31M31.2 31V61M91.2 31V61'/%3E%3C/g%3E%3Cg fill='none' stroke='rgba(255,255,255,.12)' stroke-width='1.2'%3E%3Cpath d='M0 3.4H120M0 33.4H120M3.4 3V31M63.4 3V31M33.4 33V61M93.4 33V61'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 128px 128px, 120px 60px;
}
.parpaings--violet { --mur: var(--violet); }
.parpaings--rouge { --mur: var(--rouge); }
.tole {
  background-color: var(--tole);
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, .14), rgba(0, 0, 0, .34)),
    repeating-linear-gradient(90deg,
      #84291f 0, #b9442f 5px, #df7458 8.5px, #c04a35 11.5px, #84291f 18px);
}

/* ---------- typo partagée ---------- */
.titre-panneau {
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: var(--t-display);
  line-height: .98;
  text-transform: uppercase;
  letter-spacing: .005em;
  color: var(--jaune);
  text-shadow:
    -2px -2px 0 var(--encre), 2px -2px 0 var(--encre), -2px 2px 0 var(--encre), 2px 2px 0 var(--encre),
    0 -2.5px 0 var(--encre), 0 2.5px 0 var(--encre), -2.5px 0 0 var(--encre), 2.5px 0 0 var(--encre),
    -5px 6px 0 var(--encre);
}
.creole {
  font-family: var(--f-main);
  font-size: var(--t-creole);
  line-height: 1.15;
  letter-spacing: .02em;
  margin: .25em 0 0;
}
.titre-panneau + .creole { margin-top: .6em; }
.texte-court { max-width: 46ch; }
.intro { font-size: clamp(1.12rem, 1rem + .45vw, 1.36rem); line-height: 1.45; }

/* drapeaux de style */
.drapeau {
  display: inline-block;
  position: relative;
  width: 1.45em; height: .95em;
  border: .08em solid var(--encre);
  flex: none;
}
.drapeau--de { background: linear-gradient(#111 0 33.4%, #dd0000 33.4% 66.7%, #ffce00 66.7%); }
.drapeau--be { background: linear-gradient(90deg, #111 0 33.4%, #fdda24 33.4% 66.7%, #ef3340 66.7%); }
.drapeau--ie { background: linear-gradient(90deg, #169b62 0 33.4%, #fff 33.4% 66.7%, #ff883e 66.7%); }
.drapeau--fr { background: linear-gradient(90deg, #0055a4 0 33.4%, #fff 33.4% 66.7%, #ef4135 66.7%); }
.drapeau--us { background: linear-gradient(#3c3b6e, #3c3b6e) 0 0 / 44% 54% no-repeat, repeating-linear-gradient(#b22234 0 15.4%, #fff 15.4% 30.8%); }
.drapeau--cz { background: linear-gradient(#fff 0 50%, #d7141a 50%); }
.drapeau--cz::before { content: ""; position: absolute; inset: 0; background: #11457e; clip-path: polygon(0 0, 50% 50%, 0 100%); }

/* ---------- boutons ---------- */
.btn {
  --fond: var(--jaune);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 52px;
  padding: .7em 1.25em;
  font-family: var(--f-titre);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.05;
  letter-spacing: .02em;
  color: var(--encre);
  background: var(--fond);
  border: 3px solid var(--encre);
  border-radius: 12px;
  box-shadow: var(--ombre);
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--encre); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--encre); }
.btn--clair { --fond: var(--blanc); }
.btn--wa { --fond: var(--wa); }
.btn--turquoise { --fond: var(--turquoise); }

/* ---------- pastille ouvert / fermé ---------- */
.statut {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .38em .85em .42em;
  font-weight: 500;
  font-size: .98rem;
  line-height: 1.1;
  color: var(--blanc);
  background: var(--encre);
  border-radius: 999px;
  white-space: nowrap;
}
.statut::before {
  content: "";
  width: .62em; height: .62em;
  border-radius: 50%;
  background: #8b8b8b;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .12);
  flex: none;
}
.statut[data-etat="ouvert"]::before { background: #4ee08a; box-shadow: 0 0 0 3px rgba(78, 224, 138, .25); }
.statut[data-etat="ferme"]::before { background: #ff5d6c; box-shadow: 0 0 0 3px rgba(255, 93, 108, .22); }

/* =====================================================================
   EN-TÊTE : pas de barre. Trois plaques accrochées au lambris :
   le logo, la navigation, et à droite l'état du bar + la carte.
   ===================================================================== */
.toit {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding-inline: var(--gouttiere);
  pointer-events: none;
}
.toit > * { pointer-events: auto; }
.plaque {
  background: var(--encre);
  box-shadow: 0 4px 0 rgba(27, 18, 48, .38);
}
.toit__logo {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 15px 6px 10px;
  border-radius: 14px;
  text-decoration: none;
  transition: opacity .25s ease, transform .4s cubic-bezier(.3, .7, .3, 1.35), visibility 0s;
}
.toit__logo .mini-oiseau { width: 46px; height: auto; }
.toit__logo .mini-mot { width: clamp(104px, 9vw, 128px); height: auto; }
/* accueil : la plaque du logo n'arrive qu'une fois le grand logo peint passé */
.logo-cache .toit__logo {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px) rotate(-4deg);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.toit__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
}
.toit__nav a {
  white-space: nowrap;
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: .02em;
  color: var(--blanc);
  text-decoration: none;
  padding: 8px 14px 9px;
  border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}
.toit__nav a:hover { background: rgba(255, 250, 243, .1); }
.toit__nav a[aria-current="true"] {
  color: var(--jaune);
  text-decoration: underline wavy var(--jaune) 2px;
  text-underline-offset: 6px;
}
.toit__droite {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toit .statut { flex: none; margin: 0; min-height: 44px; padding: .5em 1em; }
.toit__carte { min-height: 46px; padding: .5em 1.05em; font-size: 1.02rem; box-shadow: 3px 3px 0 var(--encre); }
.toit__menu {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 13px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--encre);
  background: var(--blanc);
  border: 3px solid var(--encre);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--encre);
  cursor: pointer;
}
.toit__menu .barres {
  width: 20px; height: 14px;
  background: repeating-linear-gradient(180deg, var(--encre) 0 3px, transparent 3px 5.5px);
}
@media (max-width: 1279px) {
  .toit { grid-template-columns: auto 1fr; }
  .toit__nav { display: none; }
  .toit__menu { display: inline-flex; }
}
@media (max-width: 760px) {
  .toit { top: 10px; gap: 8px; }
  .toit .statut { display: none; }
  .toit__logo { padding: 5px 11px 5px 8px; border-radius: 12px; }
  .toit__logo .mini-oiseau { width: 38px; }
  .toit__logo .mini-mot { width: 92px; }
  .toit__droite { gap: 8px; }
  .toit__carte { min-height: 44px; padding: .45em .9em; }
  .toit__menu { min-height: 44px; padding: 0 11px; }
  .toit__menu .txt { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .toit__logo, .logo-cache .toit__logo { transform: none; transition: opacity .01s, visibility 0s; }
}

/* =====================================================================
   MENU MOBILE : le rideau métallique du hangar
   ===================================================================== */
.rideau {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  padding: 18px var(--gouttiere) 28px;
  background-color: var(--lambris);
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 70%, rgba(27, 18, 48, .25)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .18) 0 2px, transparent 2px 13px, rgba(104, 18, 94, .35) 13px 15px, transparent 15px 18px);
  transform: translateY(-102%);
  transition: transform .6s cubic-bezier(.75, 0, .18, 1), visibility 0s linear .6s;
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.rideau::after {
  /* la barre basse du rideau, avec sa poignée */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 16px;
  background: linear-gradient(90deg, transparent calc(50% - 40px), var(--encre) calc(50% - 40px) calc(50% + 40px), transparent calc(50% + 40px)) center 3px / 100% 6px no-repeat, #9ea6ad;
  border-top: 3px solid var(--encre);
}
.rideau.est-ouvert {
  transform: translateY(0);
  visibility: visible;
  transition: transform .6s cubic-bezier(.75, 0, .18, 1), visibility 0s;
}
.rideau__haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rideau__haut img { width: 150px; }
.rideau__fermer {
  min-height: 46px; padding: 0 14px;
  font-weight: 600; font-size: 1rem;
  background: var(--blanc); color: var(--encre);
  border: 3px solid var(--encre); border-radius: 10px; box-shadow: 3px 3px 0 var(--encre);
  cursor: pointer;
}
.rideau nav { display: flex; flex-direction: column; gap: 4px; margin: 28px 0 24px; }
.rideau nav a {
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: clamp(2.1rem, 9vw, 3.2rem);
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--jaune);
  text-shadow:
    -2px -2px 0 var(--encre), 2px -2px 0 var(--encre), -2px 2px 0 var(--encre), 2px 2px 0 var(--encre),
    -4px 5px 0 var(--encre);
  padding: 4px 0;
}
.rideau__bas { margin-top: auto; display: grid; gap: 12px; padding-bottom: 12px; }
.rideau__bas .statut { justify-self: start; }
.rideau__bas .btn { width: 100%; }
@media (min-width: 1280px) { .rideau { display: none; } }

/* =====================================================================
   PIED DE PAGE : le fond noir du hangar
   ===================================================================== */
.pied {
  position: relative;
  color: var(--blanc);
  background-color: var(--encre);
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 9px, rgba(0, 0, 0, .18) 9px 18px);
  padding: clamp(48px, 7vw, 84px) 0 0;
}
.pied__grille {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.pied__logo img { width: 100%; max-width: 210px; }
.pied h2 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--jaune);
  margin-bottom: .6em;
}
.pied p, .pied li { color: rgba(255, 250, 243, .86); }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35em; }
.pied a { color: var(--blanc); text-decoration-color: rgba(255, 210, 63, .7); text-underline-offset: 4px; }
.pied a:hover { color: var(--jaune); }
.pied__legal {
  margin-top: clamp(36px, 5vw, 56px);
  padding: 22px 0;
  border-top: 2px dashed rgba(255, 250, 243, .18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}
.pied__sante {
  margin: 0;
  font-family: var(--f-main);
  font-size: 1.15rem;
  color: var(--blanc);
}
@media (max-width: 900px) {
  .pied__grille { grid-template-columns: 1fr 1fr; }
  .pied__logo { grid-column: 1 / -1; }
  .pied__logo img { max-width: 150px; }
}
@media (max-width: 520px) {
  .pied__grille { grid-template-columns: 1fr; }
}

/* ---------- signature Studio Novalem ---------- */
.signature-novalem {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-titre);
  font-size: .98rem;
  color: rgba(255, 250, 243, .78);
  text-decoration: none;
}
.signature-novalem strong { color: var(--blanc); font-weight: 600; }
.signature-novalem .nono {
  position: relative;
  width: 30px; height: 38px;
  flex: none;
}
.signature-novalem .nono__plaque {
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: #1f4fbf;
  border: 2px solid #111;
  border-radius: 5px;
  box-shadow: 2px 2px 0 #111;
  transform-origin: 50% 0;
}
.signature-novalem .nono__plaque svg { width: 16px; height: 16px; }
.signature-novalem .nono__jambes {
  position: absolute; left: 8px; top: 30px;
  width: 14px; height: 8px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s;
}
.signature-novalem .nono__jambes i {
  position: absolute; top: 0; width: 3px; height: 7px; background: #111; border-radius: 2px;
}
.signature-novalem .nono__jambes i:first-child { left: 1px; }
.signature-novalem .nono__jambes i:last-child { right: 1px; }
.signature-novalem:hover strong, .signature-novalem:focus-visible strong { color: #f5c400; }
.signature-novalem:hover .nono__plaque, .signature-novalem:focus-visible .nono__plaque { animation: nono-salut .9s ease-in-out; }
.signature-novalem:hover .nono__jambes, .signature-novalem:focus-visible .nono__jambes { opacity: 1; transform: none; }
.signature-novalem:hover .nono__jambes i, .signature-novalem:focus-visible .nono__jambes i { animation: nono-pas .35s ease-in-out infinite alternate; }
.signature-novalem:hover .nono__jambes i:last-child, .signature-novalem:focus-visible .nono__jambes i:last-child { animation-delay: -.35s; }
@keyframes nono-salut {
  0% { transform: rotate(0); }
  25% { transform: rotate(-12deg); }
  55% { transform: rotate(9deg); }
  80% { transform: rotate(-4deg); }
  100% { transform: rotate(0); }
}
@keyframes nono-pas { from { transform: translateY(0); } to { transform: translateY(-2px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
