/* César Catering - Charte originale + Grille Instagram */

@import url('https://fonts.googleapis.com/css2?family=Old+Standard+TT:ital,wght@0,400;0,700;1,400&display=swap');

body, ul, li {
    padding: 0;
    margin: 0;
}

body {
    margin: 0;
    -webkit-user-select: none;
    -webkit-text-size-adjust: none;
    font-family: 'Old Standard TT', serif;
    background-color: #fff7ee;
    color: #7f2629;
    font-size: 16px;
    line-height: 26px;
}

/* Links */
a {
    color: #7f2629;
    text-decoration: none;
    position: relative;
}

a:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 1.5px;
    bottom: -1px;
    left: 0;
    background-color: #7f2629;
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out 0s;
}

a:hover:before {
    visibility: visible;
    transform: scaleX(1);
}

/* Logo */
.cc-logo {
    position: absolute;
    left: 50px;
    top: 50px;
    text-align: center;
    height: 100px;
    width: 120px;
}

.cc-logo img {
    filter: invert(17%) sepia(44%) saturate(3639%) hue-rotate(337deg) brightness(79%) contrast(87%);
}

/* Navigation */
.cc-nav {
    font-size: 15pt;
    line-height: 7.5mm;
    letter-spacing: -0.1pt;
    font-weight: 400;
    height: 100px;
    width: auto;
    top: 50px;
    right: 50px;
    position: absolute;
    text-align: right;
    -webkit-text-stroke-width: 0.5px;
    -webkit-text-stroke-color: #7f2629;
}

/* Content */
#cc-content {
    width: 100%;
    height: auto;
    top: 200px;
    position: absolute;
}

/* About Section - Accordéon */
#cc-about {
    height: 0;
    overflow: hidden;
    transition: height 300ms ease-in-out;
    z-index: 2;
}

#cc-about.visible {
    height: 250px;
}

.about-text {
    padding: 50px 50px 25px 50px;
    max-width: 40%;
    text-align: left;
}

/* Shop Section - Accordéon */
#cc-shop {
    height: 0;
    overflow: hidden;
    transition: height 300ms ease-in-out;
    z-index: 2;
    text-align: center;
}

#cc-shop.visible {
    height: 550px;
}

.shop-content {
    padding: 50px;
}

.logocap {
    display: block;
    margin: 0 auto 20px;
    width: 35%;
    max-width: 300px;
}

.order-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    border: 2px solid #7f2629;
    color: #7f2629;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.order-btn:hover {
    background: #7f2629;
    color: #fff7ee;
}

/* Gallery - Instagram Style (3 colonnes, carré, sans gap) */
#cc-gallery {
    padding: 0;
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
    margin: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Responsive - Mobile */
@media only screen and (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 22px;
    }
    
    .cc-logo {
        left: 20px;
        top: 20px;
        height: 70px;
        width: auto;
    }
    
    .cc-logo img {
        height: 70px;
        width: auto;
    }
    
    .cc-nav {
        font-size: 11pt;
        line-height: 5.5mm;
        top: 20px;
        right: 20px;
        -webkit-text-stroke-width: 0.3px;
    }
    
    #cc-content {
        top: 130px;
    }
    
    #cc-about.visible {
        height: auto;
        min-height: 200px;
    }
    
    #cc-shop.visible {
        height: auto;
        min-height: 400px;
    }
    
    .about-text {
        padding: 20px;
        max-width: 100%;
        font-size: 14px;
        line-height: 22px;
    }
    
    .shop-content {
        padding: 20px;
    }
    
    .logocap {
        width: 70%;
        max-width: 250px;
    }
    
    .order-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Grille 3 colonnes sur mobile aussi */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
