@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background-color: #f9f9f9;
}

/* Navbar */
header {
    background-color: #162415;
    color: white;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #4CAF50;
    /* Green hover */
}

.contact-button {
    background-color: transparent;
    border: 2px solid #4CAF50;
    /* Green border */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background-color: #4CAF50;
    /* Green fill */
    color: white;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('file_000000003dec61f8987acecefc82cf02.png') no-repeat center/cover;
    /* Replace with your image */
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h2 {
    text-align: left;
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ddd;
}

.cta-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #3e8e41;
}

/* Footer modernisé et responsive */
.footer {
    background: #162415;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    padding: 40px 10vw 30px 10vw;
    /* border-radius: 0 0 24px 24px; */
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

.footer>div {
    flex: 1 1 220px;
    min-width: 220px;
    margin: 0 10px;
}

.a-propos,
.n-services,
.r-social {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px 18px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.a-propos h4,
.n-services h4,
.r-social h4 {
    color: #4CAF50;
    font-size: 1.3rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.a-propos p,
.n-services ul,
.r-social p {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.7;
}

.n-services ul {
    list-style: disc inside;
    padding-left: 0;
}

.n-services li {
    margin-bottom: 8px;
    color: #b2ffb2;
    font-size: 1rem;
}

.licenses {
    background: #162415;
    color: #b2ffb2;
    text-align: center;
    padding: 18px 0 10px 0;
    font-size: 0.95rem;
    border-radius: 0 0 16px 16px;
    margin-top: -10px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

/* Responsive footer */
@media (max-width: 900px) {
    .footer {
        flex-direction: column;
        align-items: stretch;
        padding: 30px 5vw 20px 5vw;
        gap: 18px;
    }

    .footer>div {
        margin: 0 0 10px 0;
    }
}

/* Titres principaux */
.hero-content h2 {
    color: #162415;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-align: center;
    letter-spacing: 1px;
}

/* Boutons */
.cta-button,
.contact-button {
    background: #4CAF50;
    color: #fff;
    border: none;
    /* border-radius: 6px; */
    padding: 12px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
    margin-top: 10px;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover,
.contact-button:hover {
    background: linear-gradient(90deg, #6a82fb, #4CAF50);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
}

/* Animation d’apparition */
.hero-content,
.footer,
.licenses {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Vague de transition */
.wave-transition {
    margin-top: -5px;
    line-height: 0;
}

.wave-transition svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* Ajout de la police Pacifico pour le h2 et le p de .hero-content */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

.hero-content h2,
.hero-content p {
    font-family: 'Pacifico', cursive;
    color: rgb(255, 252, 252);
}

/* Diminue la taille du texte dans le footer */
.a-propos p,
.n-services ul,
.n-services li,
.r-social p {
    font-size: 0.92rem;
}

/* Social Links */
.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links li a {
    display: flex;
    align-items: center;
    color: #b2ffb2;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.social-links li a:hover {
    color: #4CAF50;
}

.social-links img {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(80deg);
    transition: filter 0.3s;
}

.social-links li a:hover img {
    filter: brightness(1) invert(0) sepia(1) saturate(5) hue-rotate(80deg);
}

.language-switcher {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 10vw 10px 10vw;
    background: #162415;
    color: #b2ffb2;
    font-size: 1rem;
    border-radius: 0 0 16px 16px;
    margin-top: -10px;
}

.language-switcher select {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #4CAF50;
    background: #fff;
    color: #162415;
    font-weight: 600;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}

.language-switcher select:focus {
    border: 2px solid #6a82fb;
}

/* HERO SECTION RESPONSIVE */
@media (max-width: 900px) {
    .hero-section {
        height: auto;
        padding: 60px 0 40px 0;
    }

    .hero-content h2 {
        font-size: 2.2rem;
        text-align: center;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* NAVBAR RESPONSIVE */
@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 10px 0;
        text-align: left;
    }

    .contact-button {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

/* FOOTER RESPONSIVE */
@media (max-width: 700px) {
    .footer {
        flex-direction: column;
        padding: 20px 3vw 15px 3vw;
        gap: 10px;
    }

    .footer>div {
        min-width: unset;
        margin: 0 0 10px 0;
    }

    .licenses,
    .language-switcher {
        padding: 10px 3vw 8px 3vw;
        font-size: 0.95rem;
    }
}

/* SOCIAL LINKS RESPONSIVE */
@media (max-width: 500px) {
    .social-links li a {
        font-size: 0.95rem;
    }

    .social-links img {
        width: 18px;
        height: 18px;
        margin-right: 6px;
    }
}

/* GENERAL SMALL DEVICES */
@media (max-width: 500px) {
    body {
        font-size: 0.95rem;
    }

    .hero-content {
        padding: 0 5px;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .footer {
        padding: 10px 2vw 10px 2vw;
    }
}

/* GRAND ÉCRAN (TV, etc.) */
@media (min-width: 1600px) {
    .hero-content {
        max-width: 1200px;
        font-size: 1.3rem;
    }

    .footer {
        max-width: 1600px;
        margin: 0 auto;
        font-size: 1.2rem;
    }
}

/* Burger menu style */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 200;
    margin-left: 10px;
}

.burger span {
    display: block;
    height: 4px;
    width: 100%;
    background: #4CAF50;
    border-radius: 2px;
    margin: 5px 0;
    transition: 0.3s;
}

/* Affiche le burger sur mobile */
@media (max-width: 900px) {
    .burger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100vw;
        background: #162415;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0;
        display: none;
        z-index: 150;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #222;
    }

    .nav-links li a {
        padding: 16px 24px;
        width: 100%;
        font-size: 1.1rem;
    }
}

/* Diminue la taille du texte sur mobile */
@media (max-width: 500px) {

    body,
    .footer,
    .hero-content,
    .hero-content h2,
    .hero-content p,
    .n-services li,
    .a-propos p,
    .r-social,
    .licenses,
    .contact-button,
    .cta-button {
        font-size: 0.85rem !important;
    }

    .hero-content h2 {
        font-size: 1.1rem !important;
    }
}

#mobile-block {
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: linear-gradient(135deg, #162415 60%, #4CAF50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInMobileBlock 0.7s;
}

@keyframes fadeInMobileBlock {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mobile-block-content {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 40px 28px;
    text-align: center;
    animation: bounceIn 0.8s;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }

    60% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

.mobile-block-content h2 {
    color: #4CAF50;
    font-size: 2rem;
    margin-bottom: 18px;
    font-family: 'Poppins', cursive, sans-serif;
}

.mobile-block-content p {
    color: #162415;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
}
/* Mode mobile-unlocked : navbar réduite */
body.mobile-unlocked .navbar {
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 0;
}
body.mobile-unlocked .logo {
    font-size: 1.1rem;
    padding: 0 10px;
}
body.mobile-unlocked .burger {
    width: 28px;
    height: 28px;
    margin-left: 0;
}
body.mobile-unlocked .nav-links,
body.mobile-unlocked .contact-button {
    display: none !important;
}
/* Floating button visible uniquement sur mobile unlocked */
#floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    font-size: 2rem;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
#floating-btn:hover {
    background: #388e3c;
    transform: scale(1.08);
}
@media (max-width: 700px) {
    body.mobile-unlocked #floating-btn {
        display: flex;
    }
}
/* Masque la navbar sur mobile */
@media (max-width: 700px) {
    .navbar {
        display: none !important;
    }
}

@media (min-width: 701px) {
    #floating-btn {
        display: none !important;
    }
}
.floating-menu {
    position: fixed;
    bottom: 90px;
    right: 24px;
    background: #162415ee;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 18px 0 10px 0;
    min-width: 170px;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.floating-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.floating-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.floating-menu li {
    border-bottom: 1px solid #2e3b2e;
}
.floating-menu li:last-child {
    border-bottom: none;
}
.floating-menu a {
    display: block;
    color: #b2ffb2;
    text-decoration: none;
    padding: 14px 24px;
    font-size: 1.08rem;
    transition: background 0.2s, color 0.2s;
}
.floating-menu a:hover {
    background: #4CAF50;
    color: #fff;
    border-radius: 8px;
}
@media (min-width: 701px) {
    #floating-menu {
        display: none !important;
    }
}
.language-switcher {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    background: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
    color: #162415;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 6vw 10px 6vw;
    font-size: 1rem;
    z-index: 1000;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.07);
}

.language-switcher label {
    font-weight: 500;
}

.language-switcher select {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #4CAF50;
    background: #fff;
    color: #162415;
    font-weight: 600;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}

.language-switcher select:focus {
    border: 2px solid #6a82fb;
}