
/* Theme "Nuit des chauves-souris" - style simple */

/* RESET & BASE */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #e5e7eb;
    background-color: #020617;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.15) 0, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(248, 250, 252, 0.06) 0, transparent 50%),
        radial-gradient(circle at 50% 120%, rgba(147, 51, 234, 0.18) 0, transparent 55%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

/* Legere couche d'etoiles animees */
body::before {
    content: "";
    position: fixed;
    inset: -50px;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(248, 250, 252, 0.35) 1px, transparent 1px),
        radial-gradient(circle at 80% 30%, rgba(148, 163, 184, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(248, 250, 252, 0.25) 1px, transparent 1px);
    background-size: 220px 220px, 260px 260px, 240px 240px;
    opacity: 0.25;
    z-index: -1;
    animation: starFloat 30s linear infinite alternate;
    pointer-events: none;
}

@keyframes starFloat {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(40px, -40px, 0); }
}

/* HEADER & NAVIGATION */
header {
    background: linear-gradient(90deg, #020617 0%, #020617 40%, #111827 60%, #020617 100%);
    padding: 18px 0 12px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid #1f2937;
}

header h1 {
    margin: 0;
    font-size: 1.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f97316;
    text-shadow: 0 0 18px rgba(249, 115, 22, 0.55);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Petite chauve-souris devant le titre */
header h1::before {
    content: "🦇";
    font-size: 1.5rem;
}

nav {
    margin-top: 10px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

nav ul li a {
    text-decoration: none;
    color: #e5e7eb;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(15, 23, 42, 0.65);
    transition: all 0.25s ease;
}

nav ul li a:hover,
nav ul li a:focus {
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.8);
    background: radial-gradient(circle at top, rgba(15,23,42,0.9) 0, rgba(15,23,42,1) 60%);
    box-shadow: 0 0 14px rgba(249, 115, 22, 0.5);
}

nav ul li a.nav-current {
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.8);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 14px rgba(249, 115, 22, 0.35);
}

/* CONTENEUR PRINCIPAL */
main {
    max-width: 1100px;
    margin: 40px auto 50px;
    padding: 26px 20px 40px;
    background: radial-gradient(circle at top left, rgba(15,23,42,0.96) 0, rgba(2,6,23,0.98) 55%, #020617 100%);
    border-radius: 22px;
    border: 1px solid rgba(51, 65, 85, 0.9);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95);
}

main h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #f9fafb;
}

main p {
    line-height: 1.7;
    font-size: 1rem;
    color: #d1d5db;
}

/* TITRES SECONDAIRES */
h3 {
    margin-top: 22px;
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #f97316;
    letter-spacing: 0.08em;
}

/* LIENS GENERAUX */
a {
    color: #38bdf8;
}

a:hover {
    color: #f97316;
}

/* IMAGE D'ACCUEIL */
.hero-image {
    display: block;
    margin: 30px auto 8px;
    max-width: 96%;
    border-radius: 18px;
    border: 2px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.95);
    object-fit: cover;
}

/* SECTIONS GENERALES */
section {
    margin-bottom: 26px;
}

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

.page-link-card {
    display: block;
    min-height: 150px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.6);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-link-card:hover,
.page-link-card:focus {
    transform: translateY(-4px);
    border-color: #f97316;
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.95);
}

.page-link-card strong {
    display: block;
    margin-bottom: 10px;
    color: #f9fafb;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}

.page-link-card span {
    color: #d1d5db;
    line-height: 1.6;
}

/* TABLES */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 14px;
    overflow: hidden;
}

th,
td {
    padding: 10px 12px;
    border-bottom: 1px solid #1f2937;
    text-align: left;
    font-size: 0.96rem;
}

th {
    background: #020617;
    color: #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
}

tr:nth-child(even) td {
    background: rgba(15, 23, 42, 0.96);
}

tr:hover td {
    background: rgba(30, 64, 175, 0.35);
}

/* GALERIE D'IMAGES */
.galerie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.galerie img {
    width: 100%;
    display: block;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.95);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, filter 0.25s ease;
}

.galerie img:hover {
    transform: translateY(-4px) scale(1.03);
    filter: brightness(1.08);
    border-color: #f97316;
    box-shadow: 0 22px 42px rgba(0, 0, 0, 1);
}

/* FORMULAIRES */
form {
    margin-top: 18px;
    background: rgba(15, 23, 42, 0.96);
    padding: 18px 18px 22px;
    border-radius: 16px;
    border: 1px solid rgba(55, 65, 81, 0.9);
}

fieldset {
    border: 1px solid #4b5563;
    border-radius: 12px;
    padding: 12px 14px 14px;
    margin-bottom: 14px;
}

legend {
    padding: 0 8px;
    font-size: 0.9rem;
    color: #e5e7eb;
    letter-spacing: 0.06em;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #4b5563;
    background: #020617;
    color: #e5e7eb;
    font-size: 0.96rem;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.75);
}

/* BOUTONS */
button,
input[type="submit"],
input[type="reset"] {
    background: linear-gradient(135deg, #f97316, #facc15);
    color: #111827;
    border: none;
    padding: 9px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    margin-right: 8px;
}

button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.55);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 14px 10px 20px;
    font-size: 0.85rem;
    color: #9ca3af;
    background: #020617;
    border-top: 1px solid #111827;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    main {
        margin: 24px 10px 40px;
        padding: 18px 14px 26px;
    }

    header h1 {
        font-size: 1.45rem;
    }

    nav ul {
        gap: 6px;
    }

    .galerie {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* COUCHE ANIMEE DE CHAUVE-SOURIS */
.bat-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    perspective: 800px;
}

.bat {
    position: absolute;
    font-size: 28px;
    color: rgba(248, 250, 252, 0.85);
    opacity: 0.7;
    transform-style: preserve-3d;
    animation-name: batFly;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes batFly {
    from {
        transform: translate3d(-12vw, var(--bat-y, 0vh), 0px)
                   scale(var(--bat-scale, 1))
                   rotateY(0deg)
                   rotateZ(4deg);
    }

    to {
        transform: translate3d(112vw, var(--bat-y, 0vh), 0px)
                   scale(var(--bat-scale, 1))
                   rotateY(180deg)
                   rotateZ(-4deg);
    }
}

/* Assure que le contenu passe au-dessus des chauves-souris */
header,
main,
footer {
    position: relative;
    z-index: 5;
}
