/* ===================================
   STYLES COMMUNS POUR TOUS LES OUTILS
   =================================== */

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corps de page avec gradient */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
}

/* Header avec logo et titre */
.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    padding: 20px;
}

.header-top img {
    height: 60px;
}

.header-top h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Section header pour breadcrumb */
.header-section {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    padding: 0 20px;
}

.header-section .breadcrumb {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 30px;
    display: inline-flex;
    margin-top: 10px;
    list-style: none;
}

.header-section .breadcrumb-item {
    color: rgba(255,255,255,0.8);
}

.header-section .breadcrumb-item a {
    color: white;
    text-decoration: none;
}

.header-section .breadcrumb-item.active {
    color: white;
}

.header-section .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 8px;
    color: rgba(255,255,255,0.6);
}

.header-section p {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-top: 15px;
}

/* Container principal */
.container-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Outils Complet */
.footer-outils {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    margin-top: 60px;
    padding: 0;
    position: relative;
}

.footer-outils .footer-content {
    padding: 50px 0 30px;
}

.footer-outils .container-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-outils .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-outils .footer-section h5 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-outils .footer-section h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #667eea;
}

.footer-outils .footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-outils .footer-section p.small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Liens sociaux */
.footer-outils .social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-outils .social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.footer-outils .social-links a:hover {
    background: #667eea;
    transform: translateY(-3px);
}

/* Listes de liens */
.footer-outils .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-outils .footer-links li {
    margin-bottom: 12px;
}

.footer-outils .footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.footer-outils .footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-outils .footer-links i {
    width: 16px;
    text-align: center;
    color: #667eea;
}

/* Location */
.footer-outils .location {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    margin-bottom: 15px;
}

.footer-outils .location i {
    color: #667eea;
}

/* Bouton CTA */
.footer-outils .cta-button {
    margin-top: 20px;
}

.footer-outils .btn-footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.footer-outils .btn-footer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Séparateur */
.footer-outils .footer-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

/* Liens du bas */
.footer-outils .footer-bottom-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-outils .legal-links {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-outils .legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    padding: 5px 10px;
}

.footer-outils .legal-links a:hover {
    color: white;
}

.footer-outils .legal-links .separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

.footer-outils .hours {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-outils .hours i {
    color: #667eea;
}

/* Copyright */
.footer-outils .footer-copyright {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
}

.footer-outils .footer-copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-outils .footer-copyright .heart {
    color: #e74c3c;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .footer-outils .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-outils .footer-bottom-links {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-outils .legal-links {
        flex-direction: column;
        gap: 0;
    }
    
    .footer-outils .legal-links .separator {
        display: none;
    }
    
    .footer-outils .footer-content {
        padding: 40px 0 20px;
    }
}

/* Style simple pour l'ancien footer (compatibilité) */
.footer-section {
    text-align: center;
    color: white;
    margin-top: 40px;
    padding: 20px;
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-section a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Carte principale (commune à tous les outils) */
.main-card,
.calculator-card,
.search-card,
.results-card,
.info-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 40px;
    margin-bottom: 30px;
}

/* Titre de section */
.section-title {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

/* Styles pour les formulaires */
.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.form-control {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 10px;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-select {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 10px;
}

.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Boutons */
.btn-primary-custom,
.btn-search,
.btn-reset {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary-custom:hover,
.btn-search:hover,
.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Alertes */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Badges */
.badge {
    padding: 5px 10px;
    font-weight: 500;
}

/* Media Queries pour mobile */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-top h1 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .main-card,
    .calculator-card,
    .search-card,
    .results-card,
    .info-section {
        padding: 25px;
    }
    
    .container-main {
        padding: 0 15px;
    }
}

/* Styles pour l'impression */
@media print {
    body {
        background: white;
    }
    
    .header-top,
    .header-section,
    .footer-section,
    .btn-primary-custom,
    .btn-search,
    .btn-reset {
        display: none;
    }
    
    .main-card,
    .calculator-card,
    .search-card,
    .results-card,
    .info-section {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}