/* couple-echangiste.be — sol de carreaux de ciment : quatre quarts en miroir, deux couples face à face. */
@font-face { font-family: "Marcellus"; font-weight: 400; font-style: normal; font-display: swap; src: url("/ciment/marcellus-400.woff2") format("woff2"); }
@font-face { font-family: "Kumbh Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/ciment/kumbh-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Kumbh Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/ciment/kumbh-sans-600.woff2") format("woff2"); }

:root {
  --craie: #f3eee4;
  --anthracite: #24272b;
  --terre: #a9472f;
  --ardoise: #2f5671;
  --ocre: #c9973b;
  --eau: #7fa89a;
  --sable: #e4d9c6;
  --ciment: #6b6e70;
  --joint: 3px;
  --titres: "Marcellus", "Palatino Linotype", Palatino, serif;
  --texte: "Kumbh Sans", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.cxb-fige { overflow: hidden; }
body.cxb { margin: 0; background: var(--craie); color: var(--anthracite); font: 400 1.0625rem/1.62 var(--texte); overflow-wrap: anywhere; }
.cxb img { max-width: 100%; height: auto; }
.cxb a { color: var(--ardoise); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cxb a:hover { color: var(--terre); }
.cxb h1, .cxb h2, .cxb h3 { font-family: var(--titres); font-weight: 400; line-height: 1.18; letter-spacing: .01em; }
.cxb h1 { font-size: clamp(1.75rem, 4.6vw, 2.75rem); margin: .2em 0 .45em; }
.cxb h2 { font-size: clamp(1.3rem, 2.8vw, 1.7rem); margin: 0 0 .6em; }
.cxb h3 { font-size: 1.2rem; margin: 1.1em 0 .5em; }
.cxb-evitement { position: absolute; left: -200vw; top: 0; }
.cxb-evitement:focus { left: 8px; top: 8px; z-index: 40; background: var(--anthracite); color: var(--craie); padding: 8px 12px; }

/* ---------- haut et bas de page */
.cxb-haut { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 12px clamp(14px, 4vw, 40px); background: var(--anthracite); color: var(--craie); border-bottom: 6px solid var(--terre); }
.cxb-marque { display: inline-flex; align-items: center; gap: 10px; color: var(--craie) !important; text-decoration: none; font-family: var(--titres); font-size: 1.25rem; }
.cxb-marque em { font-style: normal; color: var(--ocre); }
.cxb-menu { display: flex; flex-wrap: wrap; gap: 4px 18px; flex: 1 1 auto; }
.cxb-menu a { color: var(--sable); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.cxb-menu a:hover { color: #fff; border-bottom-color: var(--ocre); }
.cxb-bas { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px 34px; margin-top: 48px; padding: 34px clamp(14px, 4vw, 40px) 22px; background: var(--anthracite); color: var(--sable); border-top: 10px solid var(--ardoise); }
.cxb-bas h2 { color: var(--craie); font-size: 1.15rem; }
.cxb-bas p { margin: 0; font-size: .93rem; }
.cxb-bas a { color: var(--craie); }
.cxb-bas-ligne { grid-column: 1 / -1; border-top: 1px dashed var(--ciment); padding-top: 14px; font-size: .84rem !important; color: #b9b3a8; }

main#contenu { max-width: 1120px; margin: 0 auto; padding: 18px clamp(14px, 4vw, 40px) 8px; }
.cxb-relance { max-width: 1120px; margin: 26px auto 0; padding: 0 clamp(14px, 4vw, 40px); }

/* ---------- boutons */
.cxb-bouton { display: inline-block; border: 0; border-radius: 2px; padding: 11px 20px; font: 600 .98rem/1.2 var(--texte); text-decoration: none; cursor: pointer; text-align: center; }
.cxb-bouton-plein { background: var(--terre); color: #fff !important; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22); }
.cxb-bouton-plein:hover { background: #8f3a25; }
.cxb-bouton-terre { background: transparent; color: var(--terre) !important; outline: 2px solid var(--terre); outline-offset: -2px; }
.cxb-bouton-terre:hover { background: var(--terre); color: #fff !important; }
.cxb-bouton-lien { background: none; border: 0; padding: 0; color: var(--ardoise); font: 600 .95rem var(--texte); text-decoration: underline; cursor: pointer; }
.cxb-commencer { margin-left: auto; }

/* ---------- carreaux (quatre quarts en miroir) */
.cxb-carreau { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; width: 46px; height: 46px; flex: 0 0 auto; gap: 1px; background: var(--anthracite); border: 2px solid var(--anthracite); }
.cxb-carreau-xl { width: 92px; height: 92px; border-width: 3px; }
.cxb-carreau i { display: block; background-color: var(--sable); }
.cxb-carreau i:nth-child(2) { transform: scaleX(-1); }
.cxb-carreau i:nth-child(3) { transform: scaleY(-1); }
.cxb-carreau i:nth-child(4) { transform: scale(-1, -1); }
.cxb-carreau b { position: absolute; inset: 0; display: grid; place-items: center; font: 400 .82rem/1 var(--titres); color: var(--anthracite); }
.cxb-carreau b::before { content: ""; position: absolute; width: 58%; height: 58%; background: var(--craie); border-radius: 50%; z-index: -1; }
.cxb-carreau b { z-index: 1; isolation: isolate; }
.cxb-carreau-xl b { font-size: 1.45rem; }

.cxb-m-logo i { background: radial-gradient(circle at 100% 100%, var(--ocre) 0 28%, transparent 29%), conic-gradient(from 180deg at 100% 100%, var(--terre) 0 45deg, var(--craie) 45deg 90deg); }
.cxb-m-petales i { background: radial-gradient(ellipse 70% 40% at 100% 100%, var(--eau) 0 60%, transparent 62%), radial-gradient(ellipse 40% 70% at 100% 100%, var(--eau) 0 60%, transparent 62%), var(--craie); }
.cxb-m-rosace i { background: radial-gradient(circle at 100% 100%, var(--terre) 0 40%, var(--craie) 41% 52%, var(--ocre) 53% 64%, var(--craie) 65%); }
.cxb-m-miroir i { background: linear-gradient(135deg, var(--ardoise) 0 50%, var(--craie) 50%); }
.cxb-m-damier i { background: conic-gradient(var(--ocre) 0 25%, var(--craie) 0 50%, var(--ocre) 0 75%, var(--craie) 0); }
.cxb-m-losange i { background: linear-gradient(45deg, transparent 0 48%, var(--terre) 48% 100%), var(--sable); }
.cxb-m-noeud i { background: radial-gradient(circle at 0 0, var(--eau) 0 45%, transparent 46%), radial-gradient(circle at 100% 100%, var(--terre) 0 45%, var(--craie) 46%); }
.cxb-m-chevrons i { background: repeating-linear-gradient(45deg, var(--ardoise) 0 4px, var(--craie) 4px 8px); }
.cxb-m-etoile i { background: conic-gradient(from 45deg at 100% 100%, var(--ocre) 0 45deg, var(--ardoise) 45deg 90deg, var(--craie) 90deg); }

.cxb-p-bruxelles-capitale i { background: conic-gradient(from 270deg at 100% 100%, var(--ardoise) 0 30deg, var(--craie) 30deg 60deg, var(--ardoise) 60deg 90deg); }
.cxb-p-hainaut i { background: radial-gradient(circle at 100% 100%, var(--terre) 0 35%, var(--sable) 36% 60%, var(--terre) 61% 66%, var(--sable) 67%); }
.cxb-p-liege i { background: linear-gradient(90deg, var(--craie) 0 50%, var(--terre) 50%), var(--craie); background-size: 100% 50%; background-repeat: repeat-y; }
.cxb-p-namur i { background: radial-gradient(circle at 0 100%, var(--eau) 0 50%, var(--craie) 51%); }
.cxb-p-brabant-wallon i { background: linear-gradient(135deg, var(--ocre) 0 33%, var(--craie) 33% 66%, var(--ardoise) 66%); }
.cxb-p-luxembourg i { background: radial-gradient(circle at 50% 50%, var(--eau) 0 30%, var(--ardoise) 31% 45%, var(--sable) 46%); }

/* ---------- ouverture, entêtes */
.cxb-ouverture { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; padding: 12px 0 6px; }
.cxb-ouverture > div { max-width: 760px; }
.cxb-surtitre { margin: 0; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--terre); }
.cxb-chapo { font-size: 1.12rem; color: #3b3f44; max-width: 62rem; }
.cxb-entete { display: grid; grid-template-columns: auto 1fr; gap: 0 22px; align-items: center; margin-bottom: 10px; }
.cxb-entete h1 { margin: 0; }
.cxb-entete .cxb-chapo { grid-column: 1 / -1; }
.cxb-perdu { padding-top: 30px; }

.cxb-chemin ol { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 0; margin: 6px 0 4px; padding: 0; font-size: .87rem; color: var(--ciment); }
.cxb-chemin li + li::before { content: "▪"; margin: 0 9px; color: var(--ocre); }

/* ---------- blocs */
.cxb-bloc { margin: 30px 0; }
.cxb-bloc-sable { background: var(--sable); padding: 22px clamp(14px, 3vw, 28px); border-left: 8px solid var(--ocre); }
.cxb-petit { font-size: .92rem; color: #4d5156; }
.cxb-suite { margin: 18px 0; }
.cxb-colonnes { columns: 2 300px; column-gap: 34px; }
.cxb-colonnes p { break-inside: avoid; margin: 0 0 12px; }
.cxb-deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: 30px; align-items: start; }
.cxb-encadre { background: #fff; border: var(--joint) solid var(--anthracite); padding: 18px 20px; box-shadow: 8px 8px 0 var(--sable); }
.cxb-encadre h2 { font-size: 1.2rem; }
.cxb-encadre ul { margin: 0; padding-left: 1.1em; }
.cxb-source { font-size: .88rem; color: var(--ciment); }

/* ---------- sol des provinces, pavage des villes, tuiles des pratiques */
.cxb-sol { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: var(--joint); padding: var(--joint); margin: 0; background: var(--anthracite); }
.cxb-dalle { display: flex; flex-direction: column; gap: 4px; background: var(--craie); padding: 14px 16px 16px; }
.cxb-dalle > a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--anthracite); }
.cxb-dalle-nom { font: 400 1.25rem/1.2 var(--titres); }
.cxb-dalle-info { font-size: .9rem; color: var(--ciment); }
.cxb-dalle-villes { font-size: .92rem; }
.cxb-pavage { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.cxb-pose a { display: flex; flex-direction: column; min-width: 150px; padding: 10px 14px; background: #fff; border: 2px solid var(--anthracite); text-decoration: none; color: var(--anthracite); box-shadow: 4px 4px 0 var(--eau); }
.cxb-pose a:hover { box-shadow: 4px 4px 0 var(--terre); }
.cxb-pose-nom { font: 400 1.1rem/1.25 var(--titres); }
.cxb-pose-info { font-size: .85rem; color: var(--ciment); }
.cxb-tuiles { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; margin: 0 0 12px; padding: 0; }
.cxb-tuile a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: #fff; border: 1px solid #cfc5b3; text-decoration: none; color: var(--anthracite); font-weight: 600; }
.cxb-tuile a:hover { border-color: var(--terre); }
.cxb-tuiles-petites .cxb-carreau { width: 32px; height: 32px; }

/* ---------- annonces */
.cxb-annonces { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; margin: 0; padding: 0; }
.cxb-annonce { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 16px; background: #fff; border-top: 6px solid var(--ardoise); }
.cxb-annonce:nth-child(3n + 2) { border-top-color: var(--terre); }
.cxb-annonce:nth-child(3n) { border-top-color: var(--ocre); }
.cxb-an-corps p { margin: 0 0 7px; font-size: .97rem; }
.cxb-an-qui strong { font: 400 1.2rem var(--titres); margin-right: 6px; }
.cxb-an-qui span, .cxb-an-lieu span { color: var(--ciment); font-size: .9rem; }
.cxb-an-limite span { display: inline-block; margin-right: 6px; padding: 1px 7px; background: var(--anthracite); color: var(--craie); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.cxb-an-mots span { display: inline-block; margin: 0 4px 4px 0; padding: 2px 9px; border: 1px solid var(--eau); border-radius: 12px; font-size: .82rem; }
.cxb-an-corps .cxb-bouton { margin-top: 6px; padding: 8px 14px; font-size: .9rem; }
.cxb-mention { margin: 12px 0 0; font-size: .92rem; }
.cxb-mention em { color: var(--ciment); margin-right: 8px; }

/* ---------- tables, chiffres, listes */
.cxb-table, .cxb-distances { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; }
.cxb-table caption, .cxb-distances caption { text-align: left; font: 400 1.15rem var(--titres); padding-bottom: 8px; }
.cxb-table th, .cxb-table td, .cxb-distances th, .cxb-distances td { padding: 7px 10px; border-bottom: 1px solid var(--sable); text-align: left; vertical-align: top; }
.cxb-table thead th { background: var(--anthracite); color: var(--craie); font-weight: 600; }
.cxb-distances td { text-align: right; white-space: nowrap; color: var(--ciment); }
.cxb-table-courte { max-width: 640px; }
.cxb-chiffres { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px 24px; margin: 0; }
.cxb-chiffres div { border-bottom: 2px dotted var(--ciment); padding-bottom: 6px; }
.cxb-chiffres dt { font-size: .83rem; text-transform: uppercase; letter-spacing: .06em; color: #575b60; }
.cxb-chiffres dd { margin: 2px 0 0; font-weight: 600; }
.cxb-sections { columns: 3 170px; column-gap: 24px; margin: 0; padding-left: 1.1em; }
.cxb-sections small { color: var(--ciment); }
.cxb-conseils { margin: 0; padding-left: 1.2em; }
.cxb-conseils li { margin-bottom: 6px; }
.cxb-lectures { list-style: square; padding-left: 1.2em; }
.cxb-lectures span { font-size: .85rem; color: var(--ciment); }
.cxb-sommaire { padding-left: 1.4em; }
.cxb-sommaire li { margin-bottom: 14px; }
.cxb-sommaire p { margin: 2px 0 0; color: #4d5156; }
.cxb-lexique div { padding: 10px 0; border-bottom: 1px solid var(--sable); }
.cxb-lexique dt { font: 400 1.2rem var(--titres); }
.cxb-lexique dd { margin: 4px 0 0; }

/* ---------- article */
.cxb-article { max-width: 760px; }
.cxb-article h2 { margin-top: 1.5em; }
.cxb-duree { display: inline-block; margin-left: 8px; font-size: .85rem; color: var(--ciment); }
.cxb-references { margin-top: 30px; padding: 16px 18px; background: var(--sable); }
.cxb-references h2 { margin-top: 0; font-size: 1.15rem; }
.cxb-avis { font-size: .9rem; color: #4d5156; border-top: 1px solid var(--sable); padding-top: 12px; }

/* ---------- recherche */
.cxb-recherche { background: var(--ardoise); color: var(--craie); padding: 18px clamp(14px, 3vw, 26px); border-bottom: 6px solid var(--ocre); }
.cxb-rech-titre { color: #fff; font-size: 1.25rem !important; }
.cxb-rech-phrase { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; font-size: 1.05rem; }
.cxb-rech-phrase select, .cxb-rech-phrase input { font: inherit; padding: 9px 10px; border: 0; border-radius: 2px; background: var(--craie); color: var(--anthracite); min-width: 0; max-width: 100%; }
.cxb-rech-phrase input { flex: 1 1 220px; }
.cxb-rech-geo { margin: 10px 0 0; font-size: .93rem; }
.cxb-rech-geo .cxb-bouton-lien { color: #fff; }
.cxb-rech-etat { margin-left: 8px; }

/* ---------- compte */
.cxb-compte-paire { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.cxb-formulaire { background: #fff; padding: 18px 20px; border: 2px solid var(--anthracite); }
.cxb-formulaire label { display: block; font-weight: 600; margin-bottom: 4px; }
.cxb-formulaire input[type="email"], .cxb-formulaire input[type="password"] { width: 100%; padding: 9px 10px; font: inherit; border: 1px solid var(--ciment); }
.cxb-coche { display: flex; gap: 8px; align-items: center; }
.cxb-coche label { display: inline; margin: 0; }
.cxb-alerte { color: var(--terre); font-weight: 600; }

/* ---------- porte de majorité */
.cxb-porte { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(36, 39, 43, .93); }
.cxb-porte[hidden] { display: none; }
.cxb-porte-cadre { max-width: 460px; width: 100%; background: var(--craie); padding: 26px 24px; text-align: center; border: 4px solid var(--ocre); }
.cxb-porte-cadre h2 { margin: 14px 0 8px; }
.cxb-porte-choix { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; }

@media (max-width: 760px) {
  .cxb-deux { grid-template-columns: 1fr; }
  .cxb-ouverture > .cxb-carreau { display: none; }
  .cxb-commencer { margin-left: 0; }
  .cxb-entete { grid-template-columns: 1fr; }
  .cxb-entete .cxb-carreau { width: 56px; height: 56px; margin-bottom: 8px; }
  .cxb-table { font-size: .88rem; }
  .cxb-table th, .cxb-table td { padding: 6px 6px; }
}
