/* ============================================================
   Massiwa : Archipel — Global styles
   Thème : océan + parchemin + accents dorés/bois
   ============================================================ */

:root {
  /* Couleurs */
  --ocean-deep:    #0a2342;
  --ocean:         #1a3a5c;
  --ocean-mid:     #2c5784;
  --ocean-light:   #5d9bcf;
  --sea-foam:      #b3e0e6;
  --sand:          #e8d8a8;
  --parchment:     #f4e8c1;
  --parchment-dk:  #d4b878;
  --gold:          #c9a227;
  --gold-light:    #f4d35e;
  --wood-dark:     #3d2817;
  --wood:          #5b3a29;
  --wood-light:    #8b5a2b;
  --rope:          #b08c5a;
  --ink:           #1a0f06;

  /* Polices */
  --font-display:  'Pirata One', 'IM Fell English SC', cursive;
  --font-title:    'Cinzel', 'IM Fell English SC', serif;
  --font-script:   'IM Fell DW Pica SC', 'EB Garamond', serif;
  --font-body:     'EB Garamond', Georgia, serif;

  /* Ombres */
  --shadow-soft:   0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-deep:   0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow:   0 0 24px rgba(244, 211, 94, 0.4);
}

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

html, body {
  font-family: var(--font-body);
  color: var(--parchment);
  background: var(--ocean-deep);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

img, svg { max-width: 100%; }

/* ============================================================
   OCEAN BG — fond animé plein écran
   ============================================================ */
.ocean-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(to bottom, #fce6a4 0%, #f5b86c 18%, #d97c4a 32%, #6a4d6e 50%, #1f3a5f 70%, #0a2342 100%);
}

.sky {
  position: absolute;
  inset: 0 0 35% 0;
  background: linear-gradient(to bottom, #f4d35e 0%, #e8a86b 40%, #b85a73 80%, #5b3a5e 100%);
  opacity: 0.7;
}

.sun {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff5d0 0%, #f4d35e 40%, #e8a86b 80%, transparent 100%);
  box-shadow: 0 0 80px 30px rgba(244, 211, 94, 0.4);
}

.clouds { position: absolute; inset: 0 0 50% 0; pointer-events: none; }
.cloud {
  position: absolute;
  background: radial-gradient(ellipse, rgba(255, 245, 220, 0.7) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(8px);
}
.cloud-1 { width: 320px; height: 80px; top: 8%; left: 10%; animation: drift 90s linear infinite; }
.cloud-2 { width: 240px; height: 60px; top: 18%; right: 8%; animation: drift 120s linear infinite reverse; }
.cloud-3 { width: 280px; height: 70px; top: 4%; left: 55%; animation: drift 150s linear infinite; }

@keyframes drift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(60px); }
}

.sea {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 38%;
  background: linear-gradient(to bottom, #2c5784 0%, #1a3a5c 50%, #0a2342 100%);
  overflow: hidden;
}

.wave {
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 120%;
  height: 60px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.wave-1 { animation: wave 7s ease-in-out infinite; opacity: 0.5; height: 50px; }
.wave-2 { animation: wave 9s ease-in-out infinite reverse; opacity: 0.3; height: 70px; bottom: 12px; }
.wave-3 { animation: wave 11s ease-in-out infinite; opacity: 0.2; height: 90px; bottom: 24px; }

@keyframes wave {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50%      { transform: translateY(-8px) scaleY(1.1); }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: linear-gradient(to bottom, rgba(10, 35, 66, 0.95), rgba(10, 35, 66, 0.7));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold-light);
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.logo-mark { font-size: 28px; }

.navbar-links {
  display: flex;
  list-style: none;
  gap: 28px;
}
.navbar-links a {
  font-family: var(--font-title);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--parchment);
  position: relative;
  transition: color 0.2s;
}
.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}
.navbar-links a:hover { color: var(--gold-light); }
.navbar-links a:hover::after { width: 100%; }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-large { padding: 16px 32px; font-size: 16px; }

.btn-wood {
  background: linear-gradient(180deg, var(--wood-light) 0%, var(--wood) 50%, var(--wood-dark) 100%);
  color: var(--parchment);
  border-color: var(--wood-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 8px rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.btn-wood:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 16px rgba(0, 0, 0, 0.5), 0 0 24px rgba(201, 162, 39, 0.3);
  color: var(--gold-light);
}

.btn-parchment {
  background: linear-gradient(180deg, var(--parchment) 0%, var(--parchment-dk) 100%);
  color: var(--wood-dark);
  border-color: var(--wood);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 8px rgba(0, 0, 0, 0.2);
}
.btn-parchment:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  color: var(--ink);
}

/* ============================================================
   SECTIONS — header commun
   ============================================================ */
.section {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.section-ornament {
  color: var(--gold);
  font-size: 28px;
  text-shadow: 0 0 12px rgba(201, 162, 39, 0.4);
}

.section-title {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--gold-light);
  letter-spacing: 3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 30px rgba(244, 211, 94, 0.2);
}

.section-lead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
  font-size: 19px;
  font-style: italic;
  line-height: 1.7;
  color: var(--sea-foam);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(to top, var(--ocean-deep) 0%, transparent 100%);
  padding: 60px 40px 30px;
  text-align: center;
  border-top: 1px solid rgba(201, 162, 39, 0.3);
  margin-top: 60px;
}

.footer-content { max-width: 800px; margin: 0 auto; }
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold-light);
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.footer-tagline {
  font-family: var(--font-script);
  font-style: italic;
  color: var(--sea-foam);
  margin-bottom: 20px;
}
.footer-credits {
  font-size: 13px;
  color: rgba(179, 224, 230, 0.6);
  letter-spacing: 1px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .navbar { padding: 12px 16px; }
  .navbar-links { display: none; }
  .section { padding: 60px 20px; }
  .section-title { font-size: 36px; }
}
