/*============================================================
  1) RESET & BASE
============================================================*/
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: rgb(92,102,107); /* gris bleu ML2C */
}

/*============================================================
  2) HEADER GÉNÉRAL
============================================================*/
header {
  background-color: rgb(92,102,107); /* Bleu gris ML2C */
  border-bottom: none !important;
  padding: 1rem 0;
}

header img {
  max-height: 100px; /* hauteur du logo */
}

/* Titre (ML2C CONSEIL) */
header h1 {
  color: rgb(51,51,51) !important;  /* gris lisible */
  font-family: "Loves Regular", sans-serif; /* ML2C */
  font-weight: 600;
}

/* Bouton principal */
header .btn {
  min-width: 140px;
  font-weight: 500;
}

header h1 {
  font-size: 1.9rem;
  color: #333;
}

nav a {
  font-weight: 500;
  color: #333;
  text-decoration: none;
}

nav a:hover {
  color: #c70086; /* Couleur rose de ML2C CONSEIL */
}

/*============================================================
  3) FORMULAIRES CONNEXION/CRÉATION
============================================================*/
.collapse {
  transition: height 0.4s ease;
  will-change: height;
}

/* Fond et textes */
#loginCollapse,
#createAccountCollapse {
  background-color: rgb(92,102,107); /* Bleu gris ML2C */
  color: rgb(255,255,255);
  padding: 1rem;
}

/* Titres de formulaires */
#loginCollapse h2,
#createAccountCollapse h2 {
  margin-top: 0;
  font-weight: 600;
  font-family: "Loves Regular", sans-serif; /* Typo ML2C */
}

/* Labels & champs */
form .form-group label {
  font-weight: 500;
}
form .form-control {
  border-radius: 4px;
}

/* Boutons */
form button[type="submit"] {
  font-weight: 500;
}

/*============================================================
  4) NAVIGATION (menu.html)
============================================================*/
nav {
  border-top: none !important;
  border-bottom: none !important;
  margin-bottom: 1rem;
}

/* Couleur régulière des liens du menu (lisible) */
.nav-link {
  color: rgb(51,51,51) !important; /* texte lisible */
  font-weight: 600;
}

/* Survol en Rose ML2C */
.nav-link:hover {
  color: rgb(193,0,122) !important;
  text-decoration: none;
}

/*============================================================
  STYLING ORIGINAL ML2C contact pour menu.html
============================================================*/

.contact-title {
  color: rgb(216,30,91);
  font-weight: bold;
}

.contact-card {
  border-radius: 10px;
  background-color: #ffffff;
}

.btn-ml2c-submit {
  background-color: rgb(216,30,91);
  color: white;
  font-weight: bold;
  border: none;
  padding: 0.75rem;
  font-size: 1.1rem;
}

.btn-ml2c-submit:hover {
  background-color: rgb(0,150,57);
}

.contact-infos-title {
  color: rgb(96,125,139);
  font-weight: 600;
}

/*============================================================
  5) CARROUSEL DANS MENU.HTML
============================================================*/

/* Le carrousel a le même fond que le menu/header */
#carouselExampleIndicators {
  background-color: rgb(92,102,107);  /* même couleur que le menu ML2C */
  padding: 1.5rem 0;                  /* espace autour du contenu */
}

/* Chaque slide : on centre le contenu, sans imposer un format bannière */
.carousel-item {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;        /* pas de hauteur fixe → image gardée telle quelle */
  overflow: visible;
}

/* Image : garde son format naturel (carré, portrait…) et reste centrée */
.carousel-item img {
  max-height: 450px;   /* limite la hauteur pour éviter les images énormes */
  width: auto;         /* pas de largeur forcée */
  height: auto;        /* respect des proportions */
  object-fit: contain; /* jamais de recadrage */
  display: block;
  margin: 0 auto;
  border-radius: 8px;  /* optionnel, juste pour un rendu plus doux */
}

/*============================================================
  6) FOOTER
============================================================*/
footer.footer-custom {
  background-color: rgb(92,102,107); /* Bleu gris ML2C */
  color: rgb(255,255,255);
  padding: 1.5rem 0;
  margin-top: 2rem;
  border-top: 3px solid rgb(193,0,122); /* Rose ML2C */
  z-index: 10;
  position: relative;
}

/* Container principal du footer */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* GAUCHE : Réseaux sociaux */
.footer-left {
  display: flex;
  align-items: center;
}
.footer-left img {
  width: 48px;
  height: auto;
  margin-right: 1rem;
  border-radius: 6px;
}

/* MILIEU : Coordonnées */
.footer-middle {
  text-align: center;
  flex-direction: column;
  display: flex;
  color: rgb(255,255,255);
}

/* DROITE : Liens RGPD & autres */
.footer-right-horizontal {
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.footer-right-horizontal .btn-link {
  color: rgb(255,255,255);
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0;
}

.footer-right-horizontal .btn-link:hover {
  color: rgb(193,0,122); /* Rose ML2C */
  text-decoration: underline;
}

/*============================================================
  7) UTILS & DIVERS
============================================================*/
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/*============================================================
  8) FORMULAIRE / DEVIS / PAIEMENT
============================================================*/
.formulaire-container {
  padding: 2rem 0;
}

.formulaire-container h2 {
  margin-bottom: 1.5rem;
  font-family: "Loves Regular", sans-serif; /* Typo ML2C */
  color: rgb(255,255,255);
}

.formulaire-container .form-group {
  margin-bottom: 1.5rem;
}

.formulaire-container .form-control {
  border: 1px solid rgb(200,200,200);
  padding: 0.5rem;
  font-size: 1rem;
  color: rgb(0,0,0);
}

.btn-pay {
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  background-color: rgb(79,166,149); /* Turquoise ML2C */
  color: white;
  border: none;
}

/*============================================================
  9) FAQ
============================================================*/
#faq-accordion .card {
  margin-bottom: 1rem;
  border: none; /* plus propre avec ton design */
}

/* En-tête de chaque question */
#faq-accordion .card-header {
  background-color: rgb(92,102,107);   /* Bleu gris ML2C (#607D8B) */
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 0.75rem 1rem;
}

/* Bouton question : texte blanc, bien lisible */
#faq-accordion .card-header .btn-link {
  font-weight: 500;
  color: rgb(255,255,255);             /* texte en blanc */
  text-decoration: none;
  width: 100%;
  text-align: left;
  padding: 0;
}

/* Survol / focus : on passe le texte en rose ML2C */
#faq-accordion .card-header .btn-link:hover,
#faq-accordion .card-header .btn-link:focus {
  color: rgb(193,0,122);               /* Rose ML2C (#D81E5B) */
  text-decoration: none;
}

/* Corps de la réponse */
#faq-accordion .card-body {
  background-color: rgb(255,255,255);
  color: rgb(51,51,51);
}


/*============================================================
  10) RESUME DEVIS
============================================================*/
.resume-summary {
  margin-top: 2rem;
}

.resume-summary .list-group-item {
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
}

/*============================================================
  11) MODAL DYNAMIQUE : CONNEXION / CRÉER UN COMPTE
============================================================*/
.modal-header {
  background-color: rgb(92,102,107); /* Bleu gris ML2C */
  border-bottom: 1px solid #ccc;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: "Loves Regular", sans-serif; /* Typo ML2C */
  color: white;
}

.nav-tabs .nav-link {
  font-weight: 500;
  color: #333;
  border: 1px solid transparent;
  margin-right: 0.5rem;
}

.nav-tabs .nav-link.active {
  background-color: rgb(92,102,107); /* Bleu gris ML2C */
  color: #fff;
  border-color: rgb(92,102,107);
}

.modal-body form .form-group {
  margin-bottom: 1rem;
}

.modal-body form .form-control {
  border-radius: 4px;
}

.modal-body form button {
  font-weight: 500;
}


/*============================================================
  12) BLOG, NOTRE HISTOIRE & NOTRE ÉQUIPE
============================================================*/
.card-img-top {
  object-fit: cover;
}

.card {
  margin-bottom: 1.5rem;
}

.container h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-family: "Loves Regular", sans-serif;   /* Typo ML2C */
  color: rgb(51,51,51);                       /* gris foncé lisible */
  /* si tu préfères les titres en rose :
     color: rgb(193,0,122);  // Rose ML2C
  */
}

.card-title {
  font-size: 1.25rem;
  font-weight: bold;
  font-family: "Loves Regular", sans-serif; /* Titres ML2C */
  color: rgb(193,0,122); /* Rose ML2C */
}

.card-text {
  font-size: 1rem;
  line-height: 1.5;
  color: rgb(51,51,51);
}

.card-footer {
  color: rgb(92,102,107) !important;  /* gris ML2C */
  font-size: 0.9rem;
}

/*============================================================
  13) LIENS DE NAVIGATION SUPPLÉMENTAIRES
============================================================*/
.navbar .nav-link {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  color: rgb(255,255,255);
}

/*============================================================
  14) PERSONNALISATION DES BOUTONS (COULEURS ML2C)
============================================================*/
/* Bouton primaire : Rose ML2C → Survol Turquoise ML2C */
.btn-primary {
  background-color: rgb(193,0,122) !important; /* Rose ML2C */
  border-color: rgb(193,0,122) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: rgb(79,166,149) !important; /* Turquoise ML2C */
  border-color: rgb(79,166,149) !important;
}

/* Bouton outline : Rose ML2C → Survol Turquoise */
.btn-outline-primary {
  border-color: rgb(193,0,122) !important;
  color: rgb(193,0,122) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: rgb(79,166,149) !important;
  border-color: rgb(79,166,149) !important;
  color: rgb(255,255,255) !important;
}

/*============================================================
  15) PROGRESS OVERLAY BLOCK
============================================================*/
#progressOverlay {
  display: none;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  background: rgb(255,255,255);
  border: 1px solid rgb(200,200,200);
  padding: 20px;
  z-index: 1050;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/*============================================================
  16) MENU LATÉRAL DANS PARAMÈTRES
============================================================*/
#paramMenu .list-group-item {
  background-color: rgb(255,255,255);
  color: rgb(51,51,51);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#paramMenu .list-group-item:hover,
#paramMenu .list-group-item.active {
  background-color: rgb(193,0,122); /* Rose ML2C */
  color: rgb(255,255,255);
}

/*============================================================
  17) BOUTONS DANS RÉSUMÉ DEVIS
============================================================*/
.resume-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.resume-buttons .btn {
  margin: 0.5rem;
}

/* Style des boutons roses ML2C */
.btn-pink {
  background-color: rgb(193,0,122) !important; /* Rose ML2C */
  color: rgb(255,255,255) !important;
  border: none !important;
}

/* Survol identique (pas de flash) */
.btn-pink:hover,
.btn-pink:focus,
.btn-pink:active {
  background-color: rgb(193,0,122) !important;
  color: rgb(255,255,255) !important;
}


/*============================================================
  18) THÈME UTILISATEUR : CLAIR / SOMBRE
============================================================*/
body.light {
  background-color: rgb(255,255,255);
  color: rgb(0,0,0);
}

body.dark {
  background-color: rgb(30,30,30);
  color: rgb(255,255,255);
}

body.dark input,
body.dark select,
body.dark textarea {
  background-color: rgb(44,44,44);
  color: rgb(255,255,255);
  border-color: rgb(68,68,68);
}

body.dark .form-control::placeholder {
  color: rgb(204,204,204);
}

body.dark .list-group-item {
  background-color: rgb(44,44,44);
  color: rgb(255,255,255);
}

body.dark .list-group-item.active {
  background-color: rgb(193,0,122); /* Rose ML2C */
  color: rgb(255,255,255);
}

body.dark .btn {
  background-color: rgb(193,0,122); /* Rose ML2C */
  color: white;
}

body.dark .btn:hover {
  background-color: rgb(79,166,149); /* Turquoise ML2C */
  color: white;
}

body.dark .alert {
  background-color: rgb(51,51,51);
  color: rgb(238,238,238);
}

/*============================================================
  19) FORM-GROUP & ALERTS
============================================================*/
.form-group {
  margin-bottom: 15px;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
}

.btn {
  padding: 10px 20px;
  background-color: rgb(193,0,122); /* Rose ML2C */
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.alert {
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.alert-success {
  background-color: rgb(212,237,218);
  color: rgb(21,87,36);
}

.alert-danger {
  background-color: rgb(248,215,218);
  color: rgb(114,28,36);
}

/* ============================================================
   20) FICHE RÉSUMÉ DEVIS
============================================================ */
.fiche-resume-card {
  background-color: rgb(79,166,149) !important; /* Turquoise ML2C */
  border-radius: 8px;
  border: none;
  color: white;
}

.fiche-resume-header {
  background-color: rgb(193,0,122) !important; /* Rose ML2C */
  color: white !important;
  font-weight: bold;
  font-size: 1.2rem;
}

/*============================================================
  21) CHATBOT (personnage animé avec bulles)
============================================================*/
.chatbot-container {
  position: relative;
  text-align: center;
  margin-top: 30px;
}

.chatbot-avatar {
  width: 180px;
  height: auto;
  border-radius: 50%;
  position: relative;
}

.chatbot-halo {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, rgba(193,0,122,0.2) 60%, transparent 70%);
  border-radius: 50%;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  animation: pulseHalo 2s infinite;
}

@keyframes pulseHalo {
  0% { transform: translateX(-50%) scale(1); opacity: 0.7; }
  50% { transform: translateX(-50%) scale(1.2); opacity: 1; }
  100% { transform: translateX(-50%) scale(1); opacity: 0.7; }
}

/* Bulles */
.chatbot-question-bubble {
  background-color: rgb(255,255,255);
  border-radius: 15px;
  padding: 10px 20px;
  display: inline-block;
  margin-bottom: 10px;
  position: relative;
  color: #333;
  font-weight: bold;
}

.chatbot-question-bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  margin-left: -10px;
  border-width: 10px;
  border-style: solid;
  border-color: rgb(255,255,255) transparent transparent transparent;
}

.chatbot-answer-bubble {
  background-color: rgb(193,0,122); /* Rose ML2C */
  color: white;
  border-radius: 15px;
  padding: 10px 20px;
  display: inline-block;
  margin-top: 10px;
  position: relative;
  font-weight: bold;
}

.chatbot-answer-bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -20px;
  margin-top: -10px;
  border-width: 10px;
  border-style: solid;
  border-color: transparent rgb(193,0,122) transparent transparent;
}

/* Animation des bulles */
.chatbot-question-bubble,
.chatbot-answer-bubble {
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInBubble 1s forwards;
}

.chatbot-answer-bubble {
  animation-delay: 1s;
}

@keyframes fadeInBubble {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
  22) CHATBOT - HISTORIQUE
============================================================*/
#history-container {
  background-color: rgb(255,255,255);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  display: none;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#history-container.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

#history-container li strong {
  color: rgb(193,0,122); /* Rose ML2C */
}

/*============================================================
  23) EFFET POP
============================================================*/
.pop-in-message {
  opacity: 0;
  transform: scale(0.9);
  animation: popIn 0.4s forwards;
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/*============================================================
  24) CHATBOT - STYLE MESSAGERIE
============================================================*/
.user .bubble {
  background-color: rgb(215,245,219);
}

.bot .bubble {
  background-color: rgb(252,213,225); /* Rose clair ML2C */
}

/*============================================================
  25) BOUTON "Afficher les questions déjà répondues"
============================================================*/
#answered-btn {
  background-color: rgb(0,151,167); /* Bleu turquoise */
  color: white;
}

#answered-btn:hover {
  background-color: rgb(0,124,145);
}

/*============================================================
  26) ALIGNEMENT DES BOUTONS EN LIGNE
============================================================*/
.button-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/*============================================================
  27) NOTIFICATION DE NOUVELLE RÉPONSE
============================================================*/
.nouvelle-reponse {
  animation: highlightNew 0.8s ease-in-out;
  background-color: rgb(252,213,225) !important; /* Rose clair ML2C */
  border-left: 6px solid rgb(193,0,122); /* Rose ML2C */
  box-shadow: 0 0 8px rgba(193,0,122,0.3);
}

@keyframes highlightNew {
  0% {
    transform: scale(1);
    box-shadow: 0 0 2px rgba(193,0,122,0.2);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(193,0,122,0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 2px rgba(193,0,122,0.2);
  }
}

/*============================================================
  28) BADGE DE NOTIFICATION
============================================================*/
#answered-badge {
  background-color: rgb(193,0,122);
  color: rgb(255,255,255);
  font-weight: bold;
  border-radius: 50%;
  padding: 4px 8px;
  font-size: 0.75rem;
  margin-left: 8px;
  display: none;
}

/*============================================================
  29) INDICATEUR "LE BOT RÉPOND..."
============================================================*/
#typing-indicator {
  display: none;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: rgb(193,0,122);
  font-size: 1.2rem;
  margin-bottom: 20px;
  animation: fadeInTyping 0.5s ease-in-out;
}

#typing-indicator .dot {
  animation: bounce 1.5s infinite;
  font-size: 1.5rem;
  line-height: 0;
  margin-left: 2px;
}

#typing-indicator .dot.one { animation-delay: 0s; }
#typing-indicator .dot.two { animation-delay: 0.2s; }
#typing-indicator .dot.three { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/*============================================================
  30) MESSAGE D'ATTENTE
============================================================*/
.attente-message {
  text-align: center;
  font-style: italic;
  font-weight: 500;
  color: rgb(193,0,122);
  border: 2px dashed rgb(193,0,122);
  padding: 12px 20px;
  border-radius: 10px;
  background-color: rgb(255,240,245);
  animation: fadeInSlow 1s ease-in-out;
  margin-bottom: 20px;
}

@keyframes fadeInSlow {
  from { opacity: 0; }
  to { opacity: 1; }
}

/*============================================================
  31) PERSONNALISATION DU BOT
============================================================*/
#customization-panel {
  background-color: rgb(248,249,250);
  border: 1px solid rgb(222,226,230);
  padding: 20px;
  border-radius: 8px;
  animation: fadeIn 0.5s ease-in-out;
}

.select-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.select-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(0,123,255,0.5);
  cursor: pointer;
}

.select-avatar.border.border-primary {
  border: 3px solid rgb(0,123,255);
}

/*============================================================
  32) BOUTON AFFICHER LA PERSONNALISATION
============================================================*/
#toggle-customization {
  margin-top: 15px;
  margin-left: 10px;
}

/*============================================================
  33) BOUTONS VERTS ML2C
============================================================*/
.btn-ml2c-green {
  background-color: rgb(79,166,149) !important;
  color: white !important;
  border: none !important;
}

.btn-ml2c-green:hover,
.btn-ml2c-green:focus {
  background-color: rgb(60,130,115) !important;
}

.btn-outline-ml2c-green {
  border: 2px solid rgb(79,166,149) !important;
  color: rgb(79,166,149) !important;
  background-color: transparent !important;
}

.btn-outline-ml2c-green:hover,
.btn-outline-ml2c-green:focus {
  background-color: rgb(79,166,149) !important;
  color: white !important;
}

/*============================================================
  34) ADMIN USER TABLE - COLORS ML2C
============================================================*/
body {
  background-color: rgb(240,251,228);
}

.btn-ml2c-edit {
  background-color: rgb(255,236,179);
  color: rgb(92,75,0);
}

.btn-ml2c-copy {
  background-color: rgb(204,229,255);
  color: rgb(0,64,133);
}

.btn-ml2c-delete {
  background-color: rgb(248,215,218);
  color: rgb(114,28,36);
}

.table thead {
  background-color: rgb(212,237,218);
}

/*============================================================
  35) ADMIN TOOLBAR - PhpMyAdmin Style
============================================================*/
.phpmyadmin-toolbar {
  font-size: 0.9rem;
  background-color: rgb(245,246,248);
  border: 1px solid rgb(207,210,214);
  border-radius: 4px;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.phpmyadmin-toolbar .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
}

.phpmyadmin-toolbar a {
  color: rgb(0,123,255);
  text-decoration: none;
  margin-right: 0.5rem;
  font-weight: 500;
}

.phpmyadmin-toolbar a:hover {
  text-decoration: underline;
}

.phpmyadmin-toolbar label {
  margin-bottom: 0;
  font-weight: 500;
  font-size: 0.85rem;
}

/*============================================================
  36) REFRESH SPINNER
============================================================*/
.spinner-border {
  width: 3rem;
  height: 3rem;
}

/*============================================================
  37) VIEW PHP - Code block display
============================================================*/
pre.code-block {
  background-color: rgb(33,37,41);
  color: rgb(248,249,250);
  padding: 1rem;
  border-radius: 0.5rem;
  font-family: monospace;
  overflow-x: auto;
  border: 1px solid rgb(52,58,64);
}

/*============================================================
  38) INLINE EDITING TABLE
============================================================*/
table.inline-edit-table {
  background-color: rgb(255,255,255);
  border: 1px solid rgb(222,226,230);
}

table.inline-edit-table th,
table.inline-edit-table td {
  vertical-align: middle;
  text-align: center;
}

.form-control-inline {
  width: 100%;
  padding: 0.25rem;
  font-size: 0.875rem;
}

/*============================================================
  39) SQL EXPLAIN PAGE
============================================================*/
pre.sql-code {
  background-color: rgb(248,249,250);
  border: 1px solid rgb(222,226,230);
  padding: 1rem;
  border-radius: 0.375rem;
  font-family: 'Courier New', monospace;
  color: rgb(73,80,87);
  white-space: pre-wrap;
}

/*============================================================
  40) GENERIC PAGES - Section padding and buttons
============================================================*/
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: rgb(51,51,51);
  font-family: "Loves Regular", sans-serif; /* ML2C */
}

.page-section {
  padding: 2rem;
  background-color: rgb(255,255,255);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/*============================================================
   41) Carte bancaire (onglet compte client) — VERSION A
============================================================*/

.credit-card-display {
  background: linear-gradient(135deg, #00A89D, #0097A7);
  color: #fff;
  max-width: 420px;
  margin: auto;
  padding: 22px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  animation: fadeIn 0.7s ease;
}

.credit-card-display .card-number {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.credit-card-display .card-brand {
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
  opacity: 0.9;
}

/*============================================================
   41.1) En-tête ESPACE CLIENT
============================================================*/

.espace-client-header {
  background: rgb(92,102,107);
  padding: 25px;
  border-radius: 12px;
  color: white;
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: .5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  animation: fadeSlideDown 0.8s ease;
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/*============================================================
  41.2) Nav-tabs modernisés
============================================================*/

.nav-tabs {
  border-bottom: 2px solid rgb(92,102,107);
}

.nav-tabs .nav-link {
  color: #444;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px 8px 0 0;
  transition: all 0.25s ease;
}

.nav-tabs .nav-link.active {
  background-color: #D81E5B;
  color: white !important;
  border-color: #D81E5B;
  box-shadow: 0 -2px 8px rgba(216,30,91,0.3);
}

.nav-tabs .nav-link:hover {
  background-color: rgb(92,102,107);
  color: white !important;
}

/*============================================================
  41.3) Cards devis / fiches clients
============================================================*/

.card {
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  animation: fadeIn 0.6s ease;
}

.card-header {
  background: rgb(193,0,122) !important;
  color: white !important;
  font-size: 1.3rem;
  font-weight: 600;
}

.list-group-item {
  border: none !important;
  padding: 14px 18px;
  background: #f7f7f7;
  font-size: 1rem;
}

.list-group-item:nth-child(even) {
  background: #efefef;
}

/*============================================================
  41.4) Fiche résumé devis 
============================================================*/

.fiche-resume-card {
  background: #00A89D !important;
  border-radius: 12px;
  border: none;
  color: white !important;
}

.fiche-resume-header {
  background: #D81E5B !important;
  padding: 15px;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 12px 12px 0 0;
}

/*============================================================
  41.5) Animations
============================================================*/

.fade-in { animation: fadeIn 0.7s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/*============================================================
   42 - Page Erreur 404 
============================================================*/
.error-404-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(248,249,250);
  text-align: center;
}

.error-404-content {
  max-width: 600px;
  padding: 20px;
}

.error-404-code {
  font-size: 100px;
  font-weight: 700;
  color: rgb(220,53,69);
}

.error-404-message {
  font-size: 24px;
}

/*============================================================
   43 - Page Erreur 500 
============================================================*/
.error-500-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(255,243,243);
  text-align: center;
}

.error-500-content {
  max-width: 600px;
  padding: 20px;
}

.error-500-code {
  font-size: 100px;
  font-weight: 700;
  color: rgb(220,53,69);
}

.error-500-message {
  font-size: 22px;
  color: rgb(51,51,51);
}

/*============================================================
   44 - Politique de sécurité 
============================================================*/

.section44 {
  background-color: rgb(248,255,241);
  border-top: 4px solid rgb(40,167,69);
  border-bottom: 4px solid rgb(40,167,69);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Style du bloc de code Python */
.code-block-dark {
  background: rgb(30,30,30);
  color: rgb(212,212,212);
  font-family: 'Courier New', monospace;
}

.code-keyword { color: rgb(86,156,214); }
.code-function { color: rgb(220,220,170); }
.code-comment { color: rgb(106,153,85); }

/*============================================================
   45 - Table des utilisateurs (Admin) 
============================================================*/

.section45 {
  background-color: rgb(253,253,253);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Toolbar d'administration */
.phpmyadmin-toolbar {
  background-color: rgb(245,245,245);
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid rgb(221,221,221);
}

/* Boutons personnalisés ML2C */
.btn-ml2c-edit {
  background-color: rgb(255,193,7);
  color: rgb(0,0,0);
}
.btn-ml2c-edit:hover {
  background-color: rgb(224,168,0);
  color: rgb(255,255,255);
}

.btn-ml2c-copy {
  background-color: rgb(23,162,184);
  color: rgb(255,255,255);
}
.btn-ml2c-copy:hover {
  background-color: rgb(19,132,150);
  color: rgb(255,255,255);
}

.btn-ml2c-delete {
  background-color: rgb(220,53,69);
  color: rgb(255,255,255);
}
.btn-ml2c-delete:hover {
  background-color: rgb(189,33,48);
  color: rgb(255,255,255);
}

/* Tableau */
#userTable th, #userTable td {
  vertical-align: middle;
}
#userTable td {
  word-break: break-word;
}

/* Toast Bootstrap 5 */
.toast.text-bg-success {
  background-color: rgb(40,167,69) !important;
  color: rgb(255,255,255);
}

/*============================================================
   46 Double Authentification (2FA)
============================================================*/

.section-2fa {
  background-color: rgb(249,249,249);
  padding: 40px;
  max-width: 400px;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
}

.section-2fa h2 {
  margin-bottom: 20px;
  font-size: 24px;
  font-family: "Loves Regular", sans-serif;
}

.section-2fa p {
  margin-bottom: 20px;
  font-size: 16px;
}

.section-2fa input[type="text"] {
  padding: 10px;
  width: 80%;
  font-size: 16px;
  margin-bottom: 20px;
}

.section-2fa button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: rgb(0,102,204);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.section-2fa .alert {
  color: rgb(255,0,0);
  margin-bottom: 10px;
  font-weight: bold;
}
