/* Charte du site cyrillemoutarde-immo.fr — « Main dans la main », version haut de gamme.
   Blanc dominant, noir, rouge KW en ponctuation ; EB Garamond (titres, italiques rouges) + Roboto léger ; filets fins. */
:root {
  --noir: #0B0B0B; --blanc: #FFFFFF; --rouge: #CE011F; --rouge-fonce: #A50019;
  --gris: #4D4D4D; --gris-doux: #7A7672; --gris-clair: #CCCCCC; --panneau: #EFEDEA; --filet: #E2DFDB; --survol: #FAF9F7;
  --titre: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --texte: Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--blanc); color: var(--noir); font-family: var(--texte); font-weight: 400; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.col { max-width: 1080px; margin: 0 auto; padding-left: max(22px, env(safe-area-inset-left)); padding-right: max(22px, env(safe-area-inset-right)); }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }
.sur { font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.req { color: var(--rouge); font-weight: 500; }
[hidden] { display: none !important; }

/* Bandeau */
.bandeau { background: var(--noir); color: var(--blanc); position: sticky; top: 0; z-index: 50; }
[id] { scroll-margin-top: 110px; }
.bandeau .col, .bandeau img, .bandeau a.tel { transition: padding .25s ease, width .25s ease, font-size .25s ease; }
.bandeau.reduit .col { padding-block: 9px; }
.bandeau.reduit img { width: 86px; }
.bandeau.reduit a.tel { font-size: 13px; }
.bandeau .col { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.bandeau img { display: block; width: 118px; height: auto; }
.bandeau a.tel { text-decoration: none; font-size: 14px; letter-spacing: .06em; display: flex; align-items: center; gap: 10px; }
.bandeau a.tel span { color: var(--gris-clair); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.menu { display: flex; align-items: center; gap: 30px; margin-right: auto; margin-left: 48px; }
.menu a { text-decoration: none; color: var(--gris-clair); font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; white-space: nowrap; }
.menu a:hover { color: var(--blanc); }
.menu a[aria-current="page"] { color: var(--blanc); border-bottom-color: var(--rouge); }

/* Mise en page à deux colonnes */
.page { padding-block: 56px 88px; }
.page .col { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.cote { position: sticky; top: 112px; }
.retour { display: inline-block; font-size: 13px; color: var(--gris-doux); text-decoration: none; margin-bottom: 28px; }
.retour:hover { color: var(--rouge); }
.lieu { color: var(--rouge); display: flex; align-items: center; gap: 10px; }
.lieu::before { content: ""; width: 28px; height: 1px; background: var(--rouge); }
h1 { font-family: var(--titre); font-weight: 800; font-size: clamp(42px, 5.2vw, 64px); line-height: .98; letter-spacing: -.025em; margin: 20px 0 0; text-wrap: balance; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--rouge); letter-spacing: -.01em; }
.intro { font-size: 18px; font-weight: 300; color: var(--gris); margin: 22px 0 0; max-width: 30em; }
.etapes { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--noir); counter-reset: etape; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--filet); }
.etapes li::before { content: counter(etape, decimal-leading-zero); font-family: var(--titre); font-style: italic; font-weight: 500; font-size: 22px; line-height: 1.2; color: var(--rouge); }
.etapes strong { display: block; font-family: var(--titre); font-weight: 700; font-size: 21px; line-height: 1.2; }
.etapes span { display: block; font-size: 15px; font-weight: 300; color: var(--gris); margin-top: 2px; }
.etapes.liste li { grid-template-columns: minmax(0, 1fr); }
.etapes.liste li::before { content: none; }
.signature { display: flex; align-items: center; gap: 16px; margin-top: 30px; }
.signature img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--panneau); }
.signature p { margin: 0; font-size: 14px; color: var(--gris-doux); line-height: 1.5; }
.signature b { display: block; color: var(--noir); font-weight: 500; font-size: 15px; }
.signature a { text-decoration: none; }

/* Formulaire */
form { min-width: 0; }
fieldset { border: 0; margin: 0; padding: 0 0 36px; }
fieldset + fieldset { padding-top: 36px; border-top: 1px solid var(--filet); }
legend { padding: 0; width: 100%; }
legend .sur { color: var(--gris-doux); display: block; }
legend strong { display: block; font-family: var(--titre); font-weight: 700; font-size: 30px; line-height: 1.1; margin-top: 6px; }
.grille { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 22px; margin-top: 22px; }
.plein { grid-column: 1 / -1; }
.champ { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.champ > span, .groupe-titre { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
.groupe-titre small, .champ small { text-transform: none; letter-spacing: 0; font-weight: 300; }
input[type=text], input[type=tel], input[type=email], input[type=number], select, textarea {
  width: 100%; font: inherit; font-size: 17px; font-weight: 400; color: var(--noir); background: transparent;
  border: 0; border-bottom: 1px solid #A9A5A0; border-radius: 0; padding: 10px 0 9px;
  transition: border-color .2s;
}
input::placeholder, textarea::placeholder { color: #A9A5A0; font-weight: 300; }
input:hover, select:hover, textarea:hover { border-bottom-color: var(--noir); }
input:focus, select:focus, textarea:focus { outline: none; border-bottom: 1px solid var(--rouge); box-shadow: 0 1px 0 var(--rouge); }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0B0B' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; background-size: 16px; padding-right: 26px; }
textarea { min-height: 96px; resize: vertical; border: 1px solid #A9A5A0; padding: 12px 14px; margin-top: 6px; }
textarea:focus { border-color: var(--rouge); box-shadow: none; }
input:invalid.touche, select:invalid.touche { border-bottom-color: var(--rouge); }
.choix { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.choix label { position: relative; cursor: pointer; }
.choix input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choix span { display: inline-block; border: 1px solid #A9A5A0; padding: 10px 16px; font-size: 15px; font-weight: 400; background: var(--blanc); transition: border-color .2s, background .2s, color .2s; }
.choix label:hover span { border-color: var(--noir); }
.choix input:checked + span { background: var(--noir); border-color: var(--noir); color: var(--blanc); }
.choix input:focus-visible + span { outline: 2px solid var(--rouge); outline-offset: 2px; }
.cases { border-top: 1px solid var(--filet); padding-top: 28px; }
.case { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; font-weight: 300; color: var(--gris); margin-top: 14px; cursor: pointer; }
.case:first-child { margin-top: 0; }
.case input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--rouge); }
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.envoi { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
button, .bouton { display: inline-flex; align-items: center; gap: 12px; font: inherit; cursor: pointer; border: 0; text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: 18px 28px; transition: background .2s, color .2s; }
button svg, .bouton svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; transition: transform .2s; }
button:hover svg, .bouton:hover svg { transform: translateX(3px); }
button, .bouton.plein { background: var(--rouge); color: var(--blanc); }
button:hover, .bouton.plein:hover { background: var(--rouge-fonce); }
.bouton.trait { background: transparent; border: 1px solid var(--noir); color: var(--noir); }
.bouton.trait:hover { background: var(--noir); color: var(--blanc); }
button[disabled] { opacity: .6; cursor: wait; }
.mention { font-size: 13px; font-weight: 300; color: var(--gris-doux); margin: 18px 0 0; }
.erreur { color: var(--rouge); font-weight: 500; font-size: 14.5px; }

.merci { padding: 8px 0 20px; }
.merci .sur { color: var(--rouge); }
.merci h2 { font-family: var(--titre); font-weight: 800; font-size: clamp(36px, 4.4vw, 52px); line-height: 1; letter-spacing: -.02em; margin: 14px 0 16px; }
.merci p { max-width: 34em; margin: 0 0 12px; font-weight: 300; color: var(--gris); }
.merci .bouton { margin-top: 14px; }

/* Choix vendeur / acquéreur */
.choix-cible { margin-top: 18px; }
.choix-cible span { font-family: var(--titre); font-size: 21px; font-weight: 700; padding: 12px 26px; }
.etapes span a { color: var(--rouge); text-underline-offset: 3px; }

/* Récompense de l'apporteur */
.remuneration { background: var(--panneau); }
.remuneration .col { padding-block: 72px 76px; }
.remu-tete { max-width: 640px; }
.remu-tete h2 { font-family: var(--titre); font-weight: 800; font-size: clamp(34px, 4.2vw, 48px); line-height: 1.02; letter-spacing: -.02em; margin: 14px 0 12px; }
.remu-tete h2 em { font-style: italic; font-weight: 500; color: var(--rouge); }
.remu-tete p { margin: 0; font-weight: 300; color: var(--gris); }
.paliers { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--noir); }
.paliers li { padding: 26px 28px 30px 0; display: flex; flex-direction: column; gap: 6px; }
.paliers li + li { padding-left: 28px; border-left: 1px solid #D6D2CD; }
.paliers .rang { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gris); }
.paliers sup { font-size: .7em; letter-spacing: .05em; }
.paliers b { font-family: var(--titre); font-weight: 800; font-size: clamp(48px, 5.4vw, 64px); line-height: 1; letter-spacing: -.02em; color: var(--noir); }
.paliers li:last-child b { color: var(--rouge); }
.paliers small { font-size: 14px; font-weight: 300; color: var(--gris-doux); }
.remu-note { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid #D6D2CD; font-size: 14px; color: var(--gris); }

/* Encadré (page newsletter) */
.encadre { border: 1px solid var(--noir); background: var(--blanc); }
.encadre iframe { display: block; width: 100%; height: 980px; border: 0; }
.secours { font-size: 14px; font-weight: 300; margin-top: 12px; color: var(--gris-doux); }

footer { background: var(--noir); color: var(--gris-clair); font-size: 12.5px; line-height: 1.6; }
footer .col { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px 40px; padding-block: 34px 38px; }
footer img { width: 118px; height: auto; display: block; }
footer p { margin: 0 0 4px; max-width: 62em; }
footer .qui { color: var(--blanc); font-size: 13.5px; }

@media (max-width: 860px) {
  .page { padding-block: 34px 64px; }
  .page .col { grid-template-columns: 1fr; gap: 44px; }
  .cote { position: static; }
  .bandeau a.tel span { display: none; }
  .bandeau .col { flex-wrap: wrap; row-gap: 12px; }
  .menu { order: 3; width: 100%; margin: 0; gap: 12px; justify-content: space-between; overflow-x: auto; padding-top: 10px; border-top: 1px solid #2A2A2A; }
  .menu a { font-size: 10.5px; letter-spacing: .08em; }
  .bandeau.reduit .col { row-gap: 4px; padding-block: 6px 4px; }
  .bandeau.reduit img { width: 72px; }
  .bandeau.reduit .menu { padding-top: 4px; }
  .paliers { grid-template-columns: 1fr; }
  .paliers li, .paliers li + li { padding: 22px 0; border-left: 0; }
  .paliers li + li { border-top: 1px solid #D6D2CD; }
  .encadre iframe { height: 1120px; }
}
@media (max-width: 560px) {
  .grille { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
