body {
    margin: 0;
    font-family: "Georgia", serif;
    background: white;
}

/* HEADER */
header {
    background: #06101c;
    color: white;
    display: flex;
    align-items: center;
    padding: 15px 40px;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    margin-right: 15px;
}

.site-title {
    margin-right: auto;
    font-size: 18px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    font-size: 15px;
}

nav a:hover {
    text-decoration: underline;
}

/* HERO SECTION */
.hero {
    height: 550px;
    background: radial-gradient(circle, #74a8ff, #002447);
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome-box {
    width: 32%;
    background: white;
    padding: 40px 45px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.welcome-box h1 {
    font-size: 32px;
    letter-spacing: 3px;
}

.welcome-box p {
    font-size: 15px;
    text-align: justify;
    line-height: 1.5;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #3a3a3a;
    color: white;
    text-decoration: none;
}

.btn:hover {
    background: #222;
}

/* FOOTER */
footer {
    display: flex;
    justify-content: space-between;
    padding: 40px;
    margin-top: 40px;
}

.left-footer h3 {
    margin: 0 0 10px 0;
}

.iut-logo {
    width: 180px;
}

.center-footer {
    font-size: 14px;
}

.right-footer p {
    margin: 5px 0;
    font-size: 14px;
}


/* PAGE SEMESTRE 1 */
.semestre-section {
    background: #d6d6d6;
    padding: 40px 0;
    text-align: center;
}

.semestre-title {
    font-size: 26px;
    margin-bottom: 40px;
}

.sae-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 20px;
    max-width: 900px;
    margin: auto;
}

.sae-item {
    text-align: center;
}

.sae-name {
    font-size: 17px;
    margin-bottom: 10px;
}

.sae-item img {
    width: 200px;
    height: auto;
    border-radius: 5px;
}

nav a.active {
    text-decoration: underline;
    font-weight: bold;
}

/* PAGE SEMESTRE 2 */
.semestre2-section {
    background: #e6e6e6;
    padding: 40px 0;
    text-align: center;
    min-height: auto !important;
}


.sae-grid-sem2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
    max-width: 900px;
    margin: auto;
}

.sae-item img {
    width: 220px;
    height: auto;
    border-radius: 5px;
}

/* PAGE PROJETS PERSO */

.projets-section {
    padding: 40px 100px;
}

.projets-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.projet-block {
    margin-bottom: 80px;
}

.projet-block ul {
    font-size: 17px;
    line-height: 1.6;
    width: 80%;
    margin: auto;
}

.projet-images {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 30px;
}

.projet-images img {
    width: 320px;
    border-radius: 6px;
}

.sae-name a {
    color: black;
    text-decoration: none;
    font-weight: bold;
}

.sae-name a:hover {
    text-decoration: underline;
}

/* PAGE SAE */

.sae-container {
    width: 80%;
    margin: auto;
    padding-top: 40px;
}

.sae-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 40px;
}

.sae-text {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 50px;
}

.sae-text ul {
    margin-top: 10px;
}

.etapes-container {
    background: #f7f7f7;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 60px;
}

.etapes-title {
    text-align: center;
    margin-bottom: 30px;
}

.etape-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.etape-card h3 {
    margin-bottom: 8px;
}

.evaluation-container {
    text-align: center;
    margin-bottom: 60px;
}

.eval-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 20px;
}

.eval-item {
    padding: 12px 40px;
    background: #00e4ff;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
}

.eval-item.active {
    border: 3px solid red;
}

.rapport-container {
    text-align: center;
    margin-bottom: 80px;
}

.rapport-img {
    width: 250px;
    border-radius: 5px;
}

.btn-rapport {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 40px;
    background: #dfe7ff;
    border-radius: 15px;
    text-decoration: none;
    font-size: 18px;
    color: black;
}

/* PAGE SEMESTRE 2 */

.semestre2-section {
    background: #e6e6e6;   /* 🎨 même fond que Semestre 1 */
    padding: 40px 0;
    text-align: center;
    min-height: 100vh;
}


.semestre-title {
    margin-bottom: 50px;
    font-size: 28px;
}

.sae-grid-sem2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
    max-width: 900px;
    margin: auto;
}

.sae-item img {
    width: 220px;
    height: auto;
    border-radius: 5px;
}

.sae-name {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.sae-name a {
    color: black;
    text-decoration: none;
}

.sae-name a:hover {
    text-decoration: underline;
}

/* STYLE SAE 2.01 MESSAGE */
.message-sae {
    text-align: center;
    padding-top: 100px;
}

.sae201-info {
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 40px;
}

.sae201-btn {
    display: inline-block;
    padding: 18px 40px;
    background: #b8b8b8;
    border-radius: 50px;
    text-decoration: none;
    color: black;
    font-size: 20px;
    transition: 0.2s;
}

.sae201-btn:hover {
    background: #a5a5a5;
}

.rapport-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px; /* espace entre image et bouton */
}

/* === STYLE SAE 2.04 === */

.sae-container {
    width: 80%;
    margin: auto;
    padding-top: 40px;
    padding-bottom: 60px;
}

.sae-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 40px;
}

.sae-text {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.sae-text ul {
    margin-left: 25px;
}

.step-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-top: 40px;
    box-shadow: rgba(0,0,0,0.15) 0px 4px 10px;
}

.step-card h2 {
    text-align: center;
    margin-bottom: 20px;
}

.step-list p {
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
}

.step-list ul {
    margin-left: 25px;
    margin-bottom: 10px;
}

.auto-title {
    text-align: center;
    margin-top: 50px;
}

.eval-grid {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.eval-grid div {
    width: 120px;
    padding: 15px 0;
    background-color: #00d4e0;
    margin: 0 5px;
    text-align: center;
    font-size: 20px;
    color: white;
    border-radius: 8px;
    cursor: default;
}

.eval-grid .selected {
    border: 3px solid red;
    border-radius: 50px;
}

.rapport-container {
    text-align: center;
    margin-top: 50px;
}

.rapport-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.rapport-img {
    width: 280px;
    height: auto;
}

.btn-rapport {
    padding: 12px 40px;
    background-color: #dbe6ff;
    color: #002060;
    border-radius: 20px;
    text-decoration: none;
    font-size: 18px;
    transition: 0.2s;
}

.btn-rapport:hover {
    background-color: #b9ccff;
}

/* === STYLE UNIQUEMENT POUR SAE 2.04 === */

.eval-grid-204 {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.eval-item-204 {
    width: 120px;
    padding: 15px 0;
    background-color: #00d4e0;
    margin: 0 5px;
    text-align: center;
    font-size: 20px;
    color: white;
    border-radius: 8px;
    cursor: default;
}

.eval-item-204.selected {
    border: 3px solid red;
    border-radius: 50px;
}

.rapport-block-204 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.rapport-img-204 {
    width: 280px;
    height: auto;
}


footer {
    background: #f2f2f2;     /* Fond gris clair élégant */
    padding: 40px;
    margin-top: 60px;        /* Petit espace avant le footer */
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* PAGE COMPETENCES (STYLE 2) */

.competences-section {
    padding: 50px 0;
    background: #f0f0f0;
    text-align: center;
}

.competences-title {
    font-size: 36px;
    margin-bottom: 10px;
}

.competences-intro {
    font-size: 18px;
    width: 60%;
    margin: 0 auto 40px;
    color: #333;
}

.competences-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 80%;
    margin: auto;
}

.competence-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-decoration: none;
    color: black;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.competence-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.competence-card img {
    width: 80px;
    margin-bottom: 15px;
}

.competence-card h2 {
    margin-bottom: 8px;
    font-size: 24px;
}

.competence-card img.competence-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    object-fit: contain;
}
.competence-page {
    max-width: 1100px;
    margin: 50px auto;
    padding: 20px;
}

.competence-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 40px;
    color: #111;
}

.ac-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.ac-card {
    background: white;
    border-left: 6px solid #c40000;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.ac-card h3 {
    font-size: 22px;
    color: #c40000;
    margin-bottom: 20px;
}

.ac-card h4 {
    font-size: 16px;
    color: #222;
    margin-top: 15px;
    margin-bottom: 5px;
}

.ac-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}