:root{
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #101828;
  --muted: #667085;

  /* Nouvelle palette GPMF */
  --primary: #d93200;     /* rouge */
  --secondary: #d1e8f6;   /* bleu clair */

  --border: rgba(16,24,40,0.10);
  --shadow: 0 10px 25px rgba(16,24,40,0.08);
  --radius: 16px;
  --radius-sm: 12px;
}


*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 520px at 10% 0%, rgba(217,50,0,0.12), transparent 55%),
    radial-gradient(900px 450px at 90% 10%, rgba(209,232,246,0.85), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}


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

a{ color: var(--primary); text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(246,247,251,0.78);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 160px;
}
.brand a{
  color: var(--text);
  font-weight: 850;
  letter-spacing: .2px;
  text-decoration: none;
}
.brand img{
  height: 34px;
  width:auto;
  display:block;
}
/* Forcer la taille du logo dans le header, même si d'autres règles existent */
.site-header .brand img{
  height: 34px !important;
  width: auto !important;
  max-height: 34px !important;
  max-width: 160px !important;  /* limite la largeur si le logo est très horizontal */
  object-fit: contain;
  display: block;
}


.site-nav{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a{
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  border: 1px solid transparent;
  text-decoration: none;
}
.site-nav a:hover{
  background: rgba(217,50,0,0.10);
  border-color: rgba(217,50,0,0.20);
}


main{
  padding: 26px 0 50px;
}

h1{
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.12;
  margin: 14px 0 10px;
}
h2{
  font-size: clamp(20px, 2.2vw, 28px);
  margin: 26px 0 12px;
}
h3{
  font-size: 18px;
  margin: 0 0 6px;
}
p{ margin: 10px 0; }
.muted{ color: var(--muted); }

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.col-12{ grid-column: span 12; }
.col-8{ grid-column: span 8; }
.col-6{ grid-column: span 6; }
.col-4{ grid-column: span 4; }

@media (max-width: 980px){
  .col-8,.col-6,.col-4{ grid-column: span 12; }
}

.hero{
  padding: 22px;
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(900px 420px at 10% 10%, rgba(217,50,0,0.18), transparent 60%),
    radial-gradient(900px 420px at 90% 10%, rgba(209,232,246,0.90), transparent 60%),
    var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}


.hero .subtitle{
  font-size: 16px;
  color: var(--muted);
  max-width: 70ch;
}

.actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn{
  display:inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 650;
  border: 1px solid transparent;
  text-decoration: none !important;
}
.btn-primary{
  background: var(--primary);
  color: white !important;
  box-shadow: 0 10px 20px rgba(217,50,0,0.25);
}

.btn-primary:hover{ filter: brightness(0.98); }
.btn-ghost{
  background: rgba(16,24,40,0.02);
  border-color: var(--border);
  color: var(--text) !important;
}
.btn-ghost:hover{ background: rgba(37,99,235,0.08); }

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.75);
  color: var(--text);
  font-size: 13px;
}

.kpi{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.card-title{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}

.card-link{
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.card-link:hover{ text-decoration: underline; }

iframe{
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.hr{
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}

footer{
  padding: 26px 0 30px;
  color: var(--muted);
}

/* =========================
   Calendrier / Programme
   ========================= */

.cal-toolbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 14px;
  flex-wrap: wrap;
}

.cal-title{
  font-weight: 800;
  color: var(--text);
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
}

/* Grille du calendrier (entête + semaines) */
.cal-grid{
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.cal-row{
  display:grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

/* Cellules génériques */
.cal-cell{
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.75);
  min-height: 44px;
}

/* Entêtes (Lun..Dim) */
.cal-headcell{
  background: rgba(209,232,246,0.65);
  font-weight: 700;
  color: var(--text);
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 34px;
}

/* Jours cliquables = boutons */
button.cal-day{
  width: 100%;
  padding: 8px 8px;
  cursor: pointer;
  text-align: left;
  display:flex;
  flex-direction: column;
  justify-content: space-between;

  /* reset bouton */
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
}

button.cal-day:hover{
  background: rgba(209,232,246,0.55);
  border-color: rgba(217,50,0,0.25);
}

.cal-empty{
  background: transparent;
  border: 1px dashed rgba(16,24,40,0.12);
}

/* Numéro de jour */
.cal-daynum{
  font-weight: 700;
  font-size: 12px;
  color: var(--text);
}

/* Jours avec séance */
.cal-event{
  border-color: rgba(217,50,0,0.30);
  box-shadow: 0 8px 18px rgba(16,24,40,0.06);
}

.cal-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  align-self: flex-end;
  margin-top: 6px;
}

/* Panneau détails */
.cal-details{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

/* Meta (date/heure/lieu) */
.details-meta{
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(209,232,246,0.35);
  display: grid;
  gap: 4px;
}

/* Badges */
.badge-row{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 6px;
}

/* si tu as déjà .badge, on garde; on ajoute une variante soft */
.badge-soft{
  background: rgba(209,232,246,0.8);
  border-color: rgba(217,50,0,0.20);
}

/* Cartes par niveau */
.levels-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 980px){
  .levels-grid{ grid-template-columns: 1fr; }
}

.level-card{
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.85);
  padding: 14px;
}

.level-title{
  font-weight: 800;
  margin-bottom: 10px;
}

/* Blocs “Séance” / “Supplémentaires” avec séparations */
.block{
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 10px;
}

.block-title{
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.block-body{
  color: var(--text);
}

/* Conseil */
.advice{
  margin-top: 14px;
  border: 1px solid rgba(217,50,0,0.22);
  background: rgba(217,50,0,0.06);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.advice-title{
  font-weight: 800;
  margin-bottom: 6px;
}


.training-notes {
  margin-top: 18px;
}

.two-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.note-card {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.note-card h3 {
  margin-top: 0;
}

.quote {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-left: 4px solid #ddd;
  background: #fafafa;
  border-radius: 8px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
}

table.borg {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

table.borg th,
table.borg td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

table.borg thead th {
  background: #fafafa;
  font-weight: 800;
}

table.borg tr:last-child td {
  border-bottom: none;
}

.article-hero{
  margin: 16px 0 20px;
}
.article-hero img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.article-hero figcaption{
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}


.sponsors-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.sponsor-card{
  margin: 0;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: 0 6px 18px rgba(16,24,40,0.06);
}

.sponsor-card a{
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-card img{
  max-width: 180px;
  height: 90px;
  object-fit: contain;
}

.sponsor-card figcaption{
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--muted);
}

.sponsor-card a:hover img{
  transform: scale(1.03);
  transition: transform 0.2s ease;
}

/* Navigation */
.site-nav{
  display:flex;
  gap:16px;
  align-items:center;
}

/* Items */
.site-nav a{
  text-decoration:none;
  padding:8px 10px;
  border-radius:10px;
  color: var(--text);
}
.site-nav a:hover{
  background: rgba(16,24,40,0.06);
}

/* Dropdown */
.nav-item{
  position:relative;
}

.has-dropdown .dropdown{
  display:none;
  position:absolute;
  top: calc(100% + 8px);
  left:0;
  min-width:200px;
  background: var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow: var(--shadow);
  padding:6px;
  z-index:100;
}

.has-dropdown:hover .dropdown{
  display:block;
}

.dropdown a{
  display:block;
  padding:10px;
  border-radius:8px;
  white-space:nowrap;
}

.dropdown a:hover{
  background: rgba(16,24,40,0.06);
}

