/* ====================================================
   ELMA GROUPE BIO — CSS commun
   Palette : aquatique (bleu-vert eau/vapeur + blanc cassé)
   Ton : mix pro / familial
==================================================== */

:root {
  /* Palette aquatique */
  --deep: #0A2540;
  --ocean: #1B5E7E;
  --ocean-dark: #134B66;
  --teal: #3B8C8C;
  --mint: #7BC4B8;
  --vapor: #D8EDE8;
  --cream: #F8F5EE;
  --cream-deep: #F2EDE0;
  --sand: #EFE8DA;
  --gold: #C9A227;
  --gold-soft: #E5C76B;
  --coral: #E07856;
  --coral-soft: #F2A88E;

  --ink: #0F1B2D;
  --ink-soft: #3A4A5E;
  --ink-muted: #6B7A8C;
  --line: rgba(27, 94, 126, 0.12);
  --line-soft: rgba(27, 94, 126, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--deep);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== UTILS ===== */
.fr-italic {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.text-ocean { color: var(--ocean); }
.text-teal { color: var(--teal); }

/* ====================================================
   NAV
==================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(248, 245, 238, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft);
  transition: padding 0.3s ease;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--deep);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--mint), var(--ocean) 70%, var(--deep));
  position: relative;
  box-shadow:
    inset -2px -2px 6px rgba(0,0,0,0.2),
    0 4px 12px rgba(27, 94, 126, 0.25);
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 30%, rgba(255,255,255,0.5), transparent 60%);
}
.logo-mark::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: blur(1px);
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ocean); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--ocean);
  transition: width 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.cta-nav {
  background: var(--deep);
  color: var(--cream);
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s;
  letter-spacing: 0.02em;
}
.cta-nav:hover {
  background: var(--ocean);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(10, 37, 64, 0.25);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: var(--deep);
  transition: all 0.3s;
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.menu-toggle.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 24px;
  z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu a {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--deep);
  border-radius: 12px;
  transition: background 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active {
  background: var(--vapor);
  color: var(--ocean);
}
.mobile-menu .cta-nav {
  display: inline-block;
  margin-top: 12px;
}

/* ====================================================
   BUTTONS
==================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}
.btn-primary {
  background: var(--deep);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--ocean);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10, 37, 64, 0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--deep);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--ocean);
  background: var(--vapor);
}
.btn-coral {
  background: var(--coral);
  color: var(--cream);
}
.btn-coral:hover {
  background: #D66745;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(224, 120, 86, 0.35);
}
.btn .arrow { transition: transform 0.3s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ====================================================
   SECTIONS COMMUNES
==================================================== */
.section {
  padding: 120px 0;
  position: relative;
}
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
}
.section-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  margin-bottom: 24px;
  max-width: 900px;
  color: var(--deep);
}
.section-title em {
  font-style: italic;
  color: var(--ocean);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.section-lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 60px;
}

/* ====================================================
   PAGE HEADER (pour pages internes)
==================================================== */
.page-header {
  padding: 160px 0 80px;
  background:
    radial-gradient(ellipse 80% 60% at 80% 30%, rgba(123, 196, 184, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 80% at 10% 90%, rgba(216, 237, 232, 0.4), transparent 50%),
    var(--cream);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(27, 94, 126, 0.08) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}
.page-header-inner {
  position: relative;
  z-index: 1;
  text-align: left;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(27, 94, 126, 0.06);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: 28px;
}
.breadcrumb .sep {
  opacity: 0.4;
}
.page-title {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  margin-bottom: 24px;
  color: var(--deep);
}
.page-title em {
  font-style: italic;
  color: var(--ocean);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.page-lead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ====================================================
   FOOTER
==================================================== */
footer {
  background: var(--deep);
  color: var(--cream);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(216, 237, 232, 0.1);
}
.footer-brand .logo {
  color: var(--cream);
  margin-bottom: 20px;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(248, 245, 238, 0.65);
  max-width: 320px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(216, 237, 232, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: var(--cream);
}
.footer-socials a:hover {
  background: var(--mint);
  color: var(--deep);
  transform: translateY(-2px);
}
.footer-socials svg { width: 18px; height: 18px; }
.footer-col h5 {
  font-family: 'Fraunces', serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  color: var(--cream);
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a, .footer-col span {
  font-size: 14px;
  color: rgba(248, 245, 238, 0.6);
  transition: color 0.2s;
  line-height: 1.5;
}
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom > span {
  font-size: 13px;
  color: rgba(248, 245, 238, 0.4);
}
.footer-bottom-links a {
  font-size: 13px;
  color: rgba(248, 245, 238, 0.5);
  margin-left: 24px;
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--cream); }

/* ====================================================
   FOOTER — Opérations spéciales (bandeau saisonnier)
==================================================== */
.footer-ops {
  margin-top: 40px;
  padding: 18px 24px;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.12), rgba(201, 162, 39, 0.04));
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-ops-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C9A227;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-ops-label::before {
  content: '🥂';
  font-size: 16px;
}
.footer-ops-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(248, 245, 238, 0.7);
  line-height: 1.4;
}
.footer-ops-content strong {
  color: var(--cream);
  font-weight: 500;
}
.footer-ops-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(201, 162, 39, 0.15);
  border: 1px dashed rgba(201, 162, 39, 0.4);
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 12px;
  color: #E5C76B;
  letter-spacing: 0.05em;
}
.footer-ops-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid rgba(201, 162, 39, 0.5);
  color: #E5C76B;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
}
.footer-ops-cta:hover {
  background: rgba(201, 162, 39, 0.15);
  border-color: #C9A227;
  color: #F5EFE2;
  transform: translateY(-1px);
}
.footer-ops-cta svg { width: 12px; height: 12px; transition: transform 0.3s; }
.footer-ops-cta:hover svg { transform: translateX(3px); }

@media (max-width: 768px) {
  .footer-ops { flex-direction: column; align-items: flex-start; padding: 20px; }
  .footer-ops-content { font-size: 12px; }
  .footer-ops-cta { width: 100%; justify-content: center; }
}

/* ====================================================
   ANIMATIONS
==================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.1); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====================================================
   RESPONSIVE
==================================================== */
@media (max-width: 968px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .section { padding: 80px 0; }
  .page-header { padding: 130px 0 60px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .container, .container-narrow { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom-links a { margin-left: 0; margin-right: 24px; }
}
