/* =====================================================
   LA GOUSSE D'AIL - STYLES PAGE ACCUEIL
   Hero, Menus, Story, Galerie, Réservation
===================================================== */

/* =====================================================
   HERO SECTION
===================================================== */

.hero {
    min-height: calc(100vh - 56px);
    position: relative;
    background: var(--color-bg);
    margin-bottom: 0;
}

.hero-container {
    max-width: 99%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 0;
    height: calc(100vh - 56px);
}

/* Hero Left */
.hero-left {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.hero-left-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
}

.hero-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.88);
    z-index: 2;
}

.hero-left-content {
    position: relative;
    z-index: 3;
    padding: 80px 100px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-brand {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 60px;
}

.brand-logo {
    flex-shrink: 0;
}

.brand-title {
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    color: #E53E3E;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
}

.brand-line {
    display: block;
}

.hero-content {
    max-width: 500px;
}

.hero-tagline {
    position: absolute;
    font-family: var(--font-serif);
    font-size: 23px;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--color-text);
    margin-bottom: 40px;
    font-style: italic;
    top: 60%;
    left: 50%;
}

.hero-btn {
    display: inline-block;
    padding: 13px 28px;
    border: 2px solid #333;
    background: transparent;
    color: #333;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    width: auto;
}

.hero-btn:hover {
    background: #333;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(205, 248, 255, 0.3);
}

/* Hero Right */
.hero-right {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.hero-image-wrapper {
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    box-shadow: none;
    margin-left: -30px;
}

/* =====================================================
   SECTION OUR STORY
===================================================== */

.story-section {
    position: relative;
    min-height: 100vh;
    background: #fff;
}

.story-grid {
    display: grid;
    grid-template-columns: 47.67% 50%;
    min-height: 100vh;
    margin-left: 60px;
}

.story-left {
    background: #D9534F;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 80px;
}

.story-image-wrapper {
    max-width: 550px;
}

.story-image {
    width: 550px;
    max-height: 850px;
    height: auto;
    display: block;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}

.story-right {
    background: #fff;
    display: flex;
    align-items: center;
    padding: 100px 80px 100px 100px;
}

.story-content {
    max-width: 550px;
}

.story-title {
    font-family: var(--font-serif);
    font-size: 52px;
    font-weight: 400;
    color: #D9534F;
    line-height: 1.2;
    margin-bottom: 40px;
}

.story-text {
    font-family: var(--font-serif);
    font-size: 23px;
    line-height: 1.5em;
    letter-spacing: 0.03em;
    color: #4A4A4A;
    margin-bottom: 50px;
}

.story-btn {
    display: inline-block;
    padding: 16px 45px;
    border: 2px solid #333;
    background: transparent;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.story-btn:hover {
    background: #333;
    color: #fff;
}

/* =====================================================
   SECTION MENUS
===================================================== */

.menu-section {
    padding: 120px 0;
    background: var(--color-bg);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 80px;
}

.menu-item {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #F7FAFC;
}

.menu-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.menu-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.menu-item:hover .menu-image img {
    transform: scale(1.08);
}

.menu-info {
    padding: 40px 32px;
    text-align: center;
}

.menu-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
}

.menu-description {
    color: var(--color-text-light);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
    min-height: 75px;
    cursor: pointer;
    transition: all 0.3s;
}

.menu-description:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.menu-price {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
}

.menu-cta {
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    padding: 16px 45px;
    border: 2px solid #333;
    background: transparent;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #333;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(205, 248, 255, 0.3);
}

/* =====================================================
   MODAL MENU
===================================================== */

.menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(30px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.menu-modal.active {
    display: flex;
    opacity: 1;
}

.menu-modal-image-wrapper {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    animation: menuImageZoom 0.5s ease;
}

@keyframes menuImageZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.menu-modal-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.menu-modal-close {
    position: fixed;
    top: 40px;
    right: 50px;
    color: white;
    font-size: 48px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    font-weight: 300;
    transition: all 0.3s ease;
}

.menu-modal-close:hover {
    transform: rotate(90deg);
    color: var(--color-primary);
}

/* =====================================================
   GALERIE CLIENTS
===================================================== */

.client-gallery-compact {
    padding: 100px 0;
    background: var(--color-bg);
    margin-top: clamp(-200px, -15vw, -150px);
}

.gallery-compact-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-compact-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transition: all 0.4s ease;
    position: relative;
}

.gallery-compact-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-compact-item:hover img {
    transform: scale(1.1);
}

/* =====================================================
   LIGHTBOX GALERIE
===================================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex !important;
}

.lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 40px;
    right: 50px;
    color: white;
    font-size: 48px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    font-weight: 300;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    color: var(--color-primary);
}

.lightbox-counter {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    font-weight: 500;
    background: none;
    padding: 0;
    z-index: 10001;
    letter-spacing: 2px;
}

.lightbox-nav button {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    width: 80px;
    height: 60px;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    font-weight: 300;
}

.lightbox-prev {
    left: -12px;
}

.lightbox-next {
    right: -12px;
}

.lightbox-nav button:hover {
    color: var(--color-primary);
    transform: translateY(-50%) scale(1.15);
}

/* =====================================================
   SECTION RÉSERVATION
===================================================== */

.contact-section {
    padding: 120px 0;
    background: var(--color-bg);
}

.minimal-form {
    max-width: 900px;
    margin: 60px auto 0;
}

.form-row-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.form-field {
    position: relative;
    margin-bottom: 40px;
}

.form-field label {
    display: block;
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 12px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 0 0 12px 0;
    border: none;
    border-bottom: 1px solid var(--color-text);
    background: transparent;
    font-size: 16px;
    font-family: var(--font-body);
    color: var(--color-text);
    transition: border-color 0.3s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #A0AEC0;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-bottom-color: var(--color-primary);
}

.form-field textarea {
    resize: vertical;
    padding-top: 8px;
    min-height: 100px;
}

.form-field select {
    cursor: pointer;
    appearance: none;
    padding-right: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232D3748' d='M1 1l5 5 5-5'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

.submit-btn {
    width: 100%;
    padding: 18px 40px;
    background: transparent;
    border: 1px solid var(--color-text);
    color: var(--color-text);
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-btn:hover {
    background: var(--color-text);
    color: white;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1024px) {
    .story-grid {
        grid-template-columns: 1fr;
        margin-left: 0;
    }

    .story-left {
        display: none;
    }

    .story-right {
        padding: 80px 50px;
    }

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

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-left {
        min-height: 600px;
    }

    .hero-left-content {
        padding: 80px 40px;
        text-align: center;
    }

    .hero-brand {
        justify-content: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .brand-title {
        font-size: 42px;
    }

    .hero-tagline {
        font-size: 32px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

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

    .form-row-double {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .form-field {
        margin-bottom: 30px;
    }

    .story-section {
        min-height: auto !important;
        padding: 40px 0 0 0 !important;
        margin-bottom: 0 !important;
    }

    .story-grid {
        min-height: auto !important;
        display: block !important;
    }
    
    .story-right {
        display: block;
        padding: 0 24px 10px !important;
        margin: 0 !important;
        width: 100%;
        max-width: none;
        min-height: 0 !important;
        height: auto !important;
    }


    .story-title {
        font-size: 32px;
        line-height: 1.25;
        margin-bottom: 20px !important;
        text-align: left;
    }

    .story-text {
        font-size: 17px;
        line-height: 1.6;
        margin-bottom: 30px !important;
        text-align: left;
    }

    .story-btn {
        display: inline-block;
        padding: 16px 36px;
        font-size: 14px;
        background: #333;
        color: white;
        border: 2px solid #333;
        margin-bottom: 0 !important;
    }
    
    .contact-section {
        margin-top: clamp(-180px,-15vw,-200px);
    }

/* Section menus COLLÉE */
.menu-section {
    padding-top: clamp(15px, 4vw, 40px) !important;
    margin-top: 0 !important;
}

.menu-modal,
.lightbox {
    padding: 20px;
}

.menu-modal-image {
    max-height: 85vh;
}

    .section-header {
        margin-top: 0 !important;
        margin-bottom: clamp(20px, 6vw, 50px) !important;
    }
}
