/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* GLOBAL STRUCTURE POUR FOOTER STICKY */
html, body {
    height: 100%;
    min-height: 100%;
}
body {
    min-height: 100vh;
    min-height: 100dvh;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: url('F_index.png') no-repeat center center fixed;
    background-size: cover;
    color: #1b2533;
    display: flex;
    flex-direction: column;
}

/* HEADER */
header {
    text-align: center;
    padding: 14px 0 2px 0;
    background: rgba(255,255,255,0.82);
    box-shadow: 0 2px 14px #b7c9db19;
    border-radius: 0 0 32px 32px;
    position: relative;
    z-index: 10;
}

header h1 {
    font-size: 2.2rem;
    font-weight: bold;
    letter-spacing: 1.7px;
    color: #204a8d;
    margin-bottom: 2px;
    margin-top: 0;
}

header h2 {
    font-size: 1.05rem;
    color: #214b87;
    font-weight: 500;
    margin-bottom: 5px;
    letter-spacing: 1.1px;
    margin-top: 0;
}

/* NAVIGATION */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 8px 0;
    background: rgba(255,255,255,0.82);
    border-radius: 0 0 22px 22px;
    margin-bottom: 0;
    box-shadow: 0 1px 12px #dbeafc1a;
    z-index: 8;
}

nav ul li {
    position: relative;
    font-size: 1.13rem;
}

nav ul li a {
    text-decoration: none;
    color: #1b2533;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px 8px 0 0;
    transition: background 0.18s, color 0.18s;
    display: inline-block;
}

nav ul li a:hover,
nav ul li:focus-within > a {
    background: #f0f5fa;
    color: #204a8d;
}

.dropdown:hover .submenu,
.dropdown:focus-within .submenu {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.submenu {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 105%;
    background: #fff;
    min-width: 150px;
    border-radius: 14px;
    box-shadow: 0 4px 12px #b9bfdc52;
    z-index: 999;
    padding: 10px 0;
}
.submenu li {
    width: 100%;
}
.submenu li a {
    padding: 8px 0;
    color: #000000;
    font-size: 1.04rem;
    min-width: 110px;
    text-align: center;
    transition: background 0.17s, color 0.17s;
}
.submenu li a:hover {
    background: #e3edfa;
    color: #1b2533;
    font-weight: bold;
}

/* CONTENU CENTRAL */
.container, .page-center {
    max-width: 550px; /* Ajuste ici pour la largeur max */
    margin: 25px auto 0 auto;
    padding: 28px 30px 22px 30px; /* padding pour bien entourer le texte */
    background: rgba(255, 255, 255, 0.78); /* fond blanc très léger */
    border-radius: 18px;
    box-shadow: 0 4px 22px rgba(130,150,200,0.08);
    text-align: center;
    color: #1b2533;
    font-size: 1.15rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* le truc important pour éviter de prendre toute la hauteur : */
    position: relative;
    top: 95px;   /* ajuste si tu veux le monter/descendre */
    flex: none;
    min-height: unset;
    height: unset;
}




.titre-principal {
    font-size: 1.55rem;
    font-weight: bold;
    color: #204a8d;
    margin-bottom: 8px;
    text-align: center;
}

.sous-titre {
    font-size: 1.01rem;
    color: #264673;
    margin-bottom: 13px;
    text-align: center;
}

.bienvenue-titre {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1b2533;
    margin: 15px 0 5px 0;
    text-align: center;
}

.description {
    font-size: 0.91Srem;
    color: #1b2533;
    text-align: center;
}

/* FOOTER — STICKY EN BAS ! */
footer {
    width: 100vw;
    background: #fffdfaee;
    text-align: center;
    color: #264673;
    font-size: 1.03rem;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -2px 8px #cfd6e822;
    padding: 15px 0 13px 0;
    position: relative;
    bottom: 0;
    left: 0;
    z-index: 10;
    letter-spacing: 0.8px;
    flex-shrink: 0;
    margin-top: auto; /* Assure que le footer descend ! */
}

/* IMAGE TOUT EN BAS DE LA PAGE */
.footer-image {
    display: block;
    width: 180px;       /* Taille à ajuster selon ta préférence */
    margin: 18px auto 0 auto;
    opacity: 0.97;
}

/* RESPONSIVE *----------------------------------------------------------------------------*/
@media (max-width: 900px) {
    .container, .page-center {
        margin-top: 30px;
        max-width: 98vw;
    }
    nav ul {
        gap: 8px;
        padding: 8px 0;
    }
    .submenu {
        min-width: 110px;
        font-size: 1rem;
    }
    footer {
        font-size: 0.98rem;
        padding: 8px 0 7px 0;
    }
}
.timeline-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 38px;
  margin: 38px auto 45px auto;
  position: relative;
  max-width: 520px;
}

.timeline-vertical::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 65px;
  bottom: 60px;
  width: 4px;
  background: #e1e8f4;
  z-index: 0;
  transform: translateX(-50%);
}

.timeline-vert-item {
  background: rgba(255,255,255,0.97);
  border-radius: 18px;
  box-shadow: 0 2px 12px #d8e0ed44;
  padding: 35px 18px 22px 18px;
  min-width: 320px;
  min-height: 170px;
  text-align: center;
  z-index: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-vert-imgs {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.timeline-logo {
  width: 110px;   /* Images bien grandes */
  height: 110px;
  border-radius: 50%;
  box-shadow: 0 1px 8px #b7c9db2f;
  background: #f7faff;
  object-fit: contain;
}

.badge-vert-overlap {
  width: 58px;
  height: 58px;
  position: absolute;
  bottom: 4px;
  right: -18px;
  border: 3px solid #fff;
  background: #fff;
  z-index: 3;
  box-shadow: 0 2px 8px #d0dce622;
}

.timeline-vert-item h4 {
  margin: 8px 0 6px 0;
  font-size: 1.13rem;
  color: #204a8d;
}
.timeline-vert-item p {
  font-size: 1rem;
  color: #253d59;
}

@media (max-width: 650px) {
  .timeline-vertical {
    max-width: 99vw;
  }
  .timeline-vert-item {
    min-width: 0;
    width: 96vw;
    padding: 28px 5vw 18px 5vw;
  }
  .timeline-logo {
    width: 70px;
    height: 70px;
  }
  .badge-vert-overlap {
    width: 36px;
    height: 36px;
    right: -8px;
  }
  .timeline-vertical::before {
    left: 25px;
    width: 3px;
  }
}

.titre-parcours {
  font-size: 2.1rem;      /* Change la valeur jusqu’à obtenir ce que tu veux */
  font-weight: bold;
  color: #204a8d;
  text-align: center;
  margin-top: 32px;
  margin-bottom: 30px;
  letter-spacing: 1.2px;
}

