/* « Qui suis-je ? » réagit comme les cartes des applis : ondule au survol, ronds dans l'eau au toucher. */
/* Effet de mer sur les blocs : ondulation au survol, ronds dans l'eau au toucher */
.moi, .mot, .valeur, .avis, .bientot, .chiffres > div { position: relative; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.moi.flot, .valeur.flot, .avis.flot, .bientot.flot, .chiffres > div.flot { border-color: var(--or); box-shadow: 0 12px 30px -8px rgba(148,129,43,.2); animation: ondule 2s ease-in-out infinite; }
.mot.flot { border-color: var(--or); box-shadow: 0 12px 30px -8px rgba(148,129,43,.2); animation: monte .7s ease forwards, ondule 2s ease-in-out infinite; }
.idee { transition: border-color .2s ease, box-shadow .2s ease; }
.idee.flot { border-color: var(--or); box-shadow: 0 12px 30px -8px rgba(148,129,43,.2); animation: ondule 2s ease-in-out infinite; }
.idee:focus-within { animation: none; }
.moi.vague, .valeur.vague, .avis.vague, .chiffres > div.vague { border-color: var(--or); animation: clapote .65s ease-out; }
.mot.vague { border-color: var(--or); animation: monte .7s ease forwards, clapote .65s ease-out; }
.moi.vague .photo { animation: clapote .65s ease-out; }
@media (prefers-reduced-motion: reduce) { .chiffres > div.flot, .chiffres > div.vague, .bientot.flot, .moi.flot, .mot.flot, .valeur.flot, .avis.flot, .idee.flot, .moi.vague, .mot.vague, .valeur.vague, .avis.vague, .moi.vague .photo { animation: none !important; } }
/* Menu : les liens flottent doucement sous la souris ou le doigt. */
.liens a, .langue { display: inline-block; }
.liens a:hover, .liens a:focus-visible, .liens a:active, .langue:hover, .langue:active, .menu-btn:hover, .menu-btn:active { animation: flotte 1.4s ease-in-out infinite; }
@keyframes flotte { 0%,100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-3px) rotate(-1deg); } 75% { transform: translateY(1px) rotate(1deg); } }
/* Logo MMBT et photo : flottent comme sur l'eau ; la photo se balance un peu plus. */
.marque:hover, .marque:focus-visible, .marque:active { animation: flotte 1.6s ease-in-out infinite; }
.marque:hover .m, .marque:focus-visible .m, .marque:active .m { animation: balance 1.6s ease-in-out infinite; box-shadow: 0 0 0 2px var(--or); }
@keyframes balance { 0%,100% { transform: rotate(0) scale(1); } 25% { transform: rotate(-6deg) scale(1.06); } 75% { transform: rotate(6deg) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .liens a, .langue, .menu-btn { animation: none !important; } }
.card p.acces { color: var(--or); font-size: .85rem; font-weight: 600; margin-top: -4px; }
.card .techno + p.acces { margin-top: 8px; } /* ne pas coller la ligne des technologies */
/* Photo de Maabadi : dans la barre du haut et dans « Qui suis-je ? » (à la place du M). */
.marque .m, .moi .photo { background: #121210 url(photo-maabadi.webp) center/cover; color: transparent; }
.marque .m { border: 1px solid var(--or-fonce); }
.logo-tag { text-transform: none; font-size: .95rem; letter-spacing: .5px; }
/* Capture d'écran de chaque appli, sur sa carte. */
.card .capture { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--border); margin: 6px 0 18px; }
/* Le nom en grand au-dessus de « Karibu ». */
header .logo-tag { background: none; border: 0; padding: 0; font-family: "Inter", system-ui, sans-serif; font-size: 2rem; font-weight: 600; letter-spacing: 0; color: var(--text); margin-bottom: 4px; }
@media (max-width: 760px) { header .logo-tag { font-size: 1.6rem; } }

@media (prefers-reduced-motion: reduce) { .marque:hover, .marque:active, .marque:hover .m, .marque:active .m { animation: none !important; } }

/* Finitions : textes des cartes en haut, capture et bouton alignés en bas sur chaque ligne. */
.grid .card > div:first-child { flex: 1 1 auto; }
.sur-titre { margin-top: 8px; }
/* Icônes : toutes dans le même carré noir arrondi, avec le même poids visuel. */
.icone.logo { background: #000; border: 1px solid var(--border); border-radius: 16px; }
.icone.logo img { width: 54px; height: 54px; object-fit: contain; }
.icone svg { width: 46px; height: 46px; }
.bientot .journal { display: inline-block; margin-top: 12px; color: var(--or); font-weight: 600; text-decoration: none; }
.bientot .journal:hover { text-decoration: underline; }
/* État des applis : pastille sur chaque carte (vert = en service, ambre = en pause). */
.card .etat { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .3px; color: var(--muted); background: rgba(0,0,0,.5); border: 1px solid var(--border); }
[dir="rtl"] .card .etat { right: auto; left: 16px; }
.etat i { width: 8px; height: 8px; border-radius: 50%; background: #3ecf6e; animation: pouls 2.4s ease-out infinite; }
.etat.pause i { background: #d9a23a; animation: none; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(62,207,110,.55); } 70% { box-shadow: 0 0 0 7px rgba(62,207,110,0); } 100% { box-shadow: 0 0 0 0 rgba(62,207,110,0); } }
@media (prefers-reduced-motion: reduce) { .etat i { animation: none; } }
/* Bouton WhatsApp : glisse doucement de gauche à droite jusqu'au premier clic (s'arrête sous la souris). */
.whatsapp { animation: glisse 2.2s ease-in-out infinite; }
.whatsapp:hover, .whatsapp:focus-visible { animation-play-state: paused; }
.whatsapp.clique { animation: none; }
@keyframes glisse { 0%,100% { transform: translateX(-22px) rotate(-2deg); } 50% { transform: translateX(22px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .whatsapp { animation: none; } }
/* Carte de l'Appli Pêcheurs : bouton « Comment ça marche » à côté de « Ouvrir l'appli ». */
.boutons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-guide { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--or-fonce); color: var(--or); font-weight: 600; cursor: pointer; }
.btn-guide:hover, .btn-guide:focus-visible { background: var(--or); color: #000; outline: none; }
@media (max-width: 480px) { .boutons { flex-wrap: nowrap; gap: 8px; } .boutons .btn-link, .boutons .btn-guide { padding: 8px 12px; font-size: .86rem; white-space: nowrap; } }
@media (max-width: 380px) { .boutons { gap: 6px; flex-wrap: wrap; } .boutons .btn-link, .boutons .btn-guide { padding: 7px 9px; font-size: .78rem; } } /* petits téléphones : les deux boutons tiennent dans la carte */
@keyframes respire { 0%,100% { translate: 0 0; rotate: 0deg; } 25% { translate: 0 -3px; rotate: -.2deg; } 50% { translate: 0 -1px; rotate: 0deg; } 75% { translate: 0 -4px; rotate: .2deg; } }
/* Rien ne bouge tout seul : les blocs et le menu ondulent seulement sous la souris ou au toucher. */
@media (prefers-reduced-motion: no-preference) {
    .liens a:hover, .liens a:focus-visible, .liens a:active, .langue:hover, .langue:active, .menu-btn:hover, .menu-btn:active, .marque:hover, .marque:focus-visible, .marque:active { animation: flotte 1.4s ease-in-out infinite; }
}
/* Les cases des chiffres respirent doucement toutes seules (demande de Maabadi), chacune à son rythme ; sous la souris ou au toucher, l'ondulation prend le relais. */
@media (prefers-reduced-motion: no-preference) {
    .chiffres > div:not(.flot):not(.vague) { animation: respire 6s ease-in-out infinite; }
    .chiffres > div:not(.flot):not(.vague):nth-child(2) { animation-delay: -1.5s; animation-duration: 6.6s; }
    .chiffres > div:not(.flot):not(.vague):nth-child(3) { animation-delay: -3s; animation-duration: 5.8s; }
    .chiffres > div:not(.flot):not(.vague):nth-child(5) { animation-delay: -2.2s; animation-duration: 6.4s; }
    .chiffres > div:not(.flot):not(.vague):nth-child(6) { animation-delay: -4s; }
    .chiffres > div:not(.flot):not(.vague):nth-child(7) { animation-delay: -.8s; animation-duration: 7s; }
}

/* MMBT École : 3e bouton « Présentation et tarifs », plein et sur toute la largeur */
.boutons:has(.btn-tarifs) { flex-wrap: wrap; }
.boutons .btn-tarifs { flex-basis: 100%; text-align: center; background: var(--or); color: #000; border-color: var(--or); }
html[data-theme="B"] .boutons .btn-tarifs { background: #0f5a3c; color: #fff; border-color: #0f5a3c; }
.installer > p a { color: var(--or); font-weight: 600; text-underline-offset: 3px; }
/* Badge officiel « Disponible sur Google Play » (image Google, non modifiée) */
.btn-play { display: inline-flex; align-items: center; cursor: pointer; border-radius: 10px; }
.btn-play img, .scenes__play img { display: block; width: auto; height: 54px; }
.btn-play:focus-visible, .scenes__play:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.scenes__play { display: inline-flex; align-items: center; margin: -6px 0; transition: transform .2s; }
.scenes__play:hover { transform: translateY(-2px); }
@media (max-width: 640px) { .btn-play img, .scenes__play img { height: 50px; } }
.boutons:has(.btn-play) { flex-wrap: wrap; }
@media (max-width: 480px) { .boutons .btn-play { flex-basis: 100%; } }

/* ---------- Pages « projet » : lien sous le texte de l'appli (scenes.js) et sur les cartes ---------- */
.scenes__projet { display: inline-block; margin: -4px 0 10px; color: var(--or); font-weight: 600; font-size: .95rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.scenes__projet:hover { text-decoration-thickness: 2px; }
.boutons:has(.btn-projet) { flex-wrap: wrap !important; }

/* ---------- Travailler avec moi : écoles, associations, entreprises ---------- */
.travailler .atouts { list-style: none; margin: 22px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; }
.travailler .atouts li { display: inline-flex; align-items: center; text-align: start; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); font-size: .9rem; }
.travailler .atouts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--or); flex: none; }
.travailler-boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.travailler-boutons a { padding: 13px 24px; border-radius: 999px; border: 1px solid var(--or-fonce); color: var(--or); font-weight: 700; text-decoration: none; }
.travailler-boutons a.plein { background: var(--or); color: #000; border-color: var(--or); }
.travailler-boutons a:hover { background: var(--or); color: #000; }
.travailler-boutons a.plein:hover { filter: brightness(1.08); }
html[data-theme="B"] .travailler-boutons a { color: #0f5a3c; border-color: rgba(15,90,60,.4); }
html[data-theme="B"] .travailler-boutons a.plein, html[data-theme="B"] .travailler-boutons a:hover { background: #0f5a3c; color: #fff; border-color: #0f5a3c; }
html[data-theme="B"] .travailler .atouts li::before { background: #0f5a3c; }
html[data-theme="B"] .scenes__projet { color: #0f5a3c; }
@media (max-width: 480px) { .travailler .atouts li { font-size: .84rem; padding: 7px 12px; } .travailler-boutons a { width: 100%; text-align: center; } }

/* ---------- Bas de page « pro » (formulaire + nouvelles, bandeau projet, pied en 3 colonnes) ---------- */
.bas-duo { width: 100%; display: flex; flex-direction: column; align-items: center; }
@media (min-width: 1000px) {
  .bas-duo { max-width: 1120px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; margin-top: 72px; }
  .bas-duo > .idee { max-width: none; margin-top: 0; }
}
.bande-projet { width: calc(100% + 40px); margin: 96px -20px 0; padding: 64px 20px; background: color-mix(in srgb, var(--or) 7%, var(--card-bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bande-in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.bande-kick { margin: 0 0 10px; color: var(--or); font-size: .8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.bande-projet h2 { margin: 0 0 10px; font-size: 2.2rem; font-weight: 600; letter-spacing: -0.8px; }
.bande-projet p:not(.bande-kick) { margin: 0; color: var(--muted); max-width: 600px; line-height: 1.6; }
.bande-btn { flex: none; padding: 15px 30px; border-radius: 999px; background: var(--or); color: #000; font-weight: 700; text-decoration: none; white-space: nowrap; }
.bande-btn:hover { filter: brightness(1.08); }
footer.pied-pro { width: calc(100% + 40px); margin: 0 -20px -40px; padding: 56px 20px 28px; text-align: start; line-height: 1.6; font-size: .95rem; }
.pied-cols { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; }
.pied-col h2 { margin: 6px 0 18px; font-size: 1rem; font-weight: 600; color: var(--text); }
.pied-col p { margin: 0 0 14px; color: var(--muted); }
.pied-marque { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--text) !important; margin-bottom: 14px; }
.pied-marque .m { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #000; background: linear-gradient(135deg, #d6c56a, var(--or-fonce)); font-weight: 700; }
.pied-lieu { display: flex; gap: 10px; align-items: flex-start; }
.pied-col svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--or); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.pied-col .merci { display: block; font-style: italic; margin-top: 18px; }
.pied-contact, .pied-liens { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pied-contact li { display: flex; gap: 12px; align-items: flex-start; }
.pied-contact .ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); flex: none; }
.pied-contact .ico svg { margin: 0; }
.pied-contact small { display: block; color: var(--muted); font-size: .8rem; }
.pied-contact a { color: var(--text); }
.pied-liens { gap: 4px; }
.pied-liens a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; color: var(--text); }
.pied-liens a small { color: var(--muted); font-size: .78rem; margin-inline-start: 6px; }
.pied-liens .fleche { color: var(--or); margin-inline-start: auto; }
[dir="rtl"] .pied-liens .fleche { transform: scaleX(-1); }
.pied-contact a:hover, .pied-liens a:hover { color: var(--or); }
.pied-bas { max-width: 1120px; margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--muted); font-size: .86rem; }
.pied-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pied-legal a { color: var(--muted); } .pied-legal a:hover { color: var(--or); }
@media (max-width: 860px) {
  .bande-in { flex-direction: column; align-items: flex-start; gap: 22px; }
  .bande-projet { padding: 48px 20px; margin-top: 72px; }
  .bande-projet h2 { font-size: 1.7rem; }
  .bande-btn { align-self: stretch; text-align: center; }
  .pied-cols { grid-template-columns: 1fr; gap: 32px; }
  .pied-bas { flex-direction: column; }
}
html[data-theme="B"] .bande-kick, html[data-theme="B"] .pied-liens .fleche { color: #0f5a3c; }
html[data-theme="B"] .bande-btn { background: #0f5a3c; color: #fff; }
html[data-theme="B"] .pied-col svg { stroke: #0f5a3c; }
html[data-theme="B"] footer.pied-pro .pied-contact a, html[data-theme="B"] footer.pied-pro .pied-liens a, html[data-theme="B"] footer.pied-pro .pied-marque { color: var(--text) !important; }
html[data-theme="B"] footer.pied-pro .pied-legal a { color: var(--muted) !important; }
.bas-cote { width: 100%; display: flex; flex-direction: column; align-items: center; }
.bas-cote .whatsapp { margin-top: 28px; }
@media (min-width: 1000px) { .bas-cote > .idee.nouvelles { margin-top: 0; max-width: none; } }
/* Bouton WhatsApp flottant (16/11/2026, souhait de Maabadi) : un rond vert avec le logo, fixé à droite,
   juste au-dessus du bouton des couleurs. Il reste à l'écran quand on descend ou qu'on remonte. */
.whatsapp.flottant { position: fixed; right: 11px; bottom: 76px; z-index: 70; margin: 0; padding: 0; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; gap: 0; animation: none; transform: none; box-shadow: 0 6px 18px rgba(0,0,0,.28); transition: background .2s ease, box-shadow .2s ease; }
.whatsapp.flottant svg { width: 30px; height: 30px; }
.whatsapp.flottant:hover, .whatsapp.flottant:focus-visible { box-shadow: 0 8px 24px rgba(37,211,102,.45); }
.whatsapp.flottant .wa-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Sur téléphone, la bulle « Envie d'être prévenu ? » prend toute la largeur : le rond WhatsApp monte au-dessus le temps qu'elle est là */
@media (max-width: 600px) { body:has(.bulle-nouvelles.est-la) .whatsapp.flottant { bottom: 222px; } .whatsapp.flottant { transition: bottom .35s ease, background .2s ease, box-shadow .2s ease; } }
