/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Tahoma, sans-serif;
    background: #050b14;
    color: #ffffff;
    line-height: 1.8;
    overflow-x: hidden;
}


/* =========================================================
   GLOBAL
========================================================= */

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

img,
video {
    max-width: 100%;
}

.title {
    text-align: center;
    font-size: clamp(30px, 4vw, 42px);
    margin-bottom: 60px;
    font-weight: 800;
}

.text {
    max-width: 900px;
    margin: 0 auto 30px;
    text-align: center;
    color: #b8c2d1;
    font-size: 18px;
}


/* =========================================================
   HEADER
========================================================= */

header {
    width: 100%;
    min-height: 85px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 5%;

    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(5, 11, 20, 0.92);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
    font-size: 30px;
    font-weight: 900;
    color: #1f8fff;
    white-space: nowrap;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
    flex-wrap: wrap;
}

nav a {
    color: #d9e2f0;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #1f8fff;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    width: 92%;
    max-width: 1200px;

    min-height: calc(100vh - 85px);

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 70px;

    padding: 70px 0;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

.hero-text h1 {
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.15;
    margin-bottom: 25px;
}

.hero-text p {
    max-width: 650px;
    color: #b8c2d1;
    font-size: clamp(16px, 1.5vw, 19px);
}

.hero-image {
    width: min(40%, 440px);
    flex-shrink: 0;
}

.hero-image video {
    display: block;

    width: 100%;

    /*
       On limite la hauteur pour éviter
       que la vidéo devienne trop imposante.
    */
    height: 360px;

    object-fit: cover;

    border-radius: 18px;

    background: #000;
}


/* =========================================================
   BUTTONS
========================================================= */

.buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 35px;
}

.btn {
    display: inline-block;

    padding: 14px 32px;

    border-radius: 50px;

    font-weight: bold;

    text-align: center;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.primary {
    background: #1f8fff;
    color: #ffffff;
}

.primary:hover {
    background: #006edc;
    transform: translateY(-3px);
}

.secondary {
    border: 1px solid #1f8fff;
    color: #1f8fff;
}

.secondary:hover {
    background: #1f8fff;
    color: #ffffff;
}


/* =========================================================
   SERVICES
========================================================= */

#services {
    padding: 100px 0;
}

.services-list {
    max-width: 900px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 50px;
}

.services-list div {
    padding: 15px 0 25px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.services-list h3 {
    font-size: 25px;
    margin-bottom: 15px;
    color: #1f8fff;
}

.services-list p {
    color: #b8c2d1;
}


/* =========================================================
   SERVICES TEXT
========================================================= */

.services-text {
    max-width: 900px;
    margin: 0 auto;
}

.services-text h3 {
    margin-top: 40px;
    margin-bottom: 10px;
    font-size: 25px;
    color: #1f8fff;
}

.services-text p {
    margin-top: 10px;
    color: #b8c2d1;
}


/* =========================================================
   ABOUT
========================================================= */

#apropos {
    padding: 100px 0;
}


/* =========================================================
   CONTACT
========================================================= */

#contact {
    padding: 100px 0;
}

.contact-box {
    text-align: center;
}

.contact-box h2 {
    font-size: clamp(32px, 4vw, 40px);
    margin-bottom: 20px;
}

.contact-box p {
    color: #b8c2d1;
    margin-bottom: 30px;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    padding: 30px 0;

    text-align: center;

    color: #8994a5;
}


/* =========================================================
   WHATSAPP
========================================================= */

.whatsapp {
    position: fixed;

    right: 30px;
    bottom: 30px;

    width: 60px;
    height: 60px;

    border-radius: 50%;

    background: #25d366;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);

    z-index: 200;
}


/* =========================================================
   PETIT PC / TABLETTE LARGE
   1000px
========================================================= */

@media (max-width: 1000px) {

    header {
        padding: 18px 4%;
    }

    nav {
        gap: 20px;
    }

    .hero {
        gap: 40px;
    }

    .hero-image {
        width: min(40%, 380px);
    }

    .hero-image video {
        height: 320px;
    }

    .services-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}


/* =========================================================
   TABLETTE
   768px
========================================================= */

@media (max-width: 768px) {

    header {
        min-height: auto;

        flex-direction: column;

        justify-content: center;

        gap: 15px;

        padding: 20px;
    }

    nav {
        justify-content: center;
        gap: 15px 22px;
    }

    .hero {
        min-height: auto;

        flex-direction: column;

        text-align: center;

        gap: 40px;

        padding: 55px 0 70px;
    }

    .hero-text {
        width: 100%;
    }

    .hero-text p {
        margin: 0 auto;
        max-width: 650px;
    }

    /*
       La vidéo passe sous le texte
       sur tablette et smartphone.
    */
    .hero-image {
        order: 2;

        width: min(80%, 420px);

        margin: 0 auto;
    }

    .hero-image video {
        width: 100%;
        height: 300px;
    }

    .buttons {
        justify-content: center;
    }

    .title {
        margin-bottom: 45px;
    }

    #services,
    #apropos,
    #contact {
        padding: 80px 0;
    }
}


/* =========================================================
   SMARTPHONE
   480px
========================================================= */

@media (max-width: 480px) {

    body {
        font-size: 15px;
    }

    .container,
    .hero {
        width: 92%;
    }

    header {
        padding: 16px;
    }

    .logo {
        font-size: 25px;
    }

    nav {
        width: 100%;

        gap: 10px 16px;

        justify-content: center;
    }

    nav a {
        font-size: 14px;
    }

    .hero {
        gap: 30px;
        padding: 40px 0 55px;
    }

    .hero-text h1 {
        font-size: 31px;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 16px;
        line-height: 1.7;
    }

    /*
       Vidéo plus petite sur téléphone.
    */
    .hero-image {
        width: 88%;
        max-width: 340px;
    }

    .hero-image video {
        width: 100%;
        height: 220px;
        border-radius: 14px;
    }

    .buttons {
        width: 100%;

        flex-direction: column;

        gap: 12px;

        margin-top: 28px;
    }

    .btn {
        width: 100%;
        padding: 13px 25px;
    }

    .title {
        font-size: 29px;
    }

    .text {
        font-size: 16px;
    }

    .services-text h3 {
        font-size: 22px;
    }

    .services-text p {
        font-size: 16px;
    }

    .services-list {
        gap: 20px;
    }

    .services-list h3 {
        font-size: 22px;
    }

    .services-list p {
        font-size: 16px;
    }

    .contact-box h2 {
        font-size: 32px;
    }

    footer {
        font-size: 14px;
    }

    .whatsapp {
        width: 55px;
        height: 55px;

        right: 18px;
        bottom: 18px;

        font-size: 26px;
    }
}


/* =========================================================
   TRÈS PETITS SMARTPHONES
   360px
========================================================= */

@media (max-width: 360px) {

    .logo {
        font-size: 23px;
    }

    nav {
        gap: 8px 12px;
    }

    nav a {
        font-size: 13px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-image {
        width: 94%;
    }

    .hero-image video {
        height: 200px;
    }

    .title {
        font-size: 27px;
    }

    .whatsapp {
        width: 52px;
        height: 52px;

        right: 15px;
        bottom: 15px;
    }
}
/* =========================================================
   VIDEO PREVIEW
========================================================= */

.video-preview {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.video-preview video {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 18px;
    background: #000;
}

/* Petite indication que la vidéo est cliquable */

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 55px;
    height: 55px;

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.65);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;

    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-preview:hover .video-overlay {
    opacity: 1;
}


/* =========================================================
   VIDEO MODAL
========================================================= */

.video-modal {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.92);

    display: none;

    align-items: center;
    justify-content: center;

    padding: 30px;

    z-index: 9999;
}

.video-modal video {
    width: min(90vw, 1100px);
    max-height: 85vh;

    object-fit: contain;

    border-radius: 12px;
}


/* Bouton fermer */

.video-close {
    position: absolute;

    top: 25px;
    right: 30px;

    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);

    color: white;

    font-size: 22px;

    cursor: pointer;

    z-index: 10000;
}

.video-close:hover {
    background: rgba(255, 255, 255, 0.25);
}


/* =========================================================
   SMARTPHONE
========================================================= */

@media (max-width: 768px) {

    .video-preview video {
        height: 300px;
    }

    .video-overlay {
        opacity: 1;
    }

    .video-modal {
        padding: 15px;
    }

    .video-modal video {
        width: 100%;
        max-height: 75vh;
    }

    .video-close {
        top: 15px;
        right: 15px;

        width: 45px;
        height: 45px;
    }

}


@media (max-width: 480px) {

    .video-preview video {
        height: 220px;
        border-radius: 14px;
    }

    .video-modal video {
        width: 100%;
        max-height: 70vh;
    }

}