:root {
    /* ── Palette côtière & sable (côte bretonne) ── */
    --ocean:        #1a3a4a;   /* Bleu océan profond – couleur principale */
    --ocean-mid:    #2a5a6a;   /* Océan intermédiaire */
    --ocean-light:  #4a8a9a;   /* Océan clair */
    --sand:         #e8d5b0;   /* Sable chaud */
    --sand-light:   #f2e8d4;   /* Sable très clair */
    --foam:         #f5f0e8;   /* Écume – fond de page */
    --accent:       #c4813a;   /* Ambre doré – accent */
    --accent-light: #e8a84e;   /* Ambre clair */
    --text:         #2c2c2c;   /* Texte principal */
    --muted:        #7a7a6e;   /* Texte atténué */
    --white:        #ffffff;

    /* ── Typographies ── */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Lato', system-ui, -apple-system, "Segoe UI", sans-serif;

    /* ── Alias de compatibilité (les sélecteurs existants continuent de fonctionner) ── */
    --font-hero:     var(--font-display);
    --font-accent:   var(--font-body);
    --bleu-breton:   var(--ocean);
    --bleu-clair:    var(--sand);
    --bleu-fonce:    #0d1f28;
    --ploubaz-deep:  var(--ocean);
    --ploubaz-sage:  var(--accent);
    --ploubaz-mint:  var(--accent-light);
    --ploubaz-muted: var(--muted);
    --ploubaz-soft:  var(--sand);
    --ploubaz-cream: var(--foam);
    --ploubaz-dark:  #0d1f28;
    --ploubaz-ink:   var(--text);
}

body {
    background-color: var(--foam);
    font-family: var(--font-body);
    color: var(--text);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

/* ── Liens hypertexte ── */
a {
    color: var(--ocean-mid);
    text-decoration: underline;
    text-decoration-color: rgba(42,90,106,0.35);
    text-underline-offset: 3px;
    transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover {
    color: var(--accent);
    text-decoration-color: rgba(196,129,58,0.5);
}
a:visited {
    color: var(--ocean);
}

/* Liens sans soulignement (composants UI) */
a.btn,
a.nav-link,
a.nav-card,
a.navbar-brand,
.site-footer a {
    text-decoration: none;
}

/* Nav-cards : texte blanc quelle que soit la spécificité du sélecteur :visited */
a.nav-card,
a.nav-card:visited,
a.nav-card:hover,
a.nav-card:focus {
    color: #fff !important;
}

/* ── Hiérarchie typographique ── */
h1, h2, .page-title {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ocean);
}

h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--ocean);
}

.brand-celtic {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 700;
}

.eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
    font-size: 0.72rem;
    color: var(--accent);
    display: block;
    margin-bottom: 0.35rem;
}

/* Séparateur vague décoratif */
.wave-sep {
    color: var(--accent);
    letter-spacing: 0.2em;
    font-size: 1.1rem;
    display: block;
    margin: 0.4rem 0;
    opacity: 0.55;
    line-height: 1;
}

/* ── Header ── */
.site-header-top {
    background-color: #fff;
    border-bottom: 1px solid rgba(26,58,74,0.12);
}

.site-logo {
    height: auto;
    width: 100%;
    max-width: 280px;
    max-height: 80px;
    object-fit: contain;
    display: block;
}

.site-address {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.55;
}

.site-address strong {
    font-size: 1.05rem;
    color: var(--ocean);
}

/* ── Navbar ── */
.navbar-ploubaz {
    background-color: var(--ocean) !important;
}

.navbar-ploubaz .navbar-toggler {
    border-color: rgba(255,255,255,0.4) !important;
}

.navbar-ploubaz .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.navbar-ploubaz .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.6rem 1rem !important;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.01em;
}

.navbar-ploubaz .nav-link:hover,
.navbar-ploubaz .nav-link.active {
    color: #fff !important;
    background-color: rgba(0,0,0,0.25);
    border-radius: 6px;
}

/* ── Page content ── */
.page-title {
    color: var(--ocean);
    border-bottom: 2px solid var(--sand);
    padding-bottom: 0.6rem;
    margin-bottom: 1.75rem;
    font-size: 2rem;
    font-weight: 600;
}

/* ── Cards des sections ── */
.section-card {
    border: 1px solid var(--sand);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 10px rgba(26,58,74,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}

.section-card:hover {
    box-shadow: 0 4px 20px rgba(26,58,74,0.11);
}

.section-card .card-header {
    background-color: var(--sand-light);
    color: var(--ocean);
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--sand);
    padding: 0.7rem 1rem;
    font-family: var(--font-body);
    letter-spacing: 0.01em;
}

.section-card .card-body {
    padding: 1rem;
    background-color: #fff;
    white-space: pre-wrap;
    line-height: 1.7;
}

/* ── Alerte attention ── */
.alerte-attention {
    background-color: #fff8eb;
    border-left: 4px solid var(--accent-light);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alerte-attention img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── WiFi box ── */
.wifi-box {
    background: linear-gradient(135deg, var(--ocean), #0d1f28);
    color: #fff;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.wifi-box .wifi-label {
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wifi-box .wifi-value {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ── Checklist départ (page publique) ── */
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--sand);
    line-height: 1.55;
}
.checklist-item:last-child { border-bottom: none; }

.checklist-check-icon {
    color: var(--ocean);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 1px;
    cursor: pointer;
    transition: color 0.15s;
    user-select: none;
}
.checklist-check-icon.bi-check-square-fill {
    color: var(--accent);
}
.checklist-check-icon:hover { opacity: 0.75; }

.checklist-text {
    transition: opacity 0.2s, text-decoration 0.2s;
}

/* ── Checklist admin ── */
.checklist-admin-item .drag-handle { flex-shrink: 0; }

/* ── Home page ── */
.home-intro {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.75rem 2rem;
    border-left: 4px solid var(--accent);
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(26,58,74,0.06);
    font-size: 1.05rem;
    line-height: 1.65;
}

.nav-card {
    border: none;
    border-radius: 8px;
    text-align: center;
    padding: 1.75rem 1rem;
    color: #fff;
    text-decoration: none;
    display: block;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 2px 10px rgba(26,58,74,0.12);
    position: relative;
    overflow: hidden;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(26,58,74,0.22);
    color: #fff;
}

.nav-card .nav-card-icon {
    font-size: 2.6rem;
    display: block;
    margin-bottom: 0.85rem;
    opacity: 0.95;
}

.nav-card .nav-card-label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.nav-card-arrivee  { background: linear-gradient(135deg, #1a3a4a, #2a5a6a); }
.nav-card-sejour   { background: linear-gradient(135deg, #c4813a, #e8a84e); }
.nav-card-depart   { background: linear-gradient(135deg, #5a6a5a, #7a9a7a); }
.nav-card-info     { background: linear-gradient(135deg, #2a5a6a, #c4813a); }

/* ── Informations ── */
.info-distance {
    background-color: var(--ocean);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    white-space: nowrap;
}

/* ── Images dans les sections ── */
.section-img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    cursor: zoom-in;
    transition: opacity 0.15s;
}
.section-img:hover { opacity: 0.82; }

/* ── Section importante ── */
.section-important {
    border-color: var(--accent-light) !important;
}
.section-important .card-header {
    background-color: #fff8eb !important;
    border-color: var(--accent-light) !important;
    color: #5a3a00 !important;
}
.section-important .card-body {
    background-color: #fffdf5;
}

/* ── Lightbox ── */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.88);
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
}
#lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
#lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
}
#lightbox-close:hover { opacity: 1; }

/* ── Planning réservations ── */
.cal-table { table-layout: fixed; }
.cal-table th { text-align: center; font-size: 0.8rem; background: var(--sand); padding: 6px 4px; }
.cal-table td { vertical-align: top; height: 80px; padding: 4px !important; }
.cal-empty { background: #f8f9fa; }
.cal-day-num { font-size: 0.82rem; font-weight: 600; margin-bottom: 3px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.cal-today { background: var(--ocean); color: #fff; }
.cal-weekend { background: #fafafa; }
.cal-res { font-size: 0.68rem; padding: 1px 5px; border-radius: 3px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; cursor: default; }
.cal-proprietaire { background: var(--ocean); }
.cal-locataire { background: var(--accent); }
.res-card-proprietaire { border-left: 4px solid var(--ocean); }
.res-card-locataire { border-left: 4px solid var(--accent); }
.badge-proprietaire { background: var(--ocean) !important; }
.badge-locataire { background: var(--accent) !important; }

/* ── Footer ── */
.site-footer {
    background-color: #0d1f28;
    color: rgba(245,240,232,0.78);
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.88rem;
    border-top: 4px solid var(--accent);
}

.site-footer a { color: rgba(245,240,232,0.7); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer strong { color: #fff; font-family: var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.85rem; font-weight: 700; }
.site-footer .footer-logo {
    height: 42px;
    width: auto;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    display: block;
}

/* ── Login ── */
.login-card {
    max-width: 380px;
    margin: 6rem auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26,58,74,0.12);
}

.login-card .card-header {
    background-color: var(--ocean);
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* ── Admin ── */
.admin-tabs .nav-link { color: var(--ocean); font-weight: 500; }
.admin-tabs .nav-link.active { color: #fff; background-color: var(--ocean); border-color: var(--ocean); }
.admin-field-label { font-size: 0.82rem; font-weight: 700; color: var(--muted); margin-bottom: 0.25rem; letter-spacing: 0.01em; }

/* ── Drag-and-drop des sections ── */
.drag-handle {
    cursor: grab;
    color: #aaa;
    padding: 0 4px;
    user-select: none;
    transition: color 0.15s;
    touch-action: none;
}
.drag-handle:hover { color: var(--ocean); }
.drag-handle:active { cursor: grabbing; }
.drag-handle i { font-size: 1.15rem; vertical-align: middle; }

.sortable-ghost {
    opacity: 0.3;
    background: var(--sand) !important;
}
.sortable-chosen .admin-section-title {
    background: var(--sand-light);
}

.sortable-sections .admin-section-block {
    transition: box-shadow 0.15s;
}
.sortable-sections .admin-section-block:hover .drag-handle {
    color: var(--accent);
}
.admin-section-title { font-size: 1rem; font-weight: 700; color: #0d1f28; margin: 1.25rem 0 0.75rem; border-bottom: 1px solid #dee2e6; padding-bottom: 0.3rem; cursor: pointer; user-select: none; }
.admin-section-title > div:first-child { min-width: 0; }
.admin-section-title > div:last-child { flex-shrink: 0; }
.admin-section-title > div:first-child > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-section-block { border-left: 3px solid var(--sand); padding-left: 0.75rem; }
/* ── Sections collapsibles ── */
.admin-section-body { padding-top: 0.25rem; }
.asb-chevron { font-size: 0.8rem; color: var(--muted); transition: transform 0.2s; flex-shrink: 0; margin-left: 0.25rem; }
.admin-section-block.asb-collapsed .asb-chevron { transform: rotate(-90deg); }
.admin-section-block.asb-collapsed .admin-section-body { display: none; }
.admin-section-block.asb-collapsed { margin-bottom: 0.25rem !important; }
.admin-section-block.asb-collapsed .admin-section-title { margin-bottom: 0; border-bottom-color: transparent; }

/* ── Sélecteur d'icônes ── */
.icon-pick-btn { font-size: 0.8rem; padding: 0.25rem 0.5rem; }
.icon-pick-btn i { font-size: 1.1rem; vertical-align: middle; }

.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 6px;
    max-height: 380px;
    overflow-y: auto;
}
.icon-picker-btn {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 6px 4px 4px;
    background: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transition: border-color 0.15s, background 0.15s;
}
.icon-picker-btn i { font-size: 1.4rem; color: #444; }
.icon-picker-btn span { font-size: 0.6rem; color: #777; text-align: center; word-break: break-all; line-height: 1.2; }
.icon-picker-btn:hover { background: #fdf5e8; border-color: var(--accent); }
.icon-picker-btn:hover i { color: var(--accent); }

/* ── Gestion images admin ── */
.img-thumb-container {
    position: relative;
    display: inline-block;
}
.img-thumb-container img {
    height: 60px;
    width: auto;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    display: block;
}
.btn-remove-img {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    border: none;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.btn-remove-img:hover { background: #b02a37; }

/* ── Responsive ── */
@media (max-width: 767px) {
    /* Conteneur principal */
    main.container { padding-top: 1rem !important; padding-bottom: 1.5rem !important; }

    /* Header */
    .site-logo { max-width: 200px; max-height: 55px; }
    .site-address { font-size: 0.78rem; }
    .btn-header { font-size: 0.75rem; padding: 0.25rem 0.5rem; }

    /* Titre de page */
    .page-title { font-size: 1.3rem; margin-bottom: 0.85rem; padding-bottom: 0.4rem; }
    .eyebrow { font-size: 0.65rem; margin-bottom: 0.2rem; }

    /* Accueil — intro */
    .home-intro { padding: 0.8rem 1rem; font-size: 0.88rem; line-height: 1.55; margin-bottom: 0.85rem !important; }

    /* Accueil — nav cards */
    .nav-card { padding: 1.1rem 0.6rem; border-radius: 6px; }
    .nav-card .nav-card-icon { font-size: 1.7rem; margin-bottom: 0.55rem; }
    .nav-card .nav-card-label { font-size: 0.82rem; }

    /* Sections : taille réduite sur mobile */
    .section-card { margin-bottom: 0.65rem; border-radius: 6px; }
    .section-card .card-header { padding: 0.45rem 0.7rem; font-size: 0.8rem; }
    .section-card .card-body { padding: 0.65rem 0.7rem; font-size: 0.86rem; line-height: 1.5; }
    .alerte-attention { padding: 0.55rem 0.7rem; font-size: 0.86rem; margin-bottom: 0.65rem; }
    .wifi-box { padding: 0.7rem 0.9rem; margin-bottom: 0.65rem; }
    .checklist-item { padding: 0.45rem 0; gap: 0.6rem; font-size: 0.88rem; }

    /* Footer */
    .site-footer { margin-top: 1.5rem; }
    .site-footer .footer-logo { height: 36px; }
    .login-card { margin: 2rem 1rem; }
}

@media (max-width: 480px) {
    .site-logo { max-width: 160px; max-height: 44px; }
    .nav-card { padding: 0.9rem 0.5rem; }
    .nav-card .nav-card-icon { font-size: 1.5rem; margin-bottom: 0.4rem; }
    .nav-card .nav-card-label { font-size: 0.78rem; }
    .section-card .card-body { padding: 0.55rem 0.65rem; font-size: 0.83rem; line-height: 1.45; }
    .section-card .card-header { font-size: 0.78rem; padding: 0.4rem 0.65rem; }
    .home-intro { font-size: 0.85rem; }
}
