/* ================================================
   Fermette des Trois Tilleuls — styles custom
   Palette : vert sauge, terracotta, crème, brun
   ================================================ */

/* ─────────────────────────────────────────────────
   1. Variables
   ───────────────────────────────────────────────── */
:root {
    --ff-sauge:           #4A5D3F;
    --ff-sauge-dark:      #38462F;
    --ff-terracotta:      #C17A4D;
    --ff-terracotta-dark: #A2603A;
    --ff-creme:           #F6F1E7;
    --ff-sable:           #EFE7D8;
    --ff-brun:            #3A332A;
    --ff-brun-light:      #6B6052;
    --ff-mousse:          #A9BD8E;

    /* Calendrier */
    --cal-avail:          #C0DD97;
    --cal-avail-text:     #173404;
    --cal-unavail:        #F0997B;
    --cal-unavail-text:   #4A1B0C;
    --cal-selected:       var(--ff-terracotta);
    --cal-range:          #F6DDD5;
}

/* ─────────────────────────────────────────────────
   2. Layout global
   ───────────────────────────────────────────────── */
body {
    background-color: var(--ff-creme);
    color: var(--ff-brun);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ─────────────────────────────────────────────────
   3. Navbar
   ───────────────────────────────────────────────── */
.navbar {
    background-color: var(--ff-sauge-dark);
    border-bottom: 3px solid var(--ff-terracotta);
}
.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--ff-creme);
}
.nav-link {
    color: rgba(246,241,231,0.85);
}
.nav-link:hover,
.nav-link.active {
    color: var(--ff-terracotta);
}

/* ─────────────────────────────────────────────────
   4. Hero
   ───────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg,
    var(--ff-sauge) 0%,
    var(--ff-sauge-dark) 100%);
    color: var(--ff-creme);
    min-height: 420px;
    display: flex;
    align-items: center;
}
.hero-section h1,
.hero-section p {
    color: var(--ff-creme);
}
.hero-section p {
    opacity: 0.85;
}
.hero-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    padding: 0.3rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ff-creme);
    margin-bottom: 1rem;
}

/* ─────────────────────────────────────────────────
   5. Typographie & sections
   ───────────────────────────────────────────────── */
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ff-terracotta-dark);
    margin-bottom: 0.5rem;
}
.section-title {
    color: var(--ff-sauge-dark);
    font-weight: bold;
    margin-bottom: 1rem;
}
.section-subtitle {
    color: var(--ff-brun-light);
    margin-bottom: 2rem;
    max-width: 560px;
}
.section-sable {
    background-color: var(--ff-sable);
}

/* ─────────────────────────────────────────────────
   6. Boutons
   ───────────────────────────────────────────────── */
.btn-fermette {
    background-color: var(--ff-terracotta);
    border-color: var(--ff-terracotta);
    color: white;
    border-radius: 999px;
    font-weight: 600;
    padding: 0.6rem 1.6rem;
}
.btn-fermette:hover {
    background-color: var(--ff-terracotta-dark);
    border-color: var(--ff-terracotta-dark);
    color: white;
}
.btn-fermette-outline {
    background-color: transparent;
    border: 2px solid var(--ff-creme);
    color: var(--ff-creme);
    border-radius: 999px;
    font-weight: 600;
    padding: 0.6rem 1.6rem;
}
.btn-fermette-outline:hover {
    background-color: rgba(255,255,255,0.15);
    color: var(--ff-creme);
}

/* ─────────────────────────────────────────────────
   7. Cards
   ───────────────────────────────────────────────── */
.card {
    border: 1px solid rgba(58,51,42,0.12);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(58,51,42,0.08);
    background-color: white;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-4px);
}
.card-title {
    color: var(--ff-sauge-dark);
    font-weight: bold;
}
.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.card-body .btn-fermette {
    margin-top: auto;
}

/* ─────────────────────────────────────────────────
   8. Badges
   ───────────────────────────────────────────────── */
.badge-fermette-success {
    background-color: #E3ECDB;
    color: var(--ff-sauge-dark);
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    display: inline-block;
}
.badge-fermette-warning {
    background-color: #F6E4D5;
    color: var(--ff-terracotta-dark);
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    display: inline-block;
}

/* ─────────────────────────────────────────────────
   9. Images
   ───────────────────────────────────────────────── */
.img-card {
    height: 200px;
    object-fit: cover;
    width: 100%;
    border-radius: 14px 14px 0 0;
}
.img-hero {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 14px;
}
.img-section {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 14px;
}

/* ─────────────────────────────────────────────────
   10. Formulaires
   ───────────────────────────────────────────────── */
.form-control:focus,
.form-select:focus {
    border-color: var(--ff-terracotta);
    box-shadow: 0 0 0 0.2rem rgba(193,122,77,0.15);
}

/* ─────────────────────────────────────────────────
   11. Footer
   ───────────────────────────────────────────────── */
.footer-fermette {
    background-color: var(--ff-sauge-dark);
    color: rgba(246,241,231,0.8);
}
.footer-fermette h5 {
    color: var(--ff-creme);
}
.footer-fermette a {
    color: rgba(246,241,231,0.7);
    text-decoration: none;
}
.footer-fermette a:hover {
    color: var(--ff-creme);
}
.footer-fermette hr {
    border-color: rgba(246,241,231,0.15);
}
.footer-admin-link {
    color: rgba(246,241,231,0.2);
    font-size: 0.75rem;
}
.footer-admin-link:hover {
    color: rgba(246,241,231,0.5);
}

/* ─────────────────────────────────────────────────
   12. Calendrier public
   ───────────────────────────────────────────────── */
.cal-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}
.cal-grid .dow {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ff-brun-light);
    padding: 0.35rem 0;
}
.cal-day {
    padding: 0.6rem 0;
    font-size: 0.85rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: transparent;
    width: 100%;
    text-align: center;
}
.cal-day.avail {
    background: var(--cal-avail);
    color: var(--cal-avail-text);
    font-weight: 600;
}
.cal-day.unavail {
    background: var(--cal-unavail);
    color: var(--cal-unavail-text);
    text-decoration: line-through;
    cursor: not-allowed;
}
.cal-day.empty {
    background: transparent;
    cursor: default;
    color: var(--ff-brun-light);
}
.cal-legend {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.9rem;
    font-size: 0.78rem;
    color: var(--ff-brun-light);
}
.cal-legend .dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
    margin-right: 6px;
    vertical-align: -1px;
}

/* Sélection de période */
.cal-day-start,
.cal-day-end {
    background: var(--cal-selected) !important;
    color: white !important;
    font-weight: 700;
}
.cal-day-range {
    background: var(--cal-range) !important;
    color: var(--ff-brun) !important;
    border-radius: 0;
}

/* ─────────────────────────────────────────────────
   13. Dashboard admin
   ───────────────────────────────────────────────── */
.cal-cell {
    height: 18px;
}
.gite-name-col {
    min-width: 130px;
}
.day-col {
    min-width: 28px;
}
.day-letter {
    font-weight: 400;
    font-size: 0.65rem;
}
.table-admin {
    font-size: 0.9rem;
}
.booking-card-mobile {
    border-left: 4px solid var(--ff-terracotta);
}
.booking-card-mobile.accepted {
    border-left-color: #198754;
}
.booking-card-mobile.rejected {
    border-left-color: #dc3545;
}

/* ─────────────────────────────────────────────────
   14. Responsive mobile
   ───────────────────────────────────────────────── */
@media (max-width: 576px) {
    .hero-section {
        min-height: 300px;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .btn-fermette,
    .btn-fermette-outline {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .card {
        margin-bottom: 1rem;
    }
    .img-section {
        height: 200px;
    }
    .section-subtitle {
        max-width: 100%;
    }
}

/* Iframe Google Maps */
iframe.img-section {
    border: none;
}