* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* ===== VARIABLES COULEURS ===== */
:root {
    --bleu-toilette: #7EC8E3;
    --bleu-turquoise: #6BB5D1;
    --blanc: #FFFFFF;
    --vert-feuilles: #A8E6A3;
    --rose-coeur: #FF9EB5;
    --jaune-etoiles: #FFD700;
    --violet-ombre: #8A2BE2;
    --bleu-texte: #4A90E2;
    --orange-texte: #FF7B54;
    --vert-tige: #4CAF50;
    --rose-flacon: #FF69B4;
    --marron-sol: #8B4513;
    --gris-ombre: #D3D3D3;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: linear-gradient(135deg, var(--bleu-toilette) 0%, var(--bleu-turquoise) 100%);
    color: var(--blanc);
    padding: 0.5rem 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--bleu-turquoise);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px; /* Taille réduite */
    width: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    object-fit: contain;
}

.nav-brand h2 {
    font-size: 1.4rem; /* Légèrement réduit */
    color: var(--blanc);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, var(--blanc), var(--bleu-toilette));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    color: var(--blanc);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
}

.nav-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.user-info {
    color: var(--blanc);
    font-size: 0.85rem;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}


/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.header-actions h1 {
    color: var(--bleu-texte);
    font-size: 2.2rem;
    background: linear-gradient(45deg, var(--bleu-texte), var(--violet-ombre));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* ===== ALERTES ===== */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid transparent;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(135deg, var(--vert-feuilles), #90EE90);
    color: #155724;
    border-color: var(--vert-tige);
}

.alert-error {
    background: linear-gradient(135deg, var(--rose-coeur), #FFB6C1);
    color: #721c24;
    border-color: var(--rose-flacon);
}

/* ===== GRILLE DES TOILETTES ===== */
.toilettes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.toilette-card {
    background: var(--blanc);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--bleu-toilette);
}

.toilette-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(126, 200, 227, 0.3);
    border-color: var(--bleu-turquoise);
}

.toilette-photo {
    height: 200px;
    background: linear-gradient(135deg, var(--bleu-toilette), var(--bleu-turquoise));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.toilette-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(126, 200, 227, 0.3), rgba(107, 181, 209, 0.3));
}

.toilette-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.no-photo {
    font-size: 4rem;
    opacity: 0.7;
    color: var(--blanc);
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.toilette-info {
    padding: 20px;
    background: var(--blanc);
}

.toilette-info h3 {
    margin-bottom: 10px;
    color: var(--bleu-texte);
    font-size: 1.3rem;
    font-weight: bold;
}

.proprietaire, .date {
    color: var(--bleu-turquoise);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* ===== BOUTONS ===== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    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.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange-texte), #FF9E7D);
    color: var(--blanc);
    border: 2px solid var(--orange-texte);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FF6B3D, var(--orange-texte));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 123, 84, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--bleu-texte), var(--violet-ombre));
    color: var(--blanc);
    border: 2px solid var(--bleu-texte);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--violet-ombre), var(--bleu-texte));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

/* ===== FORMULAIRES ===== */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--blanc);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(126, 200, 227, 0.2);
    border: 3px solid var(--bleu-toilette);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--bleu-texte);
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--bleu-toilette);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: rgba(126, 200, 227, 0.05);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--bleu-turquoise);
    background: rgba(107, 181, 209, 0.1);
    box-shadow: 0 0 0 3px rgba(126, 200, 227, 0.3);
}

.form-group small {
    color: var(--bleu-turquoise);
    font-size: 0.8rem;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* ===== AUTHENTIFICATION ===== */
.auth-container {
    background: var(--blanc);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(126, 200, 227, 0.3);
    padding: 50px;
    width: 100%;
    max-width: 450px;
    margin: 50px auto;
    border: 3px solid var(--bleu-toilette);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--bleu-toilette), var(--bleu-turquoise), var(--vert-feuilles), var(--rose-coeur), var(--jaune-etoiles));
}

.auth-form h1 {
    color: var(--bleu-texte);
    text-align: center;
    margin-bottom: 15px;
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--bleu-texte), var(--violet-ombre), var(--orange-texte));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-form h2 {
    color: var(--bleu-turquoise);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.3rem;
    font-weight: normal;
}

.auth-link {
    text-align: center;
    margin-top: 25px;
    color: var(--bleu-turquoise);
}

.auth-link a {
    color: var(--orange-texte);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.auth-link a:hover {
    color: var(--rose-coeur);
    text-decoration: underline;
}

/* ===== SYSTÈME DE NOTATION ===== */
.rating-categories {
    background: linear-gradient(135deg, rgba(126, 200, 227, 0.1), rgba(168, 230, 163, 0.1));
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    border: 2px solid var(--bleu-toilette);
}

.rating-categories h3 {
    margin-bottom: 25px;
    color: var(--bleu-texte);
    font-size: 1.4rem;
    text-align: center;
}

.rating-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--blanc);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.rating-item:hover {
    transform: translateX(5px);
}

.rating-item label {
    width: 120px;
    font-weight: bold;
    margin-right: 20px;
    color: var(--bleu-texte);
    font-size: 1.1rem;
}

.stars {
    display: flex;
    gap: 8px;
    margin-right: 25px;
}

.star {
    font-size: 28px;
    cursor: pointer;
    color: var(--gris-ombre);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.star:hover,
.star.active {
    color: var(--jaune-etoiles);
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rating-text {
    color: var(--bleu-turquoise);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===== DÉTAIL TOILETTE ===== */
.toilette-detail {
    background: var(--blanc);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(126, 200, 227, 0.2);
    border: 3px solid var(--bleu-toilette);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 35px;
    gap: 35px;
}

.detail-info {
    flex: 1;
}

.detail-photo {
    width: 320px;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border: 3px solid var(--bleu-toilette);
}

.detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== MOYENNES ===== */
.average-ratings {
    background: linear-gradient(135deg, var(--bleu-toilette), var(--bleu-turquoise), var(--violet-ombre));
    color: var(--blanc);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.average-ratings::before {
    content: '⭐';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 3rem;
    opacity: 0.3;
}

.average-ratings h2 {
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.averages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.average-item {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s;
}

.average-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.25);
}

.average-label {
    display: block;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.average-stars {
    font-size: 20px;
    color: var(--jaune-etoiles);
}

.average-value {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: bold;
}

/* ===== LISTE DES NOTES ===== */
.ratings-list {
    margin-top: 35px;
}

.rating-card {
    border: 2px solid var(--bleu-toilette);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--blanc), #f8fdff);
    box-shadow: 0 5px 20px rgba(126, 200, 227, 0.2);
    transition: all 0.3s ease;
}

.rating-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(126, 200, 227, 0.3);
    border-color: var(--bleu-turquoise);
}

.rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bleu-toilette);
}

.rating-pseudo {
    font-weight: bold;
    color: var(--bleu-texte);
    font-size: 1.1rem;
}

.rating-date {
    color: var(--bleu-turquoise);
    font-size: 0.9rem;
    font-weight: 500;
}

.rating-scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(126, 200, 227, 0.1);
    border-radius: 8px;
}

.rating-comment {
    background: linear-gradient(135deg, rgba(255, 158, 181, 0.1), rgba(168, 230, 163, 0.1));
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid var(--rose-coeur);
}
.public-comment {
    background: linear-gradient(135deg, rgba(126, 200, 227, 0.1), rgba(107, 181, 209, 0.1));
    border-left: 4px solid var(--bleu-toilette);
}

.private-comment {
    background: linear-gradient(135deg, rgba(255, 158, 181, 0.1), rgba(255, 105, 180, 0.1));
    border-left: 4px solid var(--rose-coeur);
    border: 2px dashed var(--rose-coeur);
}

.comment-header {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--bleu-texte);
}

.private-comment .comment-header {
    color: var(--rose-coeur);
}

.rating-comment p {
    margin: 0;
    font-style: italic;
    color: #555;
    line-height: 1.5;
}

/* Indicateur propriétaire */
.owner-badge {
    background: var(--orange-texte);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.rating-comment p {
    margin: 0;
    font-style: italic;
    color: var(--bleu-texte);
    line-height: 1.5;
}

/* ===== FIL D'ARIANE ===== */
.breadcrumb {
    margin-bottom: 25px;
    font-size: 1rem;
    padding: 10px 15px;
    background: rgba(126, 200, 227, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--bleu-toilette);
}

.breadcrumb a {
    color: var(--bleu-texte);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--orange-texte);
}

.breadcrumb span {
    color: var(--bleu-turquoise);
    font-weight: bold;
}

/* ===== ÉTAT VIDE ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--bleu-turquoise);
    background: linear-gradient(135deg, rgba(126, 200, 227, 0.05), rgba(168, 230, 163, 0.05));
    border-radius: 15px;
    border: 2px dashed var(--bleu-toilette);
}

.empty-state p {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--bleu-texte);
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-brand {
        justify-content: center;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-actions {
        flex-direction: column;
        text-align: center;
    }
    
    .toilettes-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-header {
        flex-direction: column;
    }
    
    .detail-photo {
        width: 100%;
        height: 200px;
    }
    
    .rating-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rating-item label {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .averages-grid {
        grid-template-columns: 1fr;
    }
    
    .rating-scores {
        grid-template-columns: 1fr;
    }
    
    .form-actions, .actions {
        flex-direction: column;
    }
    
    .auth-container {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .form-container {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .form-container {
        padding: 20px 15px;
    }
    
    .toilette-detail {
        padding: 20px 15px;
    }
    
    .average-ratings {
        padding: 20px 15px;
    }
    
    .auth-form h1 {
        font-size: 2rem;
    }
}


/* ===== LOGO AUTH ===== */
.auth-logo {
    text-align: center;
    margin-bottom: 25px;
}

.logo-auth {
    height: 70px; /* Taille réduite pour login */
    width: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-bottom: 10px;
    object-fit: contain;
}

.auth-logo h1 {
    color: var(--bleu-texte);
    font-size: 2.2rem; /* Légèrement réduit */
    background: linear-gradient(45deg, var(--bleu-texte), var(--violet-ombre), var(--orange-texte));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}


/* ===== BOUTON PLEINE LARGEUR ===== */
.btn-block {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* ===== AFFICHAGE DES NOTES ===== */

 .rating-display {
     margin: 12px 0;
     padding: 8px;
     background: rgba(255, 215, 0, 0.1);
     border-radius: 8px;
     border: 1px solid rgba(255, 215, 0, 0.3);
 }

 .rating-text {
     color: var(--bleu-turquoise);
     font-size: 0.9rem;
     transition: all 0.3s ease;
     min-height: 20px;
     display: block;
 }
 
 
 .average-rating {
     display: flex;
     align-items: center;
     gap: 8px;
     margin-bottom: 4px;
     font-size: 1.1rem;
 }
 
 .rating-value {
     font-weight: bold;
     color: var(--orange-texte);
     font-size: 0.9rem;
 }
 
 .review-count {
     font-size: 0.8rem;
     color: var(--bleu-turquoise);
     text-align: center;
 }
 
 .no-rating {
     color: var(--bleu-turquoise);
     font-size: 0.9rem;
     text-align: center;
     font-style: italic;
 }
 
/* ===== NAVBAR AVEC NOUVEAU NOM ===== */
.nav-brand h2 {
    font-size: 1.5rem;
    color: var(--blanc);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, var(--blanc), var(--bleu-toilette));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== AFFICHAGE DES NOTES ===== */
.rating-display {
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.average-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.rating-value {
    font-weight: bold;
    color: var(--orange-texte);
    font-size: 1rem;
}

.review-count {
    font-size: 0.9rem;
    color: var(--bleu-turquoise);
    text-align: center;
}
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 10px 15px;
    }
    
    .nav-brand {
        justify-content: center;
    }
    
    .logo {
        height: 35px; /* Encore plus petit sur mobile */
    }
    
    .nav-brand h2 {
        font-size: 1.2rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
    }
    
    .user-info {
        font-size: 0.8rem;
    }
    
    .logo-auth {
        height: 60px; /* Plus petit sur mobile */
    }
    
    .auth-logo h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 30px;
    }
    
    .nav-brand h2 {
        font-size: 1.1rem;
    }
    
    .logo-auth {
        height: 50px;
    }
    
    .auth-logo h1 {
        font-size: 1.6rem;
    }
}
