/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
    --font-primary: 'Montserrat', sans-serif;
    --color-text: #1a1a1a;
    --color-text-light: #555555;
    --color-bg: #ffffff;
    --color-live-red: #ea3256;
    --color-video-bg: #1e1e1e;
    --color-dot-red: #ff5f56;
    --color-dot-yellow: #ffbd2e;
    --color-dot-green: #27c93f;
    --color-link: #2980b9;
    --spacing-unit: 1rem;
}

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

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(to bottom right, #ffffff 60%, #f0f4ee 100%);
}

.wrapper{
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logos {
    display: flex;
    align-items: flex-start;
    gap: calc(1rem / 1.5);
}

.header__logo--corporate {
    width: calc(60px / 1.5);
    height: auto;
}

.header__logo--generations {
    width: calc(250px / 1.5);
    height: auto;
    margin-top: calc(1rem / 1.5);
}

.header__live--desktop {
    display: none; /* Caché sur mobile */
}

/* ==========================================================================
   Main Content & Hero
   ========================================================================== */
.main-content {
    flex-grow: 1;
    padding: 2rem 0rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hero__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero__subtitle {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

@keyframes pulse-live {
    0% { opacity: 1; }
    50% { opacity: 0.2; }
    100% { opacity: 1; }
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse-live 1.5s infinite ease-in-out;
    transform: translateY(-1px);
}

.header__live--desktop.is-hidden-before-live,
.hero__live--mobile.is-hidden-before-live {
    display: none;
}

.live-dot--white { background-color: white; }
.live-dot--red { background-color: var(--color-live-red); }

.hero__live--mobile {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-live-red);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.video-section {
    width: 100%;
    max-width: 1200px;
}

.video-container {
    position: relative;
    background-color: var(--color-video-bg);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.video-container__leaf {
    position: absolute;
    top: -25px;
    left: -20px;
    width: 30px;
    height: auto;
    z-index: 10;
    opacity: 0;
    transform: rotate(5deg);
    animation: fallingLeaf 3.5s ease-in-out 0.5s forwards;  
}

@keyframes fallingLeaf {
    0% {
        opacity: 0;
        transform: translate(80px, -200px) rotate(-50deg); 
    }
    15% {
        opacity: 1;
    }
    40% {
        transform: translate(-70px, -80px) rotate(35deg);
    }
    75% {
        transform: translate(50px, -30px) rotate(-25deg);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(5deg); 
    }
}

.video-container__iframe {
    width: 100% ;
    aspect-ratio: 16 / 9;    
    display: block;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

/* ==========================================================================
   Mentions Légales
   ========================================================================== */
.legal {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.legal__back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: #888888;
    text-decoration: none;
    font-weight: 700;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.4s ease;
}

.legal__back-icon {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.legal__back-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000000;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.4s ease;
}

.legal__title {
    font-size: 2rem;
    font-weight: 700;
    border-bottom: 2px solid var(--color-text);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.legal__version {
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.legal__subtitle {
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 5px solid var(--color-text);
    padding-left: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.legal__sub-subtitle {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.legal__heading-small {
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: 700;
}

.legal__text {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.legal__link {
    color: var(--color-link);
    text-decoration: underline;
}

.legal__list {
    list-style-type: none;
    margin-bottom: 20px;
}

.legal__list-item {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
    line-height: 1.6;
}

.legal__list-item::before {
    content: "-";
    position: absolute;
    left: 0;
    color: var(--color-link);
}

.legal__divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 40px 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.footer__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem; /* Un espace précis */
    color: var(--color-text-light);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.4s ease;
}

.footer__link-icon {
    width: 14px;
    height: 14px;
    stroke: currentColor; 
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-text);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.4s ease;
}

.footer__copyright{
    text-align: center;
}

.footer__socials {
    display: flex;
    gap: 1.5rem;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer__social-icon {
    width: 24px;
    height: 24px;
    filter: grayscale(100%) opacity(0.5); 
    transition: filter 0.4s ease;
}

/* ==========================================================================
   Media Queries (Desktop)
   ========================================================================== */
@media screen and (min-width: 768px) {

    .header__logos {
        gap: 1rem;
    }

    .header__logo--corporate {
        width: 45px;
        height: auto;
        max-height: none;
    }

    .header__logo--generations {
        margin-top: 1rem;
        width: 180px;
        max-height: none;
        height: auto;
    }

    .hero__title {
        font-size: 2.8rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }

    .hero__live--mobile {
        display: none;
    }

    .video-container__leaf{
        width: 35px;
        top: -28px;
        left: -25px;
    }

    .header__live--desktop {
        display: flex;
        align-items: center;
        color: var(--color-live-red);
        font-weight: 700;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }

    .footer {
        max-width: 1200px;
        flex-direction: row;
        justify-content: space-between;
        padding: 2rem 0rem 2rem 0rem;
    }
}

@media (hover: hover) {

    .legal__back-btn:hover {
        color: #000000;
    }

    .legal__back-btn:hover .legal__back-icon {
        transform: translateX(-6px);
    }

    .legal__back-btn:hover::after {
        transform: scaleX(1);
        transform-origin: bottom left;
    }

    .footer__social-link:hover {
        transform: translateY(-5px); 
    }

    .footer__social-link:hover .footer__social-icon {
        filter: grayscale(100%) opacity(1) brightness(0); 
    }

    .legal__link:hover {
        text-decoration: none;
    }

    .footer__link:hover {
        color: var(--color-text);
    }

    .footer__link:hover .footer__link-icon {
        transform: translate(3px, -3px); 
    }

    .footer__link:hover::after {
        transform: scaleX(1);
        transform-origin: bottom left;
    }
}