/* Woof'mas — réservation des activités. Feuille à part : elle n'est chargée que
   par la page de réservation, le reste du site n'en dépend pas. */

.wm{max-width:1180px;margin-inline:auto}
/* Entre les trois cartes « Au programme » et le titre « Activités », deux marges de section s'additionnaient
   (~200 px de vide) : on les resserre. */
.section.wm-avant{padding-bottom:clamp(16px,2.5vw,32px)}
.section.wm-section{padding-top:clamp(20px,3vw,40px)}
.wm-chargement{text-align:center;color:var(--wf-wine,#6E2A34);padding:40px 0}

/* --- Messages */
.wm-msg{display:flex;gap:12px;align-items:flex-start;border-radius:16px;padding:14px 18px;margin:0 0 18px;
  font-size:.98rem;line-height:1.5;border:2px solid transparent}
.wm-msg b{display:block;margin-bottom:2px}
.wm-msg--ok{background:#E8F3EA;border-color:#9CC8A6;color:#1F4D2B}
.wm-msg--erreur{background:#FBE9EA;border-color:#E3A9AE;color:#7A2430}
.wm-msg--info{background:#FFF6DD;border-color:#E7CD8C;color:#5C4511}
.wm-msg--test{background:#EDEBFA;border-color:#B7B0E6;color:#3A3270}

.wm-date{display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center;justify-content:center;
  margin:0 0 26px;font-weight:600;color:var(--wf-wine-900,#3B141B)}
.wm-date span{display:inline-flex;gap:8px;align-items:center}

/* --- Activités */
/* Trois cartes par ligne (deux sur tablette, une sur téléphone). Les cartes de la dernière ligne, quand elle
   est incomplète, se centrent : 7 activités = 3 + 3 + 1, et la dernière se place au milieu. Grille de 6 colonnes
   (une carte = 2 colonnes) pour pouvoir décaler d'une colonne ; même hauteur partout. */
.wm-grille{display:grid;grid-template-columns:repeat(6,1fr);grid-auto-rows:1fr;gap:20px}
.wm-grille > .wm-act{grid-column:span 2}
.wm-grille > .wm-act:last-child:nth-child(3n+1){grid-column:3 / span 2}
.wm-grille > .wm-act:nth-last-child(2):nth-child(3n+1){grid-column:2 / span 2}
.wm-grille > .wm-act:last-child:nth-child(3n+2){grid-column:4 / span 2}
@media (max-width:1000px){
  .wm-grille{grid-template-columns:repeat(2,1fr)}
  .wm-grille > .wm-act,
  .wm-grille > .wm-act:last-child:nth-child(3n+1),
  .wm-grille > .wm-act:nth-last-child(2):nth-child(3n+1),
  .wm-grille > .wm-act:last-child:nth-child(3n+2){grid-column:auto}
  /* nombre impair : la dernière carte, seule, se centre sur les deux colonnes */
  .wm-grille > .wm-act:last-child:nth-child(odd){grid-column:1 / -1;justify-self:center;width:calc(50% - 10px)}
}
@media (max-width:640px){
  .wm-grille{grid-template-columns:1fr}
  .wm-grille > .wm-act:last-child:nth-child(odd){grid-column:auto;justify-self:stretch;width:auto}
}
.wm-act{display:flex;flex-direction:column;background:#fff;border-radius:24px;padding:22px 22px 20px;border:1.5px solid rgba(110,42,52,.12);
  box-shadow:0 10px 28px -18px rgba(59,20,27,.4)}
.wm-act h3{margin:0 0 6px;font-size:1.3rem;line-height:1.15;color:var(--wf-wine-900,#3B141B)}
.wm-meta{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px;padding:0;list-style:none}
.wm-meta li{background:var(--wf-cream-2,#F3E9D4);border-radius:999px;padding:4px 12px;font-size:.86rem;
  font-weight:700;color:var(--wf-wine,#6E2A34)}
.wm-meta li.wm-prix{background:var(--wf-wine,#6E2A34);color:#fff}
.wm-desc{margin:0 0 14px;color:#4A4350;font-size:.96rem;line-height:1.55}
.wm-accroche{margin:0 0 10px;font-weight:700;font-size:1.02rem;line-height:1.45;color:var(--wf-wine-900,#3B141B)}
.wm-plus{margin:0 0 12px}
.wm-plus summary{cursor:pointer;font-weight:700;font-size:.92rem;color:var(--wf-wine,#6E2A34);padding:6px 0;list-style:none}
.wm-plus summary::-webkit-details-marker{display:none}
.wm-plus summary::before{content:"+";display:inline-grid;place-items:center;width:22px;height:22px;margin-right:8px;
  border-radius:50%;border:1.5px solid var(--wf-wine,#6E2A34);font-weight:800;line-height:1}
.wm-plus[open] summary::before{content:"–"}
.wm-plus summary:focus-visible{outline:3px solid var(--wf-gold,#C9A24B);outline-offset:2px;border-radius:6px}
.wm-plus p{margin:0 0 10px;color:#4A4350;font-size:.95rem;line-height:1.55}

/* La carte d'une activité : un symbole, une accroche, trois points courts. */
.wm-tete{display:flex;gap:14px;align-items:center;margin:0 0 14px}
.wm-ico{flex:none;display:grid;place-items:center;width:58px;height:58px;border-radius:50%;font-size:1.85rem;line-height:1;
  background:#F7E9EB}
.wm-act:nth-child(7n+2) .wm-ico{background:#E7F1E4}
.wm-act:nth-child(7n+3) .wm-ico{background:#FBF0D3}
.wm-act:nth-child(7n+4) .wm-ico{background:#E5EEF7}
.wm-act:nth-child(7n+5) .wm-ico{background:#F7E9EB}
.wm-act:nth-child(7n+6) .wm-ico{background:#E7F1E4}
.wm-act:nth-child(7n+7) .wm-ico{background:#FBF0D3}
.wm-tete .wm-meta{margin:0}
.wm-accroche{margin:0 0 12px;font-weight:800;font-size:1.03rem;line-height:1.4;color:var(--wf-wine-900,#3B141B)}
.wm-points{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.wm-points li{display:flex;gap:10px;align-items:flex-start;font-size:.94rem;line-height:1.4;color:#4A4350}
.wm-puce{flex:none;width:1.5em;text-align:center;font-size:1.05rem;line-height:1.3}
.wm-plus{margin:0 0 12px}
.wm-plus summary{cursor:pointer;font-weight:700;font-size:.92rem;color:var(--wf-wine,#6E2A34);padding:6px 0;list-style:none}
.wm-plus summary::-webkit-details-marker{display:none}
.wm-plus summary::before{content:"+";display:inline-grid;place-items:center;width:22px;height:22px;margin-right:8px;
  border-radius:50%;border:1.5px solid var(--wf-wine,#6E2A34);font-weight:800;line-height:1}
.wm-plus[open] summary::before{content:"–"}
.wm-plus summary:focus-visible{outline:3px solid var(--wf-gold,#C9A24B);outline-offset:2px;border-radius:6px}
.wm-plus p{margin:0 0 10px;color:#4A4350;font-size:.93rem;line-height:1.5}
/* Le bas de carte est poussé tout en bas : le bouton est au même endroit sur toutes les cartes. */
.wm-bas{margin-top:auto;padding-top:6px}
.wm-prochain{margin:0 0 6px;color:#4A4350;font-size:.93rem}
.wm-prochain b{color:var(--wf-wine-900,#3B141B)}
.wm-prochain--complet{color:#8F898C;font-weight:700}
.wm-mes{margin:0 0 10px;padding:8px 12px;border-radius:12px;background:var(--wf-cream,#FBF5E8);font-size:.92rem;color:var(--wf-wine-900,#3B141B)}
.wm-mes span{color:#6B6470}
.wm-act--choisie{border-color:var(--wf-wine,#6E2A34);box-shadow:0 10px 28px -14px rgba(110,42,52,.55)}
.wm-act .wm-btn--choisir{width:100%;margin-top:8px;background:var(--wf-wine,#6E2A34);color:#fff}
.wm-act .wm-btn--choisir:disabled{background:#D9D4D6;color:#8F898C;cursor:not-allowed}
.wm-act--choisie .wm-btn--choisir{background:#fff;color:var(--wf-wine,#6E2A34);box-shadow:inset 0 0 0 2px var(--wf-wine,#6E2A34)}
.wm-btn:focus-visible,.wm-h:focus-visible,.wm-pm:focus-visible{outline:3px solid var(--wf-gold,#C9A24B);outline-offset:2px}

/* La grille des horaires : une ligne par heure, l'heure écrite une seule fois. */
.wm-dialog--horaires[open]{display:flex;flex-direction:column;max-height:min(90vh,760px);max-width:min(640px,96vw)}
.wm-hcorps{overflow:auto;padding:24px 22px 8px;-webkit-overflow-scrolling:touch}
.wm-hcorps h3{margin:0 0 4px;font-size:1.4rem;color:var(--wf-wine-900,#3B141B)}
.wm-hsous{margin:0 0 14px;color:#6B6470;font-size:.9rem;line-height:1.45}
.wm-hgrille{display:grid}
.wm-hrow{display:grid;grid-template-columns:54px 1fr;gap:12px;align-items:start;padding:12px 0;
  border-top:1px solid rgba(110,42,52,.14)}
.wm-hlabel{font-weight:800;font-size:1.15rem;color:var(--wf-wine-900,#3B141B);padding-top:8px}
.wm-hslots{display:flex;flex-wrap:wrap;gap:8px}
.wm-hrow--complet .wm-hlabel{color:#A39DA0}
.wm-hvide{padding:9px 0;color:#A39DA0;font-size:.95rem;font-style:italic}

/* Un créneau libre : bouton blanc. Pris : gris et barré. Le vôtre : plein. */
.wm-h{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:68px;min-height:44px;
  padding:8px 12px;border-radius:12px;border:2px solid rgba(110,42,52,.45);background:#fff;
  font:inherit;font-weight:800;font-size:.98rem;color:var(--wf-wine-900,#3B141B);cursor:pointer;line-height:1.1}
.wm-h small{font-weight:600;font-size:.7rem;color:#6B6470}
.wm-h:not(:disabled):hover{background:var(--wf-cream,#FBF5E8)}
.wm-h--choisi{background:var(--wf-wine,#6E2A34);border-color:var(--wf-wine,#6E2A34);color:#fff}
.wm-h--choisi small{color:#F0DADD}
.wm-h--pris{border-color:transparent;background:#F3F1F1;color:#B2ACAF;font-weight:600;text-decoration:line-through;cursor:not-allowed}

.wm-hpied{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 22px;
  border-top:1px solid rgba(110,42,52,.18);background:#fff;font-weight:700;color:var(--wf-wine-900,#3B141B)}

/* --- Panier : collé en bas de l'écran dès qu'un créneau est choisi */
.wm-panier{position:sticky;bottom:12px;z-index:30;margin:26px auto 0;max-width:760px;background:#fff;
  border-radius:22px;border:2px solid var(--wf-wine,#6E2A34);box-shadow:0 18px 40px -16px rgba(59,20,27,.55);padding:16px 18px}
.wm-panier h3{margin:0 0 8px;font-size:1.05rem;color:var(--wf-wine-900,#3B141B)}
.wm-lignes{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.wm-ligne{display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:center;
  padding:8px 0;border-bottom:1px dashed rgba(110,42,52,.2)}
.wm-ligne b{font-size:.98rem}
.wm-ligne small{color:#6B6470;display:block}
.wm-ligne__droite{display:flex;gap:8px;align-items:center;justify-content:flex-end}
.wm-qte{display:inline-flex;align-items:center;gap:2px;border:1.5px solid rgba(110,42,52,.3);border-radius:999px;padding:2px}
.wm-pm{width:34px;height:34px;border:0;background:transparent;border-radius:50%;font:inherit;font-size:1.2rem;
  font-weight:800;color:var(--wf-wine,#6E2A34);cursor:pointer}
.wm-pm:disabled{opacity:.3;cursor:not-allowed}
.wm-q{min-width:22px;text-align:center;font-weight:800}
.wm-retirer{border:0;background:transparent;color:#7A2430;font:inherit;font-size:.85rem;text-decoration:underline;
  cursor:pointer;padding:6px}
.wm-total{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.wm-total strong{font-size:1.25rem;color:var(--wf-wine-900,#3B141B)}
.wm-btn{border:0;border-radius:999px;padding:14px 26px;font:inherit;font-weight:800;font-size:1rem;cursor:pointer;
  background:var(--wf-gold,#C9A24B);color:var(--wf-wine-900,#3B141B);min-height:50px}
.wm-btn:disabled{opacity:.55;cursor:wait}
.wm-btn--ghost{background:#fff;border:2px solid rgba(110,42,52,.3);color:var(--wf-wine,#6E2A34)}

/* --- Fenêtre des coordonnées */
.wm-dialog{border:0;border-radius:24px;padding:0;max-width:min(560px,94vw);width:100%;
  box-shadow:0 30px 80px -20px rgba(0,0,0,.55)}
.wm-dialog::backdrop{background:rgba(35,12,16,.6)}
.wm-dialog form{padding:26px 24px 22px;display:grid;gap:14px}
.wm-dialog h3{margin:0;font-size:1.3rem;color:var(--wf-wine-900,#3B141B)}
.wm-champ{display:grid;gap:5px;font-weight:700;font-size:.92rem}
.wm-champ input,.wm-champ textarea{font:inherit;font-weight:400;padding:12px 14px;border-radius:12px;
  border:2px solid #D6CFC6;background:#FFFEFB;min-height:48px}
.wm-champ input:focus,.wm-champ textarea:focus{outline:3px solid var(--wf-gold,#C9A24B);outline-offset:1px;border-color:var(--wf-wine,#6E2A34)}
.wm-champ--2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.wm-note{margin:0;font-size:.85rem;color:#6B6470}
.wm-erreur{margin:0;padding:10px 14px;border-radius:12px;background:#FBE9EA;color:#7A2430;font-weight:600;font-size:.93rem}
.wm-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.wm-recap{margin:0;padding:12px 14px;border-radius:14px;background:var(--wf-cream,#FBF5E8);font-size:.93rem;line-height:1.5}

/* --- Le minuteur d'ouverture */
.wm-decompte{max-width:640px;margin:10px auto 30px;padding:34px 22px 30px;border-radius:28px;text-align:center;color:#fff;
  background:linear-gradient(135deg,var(--wf-wine,#6E2A34),var(--wf-wine-900,#3B141B));box-shadow:0 22px 48px -22px rgba(59,20,27,.7)}
.wm-decompte__k{margin:0 0 6px;font-weight:800;font-size:1.05rem;letter-spacing:.04em;text-transform:uppercase;color:#F0DADD}
.wm-decompte__t{font-size:clamp(3.2rem,16vw,6rem);font-weight:900;line-height:1.1;font-variant-numeric:tabular-nums;letter-spacing:.02em;
  color:var(--wf-gold,#C9A24B);margin:6px 0 10px}
.wm-decompte__sous{margin:0 auto;max-width:34em;font-size:1.05rem;line-height:1.5;color:#fff}

/* --- Santé du chien (fitness canin) */
.wm-sante-bloc{display:grid;gap:10px;padding:14px;border-radius:16px;background:#FFF6E6;border:1.5px solid #F0D49A}
.wm-sante-bloc h4{margin:0;font-size:1.02rem;color:#7A3E00}
.wm-sante-bloc .wm-note{color:#6B5B3A}
.wm-sante{border:0;margin:0;padding:10px 12px;border-radius:12px;background:#fff;display:grid;gap:8px}
.wm-sante legend{font-weight:800;font-size:.95rem;padding:0 4px;color:var(--wf-wine-900,#3B141B)}
.wm-sante legend small{font-weight:600;color:#6B6470}
.wm-radio{display:flex;gap:10px;align-items:center;font-size:.95rem;min-height:36px;cursor:pointer}
.wm-radio input{width:20px;height:20px;accent-color:var(--wf-wine,#6E2A34);flex:none}
.wm-sante textarea{font:inherit;padding:10px 12px;border-radius:10px;border:2px solid #D6CFC6;min-height:64px}
.wm-sante textarea:focus{outline:3px solid var(--wf-gold,#C9A24B);outline-offset:1px}

@media (max-width:560px){
  .wm-champ--2{grid-template-columns:1fr}
  .wm-ligne{grid-template-columns:1fr}
  .wm-ligne__droite{justify-content:space-between}
  .wm-panier{bottom:8px;border-radius:18px}
}
@media (prefers-reduced-motion:no-preference){
  .wm-h{transition:background-color .15s ease,border-color .15s ease}
}

/* Exposants : une tuile par logo. Le fond de la tuile reprend celui des logos
   (découpés dans la publication Instagram), pour qu'aucun cadre ne se voie. */
.wf-exposants{list-style:none;margin:0;padding:0;display:grid;gap:14px;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.wf-exp>a,.wf-exp>span{display:flex;align-items:center;justify-content:center;height:150px;padding:14px;
  background:#FCF8EF;border:1px solid var(--wf-cream-2,#F3E9D4);border-radius:18px;
  transition:transform .2s,box-shadow .2s,border-color .2s}
.wf-exp img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.wf-exp>a:hover,.wf-exp>a:focus-visible{transform:translateY(-3px);border-color:var(--wf-gold,#C9A24B);
  box-shadow:0 8px 22px rgba(59,20,27,.12)}
.wf-exp>a:focus-visible{outline:3px solid var(--wf-gold,#C9A24B);outline-offset:2px}
@media (max-width:560px){
  .wf-exposants{grid-template-columns:repeat(2,1fr);gap:10px}
  .wf-exp>a,.wf-exp>span{height:128px;padding:10px}
}

/* Le lieu, dans le héros : cliquable vers la carte. */
a.wf-fact--lien{text-decoration:none;color:inherit;transition:transform .2s,border-color .2s}
a.wf-fact--lien span{text-decoration:underline;text-underline-offset:3px}
a.wf-fact--lien:hover,a.wf-fact--lien:focus-visible{transform:translateY(-2px);border-color:var(--wf-gold,#C9A24B)}
a.wf-fact--lien:focus-visible{outline:3px solid var(--wf-gold,#C9A24B);outline-offset:2px}
