/* ============================================
   Objectif Thaïlande — Nouveau style (2026)
   Palette : sable + bleu océan #1B6CA8 + or #D4A84B
   ============================================ */
:root {
  --bg: #FAF8F5; --surface: #ffffff; --text: #1a1a2e; --text-muted: #6b7280;
  --primary: #1B6CA8; --primary-dark: #155a8e; --secondary: #D4A84B;
  --gradient: linear-gradient(135deg, #1B6CA8 0%, #D4A84B 100%);
  --shadow: 0 4px 24px rgba(0,0,0,.07); --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --radius: 16px; --radius-sm: 10px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --nav-h: 64px; --max-w: 1120px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; min-height: 100vh; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
h1,h2,h3,h4 { line-height: 1.2; font-weight: 700; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06); display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; width: 100%; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap;
}
.nav-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; color: var(--text); flex-shrink: 0; }
.nav-logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav-logo span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; white-space: nowrap; }
.nav-links { display: flex; gap: 4px; list-style: none; flex-wrap: nowrap; min-width: 0; flex: 1; justify-content: center; }
.nav-links a {
  padding: 7px 10px; border-radius: 20px; font-size: .85rem; font-weight: 500; color: var(--text); transition: background .2s, color .2s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px;
}
.nav-links a:hover, .nav-links a.active { background: var(--primary); color: #fff; }
.nav-cta {
  padding: 8px 16px; border-radius: 20px; font-weight: 600; font-size: .85rem; flex: none; white-space: nowrap;
  background: var(--gradient); color: #fff !important; border: none; cursor: pointer; transition: opacity .2s, transform .2s;
}
.nav-cta:hover { opacity: .88; transform: translateY(-1px); }

/* HERO */
.hero { position: relative; min-height: 72vh; display: flex; align-items: center; justify-content: center; margin-top: var(--nav-h); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url('../img/banniere.jpg') center/cover no-repeat; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.65) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 40px 24px; max-width: 720px; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 20px; font-size: .82rem; font-weight: 600;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px); margin-bottom: 20px; border: 1px solid rgba(255,255,255,.25);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 16px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.hero p { font-size: 1.1rem; opacity: .9; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 30px; border-radius: 28px;
  font-weight: 600; font-size: .95rem; border: none; cursor: pointer; transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: rgba(255,255,255,.15); color: #fff; border: 2px solid rgba(255,255,255,.6); backdrop-filter: blur(4px); }
.btn-outline:hover { background: rgba(255,255,255,.25); }

/* SECTIONS */
.section { padding: 80px 24px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-label {
  display: inline-block; padding: 5px 14px; border-radius: 16px; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(27,108,168,.12), rgba(212,168,75,.12)); color: var(--primary);
}
.section h2 { font-size: 2rem; margin-bottom: 12px; }
.section .intro { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin-bottom: 40px; }

/* ABOUT CARDS */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.about-card {
  background: var(--surface); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; border-top: 3px solid transparent;
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-top-color: var(--primary); }
.about-card .icon { font-size: 2rem; margin-bottom: 14px; }
.about-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.about-card p { color: var(--text-muted); font-size: .92rem; }

/* VIDEOS GRID */
.videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.video-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column;
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-card:hover .video-thumb img { transform: scale(1.06); }
.video-thumb::after {
  content: '▶'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: #fff; background: rgba(0,0,0,.3); opacity: 0; transition: opacity .3s;
}
.video-card:hover .video-thumb::after { opacity: 1; }
.video-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.video-body .tag {
  display: inline-block; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(27,108,168,.1), rgba(212,168,75,.1)); color: var(--primary);
  margin-bottom: 10px; width: fit-content;
}
.video-body h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.4; }
.video-body p { color: var(--text-muted); font-size: .88rem; flex: 1; }
.video-meta { margin-top: 16px; font-size: .8rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }

/* CTA BANNER */
.cta-banner {
  background: var(--gradient); border-radius: var(--radius); padding: 52px 40px; text-align: center;
  color: #fff; margin: 0 auto; max-width: calc(var(--max-w) - 48px);
}
.cta-banner h2 { font-size: 1.8rem; margin-bottom: 12px; }
.cta-banner p { opacity: .9; margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-banner .btn { background: #fff; color: var(--primary); font-weight: 700; }
.cta-banner .btn:hover { background: #f0f0f0; }

/* PAGE HEAD */
.page-head { padding: 96px 0 8px; background: linear-gradient(180deg, #E7F0F8 0%, var(--bg) 100%); text-align: center; }
.page-head .intro { max-width: 620px; margin-inline: auto; }

/* COMMUNITY PERKS (page Communauté) */
.community-perks {
  list-style: none; max-width: 620px; margin: 22px auto 0;
  display: grid; gap: 10px; text-align: left;
}
.community-perks li {
  background: var(--surface); border: 1px solid rgba(0,0,0,.05); border-radius: 999px;
  padding: 10px 20px; font-size: .95rem; box-shadow: var(--shadow);
}

/* CONTACT FORM */
.contact-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; max-width: 1000px; margin: 0 auto; }
.contact-form { background: var(--surface); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { margin-top: 16px; font-size: .82rem; color: var(--muted); }

.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 13px 16px; border: 2px solid #e5e7eb; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .95rem; background: #fafafa; transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,108,168,.12); background: #fff; }
.form-group textarea { resize: vertical; min-height: 140px; }
.submit-btn {
  width: 100%; padding: 14px; border: none; border-radius: 28px; font-size: 1rem; font-weight: 700;
  background: var(--gradient); color: #fff; cursor: pointer; transition: opacity .2s, transform .2s;
}
.submit-btn:hover { opacity: .9; transform: translateY(-1px); }
.contact-info { display: flex; gap: 24px; margin-top: 28px; justify-content: center; flex-wrap: wrap; }
.contact-info a { display: flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 500; }

/* FOOTER */
.footer { margin-top: 80px; padding: 40px 24px; text-align: center; background: var(--surface); border-top: 1px solid rgba(0,0,0,.06); }
.footer .logo { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.footer .logo span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer p { color: var(--text-muted); font-size: .85rem; margin-bottom: 12px; }
.footer-links { display: flex; gap: 20px; justify-content: center; }
.footer-links a { font-size: .88rem; font-weight: 500; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav { backdrop-filter:none; -webkit-backdrop-filter:none; }
  .section { padding: 56px 16px; }
  .hero { min-height: 56vh; }
  .videos-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 20px; }
  .contact-form { padding: 24px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-burger { display:inline-block; }
  /* burger animé — 3 barres qui deviennent une croix */
  .nav-burger { position:relative; width:34px; height:24px; flex:none; }
  .nav-burger span { position:absolute; left:3px; right:3px; height:2px; border-radius:2px; background:#1a1a2e; transition:transform .3s ease, opacity .25s ease, background .25s ease; }
  .nav-burger span:nth-child(1) { top:4px; }
  .nav-burger span:nth-child(2) { top:11px; }
  .nav-burger span:nth-child(3) { top:18px; }
  .nav.open .nav-burger span { background:#fff; }
  .nav.open .nav-burger span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
  .nav.open .nav-burger span:nth-child(2) { opacity:0; transform:scaleX(0); }
  .nav.open .nav-burger span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
  .nav-cta { display: none; }
  .nav-logo span { display: none; }
  .nav-logo img { height: 30px; width: auto; }
}
/* Overlay mobile (fond sombre cliquable) */
.nav-overlay { display: none; }
@media (max-width: 768px) {
  .nav.open .nav-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 998; }
}

/* LIENS UTILES */
.liens-section { background: var(--surface); scroll-margin-top: calc(var(--nav-h) + 12px); }
.liens-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.lien-card { background: var(--bg); border-radius: var(--radius); padding: 30px 24px; text-align: center; transition: transform .2s, box-shadow .2s; }
.lien-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lien-icon { font-size: 2.4rem; margin-bottom: 12px; }
.lien-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.lien-card p { font-size: .92rem; color: var(--text-muted); margin-bottom: 16px; }
.lien-card .btn { display: inline-flex; }
.confid-note { font-size: .78rem; color: var(--text-muted); margin-top: 14px; margin-bottom: 0; line-height: 1.5; }
@media (max-width: 768px) { .liens-grid { grid-template-columns: 1fr; } }
/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .6s ease both; }
.fade-up-d1 { animation-delay: .1s; }
.fade-up-d2 { animation-delay: .2s; }
.fade-up-d3 { animation-delay: .3s; }
/* BURGER (mobile) — tiroir latéral */
.nav-burger { background:none; border:none; cursor:pointer; line-height:1; z-index:1000; }
.nav-burger:active { transform:scale(.9); }
@media (max-width: 768px) {
  .nav { z-index:100; }
  .nav-burger { position:fixed; top:12px; right:14px; width:44px; height:40px; }
  .nav-links {
    position:fixed; top:0; right:0; bottom:0; left:auto;
    width:min(78vw, 300px);
    flex-direction:column; align-items:flex-start; justify-content:center; gap:10px;
    padding:80px 26px 26px;
    background:linear-gradient(165deg, #0f1c2e 0%, #1a3a5c 55%, #D4A84B 130%);
    box-shadow:-12px 0 32px rgba(0,0,0,.28);
    transform:translateX(100%);
    transition:transform .32s ease;
    z-index:999;
  }
  .nav.open .nav-links { transform:translateX(0); }
  .nav-links li { width:100%; opacity:0; transform:translateX(24px); transition:opacity .35s ease, transform .35s ease; }
  .nav.open .nav-links li { opacity:1; transform:none; }
  .nav.open .nav-links li:nth-child(1) { transition-delay:.06s; }
  .nav.open .nav-links li:nth-child(2) { transition-delay:.13s; }
  .nav.open .nav-links li:nth-child(3) { transition-delay:.20s; }
  .nav-links a { display:block; width:100%; max-width:none; text-align:left; padding:14px 18px; border-radius:14px; font-size:1.15rem; font-weight:600; color:#fff; }
  .nav-links a:hover, .nav-links a.active { background:rgba(255,255,255,.18); color:#fff; }
}
/* MESSAGE FORMULAIRE */
#form-msg { margin-top:18px; text-align:center; font-weight:600; color:#1B6CA8; display:none; }
#form-msg.show { display:block; animation: fadeUp .4s ease both; }

/* Code parrain + bouton copier */
.code-parrain { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin:14px 0; padding:10px 14px; background:rgba(212,168,75,.08); border:1px dashed rgba(212,168,75,.5); border-radius:12px; font-size:.9rem; }
.code-parrain strong { color:#1a3a5c; }
.btn-copy { flex:none; font-family:var(--font); font-size:.82rem; font-weight:600; color:#fff; background:var(--secondary); border:none; border-radius:8px; padding:6px 12px; cursor:pointer; transition:background .2s, transform .15s; }
.btn-copy:hover { background:#b8922a; transform:translateY(-1px); }
.btn-copy:active { transform:scale(.96); }
#form-msg.err { color:#e05555; }
/* CARTE « MESSAGE ENVoyé » (formulaire masqué) */
.sent-card { max-width: 460px; margin: 0 auto; text-align: center; background: var(--surface); border-radius: var(--radius); padding: 48px 36px; box-shadow: var(--shadow); }
.sent-icon { font-size: 3.2rem; margin-bottom: 14px; }
.sent-card h2 { margin-bottom: 10px; }
.sent-card p { color: var(--muted); margin-bottom: 26px; }

/* AUTH (account.php) */
.auth-wrap{max-width:460px;margin:0 auto;}
.auth-tabs{display:flex;gap:8px;margin-bottom:16px}
.tab-btn{flex:1;padding:11px 8px;border:1px solid rgba(0,0,0,.1);background:var(--surface);color:var(--text);border-radius:var(--radius-sm);cursor:pointer;font:inherit;font-weight:600;transition:all .2s}
.tab-btn.active{background:var(--primary);border-color:var(--primary);color:#fff}
.auth-card{background:var(--surface);border:1px solid rgba(0,0,0,.06);border-radius:var(--radius);box-shadow:var(--shadow);padding:28px;margin-bottom:16px;text-align:center}
.auth-card h2{margin-bottom:6px}
.auth-avatar{width:56px;height:56px;margin:0 auto 12px;border-radius:50%;background:var(--gradient);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.5rem;font-weight:700}
.auth-email{font-weight:600;color:var(--primary);margin-bottom:4px}
.muted{color:var(--text-muted);font-size:.92rem;margin-bottom:16px}
.auth-card .form-group,.auth-card .form-row{text-align:left}
.auth-row{display:flex;justify-content:flex-end;margin:-4px 0 14px}
.auth-link{font-size:.9rem;font-weight:500}
.auth-switch{margin-top:16px;font-size:.92rem;color:var(--text-muted)}
.flash{padding:13px 18px;border-radius:var(--radius-sm);font-size:.95rem;font-weight:500;margin-bottom:18px}
.flash-ok{background:#e8f5ee;color:#1b7a4b;border:1px solid #bfe5cf}
.flash-err{background:#fdecec;color:#b3261e;border:1px solid #f5c6c3}
@media(max-width:520px){.auth-card{padding:22px 16px}}