/* ================= GLOBAL ================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#ffffff;
    color:#0B1C2D;
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

.section{
    padding:90px 0;
}

.btn{
    padding:14px 30px;
    border-radius:30px;
    background:#C6A75E;
    color:#fff;
    border:none;
    font-weight:500;
    cursor:pointer;
    transition:0.3s;
}

.btn:hover{
    background:#1E90FF;
}



/* ================= UNIFORMISATION DES SECTIONS ================= */

/* Toutes les sections auront un padding vertical réduit pour harmoniser l'espace */
.section {
    padding-top: 60px;    /* espace en haut de chaque section */
    padding-bottom: 60px; /* espace en bas de chaque section */
    margin: 0;            /* enlever les marges par défaut */
}

/* Pour des sections comme ABOUT, SERVICES, HERO, on peut réduire encore si nécessaire */
.section.container {
    max-width: 1200px;  /* limite la largeur pour éviter les trop grands écarts */
    margin: 0 auto;
}

/* Ajustement spécifique pour HERO (slide) si trop grand */
.hero {
    padding-top: 50px;
    padding-bottom: 50px;
}

/* Ajustement pour les sections SERVICES et ABOUT */
.services-grid,
.about {
    gap: 30px; /* réduit l’espace entre les éléments à l’intérieur de la section */
}

/* Responsive : réduit encore plus l’espace sur mobile */
@media(max-width: 992px) {
    .section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .services-grid,
    .about {
        gap: 20px;
    }
}

@media(max-width: 576px) {
    .section {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .services-grid,
    .about {
        gap: 15px;
    }
}


/* ================= TOP BAR ================= */

.top-contact-bar{
    background:#0B1C2D;
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:8px 5%;
    font-size:13px;
    flex-wrap:wrap;
}

.top-left span{
    margin-right:20px;
}

.top-right a{
    color:#fff;
    margin-left:15px;
    text-decoration:none;
    transition:0.3s;
}

.top-right a.active,
.top-right a:hover{
    color:#C6A75E;
}


/* ================= TOP BAR ================= */

.top-bar {
    background: #000;
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}

.top-container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left span {
    margin-right: 20px;
    opacity: 0.8;
}

.top-right select {
    background: transparent;
    border: 1px solid #555;
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
}

/* ================= HEADER ================= */

.main-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
}

.header-container {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

/* LOGO */

.logo a {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #0B1C2D;
    text-decoration: none;
    transition: 0.3s;
}

.logo a:hover {
    opacity: 0.8;
}

/* NAVIGATION DESKTOP */

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu li a {
    text-decoration: none;
    color: #0B1C2D;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
    transition: 0.3s ease;
}

/* Ligne animée premium */
.nav-menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg,#C6A75E,#9c7b32);
    transition: 0.3s ease;
}

.nav-menu li a:hover {
    color: #C6A75E;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* ================= HAMBURGER ================= */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #0B1C2D;
    border-radius: 2px;
    transition: 0.3s ease;
}

/* Animation X */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px,5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px,-6px);
}

/* ================= MOBILE ================= */

@media(max-width: 992px) {

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        padding-top: 120px;
        transition: right 0.4s ease;
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 35px;
        padding-left: 40px;
        align-items: flex-start;
    }

    .nav-menu li a {
        font-size: 18px;
    }

    .hamburger {
        display: flex;
    }
}

/* Empêche scroll quand menu ouvert */

.no-scroll {
    overflow: hidden;
}


/* ================= TOP BAR RESPONSIVE ================= */

.top-left span {
    font-size: 13px;
}

@media(max-width: 768px) {

    .top-container {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .top-left {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .top-left span {
        font-size: 11px;
    }

    .top-right select {
        font-size: 11px;
        padding: 3px 8px;
    }
}




/* ================= HERO SLIDER ================= */

.hero {
    position: relative;
    height: 90vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease, transform 6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.65), rgba(0,0,0,0.4));
}

.slide.active {
    opacity: 1;
    z-index: 1;
    transform: scale(1.05);
}

/* ================= CONTENT ================= */

.slide-content {
    position: relative;
    color: #fff;
    text-align: center;
    max-width: 800px;
    padding: 20px;
    animation: fadeUp 1.2s ease;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ================= BUTTON ================= */

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg,#C6A75E,#9c7b32);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* ================= ARROWS ================= */

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: #fff;
    background: rgba(0,0,0,0.4);
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
    z-index: 2;
}

.hero-arrow:hover {
    background: rgba(0,0,0,0.7);
}

.arrow-left {
    left: 30px;
}

.arrow-right {
    right: 30px;
}

/* ================= ANIMATION ================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= RESPONSIVE ================= */

@media(max-width: 992px) {

    .slide-content h1 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 15px;
    }

    .hero {
        height: 75vh;
    }
}



/* ================= SERVICES SECTION ================= */

.services-section {
    padding: 70px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px; /* réduit l'espace */
}

/* ================= SERVICE ITEM ================= */

.service-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 25px; /* réduit padding */
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* ================= ICON ================= */

.service-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg,#2563EB,#1E3A8A);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px; /* carré arrondi moderne */
    color: #fff;
    font-size: 22px;
    transition: 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

/* ================= TEXT ================= */

.service-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0B1C2D;
}

.service-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* ================= RESPONSIVE ================= */

@media(max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}





/* ================= ABOUT SECTION ================= */

.about {
    display: flex;
    align-items: center;
    gap: 40px; /* moins d’espace que précédemment */
    margin-bottom: 60px; /* réduit margin */
}

.about-reverse {
    flex-direction: row-reverse;
}

/* ================= IMAGES ================= */

.about-img {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* ================= TEXT ================= */

.about-text {
    flex: 1;
}

.about-badge {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg,#2563EB,#1E3A8A);
    color: #fff;
    font-size: 12px;
    letter-spacing: 1px;
    border-radius: 30px;
    margin-bottom: 12px;
    font-weight: 600;
}

.about-text h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #0B1C2D;
}

.about-text p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 12px;
}

/* ================= FEATURES ================= */

.about-features {
    margin: 15px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    font-size: 13px;
    color: #1E3A8A;
    font-weight: 500;
}

/* ================= BOUTONS ================= */

.about-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 40px;
    background: linear-gradient(135deg,#2563EB,#1E3A8A);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
    box-shadow: 0 8px 20px rgba(37,99,235,0.4);
}

.about-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37,99,235,0.6);
}

.about-btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 40px;
    background: #0B1C2D;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.about-btn-secondary:hover {
    background: #2563EB;
    transform: translateY(-2px);
}

/* ================= RESPONSIVE ================= */

@media(max-width: 992px) {
    .about {
        flex-direction: column;
        gap: 25px;
    }

    .about-reverse {
        flex-direction: column;
    }

    .about-text h2 {
        font-size: 24px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}



/* ================= STATISTICS SECTION ================= */
.stats-section {
    position: relative;
    color: #fff;
    padding: 60px 0;
    overflow: hidden;
}

.stats-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.stats-bg .stats-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay sombre mais léger */
.stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3); /* moins sombre, plus lumineux */
    z-index: 2;
}

.stats-container {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    flex: 1 1 220px;
    text-align: center;
    padding: 20px;
    border-radius: 20px;
    
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
}

.stat-number {
    font-size: 40px;
    font-weight: 700;
    color: #FFD700; /* doré premium */
    margin-bottom: 10px;
}

.stat-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.stat-desc {
    font-size: 14px;
    color: #eee;
}

/* ================= RESPONSIVE ================= */

@media(max-width: 992px) {
    .stats-container {
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        width: 80%;
    }
}

@media(max-width: 576px) {
    .stats-section {
        padding: 50px 0;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-title {
        font-size: 16px;
    }
}




/* ================= TESTIMONIALS PREMIUM ================= */
.testimonials-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #fdfaf7, #fff8f2);
    overflow: hidden;
}

.testimonials-section .section-title {
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #0B1C2D;
    letter-spacing: 1px;
}

/* Wrapper et track pour parallaxe et scroll horizontal */
.testimonial-wrapper {
    overflow: hidden;
    position: relative;
}

.testimonial-track {
    display: flex;
    gap: 40px;
    transition: transform 0.5s ease;
    will-change: transform;
}

/* Témoignage individuel */
.testimonial-item {
    flex: 0 0 100%;
    max-width: 100%;
    background: rgba(255,255,255,0.95);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.testimonial-item.active {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-content {
    font-size: 18px;
    color: #1C1C1C;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #C6A75E;
    transition: transform 0.3s;
}

.testimonial-author img:hover {
    transform: scale(1.1);
}

.testimonial-author h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #0B1C2D;
}

.testimonial-author span {
    font-size: 14px;
    color: #666;
}

/* Flèches premium */
.testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 45px;
    color: #C6A75E;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    user-select: none;
}

.testimonial-arrow:hover {
    color: #0B1C2D;
}

.arrow-left {
    left: 20px;
}

.arrow-right {
    right: 20px;
}

/* Responsive */
@media(max-width:992px){
    .testimonial-item {
        padding: 30px;
    }
    .testimonial-author img {
        width: 50px;
        height: 50px;
    }
    .testimonial-arrow {
        font-size: 30px;
    }
}



/* ================= CONTACT PAGE ================= */



.contact-form-card,
.contact-map-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-form-card:hover,
.contact-map-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 70px rgba(0,0,0,0.25);
}

/* Animation apparition */
.contact-section {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bouton luxe gradient */
.btn-contact {
    background: linear-gradient(135deg, #000, #555);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.btn-contact:hover {
    background: linear-gradient(135deg, #111, #777);
    transform: scale(1.05);
}
