/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-image: url(../img/fond_index.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Arrière-plan avec effets lumineux */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 162, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(78, 205, 196, 0.2) 0%, transparent 50%);
    z-index: -1;
}

/* Header */
.header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Logo */
.logo {
    font-size: 2.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo-family {
    color: #00a2ff;
    margin-right: 0.2rem;
}

.logo-mixx {
    color: #4ecdc4;
}

/* Navigation */
.navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.nav-btn {
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Couleurs spécifiques pour les 3 boutons */
.nav-about {
    background: linear-gradient(45deg, #00a2ff, #0078d4);
    color: white;
}

.nav-prestations {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
}

.nav-contact {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
}

.nav-btn:hover, .nav-btn.active {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

/* Carte prestation */
.presta-card {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 2.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 162, 255, 0.9), rgba(78, 205, 196, 0.85));
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Header de la carte */
.presta-header h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff200;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.presta-header p {
    font-size: 1.1rem;
    line-height: 1.8;
    white-space: pre-line; /* pour garder les retours à la ligne avec tes :white_check_mark: */
}

/* Mots clés en évidence */
.presta-header p strong {
    color: #fff200;
}

/* Icônes style emoji */
.presta-header p::before {
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .presta-card {
        margin: 1.5rem;
        padding: 1.5rem;
    }
    .presta-header h2 {
        font-size: 1.6rem;
    }
    .presta-header p {
        font-size: 1rem;
    }
}



/* Titre principal */
.main-title {
    text-align: center;
    font-size: 2.2rem;
    color: #f6f608;
    margin: 2rem 0;
    font-weight: 300;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* Carte principale */
.main-card {
    max-width: 1200px;
    margin: 2rem auto;
    background: linear-gradient(135deg, rgba(0, 162, 255, 0.9), rgba(78, 205, 196, 0.8));
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Header de la carte */
.card-header {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
    font-size: 1.8rem;
}

/* Pour le logo image dans le header */
.logo-img {
    height: 150px;   /* ajuste selon la taille voulue */
    width: auto;
    display: block;
}

/* Pour le texte "Family Mixx" dans les cartes */
.brand-name {
    font-weight: bold;
    font-size: 2.2rem;
    color: rgb(242, 9, 149);
}


.welcome-text {
    font-style: italic;
    font-size: 1.4rem;
    opacity: 0.9;
}

/* Contenu de la carte */
.card-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Section gauche */
.left-section {
    flex: 1;
    min-width: 300px;
}

.section-title {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

/* Cartes de services */
.service-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.service-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    filter: brightness(0.8);
}

.service-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.8rem;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
}

/* Section droite */
.right-section {
    flex: 1;
    min-width: 300px;
}

.highlight-text {
    text-align: center;
    margin-bottom: 2rem;
}

.highlight-text h3 {
    color: #fff200;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.highlight-subtitle {
    color: #fff200;
    font-size: 1.3rem;
    font-weight: bold;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
}

/* Témoignages */
.testimonials {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 1.2rem;
    border-radius: 10px;
    border-left: 4px solid #fff200;
}

.testimonial-text {
    color: white;
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.testimonial-author {
    color: #4ecdc4;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Section Prestations */
.prestations-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
}

.section-title-white {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.prestations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.prestation-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.prestation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.prestation-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.prestation-card h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.prestation-card p {
    color: #666;
    line-height: 1.6;
}

/* Styles pour la page de contact */
.contact-card {
    max-width: 1200px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #00a2ff;
}

.contact-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.form-section {
    flex: 2;
    min-width: 400px;
}

.info-section {
    flex: 1;
    min-width: 300px;
}

/* Styles du formulaire */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00a2ff;
    box-shadow: 0 0 0 3px rgba(0, 162, 255, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Checkbox personnalisée */
.checkbox-group {
    margin: 2rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

/* Bouton de soumission */
.submit-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(45deg, #00a2ff, #4ecdc4);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 162, 255, 0.4);
}

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.submit-btn.loading .btn-loader {
    display: block;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Section d'informations */
.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.contact-info h3 {
    color: #00a2ff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.info-item strong {
    color: #333;
    display: block;
    margin-bottom: 0.3rem;
}

.info-item p {
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Engagements */
.engagement {
    background: #e8f5e8;
    padding: 2rem;
    border-radius: 15px;
}

.engagement h3 {
    color: #27ae60;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.engagement ul {
    list-style: none;
    padding: 0;
}

.engagement li {
    color: #333;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

/* Message de confirmation */
.confirmation-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.confirmation-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    margin: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.confirmation-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.confirmation-content h3 {
    color: #27ae60;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.confirmation-content p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.close-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #219a52;
    transform: translateY(-2px);
}

/* Styles pour le dashboard */
.dashboard-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.dashboard-header {
    background: linear-gradient(135deg, #00a2ff, #4ecdc4);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-title {
    font-size: 2rem;
    margin: 0;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Stats cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #00a2ff;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 1.1rem;
}

/* Table des contacts */
.contacts-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    color: #333;
    margin: 0;
}

.export-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.export-btn:hover {
    background: #219a52;
    transform: translateY(-2px);
}

.contacts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.contacts-table th,
.contacts-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.contacts-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.contacts-table tr:hover {
    background: #f8f9fa;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-new {
    background: #e3f2fd;
    color: #1976d2;
}

.status-processed {
    background: #e8f5e8;
    color: #27ae60;
}

/* Page de login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: #00a2ff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #00a2ff, #4ecdc4);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 162, 255, 0.3);
}

.error-message {
    background: #ffeaea;
    color: #e74c3c;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    text-align: center;
}

/* Footer info */
.footer-info {
    text-align: center;
    margin-top: 3rem;
    color: #4ecdc4;
    font-size: 1rem;
    padding: 2rem;
}

.footer-info p {
    margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .navigation {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .main-title {
        font-size: 1.8rem;
        margin: 1rem;
    }
    
    .main-card, .contact-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .card-content, .contact-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .brand-name {
        font-size: 1.8rem;
    }
    
    .welcome-text {
        font-size: 1.2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-section, .info-section {
        min-width: auto;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .contacts-table {
        font-size: 0.9rem;
    }
    
    .contacts-table th,
    .contacts-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .card-header {
        font-size: 1.4rem;
    }
    
    .brand-name {
        font-size: 1.6rem;
    }
    
    .contact-card {
        padding: 1rem;
    }
    
    .contacts-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}