/* Font-face */
@font-face {
  font-family: 'Blogger-Sans';
  src: url('FONT/Blogger-Sans.ttf') format('truetype');
}
@font-face {
  font-family: 'Blogger-Sans-Bold';
  src: url('FONT/Blogger-Sans.ttf') format('truetype');
}
@font-face {
  font-family: 'Blogger-Sans-Bold-Italic';
  src: url('FONT/Blogger-Sans-Bold-Italic.ttf') format('truetype');
}
@font-face {
  font-family: 'Blogger-Sans-Italic';
  src: url('FONT/Blogger-Sans-Italic.ttf') format('truetype');
}
@font-face {
  font-family: 'Blogger-Sans-Light';
  src: url('FONT/Blogger-Sans-Light.ttf') format('truetype');
}
@font-face {
  font-family: 'Blogger-Sans-Light-Italic';
  src: url('FONT/Blogger-Sans-Light-Italic.ttf') format('truetype');
}
@font-face {
  font-family: 'Blogger-Sans-Medium';
  src: url('FONT/Blogger-Sans-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Blogger-Sans-Medium-Italic';
  src: url('FONT/Blogger-Sans-Medium-Italic.ttf') format('truetype');
}

body {
  background: #004c6a url("leo2-graph-large.png") no-repeat scroll 80% 100%;
  font-family: Arial;
  margin: 30px;
}

.clear {
  clear: both;
}

a.pass_forgot {
  color: #2c6c85;
}

div.connect input {
  background-color: #2c6c85;
  border: solid 1px #2c6c85;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
  cursor: pointer;
}

div.connect input:hover,
div.connect input:focus {
  background-color: #e84d0e;
}

/* ===== LAYOUT PRINCIPAL (CORRIGÉ) ===== */

.main-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  margin: 0 auto;
  max-width: 500px;
}

/* bloc login */
.container-connexion {
  flex: 1;
  background: #ffffff;
  border: solid 1px #dddddd;
  border-radius: 4px;
  box-shadow: 1px 1px 4px rgb(20,20,20);
  font-size: 1rem;
  padding: 25px;
}

/* colonne liens */
.container-link {
  display: flex;
  flex-direction: column;
  width: 130px;
  gap: 10px;
}

/* liens carrés */
.link_right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;
  border: solid 1px #dddddd;
  border-radius: 20%;
  box-shadow: 1px 1px 4px rgb(20,20,20);

  opacity: 0.7;
  text-decoration: none;
  overflow: hidden;
}

.link_right:hover {
  opacity: 1;
}

.link_right img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ===== RESTE INCHANGÉ ===== */

.secondary-container {
  color: #ffffff;
  font-size: 0.8rem;
  margin: 0 auto;
  max-width: 350px;
  padding-top: 10px;
}

.secondary-container * {
  color: #ffffff;
}

.main-container #img_login_obj {
  text-align: center;
}

.main-container #img_login_obj img {
  max-width: 100%;
}

input {
  box-sizing: border-box;
  font-size: 1.1rem !important;
  margin: 7px 0 0 !important;
  padding: 0.5rem !important;
  width: 100% !important;
}

.connect input {
  margin-top: 10px;
}

div#sub_login_obj {
  margin: 10px auto 0 !important;
  width: 100%;
}

div#txt_info {
  font-family: "Blogger-Sans-Light" !important;
  line-height: 24px;
  margin: 20px 0;
  text-align: justify;
}

h2 {
  color: #004c6a;
  font-family: "Blogger-Sans-Light" !important;
  font-size: 2rem;
  text-align: center;
  text-transform: uppercase;
}

a.btn_rond_bleu,
a.btn_rond_orange {
  background-color: #37b0cb;
  border: none;
  border-radius: 20px;
  box-shadow: none;
  color: #ffffff !important;
  display: block;
  text-decoration: none;
  text-align: center;
  padding: 10px 0;
}

a.btn_rond_orange {
  background-color: #e84d0e;
  border: 1px solid #B53E0B;
  margin-bottom: 10px;
  padding: 20px 0;
}

a.btn_rond_bleu:hover {
  background-color: #2b6c84;
}

a.btn_rond_orange:hover {
  background-color: #ba4d20;
}

a.btn_rond_bleu span,
a.btn_rond_orange span {
  font-family: "Blogger-Sans-Medium" !important;
  font-size: 1.1rem;
  font-weight: normal !important;
  padding: 0 25px;
}

a.btn_rond_orange span {
  padding: 0 15px;
}

#not_in_group_message {
  background-color: #E84D0E;
  border-radius: 20px;
  color: #fff;
  font-size: 22px;
  padding: 10px;
}

/* ===== MOBILE ===== */

@media screen and (max-width: 830px) {
  .main-container {
    flex-direction: column;
    max-width: 350px;
  }

  .container-link {
    flex-direction: row;
    width: 100%;
  }

  .link_right {
    flex: 1;
  }

  .link_right img {
    width: 100%;
    height: auto;
  }
}

@media screen and (max-width: 700px) {
  .main-container,
  .secondary-container {
    margin: 15px auto;
  }

  .small_logo {
    height: 80px;
    width: auto;
  }
}