/* =========================================================
   SHO RYU AÏKIDO DOJO — style.css
   Palette : noir chaud #0f0e0d · or #d4a843 · surfaces #18170f
   Typo    : Cormorant Garamond (titres) + DM Sans (corps)
   ========================================================= */

/* ----- Variables globales ----- */
:root {
  --c-bg:       #0f0e0d;
  --c-surface:  #18170f;
  --c-surface2: #111009;
  --c-border:   #2e2a20;
  --c-border2:  #1e1c14;
  --c-gold:     #d4a843;
  --c-gold-dim: #8a6a22;
  --c-text:     #e8e4dc;
  --c-muted:    #a09890;
  --c-dim:      #888;
  --c-footer:   #0c0b09;
  --ff-serif:   'Cormorant Garamond', Georgia, serif;
  --ff-sans:    'DM Sans', system-ui, sans-serif;
  --nav-h:      68px;
  --r:          4px;
}

/* ----- Reset minimal ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-sans);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ----- Utilitaires ----- */
.section-label {
  display: block;
  font-size: .6875rem;          /* 11px */
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: .5rem;
}
.section-rule {
  width: 32px; height: 1px;
  background: var(--c-gold);
  margin: 0 auto .5rem;
}
.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 400;
  color: #f0ece4;
  line-height: 1.2;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.bar { height: 1px; background: var(--c-border); margin: 0 2rem; }

/* ----- Navigation ----- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(15,14,13,.92);
  backdrop-filter: blur(8px);
  border-bottom: .5px solid var(--c-border);
  transition: transform .35s ease, opacity .35s ease;
}
.site-nav.nav--hidden { transform: translateY(-100%); opacity: 0; }

.nav-brand { display: flex; align-items: center; gap: .75rem; }
.nav-logo {
  width: 46px; height: 46px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: 1px solid rgba(212,168,67,.35);
}
.nav-logo img { width: 100%; height: 100%; object-fit: contain; }
.nav-name { font-family: var(--ff-serif); font-size: .9375rem; color: var(--c-text); line-height: 1.25; }
.nav-sub  { font-size: .5625rem; letter-spacing: .15em; text-transform: uppercase; color: var(--c-dim); }

.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a {
  font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-dim);
  transition: color .2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content:''; position:absolute; bottom:0; left:0; right:100%; height:1px;
  background: var(--c-gold); transition: right .25s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--c-text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a.nav-cta { color: var(--c-gold); }

/* burger mobile */
.nav-burger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
  aria-label: "Menu";
}
.nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--c-muted); transition: all .3s;
}
.nav-mobile {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: rgba(15,14,13,.97); flex-direction: column;
  align-items: center; justify-content: center; gap: 2.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 1.5rem; font-family: var(--ff-serif); color: var(--c-muted); }

/* ----- Hero ----- */
.hero {
  position: relative; height: 100svh; min-height: 560px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 28%;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(10,9,8,.92) 0%,
    rgba(10,9,8,.60) 45%,
    rgba(10,9,8,.78) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 4rem;
  max-width: 52%;
  animation: fadeUp .9s ease both;
}
.hero-since {
  font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--c-gold); display: block; margin-bottom: .75rem;
}
.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 400; color: #f5f0e8;
  line-height: 1.1; margin-bottom: .875rem;
}
.hero-title em { font-style: italic; }
.hero-desc {
  font-size: .875rem; font-weight: 300; color: var(--c-muted);
  line-height: 1.8; margin-bottom: 1.5rem;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* kanji panneau */
.hero-kanji {
  position: absolute; right: 3rem; top: 50%; transform: translateY(-50%);
  z-index: 2;
  display: flex; align-items: center; gap: 1.5rem;
  animation: fadeUp 1.1s .2s ease both;
}
.kanji-item { text-align: center; }
.kanji-glyph {
  font-family: var(--ff-serif); font-size: clamp(3rem, 6vw, 4rem);
  color: var(--c-gold); line-height: 1;
}
.kanji-label {
  font-size: .5rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--c-dim); margin-top: .3rem;
}
.kanji-sep { width: .5px; height: 52px; background: var(--c-border); }

/* ----- Boutons ----- */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .625rem 1.4rem;
  font-family: var(--ff-sans); font-size: .6875rem;
  letter-spacing: .12em; text-transform: uppercase;
  border-radius: var(--r); cursor: pointer;
  transition: opacity .2s, transform .15s;
  border: none;
}
.btn:hover { opacity: .85; transform: translateY(-1px); }
.btn-gold { background: var(--c-gold); color: #0f0e0d; }
.btn-outline { background: transparent; color: var(--c-gold); border: .5px solid var(--c-gold); }
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ----- Sections génériques ----- */
.section { padding: 4rem 2.5rem; }
.section-center { text-align: center; margin-bottom: 2rem; }

/* ----- L'aïkido (3 colonnes) ----- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature-card {
  background: var(--c-surface);
  border: .5px solid var(--c-border);
  border-radius: var(--r);
  padding: 1.375rem;
}
.feature-icon {
  width: 36px; height: 36px; margin-bottom: .875rem;
  color: var(--c-gold); stroke: var(--c-gold);
}
.feature-title {
  font-family: var(--ff-serif); font-size: 1.0625rem;
  color: var(--c-text); margin-bottom: .5rem;
}
.feature-text { font-size: .8125rem; font-weight: 300; color: var(--c-muted); line-height: 1.75; }

/* ----- Cours ----- */
.cours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .875rem;
  margin-bottom: 1.125rem;
}
.dojo-card {
  background: var(--c-surface);
  border: .5px solid var(--c-border);
  border-radius: var(--r);
  padding: 1.125rem 1.25rem;
}
.dojo-header { display: flex; align-items: center; gap: .625rem; margin-bottom: .875rem; }
.dojo-accent { width: 3px; height: 28px; border-radius: 2px; flex-shrink: 0; }
.dojo-accent--gold { background: var(--c-gold); }
.dojo-accent--mid  { background: #555; }
.dojo-accent--dim  { background: #333; }
.dojo-name { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-gold); }
.dojo-name--mid { color: var(--c-muted); }
.dojo-name--dim { color: var(--c-dim); }
.dojo-addr { font-size: .625rem; color: var(--c-dim); margin-top: 1px; }
.slots { display: flex; flex-direction: column; gap: .4375rem; }
.slot {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem .625rem;
  background: var(--c-surface2);
  border-radius: 3px;
}
.slot-label { font-size: .6875rem; color: var(--c-muted); }
.slot-time  { font-size: .75rem; color: var(--c-gold); font-weight: 500; }
.slot-note  { font-size: .6875rem; font-weight: 300; color: var(--c-muted); line-height: 1.6; }
.dojo-stack { display: flex; flex-direction: column; gap: .875rem; }

/* Instructeur */
.instructor-card {
  background: var(--c-surface);
  border: .5px solid var(--c-border);
  border-radius: var(--r);
  padding: 1.125rem 1.25rem;
  display: flex; align-items: flex-start; gap: 1rem;
}
.instructor-photo {
  width: 72px; height: 72px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: .5px solid var(--c-border);
}
.instructor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.instructor-name { font-family: var(--ff-serif); font-size: 1.125rem; color: #f0ece4; }
.instructor-grade { font-size: .625rem; color: var(--c-gold); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .375rem; }
.instructor-bio { font-size: .75rem; font-weight: 300; color: var(--c-muted); line-height: 1.75; margin-bottom: .75rem; }
.instructor-bio a { color: var(--c-gold); border-bottom: .5px solid var(--c-gold-dim); transition: opacity .2s; }
.instructor-bio a:hover { opacity: .7; }
.assistants-label { font-size: .5625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-dim); margin-bottom: .5rem; margin-top: 2rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  font-size: .6875rem; padding: .25rem .625rem;
  background: var(--c-border2); border: .5px solid var(--c-border);
  border-radius: 2px; color: #b8b0a0;
}

/* ----- Galerie masonry ----- */
.gallery-grid {
  columns: 4; column-gap: .375rem;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: .375rem;
  cursor: pointer;
  overflow: hidden;
  border-radius: 3px;
  position: relative;
}
.gallery-item img {
  width: 100%; display: block;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(212,168,67,0);
  transition: background .3s;
}
.gallery-item:hover::after { background: rgba(212,168,67,.06); }

/* Lightbox dialog */
dialog#lightbox {
  background: rgba(10,9,8,.96);
  border: none; padding: 0;
  max-width: 90vw; max-height: 90vh;
  border-radius: 4px; overflow: hidden;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
dialog#lightbox::backdrop { background: rgba(0,0,0,.85); }
#lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; display: block; }
#lightbox-close {
  position: absolute; top: .75rem; right: .75rem;
  background: rgba(255,255,255,.1); border: none; cursor: pointer;
  color: #fff; font-size: 1.5rem; line-height: 1;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
#lightbox-close:hover { background: rgba(255,255,255,.2); }

/* ----- Partenaires ----- */
.partners-tags { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.partner-tag {
  font-size: .6875rem; padding: .3125rem .75rem;
  background: var(--c-border2); border: .5px solid var(--c-border);
  border-radius: 2px; color: #b8b0a0;
  transition: color .2s, border-color .2s;
}
.partner-tag:hover { color: var(--c-gold); border-color: var(--c-gold-dim); }

/* ----- Contact ----- */
.contact-actions { display: flex; justify-content: center; gap: .875rem; flex-wrap: wrap; }

/* ----- Footer ----- */
.site-footer {
  padding: 1.5rem 2.5rem;
  border-top: .5px solid var(--c-border);
  background: var(--c-footer);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.25rem;
}
.footer-copy { font-family: var(--ff-serif); font-size: .8125rem; color: var(--c-dim); }
.footer-link { color: #888; border-bottom: .5px solid #444; transition: color .2s; }
.footer-link:hover { color: var(--c-muted); }
.footer-logos { display: flex; align-items: center; gap: .875rem; margin-right: 3rem; }
.footer-logo-wrap { display:block; line-height:0; background:#fff; border-radius:3px; padding:4px 6px; transition:opacity .2s; }
.footer-logo-wrap:hover { opacity: .85; }
.footer-logo-wrap--dark { background: transparent; padding: 0; }
.footer-logo-wrap img { height: 28px; width: auto; }

/* ----- Animations ----- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .cours-grid    { grid-template-columns: 1fr; }
  .hero-kanji    { display: none; }
  .hero-content  { max-width: 90%; padding: 0 2rem; }
  .gallery-grid  { columns: 2; }
  .nav-links     { display: none; }
  .nav-burger    { display: flex; }
}
@media (max-width: 600px) {
  .section       { padding: 3rem 1.25rem; }
  .bar           { margin: 0 1.25rem; }
  .site-nav      { padding: 0 1.25rem; }
  .site-footer   { flex-direction: column; align-items: flex-start; }
  .hero-title    { font-size: 2.2rem; }
  .gallery-grid  { columns: 2; }
}

/* ----- Scroll-to-top ----- */
#back-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-surface); border: .5px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-gold); cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
}
#back-top.visible { opacity: 1; pointer-events: auto; }
#back-top:hover { transform: translateY(-3px); }
#back-top svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
