/* styles.css */
:root {
    --primary-color: #4A5568; /* Gris-bleu moderne */
    --secondary-color: #2D3748; /* Gris foncé pour les textes */
    --accent-color: #4299E1; /* Bleu clair pour les accents */
    --light-color: #F7FAFC; /* Fond ultra-clair */
    --dark-color: #1A202C; /* Texte foncé */
    --text-muted: #718096; /* Texte gris pour les descriptions */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

body {
    background-color: var(--light-color);
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 7rem 0;
    text-align: center;
    border-radius: 0 0 20px 20px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="pattern" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23pattern)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-logo {
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.hero-title {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.4rem;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.tool-card {
    border: none;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 0, 0, 0.1);
}

.tool-card-body {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.tool-icon {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    transition: var(--transition);
}

.tool-card:hover .tool-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.card-title {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    flex-grow: 0;
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px; /* Assure une hauteur uniforme pour les textes */
}

.btn-custom {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    background: var(--accent-color);
    border: none;
    color: white;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto; /* Aligne les boutons en bas */
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.btn-custom:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-custom i {
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    .hero-title {
        font-size: 1.6rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    .card-text {
        min-height: auto; /* Ajustement pour mobile */
    }
}

/* Styles pour le footer */
.footer-section {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer-logo {
    max-height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-copyright a:hover {
    color: var(--accent-color);
}