@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/* Raleway Fonts
@font-face {
    font-family: 'Raleway';
    src: url('http://sos-mediterranee.agencebastille.com/encarts/fonts/Raleway-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Raleway';
    src: url('http://sos-mediterranee.agencebastille.com/encarts/fonts/Raleway-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
*/


.hide-desktop { display:none; }
.campagne-encart-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 70vw;
    z-index:50;
}
.campagne-encart-wrapper::before {
    content:'';
    width: 200vw;
    height:200vh;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index:-1;
    transform : translateX(-50%) translateY(-50%);
    background-color: #121212;
    opacity:.8;
}
.campagne-encart{
    position: relative;
    background-image: url("http://sos-mediterranee.agencebastille.com/encarts/images/bg2.jpg");
    background-position: center center;
    background-size: cover;
}
.campagne-encart::before {
// content: '';
    background: #0F1840DD;
    width:100%;
    height:100%;
    position:absolute;
    top:0;
    left:0;
}

/* Dark overlay for better text contrast */
.encart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Content Area */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 10vh 1.5rem;
}

/* Main Headline */
.headline {
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 1%;
}

.headline .title {
    width: 80%;
    max-width:95vh;
    margin: 0 auto;
}

/* Boat Image */
.boat-image {
    margin: 0;
}

.boat-image img {
    height: clamp(80px, 10vh, 120px);
    width: auto;
}

/* CTA Button */
.cta-button {
    background-color: #E8673F;
    color: #FFFFFF;
    padding: 1.5rem 3rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    max-width: 60%;
}

.cta-button img{
    width:100%;
    max-width: 520px;
}

.cta-button:hover {
    background-color: #d4562e;
}
.cta-content{
    transform: translateY(5%);
}

/* Tax Reduction Text */
.tax-info {
    color: #FFFFFF;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 2.5vw, 32px);
    text-align: center;
}

/* Footer Bar */
.footer-bar {
    background-color: #E8673F;
    padding: 15px 40px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-bar p {
    color: #FFFFFF;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 3vh, 42px);
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .hide-desktop { display:initial; }
    .hide-mobile {
        display:none;
    }

    .campagne-encart-wrapper {
        width: 90vw;
        height:95vh;
        left:5vw;
        top:2.5vh;
        transform: none;
    }

    .campagne-encart {
        height: 95vh;
        display: flex;
        flex-direction: column;
    }

    .content{
        padding: 2rem;
    }

    .headline .title {
        width:90%
    }

    .cta-button{
        max-width: 100%;
        padding: 4vw 8vw;
    }
    .cta-content {
        transform: none;
        text-align: center;
    }

    .cta-content img{
        min-width:120px;
        line-height: 100%;
    }

    .boat-image img {
        height: clamp(60px, 8vh, 80px);
        margin: 1rem 0;
    }

    .footer-bar {
        padding: 20px;
        margin-top: auto;
        line-height: 1.2;
    }

    .footer-bar p {
        font-size: clamp(20px, 2vw, 28px);
    }
}

@media (max-width: 480px) {
    .headline h1 {
        font-size: clamp(32px, 14vw, 60px);
    }

    .tax-info {
        font-size: clamp(16px, 4vw, 24px);
    }
}

/* Close button (optional) */
.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.close-button::before, .close-button::after{
    content: '';
    width:70%;
    height:2px;
    background-color: #FFFFFF;
    transform-origin: 50% 50%;
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
    position: absolute;
    top: 50%;left:50%;
}

.close-button::before{
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
}

.close-button::after{
    transform: translateX(-50%) translateY(-50%) rotate(-45deg);
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.3);
}