/** 
 * main.css
 * 
 * 1. General HTML tags
 * 2. Masthead area
 * 3. Main content and sidebar
 * 4. Footer
 * 5. Media queries for responsive layout
 * 6. Accessibility helpers
 * 
 */

/*********************************************************************
 * 1. General HTML tags
 *
 */

* {
	box-sizing: border-box; 
}

body {
	padding: 5%;
	max-width: 1600px; 
	margin: 0 auto; 
}

body, td, input[type=text], textarea {
	font-family: 'Quattrocento', serif;
	font-size: 105%; 
	line-height: 1.8em;
	color: #444; 
}

img {
	max-width: 100%; 
}

h2 {
	font-weight: normal;
}

h3 {
	border-top: 1px solid #eee; 
	padding-top: 1em;
	color: #777; 
}

a {
	color: #333;
	text-decoration: none;
	border-bottom: 1px solid #ccc; 
}
	a:hover,
	.nav a:hover {
		color: #000;
		border-color: #aaa; 
	}

blockquote {
	margin-left: 0;
	padding-left: 1.5em;
	padding-right: 2em; 
	border-left: 4px solid #ddd; 
	font-style: italic; 
	color: #777; 
}

pre, code {
	background: #eee; 
	border: 1px solid #ddd; 
}

pre {
	font-size: 14px; 
	line-height: 1.4em;
	padding: 1em;
	border-left: 4px solid #ddd; 
}

/*********************************************************************
 * 2. Masthead area
 *
 */

.topnav, .topnav li {
	list-style: none; 
	padding: 0;
	margin: 0;
}
	.topnav li {
		float: left; 
		margin-right: 0.2em;
		margin-bottom: 0.2em;
	}
	.topnav a {
		padding: 0.25em 0.5em;
		text-decoration: none; 
		font-size: medium;
		display: block;
		background: #80ffe1; 
		color: #4BB39A; 
		border: 1px solid #eee; 
		border-radius: 10px;
	}
	.topnav a:hover {
		background: #4BB39A;
		border-color: #ddd; 
		color: #80ffe1; 
	}
	.topnav li.current a {
		background: #4BB39A; 
		color: #80ffe1; 
		border-color: #ccc; 
	}
	.topnav li.edit a {
		background: none; 
	}


form.search {
	float: right; 
	margin: 0;
	width: 30%; 
}
	form.search input {
		margin: 0;
		padding: 0.25em 0.5em;
		border: 1px solid #ccc; 
		border-radius: 10px;
		width: 100%; 
	}

.breadcrumbs {
	clear: both; 
	padding-top: 1em; 
}
	.breadcrumbs span:after {
		content: ">";
		color: #999; 
		padding-left: 0.5em;
		padding-right: 0.25em; 
	}

/*********************************************************************
 * 3. Main content and sidebar
 *
 */

#main {
	border-top: 1px solid #eee; 
	padding-top: 1em; 
	margin-top: 1em; 
	clear: both; 
}

#content {
	width: 65%; 
	float: left;
	padding-bottom: 2em; 
}

#sidebar {
	width: 35%;
	padding-left: 5%; 
	/*float: left; */
	padding-bottom: 2em; 
	display: flex;
  align-items: center;
  justify-content: center;
}

.nav {
	margin-left: 0;
	padding-left: 0;
	list-style: none; 
}
	.nav .nav {
		padding-left: 1.5em;
		list-style: disc;
	}
	.nav li {
		margin: 1em 0;
	}

	.nav-tree li {
		margin-top: 0;
		margin-bottom: 0;
	}

	.nav a {
		font-weight: bold;
	}

	.nav-tree li a {
		color: #777; 
	}

	.nav .current > a {
		color: #333; 
	}

.align_left {
	/* for images placed in rich text editor */ 
	float: left;
	margin: 0 1em 0.5em 0; 
	position: relative;
	top: 0.5em;
	max-width: 50%; 
}

.align_right {
	/* for images placed in rich text editor */ 
	float: right;
	margin: 0 0 0.5em 1em;
	max-width: 50%; 
}

.align_center {
	/* for images placed in rich text editor */ 
	display: block;
	margin: 1em auto; 
	position: relative;
	top: 0.5em;
}

figure {
	display: table;
	width: 1px;
	margin: 1em 0;
}

figure img {
	display: table-row;
	margin-bottom: 0.5em;
}

figure figcaption {
	display: table-row;
	font-size: smaller;
	color: #777;
	line-height: 1.4em;
}

/*********************************************************************
 * 4. Footer
 *
 */

#footer {
	clear: both; 
	border-top: 1px solid #3A7CA5; 
	font-size: 80%; 
}

/*********************************************************************
 * 5. Media queries for responsive layout
 *
 */

@media only screen and (max-width: 767px) {
	/* mobile layout */ 

	body, td, textarea {
		font-size: 100%; 
	}
	#content, 
	#sidebar {
		float: none;
		width: 100%; 
		padding: 0; 
	}
	form.search {
		float: none; 
		width: 100%; 
	}
	#content {
		width: 100%; 
	}
	#sidebar {
		border-top: 1px solid #eee;
		padding-top: 1em; 
	}
	.align_left, .align_right, .align_center {
		display: block;
		float: none; 
		margin: 1em auto;
		max-width: 100%; 
	}

}

@media only screen and (min-width: 1200px) {
	/* extra-wide desktop layout */ 
	
	body, td, textarea {
		font-size: 115%; 
	}
}

/*********************************************************************
 * 6. Accessibility helpers
 *
 */

/* Hide visually, but remain approachable for screenreader */

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	white-space: nowrap;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	border: 0;
}

/* Show bypass link on hover */

.element-focusable:focus {
	clip: auto;
	overflow: visible;
	height: auto;
}

/* Sample styling for bypass link */

.bypass-to-main:focus {
	top: 0;
	left: 0;
	width: 100%;
	height: 40px;
	line-height: 40px;
	text-align: center;
	background: #333;
	color: #fff;
}


/* Logo Head */
.logo_head {
	font-family: "Georgia", serif;
	font-weight: bold;
	font-size:large;
	display: flex;
    justify-content: center;
    align-items: center;
	vertical-align: top;
}

.logo_head a:link {
	text-decoration: none;
}


@media (max-width: 768px) {
    .logo_head {
        text-align: center;
    }
}

.asec_credits {
	text-align: right;
	font-size:small;
    font-weight: bold;
    margin-bottom: 5px;
}

.asec_credits_box {
    position: absolute;
    right: 0;
    top: 25px;
    width: 250px;
    max-height: 250px;
    overflow-y: auto;
    background: white;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
}

.asec_credits_box.hidden {
    display: none;
}

.credit-btn {
    width: 100%;
    margin-bottom: 8px;
    padding: 8px;
    border: none;
    border-radius: 4px;
    background: #86bffb;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.credit-btn:hover {
    background: #3576bc;
}

.credits-title {
    font-weight: bold;
    margin-bottom: 10px;
}


/* Bouton burger caché sur desktop */
.burger {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Menu normal sur desktop */
.topnav {
    display: flex;
    gap: 15px;
}

/* OMBRES IMAGES */
.ombre {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 6px
}

/* Responsive */
@media (max-width: 768px) {

    /* Afficher le burger */
    .burger {
        display: block;
        margin: 10px;
		color: #4AB299;
    }

    /* Cacher le menu par défaut */
    .topnav {
        display: none;
        flex-direction: column;
        background: #f5f5f5;
        padding: 5px;
        margin: 0;
    }

    /* Menu ouvert */
    .topnav.open {
        display: flex;
    }

    .topnav li {
        margin: 2px 0;
    }
}

/* ASEC */
.main_asec {
	margin: 20px;
	text-align: left;
}

.foot_asec {
	margin: 20px;
	text-align: right;
}

.asec_userinfo {
	text-align: right;
	font-size:small;
}

.asec_jobs {
	text-align: right;
    font-size: small;
    position: relative;
    overflow: visible;
}

#jobsContainer {
    position: absolute;
    top: 30px;
    right: 0; /* mieux aligné avec le texte à droite */
    width: 520px; /* largeur raisonnable */
    max-height: 250px; /* hauteur max */
    overflow-y: auto; /* scroll vertical */
    background: #f7f9fc;
    border: 1px solid #d0e2fd;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
}

#jobsContainer.hidden {
    display: none;
}


.asec_btn {
  border: none;
  color: black;
  padding: 2px 2px;
  text-align: center;
  text-decoration:none;
  display: inline-block;
  font-size: 16px;
  margin: 3px 2px;
  cursor: pointer;
  font-size:small;
}
.asec_btn:hover {
  color: #0d6efd; /* bleu Bootstrap */
}


.asec_link {
  border: none;
  color: black;
  padding: 2px 2px;
  text-align: center;
  text-decoration:underline;
  display: inline-block;
  font-size: 16px;
  margin: 3px 2px;
  cursor: pointer;
  font-size:small;
}


.rotate-icon {
    transition: transform 0.2s ease;
}

.rotate-icon.rotated {
    transform: rotate(90deg);
}

/* FORMAULAIRE ASEC*/
.input-small {
    max-width: 90px;
}

.input-medium {
    max-width: 220px;
}

.input-large {
    max-width: 300px;
}


/* SEQUENCES */
.sequence-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
}

.sequence-row label {
    margin-bottom: 2px;
}


.sequence-col-type {
    flex: 0 0 220px;
	font-size: 16px;
}

.sequence-col-duration {
    flex: 0 0 90px;
	font-size: 16px;
}

.sequence-col-voice {
    flex: 0 0 90px;
	font-size: 16px;
	color: #333;
}

.sequence-col-description {
    flex: 1;
	font-size: 16px;
}

.sequence-col-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
	font-size: 16px;
}

.sequence-row input.form-control-sm,
.sequence-row select.form-control-sm {
    height: 32px !important;
    padding: 4px 6px !important;
    line-height: 1.2 !important;
}

/* Mobile : tout passe en colonne */
@media (max-width: 600px) {
    .sequence-row {
        flex-direction: column;
        align-items: stretch;
    }
    .sequence-col-type,
    .sequence-col-duration,
    .sequence-col-description,
    .sequence-col-actions {
        flex: 1 0 100%;
    }
    .sequence-col-actions {
        justify-content: flex-start;
    }
}

/* CARDS */
/* Séances : fond très clair */
.workout-card {
    background-color: #f7f9fc; /* bleu très pâle */
    border: 1px solid #dce3f0;
}

/* Groupes : fond légèrement plus soutenu */
.group-card {
    background-color: #eef2f7; /* un peu plus foncé */
    border: 1px solid #cfd6e2;
}

.sequence-card {
    background-color: #f4f7fb;
    border: 1px solid #d7e0ec;
}

/* Position fixe en haut à droite */
.lang-dropdown {
    position: fixed;
    top: 10px;
    right: 10px;
    width: auto;
    cursor: pointer;
    user-select: none;
    z-index: 9999;
    font-size: 12px;
}

/* Zone affichée : plus petite, sans bordure */
.lang-selected {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Drapeau plus petit */
.lang-selected img {
    width: 16px;
    height: 11px;
    border-radius: 2px;
}

/* Liste déroulante : minimaliste */
.lang-options {
    display: none;
    position: absolute;
    top: 28px;
    right: 0;
    min-width: 120px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Options plus petites */
.lang-option {
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.lang-option img {
    width: 16px;
    height: 11px;
    border-radius: 2px;
}

.lang-option:hover {
    background: #f2f2f2;
}