/* ==========================================================================
   BASE COMMUNE (Toutes les pages)
   ========================================================================== */
:root {
    --cyan: #00ffff;
    --orange: #ff6600;
    --green: #32cd32;
    --purple: #8a2be2;
    --bg-dark: #05051a;
    --font-title: 'Russo One', sans-serif;
    --font-text: 'Rajdhani', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: white;
    font-family: var(--font-text);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Bannière Universelle */
.banner-container {
    width: 100%;
    background-color: #02020a;
    padding: 15px 0;
    text-align: center;
    border-bottom: 2px solid var(--purple);
	background-image: url('ressources/onon_universe_logo.png');
}

/* Bannière Universelle */
.banner-container {
    width: 100%;
    background-color: #02020a;
    padding: 10px 0; /* Réduit un peu pour laisser place au logo */
    text-align: center;
    border-bottom: 2px solid var(--purple);
}

.main-logo {
    max-height: 80px; /* Ajustez la hauteur selon vos besoins */
    width: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.3)); /* Optionnel : petit éclat cyan */
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

/* Barre de Navigation (Commune à Services et Expositions) */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-family: var(--font-text);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links li a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--cyan);
}

/* Pied de page statique */
.static-footer {
    background: #02020a;
    border-top: 2px solid var(--purple);
    padding: 40px 20px 20px;
    margin-top: 50px;
    font-family: var(--font-text);
}
.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-logo { font-family: var(--font-title); font-size: 1.5rem; color: white; }
.footer-contact p { margin-bottom: 5px; color: #ccc; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--cyan); text-decoration: none; }
.footer-bottom { text-align: center; color: #666; margin-top: 30px; padding-top: 20px; border-top: 1px solid #222; }

/* Typographie Utilitaire */
.text-cyan { color: var(--cyan); }
.text-green { color: var(--green); }
.text-orange { color: var(--orange); }
.text-purple { color: var(--purple); }
.text-dark { color: #222; }


/* ==========================================================================
   SPÉCIFICITÉS : PAGE ACCUEIL (index.php)
   ========================================================================== */
.pricing-section { margin-bottom: 50px; }
.pricing-section h2 { font-family: var(--font-title); font-size: 1.8rem; margin-bottom: 5px; }
.section-subtitle { color: #aaa; margin-bottom: 20px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.card {
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }
.bg-blue { background: rgba(0, 0, 100, 0.5); border-color: var(--cyan); }
.bg-teal { background: rgba(0, 100, 100, 0.5); border-color: var(--green); }
.bg-gold { background: rgba(100, 50, 0, 0.5); border-color: var(--orange); }
.bg-white { background: #fff; }

.card-title, .white-card-title { font-family: var(--font-title); font-size: 1.5rem; margin-bottom: 10px; }
.card-price { font-family: var(--font-title); font-size: 1.8rem; font-weight: bold; }

/* Formulaire */
.contact-section { background: rgba(255,255,255,0.05); padding: 30px; border-radius: 15px; margin-top: 50px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px; border-radius: 5px; border: none; background: #fff; color: #000; box-sizing: border-box;
}
button[type="submit"] {
    background: var(--purple); color: white; border: none; padding: 15px 30px; font-family: var(--font-title);
    border-radius: 30px; cursor: pointer; text-transform: uppercase; width: 100%; transition: transform 0.3s;
}
button[type="submit"]:hover { transform: scale(1.02); }


/* ==========================================================================
   SPÉCIFICITÉS : PAGE SERVICES (services.php)
   ========================================================================== */
.portfolio-header { text-align: center; padding: 40px 20px; }
.portfolio-header h1 { font-family: var(--font-title); font-size: 2.5rem; }
.highlight { color: var(--cyan); }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.carte-service { text-decoration: none; color: inherit; display: block; }
.portfolio-item {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease, border-color 0.3s;
}
.portfolio-item:hover {
    transform: translateY(-8px);
    border-color: var(--cyan);
}

.item-image img, .item-image video {
    width: 100%; height: 200px; object-fit: cover; display: block;
}

.item-content { padding: 20px; }
.item-content h3 { font-family: var(--font-title); margin-bottom: 10px; font-size: 1.3rem; }
.item-content p { color: #ccc; font-size: 0.95rem; line-height: 1.4; }

/* Couleurs des titres Services */
.h31 h3 { color: #F5F5F5; }
.h32 h3 { color: #58c691; }
.h33 h3 { color: #f56929; }
.h34 h3 { color: #ea348c; }
.h35 h3 { color: #fcbe22; }
.h36 h3 { color: #07a09c; }
.h37 h3 { color: #a03607; }
.h38 h3 { color: var(--purple); }
.h39 h3 { color: #777777; }


/* ==========================================================================
   SPÉCIFICITÉS : PAGE EXPOSITIONS (expositions.php)
   ========================================================================== */
.header-expo { display: flex; flex-direction: column; align-items: center; padding-bottom: 20px; padding-top: 30px; }
.header-expo h1 { font-family: var(--font-title); font-size: 2rem; margin: 10px 0; }

.btn-commander {
    display: inline-block; margin-top: 15px; padding: 10px 25px;
    background: linear-gradient(90deg, var(--purple), #5e00ff);
    color: white; text-decoration: none; font-family: var(--font-title);
    border-radius: 30px; text-transform: uppercase; transition: transform 0.3s;
}
.btn-commander:hover { transform: scale(1.05); }

.expo-section { padding: 80px 0 40px; }

/* Conteneur pour centrer le titre */
.expo-title-wrapper { text-align: center; margin-bottom: 40px; width: 100%; }
.expo-title {
    font-family: var(--font-title);
    font-size: 2rem;
    border-bottom: 3px solid;
    display: inline-block;
    padding-bottom: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative; border-radius: 10px; overflow: hidden; background: #111;
    aspect-ratio: 1 / 1; border: 1px solid rgba(255,255,255,0.1);
}
.media-content {
    width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease;
}
.gallery-item:hover .media-content { transform: scale(1.1); }

.media-overlay {
    position: absolute; 
    top: 0; /* On l'accroche en haut au lieu de 'bottom' */
    left: 0; 
    right: 0;
    background: rgba(0, 0, 0, 0.85); 
    color: white; 
    padding: 15px;
    text-align: center; 
    transform: translateY(-100%); /* Il est caché vers le haut par défaut */
    transition: transform 0.3s ease;
    z-index: 10; /* Assure qu'il passe bien au-dessus du reste */
}

.gallery-item:hover .media-overlay { 
    transform: translateY(0); /* Il glisse vers le bas au survol */
}
.media-overlay h3 { font-family: var(--font-title); font-size: 1.1rem; margin-bottom: 5px; }
.media-overlay p { font-size: 0.9rem; color: #ccc; }

.no-media { color: #aaa; font-style: italic; text-align: center; width: 100%; }

/* Ajustement Mobile Global */
@media (max-width: 768px) {
    .nav-links { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; justify-content: flex-start; }
    .expo-section { padding-top: 60px; }
}