/* ═══════════════════════════════════════════════════════════
   BASKET AMPLITUDE v2 — style.css
   Feuille de style partagée (header, footer, utilitaires)
═══════════════════════════════════════════════════════════ */

/* ── Polices locales ── */
@font-face {
  font-family: 'AlteHaasGrotesk';
  src: url('../fonts/AlteHaasGroteskBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TimesItalic';
  src: url('../fonts/TimesNewRomanBoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ══════════════════════════════════════
   RESET & ROOT
══════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ── Palette ── */
  --brown-red:   #9F2124;
  --burnt-peach: #D26E4A;
  --alabaster:   #E8E4E1;
  --strawberry:  #FF073A;
  --midnight:    #2A0A16;

  /* ── Fonds ── */
  --bg:  #F2EDE8;
  --bg2: #EAE4DE;

  /* ── Glass ── */
  --glass-bg:           rgba(255,255,255,0.55);
  --glass-bg-hover:     rgba(255,255,255,0.72);
  --glass-border:       rgba(0,0,0,0.08);
  --glass-border-strong:rgba(0,0,0,0.14);

  /* ── Texte ── */
  --text:        #1a0a0f;
  --text-muted:  rgba(26,10,15,0.5);
  --text-muted2: rgba(26,10,15,0.3);

  /* ── Accents ── */
  --accent:  #9F2124;
  --accent2: #D26E4A;

  /* ── Rayons ── */
  --radius-card: 20px;
  --radius-pill: 40px;

  /* ── Typographies ── */
  --font-display: 'AlteHaasGrotesk', 'Arial Black', sans-serif;
  --font-italic:  'TimesItalic', 'Times New Roman', serif;
  --font-body:    'DM Sans', sans-serif;

  /* ── Ombres ── */
  --shadow-glass: 0 4px 24px rgba(42,10,22,0.08), inset 0 1px 0 rgba(255,255,255,0.7);
  --shadow-card:  0 2px 16px rgba(42,10,22,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Ambient gradient blobs */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 10% 15%, rgba(159,33,36,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 90% 80%, rgba(210,110,74,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 35% 30% at 60% 40%, rgba(255,7,58,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════
   TRANSITIONS DE PAGE
══════════════════════════════════════ */
.page-wrapper {
  animation: pageIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Fade-out avant navigation */
body.page-leaving .page-wrapper {
  animation: pageOut 0.25s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes pageOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
header {
  position: fixed;
  top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 48px);
  max-width: 1100px;
  background: rgba(242,237,232,0.82);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 16px;
  box-shadow: var(--shadow-glass);
  transition: box-shadow 0.3s;
}

header.scrolled {
  box-shadow: 0 8px 40px rgba(42,10,22,0.14), inset 0 1px 0 rgba(255,255,255,0.7);
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  height: 36px;
}
.header-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
nav a {
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
nav a:hover { color: var(--text); background: rgba(0,0,0,0.05); }
nav a.active {
  color: var(--text);
  background: rgba(0,0,0,0.07);
  font-weight: 600;
}

/* Dot indicateur page active */
/* nav a.active::after — dot supprimé */

/* ── Barre de recherche ── */
.search-wrapper { position: relative; display: flex; align-items: center; }
.search-wrapper input {
  font-family: var(--font-body);
  font-size: 0.8rem;
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 7px 14px 7px 32px;
  width: 160px;
  outline: none;
  color: var(--text);
  transition: width 0.3s, background 0.2s, border-color 0.2s;
}
.search-wrapper input:focus {
  width: 210px;
  background: rgba(0,0,0,0.07);
  border-color: var(--glass-border-strong);
}
.search-wrapper input::placeholder { color: var(--text-muted2); }
.search-icon { position: absolute; left: 10px; pointer-events: none; color: var(--text-muted2); }

.search-results {
  position: absolute;
  top: calc(100% + 10px); right: 0;
  width: 280px;
  background: rgba(242,237,232,0.97);
  border: 1px solid var(--glass-border-strong);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(42,10,22,0.15);
  overflow: hidden;
  display: none;
  backdrop-filter: blur(20px);
  z-index: 300;
}
.search-results.visible { display: block; }
.search-result-item {
  padding: 11px 16px;
  font-size: 0.8rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
  text-decoration: none;
}
.search-result-item:hover { background: rgba(0,0,0,0.04); }
.search-result-item .tag {
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-left: 8px;
}
.search-no-result {
  padding: 14px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Burger mobile ── */
.burger { display: none; }
.mobile-nav { display: none; }

/* ══════════════════════════════════════
   FIL D'ARIANE (BREADCRUMB)
══════════════════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted2);
  margin-bottom: 20px;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep {
  color: var(--text-muted2);
  font-size: 0.65rem;
}
.breadcrumb .current {
  color: var(--text);
  font-weight: 500;
}

/* ══════════════════════════════════════
   PAGE LAYOUT
══════════════════════════════════════ */
.page {
  position: relative;
  z-index: 1;
  padding-top: 88px;
}

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

/* ══════════════════════════════════════
   TITRES DE SECTION
══════════════════════════════════════ */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 28px;
}
.section-title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 700;
  color: var(--text-muted);
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  display: block;
  width: 16px; height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}

/* ══════════════════════════════════════
   BOUTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  border: none;
  letter-spacing: 0.01em;
}
.btn-accent {
  background: var(--accent);
  color: white;
  font-weight: 600;
}
.btn-accent:hover {
  background: #b52628;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(159,33,36,0.35);
}
.btn-glass {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn-glass:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border-strong);
  color: var(--text);
}
.btn-outline:hover {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════
   CARDS UTILITAIRES
══════════════════════════════════════ */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-glass);
}

.glass-card:hover {
  border-color: var(--glass-border-strong);
  box-shadow: 0 6px 28px rgba(42,10,22,0.1);
}

/* ══════════════════════════════════════
   BADGE / PILL
══════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.badge-live {
  background: rgba(159,33,36,0.18);
  border: 1px solid rgba(159,33,36,0.35);
  color: #ffb3a0;
}
.badge-live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--strawberry);
  animation: pulse 2s infinite;
}
.badge-dark {
  background: rgba(42,10,22,0.08);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}

/* ══════════════════════════════════════
   PARTENAIRES — frise défilante
══════════════════════════════════════ */
#partenaires { padding: 60px 0; }

.partners-track-wrapper {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.partners-track {
  display: flex;
  gap: 48px;
  align-items: center;
  width: max-content;
  animation: scrollLeft 28s linear infinite;
}
.partners-track:hover { animation-play-state: paused; }
.partner-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.3) opacity(0.7);
  transition: filter 0.3s;
  flex-shrink: 0;
}
.partner-logo:hover { filter: grayscale(0) opacity(1); }

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  background: var(--midnight);
  padding: 52px 0 32px;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(159,33,36,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 28px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.footer-brand-logo img {
  height: 52px;
  width: auto;
  opacity: 0.9;
  object-fit: contain;
}
.footer-brand p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  max-width: 260px;
}

.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: all 0.2s;
}
.footer-social a:hover {
  background: rgba(159,33,36,0.3);
  border-color: rgba(159,33,36,0.5);
  color: white;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.9); }

.footer-address-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.footer-address-item svg { flex-shrink: 0; margin-top: 2px; color: var(--accent2); }
.footer-address-item span { font-size: 0.82rem; color: rgba(255,255,255,0.45); line-height: 1.6; }

.footer-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.72rem; color: rgba(255,255,255,0.18); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.18);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.45); }

/* ══════════════════════════════════════
   ANIMATIONS UTILITAIRES
══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.6s cubic-bezier(0.4,0,0.2,1) both;
}
.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.2s; }
.fade-up-d3 { animation-delay: 0.3s; }
.fade-up-d4 { animation-delay: 0.4s; }

/* Intersection Observer classes */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ══════════════════════════════════════
   FORMULAIRES (partagé)
══════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-group label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.87rem;
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.6);
  box-shadow: 0 0 0 3px rgba(159,33,36,0.1);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.btn-form {
  background: var(--accent);
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  padding: 13px 24px;
  font-size: 0.88rem;
  border-radius: var(--radius-pill);
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
}
.btn-form:hover {
  background: #b52628;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(159,33,36,0.35);
}
.btn-form:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px 24px;
}
.form-success .success-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(159,33,36,0.1);
  border: 1px solid rgba(159,33,36,0.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.form-success p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════
   HERO CARDS (partagé)
══════════════════════════════════════ */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(159,33,36,0.22);
  border: 1px solid rgba(159,33,36,0.4);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffb3a0;
  margin-bottom: 20px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--strawberry);
  animation: pulse 2s infinite;
}

/* ══════════════════════════════════════
   SOCIAL BUTTONS (partagé)
══════════════════════════════════════ */
.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.social-btn:hover {
  background: rgba(255,255,255,0.2);
  color: white;
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   RESPONSIVE MOBILE — HEADER
══════════════════════════════════════ */
@media (max-width: 600px) {
  header {
    top: 10px;
    width: calc(100% - 24px);
    height: 50px;
    padding: 0 12px;
    gap: 0;
    justify-content: space-between;
  }
  nav { display: none; }
  .search-wrapper { display: none; }

  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    cursor: pointer;
    padding: 4px;
    border-radius: 10px;
    background: rgba(0,0,0,0.05);
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
  }
  .burger span {
    display: block;
    width: 18px; height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
  }
  .burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .mobile-nav {
    position: fixed;
    top: 72px; left: 12px; right: 12px;
    background: rgba(242,237,232,0.97);
    border: 1px solid var(--glass-border-strong);
    border-radius: 20px;
    padding: 8px;
    z-index: 190;
    display: flex;
    flex-direction: column;
    gap: 4px;
    backdrop-filter: blur(24px);
    box-shadow: 0 16px 48px rgba(42,10,22,0.18);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), opacity 0.25s;
  }
  .mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .mobile-nav a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 14px;
    transition: background 0.2s, color 0.2s;
  }
  .mobile-nav a:hover,
  .mobile-nav a.active {
    background: rgba(0,0,0,0.05);
    color: var(--text);
  }
  .mobile-nav-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(0,0,0,0.04);
    border-radius: 14px;
    margin-top: 4px;
  }
  .mobile-nav-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text);
  }
  .mobile-nav-search input::placeholder { color: var(--text-muted2); }

  .page { padding-top: 72px; }
  .container { padding: 0 14px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; margin-bottom: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  .form-row { grid-template-columns: 1fr; }
  .section-title { font-size: clamp(1.7rem, 8vw, 2.4rem); margin-bottom: 18px; }
}
