/* ============================================
   KETCH TRAINING CENTER — feuille de style commune
   ============================================ */

:root {
  --navy: #0d1b2a;
  --navy-mid: #16283d;
  --navy-light: #243b55;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-pale: #f5e9c8;
  --cream: #faf8f3;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-mid: #4a5568;
  --text-light: #7a8a9a;
  --border: #e6e2d8;
  --shadow: 0 4px 24px rgba(13, 27, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(13, 27, 42, 0.14);
  --radius: 12px;
  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.2;
}

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 5%; }

/* ── HEADER / NAV ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
}

.navbar {
  max-width: var(--max-width); margin: 0 auto; padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 60px; width: auto; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--white); font-size: 1.15rem; letter-spacing: 1px; }
.brand-sub { font-size: 0.62rem; color: var(--gold-light); letter-spacing: 2px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.82); font-size: 0.92rem; font-weight: 500;
  padding: 6px 2px; position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.btn-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy); padding: 9px 18px; border-radius: 7px; font-weight: 600;
}
.nav-links a.btn-cta::after { display: none; }
.nav-links a.btn-cta:hover { filter: brightness(1.05); }

.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 6px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s, opacity .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 76px 0 0 0; height: calc(100vh - 76px);
    background: var(--navy); flex-direction: column; justify-content: flex-start;
    padding: 40px 8% ; gap: 26px;
    transform: translateX(100%); transition: transform .3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.15rem; }
  .hamburger { display: flex; }
}

/* ── HERO ── */
.hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-light) 100%);
  color: var(--white);
  padding: 80px 5% 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 75% 25%, rgba(201,168,76,0.10) 0%, transparent 50%);
}
.hero-inner { max-width: var(--max-width); margin: 0 auto; position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold-light);
  background: rgba(201,168,76,0.14); border: 1px solid rgba(201,168,76,0.3);
  padding: 6px 16px; border-radius: 20px; margin-bottom: 24px;
}
.hero h1 {
  color: var(--white); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700;
  max-width: 760px; margin-bottom: 20px;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p.lead {
  font-size: 1.05rem; color: rgba(255,255,255,0.75); max-width: 640px;
  font-weight: 300; margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.stats-row { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 52px; }
.stat-item { border-left: 2px solid rgba(201,168,76,0.5); padding-left: 16px; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: var(--gold-light); }
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: .6px; }

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 8px; font-weight: 600;
  font-size: 0.92rem; text-decoration: none; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--navy);
  box-shadow: 0 4px 18px rgba(201,168,76,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(201,168,76,0.4); }
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.35); color: var(--white); background: transparent;
}
.btn-outline:hover { border-color: var(--gold); background: rgba(201,168,76,0.1); }
.btn-outline-navy {
  border: 1.5px solid var(--navy); color: var(--navy); background: transparent;
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ── SECTIONS ── */
main { display: block; }
section { padding: 70px 5%; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.centered { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow-navy {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 14px; }
.section-head p { color: var(--text-mid); font-size: 1.02rem; }
.divider { width: 52px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 2px; margin: 16px 0; }
.centered .divider { margin: 16px auto; }

.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }
.bg-navy .section-head p { color: rgba(255,255,255,0.68); }
.bg-alt { background: var(--white); }

/* ── GRID / CARDS ── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem; margin-bottom: 16px; background: var(--gold-pale);
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--text-mid); font-size: 0.92rem; }
.tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: .6px;
  text-transform: uppercase; padding: 3px 10px; border-radius: 5px;
  background: var(--gold-pale); color: #8a6d1f; margin-bottom: 10px;
}
.module-list { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.module-list li { list-style: none; display: flex; align-items: center; gap: 9px; font-size: 0.85rem; color: var(--text-mid); }
.module-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* dark cards (used on navy backgrounds) */
.bg-navy .card {
  background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); box-shadow: none;
}
.bg-navy .card p { color: rgba(255,255,255,0.65); }
.bg-navy .card h3 { color: var(--white); }

/* ── TABS ── */
.tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.tab-btn {
  padding: 10px 20px; border-radius: 22px; border: 1.5px solid var(--border);
  background: var(--white); cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem; font-weight: 500; color: var(--text-mid); transition: all .2s;
}
.tab-btn.active, .tab-btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }

/* ── TESTIMONIALS ── */
.testimonial { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial p.quote { font-style: italic; color: var(--text-mid); font-size: 0.9rem; margin-bottom: 18px; }
.author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold-light); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 0.86rem; }
.author-role { font-size: 0.74rem; color: var(--text-light); }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-item .icon {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.95rem;
}
.contact-item .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .6px; color: rgba(255,255,255,0.45); margin-bottom: 2px; }
.contact-item .val { font-size: 0.92rem; font-weight: 500; }
.contact-item .val a { text-decoration: underline; text-decoration-color: rgba(201,168,76,0.5); }
.quick-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.form-card {
  background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-dark); }
.form-group input, .form-group select, .form-group textarea {
  border: 1.5px solid var(--border); border-radius: 8px; padding: 11px 14px;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--text-dark);
  transition: border-color .2s; outline: none; resize: vertical; background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-note { font-size: 0.76rem; color: var(--text-light); margin-top: 10px; text-align: center; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.alert { padding: 14px 18px; border-radius: 8px; font-size: 0.88rem; margin-bottom: 20px; }
.alert-success { background: #e7f6ec; color: #1e7a3c; border: 1px solid #b7e3c4; }
.alert-error { background: #fdecec; color: #a5312b; border: 1px solid #f3bcb9; }

/* ── FOOTER ── */
footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 50px 5% 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.footer-grid h5 { font-size: 0.76rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-grid ul li a { color: rgba(255,255,255,0.55); font-size: 0.85rem; }
.footer-grid ul li a:hover { color: var(--gold-light); }
.footer-brand p { font-size: 0.85rem; margin-top: 12px; max-width: 260px; color: rgba(255,255,255,0.55); }
.footer-bottom {
  max-width: var(--max-width); margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 0.76rem; color: rgba(255,255,255,0.4);
}

/* ── PAGE HEADER (pages autres que l'accueil) ── */
.page-header {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white); padding: 56px 5%; text-align: center;
}
.page-header h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-header p { color: rgba(255,255,255,0.7); max-width: 560px; margin: 12px auto 0; }

/* ── NEWS ── */
.news-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card .news-body { padding: 22px 22px 26px; }
.news-date { font-size: 0.74rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.news-card h3 { font-size: 1.05rem; margin: 8px 0 10px; }
.news-card p { font-size: 0.88rem; color: var(--text-mid); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  section { padding: 50px 5%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-row { gap: 24px; }
}
