/* =========================================================
   PARISRENT – CSS LUXE BLEU & OR
   Version 3 (finale)
   Pierre & Marc – 2025
   ========================================================= */

/* ============ VARIABLES ============ */
:root {
    --bleu: #0a1c3f;
    --bleu-light: #123060;
    --or: #d4af37;
    --or-light: #f5d978;
    --blanc: #ffffff;
    --gris: #f6f6f6;
    --rouge: #c40000;
    --vert: #0a7010;
}

/* ============ GLOBAL ============ */
body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: var(--gris);
    color: #222;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

h2 {
    text-align: center;
    color: var(--bleu);
    margin-top: 30px;
    margin-bottom: 18px;
}

/* ============ HEADER ============ */
header {
    background: var(--bleu);
    padding: 15px 0;
    color: var(--or);
    box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 55px;
}

nav a {
    color: var(--or);
    text-decoration: none;
    margin-left: 22px;
    font-weight: bold;
    font-size: 16px;
}

nav a:hover {
    opacity: 0.75;
}

.lang {
    border-left: 2px solid var(--or);
    padding-left: 15px;
}

/* ============ HERO (ACCUEIL) ============ */
.hero {
    text-align: center;
    background: var(--bleu);
    padding: 90px 20px;
}

.hero h1 {
    font-size: 48px;
    color: var(--or);
    margin-bottom: 12px;
    text-shadow: 0 0 12px rgba(0,0,0,0.6);
}

.hero p {
    font-size: 20px;
    color: var(--or-light);
    opacity: 0.95;
    margin-bottom: 30px;
}

/* ============ BOUTONS ============ */
.btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 14px;
    font-weight: bold;
    text-decoration: none;
    margin: 8px;
    font-size: 18px;
    transition: 0.25s;
}

.btn.gold {
    background: var(--or);
    color: var(--bleu);
}

.btn.gold:hover {
    background: var(--or-light);
}

.btn.blue {
    background: var(--bleu);
    color: var(--or);
    border: 2px solid var(--or);
}

.btn.blue:hover {
    background: var(--bleu-light);
}

/* ============ ICONES ============ */
.icon-btn {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 8px;
}

/* ============ GRID ACCUEIL ============ */
.apts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

/* ============ CARDS ACCUEIL ============ */
.apt-card {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: var(--blanc);
    box-shadow: 0 6px 16px rgba(0,0,0,0.22);
    text-decoration: none;
    transition: 0.28s;
}

.apt-card:hover {
    transform: scale(1.03);
}

.apt-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--or);
}

.apt-info {
    padding: 14px;
    font-weight: bold;
    text-align: center;
    color: var(--bleu);
    background: var(--blanc);
}

/* =========================================================
   PAGES APPARTEMENTS
   ========================================================= */

/* ===== HERO DES APPARTEMENTS ===== */
.apt-hero {
    text-align: center;
    padding: 60px 20px;
    background: var(--bleu);
    color: var(--or);
}

.apt-hero h1 {
    font-size: 42px;
    margin-bottom: 8px;
}

.apt-hero p {
    font-size: 18px;
    opacity: .9;
}

/* ===== BOUTONS SUR LES PAGES APPARTEMENTS ===== */
.apt-buttons {
    margin-top: 25px;
}

/* ===== MINIATURES ===== */
.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 35px;
}

.mini {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0px 4px 14px rgba(0,0,0,0.28);
    cursor: pointer;
    transition: 0.25s;
}

.mini:hover {
    transform: scale(1.04);
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox-full {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(255,255,255,0.2);
}

/* =========================================================
   CALENDRIER ICS
   ========================================================= */

.cal-block {
    background: var(--blanc);
    padding: 20px;
    border-radius: 14px;
    margin: 35px 0;
    box-shadow: 0 6px 16px rgba(0,0,0,0.22);
}

.cal-block h3 {
    text-align: center;
    color: var(--bleu);
    margin-bottom: 10px;
    text-transform: capitalize;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.cal-cell {
    padding: 10px 0;
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
}

.cal-cell.free {
    background: #e5ffe5;
    color: var(--vert);
}

.cal-cell.booked {
    background: #ffd7d7;
    color: var(--rouge);
}

.cal-cell.empty {
    visibility: hidden;
}

/* ============ FOOTER ============ */
footer {
    background: var(--bleu);
    color: var(--or);
    text-align: center;
    padding: 25px;
    margin-top: 60px;
}
