/* ===== VARIABLES CSS ===== */
:root {
    /* Couleurs principales */
    --primary-blue: #1e3a8a;
    --primary-green: #27ae60;
    --primary-green-dark: #229954;
    --light-blue: #3b82f6;
    --dark-blue: #1e2761;

    /* Couleurs neutres */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Typographie */
    --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Poppins', sans-serif;

    /* Tailles */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Espacements améliorés */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-14: 3.5rem;
    --space-16: 4rem;
    --space-18: 4.5rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-28: 7rem;
    --space-32: 8rem;

    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

/* ===== UTILITAIRES DE LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-6);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -var(--space-3);
}

.col {
    flex: 1;
    padding: 0 var(--space-3);
}

.col-1 { flex: 0 0 8.333333%; }
.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-6 { flex: 0 0 50%; }
.col-8 { flex: 0 0 66.666667%; }
.col-12 { flex: 0 0 100%; }

/* ===== BOUTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    gap: var(--space-2);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    border: 2px solid var(--primary-green);
}

.btn-primary:hover {
    background-color: var(--primary-green-dark);
    border-color: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--white);
}

.btn-white:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-100);
    transform: translateY(-2px);
}

.btn-sm {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

/* ===== CARTES ===== */
.card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: var(--space-6);
}

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

.card-header {
    padding: var(--space-8);
    border-bottom: 1px solid var(--gray-200);
}

.card-body {
    padding: var(--space-8);
}

.card-footer {
    padding: var(--space-8);
    border-top: 1px solid var(--gray-200);
    background-color: var(--gray-100);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--space-24) 0;
}

.section-sm {
    padding: var(--space-16) 0;
}

.section-lg {
    padding: var(--space-32) 0;
}

.section-dark {
    background-color: var(--primary-blue);
    color: var(--white);
}

.section-light {
    background-color: var(--light-gray);
}

/* ===== TYPOGRAPHIE ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-primary { color: var(--primary-blue); }
.text-green { color: var(--primary-green); }
.text-white { color: var(--white); }
.text-gray { color: var(--gray-600); }
.text-dark { color: var(--gray-800); }

.title-main {
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-8);
    letter-spacing: -0.02em;
}

.title-section {
    font-size: var(--text-4xl);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-6);
    letter-spacing: -0.01em;
}

.title-card {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
    line-height: 1.3;
}

.subtitle {
    font-size: var(--text-lg);
    color: var(--gray-600);
    margin-bottom: var(--space-8);
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== NAVIGATION ===== */
/* Navigation styles are now in header-footer.css */
/* Commented out to prevent conflicts with the actual navbar */
/*
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.navbar.navbar-scrolled {
    padding: var(--space-3) 0;
    box-shadow: var(--shadow-lg);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-8);
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}
*/

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: var(--space-3) var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    border-radius: var(--radius-md);
}

.nav-link:hover {
    color: var(--primary-green);
    background-color: var(--gray-100);
}

.nav-link.active {
    color: var(--primary-blue);
    background-color: var(--gray-100);
}

.nav-link i {
    font-size: var(--text-sm);
    transition: transform 0.3s ease;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    min-width: 280px;
    padding: var(--space-4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background-color: var(--gray-100);
    color: var(--primary-green);
    border-left-color: var(--primary-green);
    transform: translateX(5px);
}

.nav-cta {
    margin-left: var(--space-6);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    gap: var(--space-1);
    position: relative;
    z-index: 1002;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-btn:hover span {
    background-color: var(--primary-green);
}

/* Animation du bouton hamburger */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background-color: var(--primary-green);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-25px);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background-color: var(--primary-green);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: var(--space-4);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-200);
        transform: translateY(-100vh);
        transition: transform 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: var(--space-4);
        border-bottom: 1px solid var(--gray-200);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--gray-100);
        margin-top: var(--space-2);
        border-radius: var(--radius-md);
    }

    .nav-cta {
        margin: var(--space-4) 0 0 0;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

/* ===== FORMULAIRES ===== */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    margin-bottom: var(--space-3);
    font-weight: 500;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: var(--space-4);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    transition: border-color 0.3s ease;
    background-color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right var(--space-4) center;
    background-repeat: no-repeat;
    background-size: 1em;
    padding-right: var(--space-12);
}

/* ===== ICÔNES ===== */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-green);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    color: var(--white);
    font-size: var(--text-2xl);
}

.icon-sm {
    width: 40px;
    height: 40px;
    font-size: var(--text-lg);
}

.icon-lg {
    width: 80px;
    height: 80px;
    font-size: var(--text-3xl);
}

/* ===== UTILITAIRES D'ESPACEMENT ===== */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.ml-0 { margin-left: 0; }
.mr-0 { margin-right: 0; }

.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }

    .row {
        margin: 0 -var(--space-2);
    }

    .col {
        padding: 0 var(--space-2);
    }

    .title-main {
        font-size: var(--text-3xl);
        margin-bottom: var(--space-6);
    }

    .title-section {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-4);
    }

    .section {
        padding: var(--space-16) 0;
    }

    .section-lg {
        padding: var(--space-20) 0;
    }

    .col-sm-12 { flex: 0 0 100%; }
    .col-sm-6 { flex: 0 0 50%; }
    .col-sm-4 { flex: 0 0 33.333333%; }

    .navbar {
        padding: var(--space-4) var(--space-8);
    }

    .navbar-nav {
        flex-direction: column;
        gap: var(--space-4);
    }

    .btn-lg {
        padding: var(--space-4) var(--space-6);
        font-size: var(--text-base);
    }

    .card-body {
        padding: var(--space-6);
    }

    .card {
        margin-bottom: var(--space-4);
    }
}

/* ===== PAGE HEADERS ===== */
.page-header {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    padding: 180px 50px 120px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-header::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

/* Page-specific background images */
.page-header.page-header-services {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../assets/ciref/IMG-20250930-WA0012.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-header.page-header-blog {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../assets/ciref/IMG-20250930-WA0029.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-header.page-header-about {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../assets/ciref/bannerabout.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.page-header.page-header-projets {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../assets/ciref/project.jpg');
    background-size: cover;
    background-position: bottom;
    background-attachment: fixed;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.page-header p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .page-header {
        padding: 150px 30px 80px;
        min-height: 400px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .page-header p {
        font-size: 16px;
    }

    /* Fix background images on mobile - prevent repetition and ensure proper sizing */
    .page-header.page-header-services,
    .page-header.page-header-blog,
    .page-header.page-header-about,
    .page-header.page-header-projets {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }
}

/* ===== FORM COMPONENTS ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group label i {
    color: #27ae60;
    width: 16px;
    margin-right: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}

.submit-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.3);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ===== CTA SECTIONS ===== */
.cta-section {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    color: white;
    margin: 60px 0;
}

.cta-section h2 {
    margin-bottom: 20px;
    font-size: 32px;
}

.cta-section p {
    margin-bottom: 30px;
    font-size: 18px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.cta-btn-primary {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.3);
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(39, 174, 96, 0.4);
    color: white;
}

.cta-btn-secondary {
    background: white;
    color: #1e293b;
    border: 2px solid white;
}

.cta-btn-secondary:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .cta-section {
        padding: 40px 20px;
    }

    .cta-section h2 {
        font-size: 24px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== FEATURE/SERVICE CARDS ===== */
.service-features,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}

.feature-card h3 {
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 22px;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* ===== ALERTS & STATUS MESSAGES ===== */
.alert {
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    border-left: 4px solid #27ae60;
    background: #d1fae5;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    border-left-color: #27ae60;
    background: #d1fae5;
    color: #065f46;
}

.alert-error {
    border-left-color: #dc2626;
    background: #fef2f2;
    color: #b91c1c;
}

.alert-info {
    border-left-color: #3b82f6;
    background: #dbeafe;
    color: #1e40af;
}

.alert-warning {
    border-left-color: #f59e0b;
    background: #fef3c7;
    color: #92400e;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert li {
    margin-bottom: 5px;
}

/* ===== NEWSLETTER CTA ===== */
.newsletter-cta-section {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    padding: 60px 50px;
    border-radius: 20px;
}

.newsletter-cta-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.newsletter-cta-text {
    flex: 1;
    color: white;
}

.newsletter-cta-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.newsletter-cta-text p {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.6;
}

.newsletter-cta-form {
    flex: 1;
}

.newsletter-cta-input-group {
    display: flex;
    gap: 1rem;
}

.newsletter-cta-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-cta-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-cta-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.newsletter-cta-button {
    padding: 1rem 2rem;
    background: white;
    color: #3b82f6;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.newsletter-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .newsletter-cta-section {
        padding: 40px 30px;
    }

    .newsletter-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .newsletter-cta-text h2 {
        font-size: 1.5rem;
        justify-content: center;
    }

    .newsletter-cta-input-group {
        flex-direction: column;
    }

    .newsletter-cta-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }

    .row {
        margin: 0;
    }

    .col {
        padding: 0 var(--space-1);
    }

    .section {
        padding: var(--space-12) 0;
    }

    .title-main {
        font-size: var(--text-2xl);
    }

    .card-body {
        padding: var(--space-4);
    }
}/* ===== PHASE 1: FORM COMPONENTS ===== */

/* Form Container */
.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #27ae60;
}

.checkbox-group label {
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    margin: 0;
}

/* Help Text & Error Messages */
.help-text {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* ===== PHASE 1: TABLE SYSTEM ===== */

.admin-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.admin-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 700;
    color: #1e293b;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}

.admin-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.admin-table tbody tr {
    transition: background 0.2s;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

/* ===== PHASE 1: BADGE SYSTEM ===== */

.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-neutral {
    background: #f1f5f9;
    color: #64748b;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* ===== PHASE 1: BUTTON VARIANTS ===== */

.btn-gradient {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

.btn-cancel {
    background: #f1f5f9;
    color: #64748b;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cancel:hover {
    background: #e2e8f0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-edit {
    background: #27ae60;
    color: white;
}

.btn-edit:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-delete {
    background: #ef4444;
    color: white;
}

.btn-delete:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-view {
    background: #27ae60;
    color: white;
}

.btn-view:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* ===== PHASE 2: PAGINATION ===== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    color: #334155;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #27ae60;
    color: white;
}

.pagination .active span {
    background: #27ae60;
    color: white;
}

/* ===== PHASE 2: UPLOAD AREAS ===== */

.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    background: #f8fafc;
}

.upload-area:hover {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.02);
}

.upload-area.dragover {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.05);
}

/* ===== PHASE 3: UTILITY ANIMATIONS ===== */

.hover-lift {
    transition: transform 0.3s, box-shadow 0.3s;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-lift-sm {
    transition: transform 0.3s, box-shadow 0.3s;
}

.hover-lift-sm:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hover-lift-lg {
    transition: transform 0.3s, box-shadow 0.3s;
}

.hover-lift-lg:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.hover-slide-right {
    transition: transform 0.3s;
}

.hover-slide-right:hover {
    transform: translateX(10px);
}

/* ===== ADDITIONAL UTILITIES ===== */

/* Icon Gradients */
.icon-gradient {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.icon-circle-sm {
    width: 60px;
    height: 60px;
    font-size: 28px;
}

.icon-circle-md {
    width: 70px;
    height: 70px;
    font-size: 32px;
}

.icon-circle-lg {
    width: 80px;
    height: 80px;
    font-size: 36px;
}

/* Section Variations */
.section-with-padding {
    padding: 80px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section-with-padding {
        padding: 60px 20px;
    }
}

.section-dark {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
}

/* Responsive Form Actions */
@media (max-width: 640px) {
    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn-gradient,
    .form-actions .btn-cancel {
        width: 100%;
        justify-content: center;
    }
}

/* ===== TECHNOLOGIES & PROCESS SECTIONS ===== */
/* Note: Les styles principaux sont dans services-responsive.css */
/* On ajoute seulement les styles visuels spécifiques */

.technologies {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.tech-item {
    border-left: 4px solid #27ae60;
}

.process-section {
    background: white;
    border-radius: 20px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.process-step {
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    font-weight: 700;
    color: white;
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

/* ===== SERVICE CONTACT FORM SECTION ===== */
.service-contact-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 80px 50px;
    border-radius: 20px;
    margin: 80px 0 60px;
    color: white;
}

.service-contact-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-contact-section .subtitle {
    text-align: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.service-contact-form {
    background: white;
    padding: 50px;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-context-info {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.service-context-info i {
    font-size: 24px;
}

.form-privacy-note {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-privacy-note i {
    color: #27ae60;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}
