/* Escale Floride — feuille de style commune (nom provisoire) */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d2430;
  --muted: #5b6575;
  --border: #e3e0d8;
  --accent: #0e7c86;        /* turquoise golfe */
  --accent-soft: #e3f3f4;
  --sun: #f2a33a;           /* soleil */
  --ad-bg: #f1efe9;
  --radius: 12px;
  --max: 760px;
  --wide: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12161c;
    --surface: #1a2028;
    --text: #e8eaee;
    --muted: #a3acba;
    --border: #2c3440;
    --accent: #4cc3cc;
    --accent-soft: #1b3236;
    --ad-bg: #1f252e;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; }

/* En-tête */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo span { color: var(--sun); }
.nav { display: flex; gap: 14px; flex-wrap: wrap; margin-left: auto; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--accent); }
.lang {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.85rem;
  text-decoration: none;
}

/* Accueil */
.hero {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 48px 16px 24px;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0; }
.grid {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card h2 { font-size: 1.1rem; margin: 0 0 6px; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: 0.95rem; }
.card ul { margin: 0; padding-left: 18px; font-size: 0.95rem; }
.card .soon { color: var(--muted); font-style: italic; }
.section-title {
  max-width: var(--wide);
  margin: 32px auto 0;
  padding: 0 16px;
  font-size: 1.4rem;
}

/* Articles */
.article {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 16px 48px;
}
.article h1 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.015em; }
.meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
.article h2 { margin-top: 36px; font-size: 1.35rem; }
.answer {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 18px;
  margin: 0 0 24px;
}
.answer strong:first-child { display: block; margin-bottom: 4px; }
.keep {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 28px 0;
}
.keep h2 { margin-top: 0; font-size: 1.1rem; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; background: var(--surface); }
th, td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--accent-soft); }
.disclaimer { color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 36px; }
.sources { font-size: 0.9rem; }
.todo { background: #fff4d6; color: #6b4a00; padding: 1px 6px; border-radius: 4px; font-size: 0.85rem; }

/* Emplacements publicitaires (remplacés par le code AdSense une fois approuvé) */
.ad-slot {
  background: var(--ad-bg);
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 36px 8px;
  margin: 28px 0;
}

/* Pied de page */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 40px;
}
.site-footer .inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 24px 16px;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.site-footer a { color: var(--muted); }

/* Bannière de consentement */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  padding: 14px 16px;
  z-index: 50;
  font-size: 0.9rem;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.consent p { margin: 0; flex: 1 1 320px; }
.consent-actions { display: flex; gap: 8px; }
.consent button, .btn {
  font: inherit;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.consent button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }

/* Encadré produit */
.cta {
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 28px 0;
}
.cta h2, .cta h3 { margin: 0 0 6px; font-size: 1.15rem; }
.cta p { margin: 0 0 12px; color: var(--muted); }
.cta-wide { width: calc(100% - 32px); max-width: 1048px; margin: 24px auto; }
.price { font-size: 1.8rem; font-weight: 800; margin: 8px 0; }
.price small { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.small { font-size: 0.85rem; color: var(--muted); }

/* ===== Version 2 : visuel « plage » (octobre 2026) ===== */
:root { --sand: #f7f1e6; --sea: #0e7c86; --sea-dark: #0a5a61; --coral: #e8664a; }
body { background: var(--bg); }
h1, h2, h3 { letter-spacing: -0.015em; }
.site-header { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(1.4) blur(10px); background: color-mix(in srgb, var(--surface) 88%, transparent); }

/* Bandeau photo de l'accueil */
.hero-photo {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--sea-dark) center / cover no-repeat;
  background-image: linear-gradient(90deg, rgba(5,40,45,.72) 0%, rgba(5,40,45,.35) 55%, rgba(5,40,45,0) 85%), linear-gradient(180deg, rgba(5,40,45,.1) 0%, rgba(5,40,45,.25) 50%, rgba(5,40,45,.75) 100%), var(--img);
}
.hero-photo .inner { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 48px 16px 56px; }
.hero-photo .kicker { display: inline-block; background: var(--sun); color: #1d2430; font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero-photo h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.05; margin: 0 0 14px; max-width: 760px; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero-photo p { font-size: clamp(1.05rem, 2.4vw, 1.25rem); max-width: 620px; margin: 0 0 22px; opacity: .95; }
.hero-photo .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-photo .btn { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.12); color: #fff; }
.hero-photo .btn.primary { background: var(--sun); border-color: var(--sun); color: #1d2430; font-weight: 700; }
.hero-photo .credit { position: absolute; right: 10px; bottom: 6px; font-size: .7rem; opacity: .7; }

/* Bande de confiance sous le bandeau */
.trust { background: var(--surface); border-bottom: 1px solid var(--border); }
.trust .inner { max-width: var(--wide); margin: 0 auto; padding: 14px 16px; display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: .92rem; }
.trust b { color: var(--text); }

/* Cartes avec photo */
.photo-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.photo-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(10,60,65,.14); }
.photo-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.photo-card .body { padding: 16px 18px 18px; }
.photo-card h2 { font-size: 1.1rem; margin: 0 0 6px; }
.photo-card h2 a { color: var(--text); text-decoration: none; }
.photo-card h2 a:hover { color: var(--accent); }
.photo-card .tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; margin-bottom: 6px; display: block; }

/* Produits */
.products { max-width: var(--wide); margin: 28px auto 0; padding: 0 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.product { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; background: linear-gradient(135deg, var(--accent-soft), var(--surface)); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.product img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; }
.product h3 { margin: 0 0 4px; font-size: 1.05rem; }
.product p { margin: 0 0 10px; color: var(--muted); font-size: .92rem; }

/* Bande coucher de soleil */
.sunset-band { margin: 40px 0 0; color: #fff; background: #2a2a2a center / cover no-repeat; background-image: linear-gradient(90deg, rgba(10,30,35,.85), rgba(10,30,35,.35)), var(--img); }
.sunset-band .inner { max-width: var(--wide); margin: 0 auto; padding: 56px 16px; }
.sunset-band h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin: 0 0 10px; max-width: 640px; }
.sunset-band p { max-width: 560px; margin: 0 0 18px; opacity: .92; }
.sunset-band .btn.primary { background: var(--sun); border-color: var(--sun); color: #1d2430; font-weight: 700; }

/* Image de couverture des articles */
.cover { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; position: relative; }
.cover img { width: 100%; height: clamp(180px, 34vw, 320px); object-fit: cover; display: block; }
.cover figcaption { position: absolute; right: 8px; bottom: 6px; font-size: .7rem; color: #fff; opacity: .85; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* Section titres avec vague */
.section-title { position: relative; padding-bottom: 6px; }
.section-title::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--sun); margin-top: 8px; }
.article h2 { border-bottom: 2px solid var(--accent-soft); padding-bottom: 6px; }
.keep h2, .cta h2, .cta h3 { border: 0; padding: 0; }

/* Pied de page plus riche */
.site-footer { background: var(--sea-dark); color: #d9eef0; border-top: 0; }
.site-footer .inner { color: #d9eef0; }
.site-footer a { color: #fff; }
.wave-top { display: block; width: 100%; height: 40px; margin-bottom: -1px; color: var(--sea-dark); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .photo-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,.4); }
}
@media (max-width: 520px) {
  .product { grid-template-columns: 84px 1fr; }
  .product img { width: 84px; height: 84px; }
  .photo-card img { height: 150px; }
}
.hero-photo { background-position: 22% center; }

/* Emplacements vides cachés : AdSense (annonces automatiques) place lui-même les annonces */
.ad-slot { display: none; }
/* Aperçu des pages des produits */
.preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 24px; }
.preview img { width: 100%; border-radius: 6px; border: 1px solid var(--border); box-shadow: 0 6px 18px rgba(10,60,65,.12); background: #fff; }
.preview figcaption { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); text-align: center; }
/* À lire aussi */
.related { border-top: 2px solid var(--accent-soft); margin-top: 28px; padding-top: 6px; }
.related h2 { border: 0; font-size: 1.15rem; margin-top: 12px; }
.related ul { padding-left: 18px; }
.related li { margin: 6px 0; }

/* Correctifs d'ergonomie (tests du 7 octobre) */
/* 1. Les ancres du menu ne se cachent plus sous l'en-tête collant */
[id] { scroll-margin-top: 96px; }
/* 2. Sur téléphone : en-tête non collant (il prenait trop de place) */
@media (max-width: 640px) {
  .site-header { position: static; }
  [id] { scroll-margin-top: 12px; }
  /* 3. Bannière de consentement plus compacte : elle ne cache plus les boutons d'achat */
  .consent { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; font-size: .8rem; gap: 8px; }
  .consent p { flex-basis: 100%; }
  .consent-actions { width: 100%; }
  .consent button { flex: 1; padding: 8px 10px; }
}
/* Garantie */
.guarantee { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: .92rem; font-weight: 600; color: var(--accent); }
.guarantee::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8rem; }
