/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    --blue: #263CD9;
    --white: #ffffff;
    --ivory: #fff4d4;
    --terracotta: #A0644C;
    --grey: #252525;
    --fairepart: 'Kapakana';
    --classique: 'Open Sans', sans-serif;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, var(--blue) 40%, var(--white) 100%);
    min-height: 100vh;
    color: var(--grey);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    object-fit: cover;
    width: 75px;
    border-radius: 0%;
    /*box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);*/
    transition: opacity 2s;
}

.logo-image:hover {
    transform: scale(1.1);
}

.logo {
    font-family: 'Kapakana';
    font-size: 2.5rem;
    font-weight: 600;
    background: var(--blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0px;
}

.nav {
    display: flex;
    gap: 10px;
}

.nav-btn {
    font-family: 'Open Sans', sans-serif;
    padding: 12px 24px;
    border: none;
    border-radius: 0px;
    background: #f8f9fa;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
}

.nav-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.nav-btn.active {
    background: var(--terracotta);
    color: white;
    box-shadow: 0 4px 15px #f7b56a66;
}

/* Pastille de notification */
.notification-badge {
    position: relative;
    cursor: pointer;
    padding: 8px 12px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.notification-badge:hover {
    transform: translateY(-2px);
    /*box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);*/
}

.badge-icon {
    font-size: 1.2rem;
}

.badge-count {
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    min-width: 20px;
}

/* Panneau de notifications */
.notification-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
    border: 1px solid #e9ecef;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    color: var(--grey);
}

.panel-header h3 {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.panel-close {
    background: none;
    border: none;
    color: var(--grey);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.panel-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.panel-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
    border-radius: 0px 0px 20px 20px;
}

.panel-content .notification {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-bottom: 1px solid #e9ecef;
}

.panel-content .notification:last-child {
    border-bottom: none;
}

/* Nouveaux styles pour le panneau simplifié */
.panel-section {
    margin-bottom: 20px;
}

.panel-section-title {
    margin: 20px 0 15px 0;
    padding-bottom: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 2px solid;
}

.panel-section-title.public-section {
    color: #28a745;
    border-bottom-color: #28a745;
}

.panel-section-title.private-section {
    color: #6c757d;
    border-bottom-color: #6c757d;
}

.public-notification,
.private-notification {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.public-notification {
    border-left: 4px solid #28a745;
}

.private-notification {
    border-left: 4px solid #6c757d;
}

.notification-title {
    margin: 0 0 8px 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.notification-message {
    margin: 0 0 10px 0;
    color: #666;
    line-height: 1.5;
}

.notification-visibility {
    font-size: 11px;
    color: #666;
    padding: 2px 6px;
    background: #e9ecef;
    border-radius: 3px;
    display: inline-block;
    font-weight: 500;
}

.no-notifications {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Main Content */
.main-content {
    flex: 1;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.content-card h2 {
    font-family: 'Kapakana';
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--blue);
    letter-spacing: 0px;
}

.content-card p {
    font-family: var(--fairepart);
    font-size: 2.3rem;
    font-weight: 400;
    color: var(--blue);
    margin-bottom: 30px;
    line-height: 1;
}

/* Captcha Styles */
.captcha-container {
    max-width: 400px;
    margin: 0 auto 30px;
}

.captcha-container h3 {
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 20px;
    color: var(--grey);
    font-size: 1.5rem;
    font-weight: 500;
}

.captcha-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.captcha-display {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: 0px;
    padding: 20px;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--grey);
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.captcha-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

.captcha-error {
    color: #dc3545;
    font-size: 14px;
    text-align: center;
    animation: fadeIn 0.3s ease-in;
}

.pin-error {
    color: #dc3545;
    font-size: 14px;
    text-align: center;
    animation: fadeIn 0.3s ease-in;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* PIN Styles */
.pin-container {
    max-width: 400px;
    margin: 0 auto 30px;
}

/* Captcha Privé Styles */
.captcha-container-private {
    max-width: 400px;
    margin: 0 auto 30px;
}

.captcha-container-private h3 {
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 20px;
    color: var(--grey);
    font-size: 1.5rem;
    font-weight: 500;
}

.pin-container h3 {
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 20px;
    color: var(--grey);
    font-size: 1.5rem;
    font-weight: 500;
}

.pin-input-container {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Input Styles */
input[type="text"], input[type="password"] {
    font-family: 'Open Sans', sans-serif;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 0px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: white;
    flex: 1;
    min-width: 200px;
}

input[type="text"]:focus, input[type="password"]:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[type="text"] {
    text-transform: uppercase;
}

input[type="text"]::placeholder, input[type="password"]::placeholder {
    text-transform: none;
}

/* Button Styles */
.btn {
    font-family: 'Open Sans', sans-serif;
    padding: 15px 30px;
    border: none;
    border-radius: 0px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--blue);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Hidden Content */
.hidden-content {
    display: none;
    animation: slideDown 0.5s ease-out;
}

.hidden-content.show {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.success-message h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Public Info */
.public-info {
    text-align: left;
    background: #f8f9fa;
    margin-top: 50px;
    padding: 30px;
    border-radius: 0px;
    border-left: 2px solid var(--blue);
}

.public-info h4 {
    font-family: 'Open Sans', sans-serif;
    color: var(--grey);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 500;
}

.public-info ul {
    list-style: none;
}

.public-info li {
    font-family: 'Open Sans', sans-serif;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 1.2rem;
    font-weight: 400;
}

.public-info li:last-child {
    border-bottom: none;
}

/* Private Info */
.private-info {
    text-align: left;
}

.private-info h4 {
    font-family: 'Open Sans', sans-serif;
    color: var(--grey);
    margin-top: 100px;
    margin-bottom: 30px;
    font-size: 1.3rem;
    font-weight: 500;
    text-align: center;
}

.private-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.private-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

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

.private-invitation h2 {
    color: var(--terracotta);
}

.private-invitation p {
    color: var(--terracotta);
}

/* Modal de captcha */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: slideInDown 0.5s ease-out;
}

.captcha-modal-container h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--grey);
}

.captcha-modal-container p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

/* Notifications */
.notification-container {
    margin-bottom: 30px;
    padding: 0;
}

.notification {
    padding: 20px;
    border-radius: 0px;
    margin-bottom: 20px;
    border-left: 5px solid;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.5s ease-out;
}

.notification.info {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left-color: #2196f3;
    color: #1565c0;
}

.notification.important {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-left-color: #ff9800;
    color: #e65100;
}

.notification.urgent {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    border-left-color: #f44336;
    color: #c62828;
}

.notification h4 {
    font-family: 'Open Sans', sans-serif;
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.notification p {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
    color: inherit;
}

.notification .notification-close {
    float: right;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.notification-visibility {
    font-size: 11px;
    color: #666;
    margin-top: 8px;
    padding: 2px 6px;
    background: #f8f9fa;
    border-radius: 3px;
    display: inline-block;
}

.notification .notification-close:hover {
    opacity: 1;
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Map Container */
.map-container {
    margin-top: 40px;
    text-align: center;
}

.map-container h5 {
    font-family: var(--classique);
    color: var(--terracotta);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 500;
}

#map {
    height: 400px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Styles pour les libellés des marqueurs */
.leaflet-tooltip-top {
    margin-top: -20px !important;
}

.leaflet-tooltip-top:before {
    visibility: hidden !important;
}
.custom-tooltip { 
    background: var(--white) !important;
    opacity: 1 !important;
    border: none !important;
    border-radius: none !important;
    color: var(--terracotta) !important;
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    padding: 8px 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.custom-tooltip::before {
    border-top-color: var(--terracotta) !important;
}

.church-tooltip::before {
    border-top-color: var(--fairepart) !important;
}

.recept-tooltip::before {
    border-top-color: var(--classique) !important;
}
.private-card h5 {
    font-family: var(--classique);
    color: var(--terracotta);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 500;
}

.private-card p {
    font-family: 'Open Sans', sans-serif;
    color: var(--grey);
    line-height: 1.6;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Hint */
.hint {
    font-family: 'Open Sans', sans-serif;
    color: #6c757d;
    font-size: 1rem;
    font-style: italic;
    font-weight: 400;
}

/* Footer */
.footer {
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 30px;
    font-size: 1rem;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo-image {
        width: 60px;
    }
    
    .nav {
        justify-content: center;
    }
    
    .content-card {
        padding: 20px;
    }
    
    .content-card h2 {
        font-size: 2rem;
    }
    
    .pin-input-container {
        flex-direction: column;
    }
    
    input[type="text"], input[type="password"] {
        min-width: auto;
        width: 100%;
    }
    
    .private-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .content-card {
        padding: 15px;
    }
    
    .captcha-display {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }
}