/* home.css - Design Moderne pour ENSIT Junior Entreprise */

/* ===== VARIABLES SUPPLEMENTAIRES ===== */
:root {
    --primary-red: #781E34;
    --dark-red: #5a1528;
    --light-red: #9a2b48;
    --accent-red: #b3415d;
    --soft-red: #d45d7c;
    --pure-white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --text-dark: #222222;
    --text-light: #666666;
    --success-green: #28a745;
    --info-blue: #17a2b8;
    
    --shadow: 0 5px 20px rgba(120, 30, 52, 0.1);
    --shadow-hover: 0 10px 30px rgba(120, 30, 52, 0.15);
    --shadow-card: 0 8px 25px rgba(120, 30, 52, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --border-radius-lg: 24px;
}

/* ===== HERO SECTION AMELIOREE ===== */
.hero {
    min-height: 90vh;
    color: var(--pure-white);

    background:
        linear-gradient(
            rgba(120, 30, 52, 0.92),
            rgba(34, 34, 34, 0.92)
        ),
        url("../uploads/bg.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}


.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 93, 124, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(179, 65, 93, 0.1) 0%, transparent 50%);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    line-height: 1.1;
    background: linear-gradient(to right, var(--pure-white), var(--soft-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    max-width: 700px;
    font-weight: 300;
    letter-spacing: 0.8px;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BOUTON PRINCIPAL AMELIORE ===== */
.eje-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--accent-red), var(--soft-red));
    color: var(--pure-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow);
    transform-origin: center;
}

.eje-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.eje-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(120, 30, 52, 0.25);
    background: linear-gradient(135deg, var(--soft-red), var(--light-red));
}

.eje-btn:hover::before {
    left: 100%;
}

.eje-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* ===== SECTION "QUI SOMMES-NOUS" AMELIOREE ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container.mt-5 {
    margin-top: 5rem !important;
}

.container h2 {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, var(--primary-red), var(--soft-red));
    border-radius: 3px;
}

.container p {
    font-size: 1.3rem;
    line-height: 1.9;
    color: var(--text-dark);
    max-width: 900px;
    margin-bottom: 2rem;
    font-weight: 400;
    padding: 2.5rem;
    background: linear-gradient(145deg, var(--off-white), var(--pure-white));
    border-radius: var(--border-radius-lg);
    border-left: 6px solid var(--primary-red);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.container p::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-red), var(--soft-red));
}

/* ===== SECTION PRESTATIONS AMELIOREE ===== */
.services-section {
    margin-top: 6rem;
}

.services-section h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.services-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}
.service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(120, 30, 52, 0.08);
    position: relative;
    overflow: hidden;
}

/* Light gradient accent on the left */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-red), var(--accent-red));
}

/* Hover effect */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(120, 30, 52, 0.18);
}

/* Title */
.service-card h3 {
    color: var(--primary-red);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Small underline under title */
.service-card h3::after {
    content: '';
    display: block;
    width: 45px;
    height: 3px;
    background: var(--accent-red);
    margin-top: 8px;
    border-radius: 4px;
}

/* Description text */
.service-card p {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Small arrow appearing on hover */
.service-card::after {
    content: '→';
    position: absolute;
    bottom: 1.8rem;
    right: 1.8rem;
    font-size: 1.4rem;
    color: var(--accent-red);
    opacity: 0;
    transform: translateX(-8px);
    transition: 0.3s ease;
}

.service-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}


/* ===== SECTION CALL TO ACTION AMELIOREE ===== */
.cta-section {
    margin: 8rem auto;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, 
        rgba(120, 30, 52, 0.05) 0%, 
        rgba(90, 21, 40, 0.1) 100%);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    max-width: 1200px;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-red), var(--soft-red));
}

.cta-section h2 {
    font-size: 2.8rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.cta-section p {
    font-size: 1.4rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.cta-section .eje-btn {
    padding: 1.3rem 3.5rem;
    font-size: 1.3rem;
}

/* ===== ANIMATIONS AMELIOREES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(179, 65, 93, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(179, 65, 93, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(179, 65, 93, 0);
    }
}

.hero h1 {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero p {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero .eje-btn {
    animation: fadeInUp 0.8s ease-out 0.4s forwards, pulse 2s infinite 2s;
    opacity: 0;
}



.cta-section {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}



/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: 4rem 1.5rem;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.4rem;
    }
    
    .eje-btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .container h2 {
        font-size: 2.2rem;
    }
    
    .container p {
        font-size: 1.15rem;
        padding: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    
    
    .cta-section {
        padding: 4rem 1.5rem;
        margin: 6rem auto;
    }
    
    .cta-section h2 {
        font-size: 2.2rem;
    }
    
    .cta-section p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .eje-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .container h2 {
        font-size: 1.8rem;
    }
    
    .container p {
        font-size: 1rem;
        padding: 1.5rem;
    }
    
    
    .cta-section {
        padding: 3rem 1rem;
        margin: 4rem auto;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
    }
}

/* ===== AMELIORATIONS VISUELLES ===== */
.container p:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(120, 30, 52, 0.15);
}

