@CHARSET "UTF-8";

#myaccount {
	margin: 0 auto;
	padding: 20px;
	width: 100%;
	max-width: 800px;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#myaccount h1 {
	color: #133351;
	font: bold Verdana;
	font-size: 197%;
	font-weight: bolder;
	/* text-align: center; */
	margin-bottom: 10px;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

#myaccount .toolbar {
	background: linear-gradient(135deg, #78af2f 0%, #6a9929 100%);
	height: auto;
	color: #FFF;
	padding: 12px 15px;
	font-size: 110%;
	font-family: Verdana, Arial, sans-serif;
	font-weight: bold;
	border-radius: 6px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
	margin-bottom: 20px;
	text-align: center;
}

#myaccount h2 {
	color: #133351;
	font-family: Verdana, Arial, sans-serif;
	font-size: 123.1%;
	font-weight: bolder;
	margin: 25px 0 15px 0;
	padding-bottom: 8px;
	border-bottom: 2px solid #78af2f;
}

#myaccount p {
	color: #133351;
	font-family: Verdana, Arial, sans-serif;
	font-size: 110%;
	margin: 20px 0;
	text-align: justify;
	line-height: 1.6;
	padding: 15px;
	background-color: #f8f9fa;
	border-radius: 4px;
	border-left: 4px solid #78af2f;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
}

#myaccount p:hover {
	background-color: #e9ecef;
	border-left-color: #133351;
	transform: translateX(5px);
}

/* Styling spécial pour les paragraphes avec liens */
#myaccount p:has(a) {
	text-align: center;
	margin-top: 30px;
	padding: 20px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-radius: 8px;
	border: 2px solid #78af2f;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#myaccount p:has(a):hover {
	background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
	border-color: #133351;
	transform: translateX(0);
}

/* Styling pour les paragraphes d'information */
#myaccount p.info {
	background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
	border-left-color: #28a745;
	color: #155724;
}

#myaccount p.warning {
	background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
	border-left-color: #ffc107;
	color: #856404;
}

#myaccount p.error {
	background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
	border-left-color: #dc3545;
	color: #721c24;
}

#myaccount .head a {
	color: #ffffff;
	font-family: Verdana, Arial, sans-serif;
	font-size: 93%;
	text-decoration: none;
	transition: all 0.3s ease;
}

#myaccount .head a:hover {
	color: #ffffff;
	text-decoration: underline;
	text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

/* Styling du formulaire de connexion */
#loginForm {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	margin: 20px 0;
}

#myaccount label {
	display: block;
	color: #133351;
	font-family: Verdana, Arial, sans-serif;
	font-size: 93%;
	font-weight: bolder;
	margin-bottom: 8px;
	margin-top: 15px;
}

#myaccount label:first-of-type {
	margin-top: 0;
}

#myaccount input[type="text"],
#myaccount input[type="password"],
#myaccount input[type="email"],
#myaccount select {
	width: 100%;
	padding: 12px;
	border: 2px solid #78af2f;
	border-radius: 4px;
	font-family: Verdana, Arial, sans-serif;
	font-size: 100%;
	color: #133351;
	background-color: #fff;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

#myaccount input[type="text"]:focus,
#myaccount input[type="password"]:focus,
#myaccount input[type="email"]:focus,
#myaccount select:focus {
	outline: none;
	border-color: #133351;
	box-shadow: 0 0 8px rgba(120, 175, 47, 0.3);
	background-color: #f9f9f9;
}

/* Styling spécifique pour les select */
#myaccount select {
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23133351' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	padding-right: 40px;
}

#myaccount select:hover {
	border-color: #6a9929;
}

#myaccount select:focus {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378af2f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Styling pour les options des select */
#myaccount select option {
	padding: 8px 12px;
	color: #133351;
	background-color: #fff;
	font-family: Verdana, Arial, sans-serif;
}

#myaccount select option:hover,
#myaccount select option:focus {
	background-color: #f0f8ff;
	color: #133351;
}

#myaccount select option:checked {
	background-color: #78af2f;
	color: white;
	font-weight: bold;
}

#myaccount button[type="submit"] {
	background: linear-gradient(135deg, #78af2f 0%, #6a9929 100%);
	color: white;
	padding: 12px 30px;
	border: none;
	border-radius: 6px;
	font-family: Verdana, Arial, sans-serif;
	font-size: 110%;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-top: 20px;
	width: 100%;
}

#myaccount button[type="submit"]:hover {
	background: linear-gradient(135deg, #6a9929 0%, #5a8322 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

#myaccount button[type="submit"]:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Styling des messages d'erreur */
.error-message {
	color: #dc3545;
	font-size: 0.9em;
	font-family: Verdana, Arial, sans-serif;
	margin-top: 5px;
	margin-bottom: 10px;
	padding: 8px;
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	border-radius: 4px;
	display: none;
}

.error-message:not(:empty) {
	display: block;
}

#errors {
	color: #dc3545;
	font-family: Verdana, Arial, sans-serif;
	font-size: 93%;
	font-weight: bolder;
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	border-radius: 4px;
	padding: 12px;
	margin: 15px 0;
}

/* Styling du message de succès */
.alert-success {
	color: #28a745 !important;
	background-color: #d4edda !important;
	border: 1px solid #c3e6cb !important;
	border-radius: 4px !important;
	padding: 15px !important;
	margin: 20px 0 !important;
	font-family: Verdana, Arial, sans-serif;
	font-weight: bold;
	text-align: center;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Styling pour le lien de création de compte */
#myaccount p:has(a) {
	text-align: center;
	margin-top: 30px;
	padding: 20px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-radius: 8px;
	border: 2px solid #78af2f;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#myaccount p:has(a):hover {
	background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
	border-color: #133351;
	transform: translateX(0);
}

#myaccount p a {
	color: #133351;
	text-decoration: none;
	font-weight: bold;
	border-bottom: 2px solid #78af2f;
	padding-bottom: 2px;
	transition: all 0.3s ease;
}

#myaccount p a:hover {
	color: #78af2f;
	border-bottom-color: #133351;
}

/* Anciens styles pour compatibilité */
.accountlogin {
	text-align: left;
	height: 184px;
	background: linear-gradient(135deg, #10498E 0%, #133351 100%);
	padding: 15px;
	width: 150px;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
	margin: 20px 0;
}

.accountloginleft {
	text-align: left;
	height: 184px;
	background: linear-gradient(135deg, #10498E 0%, #133351 100%);
	padding: 15px;
	width: 43px;
	border-radius: 8px 0 0 8px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.accountloginright {
	text-align: left;
	height: 184px;
	background: linear-gradient(135deg, #10498E 0%, #133351 100%);
	padding: 15px;
	width: 25px;
	border-radius: 0 8px 8px 0;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.accountsep {
	background: linear-gradient(90deg, #78af2f 0%, #6a9929 100%);
	height: 3px;
	border-radius: 2px;
	margin: 10px 0;
}

/* Styling pour les textareas */
#msg, textarea#msg {
	border: 2px solid #78af2f !important;
	background: #fff !important;
	color: #133351 !important;
	caret-color: #133351 !important;
	font-size: 1rem !important;
	font-family: Verdana, Arial, sans-serif !important;
	padding: 12px !important;
	line-height: 1.4 !important;
	min-height: 120px !important;
	z-index: 10 !important;
	position: relative !important;
	border-radius: 4px !important;
	resize: vertical !important;
	transition: all 0.3s ease !important;
}

#msg:focus, textarea#msg:focus {
	outline: none !important;
	border-color: #133351 !important;
	box-shadow: 0 0 8px rgba(120, 175, 47, 0.3) !important;
	background-color: #f9f9f9 !important;
}

/* Styling pour Google AdSense */
#googleAS {
	border-left: 2px solid #78af2f;
	border-right: 2px solid #78af2f;
	vertical-align: text-top;
	padding: 15px;
	background-color: #f8f9fa;
	border-radius: 4px;
	margin: 20px 0;
}

/* Responsive design */
@media (max-width: 768px) {
	#myaccount {
		margin: 10px;
		padding: 15px;
		border-radius: 4px;
	}
	
	#myaccount h1 {
		font-size: 150%;
		margin-bottom: 20px;
	}
	
	#loginForm {
		padding: 20px;
	}
	
	#myaccount button[type="submit"] {
		padding: 15px;
		font-size: 105%;
	}
	
	#myaccount p {
		font-size: 100%;
		text-align: left;
		padding: 0;
	}
	
	.accountlogin,
	.accountloginleft,
	.accountloginright {
		width: 100%;
		height: auto;
		min-height: 100px;
	}
}

/* Animation pour l'apparition des éléments */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#loginForm {
	animation: fadeIn 0.5s ease-in-out;
}

.alert-success {
	animation: fadeIn 0.5s ease-in-out;
}

.success-message {
    color: #28a745 !important;
    background-color: #d4edda !important;
    border: 1px solid #c3e6cb !important;
    display: block !important;
}

.password-wrapper {
    position: relative;
	padding-top: 5px;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    padding-right: 44px !important;
    box-sizing: border-box;
}


.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: inline-block;
    background: url("data:image/svg+xml,%3Csvg fill='none' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 12C1 12 5 5 12 5s11 7 11 7-4 7-11 7S1 12 1 12Z' stroke='%23133351' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='3' stroke='%23133351' stroke-width='2'/%3E%3C/svg%3E") no-repeat center center;
    background-size: 24px 24px;
    transition: filter 0.2s;
    opacity: 0.7;
}

.toggle-password.active {
    background-image: url("data:image/svg+xml,%3Csvg fill='none' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.94 17.94A9.94 9.94 0 0 1 12 19c-7 0-11-7-11-7a17.22 17.22 0 0 1 4.48-5.29m2.65-1.41A9.93 9.93 0 0 1 12 5c7 0 11 7 11 7a16.98 16.98 0 0 1-4.27 5.24' stroke='%23133351' stroke-width='2'/%3E%3Cpath d='M1 1l22 22' stroke='%23133351' stroke-width='2'/%3E%3C/svg%3E");
    opacity: 1;
}

.buttonLink.buttonLink-cta {
    background: linear-gradient(135deg, #78af2f 0%, #6a9929 100%);
    color: #fff !important;
    padding: 3px 10px;
    border: none;
    border-radius: 4px;
    font-family: Verdana, Arial, sans-serif;
    font-size: 0.82rem;   /* Mini */
    font-weight: bold;
    cursor: pointer;
    transition: all 0.18s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 7px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    line-height: 1.1;
}

.buttonLink.buttonLink-cta:hover,
.buttonLink.buttonLink-cta:focus {
    background: linear-gradient(135deg, #6a9929 0%, #5a8322 100%);
    transform: scale(1.03);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    color: #fff !important;
}

.buttonLink.buttonLink-cta:active {
    transform: none;
    box-shadow: 0 1px 1px rgba(0,0,0,0.11);
}


/* Amélioration de l'accessibilité */
#myaccount input:focus,
#myaccount button:focus,
#myaccount select:focus {
	outline: 2px solid #78af2f;
	outline-offset: 2px;
}

/* Styling pour les combobox et datalist */
#myaccount input[list] {
	position: relative;
}

#myaccount datalist {
	position: absolute;
	background-color: #fff;
	border: 2px solid #78af2f;
	border-radius: 4px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
	max-height: 200px;
	overflow-y: auto;
	z-index: 1000;
}

#myaccount datalist option {
	padding: 10px 12px;
	color: #133351;
	cursor: pointer;
	font-family: Verdana, Arial, sans-serif;
	transition: background-color 0.3s ease;
}

#myaccount datalist option:hover {
	background-color: #f0f8ff;
}

/* Styling pour les select multiples */
#myaccount select[multiple] {
	height: auto;
	min-height: 120px;
	padding: 8px;
	background-image: none;
}

#myaccount select[multiple] option {
	padding: 6px 8px;
	margin: 2px 0;
	border-radius: 3px;
}

#myaccount select[multiple] option:selected {
	background-color: #78af2f;
	color: white;
}

/* Responsive pour les select */
@media (max-width: 768px) {
	#myaccount select {
		font-size: 16px; /* Évite le zoom automatique sur iOS */
	}
}

/* Indicateur de champ obligatoire */
/* #myaccount label::after {
	content: " *";
	color: #dc3545;
	font-weight: bold;
} */

/* Animation du bouton de connexion */
@keyframes pulse {
	0% {
		box-shadow: 0 4px 8px rgba(0,0,0,0.2);
	}
	50% {
		box-shadow: 0 4px 8px rgba(120, 175, 47, 0.4);
	}
	100% {
		box-shadow: 0 4px 8px rgba(0,0,0,0.2);
	}
}

#myaccount button[type="submit"]:focus {
	animation: pulse 2s infinite;
}