/* Mégadanse : page Contacts, au style validé de l'accueil V1 et du calendrier (accueil-v1.css : .v1-carte,
   .v1-carte-rouge, .v1-carte-noire, .v1-titre, .v1-trait, .v1-btn, .mb-carte et calques MagicBento, SpotlightCard ;
   variables de .v1-zone, posée sur le panneau). Rouge, noir, blanc ; titres en Archivo italique.
   Haut : « Écrivez-nous » (carte rouge penchée : intro, email, copie, ville) et les réseaux (cartes noires).
   Puis les lieux : tête noire et une tuile par salle avec son numéro et le lien vers la carte.
   Survol, et au doigt la tuile au centre de l'écran : fond noir, texte blanc, bord rouge (jamais translucide).
   Animations : transform et opacity seulement (entrées, reflet, étincelles, projecteurs, numéros). */

/* ---------- Haut : carte rouge et réseaux côte à côte à partir de 900 px ---------- */
.ct-haut { display: grid; gap: clamp(20px, 3vw, 32px); margin-bottom: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) { .ct-haut { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; } }

/* ---------- Écrivez-nous (carte rouge) ---------- */
.ct-ecrire { padding: clamp(26px, 4vw, 56px); }
/* #ct-ecrire, #ct-lieux : l'emportent sur la couleur des intertitres posés sur le fond (profondeur.css). */
#ct-ecrire .v1-titre { color: var(--blanc); text-shadow: none; font-family: var(--f-titre); font-size: clamp(2.2rem, 1.2rem + 3.4vw, 4.2rem); }
.ct-ecrire .v1-chapo { font-weight: 600; font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem); }
.ct-ecrire .v1-btns { margin-top: 28px; }
.ct-ville { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / 0.3); font-weight: 600; color: rgb(255 255 255 / 0.9); }
.ct-ecrire :is(.v1-chapo, .ct-ville, .v1-btns):empty { display: none; }

/* ---------- Réseaux (cartes noires, SpotlightCard) ---------- */
.ct-reseaux { display: grid; gap: clamp(14px, 2vw, 20px); margin: 0; padding: 0; list-style: none; }
.ct-reseau {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(14px, 1.6vw, 20px);
  min-height: 112px; padding: clamp(18px, 2.4vw, 28px); text-decoration: none; transition: box-shadow 0.25s;
}
.ct-reseau-icone {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--rouge); color: var(--blanc);
  transition: transform 0.4s var(--ease-ressort);
}
.ct-reseau-icone svg { width: 30px; height: 30px; }
.ct-reseau-texte { display: grid; gap: 2px; min-width: 0; }
.ct-reseau-nom {
  font-family: var(--f-titre); font-style: italic; font-weight: 900; font-stretch: 108%; text-transform: uppercase;
  font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); line-height: 1.05;
}
.ct-reseau-pseudo { font-weight: 600; color: rgb(255 255 255 / 0.78); overflow-wrap: anywhere; }
.ct-reseau-fleche { font-size: 1.4rem; line-height: 1; color: #ff5a64; transition: transform 0.35s var(--ease); }
.ct-reseau:hover, .ct-reseau:focus-visible { box-shadow: inset 0 0 0 2px var(--rouge), var(--ombre-carte); }
.ct-reseau:hover .ct-reseau-icone, .ct-reseau:focus-visible .ct-reseau-icone { transform: rotate(-8deg) scale(1.08); }
.ct-reseau:hover .ct-reseau-fleche, .ct-reseau:focus-visible .ct-reseau-fleche { transform: translate(4px, -4px); }

/* ---------- Lieux : tête noire puis une tuile par salle (MagicBento) ---------- */
.ct-grille { display: grid; grid-auto-rows: minmax(170px, auto); gap: clamp(12px, 1.4vw, 18px); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) {
  .ct-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-tete { grid-column: span 2; }
}
@media (min-width: 900px) {
  .ct-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ct-tete { grid-column: auto; grid-row: span 2; }
}
.ct-cellule { display: flex; min-width: 0; }
.ct-entree { display: flex; flex: 1; min-width: 0; }
.ct-tete-carte {
  position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0;
  padding: clamp(22px, 2.6vw, 34px); border-radius: var(--r-carte); background: var(--noir); color: var(--blanc);
  box-shadow: 0 18px 44px rgb(0 0 0 / 0.38);
}
#ct-lieux .ct-tete-carte .v1-titre { color: var(--blanc); text-shadow: none; font-family: var(--f-titre); font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); }
#ct-lieux .ct-tete-carte .v1-titre em { color: #ff5a64; }
.ct-compte { margin: 14px 0 0; max-width: 34ch; font-weight: 600; color: rgb(255 255 255 / 0.86); }
.ct-compte:empty { display: none; }
.ct-compte b { font-family: var(--f-titre); font-style: italic; font-weight: 900; font-size: 1.5em; line-height: 1; color: #ff5a64; }

/* Tuile d'un lieu : le numéro en haut, le nom, l'adresse et le lien en bas (base .mb-carte de l'accueil). */
.ct-lieu.mb-carte { gap: 0; padding: clamp(18px, 2vw, 26px); }
.ct-num {
  display: block; margin-bottom: auto; padding: 0 0.12em 12px 0; overflow: hidden; align-self: flex-start;
  font-family: var(--f-titre); font-style: italic; font-weight: 900; font-stretch: 112%; line-height: 1;
  font-size: clamp(2.6rem, 2rem + 1.8vw, 3.4rem); letter-spacing: -0.03em; color: var(--rouge); font-variant-numeric: tabular-nums;
}
.ct-num-in { display: inline-block; }
#ct-lieux .ct-lieu-nom {
  margin: 0; color: inherit; text-shadow: none;
  font-family: var(--f-titre); font-style: italic; font-weight: 800; font-stretch: 108%; text-transform: uppercase;
  font-size: clamp(1.15rem, 0.95rem + 0.6vw, 1.45rem); line-height: 1.06; overflow-wrap: break-word;
}
.ct-lieu-adresse { margin: 6px 0 0; font-size: 0.92rem; line-height: 1.4; color: var(--encre-douce); }
.ct-lieu-voir {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgb(13 11 11 / 0.12);
  font-weight: 700; font-size: 0.86rem; color: var(--rouge);
}
.ct-lieu-voir::after { content: '\2197'; display: inline-block; margin-left: 0.35em; transition: transform 0.35s var(--ease); }

/* Survol (souris) et tuile active (MagicBento, au doigt) : la base a.mb-carte passe au noir, bord rouge. */
.ct-lieu:is(:hover, :focus-visible, [data-actif]) .ct-num { color: #ff5a64; }
.ct-lieu:is(:hover, :focus-visible, [data-actif]) .ct-lieu-adresse { color: rgb(255 255 255 / 0.78); }
.ct-lieu:is(:hover, :focus-visible, [data-actif]) .ct-lieu-voir { color: var(--blanc); border-top-color: rgb(255 255 255 / 0.2); }
.ct-lieu:is(:hover, :focus-visible, [data-actif]) .ct-lieu-voir::after { transform: translate(3px, -3px); }

/* ---------- Effets portés de React Bits utilisés ici (mêmes règles que tarifs-v1.css) ---------- */
.cs-gerbe { position: fixed; left: 0; top: 0; z-index: 400; width: 0; height: 0; pointer-events: none; }
.cs-gerbe i { position: absolute; left: 0; top: -1px; border-radius: 2px; transform-origin: 0 50%; }
.v1-zone .gh { isolation: isolate; overflow: hidden; }
.gh-reflet { position: absolute; inset: 0; z-index: 2; overflow: hidden; border-radius: inherit; pointer-events: none; mix-blend-mode: screen; }
.gh-bande { position: absolute; left: 50%; top: 50%; opacity: 0; will-change: transform, opacity; }
.v1-zone .gh-eclat { box-shadow: var(--ombre-carte), inset 0 0 0 2px rgb(255 255 255 / 0.5); }

@media (prefers-reduced-motion: reduce) {
  .ct-reseau-icone, .ct-reseau-fleche, .ct-lieu-voir::after { transition: none; }
}
