/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    background: #0B2D4A;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: white;
    transition: background-image 1s ease-in-out;
}

/* ===== HEADER ===== */
header {
    background: linear-gradient(90deg, #0A3B66, #0B2D4A);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header img {
    height: 70px;
}

/* ===== NAVIGATION PRINCIPALE ===== */
nav {
    display: flex;
    align-items: center;
}

.nav-main {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-main li a {
    padding: 10px 15px;
    text-decoration: none;
    color: #E8F3FF;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.nav-main li a:hover {
    color: #40DFFF;
}

.lang-switch {
    background: #08395C;
    border-radius: 6px;
    padding: 5px 10px;
}

.lang-switch a {
    color: #E8F3FF;
    text-decoration: none;
}

/* ===== BOUTON MENU HAMBURGER ===== */
.menu-button {
    display: none;
}

.menu-button a {
    display: flex;
    align-items: center;
    padding: 10px;
}

/* ===== SIDEBAR MOBILE ===== */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: rgba(10, 59, 102, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    list-style: none;
    padding-top: 20px;
}

.sidebar li {
    width: 100%;
}

.sidebar li a {
    display: block;
    padding: 15px 25px;
    color: #E8F3FF;
    text-decoration: none;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #40DFFF;
}

.sidebar-close {
    text-align: right;
    border-bottom: none !important;
}

.sidebar-close a {
    display: inline-block;
    padding: 15px 25px;
    border-bottom: none !important;
}

.sidebar .lang-switch {
    margin: 15px 25px;
    display: inline-block;
}

/* ===== HERO ===== */
.hero {
    background: url("img/hero.jpg") center/cover no-repeat;
    padding: 180px 40px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    opacity: 0.85;
}

.btn {
    padding: 14px 26px;
    background: #1BC4E5;
    margin: 10px;
    border-radius: 8px;
    color: #00314E;
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
}

.btn:hover {
    background: #4DE2FF;
}

/* ===== SECTIONS ===== */
.section {
    padding: 70px 40px;
    max-width: 1200px;
    margin: auto;
}

.section h2 {
    font-size: 42px;
    margin-bottom: 40px;
}

/* ===== SERVICES ===== */
.service-block {
    background: #0D3558;
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    display: flex;
    gap: 40px;
}

.service-block img {
    width: 45%;
    border-radius: 12px;
}

.service-block .text {
    width: 55%;
    font-size: 18px;
}

.service-block .text ul {
    list-style: disc;
    padding-left: 20px;
}

.service-block .text ul li {
    padding: 8px 0;
    font-size: 17px;
}

/* ===== PRICING GRID (3 colonnes) ===== */
.service-block.pricing-grid {
    display: flex;
    gap: 30px;
    align-items: stretch;
    flex-wrap: wrap;
}

.pricing-column {
    flex: 1;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.pricing-column h3 {
    color: #40DFFF;
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(64, 223, 255, 0.3);
    text-align: center;
}

.pricing-content {
    flex: 1;
}

.pricing-content p {
    color: #E8F3FF;
    font-size: 16px;
    line-height: 1.7;
}

.pricing-list {
    list-style: none;
    padding: 0;
}

.pricing-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #E8F3FF;
    font-size: 16px;
    position: relative;
    padding-left: 25px;
}

.pricing-list li:last-child {
    border-bottom: none;
}

.pricing-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #40DFFF;
    font-weight: bold;
}

/* ===== CONTACT ===== */
.contact-center {
    text-align: center;
    background-color: grey;
}

.contact-center img {
    width: 250px;
    border-radius: 15px;
    margin-top: 20px;
}

.qr {
    width: 250px;
    height: 250px;
}

/* ===== CAROUSEL 3D ===== */
.container {
    position: relative;
    width: 320px;
    height: 250px;
    margin: 100px auto;
    perspective: 1000px;
}

.carousel {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate360 60s infinite forwards linear;
}

.carousel__face {
    position: absolute;
    width: 300px;
    height: 187px;
    top: 20px;
    left: 10px;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    display: flex;
}

.carousel__face span {
    margin: auto;
    font-size: 2rem;
}

.carousel__face:nth-child(1) {
    background-image: url("logo.png");
    transform: rotateY(0deg) translateZ(430px);
}

.carousel__face:nth-child(2) {
    background-image: url("Home.png");
    transform: rotateY(40deg) translateZ(430px);
}

.carousel__face:nth-child(3) {
    background-image: url("Pricing.png");
    transform: rotateY(80deg) translateZ(430px);
}

.carousel__face:nth-child(4) {
    background-image: url("PME.png");
    transform: rotateY(120deg) translateZ(430px);
}

.carousel__face:nth-child(5) {
    background-image: url("PME1.png");
    transform: rotateY(160deg) translateZ(430px);
}

.carousel__face:nth-child(6) {
    background-image: url("Home-IT.png");
    transform: rotateY(200deg) translateZ(430px);
}

.carousel__face:nth-child(7) {
    background-image: url("net.png");
    transform: rotateY(240deg) translateZ(430px);
}

.carousel__face:nth-child(8) {
    background-image: url("matrix.png");
    transform: rotateY(280deg) translateZ(430px);
}

.carousel__face:nth-child(9) {
    background-image: url("colabo.png");
    transform: rotateY(320deg) translateZ(430px);
}

@keyframes rotate360 {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(-360deg);
    }
}

/* ===== FOOTER ===== */
.footer-container {
    background-color: #212329;
    padding: 4rem 0;
    margin-top: 100px;
}

.footer {
    width: 90%;
    max-width: 1200px;
    background-color: #212329;
    color: #E8F3FF;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0 auto;
}

.footer-heading {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.footer-heading h2 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-heading a,
.footer-heading p {
    color: #ccc;
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-heading a:hover {
    color: #40DFFF;
    transition: 0.3s ease-out;
}

.footer-email-form h2 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-email-form form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#footer-email {
    width: 250px;
    height: 40px;
    border-radius: 4px;
    border: none;
    padding-left: 10px;
    font-size: 1rem;
}

#footer-email::placeholder {
    color: #888;
}

#footer-email-btn {
    width: 120px;
    height: 40px;
    border-radius: 4px;
    background-color: #1BC4E5;
    border: none;
    color: #00314E;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

#footer-email-btn:hover {
    background-color: #4DE2FF;
    transition: all 0.3s ease-out;
}

#form-message {
    margin-top: 10px;
    font-size: 14px;
    min-height: 20px;
}

/* ===== CLASSES RESPONSIVE ===== */
.hideOnMobile {
    display: flex;
}

.hideOnTablet {
    display: flex;
}

.hideOnMobileAndTablet {
    display: flex;
}

/* ===== FLOATING ACTION BUTTON (MOBILE) ===== */
.mobile-fab-container {
    display: none;
    /* Cache by default */
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.fab-main-btn {
    background: #1BC4E5;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.fab-main-btn:active {
    transform: scale(0.95);
}

.fab-menu {
    position: absolute;
    bottom: 80px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    align-items: flex-start;
}

.fab-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0A3B66;
    color: #E8F3FF;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
    white-space: nowrap;
}

.fab-item:hover {
    background: #1BC4E5;
    color: #00314E;
}

.fab-item:hover svg {
    fill: #00314E;
}

/* ===== TABLETTE (601px - 1024px) ===== */
@media (max-width: 1024px) and (min-width: 601px) {

    .hideOnTablet,
    .hideOnMobileAndTablet {
        display: none !important;
    }

    .menu-button {
        display: flex;
    }

    header {
        padding: 15px 30px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .service-block {
        flex-direction: column;
    }

    .service-block img,
    .service-block .text {
        width: 100%;
    }

    .service-block.pricing-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .pricing-column {
        min-width: 45%;
        flex: 1 1 45%;
    }

    .footer {
        justify-content: center;
        text-align: center;
    }

    .footer-heading {
        align-items: center;
    }
}

/* ===== MOBILE (600px et moins) ===== */
@media (max-width: 600px) {

    .hideOnMobile,
    .hideOnMobileAndTablet {
        display: none !important;
    }

    .menu-button {
        display: flex;
    }

    header {
        padding: 10px 20px;
    }

    header img {
        height: 50px;
    }

    .hero {
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        padding: 40px 20px;
    }

    .section h2 {
        font-size: 24px;
    }

    .service-block {
        flex-direction: column;
        padding: 15px;
    }

    .service-block img,
    .service-block .text {
        width: 100%;
    }

    /* Pricing grid en colonne sur mobile */
    .service-block.pricing-grid {
        flex-direction: column;
        gap: 20px;
    }

    .pricing-column {
        min-width: 100%;
    }

    /* Carousel plus petit */
    .container {
        width: 280px;
        height: 200px;
        margin: 50px auto;
    }

    .carousel__face {
        width: 220px;
        height: 137px;
    }

    .carousel__face:nth-child(1) {
        transform: rotateY(0deg) translateZ(280px);
    }

    .carousel__face:nth-child(2) {
        transform: rotateY(40deg) translateZ(280px);
    }

    .carousel__face:nth-child(3) {
        transform: rotateY(80deg) translateZ(280px);
    }

    .carousel__face:nth-child(4) {
        transform: rotateY(120deg) translateZ(280px);
    }

    .carousel__face:nth-child(5) {
        transform: rotateY(160deg) translateZ(280px);
    }

    .carousel__face:nth-child(6) {
        transform: rotateY(200deg) translateZ(280px);
    }

    .carousel__face:nth-child(7) {
        transform: rotateY(240deg) translateZ(280px);
    }

    .carousel__face:nth-child(8) {
        transform: rotateY(280deg) translateZ(280px);
    }

    .carousel__face:nth-child(9) {
        transform: rotateY(320deg) translateZ(280px);
    }

    .footer-container {
        margin-top: 50px;
    }

    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-heading {
        align-items: center;
        margin-bottom: 2rem;
    }

    #footer-email {
        width: 100%;
        max-width: 280px;
    }

    /* Show FAB on mobile */
    .mobile-fab-container {
        display: block;
    }
}

/* ===== TRÈS PETIT ÉCRAN (400px et moins) ===== */
@media (max-width: 400px) {
    .sidebar {
        width: 100%;
    }

    .hero h1 {
        font-size: 22px;
    }

    .pricing-column h3 {
        font-size: 18px;
    }

    .pricing-content p,
    .pricing-list li {
        font-size: 14px;
    }
}