@charset "utf-8";
/************************
           ______________________________________
  ________|                                      |_______
  \       |     ..ooOO Vincent Corlaix OOoo..    |      /
  \      |      --[ Style Modernisé ]--         |     /
   /      |______________________________________|     \
  /__________)                                (_________\

Mise à jour : 2024 (Modernisation)
Original : 23/03/2019

************************/

@import url('https://fonts.googleapis.com/css?family=Alegreya+Sans:900');

/* Modern Reset */
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}
*, *:before, *:after {
    box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
    margin: 0;
    padding: 0;
}

/* Base Styles */
html, body {
    height: 100%;
    margin: 0;
}

body {
    background-image: linear-gradient(to right, #b0b0b0, #b0b0b0 50%, #fff 50%, #fff);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: sans-serif; /* Fallback */
    overflow-x: hidden;
}

img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* Layout Main Container */
#conteneur {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

/* Columns */
.ga, .dr {
    flex: 1; /* Equal width logic base */
    width: 34%; /* Approximate original width */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Aligné au centre verticalement */
}

.ce {
    flex: 0 0 30%; /* Fixed 30% width like original */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Aligné au centre verticalement */
}

/* Easter Egg Pi */
#twoK {
    position: absolute;
    top: 5px;
    left: 5px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1rem;
    z-index: 100;
}

#twoK a {
    color: #000;
    text-decoration: none;
    padding: 5px;
}
#twoK a:hover {
    cursor: not-allowed;
}

/* Specific Image Styling */
.ce img {
    width: 100%;
    max-width: 400px;
}

.ga img, .dr img {
    width: 80%;
    margin-bottom: 2rem;
}

/* Typography */
.grotitre {
    font-family: 'Alegreya Sans', sans-serif;
    text-align: center;
    font-size: clamp(2rem, 4vw, 4em); /* Fluid font size */
    text-transform: uppercase;
    margin: 0.25em 0;
    color: #000;
    line-height: 1.1;
}

/* Buttons */
.bouton {
    width: 80%;
    max-width: 300px;
    margin: 10px auto;
}

.joliBouton {
    color: #fff !important;
    text-transform: uppercase;
    background: #434343;
    letter-spacing: 3px;
    padding: 20px;
    border-radius: 5px;
    display: inline-block;
    border: none;
    font-family: 'Alegreya Sans', sans-serif;
    width: 100%;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease 0s;
    cursor: pointer;
    font-weight: 700;
}

.joliBouton:hover {
    background: #ed3330;
    letter-spacing: 5px;
    box-shadow: 5px 40px -10px rgba(0,0,0,0.57);
    transition: all 0.4s ease 0s;
}

/* Scroll chevron arrow */
@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.scroll-btn {
    display: inline-block;
    margin-top: 1.5rem;
    color: #434343; /* same as joliBouton */
    animation: bounceDown 2s infinite;
    transition: color 0.3s ease;
}

.scroll-btn:hover {
    color: #ed3330;
}

/* Newsletter Section */
.newsletter-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 2rem 1rem;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

/* Hidden Utils */
.ml-embedded {
    display: none;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    body {
        /* Vertical Split: Top Grey, Bottom White */
        background-image: linear-gradient(to bottom, #b0b0b0, #b0b0b0 50%, #fff 50%, #fff);
        background-size: 100% 100%;
        background-attachment: fixed; /* Keeps background fixed/full height */
        height: auto;
        min-height: 100vh;
    }

    #conteneur {
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    .ga, .ce, .dr {
        flex: 0 0 auto;
        width: 100%;
        padding: 2rem 1rem;
    }

    .ce {
        order: -1; /* Logo first on mobile */
        padding-top: 2rem;
        flex-basis: auto;
    }
    
    .grotitre {
        font-size: 3rem;
    }

    .bouton {
        width: 100%;
    }
}
