/* Style personnalisé pour le site vitrine */

/* Variables */
:root {
    --primary-color: #4FC3F7;
    --primary-hover: #00BCD4;
    --secondary-color: #FF6B9D;
    --accent-color: #FFB142;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --text-color: #2b2d42;
    --text-muted: #6c757d;
    --border-radius: 16px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #4FC3F7 0%, #00BCD4 100%);
    --gradient-secondary: linear-gradient(135deg, #FFB142 0%, #FFA726 100%);
    --gradient-accent: linear-gradient(135deg, #FFB142 0%, #FFA726 100%);
    --gradient-hero: linear-gradient(135deg, #4FC3F7 0%, #7209b7 50%, #FFB142 100%);
    --gradient-cyan: linear-gradient(135deg, #4FC3F7 0%, #00BCD4 100%);
    --gradient-orange: linear-gradient(135deg, #FFB142 0%, #FFA726 100%);
    --gradient-purple: linear-gradient(135deg, #7209b7 0%, #8e24aa 100%);
}

/* Styles généraux */
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #f8f9fa;
    line-height: 1.6;
}

#page-wrapper {
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

a {
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* Header styles */
.navbar {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.navbar-hero {
    background: var(--gradient-hero) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
    padding: 0;
    margin: 0;
}

.logo-header {
    position: relative;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    transition: var(--transition);
    z-index: 1001;
}

.logo-header:hover {
    transform: scale(1.05);
}

/* Ajuster l'espacement pour le logo */
.navbar-brand {
    width: 110px;
    height: 50px;
    display: inline-block;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin: 0 0.2rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero section */
.hero-section, 
.about-hero-section, 
.contact-hero-section,
.donation-hero-section {
    background: var(--gradient-hero);
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before,
.about-hero-section::before,
.contact-hero-section::before,
.donation-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23ffffff" fill-opacity="0.05" d="M0,192L48,176C96,160,192,128,288,128C384,128,480,160,576,186.7C672,213,768,235,864,224C960,213,1056,171,1152,165.3C1248,160,1344,192,1392,208L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-shift-up {
    transform: translateY(-1.5rem);
}

@media (min-width: 768px) {
    .hero-shift-up {
        transform: translateY(-2.5rem);
    }
}

.hero-section h1,
.about-hero-section h1,
.contact-hero-section h1,
.donation-hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-section p,
.about-hero-section p,
.contact-hero-section p,
.donation-hero-section p {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Hero animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.hero-title {
    animation: fadeInDown 0.8s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-button {
    animation: scaleIn 0.8s ease-out 0.4s both;
    transition: all 0.3s ease;
}

.hero-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Card styles */
.card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.card-img-top {
    height: 220px;
    object-fit: contain;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px;
    background-color: #f8f9fa;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.035em;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #ff5252;
    border-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Software detail page */
.img-fluid.rounded.shadow {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.software-screenshot {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    padding: 20px;
}

.software-header {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.software-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23ffffff" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,133.3C672,139,768,181,864,181.3C960,181,1056,139,1152,122.7C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E');
    background-size: cover;
    background-position: center;
}

/* Footer styles */
footer {
    background: var(--dark-color) !important;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer .container {
    position: relative;
    z-index: 1;
}

footer ul {
    position: relative;
    z-index: 1;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23ffffff" fill-opacity="0.05" d="M0,224L48,213.3C96,203,192,181,288,154.7C384,128,480,96,576,90.7C672,85,768,107,864,128C960,149,1056,171,1152,165.3C1248,160,1344,192,1392,208L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    z-index: 1;
}

footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

footer a {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

footer a:hover {
    color: #fff !important;
    transform: translateX(5px);
}

footer .social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: var(--transition);
}

footer .social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* About section */
.about-hero-section, .contact-hero-section {
    background: linear-gradient(135deg, var(--primary-color), #7209b7);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.about-section {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
}

.about-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.about-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Contact form */
.contact-form {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
}

.form-control {
    border-radius: 5px;
    padding: 0.8rem 1rem;
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1,
    .about-hero-section h1,
    .contact-hero-section h1,
    .donation-hero-section h1 {
        font-size: 2.5rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .software-header {
        padding: 2rem 0;
    }
}

/* Animation pour les éléments */
.animate-up {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badges et tags */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.badge-primary {
    background-color: var(--primary-color);
    color: white;
}

.badge-secondary {
    background-color: var(--secondary-color);
    color: white;
}

/* Sections avec fond alterné */
.bg-light-alt {
    background-color: #f0f2f5;
}

.section-padding {
    padding: 3.5rem 0;
}
