* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    
}

html, body {
    height: 100%;
}

body {
    margin: 0 3%;
    display: flex;
    position: relative;
}


body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("../images/Logo_HSC.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto;
    opacity: 0.5;
    z-index: -1;
}



main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    position: relative;

}



/* HEADER AND NAV */

header, h1, h2, nav {
    text-align: center;
    
}

.content h2 {
    text-align: left;
    color: #2F6B57;
    font-size: 28px;
    margin-bottom: 15px;
}

header {
   
    padding-top: 50px;
    padding-bottom: 50px;    
    background-image: url("../images/deco_home.jpg");
    background-size: cover;      /* fill header */
    background-position: center; /* center image */
    background-repeat: no-repeat;
}

h1 {
    color: white;
}

nav {
    display: flex;
    width: 100%;
    margin-bottom: 80px;
}

nav ul {
    display: flex;
    justify-content: space-around;
    width: 100%;
    background: linear-gradient(
        90deg,
        #1F3D33 0%,
        #2F6B57 50%,
        #5FAF9B 100%
    );
}

nav ul li {
    margin: 10px 20px;
    font-size: 28px;
    
}

nav ul li a {
    color: white;
}


/* HOME CONTENT */

p {
    text-align: left;
    font-size: 24px;
}

.separator {
    width: 100%;
    height: 3px;
    background-color: #1F3D33;
    margin-bottom: 25px;
    margin-top: 25px;
}

.content p {
    font-size: 24px;
    margin-top: 5px;
    margin-bottom: 20px;
}

.content ul li{
    list-style: disc; 
    margin-left: 30px;
    margin-top: 5px;
    margin-bottom:5px;
    font-size: 24px;
}

.appel_norms {
    color: #2F6B57;
    margin-bottom: 20px;
}

.invis {
    color:white;
}



/* CONTACT FORM */

.contact_container label {
    font-size: 28px;
    color: #2F6B57;
}

.contact_container input {
    margin-top: 20px;
    height: 30px;
    width: 300px;
    border-radius: 5px;
}

.contact_container textarea {
    height: 200px;
    min-width: 300px;
    width: 500px;
    border-radius: 5px;
}

.contact_container button {
    background-color: #2F6B57;
    color: white;
    width: 150px;
    height: 40px;
    font-size: 24px;
    border-radius: 8px;
    border: white;
}




/* ===== NAV DROPDOWN ===== */

nav ul li {
    position: relative;
}

/* Submenu hidden by default */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(
        180deg,
        rgba(47, 107, 87, 1) 0%,
        rgba(95, 175, 155, 1) 100%
    );
    display: none;
    flex-direction: column;
    min-width: 260px;
    z-index: 1000;
}

/* Submenu items */
.submenu li {
    margin: 0;
}

.submenu li a {
    padding: 12px 20px;
    display: block;
    font-size: 22px;
    text-align: left;
}

/* Show submenu on hover */
.has-submenu:hover .submenu {
    display: flex;
}

/* Optional hover effect */
.submenu li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}





/* FOOTER */

footer {
    margin-top: auto; /* THIS is the key */
    padding-top: 30px;
    padding-bottom: 20px;
    background: rgb(74, 75, 75);
    display: flex;
    flex-direction: column;
    text-align: center;
}

footer a {
    color: white;
    font-size: 28px;
    
}

footer ul {
    display: flex;
    justify-content:center;
}

footer ul li a {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    font-size: 36px;
    margin: 10px 5px;
}

.lang-flag {
    width: 64px;
    height: auto;
    display: block;
}

.footer_subcontainer{
    display: flex;
    width:100%;
    margin-top: 15px;
}

.footer_subcontainer2{
    width:20%;
    margin-left:5%;
    text-align: left;
}

.footer_subcontainer2 p{
    color: white;
    margin-top: 20px;
}

.footer_subcontainer2 a {
    margin-bottom:50px;
}

.footer_subcontainer2 a, .footer_subcontainer2 p{
    font-size: 22px;
}

.footer_separator{
    height:2px;
    width:80%;
    background-color: white;
    margin-bottom: 15px;
}









/* ARTICLES */

.container {
    display: flex;
}

.fa-file-pdf {
    color: gray;
    font-size: 60px;
    padding: 30px;

}


/* Collapsible article */

details {
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}

/* Remove default arrow */
summary {
    list-style: none;
    cursor: pointer;
    display: block; /* ← THIS removes the gray gutter */
}

summary::-webkit-details-marker {
    display: none;
}

summary::marker {
    content: "";
    display: none;
}


/* Title styling */
.title h3 {
    font-size: 32px;
    padding: 15px 0;
}

/* Animated content */

.toggle {
    display: none;
}

.content-wrapper {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 1s ease, opacity 1s ease;
}

.toggle:checked ~ .content-wrapper {
    max-height: 500px;
    opacity: 1;
}

.title {
    cursor: pointer;
}


/* ===== YEAR ARCHIVES ===== */

.year-block {
    border-bottom: 2px solid #ccc;
    margin-bottom: 30px;
}

.year-title {
    cursor: pointer;
    background-color: #f0f0f0;
    padding: 0px;
}

.year-title h2 {
    font-size: 34px;
}

/* Year collapsible */
.year-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 1s ease;
}

.toggle:checked ~ .year-content {
    max-height: 2000px; 
}

/* Slight indent for articles inside years */
.year-content .article {
    margin-left: 20px;
}

.toggle {
    position: absolute;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    background: red;
    display: none;
}

.article,
.year-block {
    position: relative;
}

