/* ═══════════════════════════════════════════════════════════
   ARCHIPEL HORIZON — Design System
   ═══════════════════════════════════════════════════════════ */

/* ─── Variables ─── */
:root {
  --noir: #1a1a1a;
  --blanc: #fafaf8;
  --orange: #8B2D3A;
  --orange-light: #f5e8ea;
  --orange-dark: #6e2230;
  --gris: #6b6b6b;
  --gris-light: #f2f0ed;
  --gris-border: #e0ddd8;
  --vert: #2d8a5e;
  --vert-light: #eaf5f0;
  --bleu: #2d5fe8;
  --bleu-light: #eaefff;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.08);
  --shadow-orange: 0 8px 24px rgba(232,101,45,0.2);
  --transition: 0.25s ease;
}

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

/* ─── Base ─── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--blanc);
  color: var(--noir);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Typography ─── */
.serif { font-family: 'DM Serif Display', serif; }

.label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--orange);
  margin-bottom: 14px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  line-height: 1;
}

.btn-primary {
  background: var(--orange);
  color: white;
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}

.btn-secondary {
  background: white;
  color: var(--noir);
  border: 1px solid var(--gris-border);
}

.btn-secondary:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--orange);
  padding: 15px 0;
}

.btn-ghost:hover {
  color: var(--orange-dark);
}

/* ─── Navigation ─── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(224,221,216,0.5);
  transition: box-shadow var(--transition);
}

.site-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--noir);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo em {
  color: var(--orange);
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  color: var(--gris);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--noir);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
}

.nav-cta {
  background: var(--orange) !important;
  color: white !important;
  padding: 9px 22px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  transition: all var(--transition) !important;
}

.nav-cta:hover {
  background: var(--orange-dark) !important;
  transform: translateY(-1px);
}

/* ─── Dropdown Nav ─── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown > a::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover > a::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid var(--gris-border);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 280px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-item {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--noir);
  text-decoration: none;
  transition: background 0.15s ease;
}

.dropdown-item:hover {
  background: var(--gris-light);
}

.dropdown-item .dd-title {
  font-weight: 600;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-item .dd-desc {
  font-size: 0.78rem;
  color: var(--gris);
}

.dropdown-item.soon {
  opacity: 0.45;
  pointer-events: none;
}

.dropdown-item.soon .dd-title::after {
  content: 'bientot';
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--gris-light);
  color: var(--gris);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--noir);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--gris-border);
  padding: 48px 24px 28px;
  background: var(--blanc);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--gris-border);
}

.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--gris);
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gris);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: var(--noir);
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--orange);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gris);
}

.footer-bottom a {
  color: var(--gris);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--orange);
}

/* ─── Cards ─── */
.card {
  background: white;
  border: 1px solid var(--gris-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--orange);
  box-shadow: 0 12px 40px rgba(232,101,45,0.08);
  transform: translateY(-4px);
}

/* ─── Badge / Pill ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--gris-border);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gris);
}

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Utility ─── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.text-gris { color: var(--gris); }
.text-orange { color: var(--orange); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--blanc);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    padding: 0 0 0 16px;
  }

  .dropdown-item {
    padding: 8px 12px;
  }
}

/* ─── Nav overlay for mobile ─── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ─── Accessibility ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
  border-radius: 4px;
}
