/*
 * Module Vendre : page Vendre, parcours vendeur, encart vendeur (maquette validée le 01/10/2026).
 * Charte du portail : noir #111111, blanc, gris chaud #F4F3EF et #5C5A55, Cormorant Garamond pour les
 * titres, Figtree pour le texte, ni arrondi ni ombre. Variables de la charte (thème enfant) avec repli.
 * Sélecteurs des liens et boutons préfixés par « html body » : le kit Elementor stylise tous les liens
 * et boutons du site.
 */

.cpn-vendre, .cpn-vendre-encart {
	--cpn-v-noir: var(--cpn-couleur-primaire, #111111);
	--cpn-v-blanc: var(--cpn-couleur-fond, #ffffff);
	--cpn-v-doux: var(--cpn-couleur-fond-doux, #f4f3ef);
	--cpn-v-gris: var(--cpn-couleur-texte-doux, #5c5a55);
	--cpn-v-texte2: #3a3935;
	--cpn-v-filet: #e4e2dc;
	--cpn-v-erreur: #8a1c1c;
	--cpn-v-titres: var(--cpn-police-titres, "Cormorant Garamond", Georgia, serif);
	--cpn-v-texte: var(--cpn-police-texte, "Figtree", "Helvetica Neue", sans-serif);
	font-family: var(--cpn-v-texte);
	color: var(--cpn-v-noir);
	box-sizing: border-box;
}
.cpn-vendre *, .cpn-vendre *::before, .cpn-vendre *::after, .cpn-vendre-encart * { box-sizing: border-box; }
.cpn-vendre [hidden] { display: none !important; }

/* ---------- Haut de page ---------- */
.cpn-vendre__haut { background: var(--cpn-v-doux); }
.cpn-vendre__haut-interieur { max-width: 1200px; margin: 0 auto; padding: 72px 32px; display: flex; gap: 56px; align-items: stretch; flex-wrap: wrap; }
.cpn-vendre__haut-texte { flex: 1 1 480px; display: flex; flex-direction: column; gap: 22px; justify-content: center; position: relative; }
.cpn-vendre__photo { flex: 1 1 420px; min-height: 460px; background: #dad7cf; overflow: hidden; }
.cpn-vendre__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cpn-vendre__surtitre { margin: 0; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--cpn-v-gris); }
.cpn-vendre__titre { margin: 0; font-family: var(--cpn-v-titres); font-weight: 500; font-size: 56px; line-height: 1.05; color: var(--cpn-v-noir); }
.cpn-vendre__accroche { margin: 0; font-size: 18px; line-height: 1.6; color: var(--cpn-v-texte2); max-width: 520px; }
.cpn-vendre__depart { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 0; position: relative; max-width: 560px; }
.cpn-vendre__label { display: block; margin: 0; font-size: 13px; font-weight: 600; color: var(--cpn-v-noir); }
.cpn-vendre__ligne { display: flex; }
html body .cpn-vendre input[type="text"], html body .cpn-vendre input[type="tel"], html body .cpn-vendre input[type="email"], html body .cpn-vendre input[type="number"], html body .cpn-vendre textarea {
	font-family: var(--cpn-v-texte); font-size: 16px; color: var(--cpn-v-noir); background: var(--cpn-v-blanc);
	border: 1px solid var(--cpn-v-noir); border-radius: 0; box-shadow: none; padding: 0 14px; height: 46px; width: 100%; margin: 0;
}
html body .cpn-vendre textarea { height: auto; padding: 10px 14px; resize: vertical; }
html body .cpn-vendre .cpn-vendre__ligne input { flex-grow: 1; height: 56px; padding: 0 18px; border-right: none; }
html body .cpn-vendre input:focus-visible, html body .cpn-vendre textarea:focus-visible, html body .cpn-vendre button:focus-visible, html body .cpn-vendre a:focus-visible, html body .cpn-vendre .cpn-vendre__option input:focus-visible + span { outline: 2px solid var(--cpn-v-noir); outline-offset: 2px; }
.cpn-vendre__reassurance { margin: 0; font-size: 13px; color: var(--cpn-v-gris); }

/* Boutons et liens. */
html body .cpn-vendre .cpn-vendre__bouton, html body .cpn-vendre-encart .cpn-vendre-encart__bouton {
	display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 32px; background: var(--cpn-v-noir); color: #fff;
	border: 1px solid var(--cpn-v-noir); border-radius: 0; box-shadow: none; font-family: var(--cpn-v-texte); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap;
}
html body .cpn-vendre .cpn-vendre__ligne .cpn-vendre__bouton { height: 56px; padding: 0 28px; }
html body .cpn-vendre .cpn-vendre__bouton:hover, html body .cpn-vendre-encart .cpn-vendre-encart__bouton:hover { background: #2a2a28; color: #fff; }
html body .cpn-vendre .cpn-vendre__bouton--clair { background: transparent; border-color: #fff; color: #fff; }
html body .cpn-vendre .cpn-vendre__lien { background: none; border: 0; padding: 0; font-family: var(--cpn-v-texte); font-size: 15px; color: var(--cpn-v-noir); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
html body .cpn-vendre a.cpn-vendre__quitter, html body .cpn-vendre a.cpn-vendre__discret { color: var(--cpn-v-noir); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
/* Cibles d'au moins 44 px (liens et boutons texte). */
html body .cpn-vendre .cpn-vendre__tete .cpn-vendre__precedent, html body .cpn-vendre a.cpn-vendre__quitter, html body .cpn-vendre a.cpn-vendre__discret, html body .cpn-vendre .cpn-vendre__lien { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
html body .cpn-vendre .cpn-vendre__consentement a { display: inline-block; padding: 14px 0; margin: -14px 0; }

/* Suggestions de communes. */
.cpn-vendre__suggestions { list-style: none; margin: 0; padding: 0; border: 1px solid var(--cpn-v-filet); background: var(--cpn-v-blanc); }
.cpn-vendre__depart .cpn-vendre__suggestions { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; border-color: var(--cpn-v-noir); border-top: 0; }
html body .cpn-vendre .cpn-vendre__suggestions button { display: block; width: 100%; min-height: 52px; padding: 0 18px; text-align: left; background: var(--cpn-v-blanc); color: var(--cpn-v-noir); border: 0; border-bottom: 1px solid var(--cpn-v-filet); border-radius: 0; font-family: var(--cpn-v-texte); font-size: 15px; font-weight: 400; cursor: pointer; }
html body .cpn-vendre .cpn-vendre__suggestions li:last-child button { border-bottom: 0; }
html body .cpn-vendre .cpn-vendre__suggestions button:hover, html body .cpn-vendre .cpn-vendre__suggestions button[aria-selected="true"] { background: var(--cpn-v-doux); }

/* Page Vendre sans Elementor : pleine largeur (le gabarit des pages de texte limite le contenu à 880 px). */
/* Plus spécifique que « body.page:not(.elementor-page) .site-main » (portail.css). */
html body.cpn-vendre-page.page .site-main { max-width: none; padding: 0; }
html body.cpn-vendre-page.page .site-main > .page-header { display: none; }

/* ---------- Parcours ---------- */
/* Mise en page selon la largeur du conteneur (pas de la fenêtre) : une page étroite passe en une colonne. */
.cpn-vendre__parcours { background: var(--cpn-v-doux); scroll-margin-top: 80px; container-type: inline-size; container-name: cpnvparcours; }
.cpn-vendre__cadre { max-width: 1200px; margin: 0 auto; padding: 44px 32px 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 40px; justify-content: center; align-items: start; }
@container cpnvparcours (max-width: 960px) {
	.cpn-vendre__cadre { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
.cpn-vendre__carte { background: var(--cpn-v-blanc); padding: 40px 48px; display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.cpn-vendre__tete { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--cpn-v-gris); }
.cpn-vendre__progression { flex-grow: 1; }
html body .cpn-vendre .cpn-vendre__tete .cpn-vendre__precedent { font-size: 13px; }
html body .cpn-vendre .cpn-vendre__retour { display: none; width: 44px; height: 44px; margin-left: -12px; background: none; border: 0; padding: 0; color: var(--cpn-v-noir); cursor: pointer; align-items: center; justify-content: center; }
.cpn-vendre__barre { height: 3px; background: var(--cpn-v-filet); margin-top: -16px; }
.cpn-vendre__barre span { display: block; height: 3px; background: var(--cpn-v-noir); transition: width .2s ease; }
.cpn-vendre__form { display: flex; flex-direction: column; gap: 26px; }
.cpn-vendre__etape { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
/* Titre d'étape : focus posé par le script (lecteurs d'écran), sans cadre visible. */
html body .cpn-vendre .cpn-vendre__question[tabindex="-1"]:focus { outline: none; }
.cpn-vendre__question { margin: 0 0 18px; padding: 0; font-family: var(--cpn-v-titres); font-weight: 500; font-size: 40px; line-height: 1.1; color: var(--cpn-v-noir); }
.cpn-vendre__aide, .cpn-vendre__note { margin: 0; font-size: 14px; color: var(--cpn-v-gris); }
.cpn-vendre__erreur { margin: 0; font-size: 13px; color: var(--cpn-v-erreur); }
.cpn-vendre__erreur--globale { font-size: 14px; }
.cpn-vendre__piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Choix en gros boutons (boutons radio ou cases, accessibles au clavier). */
.cpn-vendre__choix { display: flex; flex-wrap: wrap; gap: 10px; }
.cpn-vendre__choix--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cpn-vendre__choix--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cpn-vendre__choix--colonne { flex-direction: column; }
.cpn-vendre__option { position: relative; display: block; margin: 0; cursor: pointer; }
.cpn-vendre__option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.cpn-vendre__option span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border: 1px solid var(--cpn-v-noir); background: var(--cpn-v-blanc); color: var(--cpn-v-noir); font-size: 15px; text-align: center; transition: background .1s ease; }
.cpn-vendre__choix--grand .cpn-vendre__option span { min-height: 72px; font-size: 16px; }
.cpn-vendre__choix--3.cpn-vendre__choix--grand .cpn-vendre__option span { min-height: 64px; font-size: 15px; }
.cpn-vendre__choix--colonne .cpn-vendre__option span { justify-content: flex-start; text-align: left; }
.cpn-vendre__choix--pieces .cpn-vendre__option span { min-width: 64px; }
.cpn-vendre__option input:checked + span { background: var(--cpn-v-noir); color: #fff; }
.cpn-vendre__option:hover input:not(:checked) + span { background: var(--cpn-v-doux); }
.cpn-vendre__libre { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--cpn-v-gris); }
html body .cpn-vendre .cpn-vendre__libre input { width: 120px; height: 44px; }
.cpn-vendre__grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cpn-vendre__groupe { display: flex; flex-direction: column; gap: 6px; }
.cpn-vendre__consentement { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--cpn-v-texte2); }
.cpn-vendre__consentement input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--cpn-v-noir); }
html body .cpn-vendre .cpn-vendre__consentement a { color: var(--cpn-v-noir); text-decoration: underline; }
.cpn-vendre__actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cpn-vendre__pied-mobile { display: none; margin: 0; width: 100%; text-align: center; font-size: 12px; color: var(--cpn-v-gris); }

/* Confirmation. */
.cpn-vendre__confirmation { display: flex; flex-direction: column; gap: 20px; padding-top: 24px; outline: none; }
.cpn-vendre__titre--confirmation { font-size: 44px; }
.cpn-vendre__texte { margin: 0; font-size: 16px; line-height: 1.6; color: var(--cpn-v-texte2); }
.cpn-vendre__confirmation .cpn-vendre__bouton { align-self: flex-start; }

/* Colonne : données réelles et garantie. */
.cpn-vendre__cote { display: flex; flex-direction: column; gap: 20px; }
.cpn-vendre__bloc { background: var(--cpn-v-blanc); border: 1px solid var(--cpn-v-noir); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.cpn-vendre__bloc-titre { margin: 0; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--cpn-v-gris); }
.cpn-vendre__bloc-note { margin: -8px 0 0; font-size: 13px; color: var(--cpn-v-gris); }
.cpn-vendre__chiffre { display: flex; flex-direction: column; gap: 2px; }
.cpn-vendre__nombre { font-family: var(--cpn-v-titres); font-size: 36px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cpn-vendre__legende { font-size: 13px; color: var(--cpn-v-gris); }
.cpn-vendre__barometre { margin: 0; font-size: 14px; line-height: 1.5; color: var(--cpn-v-texte2); }
.cpn-vendre__mention { margin: 0; font-size: 12px; line-height: 1.5; color: var(--cpn-v-gris); border-top: 1px solid var(--cpn-v-filet); padding-top: 12px; }
.cpn-vendre__garantie { padding: 4px 4px 0; font-size: 14px; line-height: 1.5; color: var(--cpn-v-texte2); }
.cpn-vendre__garantie p { margin: 0 0 10px; }
.cpn-vendre__garantie-titre { font-weight: 600; color: var(--cpn-v-noir); }

/* Avec JavaScript : une question par écran, parcours ouvert à la demande. */
.cpn-vendre.est-js .cpn-vendre__parcours { display: none; }
.cpn-vendre.est-js.est-ouvert .cpn-vendre__parcours { display: block; }
.cpn-vendre.est-js.est-ouvert .cpn-vendre__haut { display: none; }
.cpn-vendre.est-js .cpn-vendre__etape { display: none; }
.cpn-vendre.est-js .cpn-vendre__etape.est-courante { display: flex; }
/* Sans JavaScript : toutes les étapes à la suite, un seul bouton d'envoi. */
.cpn-vendre:not(.est-js) .cpn-vendre__tete, .cpn-vendre:not(.est-js) .cpn-vendre__barre, .cpn-vendre:not(.est-js) [data-cpn-continuer], .cpn-vendre:not(.est-js) [data-cpn-passer] { display: none; }
.cpn-vendre:not(.est-js) .cpn-vendre__etape + .cpn-vendre__etape { border-top: 1px solid var(--cpn-v-filet); padding-top: 26px; }
.cpn-vendre.est-fini .cpn-vendre__cote .cpn-vendre__bloc { display: none; }

/* ---------- Sections de la page (option « page complète ») ---------- */
.cpn-vendre__section { max-width: 1200px; margin: 0 auto; padding: 88px 32px; display: flex; flex-direction: column; gap: 44px; }
.cpn-vendre__section--doux { max-width: none; background: var(--cpn-v-doux); }
.cpn-vendre__section--doux > * { max-width: 1136px; margin: 0 auto; width: 100%; }
.cpn-vendre__section--etroite { max-width: 820px; gap: 28px; }
.cpn-vendre__section-tete { display: flex; flex-direction: column; gap: 12px; }
.cpn-vendre__h2 { margin: 0; font-family: var(--cpn-v-titres); font-weight: 500; font-size: 40px; line-height: 1.1; }
.cpn-vendre__h3 { margin: 0; font-family: var(--cpn-v-titres); font-weight: 500; font-size: 28px; }
.cpn-vendre__etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.cpn-vendre__etapes li { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--cpn-v-noir); padding-top: 22px; }
.cpn-vendre__numero { font-family: var(--cpn-v-titres); font-size: 34px; }
.cpn-vendre__etapes h3, .cpn-vendre__question-frequente h3 { margin: 0; font-family: var(--cpn-v-texte); font-size: 18px; font-weight: 600; }
.cpn-vendre__etapes p, .cpn-vendre__garanties p, .cpn-vendre__question-frequente p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--cpn-v-texte2); }
.cpn-vendre__secteur { display: flex; gap: 56px; flex-wrap: wrap; align-items: flex-end; }
.cpn-vendre__secteur > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; }
.cpn-vendre__secteur > .cpn-vendre__mention { flex: 1 1 300px; }
.cpn-vendre__garanties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.cpn-vendre__garanties > div { display: flex; flex-direction: column; gap: 10px; }
.cpn-vendre__question-frequente { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--cpn-v-filet); padding-top: 18px; }
.cpn-vendre__question-frequente:first-of-type { border-top-color: var(--cpn-v-noir); }
.cpn-vendre__section--etroite .cpn-vendre__bouton { align-self: flex-start; margin-top: 12px; }
.cpn-vendre__bandeau { background: var(--cpn-v-noir); color: #fff; }
.cpn-vendre__bandeau-interieur { max-width: 1200px; margin: 0 auto; padding: 56px 32px; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
/* Sélecteurs plus forts que celui des pages de texte du thème (portail.css, .page-content p) : texte clair sur noir. */
html body .cpn-vendre .cpn-vendre__bandeau p.cpn-vendre__bandeau-texte { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: #d6d4ce; }
html body .cpn-vendre .cpn-vendre__bandeau p.cpn-vendre__bandeau-titre { margin: 0 0 8px; font-family: var(--cpn-v-titres); font-size: 30px; line-height: 1.2; color: #fff; }

/* ---------- Encart vendeur ---------- */
.cpn-vendre-encart { background: var(--cpn-v-doux); padding: 36px 44px; display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 0; }
.cpn-vendre-encart__texte { display: flex; flex-direction: column; gap: 8px; }
.cpn-vendre-encart p { margin: 0; }
.cpn-vendre-encart__surtitre { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--cpn-v-gris); }
.cpn-vendre-encart__titre { font-family: var(--cpn-v-titres); font-size: 32px; line-height: 1.15; color: var(--cpn-v-noir); }
.cpn-vendre-encart__phrase { font-size: 15px; color: var(--cpn-v-texte2); }
html body .cpn-vendre-encart .cpn-vendre-encart__bouton { flex-shrink: 0; padding: 0 28px; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
	.cpn-vendre__cadre { grid-template-columns: minmax(0, 1fr); }
	.cpn-vendre__etapes, .cpn-vendre__garanties { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 767px) {
	.cpn-vendre__haut-interieur { padding: 40px 16px; gap: 28px; }
	.cpn-vendre__titre { font-size: 38px; }
	.cpn-vendre__accroche { font-size: 16px; }
	.cpn-vendre__photo { min-height: 240px; flex-basis: 100%; }
	html body .cpn-vendre .cpn-vendre__ligne .cpn-vendre__bouton { padding: 0 18px; }
	.cpn-vendre__cadre { padding: 0; gap: 0; }
	.cpn-vendre__carte { padding: 28px 16px; gap: 16px; }
	.cpn-vendre__question { font-size: 34px; }
	.cpn-vendre__grille { grid-template-columns: minmax(0, 1fr); }
	.cpn-vendre__choix--3 { grid-template-columns: minmax(0, 1fr); }
	.cpn-vendre__choix--ligne { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cpn-vendre__choix--pieces { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
	.cpn-vendre__choix--pieces .cpn-vendre__option span { min-width: 0; padding: 0 4px; }
	.cpn-vendre__cote { padding: 0 16px 24px; background: var(--cpn-v-blanc); }
	.cpn-vendre__bloc { background: var(--cpn-v-doux); border: 0; padding: 16px; gap: 10px; }
	.cpn-vendre__nombre { font-size: 24px; }
	.cpn-vendre__garantie { display: none; }
	.cpn-vendre__section { padding: 56px 16px; }
	.cpn-vendre__h2 { font-size: 32px; }
	.cpn-vendre__bandeau-interieur { padding: 40px 16px; }
	/* Parcours ouvert : plein écran, en-tête (retour, étape, quitter), bouton Continuer fixe en bas. */
	.cpn-vendre.est-js.est-ouvert .cpn-vendre__parcours { position: fixed; inset: 0; z-index: 100000; overflow-y: auto; background: var(--cpn-v-blanc); -webkit-overflow-scrolling: touch; }
	.cpn-vendre.est-js .cpn-vendre__tete { position: sticky; top: 0; z-index: 2; background: var(--cpn-v-blanc); margin: -28px -16px 0; padding: 6px 16px; border-bottom: 1px solid var(--cpn-v-filet); height: 56px; }
	html body .cpn-vendre.est-js .cpn-vendre__retour { display: inline-flex; }
	html body .cpn-vendre.est-js .cpn-vendre__tete .cpn-vendre__precedent { display: none; }
	.cpn-vendre.est-js .cpn-vendre__progression { text-align: center; }
	.cpn-vendre.est-js .cpn-vendre__barre { margin: -16px -16px 0; }
	.cpn-vendre.est-js .cpn-vendre__actions { position: sticky; bottom: 0; z-index: 2; margin: 0 -16px -28px; padding: 14px 16px 22px; background: var(--cpn-v-blanc); border-top: 1px solid var(--cpn-v-filet); flex-direction: column; gap: 8px; }
	html body .cpn-vendre.est-js .cpn-vendre__actions .cpn-vendre__bouton { width: 100%; height: 54px; font-size: 16px; }
	.cpn-vendre.est-js .cpn-vendre__pied-mobile { display: block; }
	.cpn-vendre-encart { flex-direction: column; align-items: stretch; padding: 28px 20px; gap: 20px; }
	.cpn-vendre-encart__titre { font-size: 26px; }
	html body .cpn-vendre-encart .cpn-vendre-encart__bouton { width: 100%; }
}
body.cpn-vendre-plein { overflow: hidden; }
@media (min-width: 768px) { body.cpn-vendre-plein { overflow: auto; } }
@media (prefers-reduced-motion: reduce) { .cpn-vendre__barre span, .cpn-vendre__option span { transition: none; } }
