@font-face {
    font-family: "MarkaziText" ;
    src: url(./assets/fonts/MarkaziText-Bold.ttf);
}

/* BASE */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: rgba(240, 242, 245);
    background-size: auto;
    background-position: center;    
    color: #333;
    margin: 0;
    padding: 0;
}

/* TITRES */
h1 {
    text-align: center;
    background-color: rgba(255, 255, 255);
    margin: 0 0px;
    font-size: 2.5em;
    color: #2c3e50;
}

h2, h3 {
    color: #34495e;
    margin-bottom: 10px;
}

/* NAVIGATION */
nav {
    background-color: rgb(44, 62, 80);
    padding: 15px 0;
    margin-bottom: 30px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
    margin: 0;
}

nav li {
    display: inline-block;
    margin: 0 10px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #f1c40f;
}

/* CONTENUS DES SECTIONS */
header > div {
    background-color: white;
    margin: 30px auto;
    padding: 20px;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
}

#credit {
    background-color: rgba(44, 62, 80);
    margin: 30px 0 auto;
    padding: 20px 10px ;
    color: whitesmoke;
    max-height: 100px;
    max-width: 100%;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
    font-family: MarkaziText;
    font-size: 1.4rem;
    text-align: center;
    text-decoration: underline;
    text-shadow: 0 0 25px #000000;
}

#deletedteam {
    color: red;
    text-align: center;
    padding: 30px 0 0 0;
}

#creation-projet {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background-color: rgba(100, 120, 140, 0.5);
    max-width: 100%;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);

}

#C-P {
    display:grid;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    color: white;
    background-color: #2c3e50;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.3s;
}

#C-P:hover {
    background-color: #34495e;
    transform: translateY(-3px);
}

.PP2 {
    background-color: white;
    margin: 30px auto;
    padding: 20px;
    max-width: 1700px;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
    font-size: 0.9rem;
    h2 {
        text-align: center;
    }
}

.PP2 {
    display: flex;
    justify-content: flex-start; /* Aligner à gauche pour le texte */
    align-items: flex-start;
    gap: 20px; /* Espacement entre le texte et les images */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.PP3 {
    width: 60%; /* Zone de texte ajustable */
}

.PP3 p {
    font-size: 16px; /* Taille du texte */
    line-height: 1.5;
    color: #333;
}

.IMAGES {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrer les images à droite */
    gap: 15px; /* Espacement entre les images */
    max-width: 120px; /* Limite la largeur des images */
}

.IMAGES img {
    width: 100%; /* Les images occuperont toute la largeur du conteneur */
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre douce */
}

.divSY {
    background-color: white;
    margin: 30px auto;
    padding: 20px;
    max-width: 1400px;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
}

img {
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

.divTMINC3 img {
    display: inline-flex;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto 20px;
}

.divTMINC3 {
    background-color: white;
    margin: 30px auto;
    padding: 20px;
    max-width: 1400px;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
}

/* LIENS */
a {
    color: #0b36a5;
}

a:hover {
    text-decoration: underline;
}

/* LISTES */
ul li {
    margin-bottom: 10px;
}

/* ESPACE */
br {
    line-height: 1.5;
}

/* Styles pour les légendes */
figcaption {
    font-size: 1em; /* Taille de la légende par défaut */
    color: #555; /* Gris clair */
    margin-top: 8px; /* Espacement entre l'image et la légende */
    max-width: 100%; /* Pour éviter que le texte dépasse de l'image */
    word-wrap: break-word; /* Pour que le texte se coupe et ne déborde pas */
    text-align: center; /* Centrer le texte de la légende */
}



/* 🎯 PARTIE RESPONSIVE */
@media screen and (max-width: 768px) {
    nav li {
        display: block;
        margin: 10px 0;
    }

    h1 {
        font-size: 2em;
    }

    header > div {
        margin: 20px;
        padding: 15px;
    }

    img {
        width: 100%;
        height: auto;
    }

    nav ul {
        padding: 0 20px;
    }

    /* Styles pour les légendes  */
    figcaption {
        font-size: 0.9em; /* Réduit légèrement la taille de la légende sur tablettes */
        margin-top: 6px; /* Moins d'espace entre l'image et la légende */
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }

    h2, h3 {
        font-size: 1.3em;
    }

    /* Styles pour les légendes sur les petits écrans  */
    figcaption {
        font-size: 0.8em; /* Taille encore plus petite pour les petits écrans  */
        margin-top: 4px; /* Réduit l'espace entre l'image et la légende */
    }
}
