/* ====================================
   CSS MODERNE pour les pages - Version 2
   ==================================== */

/* Variables CSS modernes (cohérence avec le premier CSS) */
:root {
    --primary-color: #3d99f7;
    --secondary-color: #fecc03;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --bg-light: #f8f9fa;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --radius: 20px; /* Conserve votre border-radius de 20px */
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border-color: #d3caca;
    --card-bg: #ecf3ff;
}

/* Reset moderne */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Body modernisé avec sticky footer */
body {
    font-family: "Script MT Bold", "Comic Sans MS", "Times New Roman", -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

/* Header modernisé avec glassmorphism */
header {
    background: rgba(61, 153, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 0;
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header p {
    margin: 0;
    padding: 0;
}

header img {
    display: block;
    padding-left: 20px;
    padding-bottom: 0;
    margin: 0;
    border: 0;
    transition: var(--transition);
    border-radius: 8px;
}

header img:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Section principale - flex pour sticky footer */
section {
    flex: 1;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    width: 950px;
    padding: 2rem 0;
    /* Hauteur calculée dynamiquement selon le contenu */
    min-height: calc(100vh - 200px);
}

/* Conteneur pour gérer la hauteur du contenu */
section::after {
    content: "";
    display: block;
    clear: both;
    height: 0;
}

/* Cadre principal modernisé */
section div#cadre {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(211, 202, 202, 0.6);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    
    /* Structure modifiée pour respect du flux */
    padding-top: 50px;
    padding-bottom: 50px;
    display: block; /* Changé de inline-block à block */
    position: relative; /* Changé d'absolute à relative */
    width: 900px;
    margin: 50px auto; /* Centré automatiquement */
    margin-bottom: 50px; /* Espacement avec le footer */
    min-height: auto; /* Hauteur automatique selon le contenu */
    word-wrap: break-word;
    overflow: visible; /* Changé d'auto à visible */
    z-index: 1;
}

section div#cadre:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* Paragraphes dans le cadre - style carte moderne */
section div#cadre p {
    width: 600px;
    border: 1px solid rgba(61, 153, 247, 0.3);
    border-radius: var(--radius);
    margin: 40px;
    margin-left: 150px;
    padding: 20px;
    color: var(--text-dark);
    font-size: 18px;
    font-family: "Verdana", sans-serif;
    text-align: justify;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(236, 243, 255, 0.8) 100%);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    line-height: 1.8;
}

section div#cadre p:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

/* Liens dans le cadre */
section div#cadre a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

section div#cadre a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Images dans les paragraphes */
section div#cadre p img {
    display: block;
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 10px;
    padding: 0;
    width: 215px;
    margin: 20px auto;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

section div#cadre p img:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border-color: var(--primary-color);
}

/* Menu latéral modernisé */
section div#menu1 {
    background: rgba(241, 241, 241, 0.95);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(211, 202, 202, 0.6);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: slideInLeft 0.8s ease-out;
    
    /* Positionnement absolu par rapport à la section */
    display: block;
    position: absolute;
    z-index: 2;
    width: 100px;
    height: 200px;
    left: -120px; /* Position relative à la section */
    top: 150px; /* Position depuis le top de la section */
    margin: 0;
}

section div#menu1:hover {
    transform: translateY(-2px);
    background: rgba(241, 241, 241, 1);
}

section div#menu1 ul {
    text-align: center;
    font-size: 1.2em;
    color: #9a9b9a;
    list-style-type: none;
    padding: 0;
    margin: 0;
    padding-top: 5px;
}

section div#menu1 li a {
    text-decoration: none;
    color: #9a9b9a;
    transition: var(--transition);
    display: inline-block;
    padding: 0.5rem;
    border-radius: 8px;
}

section div#menu1 li a:hover {
    color: #540a22;
    background: rgba(84, 10, 34, 0.1);
    transform: translateY(-1px);
    border-bottom: 2px solid #540a22;
}


/* ====================================
   CSS pour les effets d'hover sur albums photo
   ==================================== */

/* Variables pour les couleurs */
:root {
    --album-text-color: #ffffff; /* Blanc pour le texte */
    --album-text-hover: #fecc03; /* Jaune doré au survol */
    --album-border-normal: rgba(255, 255, 255, 0.3); /* Bordure normale */
    --album-border-hover: #fecc03; /* Bordure au survol */
    --album-shadow-normal: 0 4px 15px rgba(0, 0, 0, 0.2);
    --album-shadow-hover: 0 8px 25px rgba(254, 204, 3, 0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Conteneur des rectangles d'albums */
.album-container {
    position: relative;
    border: 2px solid var(--album-border-normal);
    border-radius: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    box-shadow: var(--album-shadow-normal);
    cursor: pointer;
    overflow: hidden;
}

/* Effet au survol du conteneur */
.album-container:hover {
    border-color: var(--album-border-hover);
    box-shadow: var(--album-shadow-hover);
    transform: translateY(-3px);
    background: rgba(254, 204, 3, 0.08);
}

/* Style pour les liens d'albums */
.album-link {
    text-decoration: none !important;
    color: var(--album-text-color);
    display: block;
    transition: var(--transition-smooth);
    position: relative;
    font-weight: 500;
}

/* Supprime le soulignement par défaut */
.album-link:hover {
    text-decoration: none !important;
    color: var(--album-text-hover);
}

/* Effet de texte au survol */
.album-text {
    color: var(--album-text-color);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
}

.album-container:hover .album-text {
    color: var(--album-text-hover);
    transform: scale(1.05);
    text-shadow: 0 2px 10px rgba(254, 204, 3, 0.5);
}

/* Effet de brillance au survol */
.album-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: var(--transition-smooth);
    opacity: 0;
    z-index: 1;
}

.album-container:hover::before {
    animation: shimmer 0.8s ease-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

/* Style pour les images dans les albums */
.album-image {
    transition: var(--transition-smooth);
    border-radius: 10px;
    overflow: hidden;
}

.album-container:hover .album-image {
    transform: scale(1.02);
    filter: brightness(1.1) saturate(1.1);
}

/* Alternative avec effet de glow */
.album-container-glow {
    position: relative;
    border: 2px solid var(--album-border-normal);
    border-radius: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    box-shadow: var(--album-shadow-normal);
    cursor: pointer;
}

.album-container-glow:hover {
    border-color: var(--album-border-hover);
    box-shadow: 
        var(--album-shadow-hover),
        inset 0 0 20px rgba(254, 204, 3, 0.1),
        0 0 30px rgba(254, 204, 3, 0.2);
    transform: translateY(-3px);
}

.album-container-glow:hover .album-text {
    color: var(--album-text-hover);
    text-shadow: 0 0 15px rgba(254, 204, 3, 0.7);
}

/* Version avec animation pulsante */
.album-container-pulse:hover {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: var(--album-shadow-hover);
    }
    50% {
        box-shadow: 
            var(--album-shadow-hover),
            0 0 40px rgba(254, 204, 3, 0.4);
    }
}

/* CSS spécifique pour votre structure PHP existante */

/* Ciblage de vos paragraphes d'albums dans le cadre */
section div#cadre a {
    text-decoration: none !important;
    transition: var(--transition-smooth) !important;
    display: block;
    position: relative;
}

/* Style pour les paragraphes contenant les albums */
section div#cadre a p {
    border: 2px solid var(--album-border-normal) !important;
    border-radius: 15px !important;
    padding: 15px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    transition: var(--transition-smooth) !important;
    box-shadow: var(--album-shadow-normal) !important;
    cursor: pointer !important;
    position: relative;
    overflow: hidden;
    
    /* Préservation exacte de vos valeurs originales */
    width: 600px !important;
    margin: 40px !important;
    margin-left: 150px !important;
    font-size: 18px !important;
    font-family: "Verdana", sans-serif !important;
    text-align: justify !important;
    line-height: 1.8 !important;
}

/* Effet au survol des paragraphes d'albums */
section div#cadre a:hover p {
    border-color: var(--album-border-hover) !important;
    box-shadow: var(--album-shadow-hover) !important;
    transform: translateY(-3px) !important;
    background: rgba(254, 204, 3, 0.08) !important;
}

/* Ciblage spécifique du span avec style="color:blue" */
section div#cadre a p span[style*="color:blue"],
section div#cadre a p span[style*="color: blue"] {
    color: var(--album-text-color) !important;
    transition: var(--transition-smooth) !important;
    font-weight: 600 !important;
}

/* Effet au survol pour le texte du titre */
section div#cadre a:hover p span[style*="color:blue"],
section div#cadre a:hover p span[style*="color: blue"] {
    color: var(--album-text-hover) !important;
    text-shadow: 0 2px 10px rgba(254, 204, 3, 0.5) !important;
    transform: scale(1.05) !important;
    display: inline-block;
}

/* Style pour les images dans les albums */
section div#cadre a p img {
    transition: var(--transition-smooth) !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

/* Effet au survol des images */
section div#cadre a:hover p img {
    transform: scale(1.02) !important;
    filter: brightness(1.1) saturate(1.1) !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2) !important;
}

/* Suppression du soulignement au survol */
section div#cadre a:hover {
    text-decoration: none !important;
}

/* Effet de brillance au survol */
section div#cadre a p::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: var(--transition-smooth);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

section div#cadre a:hover p::before {
    animation: shimmer 0.8s ease-out;
}

/* S'assurer que le contenu reste au-dessus de l'effet */
section div#cadre a p > * {
    position: relative;
    z-index: 2;
}




/* Footer modernisé sticky */
footer {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    border-top: 3px solid var(--secondary-color);
    margin: 0; /* Supprime tous les margins */
    padding: 0; /* Supprime tous les paddings par défaut */
    left: 0;
    margin-top: auto;
    flex-shrink: 0;
    position: relative;
    width: 100%;
    min-height: 60px; /* Hauteur minimale garantie */
    box-sizing: border-box; /* Important pour les calculs de largeur */
}

footer p {
    padding: 15px 20px; /* Padding ajusté pour plus d'espace */
    font-family: arial, sans-serif;
    font-size: 1em;
    margin: 0; /* Supprime complètement les margins */
    text-align: center;
    color: white;
    line-height: 1.6;
    background: transparent; /* Assure que le p n'a pas d'arrière-plan */
}

footer a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
    font-weight: 500;
}

footer a:hover {
    color: white;
    text-decoration: underline;
    transform: translateY(-1px);
}

/* Lien d'administration dans le footer - VERSION AMÉLIORÉE */
footer .admin-link,
footer a[href*="admin"] {
    display: inline-block; /* Changé de block à inline-block */
    text-align: center;
    padding: 8px 15px;
    background: rgba(0,0,0,0.2); /* Assombri légèrement */
    margin: 5px auto 0 auto;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px; /* Ajout de bordures arrondies */
    transition: var(--transition);
}

footer .admin-link:hover,
footer a[href*="admin"]:hover {
    background: rgba(0,0,0,0.3);
    transform: translateY(-1px);
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    section {
        width: 100%;
        padding: 1rem;
    }
    
    section div#cadre {
        width: calc(100% - 40px);
        margin: 20px auto;
    }
    
    section div#menu1 {
        position: relative;
        width: 100%;
        height: auto;
        margin: 20px 0;
        left: auto;
        top: auto;
    }
    
    section div#cadre p {
        width: calc(100% - 40px);
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (max-width: 1200px) {
    section {
        position: relative;
        overflow: visible;
    }
    
    section div#menu1 {
        left: -120px;
    }
}

@media (max-width: 1070px) {
    section div#menu1 {
        display: none;
    }
}

/* Mode sombre (bonus) */
/*@media (prefers-color-scheme: dark) {*/
    :root {
        --text-dark: #ecf0f1;
        --bg-light: #2c3e50;
        --card-bg: rgba(52, 73, 94, 0.8);
    }
    
    body {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    section div#cadre {
        background: rgba(52, 73, 94, 0.95);
        color: var(--text-dark);
    }
    
    section div#cadre p {
        background: var(--card-bg);
        color: var(--text-dark);
        border-color: rgba(61, 153, 247, 0.5);
    }
    
    section div#menu1 {
        background: rgba(52, 73, 94, 0.95);
    }
/*}*/

/* Améliorations de performance */
img {
    max-width: 100%;
    height: auto;
}

/* Scroll-bar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

