/**
 * Styles personnalisés pour Le Carré des Micros
 */

/* Variables */
:root {
    --primary: #007bff;
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #343a40;
    --font-family-sans-serif: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base */
body {
    font-family: var(--font-family-sans-serif);
    color: #333;
    line-height: 1.6;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Buttons */
.btn {
    border-radius: 4px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

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

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

/* Navbar */
.navbar {
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-weight: 600;
}

.navbar-light .navbar-nav .nav-link {
    color: #555;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary);
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    padding: 1rem 1.5rem;
}

/* Section headers */
.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

/* Banner section */
.banner {
    padding: 5rem 0;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.banner h1 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.banner p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Subscription pricing */
.card-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-price .period {
    font-size: 1rem;
    font-weight: 400;
    color: #6c757d;
}

/* Testimonials */
.testimonials .card {
    height: 100%;
}

.avatar img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

/* Newsletter section */
.newsletter {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

/* Footer */
footer {
    background-color: #343a40;
    color: #fff;
}

footer a {
    color: #fff;
    opacity: 0.8;
}

footer a:hover {
    color: #fff;
    opacity: 1;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer hr {
    background-color: rgba(255, 255, 255, 0.1);
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* Profile pages */
.profile-sidebar {
    border-radius: 8px;
    background-color: #f8f9fa;
    padding: 1.5rem;
}

.profile-sidebar .nav-link {
    color: #6c757d;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.25rem;
}

.profile-sidebar .nav-link:hover {
    background-color: #eee;
}

.profile-sidebar .nav-link.active {
    background-color: var(--primary);
    color: white;
}

.profile-sidebar .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
}

/* Consultation calendar */
.consultation-calendar .btn-outline-secondary {
    margin: 2px;
    width: 50px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.consultation-calendar .btn-outline-secondary.available {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.consultation-calendar .btn-outline-secondary.unavailable {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Tutorial/News content */
.content-container {
    max-width: 800px;
    margin: 0 auto;
}

.content-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.content-container h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-container p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Tags/Categories */
.tag {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--primary);
    color: white;
    text-decoration: none;
}

/* Premium content banner */
.premium-banner {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.premium-banner h3 {
    color: #856404;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .banner {
        text-align: center;
        padding: 3rem 0;
    }
    
    .banner img {
        margin-top: 2rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .card-img-top {
        height: 180px;
    }
}