/* ============================================================
   Le Sapin Bleu — direction "Grand Air"
   Palette : encre marine, bleu rivière, vert feuille, soleil,
   corail — sur fond crème. Photos en couleurs naturelles.
   ============================================================ */

:root {
    --ink: #10263a;
    --blue: #1c6fa8;
    --blue-deep: #124d78;
    --sun: #f2a93b;
    --sun-text: #b97a1f;
    --leaf: #4f9d6e;
    --coral: #e2593f;
    --cream: #fbf8f2;
    --card: #ffffff;
    --line: #e6e0d3;
    --muted: #5c6b78;
    --danger: #c2402a;
    --succes: #3d7d57;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.55;
}

a { color: var(--blue); }
h1, h2, h3 { letter-spacing: -0.02em; text-wrap: balance; }

/* Curseur flèche par défaut partout (pas le "I-beam" qui laisse croire qu'on peut
   écrire dans le texte). Les éléments interactifs et les champs gardent le bon curseur. */
body { cursor: default; }
a, button, .bouton, label, summary { cursor: pointer; }
input, textarea, select { cursor: auto; }

.conteneur {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- En-tête ---------- */
.entete {
    background: var(--cream);
    padding: 18px 0;
}
.entete .conteneur {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.entete .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
}
.entete .logo img {
    height: 44px;
    width: auto;
    display: block;
    border-radius: 10px;
}
.entete nav {
    display: flex;
    align-items: center;
    gap: 6px;
}
.entete nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.94rem;
    padding: 10px 18px;
    border-radius: 999px;
}
.entete nav a:hover { background: rgba(28, 111, 168, 0.1); }
.entete nav a.nav-cta {
    background: var(--coral);
    color: #fff;
}
.entete nav a.nav-cta:hover { background: var(--blue-deep); }
.fb-lien {
    display: inline-flex;
    align-items: center;
    padding: 4px !important;
    border-radius: 50%;
    transition: transform 0.15s ease;
}
.fb-lien svg { width: 30px; height: 30px; display: block; }
.fb-lien:hover { transform: scale(1.12); background: transparent !important; }

/* ---------- Bandeau d'annonce ---------- */
.bandeau-annonce {
    background: var(--sun);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 11px 0;
    text-align: center;
}

/* ---------- Boutons ---------- */
.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--coral);
    color: #fff;
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 800;
    font-family: inherit;
    box-shadow: 0 14px 24px -12px rgba(226, 89, 63, 0.55);
    transition: background 0.15s ease;
}
.bouton:hover { background: var(--blue-deep); color: #fff; }
.bouton.secondaire {
    background: var(--blue-deep);
    box-shadow: 0 14px 24px -12px rgba(18, 77, 120, 0.5);
}
.bouton.secondaire:hover { background: var(--coral); }
.bouton.danger { background: var(--danger); box-shadow: none; }
.bouton.danger:hover { background: #9c3220; }
.bouton.discret {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
    box-shadow: none;
}
.bouton.discret:hover { background: var(--ink); color: var(--cream); }
.bouton:disabled { opacity: 0.4; cursor: default; }

/* ---------- Hero ---------- */
.hero { padding: 34px 0 10px; }
.hero-grille {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 44px;
    align-items: center;
}
@media (max-width: 900px) {
    .hero-grille { grid-template-columns: 1fr; }
}
.surtitre {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--coral);
    margin-bottom: 18px;
}
.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.08;
    margin: 0 0 22px;
    font-weight: 800;
}
.hero h1 .accent-bleu { color: var(--blue); }
.hero p.chapeau {
    font-size: 1.08rem;
    color: var(--ink);
    opacity: 0.78;
    max-width: 460px;
    margin: 0 0 30px;
}
.hero .boutons { display: flex; gap: 14px; flex-wrap: wrap; }

.collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    height: 440px;
}
@media (max-width: 900px) { .collage { height: 320px; } }
.collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}
.collage img.grande { grid-row: span 2; }

/* ---------- Bandeau stats ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 50px 0 0;
    border-radius: 24px;
    overflow: hidden;
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stats .stat { padding: 26px 20px; text-align: center; color: #fff; }
.stats .stat:nth-child(1) { background: var(--blue); }
.stats .stat:nth-child(2) { background: var(--leaf); }
.stats .stat:nth-child(3) { background: var(--sun); color: var(--ink); }
.stats .stat:nth-child(4) { background: var(--coral); }
.stats .num { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.stats .lbl { font-size: 0.78rem; font-weight: 700; opacity: 0.9; margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-titre { text-align: center; max-width: 620px; margin: 0 auto 46px; }
.section-titre .surtitre { color: var(--leaf); }
.surtitre-bleu { color: var(--blue); }
.surtitre-leaf { color: var(--leaf); }
.surtitre-soleil { color: var(--sun-text); }
.section-titre h2 { font-size: 2.1rem; font-weight: 800; margin: 0 0 12px; }
.section-titre p { color: var(--ink); opacity: 0.75; margin: 0; }

.heritage { text-align: center; padding: 40px 0 10px; }
.heritage .surtitre { color: var(--blue); }
.heritage p.grande-phrase {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.5;
}
.heritage p.grande-phrase b { color: var(--coral); }

/* ---------- Cartes appartements ---------- */
.grille-appartements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 26px;
}
.carte-appartement {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.carte-appartement:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 34px -20px rgba(16, 38, 58, 0.35);
}
.carte-appartement .liseret { height: 6px; background: var(--blue); }
.grille-appartements .carte-appartement:nth-child(4n+1) .liseret { background: var(--blue); }
.grille-appartements .carte-appartement:nth-child(4n+2) .liseret { background: var(--leaf); }
.grille-appartements .carte-appartement:nth-child(4n+3) .liseret { background: var(--sun); }
.grille-appartements .carte-appartement:nth-child(4n+4) .liseret { background: var(--coral); }
.carte-appartement img.couverture {
    width: 100%;
    height: 185px;
    object-fit: cover;
    display: block;
    background: var(--line);
}
.carte-appartement-corps {
    padding: 20px 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.carte-appartement h3 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 800; }
.carte-appartement .meta {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 12px;
}
.carte-appartement p.resume { font-size: 0.9rem; opacity: 0.82; margin: 0 0 16px; flex: 1; }
.carte-appartement .pied-carte {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.carte-appartement .prix { font-weight: 800; font-size: 1rem; }
.grille-appartements .carte-appartement:nth-child(4n+1) .prix { color: var(--blue); }
.grille-appartements .carte-appartement:nth-child(4n+2) .prix { color: var(--leaf); }
.grille-appartements .carte-appartement:nth-child(4n+3) .prix { color: var(--sun-text); }
.grille-appartements .carte-appartement:nth-child(4n+4) .prix { color: var(--coral); }
.carte-appartement a.lien-voir {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}
.carte-appartement a.lien-voir:hover { color: var(--coral); }

/* ---------- Pills équipements ---------- */
.equipements {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 52px;
}
.equipements .pill {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.compteur-urgence {
    display: inline-block;
    background: rgba(226, 89, 63, 0.12);
    color: var(--coral);
    border: 1px solid rgba(226, 89, 63, 0.35);
    border-radius: 999px;
    padding: 9px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 14px;
}

/* ---------- Page À proximité ---------- */
.grille-alentours {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.carte-alentour {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px 24px;
    border-top: 6px solid var(--leaf);
}
.carte-alentour h3 { margin: 0 0 14px; font-size: 1.1rem; font-weight: 800; }
.alentour-icone { font-size: 1.2rem; margin-right: 4px; }
.liste-alentours { list-style: none; margin: 0; padding: 0; }
.liste-alentours li {
    padding: 8px 0;
    border-top: 1px solid var(--line);
}
.liste-alentours li:first-child { border-top: none; }
.alentour-nom { display: block; font-weight: 700; }
.alentour-detail { display: block; font-size: 0.88rem; color: var(--muted); }

/* Gestion admin des adresses */
.liste-alentours-admin { display: flex; flex-direction: column; gap: 10px; }
.ligne-alentour {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}
.alentour-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1; min-width: 260px; }
.alentour-edit select, .alentour-edit input {
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--cream);
    color: var(--ink);
    font-size: 0.86rem;
}
.alentour-edit input[name="name"] { flex: 1; min-width: 120px; }
.alentour-edit input[name="detail"] { flex: 2; min-width: 160px; }
.alentour-actions { display: flex; gap: 4px; }
.alentour-actions form { display: inline; }

/* ---------- Bloc disponibilités (accueil) ---------- */
.grille-dispos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
}
.carte-dispo {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    border-top: 6px solid var(--blue);
}
.grille-dispos .carte-dispo:nth-child(4n+1) { border-top-color: var(--blue); }
.grille-dispos .carte-dispo:nth-child(4n+2) { border-top-color: var(--leaf); }
.grille-dispos .carte-dispo:nth-child(4n+3) { border-top-color: var(--sun); }
.grille-dispos .carte-dispo:nth-child(4n+4) { border-top-color: var(--coral); }
.carte-dispo h3 { margin: 0 0 12px; font-size: 1.1rem; font-weight: 800; }
.liste-dispos {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    flex: 1;
}
.liste-dispos li {
    position: relative;
    padding: 6px 0 6px 22px;
    font-size: 0.9rem;
    font-weight: 600;
}
.liste-dispos li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--leaf);
}
.dispo-complet {
    flex: 1;
    margin: 0 0 16px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--coral);
}
.carte-dispo .lien-voir {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
}
.carte-dispo .lien-voir:hover { color: var(--coral); }

/* ---------- Page appartement ---------- */
.fil-ariane { margin: 22px 0; font-size: 0.88rem; color: var(--muted); }
.fil-ariane a { color: var(--muted); }

.galerie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 30px;
}
.galerie img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 18px;
    background: var(--line);
}
.galerie img:first-child { grid-column: span 2; height: 100%; min-height: 200px; grid-row: span 2; }
@media (max-width: 700px) {
    .galerie img:first-child { grid-column: span 1; grid-row: span 1; height: 200px; }
}

.galerie-photo { cursor: zoom-in; transition: opacity 0.15s ease; }
.galerie-photo:hover { opacity: 0.9; }
.galerie-photo:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Visionneuse plein écran ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(16, 38, 58, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img {
    max-width: min(92vw, 1400px);
    max-height: 86vh;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox button {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox button:hover { background: var(--coral); }
.lightbox-fermer { top: 20px; right: 20px; }
.lightbox-prec { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-suiv { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-compteur {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 16px;
    border-radius: 999px;
}

.details-appartement {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 44px;
    align-items: start;
}
@media (max-width: 860px) {
    .details-appartement { grid-template-columns: 1fr; }
}
.details-appartement h1 { font-size: 2.2rem; font-weight: 800; margin: 0 0 10px; }
.fiche-infos { color: var(--muted); margin-bottom: 18px; font-size: 0.95rem; }
.fiche-infos strong { color: var(--ink); }

/* ---------- Avis Google ---------- */
.etoiles { color: var(--sun); letter-spacing: 2px; }
.note-globale { font-size: 1.05rem; }
.note-globale .etoiles { font-size: 1.2rem; vertical-align: -1px; }
.grille-avis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.carte-avis {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    display: flex;
    flex-direction: column;
}
.carte-avis-entete {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.avis-quand { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.avis-texte {
    flex: 1;
    margin: 0 0 14px;
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.avis-auteur { font-weight: 800; font-size: 0.88rem; }
.avis-auteur::before { content: "— "; color: var(--muted); }

/* ---------- Conditions de séjour ---------- */
.conditions-sejour {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.conditions-sejour span {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 15px;
    font-size: 0.82rem;
    font-weight: 700;
}

/* ---------- Calendrier ---------- */
.calendrier {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}
.calendrier-entete {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.calendrier-titre { font-weight: 800; color: var(--ink); text-transform: capitalize; }
.calendrier-nav {
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ink);
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 999px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.calendrier-nav:hover { background: var(--sun); border-color: var(--sun); }
.calendrier-grille {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}
.calendrier-case {
    text-align: center;
    padding: 9px 0;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
}
.calendrier-entete-jour {
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--muted);
    padding: 4px 0;
}
.calendrier-vide { background: transparent; }
.calendrier-dispo { background: rgba(79, 157, 110, 0.16); color: var(--succes); }
.calendrier-reserve { background: rgba(226, 89, 63, 0.16); color: var(--danger); }
.calendrier-demande { background: rgba(242, 169, 59, 0.22); color: var(--sun-text); }
.calendrier-bloque { background: #e8e4da; color: var(--muted); }
.calendrier-passe { background: transparent; color: #c8c2b4; font-weight: 400; }
.calendrier-cliquable {
    cursor: pointer;
    box-shadow: inset 0 0 0 2px var(--leaf);
    font-weight: 800;
}
.calendrier-cliquable:hover, .calendrier-cliquable:focus-visible {
    background: var(--leaf);
    color: #fff;
    outline: none;
}
.calendrier-legende {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.78rem;
    margin-top: 12px;
    color: var(--muted);
}
.legende-item i {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 4px;
    margin-right: 5px;
    vertical-align: middle;
}

/* ---------- Formulaires ---------- */
.formulaire {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 26px;
}
.formulaire h2:first-child { margin-top: 0; }
.champ { margin-bottom: 15px; }
.champ label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 0.9rem;
}
.champ input, .champ textarea, .champ select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--cream);
    color: var(--ink);
}
.champ input:focus, .champ textarea:focus, .champ select:focus {
    outline: 2px solid var(--blue);
    outline-offset: 1px;
    border-color: var(--blue);
}
.champ textarea { min-height: 100px; resize: vertical; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .deux-colonnes { grid-template-columns: 1fr; } }
.note-formulaire { font-size: 0.84rem; color: var(--muted); margin-top: 12px; }

/* Champ piège anti-spam : hors écran (pas display:none, que les robots détectent) */
.hp-champ {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Alertes ---------- */
.alerte { padding: 14px 18px; border-radius: 14px; margin-bottom: 16px; font-weight: 600; }
.alerte-succes { background: rgba(79, 157, 110, 0.14); color: var(--succes); border: 1px solid rgba(79, 157, 110, 0.35); }
.alerte-erreur { background: rgba(194, 64, 42, 0.1); color: var(--danger); border: 1px solid rgba(194, 64, 42, 0.3); }
.alerte-info { background: rgba(28, 111, 168, 0.1); color: var(--blue-deep); border: 1px solid rgba(28, 111, 168, 0.3); }
.erreurs-liste { color: var(--danger); margin-bottom: 14px; padding-left: 20px; }

/* ---------- Bouton d'appel flottant (mobile) ---------- */
.tel-flottant {
    display: none;
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 900;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--coral);
    color: #fff;
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 12px 26px -8px rgba(226, 89, 63, 0.6);
}
@media (max-width: 700px) {
    .tel-flottant { display: flex; }
}

/* ---------- Section extérieurs (accueil) ---------- */
.grille-exterieurs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.grille-exterieurs figure { margin: 0; }
.grille-exterieurs img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}
.grille-exterieurs figcaption {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
    margin-top: 8px;
    text-align: center;
}
.grille-exterieurs-page { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grille-exterieurs-page img { height: 230px; }

/* Carrousel des extérieurs (accueil) : 4 photos + flèches */
.carrousel-ext { display: flex; align-items: center; gap: 14px; }
.carrousel-ext .grille-exterieurs { flex: 1; }
.carrousel-fleche {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.carrousel-fleche:hover:not(:disabled) { background: var(--sun); border-color: var(--sun); }
.carrousel-fleche:disabled { opacity: 0.35; cursor: default; }
.carrousel-position {
    text-align: center;
    margin: 12px 0 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
}
@media (max-width: 700px) {
    .carrousel-ext { gap: 8px; }
    .carrousel-fleche { width: 38px; height: 38px; }
}

/* ---------- Pied de page ---------- */
.pied {
    background: var(--blue-deep);
    color: #fff;
    border-radius: 28px;
    margin: 30px 24px 34px;
    padding: 52px 30px;
    text-align: center;
}
.pied h2 { font-size: 1.9rem; font-weight: 800; margin: 0 0 12px; color: #fff; }
.pied p { opacity: 0.85; margin: 0 0 24px; font-size: 0.94rem; }
.pied .bouton { background: var(--sun); color: var(--ink); box-shadow: none; }
.pied .bouton:hover { background: #fff; }
.pied-boutons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.pied .bouton-facebook { background: #fff; color: var(--ink); }
.pied .bouton-facebook:hover { background: var(--sun); }
.bouton-facebook svg { width: 20px; height: 20px; display: block; }
.pied .mentions { font-size: 0.8rem; opacity: 0.65; margin: 28px 0 0; }
.pied .mentions a { color: #fff; }

/* ============================================================
   Administration
   ============================================================ */
.admin-body { background: var(--cream); }
.admin-barre {
    background: var(--blue-deep);
    color: #fff;
    padding: 14px 0;
}
.admin-barre .conteneur {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 16px;
}
.admin-barre .conteneur > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.admin-barre a {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 7px 13px;
    border-radius: 999px;
}
.admin-barre a:hover { background: rgba(255, 255, 255, 0.15); }
.admin-barre a.actif { background: rgba(255, 255, 255, 0.22); }

/* ---------- Menu admin en sous-menus déroulants ---------- */
.admin-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.menu-bouton {
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    padding: 7px 13px;
    border-radius: 999px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.menu-bouton:hover { background: rgba(255, 255, 255, 0.15); }
.menu-bouton .caret { font-size: 0.68em; opacity: 0.85; }
.menu-groupe { position: relative; }
.menu-groupe.actif > .menu-bouton { background: rgba(255, 255, 255, 0.22); }
.menu-sous {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    z-index: 60;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 34px -14px rgba(16, 38, 58, 0.45);
    padding: 6px;
    min-width: 230px;
    display: none;
    flex-direction: column;
    gap: 2px;
}
.menu-groupe:hover > .menu-sous,
.menu-groupe:focus-within > .menu-sous { display: flex; }
.menu-groupe:last-child .menu-sous { left: auto; right: 0; }
.menu-sous a {
    color: var(--ink);
    background: none;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 8px;
    white-space: nowrap;
}
.menu-sous a:hover { background: rgba(28, 111, 168, 0.1); }
.menu-sous a.actif { background: rgba(28, 111, 168, 0.12); color: var(--blue-deep); }

.admin-carte {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
}
.admin-carte h2:first-child, .admin-carte h3:first-child { margin-top: 0; }

table.table-admin { width: 100%; border-collapse: collapse; }
table.table-admin th, table.table-admin td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
table.table-admin th {
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}
.badge-pending { background: rgba(242, 169, 59, 0.22); color: var(--sun-text); }
.badge-confirmed { background: rgba(79, 157, 110, 0.16); color: var(--succes); }
.badge-rejected { background: rgba(194, 64, 42, 0.12); color: var(--danger); }
.badge-cancelled { background: #e8e4da; color: var(--muted); }

.miniature-photo {
    width: 110px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    margin: 4px;
    border: 1px solid var(--line);
}
.grille-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.carte-photo { text-align: center; }
.carte-photo form { display: inline; }

.connexion-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 85vh;
    padding: 20px;
}
.connexion-carte {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 34px;
    width: 100%;
    max-width: 380px;
}
.connexion-carte h1 { font-size: 1.5rem; font-weight: 800; margin-top: 0; }

/* ---------- Éditeur de textes (admin) ---------- */
.bloc-editeur { padding: 16px 0; border-top: 1px solid var(--line); }
.bloc-editeur:first-of-type { border-top: none; }
.bloc-entete { margin-bottom: 10px; }
.bloc-apercu-cadre {
    position: relative;
    background: var(--cream);
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 20px 16px 14px;
    margin-bottom: 12px;
}
.bloc-apercu-label {
    position: absolute;
    top: 6px;
    left: 12px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 700;
}
.bloc-apercu { font-size: 1.15rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.bloc-content {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    color: var(--ink);
    resize: vertical;
}
.bloc-controles { display: flex; flex-wrap: wrap; gap: 14px; }
.bloc-controle { display: flex; flex-direction: column; gap: 4px; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.bloc-controle select {
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 0.85rem;
}
.bloc-controle input[type="color"] { width: 42px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; padding: 2px; }

/* ---------- Statistiques de visites (admin) ---------- */
.stats-barres {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 180px;
    padding-top: 18px;
}
.stats-barre-colonne {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 0;
}
.stats-barre {
    width: 100%;
    max-width: 26px;
    background: var(--blue);
    border-radius: 4px 4px 0 0;
}
.stats-barre-colonne:hover .stats-barre { background: var(--coral); }
.stats-barre-valeur { font-size: 0.62rem; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.stats-barre-jour {
    font-size: 0.58rem;
    color: var(--muted);
    margin-top: 4px;
    transform: rotate(-55deg);
    white-space: nowrap;
}

/* ---------- Calendrier d'occupation (admin) ---------- */
.calendrier-aujourdhui { outline: 2px solid var(--blue); outline-offset: -2px; }
.jauge {
    display: flex;
    height: 16px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(79, 157, 110, 0.16);
}
.jauge span { display: block; height: 100%; }
.jauge .seg-reserve { background: var(--coral); }
.jauge .seg-demande { background: var(--sun); }
.jauge .seg-bloque { background: #b8b2a4; }
.jauge-mini { height: 10px; min-width: 120px; }
@media (max-width: 860px) {
    .colonnes-calendrier { grid-template-columns: 1fr !important; }
}

/* ---------- Mobile (téléphones) ---------- */
@media (max-width: 720px) {
    .conteneur { padding: 0 18px; }
    .section { padding: 44px 0; }
    .section-titre { margin-bottom: 30px; }
    .section-titre h2 { font-size: 1.6rem; }

    /* En-tête : logo au-dessus, menu compact qui ne coupe jamais un mot */
    .entete { padding: 12px 0; }
    .entete .conteneur { flex-direction: column; gap: 8px; }
    .entete nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px 2px;
        max-width: 100%;
    }
    .entete nav a {
        white-space: nowrap;
        padding: 7px 11px;
        font-size: 0.86rem;
    }
    .fb-lien svg { width: 26px; height: 26px; }

    /* Galerie d'appartement : carrousel qui se balaye au doigt */
    .galerie {
        grid-template-columns: unset;
        grid-auto-flow: column;
        grid-auto-columns: 86%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-bottom: 22px;
    }
    .galerie::-webkit-scrollbar { display: none; }
    .galerie img,
    .galerie img:first-child {
        height: 255px;
        min-height: 0;
        grid-column: auto;
        grid-row: auto;
        scroll-snap-align: center;
    }

    /* Fiche appartement */
    .details-appartement h1 { font-size: 1.7rem; }
    .details-appartement { gap: 30px; }

    /* Extérieurs : 2 photos par rangée, hauteur réduite */
    .grille-exterieurs { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
    .grille-exterieurs img { height: 125px; border-radius: 12px; }
    .grille-exterieurs figcaption { font-size: 0.74rem; }

    /* Pied de page */
    .pied h2 { font-size: 1.5rem; }
}

/* ---------- Cases à cocher et boutons radio (formulaires admin) ---------- */
/* Sans cette règle, .champ input { width:100% } étire aussi les cases,
   qui se retrouvent séparées de leur libellé. */
/* label.choix : même poids que la règle .champ label, mais définie après,
   donc prioritaire — sinon le libellé passerait sous la case. */
.choix, label.choix {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.95rem;
}
.choix input[type="checkbox"],
.choix input[type="radio"] {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin: 2px 0 0;
    padding: 0;
    accent-color: var(--blue);
    cursor: pointer;
}
.choix > span { font-size: 0.95rem; line-height: 1.45; }
.choix small { display: block; color: var(--muted); margin-top: 3px; line-height: 1.4; }

/* Encadré mettant en avant une option importante */
.encadre-option {
    background: var(--sun-bg, #FDF3DF);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 15px;
}
.encadre-option .choix { margin-bottom: 0; }

/* Liste de champs numérotés (noms des colocataires) */
.liste-colocataires { display: grid; gap: 10px; }
.liste-colocataires .ligne { display: flex; align-items: center; gap: 10px; }
.liste-colocataires .numero {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--blue-deep);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bloc de coordonnées d'un colocataire (formulaire admin) */
.bloc-colocataire {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
}
.bloc-colocataire + .bloc-colocataire { margin-top: 10px; }
.bloc-colocataire .entete {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--blue-deep);
    margin-bottom: 8px;
}
.bloc-colocataire input { margin-bottom: 8px; }
.bloc-colocataire .deux-colonnes { gap: 10px; }
.bloc-colocataire .deux-colonnes input { margin-bottom: 0; }
