/* ============================================================
   Baladou — baladou.online — CSS unique (design tokens = charte BRIEF-IA.md §2)
   ============================================================ */
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/fredoka-latin.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/nunito-latin.woff2') format('woff2'); }

:root {
  --bordeaux: #5E1B2B;      /* titres, boutons secondaires, pied de page */
  --brique: #C8553D;        /* bouton principal, liens */
  --brique-f: #A9432F;      /* survol, liens visités */
  --corail: #EF7B5B;        /* accents, puces, étiquettes */
  --or: #E0A84B;            /* étoiles, badges, détails */
  --creme: #FBF7F2;         /* fond de page */
  --papier: #FFFBF6;        /* cartes */
  --encre: #2B2420;         /* texte */
  --encre-douce: #6F6259;   /* texte secondaire */
  --ligne: #EADCCB;         /* bordures */
  --blanc: #FFFFFF;
  --r-cartes: 24px;
  --r-blocs: 18px;
  --r-pill: 999px;
  --shadow: 0 2px 10px rgba(43, 36, 32, 0.07);
  --shadow-hover: 0 8px 26px rgba(43, 36, 32, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1080px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: 'Nunito', -apple-system, 'Segoe UI', sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--brique); }
a:visited { color: var(--brique-f); }
a:hover { color: var(--brique-f); }
:focus-visible { outline: 3px solid var(--brique); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 600; color: var(--bordeaux); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: .5em 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--bordeaux); color: #fff; padding: 10px 16px; z-index: 60; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }

/* ---------- En-tête fixe ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 251, 246, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ligne);
}
.site-head .bar {
  max-width: var(--wrap); margin: 0 auto;
  height: var(--nav-h); padding: 0 18px;
  display: flex; align-items: center; gap: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.main-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.main-nav a {
  color: var(--encre); text-decoration: none; font-weight: 700; font-size: .98rem;
  padding: 9px 13px; border-radius: var(--r-pill);
}
.main-nav a:hover { background: #F4E9DC; color: var(--bordeaux); }
.main-nav a[aria-current="page"] { background: var(--bordeaux); color: #fff; }
.head-cta { margin-left: 6px; }
.menu-btn {
  display: none; margin-left: auto;
  background: var(--papier); border: 1.5px solid var(--ligne); border-radius: 12px;
  min-width: 46px; min-height: 44px; font: inherit; font-weight: 800; color: var(--bordeaux);
  cursor: pointer;
}

/* ---------- Boutons pilule ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1rem;
  padding: 13px 24px; border-radius: var(--r-pill);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-primary { background: var(--brique); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brique-f); color: #fff; transform: translateY(-1px); }
.btn-primary:focus-visible { outline: 3px solid var(--bordeaux); }
.btn-secondary { background: transparent; color: var(--bordeaux); border-color: var(--bordeaux); }
.btn-secondary:hover { background: var(--bordeaux); color: #fff; }
/* a.store-btn : spécificité (0,1,1) nécessaire pour battre .main-nav a (0,1,1, plus tôt dans le fichier) */
a.store-btn { background: var(--bordeaux); color: #fff; display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 14px; }
a.store-btn:hover { background: #4A1522; color: #fff; }
.store-btn .s-icon { width: 22px; height: 22px; flex: none; }
.store-btn .s-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-btn .s-txt small { font-size: .68rem; font-weight: 600; opacity: .85; }
.store-btn .s-txt strong { font-size: 1.05rem; }
a.store-btn[aria-disabled="true"] { cursor: default; }
a.store-btn[aria-disabled="true"]:hover { background: var(--bordeaux); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section:nth-of-type(even) { background: var(--papier); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
.kicker {
  font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brique); font-size: .8rem; margin: 0 0 8px;
}
.lead { color: var(--encre-douce); font-size: 1.08rem; max-width: 62ch; }
.section h2, .section .kicker { scroll-margin-top: calc(var(--nav-h) + 14px); }

/* ---------- Héros ---------- */
.hero { padding: 46px 0 64px; background: var(--creme); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-copy .logo-hero { width: min(300px, 62%); height: auto; margin: 0 0 6px; }
.hero-sub { font-size: 1.16rem; color: var(--encre-douce); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; align-items: center; }
.link-soft { font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--corail); padding-bottom: 2px; }

/* ---------- Cadres iPhone ---------- */
.phone {
  display: block; width: min(300px, 78%); margin: 0 auto;
  background: var(--encre); border-radius: 44px; padding: 10px;
  box-shadow: 0 18px 40px rgba(43, 36, 32, 0.22);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 34px; }
.phone-side { text-align: center; }
.phone-side figcaption { color: var(--encre-douce); font-size: .92rem; margin-top: 12px; }

/* ---------- Cartes / grilles ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.card {
  background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--r-cartes);
  padding: 22px; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card .phone { margin-bottom: 18px; width: min(210px, 74%); border-radius: 34px; padding: 7px; box-shadow: 0 8px 22px rgba(43,36,32,.16); }
.card .phone img { border-radius: 27px; }
.badge-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: var(--r-pill);
  background: var(--corail); color: #fff; font-weight: 800; font-size: .95rem;
  margin-bottom: 8px;
}
.card p { color: var(--encre-douce); font-size: .98rem; }

/* listes à puces corail */
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { padding-left: 30px; position: relative; margin: 10px 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 14px; height: 14px; border-radius: 5px; background: var(--corail);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M6 11.2 2.8 8l-1 1L6 13.2 14.2 5l-1-1z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M6 11.2 2.8 8l-1 1L6 13.2 14.2 5l-1-1z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Collections (9 puces) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--papier); border: 1.5px solid var(--ligne); border-radius: var(--r-pill);
  padding: 8px 15px; font-weight: 700; font-size: .93rem; color: var(--encre);
}
.chip::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--c, var(--corail)); flex: none; }
.stat-line { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.stat-pill {
  background: var(--bordeaux); color: #fff; border-radius: var(--r-pill);
  padding: 9px 18px; font-weight: 800; font-size: 1.02rem;
}
.stat-pill b { color: var(--or); font-weight: 800; }
.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }

/* ---------- Badges (paliers) ---------- */
.tiers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tier {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .95rem;
  padding: 8px 16px; border-radius: var(--r-pill); border: 1.5px solid var(--ligne); background: var(--papier);
}
.tier .dot { width: 13px; height: 13px; border-radius: 50%; flex: none; }
.tier-bronze .dot { background: #B0714B; }
.tier-argent .dot { background: #9BA3AB; }
.tier-or .dot { background: var(--or); }
.tier-legende .dot { background: var(--bordeaux); }
.badge-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; justify-items: center; }

/* ---------- Bandes ---------- */
.band-merchants { background: var(--bordeaux); color: #fff; border: 0; }
.band-merchants h2 { color: #fff; }
.band-merchants .lead { color: rgba(255, 251, 246, 0.88); }
.band-merchants .btn-secondary { border-color: #fff; color: #fff; }
.band-merchants .btn-secondary:hover { background: #fff; color: var(--bordeaux); }
.band-merchants a:visited { color: #fff; }

/* ---------- Images et tables des pages légales ---------- */
.doc-card img.studio-sign { display: block; width: 160px; height: auto; margin: 8px 0 10px; }
.doc-card table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.doc-card ul { padding-left: 22px; }
.doc-card p, .doc-card li { margin: 6px 0; }
.doc-card b { color: var(--bordeaux); }
.doc-card a { font-weight: 700; }
.doc-card .todo { color: var(--brique-f); }

/* ---------- Pied de page ---------- */
.site-foot { background: var(--bordeaux); color: rgba(255,251,246,.92); padding: 46px 0 30px; margin-top: 0; }
.site-foot a { color: #fff; text-decoration: none; font-weight: 700; }
.site-foot a:hover { text-decoration: underline; color: #fff; }
.site-foot a:visited { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: start; }
.studio-sign { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.studio-sign img { height: 46px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0; padding: 0; list-style: none; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.18); margin-top: 22px; padding-top: 16px; font-size: .86rem; color: rgba(255,251,246,.78); }
.foot-legal p { margin: .35em 0; }

/* ---------- Pages secondaires (légales, support, partenaires) ---------- */
.page-hero { padding: 40px 0 8px; }
.page-hero p { color: var(--encre-douce); max-width: 64ch; }
.doc { max-width: 800px; margin: 0 auto; padding: 10px 18px 60px; }
.doc-card {
  background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--r-cartes);
  padding: 26px 26px 10px; margin: 18px 0; box-shadow: var(--shadow);
}
.doc-card h2 { font-size: 1.45rem; scroll-margin-top: calc(var(--nav-h) + 14px); }
.doc-card h3 { margin-top: 20px; }
.doc-card table { border-collapse: collapse; width: 100%; font-size: .92rem; margin: 10px 0; }
.doc-card th, .doc-card td { text-align: left; border-bottom: 1px solid var(--ligne); padding: 8px 6px; vertical-align: top; }
.doc-card th { font-weight: 800; color: var(--bordeaux); }
.todo {
  background: #FCE3DC; color: var(--brique-f); font-weight: 800;
  padding: 1px 6px; border-radius: 6px; white-space: normal;
}
.kid { background: var(--creme); border-radius: 12px; padding: 12px 16px; }
.draft { background: #FCF4E4; border: 1px solid var(--or); border-radius: 12px; padding: 10px 14px; font-size: .92rem; margin-top: 14px; }
small.upd { color: var(--encre-douce); }
.doc-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 18px; max-width: 800px; margin: 0 auto; }
.doc-nav a {
  background: var(--papier); border: 1.5px solid var(--ligne); border-radius: var(--r-pill);
  padding: 7px 14px; color: var(--brique-f); font-weight: 700; text-decoration: none; font-size: .9rem;
}
.doc-nav a:hover { background: #F4E9DC; }
.doc-nav a[aria-current="page"] { background: var(--brique); color: #fff; border-color: var(--brique); }
.doc-nav a[aria-current="page"]:visited { color: #fff; }

/* ---------- FAQ (details/summary accessibles sans JS) ---------- */
.faq details {
  background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--r-blocs);
  padding: 16px 20px; margin: 12px 0;
}
.faq summary {
  cursor: pointer; font-weight: 800; font-size: 1.05rem; color: var(--bordeaux);
  list-style: none; position: relative; padding-right: 30px; min-height: 1.5em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; background: var(--corail); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--encre-douce); }
.contact-box {
  background: var(--papier); border: 2px dashed var(--corail); border-radius: var(--r-cartes);
  padding: 22px 26px; margin-top: 26px; text-align: center;
}
.contact-box .btn { margin-top: 10px; }
.mailto-big { font-size: 1.1rem; font-weight: 800; }

/* ---------- Partenaires ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }
.offer-grid .card h3 { display: flex; align-items: center; gap: 10px; }
.offer-ico { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.note-box { background: var(--creme); border-radius: var(--r-blocs); padding: 14px 18px; color: var(--encre-douce); font-size: .95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .two-col .phone-side { order: -1; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero .phone-side { order: -1; }
  .offer-grid { grid-template-columns: 1fr; }
  .badge-duo { gap: 16px; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--papier); border-bottom: 1px solid var(--ligne);
    flex-direction: column; align-items: stretch; padding: 10px 14px 16px; gap: 6px;
    box-shadow: var(--shadow-hover);
  }
  .main-nav a { padding: 12px 14px; font-size: 1.05rem; }
  .main-nav .head-cta { margin: 6px 0 0; }
  .main-nav.open { display: flex; }
  .section { padding: 46px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .badge-duo { grid-template-columns: 1fr; }
  .hero-copy .logo-hero { width: min(240px, 70%); }
}
@media (min-width: 761px) {
  .main-nav { display: flex !important; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .store-btn { transition: none; }
  .card:hover, .btn-primary:hover { transform: none; }
}
