/* ===== STYLES GÉNÉRAUX ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    background: #F9F6F0;
    color: #3D352E;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* ===== PALETTE ===== */
:root {
    --beige: #F5F0E8;
    --pierre: #8B7D6B;
    --vert: #2C5F2D;
    --or: #B8860B;
    --bleu-loire: #1A3A5C;
    --blanc-casse: #F9F6F0;
}
.text-or {
    color: var(--or);
}
.bg-or {
    background: var(--or);
}
.text-pierre {
    color: var(--pierre);
}
.bg-pierre {
    background: var(--pierre);
}
.text-vert {
    color: var(--vert);
}
.bg-vert {
    background: var(--vert);
}
.text-bleu-loire {
    color: var(--bleu-loire);
}
.bg-bleu-loire {
    background: var(--bleu-loire);
}
.border-or {
    border-color: var(--or);
}

/* ===== COMPOSANTS ===== */
.gold-line {
    width: 70px;
    height: 3px;
    background: var(--or);
    border-radius: 3px;
}
.gold-line-center {
    width: 70px;
    height: 3px;
    background: var(--or);
    border-radius: 3px;
    margin: 0 auto;
}

/* ===== GLASS ===== */
.glass-tourisme {
    background: #FFFFFF;
    border: 1px solid rgba(104, 104, 104, 0.3);
    box-shadow: 0 12px 40px rgba(233, 233, 233, 0.1), 0 0 30px rgba(233, 233, 233, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    border-radius: 1px;
    padding: 40px 35px;
}

.glass-tourisme div,.glass-tourisme p ,.glass-tourisme div img{
    margin: 14px auto 0;
    display: block;
    text-align: center;
}

.glass-tourisme .mt-4 {
    border-top: 1px solid #58585857;
}


.glass-tourisme .mt-4 .items-center{
    padding-top: 15px!important;
}

/* ===== BADGES ===== */
.badge-chateau {
    background: rgba(184, 134, 11, 0.12);
    color: #8B6914;
    border: 1px solid rgba(184, 134, 11, 0.15);
    padding: 0.5rem 1.4rem;
    border-radius: 9999px;
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.badge-chateau-solid {
    background: var(--or);
    color: #F9F6F0;
    padding: 0.5rem 1.4rem;
    border-radius: 9999px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ===== BOUTONS ===== */
.btn-visite {
    background: var(--or);
    color: #F9F6F0;
    font-weight: 600;
    padding: 0.8rem 2.2rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(184, 134, 11, 0.2);
    display: inline-block;
}
.btn-visite:hover {
    transform: scale(1);
    box-shadow: 0 8px 40px rgba(184, 134, 11, 0.3);
}
.btn-outline-loire {
    background: rgba(0, 0, 0, 0.205);;
    color: #ffffff;
    border: 2px solid rgb(255, 248, 240);
    font-weight: 500;
    padding: 0.7rem 2rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    display: inline-block;
}
.btn-outline-loire:hover {
    background: rgba(255, 248, 240, 0.08);
    border-color: #F9F6F0;
    transform: scale(1);
}

/* ===== CARTES ===== */
.card-loire {
    background: #FFFFFF;
    border: 1px solid rgba(104, 104, 104, 0.3);
    box-shadow: 0 12px 40px rgba(233, 233, 233, 0.1), 0 0 30px rgba(233, 233, 233, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    border-radius: 1px;
    padding-bottom:6px;
}
.card-loire:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06), 0 0 30px rgba(184, 134, 11, 0.04);
    transform: translateY(-6px);
}

/* ===== IMAGES ===== */
.img-reveal {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-reveal:hover {
    transform: scale(1);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #F9F6F0;
}
::-webkit-scrollbar-thumb {
    background: var(--or);
    border-radius: 4px;
}

/* ===== NAVBAR ===== */
#navbar {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#navbar a{
    color: #fff!important;
}
.nav-scrolled {
    background: rgba(249, 246, 240, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(184, 134, 11, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}
/* Style par défaut des liens dans la navbar (blanc) */
#navbar a {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.3s ease;
}


#navbar.nav-text-dark a {
    color: #1a1a1a !important;
}


#navbar.nav-text-dark .bg-or {
    color: white !important;
}


#navbar.nav-text-dark #menu-btn i {
    color: #1a1a1a !important;
}

#navbar #menu-btn i {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    #mobile-menu{
        border-radius:0;
    }
    #navbar a {
       display:block;
        color:black!important;
    }
}


/* ===== HEADER ===== */

header .container {
    margin: 120px auto 0;
    text-align: center;
}

header .container h1 {
  margin: 25px auto 5px;
  padding-bottom: 0;
  text-align: center;
}

header .container p {
  margin-top: 25px!important;
}

header .container p,
header .container .badge,
header .container .container-button,
header .container .container-button a {
    margin: auto;
    text-align: center;
}

header .container h1,
header .container p,
header .container .badge {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

header .container .badge {
    display: block;
    width: 10%;
    margin-bottom: 25px;
}

header .container hr {
    height: 1px;
    margin-top: 25px;
    margin-bottom: 25px;
}

header .container .container-button {
    margin-top: 25px;
    width: 80%;
}

header .container .container-button a {
    width: 48%;
    text-align: center;
}

@media (max-width: 768px) {

    header{
        min-height:400px;
        padding-bottom:200px;
    }

    header .container .container-button a {
        width: 100%;
        margin-top: 0px;
    }
}

/* ===== HERO OVERLAY ===== */
.hero-overlay-loire {
    background: linear-gradient(180deg, rgba(50, 50, 50, 0.6) 70%, rgba(50, 50, 50, 0.6) 40%, rgba(50, 50, 50, 0.6) 20%);
}

/* ===== GRILLE ===== */
.grid-overlay-loire {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.3) 30%, rgba(10, 10, 10, 0.6) 60%, rgba(10, 10, 10, 0.9) 100%);
}

.grid-cols-2 img {
    width:100%;
    height:100%;
}

.grid-loire {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}
.grid-loire .loire-item:first-child {
    grid-column: span 1;
    grid-row: span 1;
}
.grid-loire .loire-item:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
}
.grid-loire .loire-item:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
}
@media (max-width: 768px) {

    .grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr))!important;
    }
    .grid-loire {
        grid-template-columns: 1fr;
    }
    .grid-loire .loire-item:first-child,
    .grid-loire .loire-item:nth-child(2),
    .grid-loire .loire-item:nth-child(3),
    .grid-loire .loire-item:nth-child(4) {
        grid-column: span 1;
        grid-row: span 1;
    }
}


/* ===== FILTRES (chateaux) ===== */
.filter-btn {
    padding: 0.4rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(139, 125, 107, 0.2);
    background: transparent;
    color: #3D352E;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-btn:hover {
    border-color: var(--or);
    background: rgba(184, 134, 11, 0.06);
}
.filter-btn.active {
    background: var(--or);
    color: #F9F6F0;
    border-color: var(--or);
}

/* ===== KEYFRAMES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
