/* ==========================================
   VARIABLES
========================================== */
:root {
    /* Colors */
    --primary-color: #1e3a5f;
    --secondary-color: #2d4a6d;
    --accent-color: #3498db;
    --success-color: #27ae60;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --dark-bg: #1e3a5f;
    --border-color: #e1e8ed;
    
    /* Typography */
    --font-primary: 'Roboto', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    
    /* Spacing */
    --header-height: 80px;
    --section-padding: 80px 0;
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
}

/* ==========================================
   RESET
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ==========================================
   REUSABLE CLASSES
========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
}

.section-title-white {
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 5px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-dark {
    background: var(--primary-color);
    color: var(--white);
    padding: 16px 32px;
    font-size: 16px;
}

.btn-dark:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
    padding: 18px 36px;
    font-size: 18px;
}

.btn-success:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==========================================
   HEADER
========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-subtitle {
    font-size: 14px;
    color: var(--text-light);
}

.nav-list {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.nav-phone:hover {
    color: var(--accent-color);
}

.nav-whatsapp {
    background: var(--success-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-whatsapp:hover {
    background: #229954;
    transform: translateY(-2px);
}

.nav-toggle,
.nav-close {
    display: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

/* ==========================================
   HERO SECTION
========================================== */
.hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    margin-top: var(--header-height);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(135deg, rgba(30, 58, 95, 0.9) 0%, rgba(45, 74, 109, 0.85) 100%);*/
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 650px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-location {
    display: block;
}

.hero-description {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==========================================
   FEATURES BAR
========================================== */
.features {
    background: var(--white);
    padding: 40px 0;
    box-shadow: var(--shadow-sm);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--light-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 24px;
    color: var(--accent-color);
}

.feature-text {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

/* ==========================================
   SERVICES SECTION
========================================== */
.services {
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon i {
    font-size: 32px;
    color: var(--white);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--text-dark);
}

.service-list li i {
    color: var(--success-color);
    font-size: 16px;
}

.rge-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.rge-badge img {
    height: 80px;
}

/* ==========================================
   BEFORE/AFTER SECTION
========================================== */
.before-after {
    background: var(--white);
}

.ba-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.ba-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.ba-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.ba-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--text-dark);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
	/*margin-right: auto;
	margin-left: auto;
	align-items: center;*/
}

.ba-badge-after {
    background: var(--primary-color);
}

.ba-button {
    text-align: center;
}

/* ==========================================
   TESTIMONIALS SECTION
========================================== */
.testimonials {
    background: var(--dark-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 35px;
    border-radius: 10px;
    text-align: center;
}

.testimonial-text {
    font-size: 18px;
    font-style: italic;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-stars {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.testimonial-stars i {
    color: #ffd700;
    font-size: 18px;
}

/* ==========================================
   CTA SECTION
========================================== */
.cta {
    background: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.cta-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* ==========================================
   FOOTER
========================================== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.footer-logo-text span:first-child {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.footer-logo-text span:last-child {
    font-size: 14px;
    opacity: 0.8;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-list a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-contact i {
    color: var(--accent-color);
    margin-top: 3px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

/* ==========================================
   SCROLL TO TOP
========================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* ==========================================
   RESPONSIVE
========================================== */
@media screen and (max-width: 1024px) {
    .nav-list {
        gap: 25px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        padding: 80px 30px 30px;
        transition: var(--transition);
        z-index: 1001;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-item {
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link {
        display: block;
        padding: 15px 0;
    }
    
    .nav-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-phone {
        font-size: 14px;
    }
    
    .nav-whatsapp {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .hero {
        min-height: 550px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-grid,
    .ba-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .logo-img {
        height: 35px;
    }
    
    .logo-name {
        font-size: 16px;
    }
    
    .logo-subtitle {
        font-size: 12px;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .cta-title {
        font-size: 28px;
    }
}

/* ==========================================
   CONTACT FORM
========================================== */
.contact-form-wrapper {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: var(--shadow-lg);
    text-align: left;
    animation: fadeInUp 0.4s ease;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--accent-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-primary);
    color: var(--text-dark);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #bdc3c7;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 17px;
    border-radius: 8px;
    margin-top: 5px;
}

/* Message succès */
.form-success {
    background: #d5f5e3;
    border: 2px solid var(--success-color);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    animation: fadeInUp 0.4s ease;
}

.form-success i {
    font-size: 55px;
    color: var(--success-color);
    margin-bottom: 15px;
    display: block;
}

.form-success p {
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.6;
    font-weight: 500;
}

/* Message erreur */
.form-error {
    background: #fde8e8;
    border: 2px solid #e74c3c;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    animation: fadeInUp 0.4s ease;
}

.form-error i {
    font-size: 45px;
    color: #e74c3c;
    margin-bottom: 15px;
    display: block;
}

.form-error p {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .contact-form-wrapper {
        padding: 25px 20px;
    }
}