/* Pedaterra : comparateur classique. Bleu nuit, blanc, accent corail. */
:root {
  --nuit: #0b1f3a;
  --nuit-2: #14325c;
  --accent: #e8603c;
  --accent-fonce: #c94b2a;
  --vert: #0f7b5a;
  --vert-clair: #e5f4ee;
  --fond: #f3f5f9;
  --blanc: #fff;
  --texte: #16233a;
  --gris: #5a6880;
  --ligne: #e2e7ef;
  --jaune: #fff6dc;
  --rayon: 12px;
  --ombre: 0 1px 2px rgb(11 31 58 / .06), 0 4px 16px rgb(11 31 58 / .06);
  --ombre-forte: 0 8px 32px rgb(11 31 58 / .18);
  --police: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; font-family: var(--police); font-size: 16px; line-height: 1.55; color: var(--texte); background: var(--fond); font-feature-settings: "tnum" 1; }
img { max-width: 100%; display: block; }
a { color: var(--nuit-2); }
a:hover { color: var(--accent-fonce); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.conteneur { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding-block: 48px; }
.section-grise { background: var(--blanc); border-block: 1px solid var(--ligne); }
.centre { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.petit { font-size: .875rem; }
.aller-au-contenu { position: absolute; left: -999px; top: 8px; background: var(--blanc); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.aller-au-contenu:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* En-tête */
.entete { background: var(--nuit); color: var(--blanc); }
.entete-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.marque { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; }
.marque:hover { color: inherit; }
.logo-marque { width: 34px; height: 24px; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { color: rgb(255 255 255 / .86); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: rgb(255 255 255 / .1); color: var(--blanc); }
.nav .nav-cta { border: 1px solid rgb(255 255 255 / .5); color: var(--blanc); margin-left: 6px; }
@media (max-width: 760px) { .nav a:not(.nav-cta) { display: none; } }

/* Bandeau photo + barre de recherche */
.bandeau { position: relative; color: var(--blanc); padding: 40px 0 44px; background: linear-gradient(180deg, rgb(11 31 58 / .55), rgb(11 31 58 / .82)), var(--photo) center / cover no-repeat, var(--nuit); }
.bandeau-grand { padding: 88px 0 72px; }
.bandeau h1 { max-width: 22ch; text-shadow: 0 2px 16px rgb(0 0 0 / .25); }
.bandeau-grand h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.chapo { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 60ch; color: rgb(255 255 255 / .9); margin-bottom: 28px; }
.bandeau .fil { margin-bottom: 16px; }
.bandeau .fil a, .bandeau .fil li { color: rgb(255 255 255 / .85); }

.recherche { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr .7fr .9fr auto; background: var(--blanc); border-radius: var(--rayon); padding: 6px; gap: 0; box-shadow: var(--ombre-forte); color: var(--texte); border: 3px solid var(--accent); }
.champ { display: flex; flex-direction: column; padding: 8px 14px; border-right: 1px solid var(--ligne); min-width: 0; }
.champ:nth-last-child(2) { border-right: 0; }
.champ label { font-size: .75rem; font-weight: 600; color: var(--gris); text-transform: uppercase; letter-spacing: .04em; }
.champ input, .champ select { font: inherit; font-weight: 600; color: var(--texte); border: 0; background: transparent; padding: 2px 0; width: 100%; min-width: 0; appearance: none; -webkit-appearance: none; }
.champ select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235a6880' stroke-width='2'/%3E%3C/svg%3E") right center no-repeat; padding-right: 18px; cursor: pointer; }
.champ input:focus, .champ select:focus { outline: none; }
.champ:focus-within { background: var(--fond); border-radius: 8px; }
.bouton { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 700; border-radius: 10px; padding: 12px 20px; text-decoration: none; cursor: pointer; border: 0; transition: background .15s; }
.bouton-accent { background: var(--accent); color: var(--blanc); }
.bouton-accent:hover { background: var(--accent-fonce); color: var(--blanc); }
.bouton-recherche { font-size: 1.05rem; padding-inline: 28px; }
.bouton-plein { background: var(--nuit-2); color: var(--blanc); width: 100%; white-space: nowrap; padding-inline: 12px; }
.bouton-plein:hover { background: var(--nuit); color: var(--blanc); }
@media (max-width: 1000px) {
  .recherche { grid-template-columns: 1fr 1fr; gap: 0; }
  .champ { border-right: 0; border-bottom: 1px solid var(--ligne); }
  .champ:nth-child(odd) { border-right: 1px solid var(--ligne); }
  .bouton-recherche { grid-column: 1 / -1; margin-top: 6px; padding-block: 14px; }
}

/* Bande de réassurance et logos */
.reassurance { background: var(--blanc); border-bottom: 1px solid var(--ligne); }
.reassurance-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-block: 18px; }
.reassurance p { margin: 0; color: var(--gris); font-size: .95rem; padding-left: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23e5f4ee'/%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%230f7b5a' stroke-width='2'/%3E%3C/svg%3E") left center no-repeat; }
.reassurance strong { color: var(--texte); }
@media (max-width: 760px) { .reassurance-inner { grid-template-columns: 1fr; gap: 8px; } }
.logos-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 32px; }
.logos p { margin: 0; color: var(--gris); font-size: .9rem; }
.logos ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; }
.logos li { font-weight: 800; font-size: 1.15rem; color: #8a96a8; letter-spacing: -.02em; }

.section-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-tete h2 { margin: 0; }
.titre-resultats { margin-bottom: 16px; }

/* Résultats */
.bandeau-exemple { background: var(--jaune); border: 1px solid #f1dc9e; border-radius: 10px; padding: 10px 14px; font-size: .9rem; margin-bottom: 20px; }
.resultats-grille { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .resultats-grille { grid-template-columns: 1fr; } }
.filtres { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); position: sticky; top: 16px; }
@media (max-width: 900px) { .filtres { position: static; } }
.filtre-bloc { border: 0; margin: 0; padding: 16px 18px; border-bottom: 1px solid var(--ligne); min-width: 0; }
.filtre-titre { font-weight: 700; font-size: .95rem; margin: 0 0 8px; padding: 0; }
.filtre-resume { margin: 0; color: var(--gris); font-size: .9rem; }
.case { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: .92rem; cursor: pointer; }
.case input { width: 18px; height: 18px; accent-color: var(--nuit-2); margin: 0; flex: none; }
.case-prix { margin-left: auto; color: var(--gris); font-size: .85rem; }
.filtre-note { font-size: .8rem; color: var(--gris); padding: 14px 18px; margin: 0; }

.barre-tri { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.compteur { margin: 0; color: var(--gris); }
.compteur strong { color: var(--texte); }
.onglets { display: inline-flex; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 10px; padding: 4px; gap: 4px; }
.onglet { font: inherit; font-size: .88rem; font-weight: 600; border: 0; background: transparent; color: var(--gris); padding: 8px 14px; border-radius: 7px; cursor: pointer; }
.onglet[aria-pressed="true"] { background: var(--nuit); color: var(--blanc); }

.offres { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.offre { display: grid; grid-template-columns: 220px 1fr 230px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); transition: box-shadow .15s, border-color .15s; }
.offre:hover { box-shadow: 0 6px 24px rgb(11 31 58 / .12); }
.offre-top { border: 2px solid var(--vert); }
.offre-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 190px; }
.offre-corps { padding: 18px 20px; min-width: 0; }
.offre-corps h3 { font-size: 1.2rem; margin-bottom: 2px; }
.offre-sous { color: var(--gris); font-size: .92rem; margin-bottom: 10px; }
.offre-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.offre-badges:empty { display: none; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.badge-top { background: var(--vert); color: var(--blanc); }
.badge-neutre { background: var(--fond); color: var(--gris); border: 1px solid var(--ligne); }
.atouts { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .88rem; color: var(--vert); }
.atouts li::before { content: "✓ "; font-weight: 700; }
.detail summary { cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--nuit-2); }
.detail table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: 8px; }
.detail td, .detail th { padding: 5px 0; border-bottom: 1px solid var(--ligne); text-align: left; font-weight: 400; }
.detail tfoot th, .detail tfoot td { font-weight: 700; border-bottom: 0; }
.num { text-align: right !important; white-space: nowrap; }
.offre-note, .offre-source { font-size: .8rem; color: var(--gris); margin: 6px 0 0; }
.offre-prix { padding: 18px 20px; border-left: 1px solid var(--ligne); display: flex; flex-direction: column; align-items: flex-end; justify-content: center; text-align: right; }
.offre-prix p { margin: 0; }
.prix-label { font-size: .8rem; color: var(--gris); }
.prix { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.prix-nuit { font-size: .85rem; color: var(--gris); margin-bottom: 8px !important; }
.prix-loyer { font-size: .82rem; color: var(--accent-fonce); margin-bottom: 12px !important; }
.prix-ok { font-size: .82rem; font-weight: 700; color: var(--vert); background: var(--vert-clair); padding: 2px 8px; border-radius: 6px; margin-bottom: 12px !important; }
.offre-indispo { opacity: .65; grid-template-columns: 220px 1fr; }
.offre-indispo .offre-photo img { min-height: 120px; filter: grayscale(1); }
.indispo { font-weight: 600; margin: 0; }
@media (max-width: 760px) {
  .offre { grid-template-columns: 110px 1fr; }
  .offre-photo { grid-row: span 2; }
  .offre-photo img { min-height: 100%; }
  .offre-corps { padding: 14px; }
  .offre-prix { border-left: 0; border-top: 1px solid var(--ligne); align-items: stretch; text-align: left; padding: 14px; }
  .offre-indispo { grid-template-columns: 110px 1fr; }
}
.double-loyer { margin-top: 18px; background: var(--blanc); border: 1px solid var(--ligne); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 16px; font-size: .95rem; }
.erreur { background: #fdecea; border: 1px solid #f3b8ae; border-radius: 10px; padding: 12px 16px; }

/* Étapes */
.etapes { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.etapes li { background: var(--fond); border-radius: var(--rayon); padding: 24px; }
.etape-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--nuit); color: var(--blanc); font-weight: 800; margin-bottom: 12px; }
.etapes p { margin: 0; color: var(--gris); }
@media (max-width: 760px) { .etapes { grid-template-columns: 1fr; } }

/* Cartes destinations */
.villes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.carte-ville { position: relative; display: block; border-radius: var(--rayon); overflow: hidden; color: var(--blanc); text-decoration: none; box-shadow: var(--ombre); aspect-ratio: 4 / 3; }
.carte-ville img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.carte-ville:hover img { transform: scale(1.04); }
.carte-ville::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgb(11 31 58 / .85)); }
.carte-ville-texte, .carte-ville-prix { position: absolute; z-index: 1; left: 18px; right: 18px; }
.carte-ville-texte { bottom: 58px; }
.carte-ville-nom { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.carte-ville-depuis { font-size: .9rem; opacity: .9; }
.carte-ville-prix { bottom: 14px; font-size: .9rem; }
.carte-ville-prix small { opacity: .8; }
.carte-ville:hover { color: var(--blanc); }

/* Durées (hub) */
.durees { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 760px) { .durees { grid-template-columns: 1fr 1fr; } }
.carte-duree { display: flex; flex-direction: column; gap: 4px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 18px; text-decoration: none; color: var(--texte); box-shadow: var(--ombre); }
.carte-duree:hover { border-color: var(--nuit-2); color: var(--texte); }
.carte-duree-titre { font-weight: 800; font-size: 1.2rem; }
.carte-duree .lien { color: var(--nuit-2); font-weight: 600; font-size: .9rem; margin-top: 6px; }
.table-defile { overflow-x: auto; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); }
.tableau { width: 100%; border-collapse: collapse; min-width: 560px; }
.tableau th, .tableau td { padding: 14px 16px; border-bottom: 1px solid var(--ligne); text-align: right; }
.tableau th:first-child { text-align: left; }
.tableau thead th { font-size: .82rem; color: var(--gris); font-weight: 600; background: var(--fond); }
.tableau tbody tr:last-child > * { border-bottom: 0; }
.note-tableau { color: var(--gris); font-size: .9rem; margin-top: 12px; }

/* FAQ, puces, texte */
.section-faq { max-width: 860px; }
.faq { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 10px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--gris); }
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 18px 16px; margin: 0; color: var(--gris); }
.puces { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.puces a { display: inline-block; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 999px; padding: 8px 16px; text-decoration: none; font-weight: 600; }
.fil ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: .88rem; }
.fil li + li::before { content: "›"; margin-right: 6px; opacity: .7; }
.page-texte { max-width: 760px; background: var(--blanc); border-radius: var(--rayon); padding: 40px; margin-block: 40px; border: 1px solid var(--ligne); }
.page-texte h2 { margin-top: 1.4em; }
@media (max-width: 600px) { .page-texte { padding: 24px 18px; } }

/* Pied de page */
.pied { background: var(--nuit); color: rgb(255 255 255 / .8); margin-top: 48px; font-size: .92rem; }
.pied a { color: rgb(255 255 255 / .85); text-decoration: none; }
.pied a:hover { color: var(--blanc); text-decoration: underline; }
.pied-grille { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-block: 48px 32px; }
.pied-grille nav { display: flex; flex-direction: column; gap: 8px; }
.pied-titre { color: var(--blanc); font-weight: 700; margin-bottom: 4px; }
.pied .marque { color: var(--blanc); margin-bottom: 12px; }
.pied-bas { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgb(255 255 255 / .12); padding-block: 18px; font-size: .8rem; color: rgb(255 255 255 / .6); }
.pied-bas p { margin: 0; }
.pied-bas a { color: rgb(255 255 255 / .7); }
@media (max-width: 760px) { .pied-grille { grid-template-columns: 1fr; } }

/* Verdict : la réponse en une ligne, selon la ville où l'on habite */
.verdict { background: var(--nuit); color: var(--blanc); border-radius: var(--rayon); padding: 18px 20px; margin-bottom: 18px; }
.verdict-titre { margin: 0 0 12px; font-weight: 600; font-size: .95rem; color: rgb(255 255 255 / .85); }
.verdict ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.verdict li { background: rgb(255 255 255 / .08); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; }
.verdict li:first-child { background: var(--vert); }
.verdict li span { font-size: .9rem; }
.verdict li strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.verdict li small { font-size: .8rem; color: rgb(255 255 255 / .8); }
.prix-loyer { margin-bottom: 0 !important; }
.prix-reel { font-size: .9rem; font-weight: 700; margin-bottom: 12px !important; }
.indispos { color: var(--gris); font-size: .88rem; margin: 14px 0 0; }

/* Tableaux par ville et par solution */
.tableau td small { color: var(--gris); font-weight: 400; }
.tableau-villes th, .tableau-villes td { text-align: left; }
.tableau-villes td:nth-child(2), .tableau-villes td:nth-child(4), .tableau-villes td:nth-child(5),
.tableau-villes th:nth-child(2), .tableau-villes th:nth-child(4), .tableau-villes th:nth-child(5) { text-align: right; }
.tableau tbody th a { font-weight: 700; text-decoration: none; }
.tableau tbody th a:hover { text-decoration: underline; }
.tableau tbody tr:hover { background: #fafbfd; }
.cellule-ok { color: var(--vert); font-weight: 700; background: var(--vert-clair); }
.cellule-vide { color: #9aa5b5; font-size: .85rem; }
.section-grise .bandeau-exemple { margin-bottom: 16px; }

/* Les solutions expliquées */
.solutions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.solution { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.solution img { width: 100%; height: 150px; object-fit: cover; }
.solution div { padding: 16px 18px; }
.solution p { color: var(--gris); font-size: .92rem; margin-bottom: 8px; }
.solution-prix { color: var(--texte) !important; margin: 0 !important; }
.carte-duree span { font-size: .9rem; }
