/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0033CC;
    --primary-red: #DC143C;
    --accent-red: #FF4444;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;
}

/* Top Bar */
.top-bar {
    background: #003DA5;
    color: white;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-name-animated {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 2px;
    color: white;
    text-transform: uppercase;
}

.company-name-animated span {
    display: inline-block;
    opacity: 0;
    animation: fadeInLetter 0.3s forwards;
}

@keyframes fadeInLetter {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-flags {
    display: flex;
    gap: 10px;
}

.flag-btn {
    background: transparent;
    border: 2px solid transparent;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.flag-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.flag-btn.active {
    border-color: white;
    background: rgba(255, 255, 255, 0.15);
}

.flag-btn img {
    display: block;
    border-radius: 2px;
}

/* Ajuster le header pour compenser la top bar */
.header {
    margin-top: 45px;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--bg-white);
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: 900;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

/* Header */
.header-top {
    background-color: var(--primary-blue);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.lang-link {
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.lang-link.active,
.lang-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.navbar {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #003366;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    position: relative;
    gap: 15px;
}

.logo {
    background: white;
    padding: 6px 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
}

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

.logo:hover {
    transform: translateY(-2px);
}

.logo h1 {
    font-size: 28px;
    color: var(--primary-blue);
    font-weight: 700;
}

/* Tagline à côté du logo */
.logo-tagline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 2px solid #003366;
}

.tagline-item {
    font-size: 13px;
    font-weight: 600;
    color: #003366;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tagline-item:hover {
    color: #DC143C;
    transform: scale(1.05);
}

.tagline-separator {
    color: #003366;
    font-weight: bold;
    opacity: 0.5;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .logo-tagline {
        display: none;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    flex-wrap: nowrap;
    flex-grow: 1;
    justify-content: center;
}

.nav-link {
    color: white;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.3px;
    transition: all 0.3s;
    padding: 10px 14px;
    white-space: nowrap;
    border-radius: 6px;
    position: relative;
    background: linear-gradient(145deg, #003d7a 0%, #002d5a 100%);
    box-shadow: 0 4px 8px rgba(0, 51, 102, 0.3),
                inset 0 1px 2px rgba(255, 255, 255, 0.1),
                inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(145deg, #DC143C 0%, #B01030 100%);
    box-shadow: 0 6px 12px rgba(220, 20, 60, 0.4),
                inset 0 1px 2px rgba(255, 255, 255, 0.2),
                inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(145deg, #DC143C 0%, #B01030 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(145deg, #FF1744 0%, #DC143C 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 20, 60, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    padding: 12px 24px;
    border: 2px solid var(--primary-blue);
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #003366;
    transition: all 0.3s;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.lang-btn {
    background: white;
    color: #003366;
    border: 2px solid #003366;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0, 51, 102, 0.15);
    flex-shrink: 0;
}

.lang-btn:hover,
.lang-btn.active {
    background: #003366;
    color: white;
    border-color: #003366;
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.25);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(139, 26, 26, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.8;
}

.btn-hero {
    background-color: var(--primary-red);
    color: white;
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-block;
}

.btn-hero:hover {
    background-color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Stats Section */
.stats-section {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: 42px;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-gray);
}

/* Services Section */
.services-section {
    padding: 80px 0;
}

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

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: none;
}

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

.service-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 20px;
    border: none;
}

.service-image h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: white;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
    background-color: var(--primary-red);
    color: white;
    text-align: center;
}

.service-content h3 {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

/* Quote Section */
.quote-section {
    background-color: var(--primary-blue);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.quote-text {
    font-size: 28px;
    font-style: italic;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.quote-author {
    font-size: 18px;
    font-weight: 600;
}

/* Projects Section */
.projects-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

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

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

.project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.project-image {
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.project-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.project-description {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

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

.loading-text {
    text-align: center;
    color: var(--text-gray);
    font-size: 16px;
    padding: 40px 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-section .btn-primary:hover {
    background-color: var(--bg-light);
}

/* Footer */
.footer {
    background-color: var(--primary-blue);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    font-size: 24px;
}

.social-links a {
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 18px;
}

/* Services Detail */
.services-detail-section {
    padding: 80px 0;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.service-detail.reverse {
    direction: rtl;
}

.service-detail.reverse > * {
    direction: ltr;
}

.service-detail-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-detail-content h2 {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.service-detail-content p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-features {
    list-style: none;
}

.service-features li {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 12px;
    padding-left: 10px;
}

/* Process Section */
.process-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.process-step {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.process-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.process-step h3 {
    font-size: 20px;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.process-step p {
    font-size: 14px;
    color: var(--text-gray);
}

/* CEO Message */
.ceo-message-section {
    padding: 60px 0;
    background: #f5f5f5;
}

/* Carte d'introduction du PDG */
.ceo-intro-card {
    background: white;
    padding: 40px;
    margin-bottom: 30px;
    border: 3px solid #0033CC;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 51, 204, 0.15);
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: start;
}

.ceo-photo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ceo-photo-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 51, 204, 0.2);
    border: 4px solid #0033CC;
}

.ceo-info-container {
    text-align: left;
}

.ceo-name {
    font-size: 36px;
    font-weight: 700;
    color: #0033CC;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.ceo-title {
    font-size: 18px;
    color: #DC143C;
    margin-bottom: 25px;
    font-weight: 600;
}

.ceo-quote-box {
    background: #f8f9fa;
    padding: 20px 30px;
    border-left: 4px solid #DC143C;
    border-radius: 8px;
    margin-top: 20px;
}

.ceo-quote {
    font-size: 18px;
    font-style: italic;
    color: #555;
    line-height: 1.8;
    text-align: left;
}

/* Cartes de message */
.message-card {
    background: white;
    padding: 35px;
    margin-bottom: 25px;
    border: 3px solid #0033CC;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 51, 204, 0.15);
}

.message-title {
    font-size: 22px;
    font-weight: 700;
    color: #0033CC;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.message-text {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

/* Carte de signature */
.signature-card {
    background: white;
    padding: 35px;
    margin-top: 40px;
    border: 3px solid #0033CC;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 51, 204, 0.15);
    text-align: right;
}

.signature-text {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
    font-style: italic;
}

.signature-name {
    font-size: 26px;
    font-weight: 700;
    color: #0033CC;
    margin-bottom: 5px;
}

.signature-title {
    font-size: 16px;
    color: #DC143C;
    font-weight: 600;
}

/* Values Section */
.values-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

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

.value-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 20px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.value-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Projects Filter */
.projects-filter-section {
    padding: 80px 0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-blue);
    background-color: white;
    color: var(--primary-blue);
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-blue);
    color: white;
}

/* About Section */
.about-intro-section {
    padding: 80px 0;
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-intro-content h2 {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.about-intro-content p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-intro-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mission-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.mission-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mission-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.mission-card h3 {
    font-size: 20px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.mission-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    padding: 30px;
    background-color: white;
    border-left: 4px solid var(--primary-red);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.value-item h3 {
    font-size: 20px;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.value-item p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.certifications-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.certifications-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cert-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cert-item h3 {
    font-size: 18px;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.cert-item p {
    font-size: 14px;
    color: var(--text-gray);
}

.zone-section {
    padding: 80px 0;
}

.zone-content {
    max-width: 800px;
    margin: 0 auto;
}

.zone-content p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.zone-list {
    list-style: none;
    padding-left: 20px;
    margin: 20px 0;
}

.zone-list li {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.zone-list li::before {
    content: "📍";
    position: absolute;
    left: 0;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info-box h2,
.contact-form-box h2 {
    font-size: 28px;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 18px;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.contact-details p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.contact-details a {
    color: var(--primary-red);
    transition: color 0.3s;
}

.contact-details a:hover {
    color: var(--accent-red);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-message {
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 10px;
}

.form-message.success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #10B981;
}

.form-message.error {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #EF4444;
}

/* Admin Styles */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.admin-header h1 {
    font-size: 32px;
    color: var(--primary-blue);
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.login-container h1 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.projects-table {
    width: 100%;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.projects-table th,
.projects-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.projects-table th {
    background-color: var(--primary-blue);
    color: white;
    font-weight: 600;
}

.projects-table tr:hover {
    background-color: var(--bg-light);
}

.btn-edit,
.btn-delete {
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin-right: 5px;
}

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

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

/* Social Links Styling */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 16px;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.social-icon {
    font-size: 20px;
    margin-right: 8px;
}

/* Animations et effets dynamiques */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.animate-on-scroll {
    opacity: 0;
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Effet ripple pour les boutons */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Barre de progression du scroll */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #DC143C, #003366);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Loader de page */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #003366;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Effet hover 3D sur les cartes */
.hover-3d {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.hover-3d:hover {
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.3);
}

/* Amélioration des cartes de service */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.25);
}

/* Amélioration des boutons */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(220, 20, 60, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Effet de brillance sur les liens */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.nav-link:hover::after {
    width: 300px;
    height: 300px;
}

/* Animation des icônes */
.value-icon, .service-icon {
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon,
.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
    animation: pulse 1s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    /* Navbar mobile */
    .nav-wrapper {
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .logo {
        padding: 4px 10px;
    }

    .logo img {
        height: 35px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        font-size: 14px;
        padding: 12px 16px;
        width: 100%;
        text-align: center;
        margin: 2px 0;
        display: block;
        border-radius: 4px;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
        margin: 8px 0;
        padding: 10px 15px;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .language-switcher {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
        gap: 8px;
    }

    .lang-btn {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 50px;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }

    /* Hero section mobile */
    .hero {
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    /* Services section mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .service-card {
        padding: 25px 20px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .service-card p {
        font-size: 14px;
    }

    /* Values section mobile */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .value-card {
        padding: 25px 20px;
    }

    .value-icon svg {
        width: 50px;
        height: 50px;
    }

    .value-card h3 {
        font-size: 18px;
    }

    .value-card p {
        font-size: 14px;
    }

    /* Section titles mobile */
    .section-title {
        font-size: 24px;
        padding: 0 15px;
    }

    /* Container mobile */
    .container {
        padding: 0 15px;
        max-width: 100%;
    }

    /* CEO intro card mobile */
    .ceo-intro-card {
        grid-template-columns: 1fr;
        padding: 25px 20px;
        gap: 20px;
    }

    .ceo-photo-img {
        max-width: 200px;
        margin: 0 auto;
    }

    .ceo-info-container {
        text-align: center;
    }

    .ceo-name {
        font-size: 24px;
    }

    .ceo-title {
        font-size: 16px;
    }

    /* Message cards mobile */
    .message-card {
        padding: 25px 20px;
    }

    .message-title {
        font-size: 18px;
    }

    .message-text {
        font-size: 14px;
    }

    /* Other grids mobile */
    .service-detail,
    .about-intro,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .service-detail.reverse {
        direction: ltr;
    }

    .stats-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 18px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 14px;
    }
}
