/* Site boutimarket.eu — habillage des pages (thème Twenty Twenty-Five). Couleurs du logo :
   bleu #5B4CFB (« Bouti »), vert #43A82A (« market »). Les blocs WordPress portent les classes bm-*. */
:root {
  --bm-bleu: #5B4CFB;
  --bm-bleu-fonce: #3f31d6;
  --bm-vert: #2f7d1d;          /* vert du logo foncé : contraste AA sur blanc pour le texte */
  --bm-encre: #14142b;
  --bm-gris: #55566b;
  --bm-fond: #f6f5ff;
  --bm-filet: #e2e0f5;
}

.bm-section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.bm-fond { background: var(--bm-fond); }
.bm-centre { text-align: center; }
.bm-surtitre { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--bm-vert); margin-bottom: .5rem; }
.bm-hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.1; color: var(--bm-encre); }
.bm-hero .bm-accroche { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--bm-gris); max-width: 40rem; }
.bm-prix { color: var(--bm-bleu); white-space: nowrap; }

.wp-block-button.bm-principal .wp-block-button__link { background: var(--bm-bleu); color: #fff; border-radius: 999px; padding: .85em 1.6em; font-weight: 700; }
.wp-block-button.bm-principal .wp-block-button__link:hover { background: var(--bm-bleu-fonce); }
.wp-block-button.bm-secondaire .wp-block-button__link { background: transparent; color: var(--bm-bleu); border: 2px solid var(--bm-bleu); border-radius: 999px; padding: .75em 1.5em; font-weight: 700; }

.bm-video { aspect-ratio: 16 / 9; border-radius: 16px; background: var(--bm-encre); color: #fff; display: grid; place-items: center; overflow: hidden; }
.bm-video video { width: 100%; height: 100%; object-fit: cover; }
.bm-video p { margin: 0; padding: 1rem; opacity: .85; text-align: center; }
/* Vidéo « pour qui ? » en tête d'accueil, sur un bandeau nuit d'un bord à l'autre. La vidéo elle-même doit tenir EN
   ENTIER dans l'écran sous le menu (GP 08/10 : sur un portable, la pleine largeur la faisait déborder en bas) : largeur
   = la plus petite entre « l'écran moins une marge de chaque côté » et « la hauteur libre × 16/9 ».
   --bm-entete : hauteur du menu du thème (83 px mesurés). svh : hauteur visible réelle sur téléphone (barres du navigateur). */
.bm-pleine { --bm-entete: 83px; --bm-marge: clamp(12px, 2.5vw, 32px);
  background: #07071a; margin-block: 0 !important; padding: var(--bm-marge); }
.bm-video-pleine { position: relative; margin-inline: auto; max-width: 1920px; border-radius: 12px; overflow: hidden;
  width: min(100%, calc((100vh - var(--bm-entete) - 2 * var(--bm-marge)) * 16 / 9));
  width: min(100%, calc((100svh - var(--bm-entete) - 2 * var(--bm-marge)) * 16 / 9)); }
.bm-video-pleine video { cursor: pointer; }
.bm-rejouer { position: absolute; right: clamp(10px, 2vw, 24px); bottom: clamp(10px, 2vw, 24px); display: inline-flex; align-items: center; gap: .45em;
  min-height: 44px; padding: .5em 1.1em .5em .85em; border-radius: 999px; border: 1px solid rgba(255,255,255,.45);
  background: rgba(7,7,26,.55); color: #fff; font: 700 .95rem/1 inherit; cursor: pointer; backdrop-filter: blur(4px); transition: background .2s; }
.bm-rejouer:hover { background: rgba(7,7,26,.8); border-color: #fff; }
.bm-rejouer:focus-visible { outline: 3px solid #8f84ff; outline-offset: 2px; }
.bm-fini .bm-rejouer { background: var(--bm-bleu); border-color: var(--bm-bleu); }
.bm-video-pleine video, .bm-video-pleine img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.bm-video-pleine p { margin: 0; padding: 2rem 1rem; color: #fff; text-align: center; }

.bm-carte { background: #fff; border: 1px solid var(--bm-filet); border-radius: 14px; padding: 1.4rem 1.5rem; height: 100%; }
/* Titre de carte PLUS GRAND que son texte (GP 31/10 : la hiérarchie était inversée — titre 1,1 rem sous un texte
   du thème plus grand, sur toutes les cartes du site). */
.bm-carte h3 { font-size: 1.3rem; line-height: 1.25; margin-top: 0; margin-bottom: .5rem; color: var(--bm-encre); }
.bm-carte p { font-size: 1rem; line-height: 1.55; }
/* Page « Les plus » : le numéro en pastille. */
.bm-plus .bm-surtitre { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--bm-bleu); color: #fff; font-size: 1rem; font-weight: 800; letter-spacing: 0; margin-bottom: .8rem; }
.bm-carte p { color: var(--bm-gris); margin-bottom: 0; }
.bm-etape-num { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--bm-bleu); color: #fff; font-weight: 800; margin: 0; }

.bm-offre { border: 2px solid var(--bm-bleu); display: flex; flex-direction: column; }
/* Bouton de chaque formule en bas de sa carte, alignés d'une carte à l'autre (plan_bascule_annuelle.md, 18/11). */
.bm-offre > .wp-block-buttons { margin-top: auto; padding-top: 1rem; }
.bm-montant { font-size: 2.6rem; font-weight: 800; color: var(--bm-bleu); margin: .2rem 0; }
.bm-coche li { list-style: none; padding-left: 1.6rem; position: relative; margin: .35rem 0; }
.bm-coche li::before { content: ""; position: absolute; left: 0; top: .35em; width: .9rem; height: .5rem; border-left: 3px solid var(--bm-vert); border-bottom: 3px solid var(--bm-vert); transform: rotate(-45deg); }
.bm-coche { padding-left: 0; }

.bm-feuille h3 { font-size: 1rem; }
.bm-feuille .bm-fait { color: var(--bm-vert); }
.bm-feuille .bm-bientot { color: var(--bm-bleu); }

.bm-partenaires { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; padding: 0; }
.bm-partenaires li { list-style: none; border: 1px solid var(--bm-filet); border-radius: 999px; padding: .4rem 1rem; background: #fff; }

.bm-tableau table { border-collapse: collapse; width: 100%; }
.bm-tableau th, .bm-tableau td { border-bottom: 1px solid var(--bm-filet); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.bm-tableau td:last-child, .bm-tableau th:last-child { text-align: right; white-space: nowrap; }

/* Formulaire « Demander ma boutique » ([bm_demande]) */
.bm-demande { max-width: 46rem; margin-inline: auto; }
.bm-demande .bm-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0 1.2rem; }
.bm-demande label { display: block; font-weight: 600; margin-bottom: .3rem; }
/* Champs texte en pleine largeur ; cases à cocher et boutons radio exclus (sinon ils prennent toute la ligne et repoussent
   leur libellé — vu par GP le 08/10 sur « Votre demande »). */
.bm-demande input:not([type=checkbox]):not([type=radio]), .bm-demande textarea { width: 100%; box-sizing: border-box; padding: .75rem .9rem; border: 1px solid #b9b7d6; border-radius: 10px; font: inherit; background: #fff; }
.bm-demande input:focus, .bm-demande textarea:focus { outline: 3px solid rgba(91, 76, 251, .35); border-color: var(--bm-bleu); }
.bm-demande .bm-accord label { font-weight: 400; display: flex; gap: .6rem; align-items: flex-start; }
.bm-demande .bm-accord input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex: none; }
.bm-demande .bm-nature { border: 0; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.bm-demande .bm-nature legend { font-weight: 700; margin-bottom: .5rem; padding: 0; }
.bm-demande .bm-nature label { font-weight: 600; display: flex; gap: .5rem; align-items: center; min-height: 44px; }
.bm-demande .bm-nature input { width: 1.1rem; height: 1.1rem; margin: 0; flex: none; accent-color: var(--bm-bleu); }
.bm-demande .bm-cdc small { display: block; color: var(--bm-gris); margin-top: .3rem; }
.bm-demande .bm-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bm-bouton { background: var(--bm-bleu); color: #fff; border: 0; border-radius: 999px; padding: .9em 1.8em; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; }
.bm-bouton:hover { background: var(--bm-bleu-fonce); }
.bm-bouton:disabled { opacity: .6; cursor: default; }
.bm-etat.ok { background: #e9f6e4; color: #1f5a12; padding: .9rem 1rem; border-radius: 10px; }
.bm-etat.erreur { background: #fdecea; color: #8a1c12; padding: .9rem 1rem; border-radius: 10px; }

/* Pages juridiques générées depuis les .md (CGV, contrat de sous-traitance) */
.bm-juridique h2 { margin-top: 2.2rem; font-size: 1.35rem; }
.bm-juridique h3 { font-size: 1.1rem; }
.bm-juridique .tablewrap { overflow-x: auto; }
.bm-juridique table { border-collapse: collapse; width: 100%; }
.bm-juridique th, .bm-juridique td { border: 1px solid var(--bm-filet); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.bm-juridique aside.note { background: var(--bm-fond); border-radius: 10px; padding: .9rem 1.1rem; }
/* Grille tarifaire (page Tarifs) : quatre tableaux qui doivent s'aligner — mêmes largeurs de colonnes, prix à droite,
   filets horizontaux seulement, titre de chaque tableau en bandeau (GP 31/10 : « le tableau est de travers »). */
.bm-grille table { table-layout: fixed; margin: 0 0 1.4rem; }
.bm-grille th, .bm-grille td { border: 0; border-bottom: 1px solid var(--bm-filet); padding: .65rem .9rem; }
.bm-grille th:first-child, .bm-grille td:first-child { width: 60%; }
.bm-grille th:last-child, .bm-grille td:last-child { text-align: right; }
.bm-grille thead th { background: var(--bm-fond); color: var(--bm-encre); font-weight: 700; }
.bm-grille aside.note { font-size: .92rem; color: var(--bm-gris); margin-bottom: 1.6rem; }
@media (max-width: 600px) { .bm-grille th:first-child, .bm-grille td:first-child { width: 55%; } .bm-grille th, .bm-grille td { padding: .55rem .5rem; } }
/* La grille sort de la colonne de lecture (≈ 650 px, faite pour du texte) : 960 px, lisible pour un tableau (GP 31/10). */
.bm-section-grille.is-layout-constrained > * { max-width: 960px; }
.bm-note { font-size: .92rem; color: var(--bm-gris); margin-top: 1.4rem; }

/* Menu et pied de page (parties posées par mettre_en_ligne.sh) */
.wp-block-navigation .bm-menu-action > a, .wp-block-navigation .bm-menu-action .wp-block-navigation-item__content { background: var(--bm-bleu); color: #fff !important; border-radius: 999px; padding: .5em 1.1em; font-weight: 700; }
.bm-pied { background: var(--bm-encre); color: #e8e7f7; padding-block: 3rem 2rem; margin-top: 0; }
.bm-pied h3 { color: #fff; font-size: 1rem; margin-top: 0; }
.bm-pied a { color: #e8e7f7; text-decoration: none; }
.bm-pied a:hover { color: #fff; text-decoration: underline; }
.bm-pied .bm-liens { list-style: none; padding-left: 0; }
.bm-pied .bm-liens li { margin: .4rem 0; }
.bm-pied .wp-block-site-logo img { background: #fff; border-radius: 10px; padding: 8px 12px; }
.bm-pied .bm-copyright { font-size: .85rem; color: #a9a8c2; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; margin-top: 2rem; }

/* « Créer ma boutique » ([bm_inscription]) : adresse = champ + suffixe .boutimarket.eu, disponibilité en direct. */
.bm-adresse { display: flex; align-items: stretch; border: 1px solid #b9b7d6; border-radius: 10px; background: #fff; overflow: hidden; }
.bm-adresse:focus-within { outline: 3px solid rgba(91, 76, 251, .35); border-color: var(--bm-bleu); }
.bm-demande .bm-adresse input { border: 0; border-radius: 0; flex: 1 1 auto; min-width: 0; outline: none; }
.bm-suffixe { display: flex; align-items: center; padding: 0 .9rem; background: var(--bm-fond); color: var(--bm-gris); font-weight: 600; white-space: nowrap; }
.bm-demande select { width: 100%; box-sizing: border-box; padding: .75rem .9rem; border: 1px solid #b9b7d6; border-radius: 10px; font: inherit; background: #fff; }
.bm-dispo { display: block; margin-top: .35rem; font-size: .9rem; }
.bm-dispo.ok { color: var(--bm-vert); }
.bm-dispo.erreur { color: #b42318; }
.bm-id-etat { display: block; margin-top: .35rem; font-size: .9rem; }
.bm-id-etat.ok { color: var(--bm-vert); }
.bm-id-etat.erreur { color: #b42318; }
.bm-inscription-ok { max-width: 46rem; margin-inline: auto; background: #fff; border: 1px solid var(--bm-filet); border-radius: 14px; padding: 1.4rem 1.5rem; }
.bm-inscription-ok h3 { margin-top: 0; color: var(--bm-encre); }
.bm-inscription-ok .bm-discret { color: var(--bm-gris); font-size: .92rem; }
@media (max-width: 30rem) { .bm-suffixe { padding: 0 .55rem; font-size: .85rem; } }

/* Pages par métier (construire.py page_metier) : carte « en bref » du bandeau à la hauteur de son contenu, centrée face au
   titre ; encart « Voir la démonstration » centré et resserré ; mention « Bientôt » en bleu. */
.bm-metier .wp-block-columns { align-items: center; }
.bm-metier .bm-bref { height: auto; box-shadow: 0 12px 32px rgba(20, 20, 43, .08); }
.bm-metier .bm-bref h3 { font-size: 1.45rem; }
.bm-metier .bm-bref .bm-coche li { font-weight: 600; color: var(--bm-encre); }
.bm-demo { max-width: 46rem !important; margin-inline: auto !important; text-align: center; padding: 2rem 2rem 1.6rem; border: 2px solid var(--bm-bleu); }
.bm-demo h2 { margin-top: 0; }
.bm-demo p { font-size: 1.05rem; }
.bm-surtitre.bm-bientot { color: var(--bm-bleu); }
@media (max-width: 600px) { .bm-demo { padding: 1.4rem 1.1rem 1.2rem; } }
