:root {
  --fond:       #f0ebe3;
  --carte:      #e8e1d8;
  --accent:     hsla(24, 84%, 50%, 1);   
  --texte:      hsla(33, 54%, 17%, 1);   
  --secondaire: hsla(34, 29%, 60%, 1);   
  --col-1: hsla(4, 88%, 61%, 1);    
  --col-2: hsla(24, 84%, 50%, 1);   
  --col-3: hsla(42, 79%, 51%, 1);   
  --col-4: hsla(154, 57%, 42%, 1);  
  --col-5: hsla(194, 59%, 56%, 1);  
  --col-6: hsla(242, 52%, 69%, 1);  
}

* {
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, hsla(4, 88%, 61%, 0.06), transparent 40%),
    radial-gradient(circle at 80% 30%, hsla(42, 79%, 51%, 0.07), transparent 45%),
    linear-gradient(180deg, #f0ebe3, #ede6dc);
  color: var(--texte);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  padding-top: 70px;
}

.page {
  width: 100%;
  padding: 2rem;
}

.page.active {
  display: block;
}

.page.sup {
  max-width: 420px;
}

h1, h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--texte);
  font-weight: 700;
}

.formulaire {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input {
  padding: 0.7rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid hsla(33, 30%, 70%, 1);
  background: #faf7f3;
  color: var(--texte);
}

input:focus {
  outline: none;
  border-color: var(--accent);
}

button {
  padding: 0.8rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, hsla(4, 72%, 55%, 1), var(--accent));
  color: #fff8f0;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

button:hover {
  opacity: 0.85;
}

.chapitres {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.chapitre {
  background: #faf7f3;
  padding: 1.2rem;
  border-radius: 1rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(100, 70, 40, 0.1);
  border-left: 3px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s;
}

.chapitre:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(100, 70, 40, 0.15);
}

.conteneur-carte {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.carte {
  width: 100%;
  height: 220px;
  background: #faf7f3;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(100, 70, 40, 0.12);
  border: 1px solid hsla(33, 30%, 80%, 1);
  transition: box-shadow 0.2s, transform 0.15s;
}

.carte:hover {
  box-shadow: 0 12px 40px rgba(100, 70, 40, 0.18);
  transform: translateY(-2px);
}

.retour {
  background: none;
  color: var(--secondaire);
  font-size: 0.9rem;
  box-shadow: none;
}

.retour:hover {
  opacity: 0.7;
}

#page-chapitres, #page-cartes {
  display: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #ede6dc;
  color: var(--texte);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
  border-bottom: 1px solid hsla(33, 30%, 75%, 1);
  box-shadow: 0 2px 8px rgba(100, 70, 40, 0.08);
}

.header a {
  color: var(--texte);
  text-decoration: none;
  transition: color 0.2s;
}

.header a:hover {
  color: var(--accent);
}

.logo {
  left:-5vh important ! ;
  font-weight: bold;
  color: var(--col-1); 
}

#flashcard {
  width: min(800px, 90vw);
  min-height: 250px;
  margin: 50px auto;
  padding: 40px;
  background: #faf7f3;
  border-radius: 15px;
  border: 1px solid hsla(33, 30%, 78%, 1);
  box-shadow: 0 4px 24px rgba(100, 70, 40, 0.10);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#flashcard:hover {
  box-shadow: 0 8px 32px rgba(100, 70, 40, 0.16);
  transform: translateY(-2px);
}

#carte-reponse {
  display: none;
  margin-top: 20px;
  color: var(--secondaire);
}

.page-body {
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
  background: var(--fond);
  min-height: calc(100vh - 60px);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 4px 20px rgba(100,70,40,0.08);
  align-self: flex-start;
  margin-top: 1.5rem;
}

.card-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondaire);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--col-1);
  border-radius: 2px;
}

.form-grid { display: flex; flex-direction: column; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }

.selects-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--secondaire);
  letter-spacing: 0.02em;
}

select, textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--fond);
  color: var(--texte);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: vertical;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a08060' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}
select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px hsla(24, 84%, 50%, 0.12);
}

.divider {
  height: 1px;
  background: var(--border);
}

.submit-btn {
  width: 100%;
  padding: 0.85rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--col-1), var(--col-2));
  color: #fff8f0;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.1s;
}
.submit-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.submit-btn:active { transform: translateY(0); }

.matieres {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.2rem; 
  max-width: 800px;
  margin: 0 auto; 
}

.matiere {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 1.1rem 1.8rem;  
  border-radius: 999px;
  font-size: 1.15rem; 
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  color: var(--texte);
  background: linear-gradient(
    135deg,
    #f7f0e8,
    #efe3d6
  );
  border: 1px solid hsla(33, 35%, 70%, 1);
  box-shadow:
    0 6px 18px rgba(100, 70, 40, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.matiere:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(100, 70, 40, 0.18);
  background: linear-gradient(135deg, #fff5ea, #f3e2d2);
}

.matiere:active {
  transform: translateY(-1px);
} 

#page-matieres{
  margin-top: -20vh;
}

#titre-matieres{
  margin-bottom: 5vh;
} 

.chapitres {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

.chapitre {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 1.1rem 1.8rem; 
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  color: var(--texte);
  background: linear-gradient(
    135deg,
    #f7f0e8,
    #efe3d6
  );
  border: 1px solid hsla(33, 35%, 70%, 1);
  box-shadow:
    0 6px 18px rgba(100, 70, 40, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.chapitre:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(100, 70, 40, 0.18);
  background: linear-gradient(135deg, #fff5ea, #f3e2d2);
}

.chapitre:active {
  transform: translateY(-1px);
}

.eval-btn {
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  border: 1px solid hsla(33, 30%, 75%, 1);
  background: #faf7f3;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(100, 70, 40, 0.08);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.eval-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(100, 70, 40, 0.15);
  background: #fff5ea;
}

.eval-btn:active {
  transform: translateY(0);
}

#evaluation {
  width: min(1200px, 95vw);
  margin: 30px auto 0 auto;
  grid-template-columns: repeat(5, 1fr);
  display: grid;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.eval-btn {
  min-width: 160px;
}

.eval-btn {
  color: var(--texte) !important;
}

.back-btn{
    position: fixed;
    top: 80px;
    left: 20px;
    padding: 10px 15px;
    border: none;
    border-radius: 10px;
    background: #2c3e50;
    color: white;
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s;
    z-index: 1000;
}

.back-btn:hover{
    background:#1b2836;
}

.profil{
    position:relative;
}

.profil-photo{
    width:42px;
    height:42px;
    border-radius:50%;
    object-fit:cover;
    cursor:pointer;
    border:2px solid var(--accent);
    transition:.2s;
}

.profil-photo:hover{
    transform:scale(1.08);
}

.profil-menu{
    display:none;
    position:absolute;
    right:0;
    top:55px;
    width:180px;
    background:white;
    border-radius:12px;
    box-shadow:0 8px 25px rgba(0,0,0,.15);
    overflow:hidden;
    z-index:1000;
}

.profil-menu.open{
    display:block;
}

.profil-menu a{
    display:block;
    padding:12px 16px;
    color:var(--texte);
    text-decoration:none;
}

.profil-menu a:hover{
    background:#f4f4f4;
}

.profil-icon{
    width:40px;
    height:40px;
    border-radius:50%;
    object-fit:cover;
    cursor:pointer;
    border:2px solid var(--accent);
    transition:transform .2s;
}

.profil-icon:hover{
    transform:scale(1.08);
}

.profil{
    position:relative;
    display:flex;
    align-items:center;
}

.menu-btn{
    width:100%;
    padding:12px 16px;
    border:none;
    background:none;
    text-align:left;
    color:var(--texte);
    font-size:1rem;
    font-family:inherit;
    cursor:pointer;
}

.menu-btn:hover{
    background:#f0ebe3;
}

.popup{
    display: none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    justify-content:center;
    align-items:center;
    z-index:5000;
}

.popup.open{
    display:flex;
}

.popup-content{
    width:320px;
    background:#faf7f3;
    padding:25px;
    border-radius:15px;
    box-shadow:0 10px 30px rgba(0,0,0,.2);
}

.popup-actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:20px;
}

.nom-compte{
  margin-right: 2vh;
}

.popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:1000;
}

.popup.open{
    display:flex;
}

.popup-content{
    background:white;
    padding:30px;
    border-radius:12px;
    text-align:center;
}

.popup-content button{
    margin:10px;
    padding:10px 20px;
    cursor:pointer;
}

.matiere-stats{
    margin-bottom:20px;
}

.btn-matiere{
    width:100%;
    padding:12px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-size:18px;
    text-align:left;
}

.contenu-matiere{
    margin-top:10px;
    margin-left:20px;
}

.blocmatiere{
    background:white;
    border-radius:15px;
    margin-bottom:20px;
    overflow:hidden;
    box-shadow:0 0 8px rgba(0,0,0,.15);
}

.btnMatiere{
    width:100%;
    background:#4d8df5;
    color:white;
    border:none;
    padding:18px;
    font-size:22px;
    cursor:pointer;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.btnMatiere:hover{
    background:#3c78d8;
}

.contenu{
    display:none;
    padding:20px;
}

.barre{
    width:100%;
    height:18px;
    background:#ddd;
    border-radius:10px;
    overflow:hidden;
    margin:15px 0;
}

.progression{
    height:100%;
    background:#38b000;
}

details{
    margin-top:15px;
    padding:10px;
    border:1px solid #ddd;
    border-radius:10px;
}

summary{
    cursor:pointer;
    font-weight:bold;
}

.blocmatiere {
  justify-content: space-around;
  align-items: center;
  padding: 1.1rem 1.8rem;  
  font-size: 1.15rem; 
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  color: var(--texte);
  border: 1px solid hsla(33, 35%, 70%, 1);
  box-shadow:
    0 6px 18px rgba(100, 70, 40, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.blocmatiere:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(100, 70, 40, 0.18);
  background: linear-gradient(135deg, #fff5ea, #f3e2d2);
} 

.blocmatiere:active {
  transform: translateY(-1px);
} 

.hub {
    width: min(900px, 92vw);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.hub-intro {
    text-align: center;
    margin-bottom: 45px;
}

.hub-intro h1 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--texte);
}

.hub-intro p {
    margin: 0;
    color: var(--secondaire);
    font-size: 1.1rem;
}

.hub-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.hub-card {
    position: relative;
    min-height: 270px;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: var(--texte);
    background:
        linear-gradient(
            135deg,
            #faf7f3,
            #f1e6d9
        );
    border:
        1px solid
        hsla(33, 35%, 70%, 0.7);
    border-radius: 24px;
    box-shadow:
        0 8px 24px rgba(100, 70, 40, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        border-color 0.2s;
}

.hub-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow:
        0 18px 40px rgba(100, 70, 40, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hub-icon {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            hsla(4, 88%, 61%, 0.15),
            hsla(24, 84%, 50%, 0.18)
        );
    border:
        1px solid
        hsla(24, 84%, 50%, 0.15);
}

.hub-content h2 {
    margin: 0 0 12px 0;
    text-align: left;
    font-size: 1.35rem;
    color: var(--texte);
}

.hub-content p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
    color: var(--secondaire);
}

.hub-arrow {
    position: absolute;
    right: 25px;
    bottom: 22px;
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.2s;
}

.hub-card:hover .hub-arrow {
    transform: translateX(7px);
}

@media (max-width: 800px) {
    .hub-grid {
        grid-template-columns: 1fr;
    }
    .hub-card {
        min-height: 180px;
    }
}

.hub {
    width: min(1100px, 92vw);
    margin: 0 auto;
    padding: 40px 20px;
}

.hub-intro {
    text-align: center;
    margin-bottom: 45px;
}

.hub-intro h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.hub-intro p {
    color: var(--secondaire);
    margin: 0;
}

.hub-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.hub-card {
    position: relative;
    min-height: 300px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--texte);
    background: #faf7f3;
    border-radius: 24px;
    border: 1px solid hsla(33, 35%, 70%, 0.7);
    box-shadow:
        0 8px 22px rgba(100, 70, 40, 0.10);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.hub-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 18px 38px rgba(100, 70, 40, 0.18);
}

.hub-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 2rem;
    margin-bottom: 25px;
}

.hub-card h2 {
    margin: 0 0 15px;
    font-size: 1.35rem;
    text-align: left;
}

.hub-card p {
    margin: 0;
    color: var(--secondaire);
    font-size: 0.95rem;
    line-height: 1.6;
}

.hub-arrow {
    position: absolute;
    bottom: 25px;
    right: 28px;
    font-size: 1.7rem;
    transition: transform 0.2s;
}

.hub-card:hover .hub-arrow {
    transform: translateX(8px);
}

.hub-chapitre {
    border-top: 5px solid var(--col-3);
}

.hub-chapitre .hub-icon {
    background: hsla(42, 79%, 51%, 0.15);
}

.hub-chapitre .hub-arrow {
    color: var(--col-3);
}

.hub-ajout {
    border-top: 5px solid var(--accent);
}

.hub-ajout .hub-icon {
    background: hsla(24, 84%, 50%, 0.15);
}

.hub-ajout .hub-arrow {
    color: var(--accent);
}

.hub-modif {
    border-top: 5px solid var(--col-5);
}

.hub-modif .hub-icon {
    background: hsla(194, 59%, 56%, 0.15);
}

.hub-modif .hub-arrow {
    color: var(--col-5);
}

@media (max-width: 850px) {
    .hub-grid {
        grid-template-columns: 1fr;
    }
    .hub-card {
        min-height: 200px;
    }
}

.hub-page {
    width: 100%;
    max-width: 1200px;
    padding: 100px 30px 50px;
    margin: 0 auto;
    margin-top: -10vh;
}


.hub-title {
    width: 100%;
    text-align: center;
    margin-bottom: 50px;
}

.hub-title h1 {
    margin: 0 0 10px;
    font-size: 3.5rem;
}

.hub-cards {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 25px;
    align-items: stretch;
}

.hub-action-card {
    display: flex !important;
    flex-direction: column;
    position: relative;
    min-width: 0;
    min-height: 310px;
    padding: 30px;
    border-radius: 24px;
    text-decoration: none !important;
    color: var(--texte) !important;
    background: #faf7f3 !important;
    border: 1px solid hsla(33, 35%, 70%, 1) !important;
    box-shadow:
        0 8px 24px rgba(100, 70, 40, 0.12) !important;
    overflow: hidden;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.hub-action-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 18px 40px rgba(100, 70, 40, 0.20) !important;
}

.hub-card-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border-radius: 18px;
    font-size: 2rem;
    background: hsla(24, 84%, 50%, 0.15);
}

.hub-card-text h2 {
    margin: 0 0 15px !important;
    text-align: left !important;
    font-size: 1.4rem;
}

.hub-card-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--secondaire);
}

.hub-card-arrow {
    position: absolute;
    bottom: 25px;
    right: 28px;
    font-size: 2rem;
    color: var(--accent);
    transition: transform 0.2s;
}

.hub-action-card:hover .hub-card-arrow {
    transform: translateX(8px);
}

.card-chapitre {
    border-top: 6px solid var(--col-3) !important;
}

.card-chapitre .hub-card-icon {
    background: hsla(42, 79%, 51%, 0.15);
}

.card-chapitre .hub-card-arrow {
    color: var(--col-3);
}

.card-ajout {
    border-top: 6px solid var(--accent) !important;
}

.card-ajout .hub-card-icon {
    background: hsla(24, 84%, 50%, 0.15);
}

.card-modif {
    border-top: 6px solid var(--col-5) !important;
}

.card-modif .hub-card-icon {
    background: hsla(194, 59%, 56%, 0.15);
}

.card-modif .hub-card-arrow {
    color: var(--col-5);
}

@media (max-width: 900px) {
    .hub-cards {
        grid-template-columns: 1fr !important;
    }
    .hub-action-card {
        min-height: 220px;
    }
}

.hub-title p {
    margin-top:0;
    color: var(--secondaire);
}

@media (max-width: 600px) {
    .header {
        height: 60px;
        padding: 0 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .header .logo {
        font-size: 0.9rem;
        margin: 0;
    }
    .header nav {
        display: flex;
        align-items: center;
    }
    .header nav a {
        font-size: 0.9rem;
        margin: 0 8px;
    }
    .profil {
        display: flex;
        align-items: center;
    }
    .nom-compte {
        font-size: 0.85rem;
        margin-right: 8px;
        white-space: nowrap;
    }
    .profil-icon {
        width: 35px;
        height: 35px;
    }
    body {
        padding-top: 60px;
    }
    .back-btn {
        top: 70px;
        left: 10px;
        font-size: 0.85rem;
        padding: 8px 10px;
    }
}

.annee-hub {
    width: min(900px, 92vw);
    margin: 0 auto;
    padding: 100px 20px 50px;
    text-align: center;
}

.annee-intro {
    margin-bottom: 50px;
}

.annee-intro h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--texte);
}

.annee-intro p {
    margin: 0;
    color: var(--secondaire);
    font-size: 1.1rem;
}

.annee-cards {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.annee-card {
    position: relative;
    min-height: 300px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    text-decoration: none;
    color: var(--texte);
    background: #faf7f3;
    border-radius: 24px;
    border: 1px solid hsla(33, 35%, 70%, 1);
    box-shadow:
        0 8px 24px rgba(100, 70, 40, 0.12);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.annee-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 18px 40px rgba(100, 70, 40, 0.20);
}

.annee-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 2.3rem;
    margin-bottom: 25px;
}

.annee-1 {
    border-top: 6px solid var(--col-3);
}

.annee-1 .annee-icon {
    background: hsla(42, 79%, 51%, 0.15);
}

.annee-1 .annee-arrow {
    color: var(--col-3);
}

.annee-2 {
    border-top: 6px solid var(--col-5);
}

.annee-2 .annee-icon {
    background: hsla(194, 59%, 56%, 0.15);
}

.annee-2 .annee-arrow {
    color: var(--col-5);
}

.annee-card h2 {
    margin: 0 0 15px;
    font-size: 1.6rem;
    text-align: left;
}

.annee-card p {
    margin: 0;
    color: var(--secondaire);
    font-size: 1rem;
    line-height: 1.6;
}

.annee-arrow {
    position: absolute;
    right: 30px;
    bottom: 25px;
    font-size: 2rem;
    transition: transform 0.2s;
}

.annee-card:hover .annee-arrow {
    transform: translateX(8px);
}

@media (max-width: 700px) {
    .annee-hub {
        padding: 90px 15px 40px;
    }
    .annee-intro h1 {
        font-size: 2.2rem;
    }
    .annee-cards {
        grid-template-columns: 1fr;
    }
    .annee-card {
        min-height: 230px;
    }
}

.annee-hub {
    width: 100%;
    max-width: 1200px;
    padding: 100px 30px 50px;
    margin: 0 auto;
    margin-top: -10vh;
}

.gestion{
    margin-left : 10vh;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #ede6dc;
    color: var(--texte);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    border-bottom: 1px solid hsla(33, 30%, 75%, 1);
    box-shadow: 0 2px 8px rgba(100, 70, 40, 0.08);
}

.header nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.gestion {
    margin-left: 0;
}

.changer-utilisateur {
    position: fixed;
    top: 75px;
    right: 20px;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    z-index: 900;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(100, 70, 40, 0.15);
    transition: transform 0.2s, opacity 0.2s;
}

.changer-utilisateur:hover {
    transform: translateY(-2px);
}

.changer-utilisateur:active {
    transform: translateY(0);
}

#changer-utilisateur {
    position: fixed !important;
    top: 75px !important;
    right: 20px !important;
    z-index: 9999 !important;
    padding: 10px 18px;
    font-size: 0.9rem;
    cursor: pointer;
}

.annee-3 {
    border-top: 6px solid var(--col-4);
}

.annee-3 .annee-icon {
    background: hsla(154, 57%, 42%, 0.15);
}

.annee-3 .annee-arrow {
    color: var(--col-4);
}

.annee-hub {
    width: min(1200px, 95vw);
    margin: 0 auto;
    padding: 0px 20px;
    text-align: center;
}

.annee-intro {
    margin-bottom: 30px;
}

.annee-intro h1 {
    font-size: 2.5rem;
    margin: 0 0 8px;
    color: var(--texte);
}

.annee-intro p {
    margin: 0;
    color: var(--secondaire);
    font-size: 1rem;
}

.annee-cards {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}