/******************** Général ********************/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Cette ligne permet d'éviter les problèmes liés au modèle de boîte */
}

body {
    font-family: Arial, sans-serif; /* Font par défaut pour le corps du document */
    background: #f4f4f4; /* Couleur de fond légère pour le corps */
}

/******************** Menu hamburger ********************/
nav {
    display: flex; /* Utilisation de Flexbox pour le layout du menu */
    justify-content: space-between; /* Espacement égal entre les éléments */
    align-items: center; /* Alignement vertical centré */
    background: #1e1e1e; /* Fond sombre pour le menu */
    padding: 10px 20px; /* Espacement interne */
    position: relative; /* Position relative pour le positionnement absolu des sous-éléments */
}

.menu-icon {
    display: flex; /* Flexbox pour aligner les barres du menu hamburger */
    flex-direction: column; /* Alignement vertical des barres */
    cursor: pointer; /* Curseur en forme de main pour indiquer l'interactivité */
}

.menu-icon .bar {
    width: 25px; /* Largeur des barres du menu hamburger */
    height: 3px; /* Hauteur des barres du menu hamburger */
    background: #fff; /* Couleur blanche pour les barres */
    margin: 4px 0; /* Espacement entre les barres */
    transition: 0.4s; /* Transition douce pour les animations */
}

#menu-toggle {
    display: none; /* Caché par défaut, utilisé pour l'interaction avec le menu */
}

.nav-links {
    list-style: none; /* Suppression des puces pour la liste */
    display: none; /* Caché par défaut, sera affiché en mode mobile */
    flex-direction: column; /* Disposition verticale en mode mobile */
    position: absolute; /* Positionnement absolu en dessous du nav */
    top: 100%; /* Placement juste en dessous du nav */
    left: 0; /* Aligné à gauche */
    width: 100%; /* Prend toute la largeur */
    background: #1e1e1e; /* Même couleur de fond que le nav */
    z-index: 10; /* Pour être au-dessus d'autres éléments */
}

.nav-links li {
    padding: 10px 20px; /* Espacement interne des éléments du menu */
}

.nav-links a {
    text-decoration: none; /* Suppression du soulignement des liens */
    font-size: 2rem; /* Taille du texte assez grande pour une bonne lisibilité */
    transition: 0.3s; /* Transition douce pour les survols */
}

.nav-links a:hover {
    color: #f4f4f4; /* Couleur blanche au survol */
}

#menu-toggle:checked + .menu-icon + .nav-links {
    display: flex; /* Affichage du menu en mode mobile lorsque le toggle est coché */
}

@media screen and (min-width: 768px) { /* Media query pour les écrans plus larges */
    .menu-icon {
        display: none; /* Masquer l'icône du menu hamburger sur les grands écrans */
    }

    .nav-links {
        display: flex; /* Afficher le menu horizontalement sur les grands écrans */
        flex-direction: row; /* Disposition en ligne */
        position: static; /* Position statique pour le menu */
        width: auto; /* Largeur automatique */
    }

    .nav-links li {
        padding: 0 20px; /* Espacement horizontal entre les éléments du menu */
    }
}

/******************** Les couleurs de fond des pages ********************/
.colors-background {
    background: rgb(245,245,245);
    background: linear-gradient(180deg, rgba(245,245,245,1) 0%, rgba(153,153,153,1) 100%);
}

.blue-background {
    background: rgb(0,0,80);
    background: linear-gradient(0deg, rgba(0,0,80,1) 0%, rgba(0,255,255,1) 100%);
}

.yellow-background {
    background: rgb(80,80,0);
    background: linear-gradient(0deg, rgba(80,80,0,1) 0%, rgba(255,255,0,1) 100%);
}

.red-background {
    background: rgb(80,0,0);
    background: linear-gradient(0deg, rgba(80,0,0,1) 0%, rgba(255,0,0,1) 100%);
}

.green-background {
    background: rgb(0,80,0);
    background: linear-gradient(0deg, rgba(0,80,0,1) 0%, rgba(0,255,0,1) 100%);
}


header, main, footer {
    max-width: 1120px; /* largeur totale du contenu 1120px */
    margin: 0 auto; /* Pour centrer */
}

a {
    text-decoration: none;
}

.col {
    float: left; /* Le float permet de faire flotter les boîtes les unes à coté des autres tant qu'il y a de la place */
    margin-right: 20px;
    margin-bottom: 20px;
}

.no-mr {
    margin-right: 0;
}

.clear {
    clear:both;
}

/******************** Les conteneurs ********************/
.col-12-12 {
    width: 1120px; /* 1 */
}

.col-9-12 {
    width: 835px; /* 3/4 */
}

.col-8-12 {
    width: 740px; /* 2/3 */
}

.col-6-12 {
    width: 550px; /* 1/2 */
}

.col-4-12 {
    width: 360px; /* 1/3 */
}

.col-3-12 {
    width: 265px; /* 1/4 */
}

/******************** Les citations des images ********************/
.relative {
    position: relative;
}

.absolute-6-12 { /* 1/2 */
    width: 550px;
    height: 265px;
}

.absolute-4-12 { /* 1/3 */
    width: 360px;
    height: 360px;
}

.absolute-3-12 { /* 1/4 */
    width: 265px;
    height: 265px;
}

.absolute {
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px;
    background: #f5f5f500; /* Fond transparent */
    color: #1e1e1e00; /* Texte transparent */
    font-size: 2rem;
    font-family: "Lato", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: 0.5s;
}

.absolute:hover,
.absolute:hover,
.absolute:hover {
    background: #f5f5f59f; /* Fond semi-transparent au survol */
    color: #1e1e1e; /* Texte noir au survol */
}

/******************** Titre des pages ********************/
h2 {
    font-size: 4rem;
    font-family: "Lato", sans-serif;
    color: #1e1e1e;
    text-align: center;
    margin: 20px 0;
}

.title-blue {
    color: #008888;
}

.title-yellow {
    color: #888800;
}

.title-red {
    color: #880000;
}

.title-green {
    color: #008800;
}

/******************** Citations ********************/
.my-message,
.my-quote {
    font-size: 2rem;
    font-family: "Lato", sans-serif;
    color: #1e1e1e;
    text-align: center;
    margin: 20px 0;
}

/******************** Conteneur texte ********************/
.container-text-9-12 { /* 3/4 */
    width: 835px;
    height: 265px;
}

.container-text-8-12 { /* 2/3 */
    width: 740px;
    height: 360px;
}

.container-text-6-12 { /* 1/2 */
    width: 550px;
    height: 555px;
}

.text-background {
    background: #f5f5f580;
}

.text {
    font-size: 1.3rem;
    font-family: "Lato", sans-serif;
    color: #1e1e1e;
    text-align: center;
    padding: 20px;
}

/******************** header ********************/
header {
    background: #1e1e1e;
    height: 150px;
}

header .logo {
    position: relative;
    top: 0px;
    left: -300px;
    height: 150px;
}

header .logo a h2{
    position: absolute;
    top: -25px;
    left: 0;
    font-family: "Great Vibes", sans-serif;
    font-weight: 100;
    font-size: 4.7rem;
    transform: translateX(4px);
    color: #ff0000;
    width: 277px;
    z-index: 10;
}

header .logo a h1 {
    position: absolute;
    font-family: "Oswald", sans-serif;
    font-weight: 900;
    font-size: 4.3rem;
    text-transform: uppercase;
    letter-spacing: -0.1rem;
    color: #f5f5f5;
    margin-top: 46px;
}

header nav ul {
    font-size: 1.5rem;
    font-family: "Lato", sans-serif;
    list-style: none;
}

header nav ul li {
    display: inline;
    padding-left: 30px;
}

header nav ul li .colors {
    color: #880088;
}

header nav ul li .colors:hover {
    color: #ff00ff;
}

header nav ul li .colors-active {
    color: #ff00ff;
    border-bottom: 3px solid #ff00ff;
}

header nav ul li .blue {
    color: #008888;
}

header nav ul li .blue:hover {
    color: #00ffff;
}

header nav ul li .blue-active {
    color: #00ffff;
    border-bottom: 3px solid #00ffff;
}

header nav ul li .yellow {
    color: #888800;
}

header nav ul li .yellow:hover {
    color: #ffff00;
}

header nav ul li .yellow-active {
    color: #ffff00;
    border-bottom: 3px solid #ffff00;
}

header nav ul li .red {
    color: #880000;
}

header nav ul li .red:hover {
    color: #ff0000;
}

header nav ul li .red-active {
    color: #ff0000;
    border-bottom: 3px solid #ff0000;
}

header nav ul li .green {
    color: #008800;
}

header nav ul li .green:hover {
    color: #00ff00;
}

header nav ul li .green-active {
    color: #00ff00;
    border-bottom: 3px solid #00ff00;
}

/******************** footer ********************/
footer .information {
    background: #1e1e1e;
    padding: 40px 0;
    margin-top: 20px;
}

footer .information p {
    font-size: 2rem;
    font-family: "Lato", sans-serif;
    color: #f5f5f5;
    text-align: center;
}

footer .information p span {
    color: #ff8000;
}

/******************** main couleurs ********************/
h2 span {
    color: #880088;
}

.value {
    position: relative;
    height: 550px;
    opacity: 0.6;
    transition: 0.5s;
}

.value:hover {
    opacity: 1;
}

.position {
    position: absolute;
    top: 179px;
    left: -179px;
    transform: rotate(-90deg);
    font-size: 8rem;
    font-family: "Oswald", sans-serif;
    color: #1e1e1e;
    width: 550px;
}

.ambition {
    background: #00ffff88;
}

.fraternity {
    background: #ffff0088;
}

.equality {
    background: #ff000088;
}

.liberty {
    background: #00ff0088;
}

/******************** Media Queries ********************/

/******************** Largeur maximale 1200px ********************/
@media screen and (max-width: 1200px) {

    /******************** Les conteneurs ********************/
    header, main, footer {
        max-width: 992px; /* largeur totale du contenu 992px */
        margin: 0 auto; /* Pour centrer */
    }

    /******************** Menu hamburger ********************/
    .nav-links a {
        font-size: 1.5rem;
    }

    /******************** main couleurs ********************/
    .value {
        height: 486px; 
    }

    .position {
        top: 161px;
        left: -161px;
        font-size: 7rem;
        width: 486px; 
    }
    
    /******************** Les conteneurs ********************/
    .col-12-12 { /* 1 */
        width: 992px; 
    }
    
    .col-9-12 {  /* 3/4 */
        width: 739px; 
    }
    
    .col-8-12 { /* 2/3 */
        width: 654.666px; 
    }
    
    .col-6-12 { /* 1/2 */
        width: 486px; 
    }
    
    .col-4-12 { /* 1/3 */
        width: 317.333px; 
    }
    
    .col-3-12 { /* 1/4 */
        width: 233px; 
    }

    /******************** Les images ********************/
    .col-6-12 img { /* 1/2 */
        width: 486px;  
    }
    
    .col-4-12 img { /* 1/3 */
        width: 317.333px; 
    }
    
    .col-3-12 img { /* 1/4 */
        width: 233px; 
    }

    /******************** Les citations des images ********************/
    .absolute-6-12 { /* 1/2 */
        width: 486px;
        height: 233px; 
    }

    .absolute-4-12 { /* 1/3 */
        width: 317.333px;
        height: 317.333px;
    }

    .absolute-3-12 { /* 1/4 */
        width: 233px;
        height: 233px;
    }

    /******************** Conteneur texte ********************/
    .container-text-9-12 { /* 3/4 */
        width: 739px;
        height: 233px;
    }

    .container-text-8-12 { /* 2/3 */
        width: 654.666px;
        height: 317.333px;
    }

    .container-text-6-12 { /* 1/2 */
        width: 486px;
        height: 490px;
    }

    .text {
        font-size: 20px;
    }
}

/******************** Largeur maximale 992px ********************/
@media screen and (max-width: 992px) {

    /******************** Les conteneurs ********************/
    header, main, footer {
        max-width: 768px; /* largeur totale du contenu 768px */
        margin: 0 auto; /* Pour centrer */
    }

    /******************** Menu hamburger ********************/
    .nav-links a {
        font-size: 1rem;
    }
    /******************** main couleurs ********************/
    .value {
        height: 374px; 
    }

    .position {
        top: 128px;
        left: -128px;
        font-size: 5rem;
        width: 374px; 
    }

    /******************** Les conteneurs ********************/
    .col-12-12 { /* 1 */
        width: 768px; 
    }
    
    .col-9-12 { /* 3/4 */
        width: 571px; 
    }
    
    .col-8-12 { /* 2/3 */
        width: 505.333px;
    }
    
    .col-6-12 { /* 1/2 */
        width: 374px; 
    }
    
    .col-4-12 { /* 1/3 */
        width: 242.666px; 
    }
    
    .col-3-12 { /* 1/4 */
        width: 177px; 
    }

    /******************** Les images ********************/
    .col-6-12 img { /* 1/2 */
        width: 374px;  
    }
    
    .col-4-12 img { /* 1/3 */
        width: 242.666px; 
    }
    
    .col-3-12 img { /* 1/4 */
        width: 177px; 
    }

    /******************** Les citations des images ********************/
    .absolute-6-12 { /* 1/2 */
        width: 354px;
        height: 177px;
        font-size: 1.3rem; 
    }

    .absolute-4-12 { /* 1/3 */
        width: 242.666px;
        height: 242.666px;
        font-size: 1.3rem;
    }

    .absolute-3-12 { /* 1/4 */
        width: 177px;
        height: 177px;
        font-size: 1.3rem;
    }

    /******************** Conteneur texte ********************/
    .container-text-9-12 { /* 3/4 */
        width: 571px;
        height: 177px;
    }

    .container-text-8-12 { /* 2/3 */
        width: 505.333px;
        height: 242.666px;
    }

    .container-text-6-12 { /* 1/2 */
        width: 374px;
        height: 378px;
    }

    .text {
        font-size: 1rem;
    }
}

/******************** Largeur maximale 768px ********************/
@media screen and (max-width: 768px) {

    /******************** Les conteneurs ********************/
    header, main, footer {
        max-width: 576px; /* largeur totale du contenu 576px */
        margin: 0 auto; /* Pour centrer */
    }

    /******************** main couleurs ********************/
    .value {
        height: 576px; 
    }

    .position {
        top: 188px;
        left: -188px;
        font-size: 8.5rem;
        width: 576px 
    }

    /******************** Les conteneurs ********************/
    .col-12-12 ,
    .col-9-12 ,
    .col-8-12 ,
    .col-6-12 ,
    .col-4-12 ,
    .col-3-12 { /* 1 */
        width: 576px; 
    }

    /******************** Les images ********************/
    .col-6-12 img ,
    .col-4-12 img ,
    .col-3-12 img { /* 1 */
        width: 576px; 
    }

    /******************** Les citations des images ********************/
    .absolute-6-12 { /* 1 */
        width: 576px;
        height: 278px;
        font-size: 3rem;
    }

    .absolute-4-12 ,
    .absolute-3-12 { /* 1 */
        width: 576px;
        height: 576px;
        font-size: 3rem;
    }

    /******************** Conteneur texte ********************/
    .container-text-9-12 ,
    .container-text-8-12 ,
    .container-text-6-12 { /* 1 */
        width: 576px;
        height: 576px;
    }

    .text {
        font-size: 1.5rem;
    }

}

/******************** Largeur maximale 576px ********************/
@media screen and (max-width: 576px) {

    /******************** Les conteneurs ********************/
    header, main, footer {
        max-width: 400px; /* largeur totale du contenu 400px */
        margin: 0 auto; /* Pour centrer */
    }

    /******************** Titre des pages ********************/
    h2 {
        font-size: 40px;
    }

    /******************** Citations ********************/
    .my-message,
    .my-quote {
        font-size: 1.5rem;
    }

    /******************** main couleurs ********************/
    .value {
        height: 400px
    }

    .position {
        top: 130px;
        left: -130px;
        font-size: 6rem;
        width: 400px; 
    }

    /******************** Les conteneurs ********************/
    .col-12-12 ,
    .col-9-12 ,
    .col-8-12 ,
    .col-6-12 ,
    .col-4-12 ,
    .col-3-12 { /* 1 */
        width: 400px;
    }

    /******************** Les images ********************/
    .col-6-12 img ,
    .col-4-12 img ,
    .col-3-12 img { /* 1 */
        width: 400px;
    }

    /******************** Les citations des images ********************/
    .absolute-6-12 { /* 1 */
        width: 400px;
        height: 200px;
        font-size: 2rem;
    }

    .absolute-4-12 ,
    .absolute-3-12 { /* 1 */
        width: 400px;
        height: 400px;
        font-size: 2rem;
    }

    /******************** Conteneur texte ********************/
    .container-text-9-12 ,
    .container-text-8-12 ,
    .container-text-6-12 { /* 1 */
        width: 400px;
        height: 400px;
    }

    .text {
        font-size: 1.1rem;
    }

    /******************** footer ********************/
    footer .information p {
        font-size: 1.2rem;
    }
}