
/* ============== BASE ============== */
*{ box-sizing:border-box; }

:root{
  --txt:#111827;
  --muted:#6b7280;
  --card:#ffffff;
  --line:#e5e7eb;

  --blue:#2563eb;
  --green:#059669;
  --teal:#0ea5a4;
  --indigo:#4f46e5;
  --slate:#64748b;

  --shadow: 0 14px 36px rgba(0,0,0,.08);
  --shadowSoft: 0 10px 26px rgba(0,0,0,.06);
}

body{
  margin:0;
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color:var(--txt);

  /* fond institutionnel avec touches couleur */
  background:
    radial-gradient(1100px 520px at 10% 10%, rgba(37,99,235,.10), transparent 58%),
    radial-gradient(1100px 520px at 90% 22%, rgba(5,150,105,.10), transparent 58%),
    radial-gradient(900px 420px at 60% 95%, rgba(14,165,164,.08), transparent 60%),
    #f7f7f8;
}

a{ color:var(--blue); text-decoration:none; font-weight:700; }
a:hover{ text-decoration:underline; }

.container{
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ============== HEADER ============== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229,231,235,.8);
}

.header-inner{
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 22px;   /* ← respiration à gauche */
  display:flex;
  align-items:center;
}



.brand{
  display:flex;
  align-items:center;
  gap:34px;
}


.brand-logo{ height: 60px; }


.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-name{ font-size: 26px; font-weight: 900; letter-spacing:.2px; }
.brand-tagline{ margin-top: 5px; font-size: 14px; color: var(--muted); font-weight: 700; }

/* ============== HERO ============== */
.hero{
  text-align:center;
  padding: 34px 0 6px;
}

.hero h1{
  margin: 18px 0 10px;
  font-size: 52px;
  line-height: 1.05;
}

.hero p{
  margin: 0 auto 18px;
  max-width: 760px;
  line-height: 1.7;
  color:#374151;
  font-size: 16px;
}

/* ============== PILLS NAV ============== */
.pill-nav{
  display:flex;
  gap: 14px;
  justify-content:center;
  flex-wrap: wrap;
  margin: 14px 0 26px;
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(229,231,235,.95);
  box-shadow: var(--shadowSoft);
  color:#111827;
  font-weight: 900;
  min-width: 130px;
  transition: transform .16s ease, box-shadow .16s ease;
}

.pill:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  text-decoration:none;
}

/* Couleur d’accent par onglet */
.pill-blue{ border-left: 6px solid var(--blue); }
.pill-green{ border-left: 6px solid var(--green); }
.pill-teal{ border-left: 6px solid var(--teal); }
.pill-indigo{ border-left: 6px solid var(--indigo); }
.pill-slate{ border-left: 6px solid var(--slate); }

.pill-solid{
  background: linear-gradient(180deg, rgba(37,99,235,.95), rgba(30,64,175,.95));
  color:#fff;
  border: 1px solid rgba(30,64,175,.55);
  box-shadow: 0 16px 38px rgba(37,99,235,.22);
}

/* ============== CARDS ============== */
.card{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(229,231,235,.95);
  border-left: 6px solid var(--blue);
  border-radius: 16px;
  box-shadow: var(--shadowSoft);
  padding: 26px 26px;
  margin: 0 0 18px;
}

.card h2{
  margin: 0 0 12px;
  font-size: 24px;
}

.card p{
  margin: 0 0 14px;
  line-height: 1.75;
  color:#374151;
}

.card ul{
  margin: 10px 0 0 18px;
  color:#111827;
  line-height: 1.7;
}

.muted{ color: var(--muted) !important; font-weight: 600; }
.small-note{ color:#374151; font-size: 14px; }

.link-row{ margin-top: 8px; }

/* Couleurs */
.card-blue{ border-left-color: var(--blue); }
.card-green{ border-left-color: var(--green); }
.card-teal{ border-left-color: var(--teal); }
.card-indigo{ border-left-color: var(--indigo); }
.card-slate{ border-left-color: var(--slate); }

/* Contact & Legal : plus sobres */
.card-contact{
  border-left-color: rgba(37,99,235,.55);
  background: rgba(255,255,255,.75);
}
.card-legal{
  border-left-color: rgba(100,116,139,.55);
  background: rgba(255,255,255,.72);
}

/* ============== INFO BOX (HWM) ============== */
.info-box{
  margin: 14px 0 16px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(79,70,229,.08);
  border: 1px solid rgba(79,70,229,.18);
}

.info-title{
  font-weight: 900;
  margin-bottom: 6px;
}

.info-text{
  margin:0;
  color:#1f2937;
  line-height: 1.65;
}

/* ============== FAQ PREMIUM ============== */
.faq{
  margin-top: 8px;
  display: grid;
  gap: 10px;
}

.faq-item{
  border-radius: 14px;
  border: 1px solid rgba(229,231,235,.95);
  background: rgba(255,255,255,.65);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,.05);
}

.faq-item summary{
  list-style: none;
  cursor: pointer;
  padding: 14px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  font-weight: 900;
}

.faq-item summary::-webkit-details-marker{ display:none; }

.chev{
  width: 10px; height: 10px;
  border-right: 2px solid rgba(17,24,39,.75);
  border-bottom: 2px solid rgba(17,24,39,.75);
  transform: rotate(-45deg);
  transition: transform .18s ease;
}

.faq-item[open] .chev{
  transform: rotate(45deg);
}

.faq-content{
  padding: 0 14px 14px;
  color:#374151;
  line-height: 1.7;
  font-weight: 650;
}

/* ============== FOOTER ============== */
.site-footer{
  margin-top: 30px;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(229,231,235,.85);
  background: rgba(255,255,255,.60);
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 18px;
}

.footer-right{ text-align:right; }

/* ============== RESPONSIVE ============== */
@media (max-width: 820px){
  .brand-logo{ height: 60px; }
  .hero h1{ font-size: 40px; }
  .pill{ min-width: 115px; }
  .footer-inner{ flex-direction:column; }
  .footer-right{ text-align:left; }
}

/* Buttons (TS) */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(255,255,255,.06);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-cta{
  background: linear-gradient(180deg, rgba(5,150,105,.95), rgba(4,120,87,.95));
  color:#fff;
  border-color: rgba(5,150,105,.35);
  box-shadow: 0 14px 32px rgba(5,150,105,.22);
}
.btn-cta:hover{ box-shadow: 0 18px 38px rgba(5,150,105,.32); }
.header-cta{ display:flex; align-items:center; gap:10px; }

/* Partenaire officiel */
.card-partner{ margin-top: 10px; }
.partner-wrap{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items:center;
}
.partner-photo img{
  width:100%;
  height:auto;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(2,6,23,.25);
}
.partner-text{ padding: 10px; }
.partner-name{ font-size: 1.35rem; margin: 8px 0; }
@media (max-width: 820px){
  .partner-wrap{ grid-template-columns: 1fr; }
  .partner-text{ text-align:center; }
}


/* Numéro de course (plaque style moto) */
.race-plate{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 54px;
  padding: 7px 14px;
  margin-left: 10px;
  background: #ffffff;
  border: 3px solid #0077CC;
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(2,6,23,.15);
  clip-path: polygon(10% 0, 90% 0, 100% 22%, 100% 78%, 90% 100%, 10% 100%, 0 78%, 0 22%);
}
.race-num{
  color:#111111;
  font-weight: 950;
  letter-spacing: .5px;
  line-height: 1;
  transform: translateY(1px);
}


/* Partenaire officiel (bloc bas) */
.card-partner{
  margin-top: 28px;
}
.partner-wrap{
  display:flex;
  gap: 20px;
  align-items:center;
}
.partner-photo img{
  width: 360px;
  max-width: 100%;
  height:auto;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(2,6,23,.25);
}
.partner-text{ padding: 6px; }
.partner-name{ font-size: 1.35rem; margin: 6px 0; }

@media (max-width: 820px){
  .partner-wrap{ flex-direction: column; text-align:center; }
}
