/**
 * Catalogue IZILOC — feuille de style autonome.
 *
 * Aucune dépendance au thème ni à Elementor : tout est préfixé « domo- » et ne
 * peut donc pas entrer en conflit avec le reste du site. Les couleurs reprennent
 * la charte existante (bleu #00bbff, encre #00072d) pour que les pages du
 * catalogue ne jurent pas avec l'en-tête et le pied conservés.
 */

.domo-page {
    --domo-encre: #00072d;
    --domo-accent: #00bbff;
    --domo-texte: #4a5568;
    --domo-bord: #e3e8ef;
    --domo-fond: #f7f9fc;
    --domo-rayon: 10px;

    color: var(--domo-texte);
    font-size: 16px;
    line-height: 1.6;
    padding: 40px 0 64px;
}

.domo-conteneur {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.domo-page h1, .domo-page h2, .domo-page h3 { color: var(--domo-encre); margin: 0 0 12px; }
.domo-page h1 { font-size: 30px; line-height: 1.25; }
.domo-page h2 { font-size: 21px; }
.domo-page h3 { font-size: 17px; }
.domo-page p { margin: 0 0 12px; }

/* ── En-tête de page ───────────────────────────────────────────────────── */
.domo-entete { margin-bottom: 28px; }
.domo-entete__soustitre { color: var(--domo-texte); max-width: 60ch; }

/* ── Filtres ───────────────────────────────────────────────────────────── */
.domo-filtres {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 14px;
    align-items: end;
    background: var(--domo-fond);
    border: 1px solid var(--domo-bord);
    border-radius: var(--domo-rayon);
    padding: 18px;
    margin-bottom: 26px;
}

.domo-filtres__champ { display: flex; flex-direction: column; gap: 5px; }

.domo-filtres label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--domo-encre);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.domo-filtres select,
.domo-filtres input {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--domo-bord);
    border-radius: 7px;
    background: #fff;
    font-size: 15px;
    color: var(--domo-encre);
    box-sizing: border-box;
    font-family: inherit;
}

.domo-filtres select:focus,
.domo-filtres input:focus {
    outline: 2px solid var(--domo-accent);
    outline-offset: 1px;
    border-color: var(--domo-accent);
}

.domo-filtres__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ── Boutons ───────────────────────────────────────────────────────────── */
.domo-bouton {
    display: inline-block;
    padding: 11px 20px;
    background: var(--domo-accent);
    color: #fff !important;
    border: 1px solid var(--domo-accent);
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    font-family: inherit;
}

.domo-bouton:hover, .domo-bouton:focus { background: #009fdb; border-color: #009fdb; color: #fff !important; }
.domo-bouton--large { display: block; width: 100%; text-align: center; margin-top: 14px; box-sizing: border-box; }

.domo-bouton--secondaire {
    background: #fff;
    color: var(--domo-encre) !important;
    border-color: var(--domo-bord);
}
.domo-bouton--secondaire:hover { background: var(--domo-fond); color: var(--domo-encre) !important; border-color: #cbd5e1; }

.domo-lien-discret { color: var(--domo-texte); font-size: 14px; text-decoration: underline; }

/* ── Grille et cartes ──────────────────────────────────────────────────── */
.domo-resultats { font-size: 14px; color: var(--domo-texte); margin-bottom: 14px; }

.domo-grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
}

.domo-carte {
    background: #fff;
    border: 1px solid var(--domo-bord);
    border-radius: var(--domo-rayon);
    overflow: hidden;
    transition: box-shadow .18s, transform .18s;
}

.domo-carte:hover { box-shadow: 0 8px 24px rgba(0, 7, 45, .10); transform: translateY(-2px); }
.domo-carte__lien { display: block; text-decoration: none; color: inherit; }

.domo-carte__image { position: relative; aspect-ratio: 4 / 3; background: var(--domo-fond); overflow: hidden; }
.domo-carte__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.domo-carte__sans-image {
    display: flex; align-items: center; justify-content: center;
    height: 100%; color: #9aa5b8; font-size: 14px;
}

.domo-etiquette {
    position: absolute; top: 12px; left: 12px;
    background: rgba(0, 7, 45, .82);
    color: #fff;
    font-size: 12px; font-weight: 600;
    padding: 5px 11px;
    border-radius: 20px;
    letter-spacing: .2px;
}

.domo-etiquette--vente { background: rgba(93, 63, 211, .9); }
.domo-etiquette--location_vente { background: rgba(0, 7, 45, .82); }

.domo-carte__corps { padding: 16px 18px 18px; }
.domo-carte__titre { font-size: 16.5px; margin-bottom: 4px; }
.domo-carte__lieu { font-size: 14px; color: var(--domo-texte); margin-bottom: 10px; }

.domo-carte__faits {
    display: flex; flex-wrap: wrap; gap: 8px;
    list-style: none; margin: 0 0 12px; padding: 0;
}

.domo-carte__faits li {
    background: var(--domo-fond);
    border-radius: 5px;
    padding: 3px 9px;
    font-size: 13px;
}

.domo-carte__prix { font-size: 17px; font-weight: 700; color: var(--domo-encre); margin: 0; }

/* ── Fiche ─────────────────────────────────────────────────────────────── */
.domo-fil { font-size: 14px; margin-bottom: 18px; color: var(--domo-texte); }
.domo-fil a { color: var(--domo-texte); text-decoration: none; }
.domo-fil a:hover { color: var(--domo-accent); }
.domo-fil span[aria-hidden] { margin: 0 7px; }

.domo-fiche__entete {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 24px; flex-wrap: wrap; margin-bottom: 22px;
}

.domo-fiche__entete .domo-etiquette { position: static; display: inline-block; margin-bottom: 10px; }
.domo-fiche__lieu { color: var(--domo-texte); margin: 0; }
.domo-fiche__prix { font-size: 25px; font-weight: 700; color: var(--domo-encre); white-space: nowrap; }

.domo-galerie {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 30px;
}

.domo-galerie__element { margin: 0; border-radius: var(--domo-rayon); overflow: hidden; aspect-ratio: 4 / 3; }
.domo-galerie__element.est-principale { grid-row: span 2; grid-column: 1; aspect-ratio: auto; }
.domo-galerie__element img { width: 100%; height: 100%; object-fit: cover; display: block; }

.domo-fiche__colonnes {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 32px;
    align-items: start;
}

.domo-bloc {
    background: #fff;
    border: 1px solid var(--domo-bord);
    border-radius: var(--domo-rayon);
    padding: 22px;
    margin-bottom: 20px;
}

.domo-texte { color: var(--domo-texte); }
.domo-texte p:last-child { margin-bottom: 0; }

.domo-caracteristiques { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2px 24px; }
.domo-caracteristiques__ligne { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--domo-bord); }
.domo-caracteristiques dt { color: var(--domo-texte); font-size: 14.5px; margin: 0; }
.domo-caracteristiques dd { margin: 0; font-weight: 600; color: var(--domo-encre); text-align: right; font-size: 14.5px; }

.domo-atouts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.domo-atouts li { background: var(--domo-fond); border-radius: 6px; padding: 6px 12px; font-size: 14px; }

/* ── DPE ───────────────────────────────────────────────────────────────── */
.domo-dpe-bloc { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.domo-dpe-bloc__libelle { font-size: 13.5px; font-weight: 600; color: var(--domo-encre); margin-bottom: 8px; }

.domo-dpe { display: flex; gap: 3px; }
.domo-dpe--absent { color: var(--domo-texte); font-size: 14px; font-style: italic; }

.domo-dpe__cran {
    flex: 1;
    text-align: center;
    padding: 7px 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    border-radius: 4px;
    opacity: .3;
    transition: opacity .15s;
}

.domo-dpe__cran.est-active { opacity: 1; transform: scale(1.12); box-shadow: 0 2px 8px rgba(0, 7, 45, .2); }

.domo-dpe__cran--a { background: #319834; }
.domo-dpe__cran--b { background: #48a54a; }
.domo-dpe__cran--c { background: #a0c93a; }
.domo-dpe__cran--d { background: #f5e100; color: #4a4a00; }
.domo-dpe__cran--e { background: #f0b400; color: #4a3200; }
.domo-dpe__cran--f { background: #ea7d1e; }
.domo-dpe__cran--g { background: #d0021b; }

/* ── Encart latéral ────────────────────────────────────────────────────── */
.domo-encart {
    background: #fff;
    border: 1px solid var(--domo-bord);
    border-radius: var(--domo-rayon);
    padding: 22px;
    position: sticky;
    top: 20px;
}

.domo-conditions { list-style: none; margin: 0 0 4px; padding: 0; }

.domo-conditions li {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--domo-bord);
    font-size: 14.5px;
}

.domo-conditions li:last-child { border-bottom: 0; }
.domo-conditions span { color: var(--domo-texte); }
.domo-conditions small { color: #8b97ab; font-size: 12.5px; }
.domo-conditions strong { color: var(--domo-encre); text-align: right; white-space: nowrap; }

.domo-mention { font-size: 12.5px; color: #8b97ab; margin: 10px 0 0; line-height: 1.5; }
.domo-reference { border-top: 1px solid var(--domo-bord); padding-top: 12px; margin-top: 16px; }

/* ── Divers ────────────────────────────────────────────────────────────── */
.domo-similaires { margin-top: 34px; }

.domo-vide {
    background: var(--domo-fond);
    border: 1px solid var(--domo-bord);
    border-radius: var(--domo-rayon);
    padding: 44px 24px;
    text-align: center;
}

.domo-pagination { margin-top: 34px; display: flex; justify-content: center; gap: 6px; }

.domo-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--domo-bord);
    border-radius: 7px;
    text-decoration: none;
    color: var(--domo-encre);
    font-size: 14.5px;
}

.domo-pagination .page-numbers.current { background: var(--domo-accent); border-color: var(--domo-accent); color: #fff; }
.domo-pagination a.page-numbers:hover { border-color: var(--domo-accent); color: var(--domo-accent); }

.domo-titre { margin-bottom: 20px; }

/* ── Formulaire de candidature ─────────────────────────────────────────── */
.domo-candidature { max-width: 720px; }
.domo-candidature fieldset { border: 1px solid #e3e8ef; border-radius: 10px; padding: 20px 22px; margin: 0 0 22px; }
.domo-candidature legend { font-weight: 700; color: #00072d; padding: 0 8px; font-size: 17px; }
.domo-candidature p { margin: 0 0 14px; }
.domo-candidature label { display: block; font-size: 14.5px; color: #4a5568; }

.domo-candidature input[type="text"],
.domo-candidature input[type="email"],
.domo-candidature input[type="tel"],
.domo-candidature input[type="date"],
.domo-candidature input[type="number"],
.domo-candidature input[type="file"],
.domo-candidature select,
.domo-candidature textarea {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 9px 11px;
    border: 1px solid #e3e8ef;
    border-radius: 7px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
}

.domo-candidature input[type="checkbox"] { display: inline; width: auto; margin-right: 7px; }
.domo-candidature button { padding: 12px 24px; background: #00bbff; color: #fff; border: 0; border-radius: 7px; font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit; }
.domo-candidature button:hover { background: #009fdb; }
.domo-candidature__bien { background: #f7f9fc; border-left: 3px solid #00bbff; padding: 12px 16px; border-radius: 0 7px 7px 0; }
.domo-candidature__aide, .domo-candidature__rgpd { font-size: 13px; color: #8b97ab; line-height: 1.55; }

.domo-message { padding: 16px 18px; border-radius: 9px; margin-bottom: 22px; }
.domo-message--ok { background: #e8f8ee; border-left: 3px solid #319834; }
.domo-message--ko { background: #fdecec; border-left: 3px solid #d0021b; }
.domo-message p { margin: 0; }

/* ── Écrans étroits ────────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .domo-fiche__colonnes { grid-template-columns: 1fr; }
    .domo-encart { position: static; }
    .domo-galerie { grid-template-columns: 1fr 1fr; }
    .domo-galerie__element.est-principale { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
}

@media (max-width: 620px) {
    .domo-page { padding: 24px 0 44px; }
    .domo-page h1 { font-size: 24px; }
    .domo-fiche__prix { font-size: 21px; }
    .domo-grille { grid-template-columns: 1fr; }
    .domo-filtres { grid-template-columns: 1fr 1fr; padding: 14px; }
    .domo-filtres__actions { grid-column: 1 / -1; }
    .domo-caracteristiques { grid-template-columns: 1fr; }
}
