/* ================ BASE ================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background-color: #F8F9FA;
    padding-top: 70px;
}

/* ================ LAYOUT ================ */
/* Container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Section styles */
section {
    padding: 2rem 0;
}

@media (min-width: 768px) {
    section {
        padding: 3rem 0;
    }
}

/* ================ NAVBAR ================ */
.navbar {
    background-color: #0055A4;
    color: #DDE1E4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    height: 70px;
}

/* Logo */
.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Navigation links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #DDE1E4;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-links a:hover {
    color: #F8F9FA;
    transform: translateY(-2px);
    text-shadow: 0 2px 5px rgba(255, 255, 255, 0.3);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #F8F9FA;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.nav-links a.active::after {
    width: 100%;
}

/* Dropdown menu */
.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #0055A4;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 0 0 5px 5px;
    overflow: hidden;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: #DDE1E4;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile menu */
.menu-btn {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #DDE1E4;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Burger animation */
.menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ================ HERO SECTION AVEC VIDEO ================ */
.hero {
    position: relative;
    min-height: 70vh;
    padding-top: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Vidéo d'arrière-plan */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Overlay pour assombrir et flouter davantage */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 1.5rem;
    max-width: 800px;
    width: 100%;
    margin: auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero .hero-c1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.hero .hero-ico {
    width: 40px;
    height: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
}

/* Button styles améliorés */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    backdrop-filter: blur(4px);
    color: #F8F9FA;
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid white;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    background-color: #F8F9FA;
    border: 2px solid #2C2F33;
    color: #2C2F33;
    box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.8);
    text-shadow: none;
}

/* ================ RESPONSIVE STYLES POUR HERO ================ */
@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        margin-top: 1.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero .hero-c1 {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ================ ABOUT SECTION ================ */
.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    color: #2C2F33;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about .c1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    gap: 2rem;
    text-align: center;
}

.about h2 {
    font-weight: 700;
    font-size: 2rem;
    color: #0055A4;
    margin-bottom: 1rem;
}

.about p {
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
}

.c2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.c2 .text-c2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    padding: 0 1rem;
}

.c2 h3 {
    font-size: 1.5rem;
    color: #0055A4;
}

.c2 p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.c2 iframe {
    width: 100%;
    max-width: 600px;
    height: 400px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ================ SERVICES SECTION ================ */
.prestation {
    background-color: #0055A4;
    padding: 4rem 1rem;
}

.prestation-titre {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 5rem;
    color: black;
    font-weight: 700;
}

.img-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.img-container>div {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.prestation-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.prestation-img:hover {
    transform: scale(1.05);
}

.img-container p {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.5;
    color: black;
}

/* ================ FOOTER ================ */
.footer {
    background-color: #DDE1E4;
    color: #000;
    padding: 4rem 2rem 0;
    width: 100%;
    overflow: hidden;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
    padding-bottom: 3rem;
}

/* Footer logo */
.footer-logo {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: center;
    transition: transform 0.5s ease;
}

.footer-logo-img {
    width: 220px;
    height: auto;
    filter: brightness(0) saturate(100%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-logo:hover .footer-logo-img {
    transform: scale(1.08) rotate(-2deg);
    filter: brightness(0) saturate(100%) drop-shadow(0 4px 8px rgba(0, 85, 164, 0.3));
}

/* Footer navigation */
.footer-nav {
    flex: 1;
    max-width: 220px;
    padding: 0 1rem;
}

.footer-nav h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #0055A4;
    font-weight: 600;
}

.nav-bar {
    width: 60px;
    height: 4px;
    background-color: #0055A4;
    margin-bottom: 1.5rem;
    transform-origin: left;
    transition: transform 0.4s ease, width 0.4s ease;
}

.footer-nav:hover .nav-bar {
    width: 80px;
    background-color: #003366;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 0.8rem;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.footer-nav li:hover {
    transform: translateX(8px);
}

.footer-link {
    color: #000;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    padding-bottom: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: #0055A4;
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #0055A4;
}

.footer-link:hover::after {
    width: 100%;
}

/* QR Code section */
.footer-qrcode {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: center;
    position: relative;
}

.qrcode-container {
    position: relative;
    display: inline-block;
    text-align: center;
    margin-bottom: 50px;
}

.qrcode-img {
    width: 250px;
    height: 250px;
    object-fit: contain;
    transition: all 0.5s ease;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 8px;
}

.qrcode-img:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: #0055A4;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.qrcode-text {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: #0055A4;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 6px;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.qrcode-text::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #0055A4;
}

.qrcode-img:hover+.qrcode-text,
.qrcode-container:hover .qrcode-text {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Footer bottom section */
.footer-separator {
    height: 1.5px;
    background-color: #000;
    width: 90%;
    margin: 0 auto;
    opacity: 0.2;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.8rem;
}

/* ================ RESPONSIVE STYLES ================ */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }

    .footer-content {
        gap: 3rem;
    }

    .footer-logo-img {
        width: 200px;
    }

    .qrcode-img {
        width: 200px;
        height: 200px;
    }

    .qrcode-text {
        font-size: 1rem;
        bottom: -40px;
        padding: 8px 16px;
    }
}

@media (max-width: 768px) {
    /* Mobile menu */
    .menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #0055A4;
        flex-direction: column;
        align-items: center;
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        z-index: 100;
    }

    .nav-links.active {
        max-height: 500px;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        padding: 1rem;
        display: flex;
        justify-content: center;
    }

    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* Services section */
    .img-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .img-container>div {
        max-width: 100%;
    }

    .prestation-titre {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .prestation-img {
        width: 120px;
        height: 120px;
    }

    /* Footer */
    .footer {
        padding: 3rem 1.5rem 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-nav {
        max-width: 100%;
        padding: 0;
    }

    .nav-bar {
        margin: 0 auto 1.5rem auto;
    }

    .footer-logo,
    .footer-qrcode {
        min-width: 100%;
    }

    .footer-logo-img {
        width: 180px;
    }

    .qrcode-img {
        width: 180px;
        height: 180px;
    }

    .qrcode-text {
        bottom: -35px;
        font-size: 0.95rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.2rem 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
    }

    /* About section */
    .c2 {
        flex-direction: column;
    }

    .c2 .text-c2 {
        align-items: center;
        text-align: center;
        padding-right: 0;
    }

    .c2 iframe {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .prestation {
        padding: 3rem 1rem;
    }

    .prestation-titre {
        font-size: 1.5rem;
    }

    .img-container p {
        font-size: 1rem;
        padding: 0.6rem 0.8rem;
    }

    .prestation-img {
        width: 100px;
        height: 100px;
    }

    .footer {
        padding: 2.5rem 1rem 0;
    }

    .footer-logo-img {
        width: 160px;
    }

    .qrcode-img {
        width: 150px;
        height: 150px;
    }

    .footer-nav h3 {
        font-size: 1.2rem;
    }

    .footer-link {
        font-size: 0.95rem;
    }

    .qrcode-text {
        bottom: -30px;
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .qrcode-text::before {
        top: -6px;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-bottom: 6px solid #0055A4;
    }
}

@media (min-width: 768px) {
    .about {
        gap: 80px;
        padding: 3rem 2rem;
    }

    .about .c1 {
        padding: 3rem;
    }

    .c2 {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .c2 .text-c2 {
        flex: 1;
        align-items: flex-start;
        text-align: left;
        padding-right: 2rem;
    }

    .c2 iframe {
        flex: 1;
        max-width: none;
        height: 450px;
    }
}

@media (min-width: 1024px) {
    .about h2 {
        font-size: 2.5rem;
    }

    .about p {
        font-size: 1.2rem;
    }
}