/* ═══════════════════════════════════════════════════════════════
   STYLES GÉNÉRAUX — MODELIST AI
   Basé sur la structure de Nu Muy Deme
   Couleurs : violet #431AA2, cyan #29D6E1
   ═══════════════════════════════════════════════════════════════ */

/* ─── VARIABLES ─────────────────────────────────────────────── */
:root {
  --c-primary:   #431AA2;
  --c-secondary: #5B29D6;
  --c-accent:    #29D6E1;
  --c-accent-lt: rgba(41,214,225,0.12);
  --c-bg:        #ffffff;
  --c-bg2:       #f8f6fc;
  --c-bg3:       #f0ebf5;
  --c-text:      #1A0A2E;
  --c-muted:     #6B4F8A;
  --c-dim:       #a080b0;
  --c-border:    #e8e0f0;
  --c-white:     #ffffff;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm:  0 2px 10px rgba(67,26,162,0.06);
  --shadow-md:  0 8px 28px rgba(67,26,162,0.12);
  --shadow-lg:  0 16px 48px rgba(67,26,162,0.18);

  --ease-out: cubic-bezier(.25,.46,.45,.94);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);

  --sp-xs:  clamp(8px,  1.5vw, 14px);
  --sp-sm:  clamp(12px, 2vw,   20px);
  --sp-md:  clamp(20px, 3vw,   36px);
  --sp-lg:  clamp(32px, 5vw,   60px);
  --sp-xl:  clamp(48px, 7vw,   90px);

  --text-xs:  clamp(10px, 1.1vw, 11.5px);
  --text-sm:  clamp(11px, 1.3vw, 13px);
  --text-md:  clamp(13px, 1.5vw, 15px);
  --text-lg:  clamp(15px, 2vw,   18px);
  --text-xl:  clamp(1.4rem, 3.5vw, 2.2rem);
  --text-2xl: clamp(1.8rem, 4.5vw, 3.4rem);
}

/* ─── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color .2s, background .2s, opacity .2s; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ─── CONTENEUR ──────────────────────────────────────────────── */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

/* ─── TOAST ──────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: clamp(16px, 4vw, 28px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  align-items: center;
  width: min(92vw, 420px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toastIn .35s var(--ease-out);
  width: 100%;
  justify-content: center;
}

.toast.out   { animation: toastOut .3s ease forwards; }
.toast-success { background: #1a6b3c; }
.toast-error   { background: #c0392b; }
.toast-info    { background: var(--c-primary); }

@keyframes toastIn  { from { opacity:0; transform:translateY(18px) scale(.96); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes toastOut { to   { opacity:0; transform:translateY(12px) scale(.95); } }

/* ─── SCROLL TOP ─────────────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: clamp(70px, 12vw, 90px);
  right: clamp(14px, 3vw, 24px);
  z-index: 998;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, background .2s;
  pointer-events: none;
}

#scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#scroll-top:hover   { background: var(--c-accent); }

/* ─── TOP INFO ───────────────────────────────────────────────── */
#top-info {
  background: var(--c-bg2);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-xs) 0;
}

#top-info .wrap {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.top-coords {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 3vw, 30px);
  flex: 1;
  flex-wrap: wrap;
}

.top-coord-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.top-coord-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--c-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.top-coord-item p    { font-size: var(--text-xs); color: var(--c-muted); line-height: 1.45; }
.top-coord-item strong { font-size: var(--text-xs); color: var(--c-text); display: block; font-weight: 700; }
.top-coord-item a    { color: var(--c-accent); }

.top-horaires { margin-left: auto; text-align: right; flex-shrink: 0; }
.top-horaires strong { display: block; font-size: var(--text-xs); font-weight: 700; color: var(--c-text); margin-bottom: 2px; }
.top-horaires p      { font-size: var(--text-xs); color: var(--c-muted); line-height: 1.5; }

/* ─── NAVIGATION ─────────────────────────────────────────────── */
#main-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 6px rgba(67,26,162,0.08);
  transition: box-shadow .3s ease, background .3s ease;
}

#main-header .wrap {
  display: flex;
  align-items: center;
  min-height: 62px;
  gap: 0;
}

.nav-logo {
  flex-shrink: 0;
  margin-right: clamp(16px, 3vw, 32px);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.nav-logo-mark {
  width: 44px;
  height: 44px;
  background: var(--c-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius-sm); }

.nav-logo-text {
  color: var(--c-text);
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: clamp(12px, 1.5vw, 15px);
  line-height: 1.2;
}
.nav-logo-text span { display: block; font-size: clamp(9px, 1vw, 11px); font-weight: 500; opacity: .7; font-family: 'Open Sans', sans-serif; }

nav.main-nav { display: flex; align-items: stretch; flex: 1; }
nav.main-nav > ul { display: flex; align-items: stretch; }
nav.main-nav > ul > li { position: relative; }

nav.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 clamp(10px, 1.5vw, 18px);
  color: var(--c-muted);
  font-size: clamp(12px, 1.3vw, 14px);
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s, background .2s;
  min-height: 62px;
  cursor: pointer;
}

nav.main-nav > ul > li > a:hover,
nav.main-nav > ul > li.nav-active > a { color: var(--c-text); background: var(--c-primary); color: #fff; }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-top: 3px solid var(--c-accent);
  min-width: 220px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, visibility .2s, transform .2s;
  z-index: 600;
}

nav.main-nav > ul > li:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
  cursor: pointer;
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { background: var(--c-primary); color: #fff; }

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(67,26,162,0.08);
  color: var(--c-text);
}
.nav-toggle:hover { background: rgba(67,26,162,0.15); }

#mobile-menu { display: none; background: #ffffff; border-bottom: 2px solid var(--c-primary); }
#mobile-menu.open { display: block; }
#mobile-menu ul { padding: 8px 0; }
#mobile-menu li a {
  display: block;
  padding: 12px 24px;
  color: var(--c-muted);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--c-border);
  cursor: pointer;
}
#mobile-menu li a:hover { background: var(--c-primary); color: #fff; }
#mobile-menu .sub { padding-left: 38px; background: rgba(67,26,162,0.04); }

/* ─── BANDEAU ALERTE ─────────────────────────────────────────── */
#alert-banner {
  background: var(--c-primary);
  color: #fff;
  padding: 11px 0;
  position: relative;
  /* display: none; ← SUPPRIMÉ pour que le bandeau s'affiche */
}

.alert-inner    { display: flex; align-items: center; gap: 14px; }
.alert-label    { flex-shrink: 0; background: rgba(255,255,255,.2); border-radius: 3px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; white-space: nowrap; }
.alert-text     { font-size: 14px; line-height: 1.4; flex: 1; }
.alert-text a   { color: var(--c-accent); text-decoration: underline; }
.alert-close    { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.alert-close:hover { background: rgba(255,255,255,.32); }

/* ─── EN-TÊTE DE PAGE ────────────────────────────────────────── */
.page-header {
  background: linear-gradient(160deg, var(--c-bg2), #ffffff);
  color: var(--c-text);
  padding: clamp(36px, 6vw, 52px) 0 clamp(28px, 5vw, 44px);
  border-bottom: 1px solid var(--c-border);
}
.page-header .page-tag {
  display: inline-block;
  background: rgba(67,26,162,0.08);
  border: 1px solid rgba(67,26,162,0.15);
  color: var(--c-primary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 5px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.page-header h1 {
  font-family: 'Raleway', sans-serif;
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: 8px;
}
.page-header h1 span { color: var(--c-accent); }
.page-header p  { color: var(--c-muted); font-size: clamp(13px, 1.5vw, 14.5px); max-width: 60ch; }

/* ─── SECTIONS ─────────────────────────────────────────────────── */
.section-title-bar { text-align: center; padding: clamp(30px, 6vw, 48px) 0 clamp(22px, 4vw, 34px); }

.section-title-bar h2 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--c-text);
  text-transform: uppercase;
  letter-spacing: .04em;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.section-title-bar h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 3px;
  background: var(--c-primary);
  border-radius: 2px;
}

.section-title-bar p { font-size: clamp(12px, 1.5vw, 14px); color: var(--c-muted); margin-top: 16px; max-width: 56ch; margin-left: auto; margin-right: auto; }

.btn-see-all {
  display: inline-block;
  border: 2px solid var(--c-primary);
  color: var(--c-primary);
  padding: 10px clamp(20px, 3vw, 32px);
  border-radius: var(--radius-sm);
  font-size: clamp(11px, 1.3vw, 13px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: all .3s var(--ease-out);
  cursor: pointer;
}
.btn-see-all:hover  { background: var(--c-primary); color: #fff; }
.btn-see-all:active { transform: scale(.95); }
.see-all-wrap { text-align: center; margin-top: clamp(20px, 3vw, 30px); }

/* ─── FOOTER ───────────────────────────────────────────────────── */
#site-footer {
  background: var(--c-bg2);
  color: var(--c-muted);
  padding: clamp(32px, 5vw, 46px) 0 0;
  border-top: 1px solid var(--c-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr 1fr 1fr 1.2fr;
  gap: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(24px, 4vw, 36px);
  border-bottom: 1px solid var(--c-border);
}

.footer-brand-logo {
  width: 72px;
  height: 72px;
  background: var(--c-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-brand-logo img { width: 80%; height: 80%; object-fit: contain; }

.footer-col h4 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(11px, 1.2vw, 12.5px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-accent);
  display: inline-block;
}
.footer-col p, .footer-col address { font-size: clamp(12px, 1.3vw, 13px); line-height: 1.75; font-style: normal; }
.footer-col ul { display: flex; flex-direction: column; gap: 7px; }
.footer-col ul a {
  font-size: clamp(12px, 1.3vw, 13px);
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.footer-col ul a::before { content:'›'; font-size:15px; font-weight:700; color:var(--c-accent); }
.footer-col ul a:hover { color: var(--c-text); }

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.social-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--c-muted);
  transition: color .2s;
}
.social-links a:hover { color: var(--c-accent); }
.social-links a svg { width: 18px; height: 18px; flex-shrink: 0; fill: currentColor; }

.footer-coord-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 13px;
}
.footer-coord-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.footer-coord-item p { font-size: clamp(12px, 1.3vw, 13px); line-height: 1.5; }
.footer-coord-item a { color: var(--c-muted); }
.footer-coord-item a:hover { color: var(--c-accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 0;
  font-size: clamp(11px, 1.2vw, 12px);
  color: var(--c-muted);
  border-top: 1px solid var(--c-border);
}
.footer-bottom a { color: var(--c-muted); cursor: pointer; }
.footer-bottom a:hover { color: var(--c-accent); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-credits { font-size: 11px; color: var(--c-dim); text-align: right; }
.footer-credits a { color: var(--c-accent); text-decoration: underline; }
.footer-credits a:hover { color: var(--c-text); }

/* ─── WHATSAPP STICKY ────────────────────────────────────────── */
.wa-sticky {
  position: fixed;
  bottom: clamp(16px, 3.5vw, 24px);
  right: clamp(14px, 3vw, 24px);
  z-index: 999;
}
.wa-sticky a {
  width: clamp(48px, 7vw, 54px);
  height: clamp(48px, 7vw, 54px);
  background: var(--c-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(67,26,162,0.3);
  transition: transform .2s;
}
.wa-sticky a:hover { transform: scale(1.1); }
.wa-sticky svg { width: clamp(22px, 4vw, 28px); height: clamp(22px, 4vw, 28px); }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 960px) {
  #top-info { display: none; }
  nav.main-nav > ul { display: none; }
  .nav-toggle { display: flex; }
  /* On garde le bandeau visible même sur mobile */
  #alert-banner { display: block !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > .footer-col:nth-child(n+4) { display: block; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-credits { text-align: center; }
  .footer-links { justify-content: center; }
  .page-header h1 { font-size: var(--text-xl); }
}
@media (max-width: 480px) {
  .page-header h1 { font-size: 1.6rem; }
  .page-header { padding: 24px 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}