/* Styles principaux pour DogConnect */

/* Import des styles spécifiques */
@import url('auth.css');
@import url('profile.css');
@import url('badges.css');
@import url('notifications.css');
@import url('../css/map-styles.css');

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

/* Media queries pour les conteneurs */
@media (min-width: 576px) {
    .container {
        width: 540px;
        padding: 0;
    }
}

@media (min-width: 768px) {
    .container {
        width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 1140px;
    }
}

a {
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #2980b9;
    text-decoration: none;
}

/* Header et Navigation */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    padding: 15px;
}



.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    max-width: 200px;
}

.logo img {
    max-width: 40px;
    height: auto;
    margin-right: 10px;
}



.menu-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    filter: brightness(0.9);
    transition: transform 0.2s ease;
}

.main-nav ul li a:hover .menu-icon,
.main-nav ul li a.active .menu-icon {
    filter: brightness(1);
    transform: scale(1.1);
}

.site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3498db;
}

/* Bouton menu hamburger pour mobile */
.menu-toggle {
    display: block;
    width: 30px;
    height: 25px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
    margin-right: 15px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #3498db;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 10px;
}

.menu-toggle span:nth-child(3) {
    top: 20px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

/* Style du menu pour mobile - caché par défaut */
.main-nav {
    display: none;
    width: 100%;
    order: 3;
    margin-top: 15px;
}

/* Boutons d'authentification */
.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    order: 4;
    margin-top: 15px;
}

.auth-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-buttons a i {
    font-size: 14px;
}

@media (min-width: 992px) {
    .auth-buttons {
        flex-direction: row;
        width: auto;
        margin-top: 0;
        gap: 15px;
        order: 3;
        margin-left: 20px;
    }
    
    .main-nav {
        order: 2;
        width: auto;
        margin-top: 0;
        margin-right: 20px;
        display: flex;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .main-header .container {
        flex-wrap: nowrap;
    }
}

.main-nav.active {
    display: block;
}

.main-nav ul {
    display: flex;
    flex-direction: column; /* Mobile first: les éléments sont empilés */
    list-style: none;
    width: 100%;
    padding: 10px 0;
}

.main-nav ul li {
    margin: 5px 0;
    width: 100%;
}

.main-nav ul li a {
    color: #333;
    font-weight: 500;
    padding: 12px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    transition: all 0.2s ease;
}

/* Style pour desktop */
@media (min-width: 992px) {
    .main-header .container {
        flex-wrap: nowrap;
    }
    
    .main-nav {
        display: block;
        width: auto;
        order: 2;
        margin-top: 0;
    }
    
    .main-nav ul {
        flex-direction: row;
        align-items: center;
        padding: 0;
    }
    
    .main-nav ul li {
        margin: 0 5px;
        width: auto;
    }
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    background-color: #f0f9ff;
    color: #3498db;
}

/* Styles des boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #3498db;
    color: #fff;
    border: 1px solid #3498db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    color: #fff;
}

.btn-secondary {
    background-color: #e74c3c;
    color: #fff;
    border: 1px solid #e74c3c;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-secondary:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    color: #3498db;
    border: 1px solid #3498db;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: #2980b9;
    text-decoration: none;
}

@media (max-width: 991px) {
    .auth-buttons {
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
        margin-top: 15px;
        order: 3;
    }
}

.btn-outline {
    display: inline-block;
    padding: 8px 16px;
    background-color: transparent;
    color: #3498db;
    border: 1px solid #3498db;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #f0f9ff;
}

.btn-primary {
    display: inline-block;
    padding: 8px 16px;
    background-color: #3498db;
    color: #fff;
    border: 1px solid #3498db;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-secondary {
    display: inline-block;
    padding: 8px 16px;
    background-color: #e74c3c;
    color: #fff;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    color: #fff;
    text-decoration: none;
}

.btn-login {
    background-color: #3498db;
    color: white !important;
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: 600;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    width: 100%;
}

@media (min-width: 992px) {
    .login-button {
        width: auto;
        margin-left: 10px;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .btn-login {
        width: auto;
    }
}

.btn-login:hover {
    background-color: #2980b9;
    text-decoration: none;
}

/* Sections communes */
section {
    padding: 60px 0;
}

section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    position: relative;
}

section h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #3498db;
    margin: 15px auto 0;
}

/* Boutons */
.btn-primary {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    display: inline-block;
    background-color: #fff;
    color: #3498db;
    border: 1px solid #3498db;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: #2980b9;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Services Icons Section */
.services-section {
    background-color: #fff;
    padding: 70px 0;
}

.services-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.service-item {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: #f0f9ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 40px;
    height: 40px;
}

.service-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #3498db;
}

.service-item p {
    color: #666;
    font-size: 0.95rem;
}

/* Social Section */
.social-section {
    background-color: #f8f9fa;
    padding: 70px 0;
}

.social-preview {
    max-width: 600px;
    margin: 40px auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.post-sample {
    padding: 20px;
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.post-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.post-date {
    font-size: 0.85rem;
    color: #777;
}

.post-content p {
    margin-bottom: 15px;
}

.post-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.post-actions {
    display: flex;
    gap: 15px;
}

.post-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    padding: 5px 10px;
    border-radius: 20px;
    transition: background-color 0.2s;
}

.post-actions button:hover {
    background-color: #f0f0f0;
}

/* Marketplace Preview Section */
.marketplace-preview {
    padding: 70px 0;
    background-color: #fff;
}

.marketplace-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.marketplace-item {
    flex: 0 0 calc(33.333% - 30px);
    min-width: 250px;
    max-width: 300px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.marketplace-item:hover {
    transform: translateY(-10px);
}

.marketplace-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.marketplace-item h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.price {
    color: #3498db;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 10px 0 20px;
}

/* Services Providers Section */
.services-providers {
    background-color: #f8f9fa;
    padding: 70px 0;
}

.services-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.service-category {
    flex: 0 0 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-category img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.service-category h4 {
    font-size: 1.1rem;
    color: #333;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-sections {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #3498db;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ecf0f1;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: #ecf0f1;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-selector select {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 10px;
    border-radius: 4px;
}

.language-selector select option {
    background-color: #2c3e50;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-nav ul {
        gap: 5px;
    }
    
    .main-nav ul li a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    .logo-container {
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .services-icons, 
    .marketplace-items {
        flex-direction: column;
        align-items: center;
    }
    
    .service-item, 
    .marketplace-item {
        max-width: 100%;
    }
    
    .footer-sections {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}
