/* ================================
   RESET / GLOBAL
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    
    /* BACKGROUND GLOBAL PREMIUM AVEC OVERLAY */
    background:
        linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.81)),
        url('image_bureau.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* effet parallax */
    background-repeat: no-repeat;
}


h1, h2, h3, h4 {
    font-weight: bold;
}

a {
    text-decoration: none;
}

/* ================================
   THEME COLORS
================================ */

:root {
    --primary: #1e5eff;        /* BLEU principal */
    --primary-dark: #1749c9;
    --primary-soft: #4d7dff;

    --text-main: #1c1c1c;
    --text-muted: #4a4a4a;

    --bg-white: #ffffff;
    --bg-light: #f4f7ff;
    --primary-rgb: 30,94,255;

}


/* ================================
   NAVIGATION
================================ */

nav {
    background: #ffffff;
    padding: 20px 8vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

nav h2 {
    color: var(--primary);
}

nav div a {
    margin-left: 20px;
    color: #333;
    font-weight: bold;
}

nav div a:hover {
    color: var(--primary);
}


/* ================================
   BOUTON GLOBAL
================================ */

.btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    transition: 0.3s;
    font-weight: bold;
}

.btn:hover {
    background: var(--primary-dark);
}


/* ================================
   HERO PREMIUM (Accueil)
================================ */

.hero-premium {
    width: 100%;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 8vw;
    background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 55%, #ececec 100%);
}

.hero-content {
    flex: 1;
    max-width: 550px;
    animation: fadeIn 0.8s ease;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 20px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 35px;
}

.hero-btn {
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 10px;
}

/* Illustration */
.hero-illustration {
    flex: 1;
    position: relative;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, var(--primary-dark) 100%);
    opacity: 0.85;
    animation: float 4s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.hero-circle-sm {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(77,125,255,0.7); /* basé sur --primary-soft */
    top: 20%;
    right: 20%;
    animation: float2 5s ease-in-out infinite;
}


/* ================================
   SECTION GENERIQUE
================================ */

.section {
    padding: 60px 8vw;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    color: var(--primary);
    margin-bottom: 20px;
    text-align: left;
}


/* ================================
   SECTION-WIDE (Pourquoi nous choisir)
================================ */

.section-wide {
    width: 100%;
    padding: 60px 0 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 50%, #fafafa 100%);
}

.section-wide h2 {
    text-align: center;
    color: var(--primary);
}


/* ================================
   CARROUSEL 3D – Pourquoi nous choisir
================================ */

.carousel-why {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 50px;
    padding: 40px 5vw;
    perspective: 1200px;
    width: 100%;
    max-width: 100%;
    position: relative;
    margin-top: 30px;
}

.carousel-why::-webkit-scrollbar {
    display: none;
}

.carousel-why::before,
.carousel-why::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.carousel-why::before {
    left: 0;
    background: linear-gradient(to right, #f7f7f7, transparent);
}

.carousel-why::after {
    right: 0;
    background: linear-gradient(to left, #f7f7f7, transparent);
}

.why-card-3d {
    flex: 0 0 240px;
    scroll-snap-align: center;
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.3s ease;
    border-top: 6px solid var(--primary);
    cursor: grab;
}

.why-card-3d i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 12px;
}

.why-card-3d h3 {
    margin: 10px 0 5px;
    color: #333;
    font-size: 20px;
}

.why-card-3d p {
    color: #666;
    font-size: 15px;
    line-height: 1.4;
}


/* ================================
   PAGE A PROPOS
================================ */

.about-section {
    width: 100%;
    padding: 70px 8vw;
    background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%);
}

.about-container {
    display: flex;
    align-items: stretch;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.about-card {
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 300px;
    border-top: 6px solid var(--primary);
    transition: 0.3s;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.about-card h2 {
    margin-bottom: 15px;
    color: var(--primary);
}

.about-card p {
    color: #444;
    font-size: 16px;
    line-height: 1.6;
}

/* valeurs */

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
    margin-top: 30px;
}

.value-card {
    background: #ffffff;
    padding: 25px;
    text-align: center;
    border-radius: 14px;
    border-top: 5px solid var(--primary);
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    transition: 0.3s;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

.value-card i {
    font-size: 38px;
    color: var(--primary);
    margin-bottom: 10px;
}

/* timeline */

.timeline {
    margin: 60px auto 40px;
    max-width: 800px;
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
}

.timeline-item {
    margin: 25px 0;
    padding-left: 50px;
}

.timeline-item h4 {
    margin-bottom: 5px;
    color: var(--primary);
}

.timeline-item p {
    color: #444;
}

.about-cta {
    margin-top: 60px;
    text-align: center;
}

.about-cta .btn {
    padding: 15px 35px;
    font-size: 18px;
}


/* ================================
   PAGE SERVICES
================================ */

.services-section {
    width: 100%;
    padding: 70px 8vw;
    background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%);
}

.services-header {
    text-align: center;
    margin-bottom: 35px;
}

.services-header h2 {
    color: var(--primary);
    font-size: 34px;
    margin-bottom: 10px;
}

.services-header p {
    font-size: 17px;
    color: #555;
}

.service-category {
    margin-top: 60px;
}

.service-category h3 {
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 20px;
}

/* grille de services (commune à accueil + page services) */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
    margin-bottom: 45px;
}

.service-card-premium {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    border-top: 6px solid var(--primary);
    box-shadow: 0 6px 22px rgba(0,0,0,0.08);
    transition: 0.25s ease;
    text-align: left;
}

.service-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.service-card-premium i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
    display: inline-block;
}

.service-card-premium h4 {
    margin-bottom: 8px;
    color: #333;
}

.service-card-premium p {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

.services-cta {
    text-align: center;
    margin-top: 70px;
}

.services-cta .btn {
    padding: 15px 40px;
    font-size: 18px;
}


/* ================================
   PAGE TARIFS
================================ */

.tarifs-section {
    width: 100%;
    padding: 70px 8vw;
    background: linear-gradient(to bottom, #ffffff 0%, #f5f5f5 100%);
}

.tarifs-header {
    text-align: center;
    margin-bottom: 50px;
}

.tarifs-header h2 {
    font-size: 34px;
    color: var(--primary);
}

.tarifs-header p {
    color: #555;
    font-size: 17px;
    margin-top: 10px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.pricing-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 18px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.08);
    border-top: 6px solid var(--primary);
    transition: 0.25s ease;
    position: relative;
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.pricing-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 12px;
}

.pricing-card h3 {
    margin-bottom: 12px;
    color: #333;
    font-size: 22px;
}

.pricing-card .price {
    font-size: 28px;
    font-weight: bold;
    color: #000;
    margin: 10px 0 15px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 25px;
}

.pricing-card ul li {
    color: #555;
    font-size: 15px;
    padding: 6px 0;
}

.badge-pop {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 20px;
}

.tarifs-cta {
    margin-top: 60px;
    text-align: center;
}

.tarifs-cta .btn {
    padding: 15px 40px;
    font-size: 18px;
}


/* ================================
   PAGE CONTACT (premium)
================================ */

.contact-hero {
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 8vw;
    background: linear-gradient(135deg, #ffffff 0%, #f2f2f5 50%, #e8e8ee 100%);
}

.contact-wrapper {
    display: flex;
    gap: 60px;
    width: 100%;
    max-width: 1300px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* intro gauche */

.contact-intro {
    flex: 1;
    min-width: 300px;
    padding: 20px 0;
}

.contact-intro h1 {
    font-size: 44px;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-intro p {
    font-size: 18px;
    color: #444;
    margin-bottom: 35px;
    line-height: 1.5;
}

.contact-icons {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-icon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    color: #333;
}

.contact-icon-item i {
    font-size: 24px;
    color: var(--primary);
}

/* formulaire à droite */

.contact-form-premium {
    flex: 1;
    min-width: 350px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(14px);
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    animation: fadeIn 0.7s ease;
    border: 1px solid rgba(255,255,255,0.4);
}

.contact-form-premium h2 {
    font-size: 26px;
    margin-bottom: 25px;
    color: #222;
    text-align: center;
}

.form-group-premium {
    margin-bottom: 18px;
}

.form-group-premium input,
.form-group-premium select,
.form-group-premium textarea {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    border-radius: 12px;
    transition: 0.2s ease;
}

.form-group-premium input:focus,
.form-group-premium select:focus,
.form-group-premium textarea:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 6px rgba(var(--primary-rgb), 0.35);
    outline: none;
}

.contact-btn {
    width: 100%;
    margin-top: 15px;
    padding: 16px;
    font-size: 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s ease;
}

.contact-btn:hover {
    background: var(--primary-dark);
}


/* ================================
   ANIMATIONS GLOBALES
================================ */

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
    100% { transform: translateY(0); }
}

@keyframes float2 {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(12px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ================================
   RESPONSIVE GLOBAL
================================ */

@media (max-width: 900px) {
    .hero-premium {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    nav {
        flex-direction: column;
        gap: 10px;
    }

    nav div a {
        margin-left: 10px;
    }

    .contact-hero {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .contact-intro {
        text-align: center;
    }

    .contact-icons {
        align-items: center;
    }
}


/* ================================
   FOOTER
================================ */

footer {
    text-align: center;
    padding: 30px;
    background: #222;
    color: white;
    margin-top: 40px;
}

/* --- PATCH PREMIUM : Sections semi-transparentes --- */

/* ---- SECTIONS 100% TRANSPARENTES ---- */
.section,
.section-wide,
.about-section,
.services-section,
.tarifs-section,
.contact-hero {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}


/* ---- CARTES AVEC VRAI BACKGROUND BLANC ---- */
.about-card,
.service-card-premium,
.pricing-card,
.value-card,
.why-card-3d,
.contact-form-premium,
.form-container {
    background: rgba(255,255,255,1) !important; /* vrai blanc */
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.08);
    backdrop-filter: none !important; /* enlève le flou si tu en avais un */
}

/* ---- CLASSES BOOTSTRAP CUSTOM ---- */
.container-bs {
    max-width: 1200px;
    margin: auto;
}

.row-bs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.col-bs-6 {
    flex: 1 1 calc(50% - 20px);
}

.col-bs-4 {
    flex: 1 1 calc(33.33% - 20px);
}

.col-bs-12 {
    flex: 1 1 100%;
}

/* Responsive */
@media(max-width: 768px) {
    .col-bs-6 {
        flex: 1 1 100%;
    }
    .col-bs-4 {
        flex: 1 1 100%;
    }
}

/* =======================================
   RESPONSIVE GLOBAL SITE PREMIUM
   (Patch final)
======================================= */

/* --- TITRES --- */
h1, h2, h3, h4 {
    word-wrap: break-word;
}


/* =======================
   HERO PREMIUM
======================= */
@media(max-width: 992px) {
    .hero-premium {
        flex-direction: column !important;
        text-align: center;
        padding: 50px 5vw;
    }

    .hero-content h1 {
        font-size: 32px !important;
    }

    .hero-content p {
        font-size: 17px !important;
    }

    .hero-illustration {
        margin-top: 35px;
        height: 250px !important;
    }

    .hero-circle {
        width: 220px !important;
        height: 220px !important;
    }

    .hero-circle-sm {
        width: 120px !important;
        height: 120px !important;
        top: 15%;
        right: 15%;
    }
}


/* =======================
   SERVICES + ABOUT + VALUE CARDS
======================= */
@media(max-width: 900px) {
    .services-grid,
    .values-grid,
    .service-grid {
        grid-template-columns: 1fr !important;
    }

    .service-card-premium,
    .about-card,
    .value-card {
        margin: auto;
        width: 100%;
        max-width: 500px;
    }
}


/* =======================
   WHY US – CARROUSEL 3D
======================= */
@media(max-width: 768px) {
    .carousel-why {
        padding: 20px 10vw !important;
        gap: 35px !important;
    }

    .why-card-3d {
        flex: 0 0 75% !important;
        margin: auto;
    }
}


/* =======================
   TARIFS CARDS
======================= */
@media(max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr !important;
    }

    .pricing-card {
        max-width: 500px;
        margin: auto;
        width: 100%;
    }
}


/* =======================
   CONTACT PAGE
======================= */
@media(max-width: 992px) {
    .contact-wrapper {
        flex-direction: column !important;
        text-align: center;
        gap: 40px;
    }

    .contact-intro {
        width: 100% !important;
    }

    .contact-form-premium {
        width: 100% !important;
        max-width: 520px;
        margin: auto;
    }
}


/* =======================
   NAVIGATION (MOBILE)
======================= */
@media(max-width: 768px) {
    nav {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px !important;
    }

    nav a {
        margin: 5px !important;
        font-size: 16px;
    }
}


/* =======================
   FOOTER
======================= */
@media(max-width: 768px) {
    footer {
        font-size: 14px;
        padding: 20px;
    }
}

/* OVERLAY & BLUR */
.popup-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeInOverlay 0.25s ease;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* POPUP BOX ULTRA PREMIUM */
.popup-box-premium {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.35);
    padding: 35px 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    color: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    animation: popupScale 0.35s ease;
}

@keyframes popupScale {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* CHECK ICON ANIMÉ */
.popup-icon {
    font-size: 55px;
    width: 85px;
    height: 85px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid rgba(255,255,255,0.7);
    color: #00ff9d;
    font-weight: bold;
    animation: iconPop 0.5s ease;
}

@keyframes iconPop {
    0%   { transform: scale(0.3); opacity: 0; }
    60%  { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}

/* TITRE + TEXTE */
.popup-box-premium h3 {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: bold;
}

.popup-box-premium p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

/* BOUTON PREMIUM */
.popup-btn-premium {
    background: #000;
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    cursor: pointer;
    transition: 0.25s ease;
}

.popup-btn-premium:hover {
    background: var(--primary-dark);
}

/* Carte mise en avant (offre populaire) */
.pricing-pop {
    border-top-color: var(--primary);
}

.badge-pop {
    background: var(--primary);
    box-shadow: 0 6px 15px rgba(var(--primary-rgb), 0.35);
}

.contact-icon-item a {
    color: var(--primary);
    font-weight: bold;
}

.contact-icon-item a:hover {
    text-decoration: underline;
}
