/* Thème Onlybad : noir de marque, rouge en accent unique, titres condensés inclinés comme le logo */
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-italic-cEnLQY4.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-italic-EF690pt.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal-vi9KK0M.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-italic-dZa7quL.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal-4doZ60o.woff2") format("woff2"); }

:root {
  --noir: #1d1719;
  --rouge: #de1f16;
  --rouge-fonce: #b5170f;
  --blanc: #ffffff;
  --fond: #ffffff;
  --fond-doux: #f5f3f3;
  --texte: #1d1719;
  --texte-doux: #5c5456;
  --trait: #e2dddd;
  --erreur: #8a2d6b;
  --succes: #1f6b4a;
  --police-titre: "Barlow Condensed", "Arial Narrow", sans-serif;
  --police-texte: "Barlow", "Segoe UI", system-ui, sans-serif;
  --largeur: 1080px;
  --rayon: 6px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #141012;
    --fond-doux: #1f191b;
    --texte: #f3f0f0;
    --texte-doux: #b8afb1;
    --trait: #352d2f;
    --erreur: #e58bc6;
    --succes: #74d1a6;
    color-scheme: dark;
  }
}

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

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

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

a { color: inherit; text-decoration-color: var(--rouge); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--rouge); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--police-titre);
  font-style: italic;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; max-width: 68ch; }

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.entete { border-bottom: 1px solid var(--trait); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.entete__logo img { display: block; height: 52px; width: auto; }
.entete nav { display: flex; gap: 20px; font-weight: 600; }
.entete nav a { text-decoration: none; }
.entete nav a:hover { color: var(--rouge); }
.entete nav a[aria-current="page"] { color: var(--rouge); }

.entete__logo .logo-sombre { display: none; }
@media (prefers-color-scheme: dark) {
  .entete__logo .logo-clair { display: none; }
  .entete__logo .logo-sombre { display: block; }
}

main { display: grid; gap: 64px; padding-block: 48px 80px; }

.vitesse { position: relative; height: 10px; margin-block: 4px; }
.vitesse::before, .vitesse::after { content: ""; position: absolute; height: 4px; transform: skewX(-30deg); }
.vitesse::before { left: 18%; right: 0; top: 0; background: var(--texte); }
.vitesse::after { left: 0; right: 30%; top: 6px; background: var(--rouge); }

.surtitre {
  font-family: var(--police-titre);
  font-style: italic;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rouge);
  font-size: 1.05rem;
}

.accroche { display: grid; gap: 18px; }
.accroche p { font-size: 1.2rem; color: var(--texte-doux); }

.section { display: grid; gap: 24px; }

.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.carte {
  display: grid; gap: 12px; align-content: start;
  padding: 24px; border: 1px solid var(--trait); border-radius: var(--rayon);
  background: var(--fond); min-width: 0;
}
.carte:hover { border-color: var(--texte); }
.carte__meta { color: var(--texte-doux); }
.carte { position: relative; }
.carte__lien::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon); }
.carte__prix { font-family: var(--police-titre); font-style: italic; font-weight: 700; font-size: 1.5rem; color: var(--rouge); }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  justify-self: start;
  padding: 12px 22px; border: 0; border-radius: var(--rayon);
  background: var(--rouge); color: var(--blanc);
  font: 700 italic 1.15rem/1 var(--police-titre); text-transform: uppercase; letter-spacing: 0.03em;
  text-decoration: none; cursor: pointer;
}
.bouton:hover { background: var(--rouge-fonce); }
.bouton--secondaire { background: var(--noir); }
.bouton--secondaire:hover { background: #000; }
@media (prefers-color-scheme: dark) {
  .bouton--secondaire { background: var(--blanc); color: var(--noir); }
  .bouton--secondaire:hover { background: #e5e0e0; }
}

.fiche { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 820px) { .fiche { grid-template-columns: minmax(0, 1fr); } }
.fiche__texte { display: grid; gap: 20px; }
.fiche__texte p { white-space: pre-line; }
.encart { display: grid; gap: 16px; padding: 24px; background: var(--fond-doux); border-radius: var(--rayon); }

.faits { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 0; }
.faits div { display: grid; gap: 2px; }
.faits dt { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--texte-doux); }
.faits dd { margin: 0; font-weight: 600; }

.tarifs { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tarifs th, .tarifs td { padding: 10px 0; border-bottom: 1px solid var(--trait); text-align: left; }
.tarifs td:last-child { text-align: right; font-weight: 600; }
.tarifs th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--texte-doux); font-weight: 600; }

.note { font-size: 0.95rem; color: var(--texte-doux); }

.formulaire { display: grid; gap: 14px; }
.formulaire label { font-weight: 600; }
.formulaire input[type="email"], .formulaire input[type="password"] {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--texte);
  background: var(--fond); border: 1px solid var(--texte-doux); border-radius: var(--rayon);
}
.formulaire .consentement { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.95rem; }
.formulaire ul { margin: 0; padding: 0; list-style: none; color: var(--erreur); font-size: 0.95rem; }

.message { padding: 14px 18px; border-radius: var(--rayon); border: 1px solid currentColor; }
.message--succes { color: var(--succes); }
.message--erreur { color: var(--erreur); }

.texte-legal { display: grid; gap: 18px; max-width: 72ch; }
.texte-legal h2 { font-size: 1.5rem; margin-top: 12px; }

.pied { border-top: 1px solid var(--trait); color: var(--texte-doux); font-size: 0.95rem; }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 24px; }
.pied nav { display: flex; gap: 20px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.admin-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 16px; border-bottom: 1px solid var(--trait); font-weight: 600; }
.admin-nav a { text-decoration: none; }
.admin-nav a:hover { color: var(--rouge); }
.admin-nav a[aria-current="page"] { color: var(--rouge); text-decoration: underline; text-decoration-thickness: 2px; }
.admin-nav__sortie { margin-left: auto; color: var(--texte-doux); }
.titre-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.defilement { overflow-x: auto; }
.tableau { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tableau th, .tableau td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: middle; }
.tableau th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--texte-doux); font-weight: 600; }
.actions { display: flex; gap: 16px; align-items: center; }
.actions form { margin: 0; }
.lien-bouton { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--rouge); text-underline-offset: 3px; cursor: pointer; }
.statut { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 0.85rem; font-weight: 600; border: 1px solid var(--trait); }
.statut--publiee { background: var(--noir); color: var(--blanc); border-color: var(--noir); }
.statut--archivee { color: var(--texte-doux); }
.formulaire--admin { max-width: 760px; }
.formulaire--admin > div, .formulaire__ligne > div { display: grid; gap: 6px; }
.formulaire--admin input:not([type="checkbox"]), .formulaire--admin select, .formulaire--admin textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--texte);
  background: var(--fond); border: 1px solid var(--texte-doux); border-radius: var(--rayon);
}
.formulaire__ligne { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.paliers { display: grid; gap: 12px; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px; margin: 0; }
.paliers legend { font-weight: 600; padding: 0 6px; }
.formulaire--admin .help-text, .formulaire--admin [id$="_help"] { font-size: 0.9rem; color: var(--texte-doux); }

.statut--confirmee { background: var(--succes); color: var(--blanc); border-color: var(--succes); }
.statut--retard { color: var(--erreur); border-color: currentColor; margin-top: 4px; }
.statut--bloquee { border-style: dashed; }
.annulation { display: grid; gap: 4px; font-size: 0.9rem; }
.annulation input { width: 7em; padding: 4px 6px; font: inherit; }

.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.galerie figure { margin: 0; display: grid; gap: 6px; }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); display: block; }
.galerie figcaption { font-size: 0.9rem; color: var(--texte-doux); display: flex; justify-content: space-between; gap: 8px; }
.coachs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-bottom: 24px; }
.coach { display: flex; gap: 16px; align-items: flex-start; }
.coach h3 { margin: 0; }
.coach__titre { margin: 2px 0 8px; color: var(--rouge); font-weight: 600; }
.reseaux { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.reseaux a { display: inline-block; padding: 4px 12px; border: 1px solid currentColor; border-radius: 999px; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.reseaux a:hover { color: var(--rouge); }
.coach__photo { width: 96px; height: 96px; flex: none; object-fit: cover; border-radius: 50%; }

.barre-inscription { display: none; }

@media (max-width: 820px) {
  html { scroll-padding-top: 72px; }
  .entete { position: sticky; top: 0; z-index: 20; background: var(--fond); }
  .entete .conteneur { gap: 12px; padding-block: 10px; }
  .entete__logo img { height: 32px; }
  .entete nav { gap: 14px; font-size: 0.95rem; white-space: nowrap; }

  main { gap: 40px; padding-block: 24px 48px; }
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .accroche { gap: 12px; }
  .accroche p { font-size: 1.05rem; }
  .carte { padding: 20px; }

  .admin-nav {
    flex-wrap: nowrap; gap: 4px 18px; overflow-x: auto; white-space: nowrap;
    scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: -16px; padding-inline: 16px;
  }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav > * { scroll-snap-align: start; padding-block: 6px; }
  .admin-nav__sortie { margin-left: 0; }

  .barre-inscription {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: var(--fond); border-top: 1px solid var(--trait); box-shadow: 0 -6px 20px rgb(0 0 0 / 0.08);
    transition: transform 0.2s ease;
  }
  .barre-inscription p { font-size: 0.95rem; line-height: 1.3; }
  .barre-inscription .bouton { flex: none; }
  .barre-inscription--masquee { transform: translateY(110%); }
  body:has(.barre-inscription) .pied { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 370px) {
  .entete__logo img { height: 26px; }
  .entete nav { gap: 10px; font-size: 0.875rem; }
}

@media print {
  .entete, .pied, .admin-nav, .barre-inscription { display: none; }
  .feuille { break-inside: avoid; }
  body { font-size: 11pt; }
}
