
:root {
    --blue-dark: #1f3966;
    --blue-light: #67bfff;
    --page-bg: #e2ecfa;
    --white: #ffffff;
    --text: #ffffff;
    --content-width: 1120px;
    --header-height: 112px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #d7e5ef;
    color: var(--blue-dark);
    font-family: Arial, Helvetica, sans-serif;
}

img {
    display: block;
    max-width: 100%;
}
 
a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin-inline: auto;   /* centre horizontalement sans transform */
    width: min(var(--content-width), calc(100% - 64px));
    background: var(--page-bg);
    /* plus de transform ici */
    z-index: 1000;
}
.header-top {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;

}

.header-socials,
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-socials a,
.header-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-dark);
    font-weight: 800;
    font-size: 18px;
}

.header-name {
    font-weight: 800;
    font-size: 16px;
    text-align: center;
}

.navbar {
    height: 56px;
    background: var(--blue-dark);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 14px;

}

.navbar a {
    color: var(--white);
    font-weight: 800;
    font-size: 15px;
    padding: 18px 12px;
    transition: color .2s ease;
}

.navbar a:hover,
.navbar a.active {
    color: var(--blue-light);
}

main {
    width: min(var(--content-width), calc(100% - 64px));
    margin: 127px auto 0;
    padding-top: 0px;
}

.hero {
    position: relative;
    height: 480px;
    overflow: hidden;
    margin-bottom: 10px;
    
}

.hero-caption {
    position: absolute;
    left: 0;
    bottom: 82px;
    width: 330px;
    padding: 18px 16px;
    background: var(--blue-dark);
    color: var(--white);
}

.hero-caption h1 {
    margin: 0 0 12px;
    font-size: 18px;
}

.hero-caption p {
    margin: 0;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 700;
}

.section-title {
    margin: 40px 0px 40px;
    font-size: 25px;
}

.news-slider {
    position: relative;
    height: 450px;
    margin-bottom: 24px;
}

.news-track {
    position: relative;
    height: 100%;
    overflow: hidden;
}
.news-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .45s ease;
}

.news-slide.active {
    opacity: 1;
}

.news-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-overlay {
    position: absolute;
    left: 0;
    bottom: 102px;

    /* au lieu de width: 400px; */
    width: clamp(260px, 40%, 400px);
    min-height: 215px;

    padding: clamp(18px, 3vw, 28px) clamp(20px, 4vw, 40px);
    box-sizing: border-box;

    background: var(--blue-dark);
    color: var(--white);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-overlay .date {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
}

.news-overlay h2 {
    margin: 0 0 22px;
    font-size: clamp(18px, 2.2vw, 26px);   /* le texte rétrécit avec le bloc */
    line-height: 1.15;
    font-weight: 800;
}

.news-overlay a {
    color: var(--white);

    text-decoration: underline;
    text-underline-offset: 5px;

    font-weight: 800;
    font-size: 16px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 56px;
    height: 56px;

    border: 1px solid #d8dee5;
    border-radius: 50%;

    background: #fff;
    color: var(--blue-dark);

    font-size: 36px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

    transition: all 0.25s ease;
}

.slider-arrow.prev {
    left: -28px;
}

.slider-arrow.next {
    right: -28px;
}

.slider-arrow:hover {
    background: var(--blue-light);
    color: #fff;
    border-color: var(--blue-light);

    transform: translateY(-50%) scale(1.05);
}


.slider-dots {
    position: absolute;

    left: 50%;
    bottom: 22px;

    transform: translateX(-50%);

    display: flex;
    gap: 10px;

    width: 320px;

    z-index: 10;
}

.slider-dot {
    position: relative;

    flex: 1;
    height: 7px;

    border: none;
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.9);

    padding: 0;
    overflow: hidden;

    cursor: pointer;
}

.slider-dot::after {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 0;
    height: 100%;

    background: var(--blue-light);

    border-radius: inherit;
}

.slider-dot.active::after {
    width: 100%;
}

.about-block,
.sport-block,
.project-block {
    background: #f7f9fb;
    color: var(--blue-dark);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.about-block {
    position: relative;

    min-height: 420px;
    margin-bottom: 70px;

    /* Le rectangle */
    padding: 55px 50% 55px 60px;

    /* Important : la photo peut dépasser */
    overflow: visible;

}

/* Le contenu texte */
.about-block > div {
    
    position: relative;
    z-index: 1;
}

/* La photo */
.about-block > img {
    position: absolute;

    /* Positionnement à droite du rectangle */
    right: 80px;
    top: 50%;

    transform: translateY(-50%);

    /* Carré */
    width: 430px;
    height: 450px;

    object-fit: cover;

    border-radius: 10px;

    /* La photo passe devant le rectangle */
    z-index: 2;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.sport-block {
    position: relative;

    min-height: 420px;
    margin-bottom: 0px;

    /* Le rectangle */
    padding: 55px 50% 55px 60px;

    /* Important : la photo peut dépasser */
    overflow: visible;
}

/* Le contenu texte */
.sport-block > div {
    
    position: relative;
    z-index: 1;
}

/* La photo */
.sport-block > img {
    position: absolute;

    /* Positionnement à LA GAUCHE du rectangle */
    left: 80px;
    top: 50%;

    transform: translateY(-50%);

    /* Carré */
    width: 430px;
    height: 450px;

    object-fit: cover;

    border-radius: 10px;

    /* La photo passe devant le rectangle */
    z-index: 2;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.project-block {
    position: relative;

    min-height: 420px;
    margin-bottom: 70px;
    margin-top: 70px;

    /* Le rectangle */
    padding: 55px 50% 55px 60px;

    /* Important : la photo peut dépasser */
    overflow: visible;
}

/* Le contenu texte */
.project-block > div {
    
    position: relative;
    z-index: 1;
}

/* La photo */
.project-block > img {
    position: absolute;

    /* Positionnement à droite du rectangle */
    right: 80px;
    top: 50%; 

    transform: translateY(-50%);

    /* Carré */
    width: 430px;
    height: 450px;

    object-fit: cover;

    border-radius: 10px;

    /* La photo passe devant le rectangle */
    z-index: 2;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.content-title {
    margin: 0 0 16px;
    font-size: 24px;
    color: var(--blue-dark);
    font-weight: 700;
}

.body-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.22;
    font-weight: 400;
    text-align: justify;
}

.sport-block {
    min-height: 360px;
    padding: 48px 48px 40px 52%;
    margin-bottom: 24px;
}
.cv-download {
    display: flex;
    justify-content: center;

    margin-bottom: 40px;
}

.cv-download a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 30px;

    background: var(--blue-dark);
    color: var(--white);

    border-radius: 8px;

    text-decoration: none;

    font-size: 15px;
    font-weight: 800;

    transition: all 0.25s ease;
}

.cv-download a:hover {
    background: var(--blue-light);

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.social-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.social-card {
    background: var(--white);
    min-height: 420px;
    border: 1px solid #d9dfe4;
    overflow: hidden;
}

.social-card-inner {
    padding: 14px;
}

.social-platform {
    color: var(--blue-dark);
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 10px;
}

.social-placeholder {
    height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    color: #66717f;
    background: #f5f6f7;
}

.site-footer {
    width: 100%;
    background: var(--blue-dark);
    color: var(--white);
}

.footer-inner {
    width: min(var(--content-width), calc(100% - 64px));
    margin: 0 auto;
}

.footer-contact {
    height: 58px;
    background: var(--page-bg);
    color: var(--blue-dark);
    border-top: 4px solid var(--blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    font-weight: 800;
}

.footer-bottom {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    font-size: 12px;
    font-weight: 800;
}



.footer-lang {
    appearance: none;
    -webkit-appearance: none;

    border: none;
    background: transparent;

    color: inherit;

    font-family: inherit;
    font-size: inherit;
    font-weight: 700;

    cursor: pointer;

    padding: 4px 24px 4px 4px;

    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                      linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position:
        calc(100% - 10px) 50%,
        calc(100% - 5px) 50%;
    background-size:
        5px 5px,
        5px 5px;
    background-repeat: no-repeat;
}

.footer-lang:focus {
    outline: none;
}

.footer-lang option {
    background: var(--blue-dark);
    color: #ffffff;
}
.page-empty {
    min-height: 760px;
}

.page-title {
    background: var(--blue-dark);
    color: var(--white);
    padding: 36px 42px;
    margin-bottom: 24px;
}

.page-title h1 {
    margin: 0;
    font-size: 32px;
}
/* Responsive Styles */

.mobile-menu-toggle {
    display: none;
}


/* Fond sombre derrière le menu */

.menu-overlay {
    display: none;
}


@media (max-width: 800px) {

    /* =========================
       HERO
       Pour faire le dégradé sur la photo du hero, on met un fond sombre derrière le texte
       et on fait un dégradé sur ce fond sombre pour que le texte soit lisible
       et que le dégradé disparaisse progressivement vers le haut de la photo
       ========================= */

    .hero-caption {
        left: 0;
        bottom: 0;
        width: 100%;
        padding: 24px 20px 20px;
        background: linear-gradient(
            to top,
            rgba(31, 57, 102, 0.95) 0%,
            rgba(31, 57, 102, 0.75) 50%,
            rgba(31, 57, 102, 0) 100%
        );
        box-sizing: border-box;
    }
    /* =========================
       SLIDER
       Ce sont ces saletés de boutons qui dépassait du slider et qui faisaient que le slider était plus large que la page
       ========================= */
    .slider-arrow.prev {
        left: 0px;
    }

    .slider-arrow.next {
        right: 0px;
    }
        main {
        margin-top: 70px;
    }
    
/* Barre supérieure */

    .header-top {
        position: relative;

        display: flex;
        align-items: center;
        justify-content: space-between;
       
        padding: 12px 16px;
    }
    .site-header {
        z-index: 1000;
    }

    /* =========================
       BOUTON HAMBURGER
       ========================= */

    .mobile-menu-toggle {

        display: flex;

        width: 30px;
        height: 30px;

        padding: 0;

        border: none;
        background: transparent;

        flex-direction: column;
        justify-content: center;
        gap: 5px;

        cursor: pointer;

        z-index: 1500;
    }


    .mobile-menu-toggle span {

        display: block;

        width: 24px;
        height: 2px;

        background: var(--white);

        transition:
            transform 0.3s ease,
            opacity 0.3s ease;
    }


    /* Animation du hamburger en X */

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }


    /* =========================
       RÉSEAUX SOCIAUX
       ========================= */

    .header-socials {

        display: flex;

        align-items: center;

        gap: 12px;

        margin-left: auto;
        margin-right: 14px;
    }


    /* =========================
       NOM
       ========================= */

    .header-name {
        display: none;
    }


    /* =========================
       TÉLÉPHONE + EMAIL
       ========================= */

    .header-actions {

        display: flex;

        align-items: center;

        gap: 12px;

        margin-left: 0;
    }


    .header-socials a,
    .header-actions a {

        display: flex;

        align-items: center;
        justify-content: center;

        width: 24px;
        height: 24px;

        font-size: 15px;

        text-decoration: none;
    }


    /* =====================================================
       NAVIGATION MOBILE
       ===================================================== */

    .navbar {

        position: fixed;

        top: 0;
        left: 0;

        width: 80%;
        max-width: 360px;
        height: 100vh;

        z-index: 1499;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        justify-content: flex-start;

        gap: 0;

        padding-top: 80px;

        background: var(--blue-dark);

        transform: translateX(-100%);

        transition: transform 0.35s ease;

        overflow-y: auto;
    }


    /* Menu ouvert */

    .navbar.mobile-open {
        transform: translateX(0);
    }


    /* Liens */

    .navbar a {

        display: flex;

        align-items: center;
        justify-content: flex-start;

        width: 100%;

        box-sizing: border-box;

        padding: 20px 28px;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.18);

        color: var(--white);

        font-size: 16px;

        text-decoration: none;

        white-space: normal;
    }


    .navbar a:hover,
    .navbar a.active {

        background: rgba(255, 255, 255, 0.08);
    }


    /* =====================================================
       OVERLAY
       ===================================================== */

    .menu-overlay {

        position: fixed;

        inset: 0;

        z-index: 900;

        display: block;

        background: rgba(0, 0, 0, 0.55);

        opacity: 0;

        visibility: hidden;

        transition:
            opacity 0.35s ease,
            visibility 0.35s ease;
    }


    .menu-overlay.active {

        opacity: 1;

        visibility: visible;
    }

    .site-header,
    main {
        width: calc(100% - 24px);
    }

    .navbar {
        overflow-x: auto;
        justify-content: flex-start;
        gap: 8px;

       
    }

    .navbar a {
        white-space: nowrap;
        font-size: 13px;
    }

    .header-name {
        font-size: 12px;
    }

    .header-socials,
    .header-actions {
        gap: 9px;
    }

    .hero {
        height: 300px;
    }

    
    .social-section {
        grid-template-columns: 1fr;
    }

    .news-slider {
        height: 300px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 1000px) {

    .news-slider {
        height: auto;
    }

    .news-track {
        height: 460px; /* hauteur totale fixe : image + bloc texte */
    }

    .news-slide {
        display: flex;
        flex-direction: column;
        /* reste en position: absolute; inset: 0; pour garder le crossfade */
    }

    .news-slide img {
        position: static;
        flex: 0 0 240px;   /* hauteur fixe de l'image */
        width: 100%;
        height: 240px;
    }

    .news-overlay {
        position: static;   /* sort du positionnement absolu */
        width: 100%;
        flex: 1;             /* prend le reste de la hauteur */
        padding: 24px 28px;
    }

    .news-overlay h2 {
        font-size: 22px;   /* on fige une taille lisible ici */
    }

    .slider-arrow.prev {
        left: 0;
    }

    .slider-arrow.next {
        right: 0;
    }

    .slider-dots {
        bottom: 16px;
    }
}

@media (max-width: 1100px) {

    .about-block,
    .sport-block,
    .project-block {
        display: flex;
        flex-direction: column;
        padding: 40px;
        min-height: 0;
    }

    .about-block > img,
    .sport-block > img,
    .project-block > img {
        position: static;
        transform: none;

        width: 100%;
        height: 320px;

        margin-top: 24px;
    }
}