/* =========================================
   LES AMI(E)S DU PORT — Design System
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --navy:       #0d2b45;
  --navy-light: #1a3d5c;
  --teal:       #2e7d7d;
  --teal-light: #3d9999;
  --sand:       #e8d5b7;
  --sand-light: #f5ede0;
  --cream:      #f9f5f0;
  --gold:       #c9a96e;
  --gold-light: #dfc190;
  --white:      #ffffff;
  --text-dark:  #1a2530;
  --text-mid:   #4a5568;
  --text-light: #718096;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 2px 8px rgba(13,43,69,0.08);
  --shadow-md:  0 8px 30px rgba(13,43,69,0.12);
  --shadow-lg:  0 20px 60px rgba(13,43,69,0.18);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.25; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { font-size: 1rem; color: var(--text-mid); }
.serif { font-family: var(--font-serif); }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 43, 69, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,169,110,0.15);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(13, 43, 69, 0.98);
  box-shadow: var(--shadow-md);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(201,169,110,0.4);
}
.nav-brand-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}
.nav-brand-name span {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(201,169,110,0.18);
}
.nav-links a.active {
  color: var(--gold-light);
}
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
}
.nav-cta:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  text-align: center;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,169,110,0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* --- Section Layout --- */
.section {
  padding: clamp(60px, 8vw, 100px) 5%;
}
.section-center { text-align: center; }
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(46,125,125,0.1);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-tag.gold {
  color: var(--gold);
  background: rgba(201,169,110,0.12);
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 640px;
  margin: 0 auto;
  margin-top: 12px;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.glass-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
}

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

/* --- Divider --- */
.wave-divider { width: 100%; overflow: hidden; line-height: 0; }
.wave-divider svg { display: block; }

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}
.badge-gold  { background: var(--gold); color: var(--navy); }
.badge-teal  { background: var(--teal); color: var(--white); }
.badge-navy  { background: var(--navy); color: var(--white); }
.badge-sand  { background: var(--sand); color: var(--navy); }

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Footer --- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 60px 5% 30px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 280px;
}
.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 8px;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--white); padding-left: 4px; }
.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.3);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(13,43,69,0.98);
    padding: 20px 5%;
    gap: 4px;
  }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}
