/* ============================================
   Myadoro - Styles communs pages publiques
   Fichier: public/css/public-pages.css
   Pages: index.php, rates.php, about.php, contact.php
   ============================================ */

/* ============================================
   Variables CSS
   ============================================ */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #27ae60;
    --warning: #f39c12;
    --gradient: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
}

/* ============================================
   Reset & Base
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* ============================================
   Navigation
   ============================================ */
.public-navbar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 0.75rem 0;
    backdrop-filter: blur(10px);
}

.public-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    color: white !important;
    white-space: nowrap;
}

.public-navbar .nav-link {
    color: rgba(241, 245, 249, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 0.9rem !important;
    margin: 0 0.15rem;
    border-radius: 6px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.public-navbar .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.public-navbar .nav-link.active {
    color: #38bdf8 !important;
    font-weight: 600;
    background: rgba(56, 189, 248, 0.12);
}

.public-navbar .navbar-collapse {
    min-width: 0;
}

.public-navbar .dropdown-toggle {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 1200px) {
    .public-navbar .navbar-nav {
        flex-wrap: nowrap;
    }
}

@media (max-width: 1199.98px) {
    .public-navbar .navbar-collapse {
        padding-top: 0.75rem;
    }

    .public-navbar .nav-link {
        margin: 0.15rem 0;
    }

    .public-navbar .dropdown-toggle {
        max-width: 100%;
    }
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.7rem 1.5rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-item:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
}

.dropdown-item.text-danger:hover {
    background: rgba(231, 76, 60, 0.1);
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: linear-gradient(180deg, #0f172a 0%, #090d16 100%);
    color: #94a3b8;
    margin-top: 60px;
    font-size: 0.93rem;
}

.footer-top-accent {
    height: 4px;
    background: linear-gradient(90deg, #0d6efd 0%, #0dcaf0 50%, #198754 100%);
}

.footer h5, .footer-title {
    color: #ffffff;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: all 0.25s ease;
}

.footer-links a:hover {
    color: #38bdf8;
    transform: translateX(4px);
}

.footer-contact a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #38bdf8;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #f1f5f9;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: #0d6efd;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.footer-legal a {
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #38bdf8 !important;
}
}

/* ============================================
   Partage Social
   ============================================ */
.social-share-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 0;
    text-align: center;
}

.social-share-section h3 {
    color: white;
    font-weight: 700;
    margin-bottom: 10px;
}

.social-share-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    color: white;
}

.share-btn i {
    font-size: 18px;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.copy-link {
    background: #6c757d;
    cursor: pointer;
}

.share-btn.copy-link.copied {
    background: #28a745;
}

/* ============================================
   Sections communes
   ============================================ */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: var(--primary);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary);
}

/* ============================================
   Cards & Components
   ============================================ */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Hover effect for tables */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
    cursor: pointer;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate__fadeIn {
    animation: fadeIn 0.5s ease-in;
}

/* ============================================
   Hero Section (pour index.php)
   ============================================ */
.hero {
    background: var(--gradient);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,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"></path></svg>');
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .social-share-section {
        padding: 30px 0;
    }
}
