/* Bantoubook : site public (bantoubook.com). Identité de l'application
   (planche Claude Design du 15/10/2026) : Nuit, rouge Bantoubook, Ocre,
   Indigo Ndop, Crème ; frise Toghu ; losange. Polices hébergées ici
   (licence OFL, dossier fonts/), sans appel à un service tiers. */

@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/BricolageGrotesque-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/BricolageGrotesque-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --rouge: #D60F00;
  --ocre: #F2A900;
  --indigo: #1F2B5E;
  --nuit: #140E0D;
  --creme: #FBF4EC;

  --fond: #FBF4EC;
  --carte: #F0E4D7;
  --filet: #E2D1C0;
  --texte: #140E0D;
  --discret: #6E5D55;
  --accent: #8A5F00;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #140E0D;
    --carte: #221A18;
    --filet: #3A2D29;
    --texte: #FBF4EC;
    --discret: #BFB1A8;
    --accent: #F2A900;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--rouge); }
:focus-visible { outline: 3px solid var(--ocre); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: "Bricolage Grotesque", "DM Sans", sans-serif; margin: 0; }

.enveloppe { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.etroit { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Frise Toghu (broderie du Nord-Ouest) */
.toghu {
  height: 28px;
  background: #140E0D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='28' viewBox='0 0 26 28'%3E%3Crect width='26' height='28' fill='%23140E0D'/%3E%3Cpath d='M0 0h26L13 7.5z' fill='%23D60F00'/%3E%3Cpath d='M0 28h26L13 20.5z' fill='%23F2A900'/%3E%3Cpath d='M13 9.2l4.8 4.8-4.8 4.8-4.8-4.8z' fill='%23FBF4EC'/%3E%3Cpath d='M13 11.8l2.2 2.2-2.2 2.2-2.2-2.2z' fill='%23D60F00'/%3E%3Cpath d='M26 10.4l3.6 3.6-3.6 3.6-3.6-3.6zM0 10.4l3.6 3.6L0 17.6-3.6 14z' fill='%231F8A4C'/%3E%3C/svg%3E") repeat-x;
}
.toghu.fin { height: 8px; background-size: auto 8px; }

/* ------------------------------------------------------------ En-tête */
.entete { position: relative; z-index: 3; color: var(--creme); background: var(--nuit); }
.entete .enveloppe { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.marque img { width: 44px; height: 44px; }
.marque span { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 25px; letter-spacing: -0.02em; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; font-weight: 500; }
.nav a { color: inherit; text-decoration: none; }
.nav a:hover { color: var(--ocre); }

/* --------------------------------------------- Ouverture (toujours nuit) */
.scene {
  position: relative;
  background: var(--nuit);
  color: var(--creme);
  overflow: hidden;
  isolation: isolate;
}
.scene::before {
  /* lueur de la couverture en écoute (indigo Ndop), comme dans le lecteur */
  content: "";
  position: absolute; left: 40%; right: -15%; top: 5%; height: 110%;
  background: radial-gradient(closest-side, rgba(58, 80, 178, 0.55), rgba(31, 43, 94, 0) 72%);
  z-index: -1;
  animation: respire 6s ease-in-out infinite;
}
@keyframes respire { 50% { opacity: 0.55; transform: scale(1.06); } }

.scene .corps { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 36px; padding-bottom: 48px; }
.scene h1 {
  font-size: clamp(46px, 7.2vw, 98px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.035em;
}
.scene h1 .ligne { display: block; }
.scene h1 .contour { -webkit-text-stroke: 2px var(--creme); color: transparent; }
.scene .signature { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.25; color: var(--ocre); margin: 22px 0 0; text-wrap: balance; }
.scene .chapo { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: #E8DCD2; max-width: 36ch; margin: 18px 0 30px; }
.scene .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.etat {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--creme); color: var(--nuit);
  font-weight: 700; font-size: 15px;
}
.etat::before { content: ""; width: 9px; height: 9px; transform: rotate(45deg); background: var(--rouge); }
.scene .actions a { color: var(--creme); font-weight: 500; }
.scene .actions a:hover { color: var(--ocre); }

/* Le téléphone : capture réelle du lecteur */
.telephone {
  justify-self: center;
  width: min(300px, 72vw);
  margin: 0;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2C3150, #0B0A10 60%);
  box-shadow: 0 0 0 1px rgba(251, 244, 236, 0.10), 0 40px 80px rgba(0, 0, 0, 0.6);
  transform: rotate(-3deg);
}
.telephone img { width: 100%; height: auto; border-radius: 37px; }

/* La route Douala → Yaoundé */
.route {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding-bottom: 36px;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 17px;
}
.route .voie { position: relative; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(251, 244, 236, 0.32) 0 14px, transparent 14px 24px); }
.route .voie::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 40%; background: var(--ocre); border-radius: 2px; animation: avance 28s linear infinite; }
.route .voyageur {
  position: absolute; top: 50%; left: 40%;
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  background: var(--ocre); transform: rotate(45deg);
  box-shadow: 0 0 0 6px rgba(242, 169, 0, 0.18);
  animation: voyage 28s linear infinite;
}
@keyframes avance { from { width: 3%; } to { width: 97%; } }
@keyframes voyage { from { left: 3%; } to { left: 97%; } }
@media (prefers-reduced-motion: reduce) {
  .scene::before, .route .voie::before, .route .voyageur { animation: none; }
}

/* ------------------------------------------------------------- Sections */
.bloc { padding: 96px 0; }
.bloc h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; max-width: 18ch; }
.bloc .intro { color: var(--discret); max-width: 58ch; margin: 18px 0 0; font-size: 18px; }

/* Comment ça marche : trois étapes sur une même ligne de route */
.etapes-route { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; position: relative; }
.etapes-route::before { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--filet) 0 12px, transparent 12px 20px); }
.etapes-route li { position: relative; padding-top: 72px; }
.etapes-route .losange { position: absolute; top: 0; left: 0; width: 44px; height: 44px; display: grid; place-items: center; }
.etapes-route .losange::before { content: ""; position: absolute; inset: 6px; transform: rotate(45deg); background: var(--rouge); border-radius: 4px; }
.etapes-route li:nth-child(2) .losange::before { background: var(--ocre); }
.etapes-route li:nth-child(3) .losange::before { background: var(--indigo); }
.etapes-route .losange span { position: relative; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; color: var(--creme); }
.etapes-route li:nth-child(2) .losange span { color: var(--nuit); }
.etapes-route h3 { font-size: 24px; font-weight: 700; line-height: 1.15; margin-bottom: 8px; }
.etapes-route p { margin: 0; color: var(--discret); }

/* Les œuvres */
.oeuvres { background: var(--carte); }
.etagere { margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.etagere figure { margin: 0; }
.etagere img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 22px 44px rgba(20, 14, 13, 0.32); transition: transform 0.35s ease; }
.etagere figure:hover img { transform: translateY(-6px) rotate(-1deg); }
@media (prefers-reduced-motion: reduce) { .etagere img { transition: none; } .etagere figure:hover img { transform: none; } }
.etagere figcaption { margin-top: 20px; }
.etagere figcaption strong { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 22px; line-height: 1.15; }
.etagere figcaption span { color: var(--discret); font-size: 15px; }
.note-source { margin: 36px 0 0; color: var(--discret); font-size: 15px; max-width: 70ch; }

/* La promesse : une affirmation, puis des faits */
.promesse .grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.faits { list-style: none; margin: 0; padding: 0; }
.faits li { padding: 22px 0 22px 40px; border-top: 1px solid var(--filet); position: relative; }
.faits li:last-child { border-bottom: 1px solid var(--filet); }
.faits li::before { content: ""; position: absolute; left: 4px; top: 31px; width: 12px; height: 12px; transform: rotate(45deg); background: var(--rouge); }
.faits strong { display: block; font-size: 19px; margin-bottom: 4px; }
.faits span { color: var(--discret); }

/* La carte du trajet, reprise de l'écran Téléchargés */
.trajet-zone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 56px; align-items: center; }
.carte-trajet { background: #FFFFFF; color: var(--nuit); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px rgba(20, 14, 13, 0.16); }
@media (prefers-color-scheme: dark) { .carte-trajet { background: var(--creme); box-shadow: none; } }
.carte-trajet .toghu { height: 10px; background-size: auto 10px; }
.carte-trajet .dedans { padding: 22px 24px 26px; }
.carte-trajet .titre-carte { color: var(--rouge); font-weight: 700; font-size: 14px; margin: 0; }
.carte-trajet h3 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 2px 0 8px; }
.carte-trajet p { margin: 0; }
.jauge { position: relative; height: 8px; border-radius: 4px; background: #E6DAD0; margin: 18px 0 8px; }
.jauge span { position: absolute; top: 0; bottom: 0; left: 0; width: 19%; background: var(--ocre); border-radius: 4px; }
.jauge i { position: absolute; right: 0; top: -5px; width: 3px; height: 18px; background: var(--nuit); }
.reperes { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.legende { color: var(--discret); font-size: 14px; margin: 12px 0 0; }

/* Contact */
.contact .adresse {
  display: inline-block; margin-top: 22px;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  font-size: clamp(24px, 4.6vw, 56px); letter-spacing: -0.03em; line-height: 1.1;
  color: var(--texte); text-decoration: none; border-bottom: 4px solid var(--rouge);
  overflow-wrap: anywhere;
}
.contact .adresse:hover { color: var(--rouge); }

/* --------------------------------------------------- Pages de texte */
.page-entete { background: var(--nuit); }
.page { padding: 48px 0 80px; }
.page h1 { font-size: clamp(34px, 5vw, 50px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 10px; }
.page .maj { color: var(--discret); font-size: 15px; margin: 0 0 32px; }
.page h2 { font-size: 24px; font-weight: 700; margin: 40px 0 12px; }
.page h2 .num { color: var(--accent); margin-right: 8px; }
.page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.page li::marker { color: var(--accent); }
.encadre { background: var(--carte); border-radius: 16px; padding: 18px 22px; margin: 20px 0; }
.encadre p { margin: 0; }
.tableau { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: 16px; }
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--filet); }
.tableau th { font-weight: 700; color: var(--discret); font-size: 14px; }
.etapes { counter-reset: e; list-style: none; padding: 0; }
.etapes li { counter-increment: e; position: relative; padding-left: 46px; margin: 14px 0; }
.etapes li::before {
  content: counter(e); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rouge); color: var(--creme); font-weight: 700; font-size: 15px;
}

/* Pied de page */
.pied { background: var(--nuit); color: #BFB1A8; font-size: 15px; }
.pied .enveloppe { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 28px; padding-bottom: 32px; }
.pied a { color: var(--creme); }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pied p { margin: 0; }

/* ----------------------------------------------------------- Téléphone */
@media (max-width: 860px) {
  .scene .corps { grid-template-columns: 1fr; gap: 44px; padding-top: 20px; }
  .telephone { transform: none; }
  .etapes-route { grid-template-columns: 1fr; gap: 0; }
  .etapes-route::before { top: 22px; bottom: 22px; left: 21px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--filet) 0 12px, transparent 12px 20px); }
  .etapes-route li { padding: 0 0 36px 68px; }
  .etagere { gap: 14px; }
  .etagere figcaption strong { font-size: 16px; }
  .etagere figcaption span { font-size: 13px; }
  .promesse .grille, .trajet-zone { grid-template-columns: 1fr; gap: 36px; }
  .bloc { padding: 72px 0; }
}
@media (max-width: 600px) {
  .tableau thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tableau tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--filet); }
  .tableau td { display: block; border: 0; padding: 3px 0; }
  .tableau td:first-child { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 19px; }
  .tableau td:nth-child(3) { color: var(--discret); }
  .tableau td:nth-child(3)::before { content: "Pourquoi : "; font-weight: 700; }
  .route { font-size: 15px; gap: 10px; }
}

/* Téléphone : en-tête sur deux lignes, étagère qui défile au doigt */
@media (max-width: 600px) {
  .entete .enveloppe { flex-wrap: wrap; row-gap: 8px; }
  .nav { width: 100%; gap: 4px 18px; }
  .etagere {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68%;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; gap: 18px;
    margin-left: -24px; margin-right: -24px; padding: 0 24px 18px;
  }
  .etagere figure { scroll-snap-align: start; }
  .etagere figcaption strong { font-size: 19px; }
  .etagere figcaption span { font-size: 14px; }
}
