/* immodere.com V2 — couleurs reprises de la V1 (stylepages.css) */
:root {
    --bleu-clair: #d3e2f3;
    --orange: #ec9d2c;
    --rouge: #c8102e;
    --fond: #f7f3f3;
    --bordure: #e7e3e3;
    --texte: #151212;
    --texte-doux: #5b5555;
    --blanc: #fff;
    --rayon: 6px;
    --largeur: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.55;
    color: var(--texte);
    background: var(--fond);
}
img { max-width: 100%; height: auto; }
a { color: var(--texte); }
a:hover { color: var(--rouge); }

.conteneur { width: min(100% - 32px, var(--largeur)); margin-inline: auto; }

.entete { background: var(--bleu-clair); border-top: 3px solid var(--orange); border-bottom: 4px solid var(--bordure); }
.entete__barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.entete__logo img { display: block; max-height: 64px; width: auto; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-weight: 600; }
.menu a { text-decoration: none; }

.bouton {
    display: inline-block; padding: 8px 16px; border-radius: var(--rayon);
    background: var(--orange); color: var(--blanc) !important; text-decoration: none; font-weight: 600;
}
.bouton:hover { filter: brightness(.92); }

main { background: var(--blanc); margin-block: 16px; padding: 16px 24px 32px; border: 1px solid var(--bordure); border-radius: var(--rayon); }
h1 { font-size: 1.8rem; margin: .4em 0; }
.titre-rubrique { background: var(--rouge); color: var(--blanc); text-align: center; padding: 8px; border-radius: var(--rayon); font-size: 1.15rem; }
.bandeau { border-bottom: 2px solid var(--orange); padding-bottom: 12px; margin-bottom: 16px; }
.vide { color: var(--texte-doux); text-align: center; }

.alerte { padding: 10px 14px; border-radius: var(--rayon); background: var(--bleu-clair); }
.alerte--erreur { background: #fde2e2; }
.alerte--succes { background: #e1f5e4; }

.erreur { text-align: center; padding: 32px 0; }

.pied { text-align: center; font-size: .9rem; color: var(--texte-doux); padding: 8px 0 24px; }

.carte-formulaire { max-width: 460px; margin-inline: auto; }
.formulaire { display: grid; gap: 14px; margin-block: 16px; }
.formulaire label { display: grid; gap: 4px; font-weight: 600; }
.formulaire .case { display: block; font-weight: 400; }
.formulaire input[type=text], .formulaire input[type=email], .formulaire input[type=password] {
    width: 100%; padding: 9px 10px; border: 1px solid var(--bordure); border-radius: var(--rayon); font: inherit; background: var(--blanc);
}
.formulaire input:focus-visible, .bouton:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.formulaire button.bouton { border: 0; cursor: pointer; font: inherit; font-weight: 600; justify-self: start; }
.bouton--clair { background: var(--bleu-clair); color: var(--texte) !important; }
.separateur { text-align: center; color: var(--texte-doux); margin: 8px 0; }
.alerte ul { margin: 0; padding-left: 20px; }

.contenu { max-width: 78ch; }
.contenu h1 { color: var(--rouge); border-bottom: 2px solid var(--orange); padding-bottom: 6px; }
.contenu h2 { font-size: 1.15rem; margin: 1.6em 0 .4em; color: var(--rouge); }
.contenu p, .contenu li { margin-block: .5em; }
.contenu ul, .contenu ol { padding-left: 1.4em; }
.contenu img { display: block; margin: 12px auto; }
.contenu code { background: var(--fond); padding: 1px 5px; border-radius: 4px; }
.contenu .appel { text-align: center; margin-top: 28px; }
.contenu br + br { display: none; }

/* Fiche annonce */
.sr-seulement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fil { font-size: .9rem; color: var(--texte-doux); margin-bottom: 8px; }
.annonce__tete h1 { margin-bottom: 4px; }
.annonce__meta { color: var(--texte-doux); font-size: .92rem; margin-top: 0; }
.pastille { display: inline-block; background: var(--orange); color: var(--blanc); padding: 1px 9px; border-radius: 99px; font-size: .8rem; font-weight: 600; }
.pastille--clair { background: var(--bleu-clair); color: var(--texte); }
.galerie__principale img { width: 100%; max-width: 800px; border-radius: var(--rayon); display: block; }
.galerie__vignettes { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.galerie__vignettes img { width: 120px; height: 90px; object-fit: cover; border-radius: 4px; display: block; }
.annonce h2 { font-size: 1.15rem; color: var(--rouge); margin: 1.4em 0 .4em; }
.annonce__faits dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; background: var(--fond); padding: 12px 16px; border-radius: var(--rayon); }
.annonce__faits dt { font-weight: 600; }
.annonce__faits dd { margin: 0; }
.tableau-defilant { overflow-x: auto; }
.tableau { border-collapse: collapse; width: 100%; font-size: .92rem; }
.tableau th, .tableau td { border: 1px solid var(--bordure); padding: 6px 10px; text-align: left; }
.tableau thead th { background: var(--bleu-clair); }
.calendriers { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.calendrier { border-collapse: collapse; width: 100%; font-size: .8rem; text-align: center; }
.calendrier caption { font-weight: 600; text-transform: capitalize; padding-bottom: 4px; }
.calendrier td, .calendrier th { padding: 3px 0; }
.calendrier td.occupe { background: #f3b7b7; }
.calendrier td.libre { background: #e1f5e4; }
.legende { display: inline-block; width: 12px; height: 12px; vertical-align: middle; border-radius: 2px; }
.legende--occupe { background: #f3b7b7; }
.legende--libre { background: #e1f5e4; }
.discret { color: var(--texte-doux); font-size: .9rem; }
.telephones a { font-weight: 600; font-size: 1.1rem; }
.photos-liste { list-style: none; padding: 0; display: grid; gap: 18px; }
.photos-liste img { width: 100%; max-width: 800px; border-radius: var(--rayon); }
.formulaire textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--bordure); border-radius: var(--rayon); font: inherit; }
.piege { position: absolute; left: -9999px; }

/* Listes */
.recherche { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 14px; align-items: end; background: var(--bleu-clair); padding: 14px; border-radius: var(--rayon); margin: 12px 0; }
.recherche label { display: grid; gap: 3px; font-weight: 600; font-size: .9rem; }
.recherche input, .recherche select { width: 100%; padding: 7px 8px; border: 1px solid var(--bordure); border-radius: var(--rayon); font: inherit; background: var(--blanc); }
.recherche .bouton { border: 0; cursor: pointer; font: inherit; font-weight: 600; justify-self: start; }
.liste__total { color: var(--texte-doux); }
.cartes { list-style: none; padding: 0; display: grid; gap: 14px; }
.carte { display: grid; grid-template-columns: 200px 1fr; gap: 14px; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 10px; background: var(--blanc); }
.carte--avant { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.carte__photo { display: block; background: var(--fond); border-radius: 4px; overflow: hidden; align-self: start; }
.carte__photo img { width: 100%; height: 150px; object-fit: cover; display: block; }
.carte__sans-photo { display: grid; place-items: center; height: 150px; color: var(--texte-doux); font-size: .85rem; }
.carte h2 { font-size: 1.1rem; margin: 0 0 4px; }
.carte__meta, .carte__extrait { margin: 4px 0; font-size: .92rem; color: var(--texte-doux); }
.carte__prix { margin: 6px 0 0; font-size: 1.1rem; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 20px 0; }
.pagination a, .pagination strong { padding: 4px 10px; border: 1px solid var(--bordure); border-radius: var(--rayon); text-decoration: none; }
.pagination strong { background: var(--orange); color: var(--blanc); border-color: var(--orange); }
.facettes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 24px; }
.facettes h2 { font-size: 1.05rem; color: var(--rouge); }
.facettes ul { padding-left: 1.1em; }

/* Accueil */
.rubriques { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 18px 0; }
.rubrique { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond); text-decoration: none; }
.rubrique strong { font-size: 1.15rem; color: var(--rouge); }
.rubrique small { color: var(--texte-doux); }
.rubrique:hover { border-color: var(--orange); }
.rubrique--appel { background: var(--orange); border-color: var(--orange); }
.rubrique--appel strong, .rubrique--appel span, .rubrique--appel small { color: var(--blanc); }

/* Espace particulier */
.etapes { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 18px; font-size: .92rem; }
.etapes li { padding: 3px 0; color: var(--texte-doux); }
.etapes__courante { font-weight: 700; color: var(--texte); border-bottom: 2px solid var(--orange); }
.depot .formulaire { max-width: 640px; }
.grille-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; }
fieldset { border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 8px 14px 12px; }
legend { font-weight: 600; padding: 0 6px; }
.formulaire select { width: 100%; padding: 9px 10px; border: 1px solid var(--bordure); border-radius: var(--rayon); font: inherit; background: var(--blanc); }
.bouton--petit { padding: 4px 10px; font-size: .88rem; }
.bouton--danger { background: var(--rouge); color: var(--blanc) !important; }
.bouton[disabled] { opacity: .5; cursor: not-allowed; }
.en-ligne { display: inline; margin: 0; }
.en-ligne button { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.mes-annonces { list-style: none; padding: 0; display: grid; gap: 12px; }
.mon-annonce { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 12px 14px; }
.mon-annonce h3 { margin: 0 0 4px; font-size: 1.05rem; }
.mon-annonce p { margin: 2px 0; }
.mon-annonce .actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Photos (dépôt) */
.zone-depot { border: 2px dashed var(--bordure); border-radius: var(--rayon); padding: 18px; text-align: center; background: var(--fond); }
.zone-depot--survol { border-color: var(--orange); background: #fff7ea; }
.photos-edition { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 18px 0; }
.photos-edition li { border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 8px; display: grid; gap: 6px; }
.photos-edition img { width: 100%; height: 120px; object-fit: cover; border-radius: 4px; }
.photo-legende { display: flex; gap: 4px; }
.photo-legende input { flex: 1; min-width: 0; padding: 4px 6px; border: 1px solid var(--bordure); border-radius: 4px; font: inherit; font-size: .85rem; }
.photo-actions { display: flex; gap: 4px; flex-wrap: wrap; }

.formulaire--ligne { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; max-width: none; }

/* Éditeur de mini-site */
.depot--large .formulaire { max-width: 860px; }
.champ-prefixe { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-weight: 400; }
.champ-prefixe input { flex: 1; min-width: 140px; }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.theme { display: flex; align-items: center; gap: 6px; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 6px 8px; font-weight: 400; cursor: pointer; }
.theme__echantillon { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.editeur { border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--blanc); }
.editeur__barre { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-bottom: 1px solid var(--bordure); background: var(--fond); }
.editeur__barre button { border: 1px solid var(--bordure); background: var(--blanc); border-radius: 4px; padding: 3px 9px; font: inherit; font-size: .88rem; cursor: pointer; }
.editeur__barre button:hover { border-color: var(--orange); }
.editeur__zone { min-height: 220px; padding: 10px 12px; line-height: 1.55; outline: none; overflow-wrap: anywhere; }
.editeur__zone:focus { box-shadow: inset 0 0 0 2px var(--orange); }
.editeur__zone table { border-collapse: collapse; }
.editeur__zone td { border: 1px dotted var(--bordure); padding: 2px 6px; }

/* Commandes */
.carte-formulaire--large { max-width: 760px; }
.paiements { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.paiement { border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 12px 14px; }
.paiement .bouton { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.adresse-cheque { background: var(--fond); border-left: 4px solid var(--orange); padding: 8px 14px; }
.alerte--succes { background: #e1f5e4; }

@media (max-width: 600px) {
    .carte { grid-template-columns: 1fr; }
    main { padding: 12px 16px 24px; }
    h1 { font-size: 1.45rem; }
}
.carte-note { list-style: none; margin-top: -6px; }

/* Publicités et consentement */
.pubs { margin: 12px 0; text-align: center; min-height: 0; }
.pubs img { max-width: 100%; height: auto; }
.consentement { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 3px solid var(--orange); box-shadow: 0 -2px 12px rgba(0,0,0,.18); padding: 12px 16px; }
.consentement[hidden] { display: none; }
.consentement p { margin: 4px 0; max-width: 900px; margin-inline: auto; }
.partenaires { padding-left: 1.2em; }
