/* ============================================
   BELLAIRES - MAIN STYLESHEET
   ============================================ */

/* ============================================
   GLOBAL STYLES
   ============================================ */

:root {
    --color-primary: #D4916C;
    --color-primary-dark: #B67758;
    --color-text: #272424;
    --color-text-light: #666666;
    --color-bg-light: #F8F8F8;
    --color-white: #FFFFFF;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}


body {
    overflow-x: hidden;
    color: var(--color-text);
    background-color: var(--color-white);
}

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

.hero-section {
    position: relative;
    text-align: center;
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.10);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 22%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.0rem);
    font-weight: 400;
    color: var(--color-white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
    line-height: 1.3;
}

/* ============================================
   LANGUAGE SELECTOR
   ============================================ */

.language-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.lang-btn {
    background: #8f8f8f76;
    border: 0px solid var(--color-white);
    color: var(--color-white);
    padding: 0.5rem 1.2rem;
    font-family: 'Arboria', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

.lang-btn:hover {
    background: var(--color-white);
    color: var(--color-text);
    transform: translateY(-2px);
}

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

.lang-separator {
    color: var(--color-white);
    font-size: 1.2rem;
    opacity: 0.7;
}

/* ============================================
   PRESENTATION SECTION
   ============================================ */

.presentation-section {
    padding: 5rem 2rem 0;
    /*background-color: var(--color-bg-light);*/
}

.presentation-text {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 2rem;
    text-align: justify;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.presentation-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.presentation-text:nth-child(2) {
    transition-delay: 0.2s;
}

.presentation-text:nth-child(3) {
    transition-delay: 0.4s;
}

/* ============================================
   CATALOGUES & CONTACT SECTION - MASONRY GRID
   ============================================ */

.catalogues-section {
    padding: 5rem 2rem;
    background-color: var(--color-white);
    max-width: 800px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Masonry Items - Layout Bootstrap 2 colonnes */
.masonry-item {
    position: relative;
    overflow: hidden;   
    /*box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);*/
    transition: var(--transition);
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Item 1 : Logo - hauteur fixe */
.masonry-item.item-1 {
    /*min-height: 400px;*/
}

.masonry-item.item-1 img {
    height: 100%;
    object-fit: cover;
}

/* Item 4 : Contact - hauteur fixe */
.masonry-item.item-4 {
     /*min-height: 400px;*/
    background-color: #e49262;
}

.masonry-item.item-4 img {
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

/* Catalogue Links */
.catalogue-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Pour items 2 et 3, le lien s'adapte à la hauteur de l'image */
.masonry-item.item-2 .catalogue-link,
.masonry-item.item-3 .catalogue-link {
    height: auto;
    display: flex;
    flex-direction: column;
}

/* Overlay for text */
.overlay {
    position: absolute;
    color: var(--color-white);
    padding: 1rem;
    /*text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);*/
    z-index: 2;
}



.item-2 .overlay {
    color: var(--color-text);
     text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.5);
}

.overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
   /*background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 50%);*/
    background: transparent;
    z-index: -1;
}

.top-right {
    top: 0;
    right: 0;
    text-align: right;
}

.bottom-left {
    bottom: 0;
    left: 0;
    text-align: left;
}



.bottom-right {
    bottom: 0;
    right: 0;
    text-align: right;
}
/* Catalogue Titles */
.catalogue-title {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0; 
    font-family: 'Arboria', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;   
}

.catalogue-title b {   
    font-weight: 600;
    letter-spacing: 1px;
}

/* Contact Title in Overlay */
.overlay .contact-title {
    font-size: 1.8rem;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0rem;
    text-align: right;
    font-family: 'Arboria', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Contact Info in Overlay */
.overlay .contact-info {
    font-size: 1.3rem;
    line-height: 1.5;
}

.overlay .contact-info p {
    margin-bottom: 0;  
   
}

.overlay .contact-company { 
    margin-bottom: 0;  
    
}

.overlay .contact-phone a, .overlay .contact-email a  {
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition);
}

.overlay .contact-phone a:hover, .overlay .contact-email a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

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

.bottom-hero-section {
    position: relative;
    min-height: 40vh;
    background-image: url('../images/Swimming-pool-and-Palmarola-sunbe_v2.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Fallback */
/*
.bottom-hero-section:not([style*="background-image"]) {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23808080" width="1200" height="600"/></svg>');
}*/

.bottom-hero-title {
    font-size: clamp(1.2rem, 3.8vw, 2.0rem);
    font-weight: 400;
    color: var(--color-white);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
}

/* ============================================
   FOOTER
   ============================================ */

.footer-section {
    background-color: var(--color-bg-light);
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--color-text);
    color: var(--color-white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    background-color: var(--color-primary);
    transform: translateY(-5px) scale(1.1);
}

.footer-info {
    border-top: 1px solid #d0d0d0;
    padding-top: 1.5rem;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
}

.footer-separator {
    margin: 0 1rem;
}

.footer-link {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ============================================
   MODAL STYLES
   ============================================ */

.modal-content {
    border-radius: 8px;
}

.modal-header {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-bottom: none;
}

.modal-title {
    font-weight: 700;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body h6 {
    color: var(--color-primary);
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-body h6:first-child {
    margin-top: 0;
}

.modal-footer {
    border-top: none;
}

.modal-footer .btn-secondary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.modal-footer .btn-secondary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

/* ============================================
   FADE-IN ANIMATION
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.4rem;
    }

     .hero-content {       
    top: 35%;   
    width: 80%;
    }

}





@media (max-width: 768px) {
    .hero-title {
        font-size: 1.4rem;
    }

    .presentation-section {
        padding: 3rem 1.5rem 1rem;
    }

    .presentation-text {
        text-align: left;
        font-size: 1rem;
    }

    .catalogues-section {
        padding: 3rem 1.5rem;
    }

    /* Sur mobile, item 1 et 4 gardent une hauteur minimale réduite */
    .masonry-item.item-1,
    .masonry-item.item-4 {
        min-height: 300px;
    }

    .catalogue-title {
        font-size: 1.5rem;
    }

    .overlay .contact-title {
        font-size: 1.8rem;
    }

    .overlay {
        padding: 1.5rem;
    }

    .overlay .contact-info {
        font-size: 1.2rem;
    }

    .bottom-hero-title {
        font-size: 1.0rem;
        padding: 0 1rem;
    }

    .social-icons {
        gap: 1rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-text {
        font-size: 0.8rem;
    }

    .footer-separator {
        /*display: block;*/
        margin: 0.5rem 0;
    }
}

@media (max-width: 576px) {
    .bottom-hero-section {
        background-attachment: scroll;
        min-height: 28vh;
        background-size: 200%;
    }

    .hero-content {       
    top: 42%;    
    width: 80%;
    }

    .bottom-hero-section  .hero-content {
        padding: 0.5rem;
    }


    .hero-overlay {
       background: rgba(0, 0, 0, 0.20);
    }

    .language-selector {
        flex-wrap: wrap;
    }

    .lang-btn {
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }
    .intro-text {
    font-size: 0.8rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .hero-section {
        page-break-inside: avoid;
    }
    .bottom-hero-section {
        background-attachment: scroll;
        page-break-inside: avoid;
    }

    .language-selector,
    .social-icons {
        display: none;
    }
}
