/* 
=======================================
   INITAFRIC MAROC - STYLE OFFICIEL
   Couleurs de la marque :
   - Rose principal : #D12664
   - Gris foncé : #363635
   - Blanc : #FFFFFF
   - Rose clair (accent) : #C9A6B3
=======================================
*/

/* Variables */
:root {
    --primary-color: #D12664;        /* Rose AFRIC */
    --secondary-color: #363635;       /* Gris foncé */
    --accent-color: #C9A6B3;          /* Rose clair */
    --white: #FFFFFF;
    --light-bg: #F9F9F9;
    --dark-text: #363635;
    --gray-light: #E5E5E5;
    
    /* Dégradés */
    --gradient-primary: linear-gradient(135deg, #D12664, #B31F55);
    --gradient-dark: linear-gradient(135deg, #363635, #1A1A1A);
    
    /* Typographie */
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Ombres */
    --shadow-sm: 0 2px 10px rgba(209, 38, 100, 0.1);
    --shadow-md: 0 5px 20px rgba(209, 38, 100, 0.15);
    --shadow-lg: 0 10px 30px rgba(209, 38, 100, 0.2);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   TYPOGRAPHIE
======================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--secondary-color);
}

h1 span, h2 span, .highlight {
    color: var(--primary-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ========================================
   BOUTONS
======================================= */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #B31F55;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: #1A1A1A;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ========================================
   NAVIGATION
======================================= */
.navbar {
    background: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.8rem;
}

.logo-main .init {
    color: var(--secondary-color);
}

.logo-main .afric {
    color: var(--primary-color);
}

.logo-slogan {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--accent-color);
    font-weight: 300;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-menu a:hover:after {
    width: 100%;
}

.lang-switch a {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.lang-switch a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.lang-switch a:after {
    display: none;
}

/* ========================================
   HERO SECTION
======================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 70px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(54, 54, 53, 0.9), rgba(209, 38, 100, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-content h1 .init {
    color: var(--white);
}

.hero-content h1 .afric {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ========================================
   PAGE HEADER - UNIFIÉ POUR TOUTES LES PAGES
======================================= */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 4rem;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header .breadcrumb {
    color: var(--accent-color);
    font-size: 1rem;
}

/* ========================================
   STATS SECTION
======================================= */
.stats {
    padding: 4rem 0;
    background: var(--gradient-dark);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    color: var(--white);
}

/* ========================================
   SERVICES SECTION
======================================= */
.services {
    padding: 5rem 0;
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.service-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    gap: 1rem;
}

/* ========================================
   REFERENCES SECTION
======================================= */
.references {
    padding: 5rem 0;
    background: var(--white);
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.reference-item {
    background: var(--light-bg);
    padding: 2rem;
    text-align: center;
    border-radius: 5px;
    font-weight: 600;
    color: var(--secondary-color);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.reference-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* ========================================
   COVERAGE SECTION
======================================= */
.coverage {
    padding: 5rem 0;
    background: linear-gradient(135deg, #F9F9F9, #FFFFFF);
}

.cities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.city-tag {
    background: var(--white);
    color: var(--secondary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid var(--primary-color);
    transition: all 0.3s;
}

.city-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ========================================
   QUICK QUOTE SECTION
======================================= */
.quick-quote {
    padding: 5rem 0;
    background: var(--gradient-primary);
    color: var(--white);
}

.quote-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.quote-box h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.quote-form {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    width: 100%;
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-body);
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--accent-color);
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    background: var(--secondary-color);
}

.btn-block:hover {
    background: #1A1A1A;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.form-note strong {
    color: var(--secondary-color);
}

/* ========================================
   FOOTER
======================================= */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-section .logo {
    margin-bottom: 1rem;
}

.footer-section .logo-main .init {
    color: var(--white);
}

.footer-section .logo-main .afric {
    color: var(--primary-color);
}

.footer-section .logo-slogan {
    color: var(--accent-color);
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========================================
   PAGE SERVICES
======================================= */
.services-detail {
    padding: 0 0 4rem;
}

.service-card-large {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.service-features {
    margin: 1.5rem 0;
}

.service-features h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.service-features ul {
    list-style: none;
}

.service-features li {
    margin-bottom: 0.3rem;
    color: #666;
}

/* ========================================
   WHY US / FEATURES
======================================= */
.why-us {
    padding: 4rem 0;
    background: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* ========================================
   PAGE CONTACT
======================================= */
.contact-section {
    padding: 0 0 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.contact-form h2 {
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.contact-info h2 {
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.info-card {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 40px;
}

.info-content h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--secondary-color);
}

.info-content p {
    color: #666;
    line-height: 1.4;
}

.social-contact {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.social-contact h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.map-section {
    margin-top: 2rem;
}

/* ========================================
   PAGE RÉALISATIONS
======================================= */
.portfolio-filters {
    padding: 0 0 2rem;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.portfolio-grid .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.portfolio-image {
    position: relative;
    aspect-ratio: 4/3;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(209, 38, 100, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: var(--white);
    padding: 1rem;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-small:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* ========================================
   PAGE À PROPOS
======================================= */
.about-story {
    padding: 0 0 4rem;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.story-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.team-member {
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.team-member h3 {
    margin-bottom: 0.3rem;
}

.member-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-desc {
    color: #666;
    font-size: 0.9rem;
}

/* ========================================
   LOGO STYLES
======================================= */
.logo-img {
    height: 60px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* ========================================
   FOOTER LOGO STYLES
======================================= */
.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Responsive footer logo */
@media (max-width: 768px) {
    .footer-logo-img {
        height: 40px;
    }
}

/* ========================================
   CONTACT PAGE - COMPLÉMENTS
======================================= */
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(209, 38, 100, 0.1);
}

.contact-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.closed {
    color: #999;
    font-style: italic;
}

.urgent {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.urgent .info-icon i {
    color: #ffc107;
}

/* Animation pour le bouton d'envoi */
.btn-block i {
    margin-right: 0.5rem;
    transition: transform 0.3s;
}

.btn-block:hover i {
    transform: translateX(5px);
}

/* ========================================
   RESPONSIVE
======================================= */
@media (max-width: 1024px) {
    .services-grid,
    .features-grid,
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--primary-color);
        margin: 2px 0;
        transition: 0.3s;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .stats-grid,
    .services-grid,
    .references-grid,
    .features-grid,
    .values-grid,
    .team-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid .grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-form h2 {
        font-size: 1.5rem;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .city-tag {
        width: 100%;
        text-align: center;
    }
    
    .logo-img {
        height: 35px;
    }
}

/* ========================================
   ANIMATIONS
======================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }


/* ========================================
   CORRECTION FINALE - FORCER TOUT LE HEADER
======================================= */
.page-header {
    background: linear-gradient(135deg, #363635, #D12664) !important;
    color: white !important;
    padding: 120px 0 60px !important;
    text-align: center !important;
    margin-top: 0 !important;
    margin-bottom: 4rem !important;
}

.page-header h1 {
    color: white !important;
    font-size: 3rem !important;
    margin-bottom: 1rem !important;
}

.page-header .breadcrumb {
    color: #C9A6B3 !important;
    font-size: 1rem !important;
}