/* Outils de calcul Vendez Votre Immo — charte du site (bleu nuit #172554 / #1e3a8a, teal #0d9488 / #14b8a6),
   titres Fraunces, texte Inter. Refonte du 25/10/2026. */
.oc-wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.oc-texte > * { max-width: 52rem; }
.oc-nowrap { white-space: nowrap; }
.oc-main { background: #fff; color: #3f3f46; line-height: 1.7; }
.oc-section { padding: 3.5rem 0; }
.oc-section--serre { padding: 2.5rem 0 0; }
.oc-section--clair { background: #f0fdfa; }
.oc-section h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: #172554; margin: 0 0 1rem; line-height: 1.25; }
.oc-centre { text-align: center; margin-top: 1.5rem; }
.oc-lien { color: #0f766e; font-weight: 600; text-decoration: none; }
.oc-lien:hover { text-decoration: underline; }

/* En-tête */
.oc-hero { padding: 3.5rem 0 4rem; }
.oc-hero__grille { display: grid; gap: 2.5rem; align-items: center; }
.oc-hero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); line-height: 1.12; margin: 1rem 0 1rem; }
.oc-fil { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: rgb(255 255 255 / .7); margin-bottom: 1.25rem; }
.oc-fil a { color: rgb(255 255 255 / .85); text-decoration: none; }
.oc-fil a:hover { color: #5eead4; text-decoration: underline; }
.oc-badge { display: inline-block; padding: .35rem .9rem; border-radius: 999px; background: rgb(20 184 166 / .22); color: #99f6e4;
  font-size: .8rem; font-weight: 600; letter-spacing: .02em; border: 1px solid rgb(94 234 212 / .35); }
.oc-promesse { font-size: 1.15rem; color: rgb(255 255 255 / .9); max-width: 38rem; margin: 0 0 1.5rem; }
.oc-atouts { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .92rem; color: #ccfbf1; }
.oc-atouts li { display: flex; align-items: center; gap: .45rem; }
.oc-atouts svg { width: 1.05rem; height: 1.05rem; color: #5eead4; flex: none; }
.oc-bouton { display: inline-flex; align-items: center; gap: .5rem; background: #14b8a6; color: #fff; font-weight: 600; padding: .95rem 1.7rem;
  border-radius: 999px; text-decoration: none; box-shadow: 0 10px 25px -10px rgb(20 184 166 / .7); }
.oc-bouton:hover { background: #0d9488; }
.oc-etapes { margin: 0; }

/* Réponse directe */
.oc-reponse { background: #f0fdfa; border: 1px solid #99f6e4; border-left: 5px solid #14b8a6; border-radius: 1.25rem; padding: 1.4rem 1.6rem; color: #134e4a; }
.oc-reponse p { margin: 0; }
.oc-reponse__titre { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0f766e; margin-bottom: .4rem !important; }

/* À quoi sert l'outil */
.oc-intro { max-width: 50rem; font-size: 1.08rem; margin: 0 0 2rem; }
.oc-situations { display: grid; gap: 1rem; }
.oc-situation { background: #fff; border: 1px solid #ccfbf1; border-radius: 1.25rem; padding: 1.4rem; box-shadow: 0 8px 24px -18px rgb(23 37 84 / .45); }
.oc-situation strong { display: block; color: #172554; font-size: 1.05rem; margin: .75rem 0 .35rem; }
.oc-situation p { margin: 0; font-size: .95rem; line-height: 1.6; }
.oc-situation__icone, .oc-carte__icone { width: 2.75rem; height: 2.75rem; padding: .6rem; border-radius: .9rem; background: linear-gradient(135deg, #1e3a8a, #0f766e);
  color: #fff; display: block; box-sizing: border-box; }

/* Calculateur */
.oc-calcul { background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); }
.oc-calcul__tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.oc-calcul__tete h2 { margin: 0; }
.oc-exemple { background: #fff; border: 1.5px solid #14b8a6; color: #0f766e; font-weight: 600; font-size: .92rem; padding: .6rem 1.2rem; border-radius: 999px; cursor: pointer; }
.oc-exemple:hover { background: #f0fdfa; }
.oc-exemple:focus-visible { outline: 2px solid #0d9488; outline-offset: 2px; }
.oc-form { display: grid; gap: 1.5rem; align-items: start; }
.oc-champs { display: grid; gap: 1.25rem; min-width: 0; }
.oc-groupe { background: #fff; border: 1px solid #e4e4e7; border-radius: 1.25rem; padding: 1.4rem 1.4rem 1.5rem; margin: 0; min-width: 0;
  box-shadow: 0 10px 30px -24px rgb(23 37 84 / .5); }
.oc-groupe[hidden] { display: none; }
.oc-groupe legend { display: flex; align-items: center; gap: .65rem; font-family: 'Fraunces', Georgia, serif; font-size: 1.15rem; font-weight: 600; color: #172554;
  padding: 0; float: left; width: 100%; margin-bottom: 1.1rem; }
.oc-groupe legend + * { clear: both; }
.oc-num { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: #172554; color: #fff;
  font-family: 'Inter', system-ui, sans-serif; font-size: .85rem; font-weight: 700; flex: none; }
.oc-grille { display: grid; grid-template-columns: 1fr; gap: 1rem 1.25rem; }
.oc-champ { display: block; font-size: .92rem; color: #3f3f46; min-width: 0; }
.oc-libelle { display: block; margin-bottom: .35rem; font-weight: 600; color: #1e293b; }
.oc-champ input, .oc-champ select { width: 100%; box-sizing: border-box; border: 1.5px solid #d4d4d8; border-radius: .8rem; padding: .7rem .85rem;
  font: inherit; font-size: 1rem; color: #172554; background: #fff; min-height: 2.9rem; }
.oc-champ input:hover, .oc-champ select:hover { border-color: #a1a1aa; }
.oc-champ input:focus-visible, .oc-champ select:focus-visible { outline: none; border-color: #14b8a6; box-shadow: 0 0 0 3px rgb(20 184 166 / .2); }
.oc-euro { position: relative; display: block; }
.oc-euro input { padding-right: 2.2rem; }
.oc-euro > span { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); color: #71717a; font-weight: 600; pointer-events: none; }
.oc-aide { display: block; font-size: .8rem; color: #71717a; margin-top: .3rem; line-height: 1.45; font-weight: 400; }
.oc-case { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: #3f3f46; background: #f8fafc; border: 1px solid #e4e4e7;
  border-radius: .8rem; padding: .7rem .85rem; line-height: 1.45; }
.oc-case input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; accent-color: #0d9488; flex: none; }

/* Résultat */
.oc-resultat { background-color: #172554; color: #e0e7ff; border-radius: 1.5rem; padding: 1.6rem; min-width: 0;
  background-image: radial-gradient(500px 260px at 100% 0%, rgb(20 184 166 / .28), transparent 65%); box-shadow: 0 20px 40px -24px rgb(23 37 84 / .8); }
.oc-vide { text-align: center; padding: 1.5rem .5rem; color: #c7d2fe; }
.oc-vide p { margin: .75rem 0 0; font-size: .95rem; }
.oc-vide__icone { width: 3rem; height: 3rem; color: #5eead4; }
.oc-res__label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #99f6e4; margin: 0; }
.oc-res__montant { font-family: 'Fraunces', Georgia, serif; font-size: clamp(2.2rem, 1.8rem + 2vw, 3rem); font-weight: 600; color: #fff; line-height: 1.1;
  margin: .35rem 0 .25rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.oc-res__sous { margin: 0 0 1.2rem; color: #c7d2fe; font-size: .95rem; }
.oc-res__sous strong { color: #fff; }
.oc-barre { display: flex; height: .9rem; border-radius: 999px; overflow: hidden; background: rgb(255 255 255 / .12); margin: 0 0 .6rem; }
.oc-barre span { display: block; height: 100%; }
.oc-legende { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .3rem; font-size: .85rem; color: #e0e7ff; }
.oc-legende li { display: flex; align-items: center; gap: .5rem; }
.oc-legende i { width: .7rem; height: .7rem; border-radius: 999px; flex: none; display: inline-block; }
.oc-c1 { background: #14b8a6; } .oc-c2 { background: #f59e0b; } .oc-c3 { background: #60a5fa; } .oc-c4 { background: #a78bfa; }
.oc-c5 { background: #f472b6; } .oc-c6 { background: #fbbf24; } .oc-c7 { background: #34d399; } .oc-c8 { background: #93c5fd; }
.oc-detail { border-top: 1px solid rgb(255 255 255 / .15); padding-top: .9rem; }
.oc-detail summary { cursor: pointer; font-weight: 600; color: #5eead4; list-style: none; }
.oc-detail summary::-webkit-details-marker { display: none; }
.oc-detail summary::before { content: "+ "; }
.oc-detail[open] summary::before { content: "− "; }
.oc-resultat .outil-resultat { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: .6rem; }
.oc-resultat .outil-resultat th, .oc-resultat .outil-resultat td { padding: .5rem .2rem; border-bottom: 1px solid rgb(255 255 255 / .1); text-align: left;
  vertical-align: top; color: #e0e7ff; font-weight: 400; }
.oc-resultat .outil-resultat td { text-align: right; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: .75rem; }
.oc-resultat .outil-resultat .outil-total th, .oc-resultat .outil-resultat .outil-total td { font-weight: 700; color: #5eead4; }
.oc-resultat .outil-note { font-size: .85rem; color: #e0e7ff; background: rgb(255 255 255 / .08); border-left: 3px solid #5eead4; padding: .55rem .8rem;
  margin: .8rem 0 0; border-radius: 0 .5rem .5rem 0; }
.oc-avert { font-size: .78rem; color: #a5b4fc; margin: 1.1rem 0 0; line-height: 1.5; }

/* Tableau du barème (page répartition) */
.oc-main .oc-texte .outil-resultat { width: 100%; max-width: 28rem; border-collapse: collapse; font-size: .95rem; margin: 1rem 0; }
.oc-main .oc-texte .outil-resultat th, .oc-main .oc-texte .outil-resultat td { padding: .5rem .75rem; border-bottom: 1px solid #e4e4e7; text-align: left; font-weight: 400; }
.oc-main .oc-texte .outil-resultat td { text-align: right; color: #0f766e; font-weight: 600; }

/* Limites */
.oc-limites ul { margin: .5rem 0 1rem; padding-left: 1.2rem; }
.oc-limites li { margin: .25rem 0; }
.oc-limites .enc-titre { display: flex; align-items: center; gap: .6rem; }
.oc-limites__icone { width: 1.6rem; height: 1.6rem; flex: none; }

/* Cartes des outils */
.oc-cartes { display: grid; gap: 1.25rem; }
.oc-carte { display: flex; flex-direction: column; gap: .5rem; background: #fff; border: 1px solid #e4e4e7; border-radius: 1.5rem; padding: 1.6rem;
  text-decoration: none; color: #3f3f46; box-shadow: 0 12px 30px -24px rgb(23 37 84 / .55); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.oc-carte:hover, .oc-carte:focus-visible { transform: translateY(-3px); border-color: #5eead4; box-shadow: 0 18px 36px -22px rgb(23 37 84 / .6); outline: none; }
.oc-carte strong { font-family: 'Fraunces', Georgia, serif; font-size: 1.25rem; font-weight: 600; color: #172554; line-height: 1.25; margin-top: .5rem; }
.oc-carte span { font-size: .95rem; line-height: 1.55; }
.oc-carte em { font-style: normal; font-weight: 600; color: #0f766e; margin-top: auto; padding-top: .5rem; }

.oc-sources { font-size: .78rem; color: #71717a; margin-top: 2rem; line-height: 1.55; }

@media (min-width: 640px) {
  .oc-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oc-grille .oc-case { grid-column: 1 / -1; }
  .oc-situations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .oc-hero { padding: 4.5rem 0 5rem; }
  .oc-hero__grille { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 3.5rem; }
  .oc-form { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .oc-resultat { position: sticky; top: 7rem; }
  .oc-cartes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .oc-situations { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .oc-wrap { padding: 0 1rem; }
  .oc-groupe, .oc-resultat { padding: 1.15rem; }
  .oc-resultat .outil-resultat td { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .oc-carte { transition: none; } .oc-carte:hover { transform: none; } }
