@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap');

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}
.container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  margin: 0;
  height: 100vh;
  width: 100vw;
  justify-content: stretch;
  overflow: visible;
}
.bloc {
  flex: 1 1 0;
  height: 100vh;
  min-width: 0;
  margin-bottom: 0;
  border-right: 1px solid #ddd;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s;
  position: relative;
  z-index: 1;
  overflow: visible;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}
.bloc:last-child {
  border-right: none;
}
.bloc[data-api="connexion_dream_touch.php"] {
  background-image: url('img/DT.jpg');
}
.bloc[data-api="connexion_metaverse_morocco.php"] {
  background-image: url('img/Amdie.jpg');
}
.bloc[data-api="connexion_ministry.php"] {
  background-image: url('img/MGE.jpg');
}
.bloc[data-api="connexion_discovering_art.php"] {
  background-image: url('img/Virtual-Museum.jpg');
}
.bloc[data-api="connexion_porsche_metaworld.php"] {
  background-image: url('img/Porsche.jpg');
}
.bloc[data-api="connexion_virtual_fair.php"] {
  background-image: url('img/International-Virtual-Fair.jpg');
  background-color: transparent;
}
.bloc-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 5;
}
.bloc {
  position: relative;
}
.bloc:hover .bloc-center-content {
  opacity: 1;
  pointer-events: auto;
}
.bloc h2 {
  margin: 0 0 20px 0;
  font-size: 1.3em;
  font-weight: bold;
  background: rgba(255,255,255,0.92);
  padding: 12px 28px;
  border-radius: 18px;
  text-align: center;
  color: #1a237e;
  box-shadow: 0 4px 24px rgba(30,30,80,0.10);
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(30,30,80,0.10);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s;
}
.bloc:hover h2 {
  opacity: 1;
  transform: translateY(0);
}
.bloc h2, .login-btn {
  font-family: 'Montserrat', 'Segoe UI', 'Roboto', Arial, sans-serif;
}
.login-btn {
  display: block;
  opacity: 0;
  pointer-events: none;
  margin-top: 0;
  font-size: 1.15em;
  font-weight: 600;
  padding: 12px 36px;
  background: linear-gradient(90deg, #1976d2 0%, #00bcd4 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  box-shadow: 0 2px 12px rgba(0,188,212,0.10);
  cursor: pointer;
  transition: opacity 0.2s, background 0.3s, transform 0.2s;
  z-index: 20;
  letter-spacing: 1px;
  outline: none;
  transform: translateY(20px);
}
.bloc:hover .login-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.login-btn:hover, .login-btn:focus {
  background: linear-gradient(90deg, #00bcd4 0%, #1976d2 100%);
  box-shadow: 0 4px 24px rgba(25,118,210,0.18);
  transform: scale(1.07);
}
.bloc:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 10;
  background-size: auto 100%;
}
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.35);
  justify-content: center;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(2px);
  animation: popup-fadein 0.4s;
}
@keyframes popup-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.popup-content {
  background: rgba(255,255,255,0.98);
  padding: 40px 36px 32px 36px;
  border-radius: 28px;
  box-shadow: 0 8px 40px rgba(30,30,80,0.18);
  min-width: 320px;
  max-width: 90vw;
  position: relative;
  font-family: 'Montserrat', 'Segoe UI', 'Roboto', Arial, sans-serif;
  animation: popup-content-in 0.5s cubic-bezier(0.4,0,0.2,1);
}
@keyframes popup-content-in {
  from { transform: translateY(40px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.close {
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 2em;
  color: #1976d2;
  cursor: pointer;
  transition: color 0.2s;
  font-weight: bold;
}
.close:hover {
  color: #00bcd4;
}
#login-form input {
  display: block;
  width: 100%;
  margin-bottom: 18px;
  padding: 12px 14px;
  font-size: 1.1em;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  background: #f7fafd;
  font-family: 'Montserrat', 'Segoe UI', 'Roboto', Arial, sans-serif;
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
  box-shadow: 0 1px 4px rgba(30,30,80,0.04);
}
#login-form input:focus {
  border: 1.5px solid #1976d2;
  background: #fff;
  box-shadow: 0 2px 12px rgba(25,118,210,0.10);
}
#login-form button {
  width: 100%;
  padding: 13px 0;
  background: linear-gradient(90deg, #1976d2 0%, #00bcd4 100%);
  color: #fff;
  border: none;
  border-radius: 18px;
  font-size: 1.15em;
  font-weight: 600;
  font-family: 'Montserrat', 'Segoe UI', 'Roboto', Arial, sans-serif;
  box-shadow: 0 2px 12px rgba(0,188,212,0.10);
  cursor: pointer;
  letter-spacing: 1px;
  outline: none;
  margin-top: 8px;
  transition: background 0.3s, box-shadow 0.2s, transform 0.2s;
}
#login-form button:hover, #login-form button:focus {
  background: linear-gradient(90deg, #00bcd4 0%, #1976d2 100%);
  box-shadow: 0 4px 24px rgba(25,118,210,0.18);
  transform: scale(1.04);
}
#login-error {
  color: #d32f2f;
  margin-top: 10px;
  text-align: center;
  font-size: 1em;
  font-family: 'Montserrat', 'Segoe UI', 'Roboto', Arial, sans-serif;
}
.login-block-title {
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 18px;
  background: linear-gradient(90deg, #ff7e5f, #feb47b, #6dd5ed, #2193b0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.08);
} 