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

body {
    font-family: 'Nunito';
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #164fb8;
    padding: 0;
    text-align: left;
    font-size: 2.4vh;
    font-weight: bold;
    /* opacity: 0.9; */
    color: whitesmoke;

    height: 7vh;
    width: 99%;
    padding: 1vh;
    line-height: 1vh;

    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 3vh;
    
    overflow: hidden;
    box-shadow: 0 0 2vh rgba(0, 0, 0, 0.8);

    position: fixed;
    z-index: 10;
}

header h1 {
    margin-top: 2vh;
    font-size: 3vh;
}

header h3 {
    margin-top: 2vh;
    margin-left: 3vh;
    color: rgba(245, 245, 245, 0.8);
    font-size: 2vh;
}

header .logo_header {
    height: 11vh;
    margin-top: -0.2vh;
}

main {
    display: flex;
    justify-content: left;
    align-items: center;
    flex-direction: column;
    padding: 4vh;
}
.main_content {
    width: 40%;
    height: 76vh;
    padding: 0vh;
    gap: 5vh;
    border: 1px rgba(0, 0, 0, 0) solid;
    border-radius: 3vh;
    background-color: rgba(40, 40, 40, 0.1);

    box-shadow: 0 0 1vh rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.main_content .img {
    background-image: url('bg1.png');
    background-size: cover;
    background-position: center;
    height: 30%;
    backdrop-filter: blur(2vh);
    width: 100%;

    box-shadow: 0 0 1vh rgba(0, 0, 0, 0.3);
}


/* ===== Header buttons ===== */
.buttons{
  display: flex;
  align-items: center;
  justify-content: right;     /* change en flex-end si tu veux les coller à droite */
  gap: 1%;
  flex-wrap: nowrap;             /* passe à la ligne si écran plus petit */
  padding: 10px 14px;
  margin-left: auto;           /* pousse les boutons à droite */
}

.buttons a{
  text-decoration: none;
}

/* Le bouton lui-même */
.buttons .button{

  padding: 1.8vh 2.4vh;
  border-radius: 999px;
  font-size: 1.7vh;
  font-weight: 800;
  line-height: 1;

  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;

  background: rgba(95, 136, 211, 0.308);
  color: whitesmoke;
  border: 1px solid rgba(22,79,184,0.22);
  box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

/* Hover / focus */
.buttons .button:hover{
  background: rgba(95, 136, 211, 0.45);
  /* border-color: rgba(0,0,0,0.6); */
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

.buttons .button:active{
  transform: translateY(0px);
  box-shadow: 0 3px 10px rgba(0,0,0,.14);
}

.buttons .button:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px var(--btn-ring), 0 8px 18px rgba(0,0,0,.18);
}

.buttons .button.is-active{
  background: #164fb8;
  color: white;
  box-shadow: 0 0 0.5vh rgba(0, 0, 0, .4);
}

.buttons .button.is-active:hover {
  box-shadow: 0 0 0.8vh rgba(0, 0, 0, .4);
    transform: translateY(0px);
    cursor: default;
}

@media (max-width: 700px){
  .buttons{ gap: 8px; }
  .buttons .button{
    padding: 6px 10px;
    font-size: 12.5px;
  }
}





.hero{
  width: 100%;
  padding: 4vh;
  display: flex;
  justify-content: flex-start;
}

.hero-card{
  width: 100%;
  height: 82vh;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 22px 60px rgba(0,0,0,0.14);
  backdrop-filter: blur(10px);
  transform: translateY(0);
  transition: transform .25s ease, box-shadow .25s ease;
  /* align-items: center; */
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  /* justify-items: center; */
  margin-top: 5vh;
}

.hero-card:hover{
  /* transform: translateY(-3px); */
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
}

.hero-media{
  position: relative;
  height: clamp(170px, 26vh, 260px);
  height: 42%;
  overflow: hidden;
}

.hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  filter: contrast(1.05) saturate(1.05);
  transition: transform .6s ease;
}

.hero-card:hover .hero-media img{
  transform: scale(1.02);
}

.hero-gradient{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.35));
  pointer-events: none;
}

.hero-content{
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-content h1{
  margin: 0;
  font-size: 4vh;
  line-height: 1.35;
  color: rgba(10,10,10,0.92);
  font-weight: 800;
}

.hero-content h1 span{
  color: #164fb8;
}

.hero-content p{
  margin: 0;
  max-width: 70ch;
  color: rgba(0,0,0,0.65);
  line-height: 1.55;
  font-size: 2.8vh;
}

/* Boutons modernes */
.hero-actions{
  /* margin-top: 11vh; */
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: absolute;
  bottom: 5%;
  left: 2.5%;
}

.hero-btn{
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 7vh;
  padding: 0 5vh;
  border-radius: 999px;
  font-weight: 800;
  font-size: 2.7vh;
  letter-spacing: 0.2px;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
  user-select: none;
}

/* Effet sheen léger */
.hero-btn::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-130%);
  transition: transform .5s ease;
  pointer-events:none;
}

.hero-btn:hover::before{
  transform: translateX(130%);
}

/* Primary */
.hero-btn.primary{
  background: #164fb8;
  color: white;
  box-shadow: 0 14px 28px rgba(22,79,184,0.28);
}

.hero-btn.primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(22,79,184,0.35);
}

/* Secondary */
.hero-btn.secondary{
  background: rgba(22,79,184,0.10);
  color: #164fb8;
  border: 1px solid rgba(22,79,184,0.22);
  box-shadow: 0 12px 26px rgba(0,0,0,0.08);
}

.hero-btn.secondary:hover{
  background: rgba(22,79,184,0.16);
  border-color: rgba(22,79,184,0.30);
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(0,0,0,0.12);
}

/* Responsive */
@media (max-width: 700px){
  .hero{ padding: 3vh; }
  .hero-content{ padding: 18px; }
  .hero-btn{ width: 100%; }
}

.hero-card .logos-iut{
  width: auto;
  height: 12vh;
  position: absolute;
  bottom: 3%;
  right: 3%;
  opacity: 0.9;
}

.hero-card .logos-iut img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: contrast(1.05) saturate(1.05);
  transition: transform .6s ease;
}

/* Half-width cards section */
.half-cards-section{
  width: 100%;
  padding: 0 4vh 4vh 4vh;
  box-sizing: border-box;
}

.half-cards-row{
  display: flex;
  gap: 2vh;
  width: 100%;
}

.half-card{
  flex: 1;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(0,0,0,0.14);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.half-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
}

.half-card-header{
  background: #164fb8;
  padding: 2vh 2.5vh;
}

.half-card-header h2{
  margin: 0;
  color: white;
  font-size: 2.8vh;
  font-weight: 800;
}

.half-card-content{
  padding: 2.5vh;
}

.half-card-content ul{
  list-style: none;
  padding: 0;
  margin: 0 0 2vh 0;
}

.half-card-content ul li{
  padding: 1vh 0;
  font-size: 2vh;
  color: rgba(10,10,10,0.85);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.half-card-content ul li:last-child{
  border-bottom: none;
}

.half-card-btn{
  display: inline-block;
  text-decoration: none;
  color: #164fb8;
  font-weight: 700;
  font-size: 2vh;
  padding: 1vh 0;
  transition: color .2s ease;
}

.half-card-btn:hover{
  color: #0d3080;
}

/* Responsive */
@media (max-width: 700px){
  .half-cards-row{
    flex-direction: column;
  }
  
  .half-cards-section{
    padding: 0 3vh 3vh 3vh;
  }
}
