/* variables */
:root {
	/* colors */
	--primary-color: #2C6E49;
	--light-color: #C3DBC5;
	--background-color: #EDF6EE;
	--light-blue: #bbd2d7;
	--blue: #457B9D;
	--red: #CCA7A2;

	/* fonts */
	--classic-font: "Public Sans", sans-serif;
	--decorative-font: "Playwrite PL", cursive;

	/* font sizes */
	--font-size-h1: 22pt;
	--font-size-h2: 17pt;
	--font-size-nav: 13pt;
	--font-size-paraph: 13pt;
	--font-size-input: 12pt;
	--font-size-legend: 8pt;

	/* styles */
	--border-radius: 10px;

	/* fullCalendar */
	/* primary colors */
	--fc-button-bg-color: var(--primary-color);
	--fc-button-border-color: black;
	--fc-button-hover-bg-color: var(--light-color);
	--fc-button-active-bg-color: var(--primary-color);

	/* text colors */
	--fc-button-text-color: #ffffff;
	--fc-text-muted: #7f8c8d;

	/* border color */
	--fc-border-color: #ecf0f1;

	/* bg color */
	--fc-bg-event-color: #f8f9fa;
	--fc-highlight-color: #e8f4f8;
}

html {
	scroll-behavior: smooth;
}

/* fullCalendar */
.fc {
	font-family: var(--classic-font);
	width: 50vw;
	background-color: white;
	border-radius: var(--border-radius);
	padding: 10px;
	margin: 20px;
	border: solid 2px var(--primary-color);
}

.fc .fc-button-primary {
	background-color: var(--fc-button-bg-color);
	border-color: var(--fc-button-border-color);
}

.fc .fc-button-primary:hover {
	background-color: var(--fc-button-hover-bg-color);
}

.fc .fc-button-primary.fc-button-active {
	background-color: var(--fc-button-active-bg-color);
}

.fc-event {
	cursor: pointer;
	border: none;
	border-radius: 4px;
}

.fc-event-title {
	font-weight: 500;
	padding: 2px 4px;
}

.fc-daygrid-day-frame {
	min-height: 100px;
}


.calendar-container {
	width: 100vw;
	background: var(--light-color);
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-evenly;
}

.calendar-container .details-side {
	width: 40vw;
	padding: 20px;
	border-radius: var(--border-radius);
	background-color: var(--background-color);
}

.calendar-container .details-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}


body {
	margin: 0px;
	font-family: var(--classic-font);
	background-color: var(--background-color);
}

/* Flashes */

.alert {
    padding: 0.8rem 1.2rem;
    margin: 1rem 0;
    border-radius: 6px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-color: #badbcc;
}

.alert-danger, .alert-error {
    background-color: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
}


/* General */

.horizontal-centered {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.decorative-font {
	font-family: var(--decorative-font);
}

h1 {
	font-size: var(--font-size-h1);
	font-family: var(--classic-font);
	font-weight: normal;
	text-align: center;
	width: 100vw;
	margin: 60px 0px;
}

h2 {
	font-size: var(--font-size-h2);
	font-weight: normal;
}

article {
	font-family: var(--classic-font);
	font-size: var(--font-size-paraph);
	display: block;
	text-align: left;
	width: 80vw;
	margin-bottom: 50px;
}

p {
	font-family: var(--classic-font);
	font-size: var(--font-size-paraph);
	text-align: left;
}

a {
	color: var(--primary-color);
}

.legend {
	font-size: var(--font-size-legend);
	font-style: italic;
}

/* h2 decoration */

.h2-container {
	position: relative;
	font-family: var(--decorative-font);
	text-align: left;
	width: fit-content;
}

.h2-container h2 {
	padding: 0px 10px;
	margin: 0;
	z-index: 2;
	scroll-margin-top: 10vh;
}

.h2-decoration {
	position: absolute;
	z-index: -1;
	background-color: var(--red);
	top: 1.4rem;
	width: 100%;
	height: 40%;
	border-radius: 100px;
}

.h2-decoration.green {
	background-color: var(--light-color);
}

.tagged {
	display: flex;
	flex-direction: row;
	align-items: baseline;
}

.tagged .tag {
	margin: 0px 10px;
}

.tag {
	height: fit-content;
	font-family: var(--classic-font);
	font-size: 10pt;
	background-color: white;
	padding: 2px 5px;
	border-radius: 100px;
}

img {
	border-radius: var(--border-radius);
	object-fit: cover;
}

#presentation {
	width: 50vw;
	font-size: var(--font-size-paraph);
}

/* wallpaper */

.wallpaper {
	position: fixed;
	z-index: -1000;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

#wallpaper-icon {
	/*
	position: fixed;
	z-index: -1;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	*/
	width: 50vw;
}

/* navbar */

#navbar {
	z-index: 100;
	top: 0px;
	position: sticky;
	height: 7vh;
	font-size: var(--font-size-nav);
	border-bottom: solid 2px var(--blue);
	background-color: var(--light-blue);
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0px 20px;
}

#navbar #logo-cenh {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: black;
	font-size: 16pt;
}

#navbar nav {
	/* width: 60vw; */
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-btn {
	min-width: 100px;
	margin-left: 20px;
	text-align: center;
	background-color: var(--background-color);
	border-radius: 50px;
	padding: 6px 15px;
	text-decoration: none;
	color: black;
	transition-duration: 200ms;
}

.nav-btn:hover {
	transition-duration: 200ms;
	color: var(--background-color);
	background-color: var(--primary-color);
}

.nav-btn:focus {
	transition-duration: 100ms;
	outline: solid 2px var(--primary-color);
}


/* dropdown */

.dropdown-icon {
	transition: transform 0.3s ease;
	display: inline-block;
	vertical-align: middle;
}

.nav-btn.has-dropdown.active .dropdown-icon {
	transform: rotate(-180deg);
}

.dropdown {
	position: absolute;
	top: 7vh;
	background-color: var(--background-color);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	border-radius: var(--border-radius);
	padding: 0.5rem 0;
	min-width: 200px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	z-index: 2;
}

.dropdown.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dropdown a {
	display: block;
	padding: 0.75rem 1rem;
	color: black;
	text-decoration: none;
	transition: background-color 0.3s ease;
}

.dropdown a:hover {
	background-color: var(--primary-color);
	color: white;
}

/* account actions */
#user-functions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.5rem;
	padding-right: 0.5rem;
	color: black;
}

#user-functions a {
	color: black;
}

#user-functions a:visited {
	color: black
}

#user-functions a:hover {
	color: var(--primary-color);
	cursor: pointer;
}

/* form */ 
.form-container {
	background-color: var(--light-color);
	border-radius: var(--border-radius);
	width: 25vw;
	padding: 30px 50px;
	margin-bottom: 100px;
	margin-top: 50px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.form-title {
	font-family: var(--decorative-font);
	font-size: var(--font-size-h2);
	text-align: center;
	margin-bottom: 20px;
}

.form-container a {
	text-decoration: none;
	color: black;
	text-align: center;
}

.form-container a:hover {
	text-decoration: underline;
}

.form-container form {
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-size: var(--font-size-nav);
}

.form-container input {
	border-radius: 0px;
	border: solid 1px var(--primary-color);
	padding: 10px;
	font-size: var(--font-size-input);
}

.form-container input:focus {
	border-radius: 0px;
	outline: none;
}

.form-container textarea {
	border-radius: 0px;
	height: 150px;
	border: solid 1px var(--primary-color);
	resize: vertical;
	font-family: var(--classic-font);
	font-size: var(--font-size-input);
}

.form-container textarea:focus {
	border-radius: 0px;
	outline: none;
}

.form-container div { /* div that contains <label> and <input> couple*/
	display: flex;
	flex-direction: column;
	margin-bottom: 10px;
}

.form-container button {
	font-size: var(--font-size-nav);
	border-radius: 0px;
	border: none;
	background-color: var(--primary-color);
	color: white;
	padding: 10px;
	margin: 10px 0px;
}

.form-container button:hover {
	cursor: pointer;
	transition-duration: 100ms;
	background-color: var(--background-color);
	color: var(--primary-color);
	outline: solid 2px var(--primary-color)
}

.primary-btn {
	text-decoration: none;
	font-size: var(--font-size-nav);
	border-radius: 0px;
	border: none;
	background-color: var(--primary-color);
	color: white;
	padding: 10px;
	margin: 10px 0px;
}

.primary-btn:hover {
	cursor: pointer;
	transition-duration: 100ms;
	background-color: var(--background-color);
	color: var(--primary-color);
	outline: solid 2px var(--primary-color)
}

.warning-btn {
	text-decoration: none;
	font-size: var(--font-size-nav);
	border-radius: 0px;
	border: none;
	background-color: var(--red);
	color: black;
	padding: 10px;
	margin: 10px 0px;
}

.warning-btn:hover {
	cursor: pointer;
	transition-duration: 100ms;
	background-color: var(--background-color);
	outline: solid 2px var(--red)
}

.error-msg {
	color: red;
}


/* footer */

footer {
	background-color: var(--primary-color);
	width: 100vw;
	display: flex;
	flex-direction: column;
	align-items: center;
}

#footer-content {
	width: 100vw;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

footer #old-logo {
	height: 300px;
}

footer h3 {
	margin-bottom: 5px;
}

footer #informations {
	color: white;
}

#informations a {
	color: white;
	text-decoration: none;
}

#informations a:hover {
	text-decoration: underline;
}

#labels-placeholder {
	height: 200px;
	margin: 40px;
}

#legal-notice {
	color: black;
	cursor: pointer;
}


/* homepage */

#homepage h1 {
	margin: 60px 0px;
}

#homepage-banner {
	height: 250px;
	width: 60vw;
}

#homepage #description {
	margin: 60px 0px;
	font-size: var(--font-size-paraph);
	text-align: start;
	max-width: 65vw;
}

#homepage #description h2 {
	text-align: center;
}


/* activites */

#activities-nav {
	width: 100vw;
	display: flex;
	justify-content: space-evenly;
	flex-wrap: wrap;
	margin-top:30px;
	margin-bottom: 200px;
}

#activities-nav a {
	cursor: pointer;
	width: 20vw;
	height: 20vw;
	position: relative;
}

#activities-nav a:link{color:inherit}
#activities-nav a:active{color:inherit}
#activities-nav a:visited{color:inherit}

#activities-nav img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.activite-img-cover {
	font-family: var(--decorative-font);
	font-size: var(--font-size-h2);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: 10px;
	z-index: 1;
	position: absolute;
	top: 0;
	bottom: 0;
	background-color: rgba(237, 246, 238, 0.6);
	backdrop-filter: blur(5px);
	transition: 600ms ease-in-out;
}

#activities-nav a:hover .activite-img-cover {
	border-bottom-right-radius: 0px;
	border-bottom-left-radius: 0px;
	height: 25%;
	color: var(--primary-color);
	transition: 600ms ease-in-out;
}

#activities-nav a:hover img {
	outline: solid 2px var(--primary-color);
	transition-duration: 100ms;
}

/* activités handicap */
#handicap-page {
    position: relative;
    min-height: 80vh; 
    margin-bottom: 100px;
}

#handicap-page h1 {
    margin: 60px 0px 80px 0px; 
}

#handicap-content {
    position: relative;
    width: 80vw;
    max-width: 1200px;
    height: 600px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

#central-bubble {
    position: relative;
    z-index: 2;
    background-color: var(--light-color);
    border-radius: 50%;
    width: 500px;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    box-sizing: border-box;
}

#central-bubble p {
    font-size: var(--font-size-paraph);
    text-align: left;
    margin: 15px 0;
    line-height: 1.2;
}

/* decorative leaves */
.leaf-decoration {
    position: absolute;
    width: 200px; 
    height: auto;
    z-index: 3; 
}

.leaf-1 {
    top: 65px;
    left: 280px;
    transform: rotate(-15deg);
}

.leaf-2 {
	width: 250px;
    bottom: 15px;
    left: 190px;
    transform: rotate(25deg);
}

.leaf-3 {
    bottom: 70px;
    right: 270px;
    transform: rotate(-10deg);
}

.leaf-text {
    position: absolute;
    font-family: var(--decorative-font);
    font-size: 24pt;
    color: white;
    z-index: 4;
    pointer-events: none;
}

.leaf-text-1 {
    top: 90px;
	bottom: calc(100vh - 90px);
    left: 325px;
    transform: rotate(-15deg);
}

.leaf-text-2 {
    bottom: 75px;
    left: 235px;
    transform: rotate(25deg);
}

.leaf-text-3 {
    bottom: 115px;
    right: 285px;
    transform: rotate(-10deg);
}

.handicap-photo {
    position: absolute;
    z-index: 1; /* Derrière la bulle pour un effet de profondeur */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: white; /* Placeholder border */
}

.handicap-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.photo-1 {
    top: 50px;
    left: 0;
    width: 320px;
    height: 240px;
    transform: rotate(-8deg);
}

.photo-2 {
    top: 20px;
    right: 50px;
    width: 300px;
    height: 225px;
    transform: rotate(5deg);
}

.photo-3 {
    bottom: 50px;
    right: 20px;
    width: 280px;
    height: 210px;
    transform: rotate(-6deg);
}

/* --- Responsive Design --- */
/* Mobile */
@media (max-width: 768px) {
    #handicap-content {
        height: auto;
        flex-direction: column;
        gap: 30px;
        margin-top: 20px;
    }
    
    #central-bubble {
        width: 90%;
        height: auto;
        border-radius: var(--border-radius); /* On enlève le rond sur mobile */
        padding: 30px;
    }

    .leaf-decoration, .leaf-text {
        display: none;
    }
    
    .handicap-photo {
		display: none;
		/*
        position: relative;
        transform: none !important;
        width: 90% !important;
        height: auto !important;
        top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
        margin-bottom: 20px;
		*/
    }
}

/* vie associative */

#summary {
	background-color: var(--light-color);
	outline: solid 1px var(--primary-color);
	font-size: var(--font-size-nav);
	border-radius: 100px;
	width: 70vw;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
	padding: 15px;
	margin-bottom: 30px;
}

#summary a {
	text-decoration: none;
	color: black;
}

#summary a:hover {
	cursor: pointer;
	text-decoration: underline;
}

/* articles */
.article-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.article-flex.reversed {
    flex-direction: row-reverse;
}

.content-text, .content-image {
    flex: 1; /* Occupe 50% de l'espace */
}

.content-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}