/* Importation des polices */
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@700&family=Fira+Code&display=swap');


:root {
    --red3: #E2001A;
    --red1: #AA0014;
    --red2: #55000A;
}

body, html {
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: white;
    margin: 0;
    padding: 0;
}

p {
    font-size: 20px;
}

.contactmap{
    min-height: 60vh;
}

.parallax {
    background-image: url("./Images/paris.jpg");
    min-height: 80vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border-bottom: 5px solid grey;
}


#map { /*Openstreet map*/
    position: relative; /* position est définie pour activer le z-index */
    z-index: 1; /* Valeur basse pour que la carte soit en dessous de la barre de menu */
    height: 100%;
}


.title {
    padding-top: 2%;
    font-family: 'Fira Sans', sans-serif;
    font-size: 50px;
    text-align: center;
    margin: 10px 10px;
    text-decoration: underline var(--red3);
}


/* Style pour les paragraphes */
.paragraph {
    font-family: 'Fira Sans', monospace;
    font-size: 27px;
    font-weight: normal;
    margin: 0;
}

/* Style pour le paragraphe en rouge et gras */
.paragraph2 {
    font-family: 'Fira Sans', monospace;
    font-size: 16px;
    font-weight: bold;
    color: var(--red3));
    margin: 10px 0;
}

/* Styles pour la section info */
.info {
    color: black;
    padding: 20px;
    text-align: left;
}



.info h2 {
    font-family: 'Fira Sans', sans-serif;
    text-decoration: underline var(--red3);
}

.info h3 {
    font-family: 'Fira Sans', sans-serif;
}

p {
    font-family: 'Fira Sans', monospace;
}


ul {
    font-family: 'Fira Sans', sans-serif;
}

/* Header par Mathéo Thomas */
.header {
    position: fixed; /* Fixe le header en haut de la page */
    top: 0; /* Le place en haut de la page */
    width: 100%;
    background-color: black;
    font-weight: bold;
    z-index: 100; /* Assure que le header reste au-dessus des autres éléments */
    border-bottom: 5px solid var(--red3); /* Barre de démarcation grise */
    display: flex;
    flex-direction: column; /* Place les éléments les uns en dessous des autres */
}


.contact-bar {
    background-color: black;
    color: white;
    text-align: right;
    font-size: 14px;

    padding: 5px 5%;
    box-sizing: border-box; /* Empêche le dépassement en incluant le padding dans la largeur */
    width: 100%; /* Garde la largeur à 100% mais sans dépasser grâce à box-sizing */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 5%;
}

.header a {
    color: white;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-size: 18px;
    line-height: 25px;
    border-radius: 4px;
}

.bouton:after {
    background: none repeat scroll 0 0 transparent;
    bottom: 0;
    content: "";
    display: block;
    height: 2px;
    left: 50%;
    background: white;
    transition: width 0.3s ease 0s, left 0.3s ease 0s;
    width: 0;
}

.bouton:hover:after {
    width: 100%;
    left: 0;
}

.header a.active {
    background-color: #abcdce;
    color: black;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px; /* Add spacing between links */
}

.img-header {
    max-height: 50px; /* Adjust according to your logo size */
    object-fit: contain;
}

.contact{
    background-color: #E2001A;
    color : white;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-size: 18px;
    line-height: 25px;
    border-radius: 4px;

}

.contact:hover{
    background: dimgrey;
}

.img-column {
    height: 100%;
    width: 100%;
    object-fit: contain;
    border-radius:10%;
    overflow:hidden;
    border: 2px solid black;
}

.bloc {
    background-color: white;
    margin: 0 60px 0 60px;
}

.column_container {
    margin: 20px 0 20px 0;
    display: table;
    justify-content: space-evenly; /* Centre les colonnes horizontalement */
    width: 100%;
    height: 100%;
    grid-column-start: auto;
    /*gap: 20px; /* Espacement entre les colonnes */
}

/* Utiliser pour les doubles colonnes*/
#wrapper {
    justify-content: center;
    background-color: darkgrey;
}

#column_container {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    /*margin: 2% auto;*/

}

#map {
    position: relative; /* position est définie pour activer le z-index */
    z-index: 1; /* Valeur basse pour que la carte soit en dessous de la barre de menu */
    height: 100%;
    min-height: 50vh;
}

#column {
    width: 45%;
    padding: 10px;
    font-size : 18px;
}

#rightcolumn {
    border: 1px solid #ccc;
}

.column {
    display: table-cell;
    width: 60%;
    padding: 10px 10px;
    font-size : 18px;
    text-align: center;
}

.column h3 {
    text-decoration: underline var(--red3);
}
.column-image{
    border: 2px solid red;
    display: table-cell;
    text-align: center;
    width: 20%;
}

.column-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}


figure {
    display: flex;
}

.cadre-image {
    min-height: 40vh;
    min-width:40vh;
    max-height: 40vh;
    max-width:40vh;
}

figure img{
    height: 100%;
    width:  100%;
    object-fit: cover;

}
figcaption {
    margin: 20px 60px 0 60px;*
    width: 100%;
}

.image-left,
.image-right {
    border: 1px solid #ccc;
    padding: 10px;
    margin: 20px 0 20px 0;
    text-align: center;
    background-color: #f9f9f9;
    scroll-margin-top: 150px;
    margin: 20px 0 20px 0;
}

.image-left {
    flex-direction: row-reverse;
}

.image-right {
    flex-direction: row;

}



.container-grouped,
.container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px; /* Espacement entre les blocs */
    padding: 20px 0px 20px 0px;
}

.container-grouped {
    justify-content: center;
    gap: 40px;
}


.block {
    border: 1px solid #ccc;
    padding: 10px;
    margin: 20px 0 20px 0;
    text-align: center;
    box-sizing: border-box;
    background-color: #f9f9f9;
    /*height: 400px; /* Hauteur égale pour chaque bloc */
    scroll-margin-top: 150px;
}


.block h3 {
    margin: 10px 0;
}

.block p {
    flex-grow: 1;
}


.footer {
    display: flex;
    justify-content: space-between;
    background-color: black;
    padding: 3vh 40vh;
    box-sizing: border-box;
    color: white;
    margin: 20px 0 0 0;
}

/* Style pour chaque colonne */
.footer-column {
    flex: 1; /* Chaque colonne prend une largeur égale */
    margin: 0 20px; /* Espacement entre les colonnes */
    text-align: left; /* Centrer le texte */
    line-height: 150%;
}

/* Style pour les titres */
.footer-title {
    margin: 0;
    padding: 10px 0;
    font-size: 20px;
    position: relative;
}

/* Barre au-dessus et en-dessous du titre */
.footer-title::before,
.footer-title::after {
    content: "";
    display: block;
    height: 1px;
    background-color: #5B646B; /* Couleur de la barre */
    position: absolute;
    left: 0;
    right: 0;
}

.footer-title::before {
    top: 0; /* Barre au-dessus du titre */
}

.footer-title::after {
    bottom: 0; /* Barre en-dessous du titre */
}

/* Style pour le texte */
.footer-text {
    margin: 10px 0;
    font-size: 14px;
}


.copyright {
    background-color: dimgrey; /* Fond gris-bleu pour le copyright */
    color: white; /* Texte en blanc */
    text-align: center; /* Centrer le texte */
    font-size: 80%;
    padding: 10px 0; /* Espacement vertical */
    width: 100%; /* Largeur complète du conteneur */

}

.footer-text a {
    color: white; /* Lien en blanc */
    text-decoration: none; /* Enlève le soulignement */
}

.footer-text a:hover {
    color: #ccc; /* Couleur du lien au survol (facultatif) */
}

.prewiev_column {
    width: 25%;
}

.box {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.box:hover {
    transform: scale(1.05); /* Grandit la boîte de 5% lorsqu'on la survole */
}

.box img {
    width: 100%;
    height: 200px; /* Taille fixe des images */
    object-fit: cover;
    margin: 0px 0px 5px 0px;

    transition: filter 0.3s ease, border 0.6s ease;
}

.box:hover img {
    filter: grayscale(100%);
}

.box:hover .title-bar {
    background-color : red;
}

.title-bar {
    background-color: dimgrey;
    color: white;
}

.title-bar h2{
    padding: 3px 0px 3px 0px;
    margin: 0;
    text-align: center;
}

.title-bar h2 {
    font-size: 1.2rem;
}


/*Supprimer le sourlignage des liens*/
a:link {
    text-decoration: none;
}
a:visited {
    text-decoration: none;
}
a:hover {
    text-decoration: none;
}
a:active {
    text-decoration: none;
}

/* Version avec 5 colonnes */
.gallery-5-columns {
    display: grid;                      /* Utilise la disposition en grille CSS */
    grid-template-columns: repeat(5, 1fr); /* Crée exactement 5 colonnes de taille égale */
    grid-auto-rows: 200px;             /* Chaque rangée fait 200px de haut */
    grid-gap: 1rem;                    /* Espace de 1rem (16px) entre les éléments */
    padding: 1rem;                     /* Espace autour de la grille */
    max-width: 1200px;                 /* Largeur maximale de la galerie */
    margin: 0 auto;                    /* Centre la galerie horizontalement */
}

/* Version avec 3 colonnes */
.gallery-3-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    grid-gap: 1rem;
    padding: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Styles communs pour les éléments de la galerie */
.gallery-item {
    position: relative;                /* Permet le positionnement des éléments enfants */
    overflow: hidden;                  /* Cache tout contenu qui déborde */
    border-radius: 8px;               /* Coins arrondis */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Ombre légère */
    transition: transform 0.3s ease;   /* Animation douce au survol */
}

.gallery-item:hover {
    transform: scale(1.05);           /* Agrandit légèrement l'image au survol */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Ombre plus prononcée au survol */
}

.gallery-item img {
    width: 100%;                      /* L'image prend toute la largeur */
    height: 100%;                     /* L'image prend toute la hauteur */
    object-fit: cover;                /* L'image couvre tout l'espace sans déformation */
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .gallery-5-columns,
    .gallery-3-columns {
        grid-template-columns: repeat(2, 1fr); /* Passe à 2 colonnes sur mobile */
        grid-auto-rows: 150px;            /* Réduit la hauteur sur mobile */
    }
}

/* Pour très petits écrans */
@media (max-width: 480px) {
    .gallery-5-columns,
    .gallery-3-columns {
        grid-template-columns: 1fr;    /* Une seule colonne */
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pour les grandes images */
.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Pour les images moyennes */
.gallery-item.medium {
    grid-row: span 2;
}
