/* =========================================================
   AAJF — Association d'Amitié Jiaxing-France
   Feuille de style globale
   ========================================================= */

:root {
  --color-navy: #0d2c54;
  --color-navy-dark: #081d3a;
  --color-navy-light: #1a4480;
  --color-gold: #c9a55c;
  --color-red: #c8102e;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-bg-dark: #0a1f3d;
  --color-text: #1a1a1a;
  --color-text-muted: #5a6678;
  --color-border: #e3e8ef;
  --shadow-sm: 0 2px 8px rgba(13, 44, 84, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 44, 84, 0.1);
  --shadow-lg: 0 16px 48px rgba(13, 44, 84, 0.15);
  --radius: 6px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: var(--color-text); }

a {
  color: var(--color-navy-light);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-gold); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============== HEADER / NAVIGATION ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

/* Logo image dans le header */
.brand-logo {
  height: 64px;
  width: auto;
  max-width: 130px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
@media (max-width: 480px) {
  .brand-logo { height: 52px; max-width: 110px; }
}

/* Texte d'accompagnement à droite du logo — sur une seule ligne */
.brand-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--color-navy);
  font-size: 0.95rem;
  letter-spacing: 0.15px;
  line-height: 1.2;
  white-space: nowrap;
}
@media (max-width: 1080px) {
  .brand-text { font-size: 0.88rem; }
}
@media (max-width: 920px) {
  .brand-text { display: none; }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
  color: var(--color-navy);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}

.nav-menu a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  position: relative;
  white-space: nowrap;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }
.nav-menu a.active { color: var(--color-navy); }

.nav-cta {
  background: var(--color-navy);
  color: #fff !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background var(--transition);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--color-navy-light); color: #fff !important; }

/* ============== HERO ============== */
.hero {
  position: relative;
  padding: 5.5rem 1.5rem 5rem;
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 60%, var(--color-navy-light) 100%);
  color: #fff;
  overflow: hidden;
}

/* Hero avec image de fond (homepage) */
.hero.hero-img {
  background:
    linear-gradient(135deg, rgba(8, 29, 58, 0.88) 0%, rgba(13, 44, 84, 0.78) 55%, rgba(13, 44, 84, 0.72) 100%),
    var(--hero-bg) center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at top right, rgba(201, 165, 92, 0.18), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(26, 68, 128, 0.55), transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  z-index: 1;
}

/* Hero two-column grid */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.85rem, 3.3vw, 2.65rem);
  line-height: 1.18;
  margin-bottom: 1.1rem;
  max-width: 620px;
}

.hero-subtitle {
  display: inline-block;
  color: var(--color-gold);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-bottom: 1.4rem;
  border-left: 2px solid var(--color-gold);
  padding-left: 0.85rem;
  line-height: 1.4;
}

.hero .lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.86);
  max-width: 580px;
  margin-bottom: 1.85rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Highlight card sur le côté droit du hero */
.hero-highlight {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 2rem 1.85rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.hero-highlight::before {
  content: '';
  position: absolute;
  top: -30%; right: -30%;
  width: 80%; height: 200%;
  background: radial-gradient(circle, rgba(201,165,92,0.22), transparent 65%);
  pointer-events: none;
}
.hero-highlight-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 1;
}
.hero-highlight h3 {
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 1;
}
.hero-highlight p {
  color: rgba(255,255,255,0.78);
  font-size: 0.93rem;
  line-height: 1.55;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}
.hero-highlight-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-gold);
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  position: relative;
  z-index: 1;
  transition: gap var(--transition);
}
.hero-highlight-link:hover {
  color: #d6b56b;
  gap: 0.7rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-navy-dark);
}
.btn-primary:hover {
  background: #d6b56b;
  color: var(--color-navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border: 1.5px solid var(--color-navy);
}
.btn-outline:hover {
  background: var(--color-navy);
  color: #fff;
}

/* ============== SECTIONS ============== */
section { padding: 5rem 0; }
section.alt-bg { background: var(--color-bg-alt); }

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 3rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.section-center { text-align: center; }
.section-center .section-intro { margin-left: auto; margin-right: auto; }

/* ============== CARDS / GRID ============== */
.grid {
  display: grid;
  gap: 1.75rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(13,44,84,0.08), rgba(201,165,92,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-navy);
}

/* Carte avec image de couverture */
.card-img {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-img .card-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.card-img:hover .card-cover { transform: scale(1.05); }
.card-img .card-body {
  padding: 1.5rem 1.75rem 1.75rem;
}
.card-img .card-body h3 { margin-bottom: 0.5rem; }
.card-img .card-body p { color: var(--color-text-muted); margin-bottom: 0; }

.card h3 a { color: var(--color-navy); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-navy-light);
}
.card-link::after {
  content: '→';
  transition: transform var(--transition);
}
.card-link:hover::after { transform: translateX(4px); }

/* ============== STATS ============== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
}

.stat-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
}

/* ============== TWO-COLUMN LAYOUT ============== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }

.text-block h2 { margin-bottom: 1.25rem; }
.text-block p { color: var(--color-text-muted); font-size: 1.02rem; }

.visual-block {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.visual-block::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 80%; height: 200%;
  background: radial-gradient(circle, rgba(201,165,92,0.18), transparent 60%);
  pointer-events: none;
}
.visual-block h3 { color: #fff; }
.visual-block p { color: rgba(255,255,255,0.85); }

/* ============== LISTS ============== */
.feature-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}
.feature-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.6rem 0;
}
.feature-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--color-gold);
  color: var(--color-navy-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 2px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.step {
  position: relative;
  padding: 2rem 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -16px;
  left: 24px;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-navy);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h4 { color: var(--color-navy); margin-top: 0.25rem; }
.step p { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* ============== CTA BLOCK ============== */
.cta-block {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  margin: 4rem auto;
  max-width: var(--max-width);
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(201,165,92,0.22), transparent 60%);
  pointer-events: none;
}
.cta-block h2 { color: #fff; }
.cta-block p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0.75rem auto 2rem; }
.cta-block .btn { position: relative; z-index: 1; }

/* ============== TAGS / CHIPS ============== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 1rem 0;
}
.tag {
  background: rgba(13, 44, 84, 0.06);
  color: var(--color-navy);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}
.tag.gold { background: rgba(201,165,92,0.15); color: #8a6f30; }

/* ============== FORM ============== */
.form {
  display: grid;
  gap: 1.25rem;
  max-width: 640px;
}
.form label {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--color-text);
  display: block;
  margin-bottom: 0.35rem;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.98rem;
  background: #fff;
  transition: border-color var(--transition);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--color-navy-light);
  box-shadow: 0 0 0 3px rgba(13, 44, 84, 0.08);
}
.form textarea { min-height: 140px; resize: vertical; }

/* ============== CONTACT INFO ============== */
.contact-info {
  display: grid;
  gap: 1.5rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-item .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(13,44,84,0.06);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.contact-item h4 { margin-bottom: 0.25rem; }
.contact-item p { color: var(--color-text-muted); margin-bottom: 0; }

/* ============== FOOTER ============== */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 1.5rem;
  margin-top: 4rem;
}
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--color-gold); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand h4 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.92rem; }

.footer-col h5 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-col a { font-size: 0.93rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* ============== UTILITY ============== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }

/* ============== PAGE HEADER (sub-pages) ============== */
.page-header {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
  color: #fff;
  padding: 5rem 1.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}
/* Page-header avec image de fond */
.page-header.page-header-img {
  background:
    linear-gradient(135deg, rgba(8, 29, 58, 0.90) 0%, rgba(13, 44, 84, 0.82) 100%),
    var(--header-bg) center/cover no-repeat;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(201,165,92,0.16), transparent 60%);
  pointer-events: none;
}
.page-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-header h1 { color: #fff; max-width: 800px; }
.page-header p {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  max-width: 720px;
  margin-top: 1rem;
}
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--color-gold); }

/* ============== RESPONSIVE ============== */
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-menu a::after { display: none; }
  .nav-menu li:last-child a { border-bottom: none; }
  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  section { padding: 3.5rem 0; }
  .hero { padding: 4rem 1.5rem 3.5rem; }
  .card { padding: 1.5rem; }
  .cta-block { padding: 2.5rem 1.5rem; }
  .visual-block { padding: 1.75rem; min-height: auto; }
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
