/* ============================================
   CRÉER LIEN — Feuille de styles partagée
   ============================================ */

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

:root {
  --navy:   #0A1628;
  --red:    #C0392B;
  --gold:   #C9933A;
  --green:  #2D6A4F;
  --cream:  #F0EDE8;
  --white:  #FFFFFF;
  --blue:   #1a2a4a;
  --blue2:  #2c4a8c;
  --text:   #1A2535;
  --muted:  #64748B;
  --border: #E2E8F0;
  --shadow: 0 4px 24px rgba(10,22,40,0.10);
  --radius: 12px;
  --font:   'Inter', system-ui, -apple-system, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
p  { line-height: 1.7; color: var(--muted); }

a { color: var(--blue2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── LAYOUT ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── NAVIGATION ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 700; color: var(--white);
  text-decoration: none;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px; background: var(--gold);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: var(--navy);
}
.nav-links {
  display: flex; align-items: center; gap: 32px; list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.72); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s; text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--gold); color: var(--navy) !important;
  padding: 8px 20px; border-radius: 8px;
  font-weight: 700 !important; font-size: 0.85rem !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #d4a04a !important; text-decoration: none !important; }

.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); margin: 5px 0; transition: 0.3s;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  border: none; transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #d4a04a; transform: translateY(-1px); text-decoration: none; color: var(--navy); }
.btn-secondary { background: var(--red); color: var(--white); }
.btn-secondary:hover { background: #a93226; transform: translateY(-1px); text-decoration: none; color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); text-decoration: none; color: var(--white); }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }

/* ── CARDS ── */
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 32px;
  box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(10,22,40,0.14); }
.card-navy { background: var(--navy); border-color: transparent; }
.card-navy h3, .card-navy p { color: var(--white); }
.card-navy p { color: rgba(255,255,255,0.7); }
.card-cream { background: var(--cream); border-color: transparent; }

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(201,147,58,0.15); color: var(--gold);
  border: 1px solid rgba(201,147,58,0.3);
  padding: 4px 14px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.badge-red { background: rgba(192,57,43,0.12); color: var(--red); border-color: rgba(192,57,43,0.25); }
.badge-green { background: rgba(45,106,79,0.12); color: var(--green); border-color: rgba(45,106,79,0.25); }

/* ── SECTION HEADER ── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .badge { margin-bottom: 16px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

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

/* ── STATS ── */
.stat-block { text-align: center; }
.stat-number { font-size: clamp(2rem,4vw,3rem); font-weight: 800; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.9rem; color: var(--muted); margin-top: 4px; }

/* ── TESTIMONIALS ── */
.testimonial {
  background: var(--cream); border-radius: var(--radius);
  padding: 28px 32px; position: relative;
}
.testimonial::before {
  content: '"'; font-size: 5rem; color: var(--gold); line-height: 1;
  position: absolute; top: 8px; left: 20px; font-family: Georgia, serif;
  opacity: 0.3;
}
.testimonial p { font-size: 1rem; color: var(--text); font-style: italic; line-height: 1.7; }
.testimonial-author { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--navy); font-size: 1.1rem; flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.testimonial-role { font-size: 0.8rem; color: var(--muted); }

/* ── STEP PROCESS ── */
.step-process { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; }
.step-item { text-align: center; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step-item h3 { margin-bottom: 8px; }

/* ── HERO SUBSCRIBE FORM ── */
.hero-form {
  background: var(--white); border-radius: 14px;
  padding: 28px 32px; box-shadow: 0 8px 40px rgba(10,22,40,0.18);
  max-width: 460px; width: 100%;
}
.hero-form h3 { font-size: 1.1rem; margin-bottom: 4px; color: var(--navy); }
.hero-form .subtitle { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }
.form-field { margin-bottom: 12px; }
.form-field input {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 0.95rem; color: var(--text); outline: none;
  transition: border-color 0.2s; font-family: var(--font);
}
.form-field input:focus { border-color: var(--blue2); }
.form-field input::placeholder { color: #aab4c8; }
.hero-form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.form-note { font-size: 0.75rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* ── CATEGORIES GRID ── */
.cat-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 28px 24px;
  text-align: center; transition: all 0.2s;
}
.cat-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.cat-icon { font-size: 2.4rem; margin-bottom: 12px; display: block; }
.cat-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 6px; }
.cat-card p { font-size: 0.85rem; color: var(--muted); }

/* ── COMMUNITY ACTIONS ── */
.action-btn {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border-radius: var(--radius);
  border: 2px solid var(--border); padding: 24px 28px;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
  color: var(--text);
}
.action-btn:hover { border-color: var(--gold); background: #fdf8f0; transform: translateY(-2px); text-decoration: none; }
.action-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(201,147,58,0.12); display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; flex-shrink: 0;
}
.action-text strong { display: block; font-size: 1rem; color: var(--navy); margin-bottom: 2px; }
.action-text span { font-size: 0.85rem; color: var(--muted); }

/* ── GALON / GAMIFICATION ── */
.galon-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: 10px;
  background: var(--cream); margin-bottom: 12px;
}
.galon-badge {
  font-size: 1.8rem; width: 48px; text-align: center; flex-shrink: 0;
}
.galon-text strong { display: block; color: var(--navy); font-size: 0.95rem; }
.galon-text span { font-size: 0.82rem; color: var(--muted); }

/* ── FOOTER ── */
.footer {
  background: var(--navy); color: rgba(255,255,255,0.7);
  padding: 60px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 260px; }
.footer h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: rgba(255,255,255,0.6); font-size: 0.9rem; text-decoration: none; transition: color 0.2s; }
.footer ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }

/* ── CONTACT FORM ── */
.contact-form .form-field { margin-bottom: 16px; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 0.95rem; color: var(--text); outline: none;
  transition: border-color 0.2s; font-family: var(--font);
  background: var(--white);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-color: var(--blue2); }
.contact-form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }

/* ── ABOUT PAGE ── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before {
  content: ''; position: absolute; left: -28px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-year { font-size: 0.8rem; font-weight: 700; color: var(--gold); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.timeline-item h3 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.timeline-item p { font-size: 0.9rem; color: var(--muted); }

/* ── ALERT / INFO BOX ── */
.info-box {
  background: rgba(201,147,58,0.08); border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0; padding: 16px 20px;
}
.info-box p { color: var(--text); font-size: 0.9rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .step-process { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .step-process { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); padding: 24px; gap: 20px; }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }

  .hero-form { max-width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .step-process { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .btn-lg { padding: 14px 24px; }
}
