/* ===========================================
   TOILETRATE - CSS COMPLET ET PROPRE
   Couleurs basées sur le logo officiel
   =========================================== */

/* Reset moderne */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables couleurs du logo ToiletRate */
:root {
    /* Couleurs principales du logo */
    --primary: #5DADE2;        /* Bleu ciel du logo */
    --secondary: #85C1E9;      /* Bleu plus clair */
    --accent: #F8C8DC;         /* Rose tendre du logo */
    --success: #A8E6CF;        /* Vert menthe du logo */
    --warning: #FFD93D;        /* Jaune doux */
    --error: #FF8A80;          /* Rouge adouci */
    
    /* Neutres */
    --white: #FFFFFF;
    --dark: #2C3E50;
    --gray-light: #F8F9FA;
    --gray: #E9ECEF;
    --gray-dark: #6C757D;
    
    /* Thème Royale (orange doré du logo) */
    --royal-primary: #F39C12;
    --royal-secondary: #E67E22;
    --royal-light: #FEF9E7;
    --royal-text: #2C3E50;
    --royal-bg: #34495E;
    
    /* Thème Fun (rose du logo) */
    --fun-primary: #EC7063;
    --fun-secondary: #F1948A;
    --fun-light: #FCF3CF;
    --fun-text: #7D3C98;
    
    /* Effets */
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --border-radius-large: 12px;
    --transition: all 0.3s ease;
}

/* Body de base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #EBF5FB 0%, #D6EAF8 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    overflow-y: auto;
}

/* ===== THÈMES ===== */

/* Thème Normal */
.style-normal {
    background: linear-gradient(135deg, #EBF5FB 0%, #D6EAF8 100%);
}

/* Thème Royale */
.style-royal, .style-royale {
    background: linear-gradient(135deg, #34495E 0%, #5D6D7E 100%);
    color: var(--royal-light);
}

/* Thème Fun */
.style-fun {
    background: linear-gradient(135deg, #FDEDEC 0%, #FCF3CF 100%);
}

/* ===== CONTENEURS ===== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    margin-top: 20px;
    margin-bottom: 20px;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--gray);
}

.form-width-700 {
    max-width: 700px;
}

.card-white {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* ===== PROFIL ===== */

.profile-header {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: var(--shadow-medium);
}

.profile-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: var(--shadow-medium);
}

.profile-info {
    flex: 1;
}

.profile-bio {
    margin-top: 10px;
    padding: 10px;
    background: var(--gray-light);
    border-radius: 6px;
    font-style: italic;
    color: var(--dark);
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Owner badge on note forms */
.owner-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px 15px;
    background: var(--gray-light);
    border-radius: 20px;
}

.owner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.owner-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-actions {
        width: 100%;
    }
}

/* ===== NAVIGATION ===== */

.navbar {
    padding: 15px 0;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.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;
    font-size: 1.5rem;
    font-weight: bold;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.brand-text {
    color: var(--primary);
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--primary);
    color: var(--white);
}

.user-badge {
    background: var(--success);
    color: var(--dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== LOGO ET IMAGES ===== */

.site-logo {
    height: 40px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
}

.auth-large {
    height: 80px;
    width: auto;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.toilette-photo, .toilette-detail-image {
    width: 100%;
    height: 200px;
    background: var(--gray-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toilette-detail-image {
    width: 300px;
    height: 250px;
    min-width: 280px;
}

.toilette-photo--large {
    height: 300px;
    font-size: 4rem;
}

.toilette-photo img, .toilette-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.emoji-placeholder, .emoji-lg, .emoji-xxl {
    font-size: 3rem;
    opacity: 0.7;
}

.emoji-lg {
    font-size: 4rem;
}

.emoji-xxl {
    font-size: 2rem;
}

/* ===== BOUTONS ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--gray);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--gray-dark);
    color: var(--white);
}

.btn-success {
    background: var(--success);
    color: var(--dark);
}

.btn-warning {
    background: var(--warning);
    color: var(--dark);
}

.btn-danger {
    background: var(--error);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-flex-equal {
    flex: 1;
}

.btn-royal {
    background: linear-gradient(135deg, var(--royal-primary) 0%, var(--royal-secondary) 100%);
    color: var(--white);
}

.btn-fun {
    background: linear-gradient(135deg, var(--fun-primary) 0%, var(--fun-secondary) 100%);
    color: var(--white);
}

/* ===== FORMULAIRES ===== */

.form-group {
    margin-bottom: 20px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Labels de formulaire */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

/* Inputs de base */
input[type="text"],
input[type="email"], 
input[type="password"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    color: var(--dark);
    transition: var(--transition);
    box-sizing: border-box;
}

/* Focus sur les inputs */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="file"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.1);
}

/* Inputs invalides */
input[type="text"]:invalid,
input[type="email"]:invalid,
input[type="password"]:invalid {
    border-color: var(--error);
}

/* Textarea spécifique */
textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

/* Select */
select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

/* File input */
input[type="file"] {
    padding: 8px 12px;
    cursor: pointer;
}

/* Radio buttons et checkboxes */
input[type="radio"],
input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

/* Placeholder */
input::placeholder,
textarea::placeholder {
    color: var(--gray-dark);
    opacity: 0.8;
}

.rating-form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-large);
}

.rating-categories {
    margin-bottom: 30px;
}

.rating-item {
    margin-bottom: 25px;
}

.rating-slider-group {
    margin-bottom: 20px;
}

.royale-slider-group {
    border-left: 4px solid var(--royal-primary);
    padding-left: 15px;
}

.rating-slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Labels thématiques */
.royal-label, .royale-text {
    color: var(--royal-primary);
    font-weight: 600;
}

.fun-label, .fun-text {
    color: var(--fun-primary);
    font-weight: 600;
}

.fun-address {
    color: var(--fun-secondary);
}

/* Inputs thématiques */
.pseudo-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.normal-pseudo {
    border-color: var(--primary);
}

.royal-pseudo, .royal-input {
    border-color: var(--royal-primary);
    background: var(--royal-light);
}

.fun-pseudo, .fun-input {
    border-color: var(--fun-primary);
    background: var(--fun-light);
}

.royal-textarea, .fun-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    resize: vertical;
}

.royal-textarea {
    border: 2px solid var(--royal-primary);
    background: var(--royal-light);
}

.fun-textarea {
    border: 2px solid var(--fun-primary);
    background: var(--fun-light);
}

/* Badge de valeur royale */
.royale-value-badge {
    background: var(--royal-primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

/* ===== SLIDERS ===== */

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 20px;
    background: var(--gray);
    outline: none;
    margin: 15px 0;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    cursor: pointer;
    box-shadow: var(--shadow-light);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    cursor: pointer;
    box-shadow: var(--shadow-light);
}

/* ===== ÉTOILES ===== */

.stars, .stars-container {
    display: inline-flex;
    gap: 2px;
}

.star {
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.star.full {
    color: var(--warning);
}

.star.empty {
    color: var(--gray);
}

.rating-display .star {
    cursor: default;
}

.rating-value {
    font-weight: bold;
    color: var(--primary);
    margin-left: 10px;
}

.rating-text {
    color: var(--gray-dark);
    font-style: italic;
}

/* ===== CARTES TOILETTES ===== */

.toilettes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.toilette-card {
    background: var(--white);
    border-radius: var(--border-radius-large);
    padding: 20px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--gray);
}

.toilette-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.toilette-info {
    padding: 15px 0;
}

.toilette-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.toilette-detail {
    margin-bottom: 30px;
}

.toilette-detail-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.toilette-detail-info {
    flex: 1;
    min-width: 0; /* Permet la réduction */
}

.toilette-detail-info h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--dark);
    line-height: 1.2;
}

.detail-header, .detail-info, .detail-photo {
    margin-bottom: 20px;
}

.toilette-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray);
}

/* ===== MOYENNES ET NOTATIONS ===== */

.average-ratings {
    margin: 30px 0;
}

.averages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.average-item {
    background: var(--gray-light);
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
}

.average-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.average-stars {
    margin: 8px 0;
}

.average-value {
    font-weight: bold;
    color: var(--primary);
}

.ratings-summary {
    background: var(--gray-light);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 20px 0;
}

.ratings-summary .rating-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.ratings-summary p {
    margin: 5px 0;
}

.ratings-list {
    margin-top: 30px;
}

.rating-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.rating-item-label {
    font-weight: 600;
}

.rating-item-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary);
}

.score-item {
    background: var(--gray-light);
    padding: 10px;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.review-count {
    color: var(--gray-dark);
    font-size: 0.9rem;
}

/* ===== COMMENTAIRES ===== */

.comments-section, .comments-list {
    margin-top: 30px;
}

.comment {
    background: var(--gray-light);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-grid {
    display: grid;
    gap: 15px;
}

.comment-text {
    line-height: 1.6;
}

.comment-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.comment-author {
    font-weight: 600;
}

.comment-date {
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.rating-comment {
    margin-bottom: 15px;
}

.public-comment {
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

.private-comment, .private-note {
    border-left: 4px solid var(--warning);
    padding-left: 15px;
    background: rgba(255, 211, 61, 0.1);
}

/* ===== ALERTES ===== */

.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(168, 230, 207, 0.2);
    border-color: var(--success);
    color: #1e7e34;
}

.alert-error, .alert-danger {
    background: rgba(255, 138, 128, 0.2);
    border-color: var(--error);
    color: #721c24;
}

/* ===== NAVIGATION BREADCRUMB ===== */

.breadcrumb {
    margin-bottom: 20px;
    color: var(--gray-dark);
}

/* ===== SECTIONS ===== */

.section-title, .section-header {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.cta-banner {
    text-align: center;
    padding: 30px;
    background: var(--gray-light);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--gray-dark);
}

/* ===== STATISTIQUES ===== */

.stats-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    padding: 0;
}

.stat-item {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(93, 173, 226, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 30px rgba(93, 173, 226, 0.4);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 3rem;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2));
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.stat-content {
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2C3E50;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(44, 62, 80, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Variantes de couleurs pour les stats - Harmonie avec le logo */
.stat-item:nth-child(1) {
    background: linear-gradient(135deg, #D6EAF8 0%, #AED6F1 100%);
    box-shadow: 0 5px 20px rgba(93, 173, 226, 0.25);
}

.stat-item:nth-child(1):hover {
    box-shadow: 0 10px 30px rgba(93, 173, 226, 0.4);
}

.stat-item:nth-child(2) {
    background: linear-gradient(135deg, #D5F4E6 0%, #ABEBC6 100%);
    box-shadow: 0 5px 20px rgba(168, 230, 207, 0.25);
}

.stat-item:nth-child(2):hover {
    box-shadow: 0 10px 30px rgba(168, 230, 207, 0.4);
}

.stat-item:nth-child(3) {
    background: linear-gradient(135deg, #FEF5E7 0%, #FCE1A4 100%);
    box-shadow: 0 5px 20px rgba(255, 217, 61, 0.25);
}

.stat-item:nth-child(3):hover {
    box-shadow: 0 10px 30px rgba(255, 217, 61, 0.4);
}

.stat-item:nth-child(4) {
    background: linear-gradient(135deg, #FCE4EC 0%, #F8BBD0 100%);
    box-shadow: 0 5px 20px rgba(248, 200, 220, 0.25);
}

.stat-item:nth-child(4):hover {
    box-shadow: 0 10px 30px rgba(248, 200, 220, 0.4);
}

/* Responsive stats */
@media (max-width: 768px) {
    .stats-banner {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-item {
        padding: 20px 15px;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .stats-banner {
        grid-template-columns: 1fr;
    }
}

/* ===== QR CODE ===== */

.qr-section {
    margin: 30px 0;
    text-align: center;
}

.qr-code, .qr-code-print {
    max-width: 200px;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    padding: 10px;
    background: var(--white);
}

.code-badge {
    background: var(--gray-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
}

/* ===== UTILITAIRES ===== */

.meta-box {
    background: var(--gray-light);
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 15px 0;
    border-left: 4px solid var(--primary);
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.owner-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.auth-form, .auth-link {
    margin-top: 20px;
}

/* Password strength indicator */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 6px;
    background: var(--gray);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background 0.3s ease;
    background: var(--gray-dark);
}

.password-strength small {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.link-primary, .fun-link {
    color: var(--primary);
    text-decoration: none;
}

.link-undecorated {
    text-decoration: none;
}

/* Classes de texte */
.lead {
    font-size: 1.1rem;
    font-weight: 500;
}

.muted, .muted-small {
    color: var(--gray-dark);
}

.muted-small {
    font-size: 0.9rem;
}

.text-center, .text-center-emphasized {
    text-align: center;
}

.proprietaire, .date {
    font-weight: 500;
}

.small-margin, .small-margin-text {
    margin: 5px 0;
}

/* Classes de layout */
.d-flex-space {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.d-flex-gap {
    display: flex;
    gap: 15px;
}

.flex-space-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-gap-10 {
    display: flex;
    gap: 10px;
}

/* Classes de marge */
.mb-30 { margin-bottom: 30px; }
.mb-20 { margin-bottom: 20px; }
.mb-15 { margin-bottom: 15px; }
.mb-10 { margin-bottom: 10px; }
.mb-5 { margin-bottom: 5px; }
.mt-30 { margin-top: 30px; }
.mt-20 { margin-top: 20px; }
.mt-15 { margin-top: 15px; }
.mt-10 { margin-top: 10px; }
.mt-5 { margin-top: 5px; }

/* ===== PRINT (pour QR codes) ===== */

.print-container {
    padding: 40px;
    text-align: center;
}

.print-header {
    margin-bottom: 30px;
}

.print-logo {
    height: 60px;
    width: auto;
}

.print-emoji-logo {
    font-size: 3rem;
}

.print-title {
    font-size: 2rem;
    margin: 20px 0;
}

.print-subtitle, .print-instruction {
    font-size: 1.1rem;
    margin: 15px 0;
}

.print-url {
    margin: 20px 0;
    font-family: monospace;
}

.no-print {
    margin-top: 30px;
}

@media print {
    .no-print {
        display: none !important;
    }
}

/* ===== FOOTER ===== */

.site-footer {
    background: var(--gray-light);
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid var(--gray);
}

.footer-credits {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--gray-dark);
    font-style: italic;
}

.footer-credits strong {
    color: var(--primary);
    font-weight: 600;
}

.footer-links {
    margin-top: 10px;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ===== PAGES LEGALES ===== */

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-content h2 {
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.legal-content h3 {
    color: var(--dark);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.legal-content p, .legal-content ul {
    margin-bottom: 15px;
}

.legal-content ul {
    padding-left: 25px;
}

.legal-content ul li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-acceptance {
    background: var(--primary);
    color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    text-align: center;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    .toilettes-grid {
        grid-template-columns: 1fr;
    }
    
    .toilette-detail-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .toilette-detail-image {
        width: 100%;
        min-width: auto;
        height: 200px;
    }
    
    .toilette-detail-info h1 {
        font-size: 1.5rem;
    }
    
    .rating-breakdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-flex-equal {
        width: 100%;
    }
    
    .averages-grid, .rating-breakdown {
        grid-template-columns: 1fr;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .d-flex-space, .flex-space-between {
        flex-direction: column;
        gap: 10px;
    }
}

/* Amélioration des contrastes pour les thèmes */
.style-royal .container, .style-royale .container {
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark);
}

.style-fun .container {
    background: rgba(255, 255, 255, 0.95);
}

/* Headers spéciaux pour Royale */
.royale-header {
    background: linear-gradient(135deg, var(--royal-light) 0%, rgba(243, 156, 18, 0.1) 100%);
    border: 2px solid var(--royal-primary);
}

.royale-header-spacing {
    padding: 40px;
}

/* ===== CLASSES MANQUANTES TROUVÉES DANS L'AUDIT ===== */

/* Profil utilisateur */
.profile-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

/* Modération */
.moderation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.moderation-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--gray);
    box-shadow: var(--shadow-light);
}

.moderation-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.status-badge, .status-pending, .status-approved, .status-rejected {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background: var(--warning);
    color: var(--dark);
}

.status-approved {
    background: var(--success);
    color: var(--dark);
}

.status-rejected {
    background: var(--error);
    color: var(--white);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.pagination a, .pagination span {
    padding: 8px 12px;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--dark);
    background: var(--white);
}

.pagination .current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    padding: 25px;
    border-radius: var(--border-radius-large);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin: 10px 0;
}

.stat-label {
    color: var(--gray-dark);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-item {
    background: var(--gray-light);
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

/* Messages flash */
.messages {
    margin-bottom: 20px;
}

.message {
    padding: 12px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.message-success {
    background: rgba(168, 230, 207, 0.2);
    border-left: 4px solid var(--success);
    color: #155724;
}

.message-error {
    background: rgba(255, 138, 128, 0.2);
    border-left: 4px solid var(--error);
    color: #721c24;
}

.message-info {
    background: rgba(93, 173, 226, 0.2);
    border-left: 4px solid var(--primary);
    color: #0c5460;
}

/* Formulaires d'upload */
.upload-area {
    border: 2px dashed var(--gray);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    background: var(--gray-light);
    transition: var(--transition);
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(93, 173, 226, 0.1);
}

.upload-icon {
    font-size: 2rem;
    color: var(--gray-dark);
    margin-bottom: 10px;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--white);
}

.table th, .table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray);
}

.table th {
    background: var(--gray-light);
    font-weight: 600;
}

/* Filtres */
.filters {
    background: var(--gray-light);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 4px 8px;
    background: var(--gray);
    color: var(--dark);
    border-radius: 12px;
    font-size: 0.8rem;
    text-decoration: none;
}

.tag:hover {
    background: var(--primary);
    color: var(--white);
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--gray-dark);
}

.spinner {
    border: 4px solid var(--gray-light);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utilitaires supplémentaires */
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--error) !important; }
.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--gray-dark) !important; }

.bg-light { background: var(--gray-light) !important; }
.bg-white { background: var(--white) !important; }

.border { border: 1px solid var(--gray) !important; }
.border-top { border-top: 1px solid var(--gray) !important; }
.border-bottom { border-bottom: 1px solid var(--gray) !important; }

.rounded { border-radius: var(--border-radius) !important; }
.rounded-lg { border-radius: var(--border-radius-large) !important; }

.shadow { box-shadow: var(--shadow-light) !important; }
.shadow-lg { box-shadow: var(--shadow-medium) !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 5px !important; }
.p-2 { padding: 10px !important; }
.p-3 { padding: 15px !important; }
.p-4 { padding: 20px !important; }
.p-5 { padding: 30px !important; }

.m-0 { margin: 0 !important; }
.m-1 { margin: 5px !important; }
.m-2 { margin: 10px !important; }
.m-3 { margin: 15px !important; }
.m-4 { margin: 20px !important; }
.m-5 { margin: 30px !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }