/* ==========================================
   CSS Variables & Reset
   ========================================== */
:root {
    /* Brand Colors extracted from the logo */
    --primary: #c9004a;
    /* Crimson/Magenta */
    --secondary: #87115e;
    /* Deep Purple */

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(20, 20, 30, 0.85) 0%, rgba(135, 17, 94, 0.3) 100%);

    /* Neutrals */
    --dark: #1e1e2f;
    --dark-alt: #2a2a3e;
    --text: #4a4a5e;
    --light: #f8f9fc;
    --white: #ffffff;
    --border: #eaedf3;

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Shadows & Radii */
    --shadow-sm: 0 4px 6px rgba(135, 17, 94, 0.05);
    --shadow-md: 0 10px 25px rgba(135, 17, 94, 0.08);
    --shadow-lg: 0 20px 40px rgba(135, 17, 94, 0.12);
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   Typography & Utilities
   ========================================== */
h1,
h2,
h3,
h4 {
    color: var(--dark);
    line-height: 1.2;
    font-weight: 700;
}

.text-gradient {
    background: var(--gradient-brand);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-center {
    text-align: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light);
}

.pb-0 {
    padding-bottom: 0 !important;
}

.separator {
    height: 4px;
    width: 60px;
    background: var(--gradient-brand);
    margin: 20px auto;
    border-radius: 2px;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-brand);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(201, 0, 74, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(201, 0, 74, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--secondary);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    /* On ajoute un fond foncé transparent pour garantir la lecture du menu peu importe l'image derrière */
    background: rgba(30, 30, 47, 0.4);
    backdrop-filter: blur(5px);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    outline: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: 60px;
    object-fit: cover;
    border-radius: 50%;
    background: var(--white);
    padding: 2px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.navbar.scrolled .logo-img {
    height: 50px;
    width: 50px;
}

.logo-placeholder {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .logo-placeholder {
    color: var(--secondary);
}

.logo-placeholder span {
    font-weight: 300;
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn) {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.navbar.scrolled .nav-links a:not(.btn) {
    color: var(--dark);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

/* Navbar button override for non-scrolled state */
.navbar:not(.scrolled) .nav-links .btn-primary {
    background: var(--white);
    color: var(--secondary);
}

.navbar:not(.scrolled) .nav-links .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--dark);
    background: none;
    border: none;
    cursor: pointer;
}

.navbar:not(.scrolled) .mobile-menu-btn {
    color: var(--white);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--dark);
    /* In case image doesn't load */
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
}

.hero-content {
    color: var(--white);
    max-width: 800px;
    z-index: 1;
}

.hero-content h1 {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-content h1 .text-highlight {
    color: var(--white);
    position: relative;
    display: inline-block;
    z-index: 1;
}

.hero-content h1 .text-highlight::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: -5px;
    right: -5px;
    height: 35%;
    background: var(--primary);
    z-index: -1;
    border-radius: 4px;
    opacity: 0.9;
    transform: rotate(-1deg);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    font-weight: 400;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ==========================================
   Services Grid
   ========================================== */
.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 0, 74, 0.2);
}

.service-img-wrapper {
    height: 200px;
    position: relative;
    background: var(--light);
}

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    color: var(--white);
    font-size: 4rem;
    opacity: 0.8;
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--secondary);
}

.service-content p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.service-link i {
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ==========================================
   Banner Section (Valeurs)
   ========================================== */
.banner-section {
    background: var(--gradient-brand);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.banner-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 300;
    opacity: 0.95;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.features-list li {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.features-list i {
    color: #ffb6c1;
    /* Soft pink for checkmarks */
    font-size: 1.3rem;
}

/* ==========================================
   Contact Area
   ========================================== */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto 80px auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--light);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(201, 0, 74, 0.1);
    background: var(--white);
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--primary);
    font-weight: 300;
}

.footer-about p {
    color: #a0a0b8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-contact h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-contact ul {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #a0a0b8;
}

.footer-contact i {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #a0a0b8;
    font-size: 0.9rem;
}

/* ==========================================
   Animations
   ========================================== */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-up {
    transform: translateY(40px);
}

.fade-in {
    transform: scale(0.95);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a:not(.btn) {
        color: var(--dark);
        font-size: 1.2rem;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
        /* Above mobile menu */
    }

    .mobile-menu-btn.active {
        color: var(--dark);
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .contact-form-wrapper {
        padding: 25px;
    }
}