/* ============================================================
   Page d'accueil — Massiwa
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  position: relative;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  text-align: center;
  max-width: 800px;
}

.hero-subtitle {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 18px;
  color: var(--sea-foam);
  letter-spacing: 4px;
  margin-bottom: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeInDown 1s ease 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 180px);
  line-height: 0.9;
  margin: 20px 0 8px;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  letter-spacing: 4px;
  perspective: 800px;
}

.title-letter {
  display: inline-block;
  background: linear-gradient(180deg, #fff5d0 0%, #f4d35e 30%, #c9a227 70%, #7a5c10 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 0 #3d2817) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
  transform: translateY(40px) rotateX(40deg);
  opacity: 0;
  animation: titleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(0.3s + var(--i) * 0.07s);
}

@keyframes titleIn {
  to {
    transform: translateY(0) rotateX(0);
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 24px 0 32px;
  font-family: var(--font-script);
  font-size: 28px;
  color: var(--gold-light);
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}
.hero-tagline em {
  font-style: italic;
  color: var(--sea-foam);
}
.ampersand { color: var(--gold); font-size: 18px; }

.hero-pitch {
  font-size: 19px;
  line-height: 1.7;
  color: var(--parchment);
  max-width: 600px;
  margin: 0 auto 40px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeIn 1s ease 1.4s forwards;
}

.hero-pitch strong {
  color: var(--gold-light);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(244, 211, 94, 0.3);
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 1s ease 1.6s forwards;
}

.hero-features {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 1s ease 1.8s forwards;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.feature-icon { font-size: 36px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)); }
.feature-label {
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sea-foam);
}

/* ============================================================
   COMPASS (à droite du hero)
   ============================================================ */
.hero-compass {
  width: 280px;
  height: 280px;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
  animation: compassFloat 6s ease-in-out infinite;
  display: none;
}
@media (min-width: 1100px) {
  .hero-compass { display: block; }
}

@keyframes compassFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(3deg); }
}

.compass-rose {
  transform-origin: 100px 100px;
  animation: spin 40s linear infinite;
}
@keyframes spin {
  to { transform: translate(100px, 100px) rotate(360deg); }
}

/* ============================================================
   ISLES GRID
   ============================================================ */
.isles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.isle-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 245, 220, 0.1), rgba(10, 35, 66, 0.6));
  border: 2px solid rgba(201, 162, 39, 0.3);
  border-radius: 8px;
  padding: 60px 24px 28px;
  text-align: center;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}
.isle-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, transparent 60%, currentColor 100%);
  opacity: 0.05;
  pointer-events: none;
}
.isle-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 32px rgba(244, 211, 94, 0.2);
}

.isle-banner {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(180deg, currentColor 0%, transparent 100%);
  opacity: 0.7;
}

.isle-ngazidja { color: #5F8D4E; }
.isle-ndzuwani { color: #E07A5F; }
.isle-mwali    { color: #7B5EA7; }
.isle-maore    { color: #2E86AB; }

.isle-name {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 2px;
  margin-bottom: 4px;
  color: var(--parchment);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.isle-subtitle {
  font-family: var(--font-script);
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 12px;
  font-size: 16px;
}

.isle-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--sea-foam);
  margin-bottom: 16px;
}
.isle-desc em { color: var(--parchment); }

.isle-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(201, 162, 39, 0.2);
  border: 1px solid var(--gold);
  border-radius: 20px;
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ============================================================
   RULES GRID
   ============================================================ */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.rule-card {
  background: linear-gradient(180deg, rgba(244, 232, 193, 0.08) 0%, rgba(10, 35, 66, 0.5) 100%);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 6px;
  padding: 28px 24px;
  position: relative;
  transition: all 0.3s ease;
}
.rule-card:hover {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(244, 232, 193, 0.15) 0%, rgba(10, 35, 66, 0.6) 100%);
  transform: translateY(-4px);
}

.rule-number {
  position: absolute;
  top: -20px;
  left: 24px;
  width: 48px;
  height: 48px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold), var(--wood));
  border: 2px solid var(--wood-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.rule-card h3 {
  font-family: var(--font-title);
  font-size: 20px;
  color: var(--gold-light);
  letter-spacing: 1px;
  margin-bottom: 10px;
  margin-top: 12px;
}

.rule-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--parchment);
}
.rule-card strong { color: var(--gold-light); }
.rule-card em { color: var(--sea-foam); font-style: italic; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-content {
  max-width: 760px;
  margin: 40px auto 0;
  font-size: 18px;
  line-height: 1.8;
  color: var(--parchment);
  text-align: center;
}
.about-content p { margin-bottom: 20px; }
.about-content strong { color: var(--gold-light); }

.about-quote {
  margin-top: 40px;
  padding: 30px 40px;
  background: linear-gradient(180deg, rgba(244, 232, 193, 0.1), rgba(10, 35, 66, 0.5));
  border-left: 4px solid var(--gold);
  border-right: 4px solid var(--gold);
  font-family: var(--font-script);
  font-style: italic;
  font-size: 22px;
  color: var(--gold-light);
  position: relative;
}
.about-quote::before {
  content: '“';
  position: absolute;
  top: -10px; left: 20px;
  font-size: 60px;
  color: var(--gold);
  opacity: 0.5;
}
.about-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-style: normal;
  color: var(--sea-foam);
  letter-spacing: 1px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
  .hero { padding: 100px 20px 60px; }
  .hero-title { letter-spacing: 2px; }
  .hero-tagline { font-size: 22px; }
  .hero-cta .btn { flex: 1; min-width: 140px; }
  .features { gap: 24px; }
  .section-title { font-size: 32px; }
  .rule-card { padding: 24px 18px; }
}
