/* style.css COMPLET pour le Royaume de Golliez */
/* Variables Royales Golliez */
:root {
    --or-royal: #D4AF37;
    --bleu-royal: #1E3A8A;
    --bleu-pale: #3B82F6;
    --texte-noir: #1F2937;
    --texte-blanc: #F9FAFB;
    --fond-blanc: #FFFFFF;
    --fond-pale: #F3F4F6;
    --bordure: #E5E7EB;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
}

/* Reset et Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, var(--bleu-royal) 0%, var(--bleu-pale) 100%);
    color: var(--texte-noir);
    min-height: 100vh;
    line-height: 1.6;
}

/* En-tête Royal */
.header-royal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 4px solid var(--or-royal);
    padding: 1.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Styles pour le drapeau */
.drapeau {
    margin-bottom: 0.5rem;
    animation: flotter 3s ease-in-out infinite alternate;
}

.drapeau img {
    width: 100px;  /* Taille adaptée pour un drapeau */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--or-royal);
    animation: briller 2s ease-in-out infinite alternate;
}

@keyframes flotter {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

@keyframes briller {
    from { 
        filter: brightness(1);
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    }
    to { 
        filter: brightness(1.1);
        box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    }
}
.header-royal h1 {
    color: var(--bleu-royal);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.header-royal p {
    color: var(--texte-noir);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Navigation Royale */
.nav-royale {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.nav-royale a {
    text-decoration: none;
    color: var(--bleu-royal);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-royale a:hover {
    border-color: var(--or-royal);
    background-color: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.nav-royale .nav-active {
    border-color: var(--or-royal);
    background-color: rgba(212, 175, 55, 0.2);
}

.nav-admin {
    color: var(--or-royal) !important;
    font-weight: bold !important;
}

/* Conteneur Principal */
.container-royal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Styles pour l'administration */
.admin-secret {
    background: rgba(0,0,0,0.05);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 2px dashed var(--or-royal);
}

.royal-commands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.command-card {
    background: var(--fond-pale);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--or-royal);
    transition: all 0.3s ease;
}

.command-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.citoyens-list {
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid var(--bordure);
    border-radius: 8px;
}

.citoyen-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--bordure);
    transition: background-color 0.3s ease;
}

.citoyen-item:hover {
    background-color: var(--fond-pale);
}

.citoyen-item:last-child {
    border-bottom: none;
}

/* Styles pour les décrets */
.decret-card {
    border: 2px solid var(--or-royal);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #FEFCE8 100%);
    position: relative;
    transition: all 0.3s ease;
}

.decret-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.decret-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--bordure);
    padding-bottom: 1rem;
}

.decret-sceau {
    font-size: 3rem;
    opacity: 0.1;
    position: absolute;
    right: 2rem;
    top: 2rem;
}

.decret-date {
    color: var(--or-royal);
    font-weight: bold;
    white-space: nowrap;
}

.decret-auteur {
    font-style: italic;
    color: var(--bleu-royal);
}

.decret-contenu {
    line-height: 1.8;
    font-size: 1.1rem;
    white-space: pre-line;
}

/* Sections Royales */
.section-royale {
    background: var(--fond-blanc);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--bordure);
    transition: all 0.3s ease;
}

.section-royale:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.section-royale h2 {
    color: var(--bleu-royal);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--or-royal);
    padding-bottom: 0.5rem;
}

/* Formulaires Royaux */
.form-royal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.form-royal input,
.form-royal textarea,
.form-royal select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--bordure);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-royal input:focus,
.form-royal textarea:focus,
.form-royal select:focus {
    outline: none;
    border-color: var(--or-royal);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-royal textarea {
    resize: vertical;
    min-height: 100px;
}

/* Boutons Royaux */
.btn-royal {
    background: linear-gradient(135deg, var(--or-royal) 0%, #B8860B 100%);
    color: var(--texte-blanc);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-royal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.btn-royal:active {
    transform: translateY(0);
}

.btn-royal.danger {
    background: linear-gradient(135deg, var(--danger) 0%, #DC2626 100%);
}

/* Carte d'Identité */
.carte-identite {
    border: 3px solid var(--or-royal);
    border-radius: 12px;
    padding: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #FEFCE8 100%);
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

.carte-identite::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bleu-royal), var(--or-royal));
}

.identite-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.badge-royal {
    background: var(--bleu-royal);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge-titre {
    background: var(--or-royal);
    color: var(--texte-noir);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.identite-content h3 {
    color: var(--bleu-royal);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.identite-content p {
    margin-bottom: 0.5rem;
    color: var(--texte-noir);
}

/* Portefeuille Rondin */
.portefeuille-royal {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    border: 2px solid var(--or-royal);
    position: relative;
}

.portefeuille-royal.grand {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
    margin: 2rem auto;
}

.portefeuille-royal.grand .rondin-display {
    font-size: 2rem;
}

.portefeuille-royal.grand .rondin-symbole {
    font-size: 3rem;
}

.portefeuille-royal.grand .solde {
    font-size: 3rem;
}

.rondin-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.rondin-symbole {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.solde {
    color: var(--bleu-royal);
    font-size: 2rem;
}

.devise {
    color: var(--texte-noir);
    font-size: 1.2rem;
}

.portefeuille-info {
    margin-top: 1rem;
    color: var(--bleu-royal);
    font-style: italic;
    text-align: center;
}

/* Statistiques Royales */
.stats-royales {
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-item {
    background: var(--fond-pale);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--bordure);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--or-royal);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--or-royal);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--bleu-royal);
    font-weight: 600;
}

/* Styles Boutique */
.produits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.produit-card {
    background: var(--fond-blanc);
    border: 2px solid var(--bordure);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.produit-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bleu-royal), var(--or-royal));
}

.produit-card:hover {
    border-color: var(--or-royal);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.produit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.produit-header h3 {
    color: var(--bleu-royal);
    margin: 0;
    font-size: 1.3rem;
    flex: 1;
}

.produit-prix {
    background: var(--or-royal);
    color: var(--texte-blanc);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap;
}

.produit-description {
    color: var(--texte-noir);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Styles Administration */
.admin-secret {
    background: rgba(0,0,0,0.05);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 2px dashed var(--or-royal);
}

.royal-commands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.command-card {
    background: var(--fond-pale);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--or-royal);
    transition: all 0.3s ease;
}

.command-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.citoyens-list {
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid var(--bordure);
    border-radius: 8px;
}

.citoyen-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--bordure);
    transition: background-color 0.3s ease;
}

.citoyen-item:hover {
    background-color: var(--fond-pale);
}

.citoyen-item:last-child {
    border-bottom: none;
}

/* Styles Décrets */
.decret-card {
    border: 2px solid var(--or-royal);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #FEFCE8 100%);
    position: relative;
    transition: all 0.3s ease;
}

.decret-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.decret-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--bordure);
    padding-bottom: 1rem;
}

.decret-sceau {
    font-size: 3rem;
    opacity: 0.1;
    position: absolute;
    right: 2rem;
    top: 2rem;
}

.decret-date {
    color: var(--or-royal);
    font-weight: bold;
    white-space: nowrap;
}

.decret-auteur {
    font-style: italic;
    color: var(--bleu-royal);
}

.decret-contenu {
    line-height: 1.8;
    font-size: 1.1rem;
    white-space: pre-line;
}

/* Pied de Page Royal */
.footer-royal {
    background: rgba(0, 0, 0, 0.8);
    color: var(--texte-blanc);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 4px solid var(--or-royal);
}

.footer-royal p {
    margin-bottom: 0.5rem;
}

/* Animations et États */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.success-message {
    background: var(--success);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

.error-message {
    background: var(--danger);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--fond-pale);
}

::-webkit-scrollbar-thumb {
    background: var(--or-royal);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B8860B;
}

/* Responsive */
@media (max-width: 768px) {
    .container-royal {
        padding: 1rem;
    }
    
    .header-royal {
        padding: 1rem;
    }
    
    .header-royal h1 {
        font-size: 2rem;
    }
    
    .nav-royale {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .nav-royale a {
        width: 200px;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .produits-grid {
        grid-template-columns: 1fr;
    }
    
    .produit-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .royal-commands {
        grid-template-columns: 1fr;
    }
    
    .decret-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .citoyen-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .rondin-display {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .form-royal {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .header-royal h1 {
        font-size: 1.5rem;
    }
    
    .section-royale {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .btn-royal {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}

/* Mode impression */
@media print {
    .header-royal,
    .nav-royale,
    .footer-royal,
    .btn-royal {
        display: none;
    }
    
    .container-royal {
        padding: 0;
        margin: 0;
    }
    
    .section-royale {
        box-shadow: none;
        border: 1px solid #000;
        margin-bottom: 1rem;
    }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible pour accessibilité */
button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid var(--bleu-royal);
    outline-offset: 2px;
}

/* États de chargement */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Utilitaires */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none; }
.visible { display: block; }
.flex { display: flex; }
.flex-center { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}
.grid { display: grid; }

/* Thème sombre (optionnel) */
@media (prefers-color-scheme: dark) {
    :root {
        --texte-noir: #F9FAFB;
        --texte-blanc: #1F2937;
        --fond-blanc: #1F2937;
        --fond-pale: #374151;
        --bordure: #4B5563;
    }
    
    .section-royale {
        background: var(--fond-blanc);
        color: var(--texte-noir);
    }
    
    .produit-card {
        background: var(--fond-blanc);
        color: var(--texte-noir);
    }
    
    .carte-identite {
        background: linear-gradient(135deg, #374151 0%, #4B5563 100%);
    }
}
/* Ajouter à la fin de votre fichier style.css */
.btn-royal.danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.btn-royal.danger:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.admin-secret {
    background: rgba(0,0,0,0.05);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 2px dashed var(--or-royal);
}

.royal-commands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.command-card {
    background: var(--fond-pale);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--or-royal);
    transition: all 0.3s ease;
}

.command-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.citoyens-list {
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid var(--bordure);
    border-radius: 8px;
}

.citoyen-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--bordure);
    transition: background-color 0.3s ease;
}

.citoyen-item:hover {
    background-color: var(--fond-pale);
}

.citoyen-item:last-child {
    border-bottom: none;
}
/* Styles pour le calendrier */
.calendrier-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.controls-calendrier {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    gap: 1rem;
}

.fete-card {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.fete-item, .fete-officielle {
    transition: all 0.3s ease;
}

.fete-item:hover, .fete-officielle:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .controls-calendrier {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .fete-item > div, .fete-officielle > div {
        flex-direction: column;
        text-align: center;
    }
}