/* Paris Trampo 12 — feuille de style unique (site public + intranet) */

:root {
  --orange: #ee7a21;
  --orange-fonce: #c85f0e;
  --orange-pale: #fff1e4;
  --anthracite: #3d3e40;
  --gris: #5b5c5e;
  --gris-clair: #8a8b8e;
  --fond: #fbf8f4;
  --surface: #ffffff;
  --bordure: #eadfd3;
  --vert: #2e9e5b;
  --rouge: #d6453d;
  --ambre: #f0a531;
  --neutre: #d9d6d2;
  --rayon: 14px;
  --ombre: 0 1px 2px rgb(61 62 64 / 6%), 0 8px 24px rgb(61 62 64 / 8%);
  --police: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--anthracite);
  background: var(--fond);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--orange-fonce); text-underline-offset: 3px; }
a:hover { color: var(--orange); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.conteneur { width: min(1120px, 100% - 32px); margin-inline: auto; }
.conteneur--etroit { width: min(760px, 100% - 32px); }

.visuellement-cache {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.icone { flex: none; }

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.3em;
  border: 2px solid var(--orange);
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.bouton:hover { background: var(--orange-fonce); border-color: var(--orange-fonce); color: #fff; transform: translateY(-1px); }
.bouton--contour { background: transparent; color: var(--orange-fonce); }
.bouton--contour:hover { background: var(--orange-pale); color: var(--orange-fonce); }
.bouton--petit { padding: .35em .9em; font-size: .9rem; }

.bouton-icone {
  border: 0; background: none; color: var(--gris-clair); cursor: pointer;
  font-size: 1rem; padding: .3em .5em; border-radius: 8px;
}
.bouton-icone:hover { color: var(--rouge); background: #fdecea; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- En-tête ---------- */

.entete {
  position: sticky; top: 0; z-index: 10;
  background: rgb(251 248 244 / 92%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bordure);
}
.entete__barre { display: flex; align-items: center; gap: 24px; min-height: 68px; }

.marque {
  display: flex; align-items: center; gap: 10px;
  color: var(--anthracite); text-decoration: none;
  font-weight: 600; font-size: 1.15rem; letter-spacing: .02em; text-transform: uppercase;
}
.marque strong { color: var(--orange); font-weight: 800; }
.marque:hover { color: var(--anthracite); }

.menu { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.menu__groupe { position: relative; }
.menu__titre {
  font-weight: 600; cursor: default; display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 0;
}
.menu__titre::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); margin-left: 4px; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu__groupe ul {
  position: absolute; top: 100%; left: -16px; min-width: 200px;
  padding: 8px; background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.menu__groupe:hover ul, .menu__groupe:focus-within ul { opacity: 1; visibility: visible; transform: none; }
.menu__groupe a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--anthracite); text-decoration: none;
}
.menu__groupe a:hover, .menu__groupe a[aria-current] { background: var(--orange-pale); color: var(--orange-fonce); }
.menu__insta {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--anthracite); text-decoration: none; font-weight: 600;
}

.menu-bouton { display: none; }

@media (max-width: 820px) {
  .menu-bouton {
    display: grid; place-items: center; margin-left: auto;
    width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  }
  .menu-bouton__barres, .menu-bouton__barres::before, .menu-bouton__barres::after {
    display: block; width: 22px; height: 2px; background: var(--anthracite); border-radius: 2px; position: relative; transition: .2s;
  }
  .menu-bouton__barres::before, .menu-bouton__barres::after { content: ""; position: absolute; left: 0; }
  .menu-bouton__barres::before { top: -7px; }
  .menu-bouton__barres::after { top: 7px; }
  .menu-bouton[aria-expanded="true"] .menu-bouton__barres { background: transparent; }
  .menu-bouton[aria-expanded="true"] .menu-bouton__barres::before { top: 0; transform: rotate(45deg); }
  .menu-bouton[aria-expanded="true"] .menu-bouton__barres::after { top: 0; transform: rotate(-45deg); }

  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 8px 16px 20px; background: var(--fond); border-bottom: 1px solid var(--bordure);
  }
  .menu.ouvert { display: flex; }
  .menu__titre { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gris-clair); }
  .menu__titre::after { display: none; }
  .menu__groupe ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0; background: none; min-width: 0; }
  .menu__groupe a { padding: 10px 12px; }
  .menu__insta { padding: 10px 12px; }
}

/* ---------- Accueil ---------- */

.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero__grille { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.surtitre { text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: .85rem; color: var(--orange-fonce); margin-bottom: .75em; }
.accent { color: var(--orange); }
.hero__intro { font-size: 1.2rem; color: var(--gris); max-width: 34em; }
.hero__puces { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__puces li {
  background: var(--surface); border: 1px solid var(--bordure); border-radius: 999px;
  padding: 6px 14px; font-size: .95rem;
}
.hero__puces strong { color: var(--orange-fonce); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visuel { position: relative; }
.hero__logo {
  aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffb26b, var(--orange) 60%, var(--orange-fonce));
  display: grid; place-items: center;
  box-shadow: 0 30px 60px rgb(238 122 33 / 30%);
  max-width: 420px; margin-inline: auto;
  animation: rebond 3.2s ease-in-out infinite;
}
.hero__logo img { width: 78%; filter: brightness(0) invert(1); }
.hero__mosaique { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; transform: rotate(2deg); }
.hero__mosaique img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--rayon); box-shadow: var(--ombre); }
.hero__mosaique img:first-child { grid-row: span 2; aspect-ratio: auto; height: 100%; }

@keyframes rebond {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__logo { animation: none; }
  * { transition: none !important; }
}

@media (max-width: 820px) {
  .hero__grille { grid-template-columns: 1fr; gap: 32px; }
  .hero__visuel { order: -1; }
  .hero__logo { max-width: 200px; }
}

.section { padding: clamp(40px, 7vw, 80px) 0; }
.section--claire { background: var(--surface); border-block: 1px solid var(--bordure); }
.titre-section { margin-bottom: 24px; }
.titre-ligne { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lien-fleche { font-weight: 600; text-decoration: none; }
.lien-fleche::after { content: " →"; }

.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.cartes--deux { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 24px; }
.carte {
  background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon);
  padding: 24px; box-shadow: var(--ombre);
}
.carte h2 { font-size: 1.15rem; }
.carte p:last-child { margin-bottom: 0; }
.carte__pastille {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px;
  background: var(--orange-pale); color: var(--orange-fonce); font-weight: 700; font-size: .85rem;
}

.insta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.insta__item { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--neutre); }
.insta__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.insta__item:hover img { transform: scale(1.05); }
.insta__video { position: absolute; top: 8px; right: 10px; color: #fff; text-shadow: 0 1px 4px rgb(0 0 0 / 50%); }
@media (max-width: 640px) { .insta { grid-template-columns: repeat(2, 1fr); } }

.insta-appel {
  display: flex; align-items: center; gap: 20px; padding: 28px;
  border-radius: var(--rayon); text-decoration: none; color: #fff;
  background: linear-gradient(120deg, #f58529, #dd2a7b 55%, #8134af);
  font-size: 1.1rem;
}
.insta-appel:hover { color: #fff; filter: brightness(1.05); }
.insta-appel .icone { width: 44px; height: 44px; }

.actus { display: grid; gap: 16px; }
.actu {
  background: var(--surface); border: 1px solid var(--bordure); border-left: 4px solid var(--orange);
  border-radius: var(--rayon); padding: 20px 24px;
}
.actu time { font-size: .85rem; font-weight: 600; color: var(--orange-fonce); }
.actu h3 { margin: 4px 0 8px; }
.actu__texte p:last-child { margin-bottom: 0; }
.actu--archive { border-left-color: var(--neutre); }
.archives { margin-top: 24px; }
.archives summary { cursor: pointer; font-weight: 600; color: var(--orange-fonce); margin-bottom: 16px; }

/* ---------- Pages internes ---------- */

.bandeau {
  background: var(--anthracite); color: #fff;
  padding: clamp(32px, 6vw, 56px) 0;
  background-image: radial-gradient(circle at 90% 20%, rgb(238 122 33 / 45%), transparent 45%);
}
.bandeau h1 { margin: 0; font-size: clamp(1.9rem, 5vw, 2.75rem); }

.contenu { padding: clamp(32px, 6vw, 56px) 0 clamp(48px, 8vw, 80px); }
.contenu h2 { margin-top: 1.6em; }
.contenu ul { padding-left: 1.2em; }
.contenu li { margin-bottom: .35em; }
.chapo { font-size: 1.2rem; color: var(--gris); }
.note { font-size: .95rem; color: var(--gris-clair); }

.horaires { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 24px 0; }
.horaire {
  background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon);
  padding: 20px; text-align: center; box-shadow: var(--ombre);
}
.horaire__jour { display: block; font-weight: 700; font-size: 1.2rem; }
.horaire__heure { display: block; color: var(--orange-fonce); font-weight: 600; font-size: 1.1rem; }

.liste-fermetures { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.liste-fermetures li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; background: var(--surface); border-radius: 10px; border: 1px solid var(--bordure); }
.liste-fermetures em { color: var(--gris-clair); font-style: normal; }

.table-defilante { overflow-x: auto; margin: 24px 0 8px; }
.tableau-tarifs { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.tableau-tarifs th, .tableau-tarifs td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--bordure); }
.tableau-tarifs thead th { background: var(--anthracite); color: #fff; font-weight: 600; }
.tableau-tarifs tbody th { text-align: left; font-weight: 600; }
.tableau-tarifs td { font-weight: 700; color: var(--orange-fonce); font-size: 1.1rem; white-space: nowrap; }
.tableau-tarifs tbody tr:last-child > * { border-bottom: 0; }

.adresse { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 24px; box-shadow: var(--ombre); }
.adresse__nom { font-weight: 700; font-size: 1.3rem; margin-bottom: .2em; }
.adresse__liens { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 0; }

.transports { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.transports li { display: flex; align-items: center; gap: 12px; }
.ligne {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font-weight: 700; font-size: .95rem; color: #fff;
}
.ligne--m1 { background: #ffcd00; color: #3d3e40; }
.ligne--m6 { background: #6eca97; color: #3d3e40; }
.ligne--m8 { background: #d282be; }
.ligne--m14 { background: #62259d; }
.ligne--rer { border-radius: 8px; background: #3d3e40; }

.etapes { display: grid; gap: 20px; margin-top: 24px; }
.etape { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 24px; }
.etape h2 { margin-top: 0 !important; display: flex; align-items: center; gap: 12px; font-size: 1.25rem; }
.etape h2 span {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: 1rem;
}
.etape ul { margin: 0; }

.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 32px; text-align: center; }
.chiffres div { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 20px 12px; }
.chiffres strong { display: block; font-size: 2.5rem; line-height: 1; color: var(--orange); }
.chiffres span { font-size: .9rem; color: var(--gris); }

.encadre { background: var(--orange-pale); border-radius: var(--rayon); padding: 24px; margin: 32px 0; }
.encadre h2 { margin-top: 0 !important; }
.encadre ul { margin: 0; }

.clubs { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.clubs li { background: var(--surface); border: 1px solid var(--bordure); border-radius: 10px; padding: 12px 16px; }
.clubs a { font-weight: 600; }
.clubs span { display: block; font-size: .92rem; color: var(--gris-clair); }

/* ---------- Pied de page ---------- */

.pied { background: var(--anthracite); color: #e7e3de; padding: 48px 0 24px; }
.pied a { color: #fff; }
.pied__grille { display: grid; grid-template-columns: 2fr 1fr auto; gap: 32px; align-items: start; }
.pied__nom { font-weight: 800; font-size: 1.2rem; color: #fff; text-transform: uppercase; letter-spacing: .03em; }
.pied__titre { font-weight: 700; color: #fff; }
.pied__insta { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.pied__affiliation img { background: #fff; border-radius: 10px; padding: 6px; }
.pied__bas { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / 12%); font-size: .9rem; }
.pied__bas a { color: #bdb8b2; }
@media (max-width: 720px) { .pied__grille { grid-template-columns: 1fr; } }

/* ---------- Intranet ---------- */

.intranet .entete__barre { flex-wrap: wrap; }
.onglets { margin-left: auto; display: flex; gap: 4px; }
.onglets a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--anthracite); font-weight: 600;
}
.onglets a:hover { background: var(--orange-pale); }
.onglets a[aria-current] { background: var(--anthracite); color: #fff; }
@media (max-width: 560px) {
  .onglets { margin-left: 0; width: 100%; padding-bottom: 10px; }
}

.intranet__contenu { padding: 32px 0 64px; }
.intranet h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.intro { color: var(--gris); }

.pagination { display: flex; justify-content: space-between; gap: 8px; margin: 16px 0; flex-wrap: wrap; }

.planning-conteneur {
  overflow-x: auto; background: var(--surface); border: 1px solid var(--bordure);
  border-radius: var(--rayon); box-shadow: var(--ombre);
}
.planning { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .95rem; }
.planning th, .planning td { padding: 6px; text-align: center; border-bottom: 1px solid var(--bordure); }
.planning thead th { font-weight: 600; vertical-align: bottom; background: var(--surface); }
.planning tbody th, .planning tfoot th, .planning__coin {
  position: sticky; left: 0; z-index: 1; background: var(--surface);
  text-align: left; padding-left: 14px; padding-right: 12px; white-space: nowrap;
  border-right: 1px solid var(--bordure);
}
.planning tbody th { font-weight: 600; }
.planning tbody tr:hover th, .planning tbody tr:hover td { background: #fdf8f3; }
.planning__jour { display: block; font-size: .8rem; color: var(--gris-clair); text-transform: uppercase; letter-spacing: .04em; }
.planning__date { display: block; }
.planning__aujourdhui { color: var(--orange-fonce); }
.planning tfoot th, .planning tfoot td { border-bottom: 0; font-weight: 700; }
.planning__total { color: var(--vert); }
.planning__total[data-faible] { color: var(--rouge); }

.dispo {
  display: inline-block; width: 44px; height: 32px; border-radius: 8px; border: 0;
  background: var(--neutre); cursor: pointer; position: relative; vertical-align: middle;
  transition: transform .1s, background .15s;
}
button.dispo:hover { transform: scale(1.08); }
button.dispo:active { transform: scale(.95); }
.dispo::after {
  content: "?"; position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 700; color: #fff; font-size: .95rem;
}
.dispo[data-statut="present"] { background: var(--vert); }
.dispo[data-statut="present"]::after { content: "✓"; }
.dispo[data-statut="absent"] { background: var(--rouge); }
.dispo[data-statut="absent"]::after { content: "✕"; }
.dispo[data-statut="retard"] { background: var(--ambre); }
.dispo[data-statut="retard"]::after { content: "⏱"; font-size: .85rem; }
.dispo[data-statut=""] { background: var(--neutre); }
.dispo[data-statut=""]::after { color: var(--gris); }
.dispo.enregistrement { opacity: .6; }

.legende { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 8px; font-size: .95rem; }
.legende li { display: flex; align-items: center; gap: 12px; }
.legende .dispo { cursor: default; flex: none; width: 36px; height: 26px; }

.erreur-reseau, .flash { padding: 12px 16px; border-radius: 10px; }
.erreur-reseau, .flash--erreur { background: #fdecea; color: #a1271f; }
.flash--ok { background: #e7f6ed; color: #1e6b3d; }

.vide { background: var(--surface); border: 1px dashed var(--bordure); border-radius: var(--rayon); padding: 24px; }

.grille-admin { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; align-items: start; }
.panneau { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 24px; margin-bottom: 24px; }
.panneau h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
.panneau h2:not(:first-child) { margin-top: 1.5em; }
.panneau--alerte { border-color: #f3c8a4; background: #fffaf5; }
.compteur { background: var(--orange-pale); color: var(--orange-fonce); border-radius: 999px; padding: 2px 10px; font-size: .85rem; }

.formulaire { display: grid; gap: 14px; }
.formulaire label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.formulaire fieldset { border: 1px solid var(--bordure); border-radius: 10px; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.formulaire legend { font-weight: 600; font-size: .95rem; padding: 0 4px; }
.formulaire .case { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.champs-ligne { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
input[type="text"], input[type="date"], textarea {
  font: inherit; font-size: 1rem; padding: 8px 12px; border: 1px solid #d8cdc2; border-radius: 10px; background: #fff; color: inherit;
}
textarea { width: 100%; font-size: .95rem; }

.liste-seances, .liste-coachs { list-style: none; padding: 0; margin: 0; }
.liste-seances { max-height: 560px; overflow-y: auto; }
.liste-seances li { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--bordure); }
.liste-seances li span { flex: 1; }
.liste-seances small, .liste-coachs small { color: var(--gris-clair); }
.liste-coachs li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 0; border-bottom: 1px solid var(--bordure); }
.liste-coachs li form:first-child { flex: 1; }
.liste-coachs li.masque input { color: var(--gris-clair); }
