/* ============================================================
   CONSO-MALIN.NET — Feuille de style globale
   ============================================================ */

:root {
  --vert:      #00C26F;
  --vert-d:    #009B58;
  --vert-pale: rgba(0,194,111,.1);
  --orange:    #FF6B2B;
  --rouge:     #FF2D55;
  --jaune:     #FFD60A;
  --bleu:      #0A84FF;
  --noir:      #080D0B;
  --bg:        #0A0F0D;
  --bg-card:   #111714;
  --bg-input:  #0D1310;
  --border:    #1E2B24;
  --border-l:  #2A3D33;
  --texte:     #E4EDE8;
  --texte-s:   #7A9A87;
  --texte-xs:  #3D5A48;
  --blanc:     #FFFFFF;
  --radius:    14px;
  --radius-s:  8px;
  --shadow:    0 20px 60px rgba(0,0,0,.4);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--texte);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Grain texture */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

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

/* ─── TYPOGRAPHIE ────────────────────────────────────────── */
h1, h2, h3 { font-family: 'Syne', sans-serif; font-weight: 800; letter-spacing: -.05em; line-height: 1.05; color: var(--blanc); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 72px 0; position: relative; }
.section-sm { padding: 48px 0; }

.section-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--vert); margin-bottom: 12px;
}

.section-desc {
  color: var(--texte-s); font-size: 1rem;
  line-height: 1.7; max-width: 560px;
  margin-bottom: 40px;
}

/* ─── NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(8,13,11,.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,194,111,.08);
  transition: background .3s;
}

.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; gap: 32px;
}

.logo {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1.35rem; letter-spacing: -.03em;
  color: var(--blanc); white-space: nowrap;
}
.logo span { color: var(--vert); }

.nav-menu {
  display: flex; gap: 4px; align-items: center; flex: 1;
}

.nav-menu a {
  padding: 6px 14px; border-radius: 100px;
  font-size: .88rem; font-weight: 500;
  color: var(--texte-s); transition: all .2s;
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--blanc);
  background: rgba(255,255,255,.06);
}

/* Dropdown enseignes */
.nav-enseignes { position: relative; }
.dropdown {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px;
  min-width: 200px; z-index: 100;
  box-shadow: var(--shadow);
}
.nav-enseignes:hover .dropdown { display: flex; flex-direction: column; }
.dropdown a {
  padding: 8px 12px; border-radius: var(--radius-s);
  font-size: .86rem; color: var(--texte-s);
  transition: all .15s;
}
.dropdown a:hover { background: var(--vert-pale); color: var(--blanc); }

.nav-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }

.btn-connexion {
  padding: 7px 16px; border-radius: 100px;
  font-size: .86rem; font-weight: 500;
  color: var(--texte-s); border: 1px solid var(--border);
  background: transparent; transition: all .2s;
}
.btn-connexion:hover { border-color: var(--vert); color: var(--vert); }

.btn-premium {
  padding: 8px 18px; border-radius: 100px;
  font-size: .86rem; font-weight: 500;
  background: var(--vert); color: var(--noir);
  transition: all .2s;
  box-shadow: 0 0 20px rgba(0,194,111,.25);
}
.btn-premium:hover { background: var(--vert-d); box-shadow: 0 0 30px rgba(0,194,111,.4); }

.btn-compte {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 100px;
  font-size: .86rem; font-weight: 500; color: var(--texte);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color .2s;
}
.btn-compte:hover { border-color: var(--vert); }
.badge-p { background: var(--vert); color: var(--noir); padding: 1px 6px; border-radius: 4px; font-size: .65rem; font-weight: 700; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; border: none; padding: 4px;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--texte); border-radius: 2px; transition: .3s; }

/* ALERTE BAR */
.alerte-bar {
  margin-top: 64px;
  background: rgba(0,194,111,.1); border-bottom: 1px solid rgba(0,194,111,.2);
  padding: 10px 24px; display: flex; align-items: center; gap: 12px;
  font-size: .85rem; color: var(--texte-s);
}
.alerte-bar strong { color: var(--vert); }
.alerte-bar a { color: var(--vert); font-weight: 500; }
.alerte-bar a:hover { text-decoration: underline; }
.alerte-bar button { margin-left: auto; background: transparent; border: none; color: var(--texte-s); font-size: 1rem; }

/* Page padding-top */
.page-wrapper { padding-top: 64px; }

/* ─── BOUTONS ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 100px;
  font-family: 'DM Sans', sans-serif; font-size: .92rem; font-weight: 500;
  background: var(--vert); color: var(--noir); border: none;
  transition: all .2s; cursor: pointer;
  box-shadow: 0 0 24px rgba(0,194,111,.25);
}
.btn-primary:hover { background: var(--vert-d); transform: translateY(-1px); box-shadow: 0 0 36px rgba(0,194,111,.4); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 100px;
  font-size: .88rem; font-weight: 500;
  background: transparent; color: var(--texte-s);
  border: 1px solid var(--border); transition: all .2s;
}
.btn-outline:hover { border-color: var(--vert); color: var(--vert); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 100px;
  font-size: .84rem; font-weight: 500; color: var(--texte-s);
  background: transparent; border: none; transition: color .2s;
}
.btn-ghost:hover { color: var(--vert); }

/* ─── CARDS OFFRES ───────────────────────────────────────── */
.offres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.offre-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  display: block; color: inherit;
}

.offre-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,194,111,.3);
  box-shadow: 0 24px 48px rgba(0,0,0,.35);
}

.offre-img {
  height: 150px; background: var(--bg-input);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; position: relative; overflow: hidden;
}

.offre-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }

.offre-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 10px; border-radius: 100px;
  font-size: .7rem; font-weight: 700; letter-spacing: .5px;
}
.badge-rentable { background: var(--rouge); color: #fff; }
.badge-gratuit  { background: var(--jaune); color: var(--noir); }
.badge-tres_bon { background: var(--vert);  color: var(--noir); }
.badge-bon      { background: var(--bleu);  color: #fff; }

.offre-enseigne {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,.65); backdrop-filter: blur(8px);
  padding: 3px 8px; border-radius: 6px;
  font-size: .68rem; color: var(--texte-s);
}

.offre-body { padding: 16px; }
.offre-nom   { font-weight: 600; font-size: .94rem; margin-bottom: 3px; color: var(--blanc); line-height: 1.3; }
.offre-marque{ font-size: .76rem; color: var(--texte-s); margin-bottom: 12px; }

.offre-prix  { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.prix-final  { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.5rem; }
.prix-vert   { color: var(--vert); }
.prix-rouge  { color: var(--rouge); }
.prix-jaune  { color: var(--jaune); }
.prix-barre  { font-size: .78rem; color: var(--texte-s); text-decoration: line-through; }
.prix-pct    { font-size: .72rem; color: var(--vert); font-weight: 600; }

.offre-tags  { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 5px;
  font-size: .68rem; color: var(--texte-s);
}

/* ─── CARDS ODR ──────────────────────────────────────────── */
.odr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.odr-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  display: flex; gap: 14px; align-items: flex-start;
  transition: transform .2s, border-color .2s;
  color: inherit;
}
.odr-card:hover { transform: translateY(-2px); border-color: rgba(0,194,111,.3); }
.odr-card.odr-100 { border-left: 3px solid var(--rouge); }
.odr-card.odr-partiel { border-left: 3px solid var(--orange); }

.odr-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--bg-input); display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; flex-shrink: 0;
  overflow: hidden;
}
.odr-icon img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

.odr-info { flex: 1; min-width: 0; }
.odr-nom { font-weight: 600; font-size: .92rem; color: var(--blanc); margin-bottom: 3px; }
.odr-marque { font-size: .76rem; color: var(--texte-s); margin-bottom: 8px; }
.odr-enseignes { font-size: .72rem; color: var(--texte-xs); margin-bottom: 10px; }

.odr-footer { display: flex; justify-content: space-between; align-items: center; }
.odr-remb { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem; }
.remb-100     { color: var(--rouge); }
.remb-partiel { color: var(--orange); }
.odr-expiry { font-size: .7rem; color: var(--texte-s); }
.odr-expiry.urgent { color: var(--rouge); font-weight: 600; }

/* ─── FILTRES ────────────────────────────────────────────── */
.filtres-bar {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin-bottom: 28px; padding: 14px 18px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filtre-label { font-size: .78rem; color: var(--texte-s); margin-right: 4px; }

.filtre-btn {
  padding: 6px 16px; border-radius: 100px;
  font-size: .82rem; font-weight: 500;
  background: transparent; border: 1px solid var(--border);
  color: var(--texte-s); cursor: pointer; transition: all .2s;
}
.filtre-btn:hover { border-color: var(--vert); color: var(--vert); }
.filtre-btn.active { background: var(--vert-pale); border-color: var(--vert); color: var(--vert); }
.filtre-btn.f-rentable.active { background: rgba(255,45,85,.1); border-color: var(--rouge); color: var(--rouge); }
.filtre-btn.f-gratuit.active  { background: rgba(255,214,10,.1); border-color: var(--jaune); color: var(--jaune); }

/* SEARCH */
.search-bar {
  display: flex; gap: 10px; margin-bottom: 24px;
}
.search-input {
  flex: 1; padding: 11px 18px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 100px; color: var(--texte);
  font-family: 'DM Sans', sans-serif; font-size: .9rem;
  transition: border-color .2s; outline: none;
}
.search-input:focus { border-color: var(--vert); }
.search-input::placeholder { color: var(--texte-s); }

/* ─── PAGINATION ─────────────────────────────────────────── */
.pagination {
  display: flex; gap: 6px; justify-content: center;
  margin-top: 48px; flex-wrap: wrap;
}
.page-btn {
  width: 38px; height: 38px; border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center;
  font-size: .86rem; font-weight: 500;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--texte-s); cursor: pointer; transition: all .2s;
}
.page-btn:hover, .page-btn.active { background: var(--vert-pale); border-color: var(--vert); color: var(--vert); }
.page-btn.active { font-weight: 700; }

/* ─── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb {
  display: flex; gap: 6px; align-items: center;
  font-size: .78rem; color: var(--texte-s);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--texte-s); transition: color .2s; }
.breadcrumb a:hover { color: var(--vert); }
.breadcrumb span { color: var(--texte-xs); }

/* ─── PAGE HERO ──────────────────────────────────────────── */
.page-hero {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(0,194,111,.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── STATS BAR ──────────────────────────────────────────── */
.stats-bar {
  display: flex; gap: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  margin-bottom: 40px;
}
.stat-item {
  flex: 1; text-align: center; padding: 18px 12px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border: none; }
.stat-num {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1.8rem; color: var(--vert); line-height: 1; margin-bottom: 4px;
}
.stat-label { font-size: .75rem; color: var(--texte-s); }

/* ─── NEWSLETTER SECTION ─────────────────────────────────── */
.newsletter-section {
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 56px 0;
}
.newsletter-inner {
  display: flex; gap: 40px; align-items: center;
  flex-wrap: wrap; justify-content: space-between;
}
.newsletter-titre {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 6px;
}
.newsletter-inner > div > p { font-size: .86rem; color: var(--texte-s); }
.newsletter-form {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.newsletter-input {
  flex: 1; min-width: 220px; padding: 12px 20px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 100px; color: var(--texte);
  font-family: 'DM Sans', sans-serif; font-size: .9rem;
  outline: none; transition: border-color .2s;
}
.newsletter-input:focus { border-color: var(--vert); }
.newsletter-input::placeholder { color: var(--texte-s); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--noir); border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand .logo { font-size: 1.2rem; margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: .82rem; color: var(--texte-s); line-height: 1.6; max-width: 280px; margin-bottom: 16px; }
.social-links { display: flex; gap: 8px; }
.social-links a {
  width: 34px; height: 34px; border-radius: var(--radius-s);
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; color: var(--texte-s);
  transition: all .2s;
}
.social-links a:hover { border-color: var(--vert); color: var(--vert); }

.footer-col h4 {
  font-size: .72rem; text-transform: uppercase; letter-spacing: 2px;
  color: var(--texte-s); margin-bottom: 14px; font-weight: 500;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: .84rem; color: var(--texte-s); transition: color .2s; }
.footer-col ul a:hover { color: var(--vert); }

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: .76rem; color: var(--texte-s); }

/* ─── VIDE / CHARGEMENT ──────────────────────────────────── */
.vide {
  text-align: center; padding: 60px 20px;
  color: var(--texte-s);
}
.vide-icon { font-size: 3rem; margin-bottom: 12px; opacity: .5; }
.vide p { font-size: .92rem; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-input) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-s);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ─── FORMULAIRES ────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .82rem; color: var(--texte-s); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-s); color: var(--texte);
  font-family: 'DM Sans', sans-serif; font-size: .9rem;
  outline: none; transition: border-color .2s;
}
.form-control:focus { border-color: var(--vert); }
.form-error { font-size: .78rem; color: var(--rouge); margin-top: 4px; }

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.anim-up { animation: fadeUp .5s ease both; }
.anim-up-2 { animation: fadeUp .5s .1s ease both; }
.anim-up-3 { animation: fadeUp .5s .2s ease both; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu, .nav-actions .btn-connexion { display: none; }
  .nav-burger { display: flex; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--bg-card); border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px; gap: 4px; z-index: 999;
  }
  .nav-menu.open a { padding: 10px 14px; }
  .dropdown { position: static; display: none !important; }
  .nav-menu.open .nav-enseignes:hover .dropdown,
  .nav-menu.open .dropdown.show { display: flex !important; }

  .stats-bar { flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; gap: 24px; }
  .offres-grid { grid-template-columns: 1fr; }
  .odr-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }
}
