/* ================= GOOGLE FONT ================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ================= VARIABLES ================= */
:root {
    --primary: #8B1E1E;
    --secondary: #B83227;
    --accent: #F25C05;
    --light: #F4EDE9;
    --white: #FFFFFF;
    --text: #2E2E2E;
    --gray: #6B6B6B;
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--text);
    overflow-x: hidden;
}


/* ================= HERO ================= */
.hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

/* SLIDER */
.slider {
    position: absolute;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* OVERLAY (AMÉLIORÉ POUR LISIBILITÉ) */
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.2)
    );
}

/* HERO CONTENT */
.hero-container {
    position: relative;
    z-index: 2;
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;

    /* 🔥 effet lisibilité premium */
    background: rgba(0,0,0,0.25);
    padding: 20px;
    border-radius: 10px;
}

/* ================= BADGE ================= */
.badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;

    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;

    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
}

/* ================= TITLE ================= */
.hero h1 {
    font-size: clamp(26px, 5vw, 44px);
    color: #FFFFFF;
    font-weight: 700;
    line-height: 1.3;
    max-width: 600px;

    text-shadow: 0 3px 10px rgba(0,0,0,0.8);
}

.highlight {
    color: var(--accent);
   
}

/* ================= CTA ================= */
.cta-bar {
    margin-top: -70px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.cta-container {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    padding: 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-text h3 {
    font-size: 20px;
    color: var(--primary);
}

.cta-text p {
    font-size: 14px;
    color: var(--gray);
}

.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.counter {
    font-size: 34px;
    font-weight: 700;
    transition: 0.3s;
}
.counter {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.counter.show {
    opacity: 1;
    transform: translateY(0);
}
.stat:hover {
    transform: scale(1.05);
    transition: 0.3s;
}

/* ================= BOUTONS ================= */
.btn {
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
}

.primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
}

.outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.accent {
    background: var(--accent);
    color: white;
}

/* ================= STATS ================= */
.stats {
    display: flex;
    justify-content: space-around;
    padding: 50px 10px;
    text-align: center;
    flex-wrap: wrap;
}

.stat h2 {
    color: var(--primary);
    font-size: 30px;
}

.stat p {
    color: var(--gray);
}

/* ================= ABOUT PREMIUM ================= */
.about {
    padding: 80px 20px;
    background: linear-gradient(to right, #ffffff, #f8f8f8);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    max-width: 1100px;
    margin: auto;
}

/* IMAGE */
.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* TEXTE */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-subtitle {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

.about h2 {
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

.about-highlight {
    color: var(--accent);
}

.about p {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.6;
}


/* ================= SERVICES PREMIUM ================= */

.services {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(to right, #ffffff, #f8f8f8);
}

.section-subtitle {
    color: var(--accent);
    font-size: 23px;
    font-weight: 600;
    letter-spacing: 2px;
}

.services h2 {
    font-size: clamp(28px, 5vw, 40px);
    color: var(--primary);
    margin-top: 10px;
}

/* GRID */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* CARD */
.service-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* EFFET HOVER PRO */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* ICON */
.service-card .icon {
    font-size: 35px;
    margin-bottom: 15px;
}

/* TITRE */
.service-card h3 {
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 10px;
}

/* TEXTE */
.service-card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

/* LIGNE DESIGN (effet premium) */
.service-card::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* ================= SERVICE POINTS PRO ================= */

.service-points {
    display: grid;
    grid-template-columns: 1fr; /* 🔥 AU LIEU DE 2 COLONNES */
    gap: 10px;
    margin-top: 18px;
    text-align: left;
}

/* CHAQUE POINT */
.service-points span {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;

    display: flex;
    align-items: center;
}


/* BULLET PREMIUM */
.service-points span::before {
    content: "";
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 7px;
}

/* EFFET HOVER PRO */
.service-points span:hover {
    color: var(--primary);
    transform: translateX(3px);
    transition: 0.2s;
}

/* MOBILE */
@media (max-width: 768px) {
    .service-points {
        grid-template-columns: 1fr;
    }
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .services {
        padding: 60px 20px;
    }

    .services h2 {
        font-size: 22px;
        line-height: 1.4;
    }

    .service-card {
        padding: 25px 15px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .service-card p {
        font-size: 13px;
    }
}
/* ================= BOUTON SERVICE ================= */

.service-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;

    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    font-weight: 600;

    transition: all 0.3s ease;
}

/* Hover pro */
.service-btn:hover {
    background: linear-gradient(45deg, var(--accent), var(--primary));
    transform: translateY(-2px);
}

/* Alignement propre */
.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


/* ================= PROJETS ================= */
/* ================= PROJETS ================= */

.projects {
    padding: 80px 20px;
    text-align: center;
    background: var(--light);
}

.projects h2 {
    font-size: clamp(28px, 5vw, 40px);
    color: var(--primary);
    margin-top: 10px;
}

/* GRID */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* CARD */
.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* IMAGE */
.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* OVERLAY */
.project-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.8),
        rgba(0,0,0,0.2),
        transparent
    );

    color: white;
    text-align: left;
}

.project-overlay h3 {
    font-size: 18px;
}

.project-overlay p {
    font-size: 13px;
    opacity: 0.9;
}

/* BOUTON DETAILS */
.btn-details {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px;
    background: var(--secondary);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    transition: 0.3s ease;
}

.btn-details:hover {
    background: var(--primary);
}

/* CTA */
.projects-cta {
    margin-top: 50px;
}


/* ================= TESTIMONIALS PREMIUM ================= */

.testimonials {
    padding: 80px 20px;
    text-align: center;
    background: var(--light);
}

.testimonials h2 {
    font-size: clamp(28px, 5vw, 40px);
    color: var(--primary);
    margin-top: 10px;
}

.testimonial-intro {
    color: var(--gray);
    margin-top: 10px;
    font-size: 15px;
}

/* GRID */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* CARD */
.testimonial-card {
    background: var(--white);
    padding: 25px;
    border-radius: 16px;
    text-align: left;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s ease;

    position: relative;
}

/* EFFET HOVER */
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* TEXTE */
.testimonial-text {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* USER */
.testimonial-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-user img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-user h4 {
    font-size: 15px;
    color: var(--primary);
}

.testimonial-user span {
    font-size: 12px;
    color: var(--gray);
}

/* GUILLEMETS DESIGN */
.testimonial-card::before {
    content: "“";
    font-size: 60px;
    color: var(--accent);
    position: absolute;
    top: 10px;
    left: 15px;
    opacity: 0.15;
}

/* MOBILE */
@media (max-width: 768px) {
    .testimonial-text {
        font-size: 13px;
    }
}


/* ================= CONTACT PREMIUM ================= */

.contact-header {
    text-align: center;
    max-width: 700px;
    margin: auto;
    margin-bottom: 40px;
}

.contact-header h2 {
    font-size: clamp(30px, 5vw, 42px);
    color: var(--primary);
    margin-top: 10px;
}

.contact-header h3 {
    font-size: 20px;
    color: var(--accent);
    margin-top: 10px;
}

.contact-header p {
    color: var(--gray);
    font-size: 15px;
    margin-top: 10px;
}
.contact-clean {
    padding: 80px 20px;
    background: #f5f5f5;
}

/* GRID */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

/* BOX STYLE */
.contact-box {
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* TITRES */
.contact-box h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form label {
    font-size: 13px;
    font-weight: 500;
}

/* INPUT */
form input,
form select,
form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: inherit;
}

/* ROW */
.form-row {
    display: flex;
    gap: 10px;
}

.form-row div {
    flex: 1;
}

/* BUTTON */
form button {
    margin-top: 10px;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #8B1E1E, #B83227);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* RIGHT SIDE */
.contact-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* INFO ITEM */
.info-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.info-item span {
    font-size: 20px;
}

.info-item strong {
    font-size: 14px;
    color: var(--primary);
}

.info-item p {
    font-size: 13px;
    color: var(--gray);
}

/* MAP */
.map-box iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 10px;
}

/* MOBILE */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }
}

.contact-header {
    text-align: center;
    max-width: 700px;
    margin: auto;
    margin-bottom: 60px; /* 🔥 plus d’air */
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    nav {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        height: 100vh;
        width: 70%;
        background: white;
        flex-direction: column;
        padding: 40px 20px;
    }

    nav.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        height: auto;
        min-height: 70vh;
        padding: 60px 20px 100px;
    }

    .hero-container {
        text-align: center;
        align-items: center;
    }

    .hero h1 {
        font-size: 24px;
    }

    .badge {
        top: 15px;
        left: 15px;
        font-size: 11px;
        padding: 6px 12px;
    }

    .cta-container {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ================= TABLETTE ================= */
@media (max-width: 1024px) {

    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .service-list {
        grid-template-columns: repeat(2, 1fr);
    }


    .hero h1 {
        font-size: 32px;
    }
}

/* ================= PETITS TELEPHONES ================= */
@media (max-width: 480px) {

    .hero h1 {
        font-size: 22px;
        line-height: 1.4;
    }

    .logo h2 {
        font-size: 13px;
    }

    .logo p {
        font-size: 10px;
    }

    .cta-text h3 {
        font-size: 16px;
    }

    .cta-text p {
        font-size: 13px;
    }

    .badge {
        font-size: 10px;
        padding: 5px 10px;
    }
}

/* ================= CORRECTION DEBORDEMENT ================= */


section {
    width: 100%;
    overflow-x: hidden;
}

/* ================= GRILLE RESPONSIVE ================= */
.service-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}



/* ================= ABOUT MOBILE PRO ULTRA CLEAN ================= */
@media (max-width: 768px) {

    .about {
        padding: 60px 20px;
    }

    .about-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    /* IMAGE */
    .about-image {
        order: -1; /* image en haut */
    }

    .about-image img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 14px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }

    /* TEXTE */
    .about-content {
        align-items: flex-start; /* 🔥 plus pro que centré */
        text-align: left;
        gap: 18px;
    }

    .about-subtitle {
        font-size: 24px;
        letter-spacing: 2px;
        color: var(--accent);
    }

    .about h2 {
        font-size: 22px;
        line-height: 1.4;
    }

    .about p {
        font-size: 14px;
        line-height: 1.7;
        color: var(--gray);
    }

    /* FEATURES VERSION PREMIUM */
    .about-features {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
    }

    .about-features div {
        display: flex;
        align-items: center;
        gap: 10px;

        background: #fff;
        padding: 12px;
        border-radius: 10px;

        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        font-size: 14px;
    }

    .about-features div::before {
        content: "✔";
        color: var(--accent);
        font-weight: bold;
    }
}
/* ================= FEATURES VERSION PREMIUM (PC + MOBILE) ================= */

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
}

.about-features div {
    display: flex;
    align-items: center;
    gap: 10px;

    background: #fff;
    padding: 14px;
    border-radius: 10px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.06);

    font-size: 15px;
    font-weight: 500;
}

.about-features div::before {
    content: "✔";
    color: var(--accent);
    font-weight: bold;
}





.contact-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.call-btn, .whatsapp-btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Bouton appel */
.call-btn {
    background: rgb(234, 96, 5);
    color: var(--primary);
}

.call-btn:hover {
    background: var(--accent);
    color: rgb(0, 0, 0);
    transform: translateY(-2px);
}

/* Bouton WhatsApp */
.whatsapp-btn {
    background: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
}
.contact-buttons {
    position: relative;
    z-index: 10;
}




/* ================= ALERT ================= */
.alert {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;

    font-family: 'Poppins', sans-serif;

    animation: fadeIn 0.4s ease;
    transition: all 0.4s ease;

    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* ================= TEXT ================= */
.alert-content strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.alert-content p {
    font-size: 13px;
    margin: 0;
    opacity: 0.9;
}

/* ================= SUCCESS ================= */
.alert.success {
    background: linear-gradient(135deg, #e6f9f0, #f4fff9);
    border-left: 4px solid #28c76f;
    color: #0f5132;
}

/* ================= ERROR ================= */
.alert.error {
    background: linear-gradient(135deg, #ffeaea, #fff5f5);
    border-left: 4px solid #ea5455;
    color: #7a1c1c;
}

/* ================= PROGRESS BAR ================= */
.alert::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(0,0,0,0.2);
    animation: progressBar 5s linear forwards;
}

/* ================= CLOSE BUTTON ================= */
.close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 12px;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
}

.close-btn:hover {
    opacity: 1;
}

/* ================= ANIMATIONS ================= */
@keyframes progressBar {
    from { width: 100%; }
    to { width: 0%; }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* CARD */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

/* IMAGE */
.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: 0.4s;
}

/* OVERLAY */
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    color: #fff;
}

/* TITRE */
.project-overlay h3 {
    margin: 0;
    font-size: 18px;
}

/* TEXTE */
.project-overlay p {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 10px;
}

/* 🔥 BOUTON PREMIUM */
.project-btn {
    display: inline-block;
    padding: 8px 14px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    transition: 0.3s;
    width: fit-content;
}

/* HOVER */
.project-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

/* 🔥 EFFET IMAGE */
.project-card:hover img {
    transform: scale(1.05);
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 12px;
    margin-top: 20px;
}

.empty-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #111827;
}

.empty-state p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
}