/* Reset and Base Styles */
html {
    scroll-behavior: smooth;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #1a1a1a;
    --accent-gold: #a68a5c;
    --accent-gold-hover: #8d7248;
    --bg-light: #f9fafb;
    --text-main: #374151;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --white: #ffffff;
    --brand-maroon: #901a1f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-info i {
    color: var(--white);
}

/* --- Header / Navbar --- */
header {
    background-color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: #b31e24;
    /* Lighter maroon */
    font-weight: 600;
    letter-spacing: 2px;
}

.logo-img {
    height: 34px;
    width: auto;
    display: block;
}

.main-nav ul {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.main-nav-mobile,
.mobile-menu-header {
    display: none;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #1A1B4B;
    text-shadow: 0.5px 0 0 #1A1B4B, -0.5px 0 0 #1A1B4B;
    /* Simulates bold without changing width */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.btn-icon:hover {
    background-color: #f3f4f6;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Hero Banner --- */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #1A1B4B;
    /* Logo Blue */
    padding: 0 1rem;
    overflow: hidden;
    /* Clips the blurred background edges */
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(26, 27, 75, 0.5), rgba(26, 27, 75, 0.6)), url('../image/banniere.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Ensures content stays above the blurred background */
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    color: white;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: #e5e7eb;
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #2d2d2d;
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--accent-gold);
    color: var(--white);
    border: none;
}

.btn-gold:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
}

/* Specifically for Hero Banner to be transparent */
.hero .btn-primary,
.hero .btn-gold {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

.hero .btn-primary:hover,
.hero .btn-gold:hover {
    transform: none;
    background-color: transparent;
}

.hero .btn-primary,
.hero .btn-gold {
    transition: none;
}

/* --- Sections Common --- */
.section {
    padding: 5rem 0;
    scroll-margin-top: 80px;
}

.section-bg-white {
    background-color: var(--white);
}

.section-bg-light {
    background-color: var(--bg-light);
}

.section-bg-extra-light {
    background-color: #fdfdfd;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: #1A1B4B;
    /* Logo Blue */
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
}

/* --- Grid Layouts --- */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* --- Cards --- */
.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-image-wrapper {
    position: relative;
    padding-top: 60%;
    /* Aspect ratio handling */
    overflow: hidden;
}

.card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

/* Disable hover animations for restaurant & apartment section cards */
.dish-card:hover,
.apt-card:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.apt-card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.dish-card:hover .card-image-wrapper img,
.apt-card:hover .card-image-wrapper img {
    transform: none;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-maroon);
    margin-bottom: 1rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: #FFF1B5;
    /* Lighter Brand Yellow */
    color: #1A1B4B;
    /* Logo Blue */
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Accomodation Specific */
.card.vertical-tall .card-image-wrapper {
    padding-top: 65%;
    /* Balanced height for apartment cards */
}

.apt-card .apt-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    width: fit-content;
    margin: 3.5rem auto 0;
    transition: none;
}

.apt-card .apt-link:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: none;
}

.apt-card .apt-link i {
    font-size: 0.85rem;
}

/* Activity Link - matching apt-link but with black/primary base */
.activity-card .activity-link {
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    padding: 0.6rem 1.5rem;
    border: 1px solid #000000;
    border-radius: 50px;
    width: fit-content;
    margin: 2rem auto 0;
    transition: all 0.2s ease;
}

.activity-card .activity-link:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.activity-card .activity-link i {
    font-size: 0.85rem;
}

.price-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    font-size: 1.75rem;
    font-weight: 800;
    z-index: 2;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-suffix {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Activity Specific */
.activity-card {
    text-align: center;
    padding: 0 !important;
    /* Removed max-width to match apt-card styling and width */
}

.activity-card .card-body {
    padding: 2rem;
}

.activity-card:hover {
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.activity-image-wrapper {
    position: relative;
    padding-top: 65%;
    /* Same as vertical-tall apt-card */
    overflow: hidden;
}

.activity-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.activity-icon-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-icon {
    width: 64px;
    height: 64px;
    background-color: var(--bg-light);
    color: var(--brand-maroon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: #e5e7eb;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-logo {
    color: var(--white);
    margin-bottom: 1.5rem;
    display: block;
}

.footer-logo .logo-img {
    height: 42px;
    margin-bottom: 1rem;
}

.footer-desc {
    color: #9ca3af;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #9ca3af;
    font-size: 0.95rem;
}

.footer-contact li i {
    color: var(--white);
    margin-top: 0.25rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #1A1B4B;
    /* Logo Blue */
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--white);
    transition: background-color 0.2s;
}

.social-links a:hover {
    background-color: var(--brand-maroon);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #9ca3af;
}

/* --- Contact Section --- */
.contact-form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1A1B4B;
    /* Logo Blue */
    box-shadow: 0 0 0 3px rgba(26, 27, 75, 0.1);
    /* Logo Blue shadow */
}

.contact-form .btn-gold {
    transition: none;
    background-color: var(--brand-maroon);
}

.contact-form .btn-gold:hover {
    transform: none;
    background-color: #b01e24;
    /* Slightly lighter maroon for hover effect */
}

/* --- Contact Grid Additions --- */
.contact-grid {
    gap: 4rem;
    align-items: start;
}

.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    height: 600px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    /* Add hamburger later */
    .hero h1 {
        font-size: 2.5rem;
    }

    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        gap: 2rem;
    }

    /* Mobile Menu Display at 768px */
    .btn-icon.mobile-menu-btn {
        display: flex !important;
    }

    .main-nav-mobile {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background: #ffffff !important;
        z-index: 9999;
        /* Au-dessus de tout */
        transition: right 0.3s ease;
        display: flex;
        flex-direction: column;
        padding: 0;
        visibility: hidden;
        overflow-y: auto;
    }

    .main-nav-mobile.open {
        right: 0;
        visibility: visible;
    }

    .mobile-menu-header {
        display: flex !important;
        padding: 20px;
        border-bottom: 2px solid #f5f5f5;
        justify-content: space-between;
        align-items: center;
        background: white;
    }

    .main-nav-mobile ul {
        list-style: none;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .main-nav-mobile li {
        width: 100%;
    }

    .main-nav-mobile a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #f9f9f9;
        font-weight: 500;
        transition: all 0.2s;
    }

    .main-nav-mobile a.active {
        color: var(--primary-color);
        font-weight: 700;
        background: #f8fbff;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .map-wrapper {
        height: 350px;
    }

    .hero {
        height: auto;
        padding: 6rem 1rem;
    }
}

@media (max-width: 640px) {

    .grid-cols-3,
    .grid-cols-4,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .top-bar-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    /* Mobile Menu Styles moved to 768px */

    /* Section adjustments */
    .section-title {
        font-size: 1.8rem;
    }

    .section {
        padding: 3rem 0;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1) translateY(0);
    color: white;
}

.whatsapp-float.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- CORRECTIONS MOBILES CRITIQUES --- */
@media (max-width: 768px) {

    /* Logo plus petit */
    .logo-img {
        height: 35px !important;
        width: auto !important;
        max-width: 140px !important;
    }

    /* Ajustement Header */
    header .container {
        justify-content: space-between !important;
        padding: 0 10px !important;
        gap: 5px !important;
    }

    /* Actions alignées à droite */
    .header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-left: 0 !important;
    }

    /* Bouton WhatsApp forcé */
    .whatsapp-float {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        bottom: 20px !important;
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
        z-index: 9999 !important;
    }

    /* Suppression du scroll horizontal */
    * {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    .container,
    .section,
    main {
        overflow-x: hidden !important;
    }
}

html,
body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
}