/* Styles généraux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, serif;
    background-color: #000;
    color: #fff;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

/* Accueil */
.accueil {
    height: 100vh;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.titre-animé h1 {
    font-size: 4rem;
    animation: changeColor 5s infinite;
}

@keyframes changeColor {
    0% { color: #fff; }
    50% { color: #007bff; }
    100% { color: #fff; }
}

.slogan p {
    font-size: 1.5rem;
    margin-top: 1rem;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Social media */
.social-media {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-media a {
    color: #fff;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-media a:hover {
    transform: scale(1.2);
    color: #007bff;
}


/* Communiqués */
.communiques-container {
    padding: 6rem 5% 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.communiques-container h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.search-container {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.search-container input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-container button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #007bff;
    font-size: 1.2rem;
    cursor: pointer;
}

.filter-btn {
    margin-left: 1rem;
    padding: 1rem;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filter-btn:hover {
    background: #0056b3;
}

.communiques-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.communique-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.communique-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.communique-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #007bff;
    cursor: pointer;
}

.communique-content p {
    color: rgba(255, 255, 255, 0.8);
}

.communique-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Portfolio */
.portfolio-container {
    padding: 6rem 5% 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-container h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Services */
.services-container {
    padding: 6rem 5% 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-container h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.services-search {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.services-search input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
}

.services-search button {
    margin-left: 1rem;
    padding: 1rem;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.services-search button:hover {
    background: #0056b3;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-info {
    padding: 1.5rem;
}

.service-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.service-info .price {
    font-size: 1.2rem;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.service-info .category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 123, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.service-card .cart-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.service-card .cart-btn:hover {
    background: #0056b3;
    transform: scale(1.1);
}

/* Connexion */
:root {
    --primary-color: #4a6bdf;
    --primary-dark: #3a5bc7;
    --secondary-color: #6c757d;
    --background-dark: #1a1a2e;
    --card-bg: rgba(30, 30, 45, 0.95);
    --text-light: #f8f9fa;
    --text-muted: #adb5bd;
    --border-color: rgba(255, 255, 255, 0.1);
    --success-color: #28a745;
    --error-color: #dc3545;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --transition-speed: 0.3s;
}

.connexion-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1.5rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.connexion-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(74, 107, 223, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(74, 107, 223, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.form-container {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px var(--shadow-color);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out;
}

.tabs {
    display: flex;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 6px;
    position: relative;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: transparent;
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 8px;
    position: relative;
    z-index: 2;
}

.tab-btn.active {
    color: var(--text-light);
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(74, 107, 223, 0.3);
}

.tab-btn:hover:not(.active) {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 1rem;
    transition: all var(--transition-speed);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(74, 107, 223, 0.2);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-speed);
}

.form-group a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    accent-color: var(--primary-color);
}

.btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 107, 223, 0.3);
}

.btn:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        padding: 2rem;
        border-radius: 12px;
    }
    
    .tabs {
        margin-bottom: 1.5rem;
    }
    
    .tab-btn {
        padding: 0.85rem;
        font-size: 0.95rem;
    }
    
    .form-group input {
        padding: 0.85rem;
    }
    
    .btn {
        padding: 0.85rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .connexion-container {
        padding: 1rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .tab-btn {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    .form-container,
    .tab-btn,
    .btn,
    .tab-content,
    .form-group input {
        animation: none !important;
        transition: none !important;
    }
}
/* Profil */
.profil-container {
    padding: 6rem 5% 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.profil-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.profil-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 2rem;
}

.profil-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.profil-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.3rem;
}

.edit-btn {
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.edit-btn:hover {
    background: #0056b3;
}

.profil-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.profil-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
}

.profil-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #007bff;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table th {
    background: rgba(0, 123, 255, 0.2);
}

.status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
}

.status.en-cours {
    background: rgba(255, 165, 0, 0.3);
    color: #ffa500;
}

/* Admin */
.admin-container {
    padding: 6rem 5% 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-size: 2.5rem;
}

.admin-menu {
    display: flex;
    gap: 1rem;
}

.admin-menu a {
    padding: 0.8rem 1.5rem;
    background: rgba(0, 123, 255, 0.2);
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.admin-menu a:hover, .admin-menu a.active {
    background: #007bff;
}

.admin-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
}

.add-btn {
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: background 0.3s ease;
}

.add-btn:hover {
    background: #0056b3;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
    background: rgba(0, 123, 255, 0.2);
}

.action-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    margin-right: 0.5rem;
    font-size: 1rem;
}

.action-btn:hover {
    color: #0056b3;
}

.delete-btn:hover {
    color: #ff0000;
}

/* Popups */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    display: none;
}

.popup-content {
    background: #111;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-links {
        margin-top: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
    }
    
    .accueil {
        padding-top: 8rem;
    }
    
    .titre-animé h1 {
        font-size: 2.5rem;
    }
    
    .social-media {
        right: 1rem;
    }
}