/* ============================================================
   KEATING ACADEMY — Styles custom (Bootstrap 5 requis)
   Palette : noir nuit · or chaud · bordeaux · parchemin
   ============================================================ */

:root {
  --bg-deep:        #07060f;
  --gold-bright:    #e8c060;
  --gold-main:      #c9a227;
  --gold-dark:      #8b6f18;
  --gold-muted:     #5a4610;
  --crimson:        #7a1f1f;
  --parchment:      #f5e6c8;
  --parchment-dim:  #c4aa7a;
  --font-serif:     'Georgia', 'Times New Roman', serif;
}

/* ---------- Base ---------- */
html, body {
  background-color: var(--bg-deep);
  color: var(--parchment);
  font-family: var(--font-serif);
  overflow-x: hidden;
}

/* ---------- Starfield (3 couches CSS) ---------- */
.stars, .stars2, .stars3 {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.stars  { background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800'%3E%3Ccircle cx='42'  cy='130' r='0.9' fill='%23c9a227' opacity='.7'/%3E%3Ccircle cx='190' cy='60'  r='0.6' fill='%23e8c060' opacity='.5'/%3E%3Ccircle cx='310' cy='220' r='1.0' fill='%23c9a227' opacity='.6'/%3E%3Ccircle cx='510' cy='90'  r='0.7' fill='%23e8c060' opacity='.4'/%3E%3Ccircle cx='650' cy='310' r='0.8' fill='%23c9a227' opacity='.7'/%3E%3Ccircle cx='740' cy='140' r='0.5' fill='%23e8c060' opacity='.5'/%3E%3Ccircle cx='80'  cy='450' r='0.6' fill='%23c9a227' opacity='.4'/%3E%3Ccircle cx='260' cy='540' r='0.9' fill='%23e8c060' opacity='.6'/%3E%3Ccircle cx='430' cy='480' r='0.7' fill='%23c9a227' opacity='.5'/%3E%3Ccircle cx='600' cy='560' r='0.8' fill='%23e8c060' opacity='.4'/%3E%3Ccircle cx='720' cy='620' r='1.0' fill='%23c9a227' opacity='.7'/%3E%3Ccircle cx='150' cy='700' r='0.6' fill='%23e8c060' opacity='.5'/%3E%3Ccircle cx='390' cy='750' r='0.9' fill='%23c9a227' opacity='.6'/%3E%3Ccircle cx='560' cy='730' r='0.5' fill='%23e8c060' opacity='.4'/%3E%3C/svg%3E") repeat;
  animation: twinkle 8s ease-in-out infinite alternate; }

.stars2 { background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Ccircle cx='90'  cy='80'  r='0.7' fill='%23f5e6c8' opacity='.5'/%3E%3Ccircle cx='200' cy='200' r='0.5' fill='%23f5e6c8' opacity='.4'/%3E%3Ccircle cx='350' cy='120' r='0.8' fill='%23f5e6c8' opacity='.6'/%3E%3Ccircle cx='480' cy='300' r='0.6' fill='%23f5e6c8' opacity='.4'/%3E%3Ccircle cx='100' cy='400' r='0.9' fill='%23f5e6c8' opacity='.5'/%3E%3Ccircle cx='300' cy='500' r='0.7' fill='%23f5e6c8' opacity='.4'/%3E%3Ccircle cx='510' cy='520' r='0.5' fill='%23f5e6c8' opacity='.6'/%3E%3C/svg%3E") repeat;
  animation: twinkle 12s ease-in-out infinite alternate-reverse; }

.stars3 { background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Ccircle cx='60'  cy='60'  r='1.1' fill='%23c9a227' opacity='.3'/%3E%3Ccircle cx='200' cy='150' r='0.8' fill='%23e8c060' opacity='.3'/%3E%3Ccircle cx='340' cy='80'  r='1.0' fill='%23c9a227' opacity='.3'/%3E%3Ccircle cx='120' cy='300' r='0.9' fill='%23e8c060' opacity='.3'/%3E%3Ccircle cx='280' cy='350' r='1.1' fill='%23c9a227' opacity='.3'/%3E%3C/svg%3E") repeat;
  animation: twinkle 16s ease-in-out infinite alternate; }

@keyframes twinkle {
  0%   { opacity: 0.6; }
  50%  { opacity: 1;   }
  100% { opacity: 0.7; }
}

/* ---------- Layout ---------- */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-title {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: normal;
  letter-spacing: 0.15em;
  color: var(--gold-bright);
  text-shadow:
    0 0 18px rgba(232, 192, 96, 0.55),
    0 0 40px rgba(201, 162, 39, 0.3);
}

.site-byline {
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--parchment-dim);
}

.site-subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-style: italic;
  color: var(--gold-main);
}

/* ---------- Emblem ---------- */
.emblem-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.emblem-wrapper::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(201, 162, 39, 0.18) 0%,
    transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1);     opacity: 0.8; }
  50%       { transform: scale(1.04); opacity: 1;   }
}

.emblem {
  max-width: min(540px, 90vw);
  border-radius: 6px;
  border: 1px solid var(--gold-muted);
  box-shadow:
    0 0 30px rgba(201, 162, 39, 0.25),
    0 0 80px rgba(201, 162, 39, 0.1);
}

/* ---------- Message ---------- */
.wip-title {
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-main);
  text-shadow: 0 0 14px rgba(201, 162, 39, 0.4);
}

.wip-text {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  line-height: 1.9;
  color: var(--parchment);
  max-width: 520px;
}

.wip-tagline {
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  letter-spacing: 0.28em;
  color: var(--parchment-dim);
}

/* ---------- Divider ---------- */
.divider {
  max-width: 360px;
  width: 100%;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

.divider-ornament {
  color: var(--gold-main);
  font-size: 1.1rem;
  line-height: 1;
  text-shadow: 0 0 8px rgba(201, 162, 39, 0.6);
}

/* ---------- Footer ---------- */
.site-footer {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--gold-muted);
  opacity: 0.8;
}

/* ---------- Animations d'entrée ---------- */
.anim-down { animation: fadeDown 1s ease both; }
.anim-up   { animation: fadeUp  1s ease 0.5s both; }
.anim-fade { animation: fadeIn  1.2s ease 0.4s both; }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Overrides Bootstrap ---------- */
/* Bootstrap reset le background — on le réimpose */
body { background-color: var(--bg-deep) !important; }

/* ---------- Scroll doux ---------- */
html { scroll-behavior: smooth; }

/* ============================================================
   EXTENSIONS — Site vitrine
   ============================================================ */

/* ---------- Navbar ---------- */
#main-nav {
  background: rgba(7, 6, 15, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-muted);
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: clamp(0.82rem, 2vw, 1rem);
  letter-spacing: 0.14em;
  color: var(--gold-bright) !important;
  text-decoration: none;
}

#navMenu .nav-link {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  padding: 0.5rem 0.8rem;
  transition: color 0.2s;
}

#navMenu .nav-link:hover,
#navMenu .nav-link:focus {
  color: var(--gold-bright);
}

.nav-cta {
  border: 1px solid var(--gold-muted);
  color: var(--gold-main) !important;
  border-radius: 2px;
}

.nav-cta:hover {
  background: var(--gold-muted);
  color: var(--bg-deep) !important;
}

.navbar-toggler {
  border-color: var(--gold-muted);
  padding: 0.35rem 0.5rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(201,162,39,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 767px) {
  #navMenu {
    padding: 0.75rem 0;
    border-top: 1px solid var(--gold-muted);
    margin-top: 0.5rem;
  }
}

/* ---------- Hero ---------- */
.hero-section {
  min-height: 100dvh;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: min(680px, 94vw);
}

.hero-tagline {
  font-size: clamp(0.72rem, 1.8vw, 0.85rem);
  letter-spacing: 0.3em;
  color: var(--parchment-dim);
}

/* ---------- Bouton or ---------- */
.btn-gold {
  display: inline-block;
  padding: 0.8rem 2.4rem;
  border: 1px solid var(--gold-main);
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-size: clamp(0.82rem, 2vw, 0.92rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.btn-gold:hover,
.btn-gold:focus {
  background: var(--gold-main);
  color: var(--bg-deep);
  box-shadow: 0 0 22px rgba(201, 162, 39, 0.4);
  text-decoration: none;
}

/* ---------- Sections ---------- */
.section-block {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 9vw, 7rem) 1.5rem;
}

.section-alt {
  background: rgba(255, 255, 255, 0.012);
  border-top: 1px solid rgba(201, 162, 39, 0.07);
  border-bottom: 1px solid rgba(201, 162, 39, 0.07);
}

.section-eyebrow {
  font-size: clamp(0.68rem, 1.8vw, 0.78rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-main);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: normal;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  text-shadow: 0 0 22px rgba(232, 192, 96, 0.28);
  margin-bottom: 1rem;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 260px;
  margin-bottom: 0.5rem;
}

.section-text {
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.95;
  color: var(--parchment);
  max-width: 620px;
}

/* ---------- Atouts (À propos) ---------- */
.atouts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.atout-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  border: 1px solid var(--gold-muted);
  background: rgba(201, 162, 39, 0.03);
  transition: border-color 0.25s;
}

.atout-item:hover {
  border-color: var(--gold-main);
}

.atout-ornament {
  color: var(--gold-main);
  font-size: 1.3rem;
  text-shadow: 0 0 8px rgba(201, 162, 39, 0.5);
  line-height: 1;
}

.atout-label {
  font-size: clamp(0.78rem, 1.8vw, 0.88rem);
  color: var(--parchment-dim);
  letter-spacing: 0.06em;
  margin: 0;
  line-height: 1.5;
}

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

@media (max-width: 480px) {
  .atouts-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
  }
}

/* ---------- Cartes cours ---------- */
.cours-card {
  padding: 2rem 1.5rem;
  border: 1px solid var(--gold-muted);
  background: rgba(7, 6, 15, 0.75);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.cours-card:hover {
  border-color: var(--gold-main);
  box-shadow: 0 0 26px rgba(201, 162, 39, 0.13);
}

.cours-card--featured {
  border-color: var(--gold-main);
  background: rgba(201, 162, 39, 0.05);
  box-shadow: 0 0 32px rgba(201, 162, 39, 0.1);
}

.cours-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gold-muted);
}

.cours-ornament {
  color: var(--gold-main);
  font-size: 1.15rem;
  text-shadow: 0 0 6px rgba(201, 162, 39, 0.5);
  line-height: 1;
}

.cours-title {
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  font-weight: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0;
}

.cours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cours-list li {
  padding: 0.5rem 0;
  font-size: clamp(0.83rem, 1.9vw, 0.93rem);
  color: var(--parchment-dim);
  border-bottom: 1px solid rgba(201, 162, 39, 0.07);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.cours-list li:last-child {
  border-bottom: none;
}

.cours-list-extra {
  color: var(--gold-main) !important;
  font-style: italic;
}

/* ---------- Footer ---------- */
.footer-full {
  position: relative;
  z-index: 1;
  padding: 4rem 1.5rem 3rem;
  border-top: 1px solid var(--gold-muted);
}

.footer-brand {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  letter-spacing: 0.2em;
  color: var(--gold-bright);
  margin-bottom: 0.3rem;
}

.footer-sub {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  margin-bottom: 0;
}

.footer-copy {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--gold-muted);
}

.footer-legal {
  font-size: 0.74rem;
  margin: 0;
}

.footer-link {
  color: var(--parchment-dim);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--gold-bright);
  text-decoration: none;
}

/* ---------- Mentions légales ---------- */
.mentions-block {
  max-width: 640px;
  margin: 2rem auto 0;
  padding: 2rem;
  border: 1px solid var(--gold-muted);
  background: rgba(201, 162, 39, 0.03);
  text-align: left;
}

.mentions-title {
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-main);
  margin-bottom: 1.5rem;
}

.mentions-block p {
  font-size: 0.86rem;
  color: var(--parchment-dim);
  line-height: 1.85;
  margin-bottom: 0.4rem;
}

.mentions-block strong {
  color: var(--parchment);
}

/* ---------- Responsive très petit mobile ---------- */
@media (max-width: 360px) {
  .btn-gold {
    padding: 0.7rem 1.5rem;
    letter-spacing: 0.14em;
  }

  .hero-section {
    padding-top: 4.5rem;
  }
}
