/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Animation machine à écrire */
.typed-text {
    position: relative;
    display: inline-block;
}

.typed-text::after {
    content: '|';
    position: absolute;
    right: -10px;
    color: #ff0033;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Style pour les lettres rouges */
.hero-title .first-letter {
    color: #ff0033;
}
/* Animation de chargement */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ff0033;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* En-tête */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.glass-header.scrolled {
    padding: 15px 0;
    background: rgba(10, 10, 10, 0.95);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo-part-1 {
    color: #ff0033;
    margin-right: 20px;
}

.logo-part-2 {
    color: #ffffff;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ff0033;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #ff0033;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Section Hero */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    color: #cccccc;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(to right, #ff0033, #cc0029);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 0, 51, 0.3);
}

.cta-button:active {
    transform: translateY(-1px);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 51, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 0, 51, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 51, 0);
    }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-down-line {
    width: 2px;
    height: 30px;
    background-color: #ffffff;
    position: relative;
}

.scroll-down-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Section À propos */
.about-section {
    padding: 100px 0;
    background-color: #111111;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
}
.identity-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    align-items: center;
}
/* Style pour les nouveaux éléments */
.essential-mission {
    text-align: center;
    margin-top: 40px;
    font-family: 'Montserrat', sans-serif;
}
/* Styles pour la section Rejoignez-nous */
.join-section {
    background-color: #111111;
    padding: 100px 0;
}

.platform-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #ff0033 0%, #cc0029 100%);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.platform-btn:hover {
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-3px);
}

.platform-highlight {
    color: #cccccc;
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.platform-badge {
    display: inline-block;
    background: #ffffff;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}

.platform-tag {
    background: rgba(255,255,255,0.9);
    color: #ff0033;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin: 10px 0;
    display: inline-block;
}

.essentiel-message {
    margin-bottom: 25px;
}

.essentiel-message p {
    font-size: 22px;
    font-style: italic;
    color: #ffffff;
}

.essentiel-message span {
    color: #ff0033;
    font-weight: bold;
}

@media (max-width: 768px) {
    .platform-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .essentiel-message p {
        font-size: 18px;
    }
}
.moroccan-identity {
    font-size: 18px;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.red-ornament {
    color: #ff0033;
    margin: 0 10px;
    font-size: 16px;
    vertical-align: middle;
}

.essential-phrase {
    font-size: 22px;
    font-weight: 700;
    font-style: italic;
    color: #fff;
    border-top: 1px solid rgba(255, 0, 51, 0.3);
    border-bottom: 1px solid rgba(255, 0, 51, 0.3);
    padding: 12px 0;
    display: inline-block;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .moroccan-identity {
        font-size: 16px;
    }
    .essential-phrase {
        font-size: 19px;
    }
}
.identity-badges p {
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.identity-badges p:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 0, 51, 0.3);
}

@media (max-width: 576px) {
    .identity-badges {
        flex-direction: column;
        align-items: flex-start;
    }
}
.divider-line {
    width: 50px;
    height: 2px;
    background-color: #ff0033;
}

.divider-diamond {
    width: 10px;
    height: 10px;
    background-color: #ff0033;
    transform: rotate(45deg);
    margin: 0 15px;
}

.section-header p {
    color: #cccccc;
    font-size: 18px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: #1a1a1a;
    padding: 40px 30px;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid #ff0033;
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(to right, #ff0033, #cc0029);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #ffffff;
}

.about-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.about-card p {
    color: #aaaaaa;
    line-height: 1.6;
}

/* Section Services */
.services-section {
    padding: 100px 0;
    background-color: #0a0a0a;
}

.services-tabs {
    margin-top: 50px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 10px;
}

.tab-button {
    padding: 12px 25px;
    background: transparent;
    color: #ffffff;
    border: 1px solid #333333;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.tab-button:hover {
    border-color: #ff0033;
    color: #ff0033;
}

.tab-button.active {
    background: linear-gradient(to right, #ff0033, #cc0029);
    border-color: transparent;
    color: #ffffff;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-content-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.tab-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #ffffff;
}

.tab-text p {
    color: #aaaaaa;
    margin-bottom: 25px;
    line-height: 1.8;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
}

.service-features li {
    margin-bottom: 10px;
    color: #cccccc;
    display: flex;
    align-items: center;
}

.service-features i {
    color: #ff0033;
    margin-right: 10px;
    font-size: 14px;
}

.tab-image {
    position: relative;
    height: 400px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #1a1a1a, #2a2a2a);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555555;
    font-size: 18px;
}

/* Section Portfolio */
.portfolio-section {
    padding: 100px 0;
    background-color: #111111;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    height: 250px;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 0, 51, 0.8), rgba(204, 0, 41, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ffffff;
}

.portfolio-overlay p {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 16px;
}

.view-project {
    color: #ffffff;
    text-decoration: none;
    border: 2px solid #ffffff;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-project:hover {
    background-color: #ffffff;
    color: #ff0033;
}

.portfolio-cta {
    text-align: center;
    margin-top: 50px;
}

/* Section Contact */
.contact-section {
    padding: 100px 0;
    background-color: #0a0a0a;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(to right, #ff0033, #cc0029);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
}

.info-text h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #ffffff;
}

.info-text p {
    color: #aaaaaa;
}

.contact-form {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: #2a2a2a;
    border: 1px solid #333333;
    border-radius: 5px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff0033;
    box-shadow: 0 0 10px rgba(255, 0, 51, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* Pied de page */
.main-footer {
    background-color: #111111;
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-about p {
    color: #aaaaaa;
    margin-bottom: 20px;
    line-height: 1.6;
}
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(to right, #ff0033, #cc0029);
    transform: translateY(-3px);
}

/* Couleurs spécifiques pour chaque réseau */
.social-links a:nth-child(1) { background: #3b5998; } /* Facebook */
.social-links a:nth-child(2) { background: #25D366; } /* WhatsApp */
.social-links a:nth-child(3) { background: #E1306C; } /* Instagram */
.social-links a:nth-child(4) { background: #000000; } /* TikTok */

.social-links a:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.5);
}
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(to right, #ff0033, #cc0029);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-services h3,
.footer-newsletter h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: #ffffff;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, #ff0033, #cc0029);
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-services a {
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-services a:hover {
    color: #ff0033;
}

.footer-newsletter p {
    color: #aaaaaa;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px 15px;
    background: #2a2a2a;
    border: 1px solid #333333;
    border-radius: 5px 0 0 5px;
    color: #ffffff;
    font-size: 14px;
}

.footer-newsletter button {
    padding: 0 20px;
    background: linear-gradient(to right, #ff0033, #cc0029);
    border: none;
    border-radius: 0 5px 5px 0;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-newsletter button:hover {
    opacity: 0.9;
}

.footer-bottom {
    background-color: #0a0a0a;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: #aaaaaa;
    font-size: 14px;
    margin-bottom: 10px;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.legal-links a {
    color: #aaaaaa;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #ff0033;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 60px;
    }
    
    .tab-content-inner {
        grid-template-columns: 1fr;
    }
    
    .tab-image {
        height: 300px;
        order: -1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #0a0a0a;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.5s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 36px;
    }
    
    .cta-button {
        padding: 12px 25px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
    }
}