/* Colors */
/* Rainy theme 5 -Green Digitalization Course and Students Apps-:
Navbar (background): #8bbbd9
Navbar (a hover): #466fa6
Navbar (logo): #568c63
Navbar (a menu): #2a4359
Footer (background): #8bbbd9
*/

/* Google fonts Roboto  */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;400&display=swap');

/* CSS utilities */
*{
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  
 
}
body {
  font-family: 'Roboto', sans-serif;
  background: #fff;
  line-height: 1.6;
}
.container {
    max-width: 1500px;
    margin: 0 auto;
    
}
ul { 
  list-style: none;
  font-size: 400;
}
a {
  color: #333;
  text-decoration: none;
}
h1, h2 {
  font-weight: 400;
  line-height: 1.2;
}
p {
  margin: 10px 0;
  font-size: 18px;
}
img {
  width: 100%;
}
/* Navbar  */

.navbar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  height: 75px;
  align-items: center;
  padding: 0 0px;

  
}
.navbar a {
  color: #2a4359;
  padding: 10px 20px;
  margin: 0 5px;
  font-size: 20px;
  text-decoration: none;
  justify-content: end;
  
}
.navbar a:hover{
  border-bottom: #2a4359 4px solid;
}
.navbar ul {
  display: flex;
  flex-direction: row;
 
}
.navbar .logo {
  font-weight: 400;
}
.text-logo {
  color: #568c63;
}

.logoIcon {
  width: 55px;
  height: 55px;
  margin-top: -20px;
}

/************************** Wave transition **************************************/

.footer_wave{
  line-height: 0;
  margin-top: -120px;
  width: 100%;
  position: relative;
  z-index: 2;
 
}

.footer_wave svg{
  display: block;
  width: 100%;
  height: 140px;
  background: transparent;
}



/*-------------------Footer----------------------------------------  */


.footer {
  min-height: 250px;
  padding: 34px 0 14px;
  background: white;
}

.footer-layout {
  position: relative;
  min-height: 170px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.footer-left {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 28px;
  max-width: 430px;
  margin-left: 44px;
}

.footer-col h3,
.footer-right h3 {
  margin: 0 0 12px;
  font-size: 21px;
  color: #2a4359;
}

.footer-col ul {
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 5px;
}

.footer-col a {
  font-size: 15px;
  color: #2a4359;
}

.footer-col a:hover {
  color: #466fa6;
}

.footer-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-center h2 {
  margin: 0;
  font-size: 31px;
  color: #2a4359;
}

.footer-top-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2a4359;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(42, 67, 89, 0.2);
}

.footer-top-link:hover {
  background: #466fa6;
  color: #fff;
}

.footer-right {
  justify-self: end;
  max-width: 310px;
  margin-right: 44px;
}

.footer-right p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #2a4359;
}

.footer-cta {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  background: #2a4359;
  color: #fff;
  font-size: 18px;
}

.footer-cta:hover {
  background: #466fa6;
  color: #fff;
}

.footer__bottom{
  max-width: 1200px;
  width: 100%;
  margin: 18px auto 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.18);

  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}

/**felles**/
.entryTag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: #d7f3ef;
    color: #0f8b8d;
    font-weight: 600;
    margin-bottom: 16px;
}

.button{
  padding: 18px 25px;
  border-radius: 8px;
  border: none;
  background: teal;
  color: white;
  margin: 10px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.button.second{
  background: transparent;
  border: 2px solid white;
}

.button:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 128, 128, 0.4);
  color:white;
}


/*******************************************************/

.flashContainer {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flashMessage {
  padding: 14px 20px;
  border-radius: 12px;
  color: white;
  font-weight: 500;
  min-width: 260px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  animation: fadeIn 0.3s ease;
}

.flash-success {
  background: #4CAF50;
}

.flash-danger {
  background: #e74c3c;
}

.flash-warning {
  background: #f39c12;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




/* Media query */
@media(max-width:768px){
  .section_navbar {
    height: auto;
  }
  .section_navbar .container {
    height: auto;
  }
  .navbar {
    height: 160px;
    flex-direction: column;
  }
  .navbar nav {
    height: auto;
  }
  .navbar a {
    font-size: 15px;
    padding: 5px 20px;
    height: auto;
  }
  .navbar ul {
    display: flex;
    flex-direction: column;
  }
  .navbar a:hover{
    color: #568c63;
    border-bottom: #2a4359 2px solid;
  }
  .footer {
    padding: 24px 0 14px;
  }
  .footer-layout {
    position: static;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .footer-left {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
    margin-left: 0;
  }
  .footer-center {
    position: static;
    transform: none;
  }
  .footer-center h2 {
    font-size: 30px;
  }
  .footer-right {
    justify-self: auto;
    text-align: center;
    margin-right: 0;
  }
  .footer-right h3,
  .footer-col h3 {
    font-size: 19px;
  }
  .footer-right p,
  .footer-col a {
    font-size: 14px;
  }
  .footer-cta {
    font-size: 16px;
  }
}

