/* Modern Design Overrides - Camping Le Mont des Bruyères */

:root {
    --primary-color: #0c23bb;
    --primary-dark: #081885;
    --accent-color: #FF4136;
    --accent-hover: #E8362C;
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-pill: 50px;
}

/* --- Global & Typography --- */
body {
    color: var(--text-color);
    background-color: #fcfcfc;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    padding-top: 80px;
    /* Espace pour la navbar fixed */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #1a202c;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title h1::after,
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

h2::after {
    margin: 15px 0 0;
}

.text-center h2::after {
    margin: 15px auto 0;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

a {
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
    color: var(--accent-color);
}

/* --- Navbar Moderne --- */
.navbar-wrapper {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow-md);
    border-bottom: none !important;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030 !important;
    /* Must be lower than 1040 (backdrop) and 1050 (modal) */
}

.navbar-nav>li>a {
    font-weight: 600;
    color: #4a5568 !important;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 20px 10px;
}

.navbar-nav>li.active>a,
.navbar-nav>li.active>a:hover,
.navbar-nav>li.active>a:focus,
.navbar-nav>li>a:hover,
.navbar-nav>li>a:focus {
    color: var(--primary-color) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.navbar-nav>li.active>a::after {
    content: '';
    display: block;
    width: 30%;
    height: 3px;
    background: var(--accent-color);
    position: absolute;
    bottom: 15px;
    left: 35%;
    border-radius: 2px;
}

/* --- Boutons Modernes --- */
.btn {
    border: none;
    border-radius: var(--radius-pill);
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.main-btn,
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: white !important;
}

.btn-warning,
.btn-danger,
a.btn.main-btn[href*="reservation"] {
    background: linear-gradient(135deg, var(--accent-color) 0%, #c0392b 100%) !important;
    color: white !important;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    filter: brightness(1.1);
}

.btn:active {
    transform: translateY(0);
}

/* --- Cartes & Services (Box) --- */
.service-box,
.gallery-item,
.well,
.panel {
    background: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.service-box:hover,
.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-box .info-diamond {
    background: var(--bg-light);
    color: var(--primary-color);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-size: 32px;
    transform: rotate(0deg);
    box-shadow: inset 0 0 0 2px var(--primary-color);
    transition: all 0.5s;
}

.service-box:hover .info-diamond {
    background: var(--primary-color);
    color: white;
    transform: rotate(360deg);
}

.boxes_title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* --- Images --- */
img {
    border-radius: var(--radius-md);
}

.gallery-item {
    padding: 0;
}

.gallery-item img {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item h3 {
    padding: 20px;
    margin: 0;
    font-size: 1.2rem;
    text-align: center;
}

.orange-marker {
    height: 4px;
    background: var(--accent-color);
    width: 0;
    transition: width 0.4s;
    margin: 0 auto;
}

.gallery-item:hover .orange-marker {
    width: 100%;
}

/* --- Page Header Section --- */
.page-header-section {
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0 60px;
    /* Plus d'espace now that navbar is fixed */
    margin-bottom: 50px;
    color: white !important;
    text-align: center;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    /* Important pour l'image absolue */
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    /* Background layer 0 */
}

.page-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(8, 24, 133, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header-section h1 {
    color: white !important;
    font-size: 3rem;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.page-header-section p.subtitle {
    color: #edf2f7 !important;
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
}

.page-header-section h1::after {
    background: var(--accent-color);
    width: 80px;
    height: 5px;
    margin-top: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* --- Footer Moderne --- */
footer.footer {
    background: #1a202c;
    color: #cbd5e0;
    padding-top: 60px;
    border-top: 5px solid var(--accent-color);
    margin-top: 60px;
}

footer h3.title {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 30px;
    position: relative;
}

footer h3.title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    margin-top: 15px;
}

footer a {
    color: #a0aec0;
}

footer a:hover {
    color: var(--white);
    padding-left: 5px;
}

/* --- Modal --- */
.modal {
    display: none;
    /* Force hidden initially */
}

.modal-dialog {
    margin-top: 100px; /* Taille du menu global + marge */
}

.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 20px 30px;
}

.modal-body {
    padding: 30px;
}

.form-control {
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    height: auto;
    background-color: #f7fafc;
    transition: all 0.3s;
}

.form-control:focus {
    background-color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(12, 35, 187, 0.1);
}

/* --- Responsive Adjustments --- */
@media (min-width: 768px) {
    .navbar-right {
        float: right !important;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
        /* Ajustement menu fixe */
    }

    /* Navbar Mobile */
    .navbar-wrapper {
        padding: 5px 0;
        background: rgba(255, 255, 255, 1);
        /* Opaque sur mobile */
    }

    .navbar-toggle {
        margin-right: 15px;
        border: none;
    }

    .navbar-toggle .icon-bar {
        background-color: var(--primary-color);
        height: 3px;
        width: 25px;
    }

    .navbar-collapse {
        border-top: 1px solid #edf2f7;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        max-height: 80vh;
        overflow-y: auto;
        background: white;
    }

    .navbar-nav {
        margin: 0;
    }

    .navbar-nav>li>a {
        padding: 15px 20px;
        border-bottom: 1px solid #f7fafc;
        color: var(--text-color) !important;
    }

    .navbar-nav>li.active>a::after {
        display: none;
    }

    /* Headers & Text */
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .page-header-section {
        padding: 80px 0 40px;
    }

    .page-header-section h1 {
        font-size: 2rem;
        padding: 0 15px;
    }

    .page-header-section p.subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }

    /* Slider / Hero Specifics */
    .flexslider .slides img {
        height: 300px;
        object-fit: cover;
        /* Évite d'écraser l'image */
        object-position: center;
    }

    .slide-caption {
        bottom: 10px;
        left: 10px;
        right: 10px;
        width: auto;
        padding: 15px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: var(--radius-md);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .slide-caption h1.hero-title,
    .slide-caption h2.hero-title {
        font-size: 1.4rem !important;
        color: var(--primary-color) !important;
        margin-bottom: 5px;
        text-shadow: none;
    }

    .slide-caption p {
        display: none;
        /* Masquer la description sur mobile pour la clarté */
    }

    .slide-caption .btn {
        font-size: 12px;
        padding: 8px 20px;
        margin-top: 5px;
        width: auto;
        /* Pas full width ici */
    }

    /* Modals Mobile */
    .modal-dialog {
        margin: 80px 10px 10px; /* Taille menu mobile + marge */
        width: auto;
    }

    .modal-content {
        border-radius: var(--radius-md);
    }

    .modal-header {
        padding: 15px;
    }

    .modal-body {
        padding: 15px;
    }

    /* Stack form groups */
    .col-xs-6 {
        width: 100%;
        /* Force full width on small inputs inside modal */
        margin-bottom: 10px;
    }

    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 10px;
        display: block;
    }

    /* Exception pour les boutons avec icône seule ou petits */
    .input-group-btn .btn {
        width: auto;
        display: inline-block;
        margin-bottom: 0;
    }

    /* Footer */
    footer.footer {
        text-align: center;
    }

    footer .col-md-3,
    footer .col-md-4 {
        margin-bottom: 30px;
    }

    footer h3.title::after {
        margin: 15px auto;
    }
}

/* --- Document Style Pricing (from user image) --- */
.tarif-document {
    background: white;
    padding: 50px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #eee;
    margin-bottom: 40px;
    position: relative;
    border-radius: 4px;
}

.tarif-document .doc-header {
    text-align: center;
    margin-bottom: 40px;
}

.tarif-document .doc-header img {
    max-width: 400px;
    height: auto;
}

.tarif-document .doc-subtitle {
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 18px;
    margin: 20px 0;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    display: inline-block;
}

.has-drop-cap::first-letter {
    float: left;
    font-size: 5rem;
    line-height: 0.8;
    margin: 0.1em 0.1em 0 0;
    font-weight: 900;
    color: #333;
}

.wp-style-table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
}

.wp-style-table th,
.wp-style-table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
}

.wp-style-table thead th {
    background-color: #f8f9fa;
    font-weight: 700;
    text-align: center;
}

.wp-style-table tr:nth-child(even) {
    background-color: #fafafa;
}

.tarif-footnote {
    font-size: 12px;
    color: #666;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

@media (max-width: 768px) {
    .tarif-document {
        padding: 20px;
    }
}

/* --- Premium Modals Redesign --- */
:root {
    --modal-radius: 16px;
    --modal-header-grad: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.premium-modal .modal-content {
    border-radius: var(--modal-radius) !important;
    border: none !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
}

.premium-modal .modal-header {
    background: var(--modal-header-grad) !important;
    color: white !important;
    border-bottom: none !important;
    padding: 25px 30px !important;
}

.premium-modal .modal-title {
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.premium-modal .modal-body {
    padding: 30px !important;
    background-color: #ffffff !important;
}

.premium-modal .modal-footer {
    padding: 20px 30px !important;
    background-color: #f8fafc !important;
    border-top: 1px solid #edf2f7 !important;
}

.modal-section-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.estimation-box {
    background: #f1f5f9;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    height: 100%;
}

.estimation-box h4 {
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 20px;
}

.price-total-wrapper {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.price-total-amount {
    color: var(--accent-color);
    font-size: 2.2rem;
    font-weight: 900;
    display: block;
}

.modal-form-group {
    margin-bottom: 20px;
}

.modal-form-group label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    display: block;
}

.premium-modal .form-control {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 12px 16px !important;
    height: auto !important;
    font-size: 15px !important;
    transition: all 0.2s ease !important;
}

.premium-modal .form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(12, 35, 187, 0.1) !important;
    background-color: white !important;
}

/* Animations overlay */
.modal-backdrop.in {
    opacity: 0.8 !important;
    background-color: #0f172a !important;
}

#reservationModal, #loginModal, #contactModal {
    z-index: 99999 !important;
}