/* BANDA, site vitrine commerçants. Couleurs de la charte BANDA. */
:root {
  --terracotta: #c67139;
  --terracotta-fonce: #a65a26; /* boutons : contraste AA avec le blanc */
  --accent: #8c491a;           /* liens et texte accentué */
  --olive: #7a8a5e;
  --olive-fonce: #56633f;
  --encre: #201e1d;
  --encre-douce: #5c574f;
  --fond: #f3ece0;
  --fond-clair: #f9f4ec;
  --carte: #fffdf9;
  --bordure: #e8dfd0;
  --creme: #f5ead8;
  --rayon: 16px;
  --ombre: 0 10px 30px rgba(32, 30, 29, 0.08);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1, h2 { font-family: 'Caprasimo', Georgia, serif; font-weight: 400; letter-spacing: 0.2px; }
h1 { font-size: clamp(32px, 7.4vw, 56px); }
h2 { font-size: clamp(27px, 5.4vw, 40px); }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 14px; }

.conteneur { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .conteneur { padding: 0 28px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.lien-evitement {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--encre); color: #fff; padding: 10px 14px; border-radius: 8px;
}
.lien-evitement:focus { top: 8px; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 236, 224, 0.94);
  border-bottom: 1px solid var(--bordure);
}
@supports (backdrop-filter: blur(8px)) {
  .entete { background: rgba(243, 236, 224, 0.82); backdrop-filter: blur(8px); }
}
.entete .conteneur { display: flex; align-items: center; gap: 12px; min-height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--encre); }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo-texte { font-family: 'Caprasimo', Georgia, serif; font-size: 25px; line-height: 1; }
.logo-sous {
  display: block; font-family: 'Figtree', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 2.2px; text-transform: uppercase; color: var(--accent); margin-top: 3px;
}
.nav { display: none; margin-left: auto; gap: 22px; }
.nav a { color: var(--encre); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav a:hover { color: var(--accent); }
.entete-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.langues { display: inline-flex; border: 1px solid var(--bordure); border-radius: 999px; background: var(--carte); padding: 3px; }
.langues a, .langues span {
  font-size: 13px; font-weight: 700; padding: 5px 9px; border-radius: 999px; text-decoration: none; color: var(--encre-douce); line-height: 1;
}
.langues [aria-current] { background: var(--encre); color: #fff; }
.entete .bouton { padding: 9px 14px; font-size: 14px; min-height: 40px; }
@media (max-width: 339px) { .entete .bouton-entete { display: none; } }
/* 1120px : six liens depuis la page Programmes (2026-10-10), ils passaient sur deux lignes à 960px */
@media (min-width: 1120px) {
  .nav { display: flex; }
  .entete-actions { margin-left: 24px; }
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.bouton-principal { background: var(--terracotta-fonce); color: #fff; }
.bouton-principal:hover { background: var(--accent); }
.bouton-secondaire { background: transparent; color: var(--encre); border-color: var(--encre); }
.bouton-secondaire:hover { background: var(--encre); color: #fff; }
.bouton-whatsapp { background: #1f7a4d; color: #fff; }
.bouton-whatsapp:hover { background: #17603c; }
.bouton svg { width: 20px; height: 20px; flex: none; }
.bouton[disabled] { opacity: .65; cursor: progress; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section-claire { background: var(--fond-clair); }
.surtitre {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--olive-fonce); margin-bottom: 10px;
}
.intro { max-width: 680px; margin-bottom: 36px; }
.intro p { color: var(--encre-douce); font-size: 18px; }
.centre { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Héros ---------- */
.heros { padding: 40px 0 56px; overflow: hidden; }
.heros .conteneur { display: grid; gap: 40px; align-items: center; }
.heros h1 { margin-bottom: 16px; }
.heros h1 em { font-style: normal; color: var(--accent); }
.heros .accroche { font-size: 19px; color: var(--encre-douce); max-width: 560px; margin-bottom: 26px; }
.heros-boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.heros-boutons .bouton { flex: 1 1 220px; }
@media (min-width: 560px) { .heros-boutons .bouton { flex: 0 0 auto; } }
.atouts { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--encre-douce); font-size: 15px; font-weight: 600; }
.atouts li { display: inline-flex; align-items: center; gap: 6px; }
.atouts svg { width: 18px; height: 18px; color: var(--olive-fonce); flex: none; }
.heros-visuel { position: relative; display: flex; justify-content: center; }
.heros-visuel::before {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  border: 46px solid rgba(198, 113, 57, 0.18); top: 50%; left: 50%; transform: translate(-58%, -50%);
}
.heros-visuel::after {
  content: ""; position: absolute; width: 92px; height: 92px; border-radius: 50%;
  background: var(--olive); opacity: .85; top: 6%; right: calc(50% - 170px);
}
@media (min-width: 900px) {
  .heros { padding: 64px 0 88px; }
  .heros .conteneur { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
}

/* ---------- Téléphone (maquette CSS) ---------- */
.telephone {
  position: relative; z-index: 1;
  width: 250px; flex: none;
  padding: 10px; border-radius: 38px;
  background: #1b1918;
  box-shadow: 0 0 0 2px #3a3634 inset, 0 24px 50px rgba(32, 30, 29, 0.28);
}
.telephone img { width: 100%; aspect-ratio: 317 / 720; border-radius: 29px; background: var(--fond); object-fit: cover; }
.telephone-grand { width: 270px; }
@media (min-width: 900px) { .telephone-grand { width: 300px; } }

/* ---------- Étapes ---------- */
.etapes { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: etape; }
.etape {
  background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon);
  padding: 24px 22px; position: relative;
}
.etape::before {
  counter-increment: etape; content: counter(etape);
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; margin-bottom: 14px;
  background: var(--terracotta-fonce); color: #fff; font-family: 'Caprasimo', Georgia, serif; font-size: 21px;
}
.etape p { color: var(--encre-douce); margin: 0; }
@media (min-width: 760px) { .etapes { grid-template-columns: repeat(3, 1fr); } }
.note { margin-top: 22px; color: var(--encre-douce); font-size: 15px; }

/* ---------- Fonctionnalités ---------- */
.grille { display: grid; gap: 16px; }
@media (min-width: 640px) { .grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grille-3 { grid-template-columns: repeat(3, 1fr); } }
.carte {
  background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 22px;
}
.carte p { color: var(--encre-douce); margin: 0; font-size: 16px; }
.icone {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(198, 113, 57, 0.13); color: var(--accent); margin-bottom: 14px;
}
.icone svg { width: 24px; height: 24px; }
.carte:nth-child(3n+2) .icone { background: rgba(122, 138, 94, 0.18); color: var(--olive-fonce); }

/* Galerie d'écrans */
.galerie {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 16px 22px; margin: 44px -16px 0; -webkit-overflow-scrolling: touch;
}
.galerie figure { margin: 0; scroll-snap-align: center; flex: none; width: 210px; }
.galerie .telephone { width: 210px; padding: 8px; border-radius: 32px; box-shadow: 0 0 0 2px #3a3634 inset, 0 14px 30px rgba(32, 30, 29, 0.18); }
.galerie .telephone img { border-radius: 25px; }
.galerie figcaption { margin-top: 14px; font-size: 15px; color: var(--encre-douce); }
.galerie figcaption strong { display: block; color: var(--encre); font-size: 16px; }
@media (min-width: 1100px) {
  .galerie { justify-content: center; overflow: visible; flex-wrap: wrap; margin: 52px 0 0; padding: 0; }
  .galerie figure { width: 170px; }
  .galerie .telephone { width: 170px; }
}
.indice-defilement { font-size: 14px; color: var(--encre-douce); margin: 0; }
@media (min-width: 1100px) { .indice-defilement { display: none; } }

/* ---------- Secteurs ---------- */
.secteurs { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .secteurs { grid-template-columns: repeat(3, 1fr); } }
.secteur {
  background: var(--carte); border: 1px solid var(--bordure); border-radius: 14px; padding: 16px;
}
.secteur strong { display: block; font-size: 16px; margin-bottom: 2px; }
.secteur span { font-size: 14px; color: var(--encre-douce); line-height: 1.45; display: block; }

/* ---------- Téléchargement (section sombre) ---------- */
.section-sombre { background: var(--encre); color: var(--creme); }
.section-sombre h2, .section-sombre h3 { color: #fff; }
.section-sombre .surtitre { color: #c9d3b4; }
.section-sombre .intro p, .section-sombre p { color: #d9cfc0; }
.section-sombre a { color: #f0b48a; }
.apps { display: grid; gap: 18px; }
@media (min-width: 860px) { .apps { grid-template-columns: 1fr 1fr; } }
.app {
  background: #2b2826; border: 1px solid #3c3835; border-radius: var(--rayon); padding: 26px 22px;
  display: flex; flex-direction: column;
}
.app-entete { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.app-entete img { width: 56px; height: 56px; border-radius: 14px; }
.app-entete .pastille-app {
  width: 56px; height: 56px; border-radius: 14px; background: var(--terracotta); display: flex; align-items: center; justify-content: center; flex: none;
}
.app-entete .pastille-app svg { width: 34px; height: 34px; }
.app h3 { margin: 0; font-size: 21px; }
.etiquette { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #c9d3b4; }
.app p { margin-bottom: 20px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 190px; min-height: 56px; padding: 8px 16px 8px 12px; border-radius: 12px;
  background: #000; color: #fff !important; text-decoration: none; border: 1px solid #8a837b;
}
.badge:hover { border-color: #fff; }
.badge img { width: 30px; height: 30px; flex: none; }
.badge .logo-apple { filter: invert(1); width: 26px; height: 30px; object-fit: contain; }
.badge-texte { display: flex; flex-direction: column; line-height: 1.15; }
.badge-texte small { font-size: 11px; letter-spacing: .3px; }
.badge-texte b { font-size: 19px; font-weight: 600; letter-spacing: .2px; }
.badge-bientot { position: relative; }
.badge-bientot .badge-texte small { color: #f0b48a; font-weight: 700; }

/* ---------- Tarifs ---------- */
.tarifs {
  display: grid; gap: 28px; align-items: center;
  background: var(--carte); border: 1px solid var(--bordure); border-radius: 22px; padding: 30px 22px;
  box-shadow: var(--ombre);
}
@media (min-width: 860px) { .tarifs { grid-template-columns: 1.3fr 1fr; padding: 48px; } }
.tarifs h2 { margin-bottom: 14px; }
.tarifs .grand { font-size: 19px; color: var(--encre); }
.coches { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.coches li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.coches svg { width: 22px; height: 22px; color: var(--olive-fonce); flex: none; margin-top: 2px; }
.tarifs-encadre { background: var(--fond); border-radius: var(--rayon); padding: 22px; }
.tarifs-encadre p { color: var(--encre-douce); font-size: 16px; }
.tarifs-encadre .bouton { width: 100%; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: var(--carte); border: 1px solid var(--bordure); border-radius: 14px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 400; color: var(--accent); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 20px 18px; color: var(--encre-douce); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact { grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; } }
.contact-direct { display: grid; gap: 12px; }
.contact-direct .bouton { width: 100%; }
@media (min-width: 560px) and (max-width: 899px) { .contact-direct { grid-template-columns: 1fr 1fr; } }
.contact-email { font-size: 15px; color: var(--encre-douce); margin-top: 6px; }
.formulaire {
  background: var(--carte); border: 1px solid var(--bordure); border-radius: 22px; padding: 24px 18px;
  box-shadow: var(--ombre);
}
@media (min-width: 600px) { .formulaire { padding: 32px; } }
.champs { display: grid; gap: 16px; }
@media (min-width: 600px) { .champs { grid-template-columns: 1fr 1fr; } .champ-large { grid-column: 1 / -1; } }
.champ label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.champ .facultatif { font-weight: 400; color: var(--encre-douce); }
.champ input, .champ select, .champ textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--encre);
  background: #fff; border: 1.5px solid #b9ae9d; border-radius: 10px; padding: 11px 12px; min-height: 48px;
}
.champ textarea { min-height: 110px; resize: vertical; }
.champ select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--encre) 50%), linear-gradient(135deg, var(--encre) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 36px;
}
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--terracotta-fonce); outline: 3px solid rgba(198, 113, 57, 0.3); outline-offset: 0; }
.consentement { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0; font-size: 15px; }
.consentement input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--terracotta-fonce); }
.piege { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.formulaire .bouton { width: 100%; }
@media (min-width: 600px) { .formulaire .bouton { width: auto; } }
.mention { font-size: 13px; color: var(--encre-douce); margin: 14px 0 0; }
.message-erreur {
  background: #fbe9e2; border: 1px solid #e3a58a; color: #6e2a12; border-radius: 12px; padding: 14px 16px; margin-top: 18px; font-size: 15px;
}
.message-erreur p { margin: 0 0 6px; }
.message-erreur p:last-child { margin: 0; }
.message-erreur a { color: #6e2a12; font-weight: 700; }
.succes { text-align: center; padding: 18px 4px; }
.succes svg { width: 56px; height: 56px; color: var(--olive-fonce); margin: 0 auto 12px; display: block; }
.succes h3 { font-size: 22px; }
.succes p { color: var(--encre-douce); }
[hidden] { display: none !important; }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: #d9cfc0; padding: 44px 0 32px; font-size: 15px; }
.pied a { color: #f5ead8; }
.pied .conteneur { display: grid; gap: 24px; }
@media (min-width: 760px) { .pied .conteneur { grid-template-columns: 1fr auto; align-items: end; } }
.pied .logo { color: var(--creme); }
.pied .logo-sous { color: #f0b48a; }
.pied-liens { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pied-bas { grid-column: 1 / -1; border-top: 1px solid #3c3835; padding-top: 18px; font-size: 14px; color: #b8ad9e; }

/* ---------- Page Programmes ---------- */
.nav a[aria-current="page"] { color: var(--accent); }
.lien-suite { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: 15px; }
.chapeau { padding: 48px 0 24px; }
.chapeau h1 { max-width: 820px; }
.chapeau .accroche { font-size: 19px; color: var(--encre-douce); max-width: 720px; }
.reperes { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 760px) { .reperes { grid-template-columns: repeat(3, 1fr); } }
.repere { background: var(--carte); border: 1px solid var(--bordure); border-radius: 14px; padding: 16px 18px; }
.repere strong { display: block; font-size: 16px; }
.repere span { font-size: 15px; color: var(--encre-douce); line-height: 1.45; display: block; }
.sommaire { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sommaire a {
  display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--carte); border: 1px solid var(--bordure);
  color: var(--encre); text-decoration: none; font-weight: 600; font-size: 15px;
}
.sommaire a:hover { border-color: var(--terracotta); color: var(--accent); }
.famille { margin: 0 0 18px; }
.famille + .programme { margin-top: 0; }
.programmes { display: grid; gap: 22px; }
.programme {
  background: var(--carte); border: 1px solid var(--bordure); border-radius: 22px; padding: 24px 20px;
  scroll-margin-top: 80px; display: grid; gap: 20px;
}
@media (min-width: 900px) { .programme { grid-template-columns: 1.1fr 0.9fr; padding: 34px; gap: 34px; } }
.programme-titre { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.programme-titre .icone { margin: 0; flex: none; }
.programme-titre h3 { font-size: 23px; margin: 0; }
.programme-titre .defaut {
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--olive-fonce);
  background: rgba(122, 138, 94, 0.16); border-radius: 999px; padding: 3px 10px; margin-left: 4px; white-space: nowrap;
}
.programme h4 { font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--olive-fonce); margin: 18px 0 6px; }
.programme p, .programme li { color: var(--encre-douce); font-size: 16px; }
.programme ul { margin: 0; padding-left: 20px; }
.programme li { margin-bottom: 4px; }
.exemple { background: var(--fond); border-radius: var(--rayon); padding: 20px; align-self: start; }
.exemple .qui { font-weight: 700; color: var(--encre); font-size: 17px; margin-bottom: 2px; }
.exemple .ou { font-size: 14px; color: var(--encre-douce); margin-bottom: 12px; }
.exemple ol { margin: 0; padding-left: 20px; }
.exemple li { color: var(--encre); font-size: 15.5px; margin-bottom: 6px; }
.exemple .resultat { margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed #cdbfa9; font-weight: 600; color: var(--accent); font-size: 15.5px; }
.tableau-objectifs { width: 100%; border-collapse: collapse; background: var(--carte); border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--bordure); }
.tableau-objectifs th, .tableau-objectifs td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--bordure); font-size: 16px; vertical-align: top; }
.tableau-objectifs th { background: var(--fond); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--olive-fonce); }
.tableau-objectifs tr:last-child td { border-bottom: 0; }
.tableau-objectifs a { font-weight: 700; }
.avertissement { font-size: 14px; color: var(--encre-douce); margin-top: 20px; }
.appel { text-align: center; }
.appel .heros-boutons { justify-content: center; margin-top: 22px; }
