/* Page publique de prise de RDV (mrdv.fr). Pensée pour le téléphone (bandeau de marque, carte qui le
   chevauche) ; à partir de 960 px, deux colonnes : la marque à gauche, l'action à droite.
   Les couleurs de la marque arrivent par /<code>/style.css. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/static/polices/bricolage-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/static/polices/figtree-latin.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
:root { --marque: #14263f; --accent: #14263f; --sur-marque: #fff; --sur-accent: #fff;
  --encre: #16202e; --muet: #5c6878; --trait: #dfe4ea; --fond: #f3f5f8; --papier: #fff; --rayon: 18px;
  --titre: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--encre); background: var(--fond); }
h1, h2 { font-family: var(--titre); letter-spacing: -.02em; margin: 0; line-height: 1.12; }
h1 { font-size: clamp(28px, 7.4vw, 38px); font-weight: 750; text-wrap: balance; }
h2 { font-size: 20px; font-weight: 700; }
.page { min-height: 100dvh; display: flex; flex-direction: column; }

/* ---------- la marque */
.recit { color: var(--sur-marque);
  background: radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 62%),
              radial-gradient(90% 60% at 0% 100%, color-mix(in srgb, #000 22%, transparent), transparent 70%), var(--marque); }
.recit a { color: inherit; }
.tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; min-height: 68px; background: var(--papier); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre) !important; min-width: 0; }
.logo img { display: block; height: 44px; width: auto; max-width: min(52vw, 230px); object-fit: contain; }
.logo.haut img { height: 50px; }
.logo b { font: 750 18px/1.1 var(--titre); letter-spacing: -.02em; }
.monogramme { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--marque); color: var(--sur-marque); font: 800 22px var(--titre); }
.tete-tel { font-weight: 700; text-decoration: none; white-space: nowrap; padding: 9px 14px; border: 1.5px solid var(--trait); border-radius: 999px; font-size: 14.5px; color: var(--encre) !important; background: #fff; }
.recit-corps { padding: 26px 20px 64px; max-width: 620px; margin: 0 auto; width: 100%; }
.chapo { margin: 14px 0 0; font-size: 17px; opacity: .92; }
.recit .atouts, .recit .mention { display: none; }
.coche { margin: 0 0 16px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #fff; background: #1c9b5e; box-shadow: 0 0 0 5px rgba(255, 255, 255, .18); }

.etapes { list-style: none; display: flex; gap: 6px; margin: 0 0 22px; padding: 0; font-size: 13px; font-weight: 650; }
.etapes li { flex: 1; display: flex; align-items: center; gap: 7px; padding-bottom: 9px; border-bottom: 3px solid color-mix(in srgb, currentColor 22%, transparent); opacity: .6; }
.etapes span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; flex: none; background: color-mix(in srgb, currentColor 22%, transparent); }
.etapes .fait, .etapes .ici { opacity: 1; border-color: currentColor; }
.etapes .fait span, .etapes .ici span { background: var(--sur-marque); color: var(--marque); }
.rappel-centre { margin-top: 16px; display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--sur-marque) 12%, transparent); border: 1px solid color-mix(in srgb, var(--sur-marque) 22%, transparent); font-size: 15px; }
.rappel-centre b { font-size: 16.5px; }
.rappel-centre a { margin-top: 6px; font-weight: 650; }

/* ---------- l'action */
.action { flex: 1; padding: 0 16px 28px; margin-top: -40px; }
.action-corps { max-width: 560px; margin: 0 auto; display: grid; gap: 14px; }
.carte { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 20px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 14px 34px -14px rgba(16, 24, 40, .22); }
form.carte, .ticket { display: grid; gap: 15px; }
.champ { display: grid; gap: 6px; font-weight: 650; font-size: 14.5px; }
.champ small { font-weight: 500; color: var(--muet); }
.champ input { font: inherit; font-weight: 500; font-size: 17px; padding: 13px 14px; border: 1.5px solid var(--trait); border-radius: 12px; background: #fff; color: var(--encre); width: 100%; min-height: 52px; }
.champ input:focus-visible { outline: 3px solid color-mix(in srgb, var(--marque) 26%, transparent); border-color: var(--marque); }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.accord { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14.5px; color: var(--muet); cursor: pointer; }
.accord input { width: 22px; height: 22px; margin: 0; accent-color: var(--marque); }
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 22px; border: 0; border-radius: 14px; background: var(--accent); color: var(--sur-accent); font: 700 17px "Figtree", system-ui, sans-serif; text-decoration: none; cursor: pointer; width: 100%; text-align: center; box-shadow: 0 8px 18px -10px var(--accent); }
.bouton:hover { filter: brightness(1.07); }
.bouton:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; }
.bouton.clair { background: transparent; color: var(--marque); border: 1.5px solid var(--trait); box-shadow: none; }
.erreur { margin: 0; padding: 11px 13px; border-radius: 12px; background: #fdecec; color: #8f1d1d; font-weight: 600; font-size: 15px; }
.succes { margin: 0; padding: 11px 13px; border-radius: 12px; background: #e6f6ee; color: #14613c; font-weight: 600; font-size: 15px; }
.ticket form { display: grid; }
.note { margin: 0; text-align: center; color: var(--muet); font-size: 14px; }
.mention { margin: 18px auto 0; max-width: 480px; text-align: center; color: var(--muet); font-size: 12.5px; padding-bottom: env(safe-area-inset-bottom); }

.choix { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.choix legend { font-weight: 650; font-size: 14.5px; padding: 0; margin-bottom: 8px; }
.cache { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
h2.suite { margin-top: 6px; }
.choix label, .heures label { position: relative; cursor: pointer; }
.choix label { flex: 1 1 calc(50% - 4px); }
.choix input, .heures input { position: absolute; opacity: 0; inset: 0; }
.choix span, .heures span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 50px; padding: 6px 12px; border: 1.5px solid var(--trait); border-radius: 12px; font-weight: 650; background: #fff; line-height: 1.2; }
.choix label:hover span, .heures label:hover span { border-color: color-mix(in srgb, var(--marque) 45%, var(--trait)); }
.choix input:checked + span, .heures input:checked + span { background: var(--marque); border-color: var(--marque); color: var(--sur-marque); }
.choix input:focus-visible + span, .heures input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--marque) 35%, transparent); }

.atouts { list-style: none; margin: 8px 0 0; padding: 0 4px; display: grid; gap: 10px; color: var(--muet); font-size: 15px; }
.atouts li { padding-left: 32px; position: relative; }
.atouts li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--marque); background: color-mix(in srgb, var(--marque) 12%, #fff); }

.centres { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.centre { display: grid; gap: 14px; }
.adresse { margin: 6px 0 0; color: var(--muet); font-size: 15px; }
.trajet { margin: 8px 0 0; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pastille { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: var(--marque); background: color-mix(in srgb, var(--marque) 12%, #fff); }

.jours { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: none; scroll-snap-type: x proximity; }
.jours[hidden] { display: none; }
.jours::-webkit-scrollbar { display: none; }
.jours button { flex: none; width: 64px; padding: 8px 0; border: 1.5px solid var(--trait); border-radius: 14px; background: #fff; font: inherit; color: var(--encre); display: grid; gap: 1px; justify-items: center; cursor: pointer; scroll-snap-align: start; }
.jours button b { font: 750 21px var(--titre); }
.jours button small { font-size: 12px; color: var(--muet); font-weight: 600; }
.jours button[aria-selected="true"] { background: var(--marque); border-color: var(--marque); color: var(--sur-marque); }
.jours button[aria-selected="true"] small { color: inherit; opacity: .85; }
.heures { border: 0; padding: 0; margin: 0; min-width: 0; }
.heures legend { font-weight: 700; padding: 0; margin-bottom: 10px; }
.heures > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.js .heures:not(.ouvert) { display: none; }
.coordonnees { display: grid; gap: 15px; padding-top: 18px; border-top: 1px solid var(--trait); }

.ticket dl { margin: 0; display: grid; border: 1px solid var(--trait); border-radius: 14px; overflow: hidden; }
.ticket dl div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 13px 15px; }
.ticket dl div + div { border-top: 1px dashed var(--trait); }
.ticket dt { color: var(--muet); font-weight: 600; font-size: 14px; }
.ticket dd { margin: 0; font-weight: 700; }
.ticket dd span { font-weight: 500; color: var(--muet); font-size: 14.5px; }

/* ---------- tablette : même empilement, plus d'air */
@media (min-width: 640px) {
  .tete { padding: 12px 28px; }
  .recit-corps { padding: 44px 28px 84px; }
  .action { margin-top: -52px; padding: 0 28px 40px; }
  .carte { padding: 26px; }
  .centre { grid-template-columns: 1fr auto; align-items: center; }
  .centre .bouton { width: auto; }
  .jours { display: grid; grid-template-columns: repeat(7, 1fr); overflow: visible; }
  .jours button { width: auto; }
}

/* ---------- ordinateur : la marque à gauche, l'action à droite */
@media (min-width: 960px) {
  .page { display: grid; grid-template-columns: minmax(400px, 44%) 1fr; }
  .recit { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 40px clamp(36px, 4.5vw, 72px); overflow: hidden; }
  .tete { background: none; padding: 0; min-height: 0; }
  .logo { background: #fff; padding: 12px 18px; border-radius: 16px; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .45); }
  .logo img { height: 52px; max-width: 260px; }
  .logo.haut img { height: 96px; }
  .logo.haut b { display: none; }
  .tete-tel { background: transparent; color: var(--sur-marque) !important; border-color: color-mix(in srgb, var(--sur-marque) 40%, transparent); }
  .tete-tel:hover { background: color-mix(in srgb, var(--sur-marque) 12%, transparent); }
  .recit-corps { margin: auto 0; padding: 40px 0; max-width: 560px; }
  h1 { font-size: clamp(38px, 3.5vw, 56px); }
  .chapo { font-size: 19px; margin-top: 20px; max-width: 30em; }
  .recit .atouts { display: grid; margin-top: 30px; padding: 0; color: inherit; font-size: 17px; gap: 14px; }
  .recit .atouts li::before { background: color-mix(in srgb, var(--sur-marque) 16%, transparent); color: inherit; top: 1px; }
  .recit .mention { display: block; margin: 0; text-align: left; color: inherit; opacity: .7; max-width: 34em; }
  .action { margin: 0; padding: 56px clamp(32px, 5vw, 88px); display: grid; align-content: center; min-height: 100dvh; }
  .action-corps { width: 100%; max-width: 540px; gap: 16px; }
  .action .atouts, .action .mention { display: none; }
  .carte { padding: 30px; border-radius: 22px; }
  .etapes { margin-bottom: 30px; font-size: 14px; }
  .coche { width: 64px; height: 64px; font-size: 30px; margin-bottom: 22px; }
}
/* Bandeau cookies : refuser pese autant qu'accepter (deux boutons identiques). Compact sur telephone, et la page
   gagne sa hauteur en bas tant qu'il est ouvert : rien ne reste cache dessous. */
.cookies-ouverts .page { padding-bottom: 150px; }
.cookies { position: fixed; z-index: 20; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 440px; padding: 12px 14px; border-radius: 16px; background: var(--papier); color: var(--encre); border: 1px solid var(--trait); box-shadow: 0 18px 40px -18px rgba(15, 25, 40, .45); font-size: 13px; line-height: 1.4; }
.cookies[hidden] { display: none; }
.cookies p { margin: 0 0 10px; }
.cookies-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookies-choix button { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--encre); background: var(--papier); color: var(--encre); font: 700 15px "Figtree", system-ui, sans-serif; cursor: pointer; }
.cookies-choix button:hover { background: var(--fond); }
.cookies-choix button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; }
.lien-cookies { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.lien-cookies[hidden] { display: none; }
@media (min-width: 960px) { .cookies { left: auto; right: 24px; bottom: 24px; padding: 16px; font-size: 14px; } .cookies-ouverts .page { padding-bottom: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .bouton, .heures span, .choix span, .jours button { transition: background .18s, border-color .18s, filter .18s, color .18s; }
  .carte { animation: monte .45s cubic-bezier(.2, .7, .2, 1) both; }
  .centres .carte:nth-child(2) { animation-delay: .06s; } .centres .carte:nth-child(3) { animation-delay: .12s; }
  @keyframes monte { from { opacity: 0; transform: translateY(10px); } }
}
