/* ===========================================================
   Prix Antilles — feuille de style commune
   =========================================================== */

:root {
  --blue: #1A56DB;
  --blue-dark: #103A96;
  --blue-light: #EBF1FE;
  --green: #0E9F6E;
  --green-light: #E3F6EF;
  --orange: #D97706;
  --red: #DC2626;
  --ink: #0F172A;
  --text: #1E293B;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 4px 8px rgba(15, 23, 42, .06), 0 20px 48px rgba(15, 23, 42, .12);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 12px; letter-spacing: -0.02em; }
h1 { font-size: clamp(30px, 5vw, 46px); }
h2 { font-size: clamp(23px, 3.2vw, 32px); }
h3 { font-size: 18px; }
p  { margin: 0 0 14px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono-num { font-variant-numeric: tabular-nums; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--max); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 20px;
}
.nav .brand { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); font-size: 17px; }
.nav .brand:hover { text-decoration: none; }
.nav .brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--text); font-size: 15px; font-weight: 500;
  padding: 7px 12px; border-radius: 9px;
}
.nav-links a:hover { background: var(--bg-soft); text-decoration: none; }
.nav-links a.active { color: var(--blue); background: var(--blue-light); }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0;
  font-size: 24px; color: var(--ink); cursor: pointer; padding: 4px 8px; line-height: 1;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 12px 14px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links .btn { margin-top: 8px; text-align: center; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: .15s;
  background: var(--blue); color: #fff;
}
.btn:hover { background: var(--blue-dark); text-decoration: none; color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-sm { padding: 7px 14px; font-size: 14px; border-radius: 9px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(170deg, #F4F8FF 0%, #FFFFFF 65%);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--blue-light); color: var(--blue);
  font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 999px; margin-bottom: 18px;
}
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-phones { position: relative; display: flex; justify-content: center; gap: 16px; }
.hero-phones img {
  width: 47%; max-width: 232px; border-radius: 22px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.hero-phones img:first-child { transform: rotate(-3deg) translateY(10px); }
.hero-phones img:last-child { transform: rotate(3deg); }

@media (max-width: 860px) {
  .hero { padding: 44px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-phones img { max-width: 190px; }
}

/* ---------- Sections ---------- */
section { padding: 60px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- Cartes / grilles ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card .ico {
  width: 42px; height: 42px; border-radius: 11px; background: var(--blue-light);
  display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 14px;
}
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 22px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.stat .n { font-size: 30px; font-weight: 800; color: var(--blue); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 14px; color: var(--muted); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sélecteur de département ---------- */
.dept-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 22px;
}
.dept-chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: .15s;
}
.dept-chip:hover { border-color: #C3D3F5; }
.dept-chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Recherche ---------- */
.search-box { display: flex; gap: 10px; margin-bottom: 8px; }
.search-box input {
  flex: 1; padding: 14px 18px; font-size: 16px; border: 1px solid var(--line);
  border-radius: 12px; outline: none; font-family: inherit; color: var(--ink);
  background: #fff;
}
.search-box input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 86, 219, .12); }

.cat-bar { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 26px; }
.cat-chip {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 13.5px; color: var(--muted); cursor: pointer; transition: .15s;
}
.cat-chip:hover { border-color: #C3D3F5; color: var(--text); }
.cat-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Liste de produits ---------- */
.product-list { display: grid; gap: 10px; }
.product-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; transition: .15s; text-align: left; width: 100%; font-family: inherit;
}
.product-row:hover { border-color: #C3D3F5; box-shadow: var(--shadow); }
.thumb {
  width: 52px; height: 52px; border-radius: 10px; flex: 0 0 52px;
  background: var(--bg-soft); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-row .info { flex: 1; min-width: 0; }
.product-row .name { font-weight: 600; color: var(--ink); font-size: 15.5px; }
.product-row .meta { font-size: 13px; color: var(--muted); }
.product-row .price { text-align: right; flex: 0 0 auto; }
.product-row .price .v { font-size: 18px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.product-row .price .c { font-size: 12px; color: var(--muted); }

/* ---------- Fiche produit ---------- */
.price-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 10px;
}
.price-row.best { border-color: var(--green); background: var(--green-light); }
.price-row .rank {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%;
  background: var(--bg-soft); color: var(--muted); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center; border: 1px solid var(--line);
}
.price-row.best .rank { background: var(--green); color: #fff; border-color: var(--green); }
.price-row .store { flex: 1; min-width: 0; }
.price-row .store .n { font-weight: 600; color: var(--ink); }
.price-row .store .a { font-size: 13px; color: var(--muted); }
.price-row .amount { font-size: 20px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-row.best .amount { color: var(--green); }

.age { font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.age::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.age.fresh { color: var(--green); }
.age.mid   { color: var(--orange); }
.age.old   { color: var(--red); }

.badge {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; padding: 3px 8px; border-radius: 6px;
  background: #FEF3C7; color: #92400E;
}

.notice {
  display: flex; gap: 11px; padding: 13px 16px; border-radius: 12px;
  background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E;
  font-size: 14.5px; margin-bottom: 18px;
}

/* ---------- Tableau carburant ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }

.fuel-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 560px) { .fuel-cards { grid-template-columns: 1fr; } }
.fuel-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.fuel-card .t { font-size: 14px; color: var(--muted); font-weight: 600; }
.fuel-card .v { font-size: 34px; font-weight: 800; color: var(--blue); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fuel-card .u { font-size: 15px; font-weight: 600; color: var(--muted); }

/* ---------- Carte ---------- */
#map { height: 520px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 1; }
@media (max-width: 700px) { #map { height: 400px; } }

.store-row {
  display: flex; align-items: center; gap: 13px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 9px;
}
.store-logo {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--blue); font-size: 15px;
}
.store-logo img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- États ---------- */
.state { text-align: center; padding: 56px 20px; color: var(--muted); }
.state .big { font-size: 38px; margin-bottom: 10px; }
.spinner {
  width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--blue);
  border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton { background: linear-gradient(90deg, #F1F5F9 25%, #E7EDF4 50%, #F1F5F9 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; height: 78px; margin-bottom: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Bandeau app ---------- */
.app-cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff; border-radius: 20px; padding: 44px 40px; text-align: center;
}
.app-cta h2 { color: #fff; }
.app-cta p { color: rgba(255, 255, 255, .85); max-width: 520px; margin: 0 auto 24px; font-size: 17px; }
.app-cta .btn { background: #fff; color: var(--blue); }
.app-cta .btn:hover { background: #EEF3FE; color: var(--blue-dark); }
@media (max-width: 560px) { .app-cta { padding: 34px 22px; } }

.store-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Captures ---------- */
.screens { display: flex; gap: 18px; overflow-x: auto; padding: 6px 4px 20px; scroll-snap-type: x mandatory; }
.screens img {
  width: 216px; flex: 0 0 216px; border-radius: 20px;
  border: 1px solid var(--line); box-shadow: var(--shadow); scroll-snap-align: center;
}

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #94A3B8; padding: 48px 0 32px; margin-top: 0; font-size: 14.5px; }
.site-footer a { color: #CBD5E1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #1E293B; padding-top: 22px; font-size: 13.5px; color: #64748B; }

/* ---------- Encarts publicitaires ---------- */
.promo-slot { margin: 22px 0; }
.promo {
  position: relative; display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-soft); overflow: hidden; padding: 0;
  text-decoration: none; color: var(--text);
}
.promo-link { cursor: pointer; transition: .15s; }
.promo-link:hover { border-color: #C3D3F5; box-shadow: var(--shadow); text-decoration: none; }
.promo-tag {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(15, 23, 42, .68); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 5px;
}
.promo-img { width: 100%; height: auto; display: block; object-fit: cover; max-height: 190px; }
.promo:has(.promo-txt) .promo-img { width: 132px; height: 92px; flex: 0 0 132px; max-height: none; }
.promo-txt { flex: 1; min-width: 0; padding: 14px 16px; }
.promo-t { font-weight: 700; color: var(--ink); font-size: 16px; }
.promo-s { font-size: 14px; color: var(--muted); }
@media (max-width: 560px) {
  .promo:has(.promo-txt) .promo-img { width: 96px; height: 76px; flex: 0 0 96px; }
  .promo-t { font-size: 15px; }
}

/* ---------- Grille tarifaire annonceurs ---------- */
.tarif-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.tarif-card.mis-en-avant { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 86, 219, .1); }
.tarif-card .prix { font-size: 34px; font-weight: 800; color: var(--blue); letter-spacing: -.02em; }
.tarif-card .prix small { font-size: 15px; font-weight: 600; color: var(--muted); }
.tarif-card ul { list-style: none; padding: 0; margin: 16px 0 0; }
.tarif-card li { padding: 6px 0 6px 24px; position: relative; font-size: 14.5px; color: var(--text); }
.tarif-card li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---------- Pages de texte ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 48px 20px 64px; }
.doc h2 { font-size: 21px; margin-top: 34px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 7px; }
.doc ol { padding-left: 22px; }
