/* ═══════════════════════════════════════════
   GLOBAL.CSS — EZOA Design System
   Variables + Reset + Composants partagés
═══════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --teal:     #51AA99;
  --teal-d:   #3D8A7C;
  --teal-l:   #D4EDE8;
  --teal-xl:  #EBF5F3;
  --cream:    #FDF3F0;
  --sage:     #C8DDD8;
  --sage-l:   #E8F2EF;
  --dark:     #2C3338;
  --mid:      #6B5B52;
  --light:    #FAF5F2;
  --white:    #FFFFFF;
  --serif:    'Cormorant', Georgia, serif;
  --sans:     'Jost', sans-serif;
  --ease:     cubic-bezier(.25,.46,.45,.94);
  --shadow:   0 8px 32px rgba(44,51,56,.1);
  --r:        20px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--dark);
  font-size: 18px;
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes floatOrb {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-18px) scale(1.04); }
}
@keyframes drawLine {
  from { stroke-dashoffset: 300; }
  to   { stroke-dashoffset: 0; }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── TOPBAR ── */
.topbar {
  background: var(--teal);
  padding: 9px 48px;
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: center;
}
.topbar a {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color .2s;
}
.topbar a:hover { color: #fff; }
.topbar-sep {
  width: 1px; height: 14px;
  background: rgba(255,255,255,.3);
}
.topbar-icon {
  width: 16px; height: 16px;
  opacity: .8;
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253,243,240,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(81,170,153,.15);
  padding: 0 48px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow .3s;
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(44,51,56,.08);
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  cursor: pointer;
}
.logo-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--dark);
  line-height: 1;
}
.logo-bar {
  width: 28px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
}
.logo-tag {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mid);
  opacity: .7;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links > li {
  position: relative;
}
.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--dark);
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.nav-links > li > a:hover {
  background: var(--teal-xl);
  color: var(--teal-d);
}
.nav-links > li > a svg {
  width: 12px; height: 12px;
  transition: transform .2s;
}
.nav-links > li:hover > a svg { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--white);
  border-radius: 14px;
  border: 1px solid rgba(81,170,153,.15);
  box-shadow: 0 12px 40px rgba(44,51,56,.12);
  padding: 10px;
  min-width: 230px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
/* Pont invisible pour garder le hover entre le lien et le dropdown */
.nav-links > li > a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -10px;
  height: 10px;
}
.nav-links > li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid);
  opacity: .6;
  padding: 6px 10px 2px;
}
.nav-dropdown-sep {
  height: 1px;
  background: var(--teal-l);
  margin: 6px 4px;
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--dark);
  transition: background .15s;
}
.nav-dropdown a:hover { background: var(--teal-xl); }
.nav-dropdown a .dd-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.nav-dropdown a .dd-new {
  margin-left: auto;
  font-size: 9px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  background: var(--teal); color: #fff;
  padding: 2px 7px; border-radius: 100px;
}
.dd-tags {
  margin-left: auto;
  display: flex;
  gap: 3px;
}
.dd-tag {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .3px;
  padding: 2px 6px;
  border-radius: 100px;
  white-space: nowrap;
}
.dd-tag.dom { background: var(--teal-xl); color: var(--teal-d); }
.dd-tag.cab { background: #F0EBF8; color: #5B4A8A; }
.dd-tag.vis { background: #FDF7E3; color: #8B7328; }

/* CTA button */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--teal);
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 100px !important;
  font-size: 13.5px !important;
  font-weight: 500;
  transition: background .2s, transform .2s !important;
  box-shadow: 0 4px 16px rgba(81,170,153,.35);
}
.nav-cta:hover {
  background: var(--teal-d) !important;
  transform: translateY(-1px) !important;
}
.nav-cta-secondary {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent !important;
  color: var(--teal) !important;
  border: 1.5px solid var(--teal) !important;
  padding: 9px 20px !important;
  border-radius: 100px !important;
  font-size: 13.5px !important;
  font-weight: 500;
  transition: background .2s, color .2s, transform .2s !important;
}
.nav-cta-secondary:hover {
  background: var(--teal-xl) !important;
  color: var(--teal-d) !important;
  transform: translateY(-1px) !important;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s;
}

/* ── SHARED BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #fff;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15.5px;
  font-weight: 500;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 6px 20px rgba(81,170,153,.35);
}
.btn-primary:hover {
  background: var(--teal-d);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(81,170,153,.4);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dark);
  font-size: 15.5px;
  font-weight: 400;
  padding: 14px 0;
  border-bottom: 1.5px solid var(--teal);
  transition: color .2s, gap .2s;
}
.btn-secondary:hover {
  color: var(--teal-d);
  gap: 12px;
}
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--teal-d) !important;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15.5px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.2);
}
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(255,255,255,.6);
  color: #fff;
  padding: 13px 26px;
  border-radius: 100px;
  font-size: 15.5px;
  font-weight: 400;
  transition: background .2s, border-color .2s;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}

/* ── SECTION TAG ── */
.s-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.s-tag::before {
  content: '';
  width: 22px; height: 1.5px;
  background: var(--teal);
}

/* ── BLOC DISPONIBILITÉ ── */
.dispo-banner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 48px 60px;
  position: relative;
  z-index: 3;
}
.dispo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.dispo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 28px 20px;
  background: var(--white);
  border-radius: 18px;
  border: 1px solid rgba(81,170,153,.1);
  transition: transform .3s, box-shadow .3s;
}
.dispo-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(81,170,153,.12);
}
.dispo-item-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 4px;
}
.dispo-item:nth-child(1) .dispo-item-icon { background: var(--teal-xl); }
.dispo-item:nth-child(2) .dispo-item-icon { background: #F0EBF8; }
.dispo-item:nth-child(3) .dispo-item-icon { background: #FDF7E3; }
.dispo-item-label {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--dark);
}
.dispo-item-zone {
  font-size: 14px;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.5;
}
@media (max-width: 768px) {
  .dispo-banner { padding: 0 20px 40px; }
  .dispo-strip { grid-template-columns: 1fr; gap: 12px; }
  .dispo-item { padding: 22px 18px; }
}

/* ── SECTION HEADER ── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 52px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-header-left .s-tag {
  margin-bottom: 10px;
}
.section-header-left h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--dark);
}
.section-header-left h2 em { font-style: italic; color: var(--teal-d); }
.section-header .see-all {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--teal-d);
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 1px solid var(--teal-l);
  padding-bottom: 2px;
  transition: gap .2s, color .2s;
}
.section-header .see-all:hover { gap: 12px; color: var(--teal); }

/* ── FOOTER ── */
footer {
  background: var(--cream);
  padding: 64px 48px 32px;
  color: var(--mid);
  border-top: 1px solid rgba(81,170,153,.12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo-name { color: var(--dark); font-size: 22px; }
.footer-brand .logo-bar { background: var(--teal); }
.footer-brand .logo-tag { color: var(--mid); opacity: .6; }
.footer-brand p {
  font-size: 16px;
  color: var(--mid);
  font-weight: 300;
  line-height: 1.8;
  margin-top: 16px;
  max-width: 260px;
}
.footer-contact {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact a {
  font-size: 15.5px;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .2s;
}
.footer-contact a:hover { color: var(--teal-d); }
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-d);
  opacity: .6;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 16px;
  color: var(--mid);
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--teal-d); }
.footer-hours {
  font-size: 16px;
  color: var(--mid);
  line-height: 2;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(81,170,153,.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--mid);
  opacity: .6;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 2000;
  padding: 80px 28px 40px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-xl);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: var(--teal-d);
}
.mobile-menu a {
  font-size: 16px;
  font-weight: 400;
  color: var(--dark);
  padding: 12px 0;
  border-bottom: 1px solid rgba(200,221,216,.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid);
  opacity: .6;
  padding: 16px 0 4px;
}
.mobile-cta {
  margin-top: 20px;
  background: var(--teal) !important;
  color: #fff !important;
  padding: 14px 24px !important;
  border-radius: 100px !important;
  border-bottom: none !important;
  text-align: center !important;
  justify-content: center !important;
  font-weight: 600 !important;
}

/* ── RESPONSIVE GLOBAL ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .topbar { padding: 8px 20px; }
  .topbar-sep { display: none; }
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  footer { padding: 48px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
}
