/* Style de base pour tout le site */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
}

h1 {
    text-align: center;
    font-size: 2em;
    margin-top: -50px;
    color: #4caf89; /*#4CAF50; */
}
h2 { border-bottom: 2px solid #ccc; padding-bottom: 4px; margin-top: 30px; color: #333; }
h3 { margin-top: -45px; }
a {
    text-decoration: none;
    color: #4CAF50;
}

a:hover {
    text-decoration: underline;
}

a.deconnexion {
    text-decoration: none;
    background-color: #B2B6B8;
}

a.deconnexion:hover {
    text-decoration: underline;
	background-color: #8D9091;
}

a.modify-link { /* bouton creer BL details.php */
	float: right; margin-right: 10px; background-color: #0275d8;
}

a.modify-link:hover { /* bouton creer BL details.php */
	background-color: #0275d8;
}

a.modify-link2 { /* bouton modifier details.php */
	float: right; margin-right: 10px;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.container-connexion {
    width: 20%;
    max-width: 500px;
    margin: 100px auto; /* 200 */
    padding: 20px;
	text-align: center;
}
.obligatoire {
	color:red;
	font-style: italic;
}
/* Style des tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th {
    padding: 10px;
    text-align: left;
}
td {
    padding: 0px 2px;
    text-align: left;
}

th {
    background-color: #4CAF50;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #ddd;
}

/* Formulaire de création */
form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form input[type="text"],
form input[type="date"],
form textarea,
form select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd; 
    border-radius: 4px;
    box-sizing: border-box;
}

form input[type="submit"],
form input[type="transform"],
form input[type="connexion"] {
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    text-align: center;
}

/* Bouton d'envoi */
form input[type="submit"] {
    background-color: #4CAF50;
	margin-right: 11px;
    width: 47%;
}

/* Bouton Transformation BL */
form input[type="transform"] {
    background-color: #B2B6B8;
	margin-left: 11px;
    width: 44%;
}

/* Boutonde connexion */
form input[type="connexion"] {
    background-color: #4CAF50;
	margin-right: 11px;
    width: 47%;
}

/* Bouton suppression affret */
form input[type="delete"] {
    background-color: #E81A1A;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    width: 95%;
	margin-top: 15px;
    text-align: center;
}

form input[type="submit"]:hover {
    background-color: #45A049;
}

form input[type="transform"]:hover {
    background-color: #8D9091;
}

form input[type="delete"]:hover {
    background-color: #C20606;
}

/* Formulaire de création */
form {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form .form-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 15px;
}

form .form-group label {
    width: 100%;
    font-weight: bold;
    margin-bottom: 5px;
}

form .form-group input, form .form-group select, form .form-group textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Champs côte à côte */
form .form-group .half-width {
    width: 48%; /* Chaque champ occupe 48% de la largeur */
    margin-bottom: 15px;
}

form .form-group .full-width {
    width: 100%; /* Pour les champs qui occupent toute la largeur */
}

/* Pour les champs de type checkbox */
form .form-group input[type="checkbox"] {
    width: auto;
}

.success {
	color: green;
	margin-left: 140px;
	font-weight: bold;
}

.half-width { width: 48%; display: inline-block; vertical-align: top; }

.societe {
    margin-left: 50px;
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    width: calc(100% - 100px); /* ajuste selon ton design */
    box-sizing: border-box;
}

/* Alignement du texte et marges */
form a {
    display: inline-block;
    margin-top: 15px;
    text-align: center;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
}

form a:hover {
    background-color: #45a049;
}

/* Style des liens et des boutons */
button, a {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    margin: 2px 0;
}

button:hover, a:hover {
    background-color: #45a049;
}

.btn-danger {
    background-color: #d9534f;
    color: white;
	border: none;
	width: 97%;
	margin-left: 12px;
}
.btn-danger:hover {
    background-color: #c9302c;
}
.btn-secondary {
    background-color: #0275d8;
    color: white;
	border: none;
	width: 48%;
}
.btn-secondary:hover {
    background-color: #025aa5;
}

.error {
    border: 2px solid red;
    background-color: #ffeaea;
}

.error-message {
	color: red;
	margin: 10px 0;
}

.logo-login {
    width: 300px; /* 150 */
    height: auto;
    margin-bottom: 50px; /* 20 */
}
		
/* Footer (s'il y en a un) */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}

.logo-preview {
	max-width: 180px;
	margin-top: 10px;
	border-radius: 6px;
	border: 1px solid #ccc;
}
.logo-section {
	background: #f9f9f9;
	border: 1px solid #ddd;
	padding: 15px;
	margin-bottom: 25px;
	border-radius: 8px;
}
.msg-success {
	color: green;
	font-weight: bold;
}
.msg-error {
	color: red;
	font-weight: bold;
}

/* CSS PORTAIL */

        /* ==== STYLE DU PORTAIL ==== */


.portail-logo {
	width: 600px;
	height: auto;
	margin-bottom: 10px;
	opacity: 0;
	transform: scale(0.8);
	animation: fadeInZoom 1.2s ease forwards;
}

.portail-title {
	font-size: 2.2em;
	font-weight: bold;
	letter-spacing: 1px;
	margin-bottom: 50px;
	text-shadow: 0 2px 10px rgba(0,0,0,0.5);
	opacity: 0;
	animation: fadeIn 1.8s ease forwards;
	animation-delay: 0.5s;
}

.portail-modules {
	display: flex;
	justify-content: center;
	gap: 80px;
	flex-wrap: wrap;
	opacity: 0;
	animation: fadeInUp 1.8s ease forwards;
	animation-delay: 1s;
}

.portail-vignette-affret,
.portail-vignette-dux,
.portail-vignette-itsm,
.portail-vignette-docs {
	background: rgba(255,255,255,0.5);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	border-radius: 20px;
	padding: 30px;
	width: 170px;
	text-align: center;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.portail-vignette-affret:hover {
	transform: translateY(-20px);
	background: rgba(255,255,255,0.75);
	text-decoration:none;
	box-shadow: 0 0 15px rgba(0, 123, 255, 0.7); /* bleu */
}

.portail-vignette-dux:hover {
	transform: translateY(-20px);
	background: rgba(255,255,255,0.75);
	text-decoration:none;
	box-shadow: 0 0 15px rgba(218, 165, 32, 0.7); /* doré */
}

.portail-vignette-itsm:hover {
	transform: translateY(-20px);
	background: rgba(255,255,255,0.75);
	text-decoration:none;
	box-shadow: 0 0 15px rgba(0, 128, 0, 0.7); /* vert */
}

.portail-vignette-docs:hover {
	transform: translateY(-20px);
	background: rgba(255,255,255,0.75);
	text-decoration:none;
	box-shadow: 0 0 15px rgba(128, 128, 128, 0.7); /* gris */
}

/* Styles généraux pour toutes les vignettes */
.vignette {
    transition: box-shadow 0.3s, transform 0.3s; /* effet fluide */
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.portail-vignette-affret img,
.portail-vignette-dux img,
.portail-vignette-itsm img,
.portail-vignette-docs img {
	width: 170px;
	height: 70px;
	object-fit: contain;
	margin-bottom: 10px;
	filter: drop-shadow(0 0 5px rgba(0,0,0,0.4));
}

.portail-vignette-name {
	font-size: 1.1em;
	font-weight: bold;
	color: #ffffff;
	letter-spacing: 1px;
	text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

@keyframes fadeInZoom {
	from { opacity: 0; transform: scale(0.8); }
	to { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
	.portail-modules { gap: 40px; }
}