/* Le Café Des Amis — styles conformes à design/charte.md */

/* ---------- Jetons ---------- */
:root {
  --corail: #FF6B57; --jaune: #FFD166; --turquoise: #2EC4B6; --encre: #3A1F1A; --lait: #FFF4EA;
  --fond: #FFEDE3; --surface: #FFFFFF; --texte: #3A1F1A; --texte2: #7A5548; --bord: #F5D9C8;
  --ardoise: #3A1F1A; --lien: #C2341F;
  --display: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Arial Rounded MT Bold", system-ui, sans-serif;
  --corps: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 24px; --pilule: 999px;
  color-scheme: light;
}
[data-theme="sombre"] {
  --fond: #22130F; --surface: #33201A; --texte: #FFF4EA; --texte2: #D9BFB0; --bord: #4A2E25;
  --ardoise: #140B09; --lien: #FF9A8A;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--corps); background: var(--fond); color: var(--texte); font-size: 1rem; line-height: 1.55;
  transition: background .3s, color .3s; overflow-x: clip; }
a { color: inherit; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--encre); color: var(--lait);
  padding: 12px 18px; border-radius: var(--pilule); font-weight: 700; text-decoration: none; }
.evitement:focus { top: 12px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--display); }
h2 { font-size: clamp(1.95rem, 7.5vw, 3rem); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; max-width: 18ch; }
h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.chapo { color: var(--texte2); font-size: 1.1rem; max-width: 52ch; margin-top: 14px; }
.section { padding: 72px 0; }
.section-serree { padding-top: 24px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: var(--pilule);
  font: 800 1.05rem var(--display); text-decoration: none; cursor: pointer; border: 3px solid var(--encre);
  box-shadow: 0 5px 0 var(--encre); transition: transform .12s, box-shadow .12s; text-align: center; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--encre); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--encre); }
.btn-plein { background: var(--encre); color: var(--lait); }
.btn-clair { background: var(--lait); color: var(--encre); }
.btn-jaune { background: var(--jaune); color: var(--encre); }
.btn-turquoise { background: var(--turquoise); color: var(--encre); }
.boutons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 20; background: var(--corail); color: var(--encre); }
.barre { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 1.2rem var(--display); letter-spacing: -.01em; }
.logo svg { width: 40px; height: 40px; flex: none; }
.nav { display: none; gap: 26px; font-weight: 700; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-color: var(--encre); }
.outils { display: flex; gap: 8px; }
.rond { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--encre); background: var(--lait); color: var(--encre);
  font-size: 1.15rem; cursor: pointer; display: grid; place-items: center; }
.tiroir { display: none; flex-direction: column; gap: 6px; padding: 4px 20px 20px; }
.tiroir.ouvert { display: flex; }
.tiroir a { background: var(--lait); color: var(--encre); border-radius: 18px; padding: 14px 18px; text-decoration: none; font: 800 1.15rem var(--display); }
@media (min-width: 780px) {
  .nav { display: flex; }
  .burger { display: none; }
  .tiroir, .tiroir.ouvert { display: none; }
}

/* ---------- Héros ---------- */
.heros { background: var(--corail); color: var(--encre); padding: 28px 0 8px; outline: none; }
.heros .wrap { display: grid; gap: 24px; align-items: center; }
.heros h1 { font-size: clamp(2.6rem, 10.5vw, 5.6rem); font-weight: 900; line-height: .95; letter-spacing: -.035em; }
.heros h1 span { display: block; animation: monte .7s cubic-bezier(.2, .9, .3, 1.3) both; }
.heros h1 span:nth-child(2) { padding-left: .9em; animation-delay: .12s; }
.heros h1 span:nth-child(3) { padding-left: .35em; animation-delay: .24s; }
@keyframes monte { from { opacity: 0; transform: translateY(40px) rotate(-3deg); } }
.heros .chapo { color: var(--encre); opacity: .9; font-size: 1.15rem; }
.statut { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; background: var(--lait); color: var(--encre);
  border: 3px solid var(--encre); border-radius: var(--pilule); padding: 8px 16px; font-weight: 700; font-size: .95rem; }
.statut i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #1E9E6A; box-shadow: 0 0 0 4px rgba(30, 158, 106, .25); }
.statut.ferme i { background: #B23A2A; box-shadow: 0 0 0 4px rgba(178, 58, 42, .2); }
.scene { position: relative; width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 1 / 1; }
.scene .tasse { width: 100%; height: 100%; animation: berce 5s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes berce { 50% { transform: rotate(-3deg); } }
.vapeur { animation: vapeur 3s ease-in-out infinite; opacity: 0; }
.vapeur:nth-of-type(2) { animation-delay: 1s; }
.vapeur:nth-of-type(3) { animation-delay: 2s; }
@keyframes vapeur { 0% { opacity: 0; transform: translateY(12px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-22px); } }
.tampon { position: absolute; right: -4px; top: 2%; width: 34%; aspect-ratio: 1; background: var(--jaune); border-radius: 50%;
  border: 3px solid var(--encre); display: grid; place-items: center; }
.tampon svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: tourne 18s linear infinite; }
.tampon b { font: 900 1.7rem var(--display); color: var(--corail); }
@keyframes tourne { to { transform: rotate(360deg); } }
@media (min-width: 780px) {
  .heros { padding: 56px 0 16px; }
  .heros .wrap { grid-template-columns: 1.15fr .85fr; }
}

/* ---------- Rubans ---------- */
.rubans { position: relative; height: 128px; overflow: hidden; background: linear-gradient(var(--corail) 50%, var(--fond) 50%); }
.ruban { position: absolute; left: -6%; width: 112%; top: 50%; padding: 12px 0; white-space: nowrap; overflow: hidden;
  border-block: 3px solid var(--encre); color: var(--encre); font: 900 1.35rem var(--display); }
.ruban.j { background: var(--jaune); transform: translateY(-50%) rotate(-2.5deg); z-index: 2; }
.ruban.t { background: var(--turquoise); transform: translateY(-50%) rotate(2deg); }
.piste { display: inline-flex; animation: defile 30s linear infinite; }
.ruban.t .piste { animation-direction: reverse; animation-duration: 38s; }
.piste span { padding: 0 18px; }
.piste span:nth-child(even) { color: var(--corail); }
.ruban.t .piste span:nth-child(even) { color: var(--lait); }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- La maison ---------- */
.maison .wrap { display: grid; gap: 44px; }
.raisons { list-style: none; display: grid; gap: 18px; margin-top: 30px; }
.raisons li { display: flex; gap: 16px; align-items: flex-start; font-size: 1.05rem; }
.pastille { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; border: 3px solid var(--encre); }
.p-c { background: var(--corail); }
.p-j { background: var(--jaune); }
.p-t { background: var(--turquoise); }
.raisons strong { display: block; font-family: var(--display); font-size: 1.1rem; }
.raisons span { color: var(--texte2); }
.equipe { background: var(--surface); border-radius: 32px; padding: 28px 24px; border: 3px solid var(--encre); box-shadow: 8px 8px 0 var(--turquoise); }
.equipe > p { color: var(--texte2); margin: 6px 0 20px; }
.membre { display: flex; gap: 14px; align-items: center; padding: 12px 0; }
.membre + .membre { border-top: 2px dashed var(--bord); }
.avatar { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font: 900 1.4rem var(--display);
  color: var(--encre); border: 3px solid var(--encre); }
.a-c { background: var(--corail); }
.a-t { background: var(--turquoise); }
.a-j { background: var(--jaune); }
.membre:nth-child(odd) .avatar { transform: rotate(-6deg); }
.membre small { display: block; color: var(--texte2); font-size: .95rem; }
@media (min-width: 860px) { .maison .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; } }

/* ---------- La carte (ardoise) ---------- */
.carte { background: var(--ardoise); color: var(--lait); border-radius: 40px 40px 0 0; }
.carte h2 { color: var(--lait); }
.carte .chapo { color: #E8CFC0; }
.onglets { display: flex; gap: 10px; overflow-x: auto; margin: 28px -20px 0; padding: 6px 20px 10px; scrollbar-width: none; }
.onglets::-webkit-scrollbar { display: none; }
.onglets button { flex: none; min-height: 48px; padding: 0 22px; border-radius: var(--pilule); border: 3px solid var(--lait); background: transparent;
  color: var(--lait); font: 800 1rem var(--display); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.onglets button[aria-selected="true"] { background: var(--jaune); border-color: var(--jaune); color: var(--encre); transform: rotate(-2deg); }
.menu { list-style: none; display: grid; gap: 6px 48px; margin-top: 22px; border-radius: 12px; }
@media (min-width: 780px) { .menu { grid-template-columns: 1fr 1fr; } }
.menu li { padding: 14px 0; animation: apparait .4s ease both; }
.menu li:nth-child(2) { animation-delay: .05s; }
.menu li:nth-child(3) { animation-delay: .1s; }
.menu li:nth-child(4) { animation-delay: .15s; }
.menu li:nth-child(5) { animation-delay: .2s; }
.menu li:nth-child(6) { animation-delay: .25s; }
@keyframes apparait { from { opacity: 0; transform: translateX(-14px); } }
.ligne { display: flex; align-items: baseline; gap: 10px; }
.ligne .nom { font: 800 1.2rem var(--display); }
.ligne .pts { flex: 1; border-bottom: 3px dotted rgba(255, 244, 234, .35); transform: translateY(-5px); min-width: 20px; }
.ligne .prix { font: 900 1.2rem var(--display); color: var(--jaune); white-space: nowrap; }
.menu small { color: #D9BFB0; font-size: .95rem; }
.suggestion { margin-top: 36px; background: var(--turquoise); color: var(--encre); border-radius: var(--r); padding: 22px 24px;
  border: 3px solid var(--lait); transform: rotate(-1.5deg); display: flex; gap: 16px; align-items: center; max-width: 560px; }
.suggestion .gros { font-size: 2.4rem; }
.suggestion strong { font: 900 1.2rem var(--display); display: block; }

/* ---------- Agenda (tickets) ---------- */
.agenda { background: var(--ardoise); }
.agenda-int { background: var(--fond); border-radius: 40px 40px 0 0; padding: 72px 0; transition: background .3s; }
.tickets { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 30px -20px 0; padding: 14px 20px 24px; scrollbar-width: none; }
.tickets::-webkit-scrollbar { display: none; }
@media (min-width: 780px) { .tickets { grid-auto-flow: row; grid-template-columns: 1fr 1fr; overflow: visible; } }
.ticket { scroll-snap-align: start; position: relative; display: grid; grid-template-columns: 86px 1fr; background: var(--surface);
  border: 3px solid var(--encre); border-radius: 22px; min-height: 150px; }
.ticket::before, .ticket::after { content: ""; position: absolute; left: 72px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--fond); border: 3px solid var(--encre); }
.ticket::before { top: -14px; clip-path: inset(50% 0 0 0); }
.ticket::after { bottom: -14px; clip-path: inset(0 0 50% 0); }
.talon { border-radius: 19px 0 0 19px; border-right: 3px dashed var(--encre); display: flex; flex-direction: column; align-items: center;
  justify-content: center; color: var(--encre); }
.talon b { font: 900 2.2rem var(--display); line-height: 1; }
.talon small { font-weight: 800; }
.ticket:nth-child(4n+1) .talon { background: var(--jaune); }
.ticket:nth-child(4n+2) .talon { background: var(--turquoise); }
.ticket:nth-child(4n+3) .talon { background: var(--corail); }
.ticket:nth-child(4n+4) .talon { background: var(--jaune); }
.ticket .corps { padding: 18px 18px 18px 22px; }
.ticket p { color: var(--texte2); margin-top: 6px; font-size: .98rem; }
.ticket .info { display: inline-block; margin-top: 10px; font-weight: 800; font-size: .9rem; color: var(--lien); }
.agenda-vide { margin-top: 30px; background: var(--surface); border: 3px dashed var(--encre); border-radius: 22px; padding: 22px 24px;
  font-weight: 700; max-width: 560px; }

/* ---------- Avis (post-it) ---------- */
.notes { display: grid; gap: 26px; margin-top: 36px; }
@media (min-width: 780px) { .notes { grid-template-columns: repeat(3, 1fr); } }
.note { position: relative; color: var(--encre); padding: 30px 24px 24px; border-radius: 6px 6px 26px 6px; box-shadow: 0 10px 20px rgba(58, 31, 26, .15); }
.note::before { content: ""; position: absolute; top: -12px; left: 50%; width: 90px; height: 26px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 244, 234, .75); border: 1px solid rgba(58, 31, 26, .15); }
.note:nth-child(3n+1) { background: var(--jaune); transform: rotate(-2deg); }
.note:nth-child(3n+2) { background: var(--turquoise); transform: rotate(1.5deg); }
.note:nth-child(3n+3) { background: var(--corail); transform: rotate(-1deg); }
.note p { font: 700 1.12rem/1.45 var(--display); }
.note cite { display: block; margin-top: 14px; font-style: normal; font-weight: 800; }

/* ---------- Infos pratiques ---------- */
.infos-grille { display: grid; gap: 22px; margin-top: 32px; }
@media (min-width: 860px) { .infos-grille { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.bloc { background: var(--surface); border: 3px solid var(--encre); border-radius: 32px; padding: 26px 24px; box-shadow: 8px 8px 0 var(--jaune); }
.horaires { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 1.02rem; }
.horaires td { padding: 11px 0; border-bottom: 2px dashed var(--bord); }
.horaires td:last-child { text-align: right; font-weight: 800; white-space: nowrap; padding-left: 12px; }
.horaires tr.auj td { font-weight: 900; color: var(--lien); }
.horaires tr.auj td:first-child::after { content: "aujourd'hui"; margin-left: 8px; font: 800 .75rem var(--corps); color: var(--encre);
  background: var(--jaune); padding: 3px 9px; border-radius: var(--pilule); vertical-align: 2px; white-space: nowrap; }
.adresse { margin-top: 20px; font-size: 1.05rem; }
.adresse b { font-family: var(--display); font-size: 1.15rem; }
.adresse a { color: var(--lien); font-weight: 700; }
.plan { border: 3px solid var(--encre); border-radius: 32px; overflow: hidden; background: #FFE3D3; min-height: 300px; display: flex;
  flex-direction: column; box-shadow: 8px 8px 0 var(--corail); }
.plan svg { width: 100%; flex: 1; display: block; }
.plan .boutons { padding: 0 20px 20px; margin-top: 0; }

/* ---------- Pied de page ---------- */
.pied { background: var(--ardoise); color: var(--lait); margin-top: 72px; border-radius: 40px 40px 0 0; padding: 48px 0 28px; overflow: hidden; }
.mot { font: 900 clamp(3.2rem, 17vw, 10rem)/.85 var(--display); letter-spacing: -.04em; color: var(--corail); }
.mot span { display: block; color: var(--jaune); padding-left: .6em; }
.pied-bas { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; margin-top: 36px; font-size: .95rem; color: #E8CFC0; }
.pied a { color: var(--jaune); }

/* ---------- Page simple (mentions légales) ---------- */
.page-simple { padding: 56px 0 24px; }
.page-simple h1 { font-size: clamp(2.2rem, 8vw, 3.4rem); font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.page-simple h2 { font-size: 1.5rem; margin-top: 36px; }
.page-simple p { max-width: 65ch; margin-top: 10px; color: var(--texte2); }
.page-simple a { color: var(--lien); font-weight: 700; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
