/* === GENERAL === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* === HEADER === */
header {
    position:relative;
    height: 500px;
    background-color: #d41500;
    background-image: url(sapin.png);
    background-repeat: no-repeat;
    background-size: auto 90%;
    background-position: left center;
    overflow: hidden;
}

.titre {
    margin-top: 320px;
    text-transform: uppercase;
    font-size: 45px;
    text-align: center;
    font-weight: bold;
    color: #ffffff;
    padding: 20px;
    font-family: PWJoyeuxNoel;

}

/* === NAVIGATION === */
nav {
    width: 100%;
    display: flex;
    padding: 20px 0;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 0;
}

nav li {
    margin: 0;
}

/* Lien normal */
nav a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-family: PWJoyeuxNoel;
}

/* Lien survolé et focus */
nav a:hover,
nav a:focus {
    color: #000;
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: underline;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* Lien actif (page courante) */
nav a.active {
    color: #d41500;
    background-color: white;
}

nav a.active:hover,
nav a.active:focus {
    color: #000;
    background-color: white;
}

/* === MAIN === */
main {
    flex: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* === SECTION === */
section {
    padding: 20px 0;
}

section h2 {
    font-size: 32px;
    letter-spacing: 2px;
    margin: 0 0 30px 0;
    padding: 0;
    text-align: center;
    color: #868484;
    font-family: last christmas personal use;
}

section h3 {
    font-size: 22px;
    margin: 25px 0 15px 0;
    color: #d41500;
    font-weight: bold;
}

section p {
    padding: 10px 0;
    text-align: left;
    margin-bottom: 15px;
    line-height: 1.6;
}

section strong {
    font-weight: bold;
}

section a {
    color: #d41500;
    text-decoration: underline;
    font-weight: bold;
}

section a:hover,
section a:focus {
    color: #d41500;
    outline: 2px solid #d41500;
    outline-offset: 2px;
}

#map {
    display: block;
    margin: 30px auto;
    border: 2px solid #d41500;
    max-width: 100%;
}

/* === FOOTER === */
footer {
    padding: 20px;
    background-color: #d41500;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

footer p {
    margin: 0;
}

/* === IMAGES === */
.plan_parc {
    width: 100%;
    height: auto;
    margin: 30px 0;
    border: 2px solid #d41500;
}

/* === ACCESSIBILITÉ === */
/* Focus visible pour tous les éléments interactifs */
a:focus,
button:focus,
iframe:focus {
    outline: 3px solid #d41500;
    outline-offset: 2px;
}

@keyframes rainbow {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(360deg);
  }
}



/* Conteneur pour la neige */
.snow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* Flocons */
.flake {
    position: absolute;
    top: -10px;
    width: 10px;          /* largeur du flocon */
    height: 10px;         /* hauteur du flocon */
    background: transparent; /* plus de cercle blanc */
    opacity: 0.8;
    animation-name: fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Croix pour le flocon */
.flake::before,
.flake::after {
    content: "";
    position: absolute;
    background: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Trait vertical */
.flake::before {
    width: 2px;
    height: 10px;
}

/* Trait horizontal */
.flake::after {
    width: 10px;
    height: 2px;
}

/* Chute des flocons */
@keyframes fall {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(500px) translateX(30px);
    }
}
