/* ------------------------------ */
/* RESET DE BASE                  */
/* ------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
} */

body {
    font-family: 'Source Sans Pro', Arial, sans-serif;
    color: #333;
    background-color: #fff;
}

/* ------------------------------ */
/* SIDEBAR (MENU VERTICAL)       */
/* ------------------------------ */
.sidebar {
    position: fixed;        /* La barre latérale reste fixe sur le côté */
    top: 0;
    left: 0;
    width: 250px;           /* Largeur de la barre latérale */
    height: 100%;
    background-color: #fff; /* Couleur de fond */
    border-right: 1px solid #ddd;
    padding: 20px;
    overflow-y: auto;       /* Au cas où le contenu serait long */
}

.brand {
    margin-bottom: 40px;
}

.brand h1 a { 
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    line-height: 1.2;
    color: #333;
    text-decoration: none;
    display: block; /* Ajout de display: block */
}

/* ------------------------------ */
/* STYLES LIENS                   */
/* ------------------------------ */
a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.2s ease;
}

a:visited {
    color: #666; /* Correction de la couleur des liens visités */
}

a:hover, a.active {
    color: #b22222; /* Couleur d'accent au survol ou lien actif */
}

/* ------------------------------ */
/* DROPDOWN MENU                  */
/* ------------------------------ */
/* Style pour le menu déroulant */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ------------------------------ */
/* CONTENU PRINCIPAL             */
/* ------------------------------ */
.main-content {
    margin-left: 250px; /* Laisser la place pour la sidebar */
    padding: 40px 20px;
    min-height: 100vh;
    flex: 1;
}

a:visited {
    text-decoration: none;
}

.main-content a:link {
    color: black;
    text-decoration: none;
}

/* ------------------------------ */
/* SECTION HERO (Accueil)        */
/* ------------------------------ */
.hero {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero img {
    width: 300px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.1em;
    line-height: 1.5;
}

/* ------------------------------ */
/* BIOGRAPHY PAGE                */
/* ------------------------------ */
.bio {
    max-width: 800px;
    margin: 0 auto;
}

.bio h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
}

.bio article {
    margin-bottom: 30px;
}

.bio h3 {
    color: #b22222;
    margin-bottom: 10px;
}

/* ------------------------------ */
/* GALLERY PAGE                  */
/* ------------------------------ */
.gallery {
    max-width: 1000px;
    margin: 0 auto;
    align-content: center;
}

.gallery h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 20px;
}

/* Grille avec images plus grandes */
.gallery .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 20px;
}

.gallery .grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.gallery .grid img:hover {
    transform: scale(1.03);
}

/* ------------------------------ */
/* CONTACT PAGE                  */
/* ------------------------------ */
.contact {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.contact a {
    color: #b22222;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.contact a:hover {
    color: #8b0000;
}

/* ------------------------------ */
/* MEDIA QUERIES (RESPONSIVE)    */
/* ------------------------------ */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    .main-content {
        margin-left: 200px;
    }
    .hero img {
        width: 250px;
    }
}

@media (max-width: 576px) {
    /* Sur petits écrans, on peut faire passer la sidebar en haut si on veut */
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    .main-content {
        margin-left: 0;
        margin-top: 0;
    }
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    justify-items: center;
    padding: 20px;
}

/* ------------------------------ */
/* Photos (Galerie)       */
/* ------------------------------ */

.photo-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.photo-item img:hover {
    transform: scale(1.05);
}

/* ------------------------------ */
/* Vidéos (Galerie)       */
/* ------------------------------ */

.video-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.video-gallery iframe {
    max-width: 100%;
    width: 560px;
    height: 315px;
}

.video-thumbnail {
    position: relative;
    display: inline-block;
}

.video-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; /* Taille du cercle */
    height: 80px;
    background-color: rgba(0, 0, 0, 0.6); /* Cercle semi-transparent */
    border-radius: 50%;
    z-index: 5; /* Ajustement du z-index */
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; /* Taille du triangle */
    height: 60px;
    background-color: red;
    clip-path: polygon(20% 0%, 100% 50%, 20% 100%);
    border-style: solid;
    opacity: 1;
    z-index: 6; /* Ajustement du z-index */
}

.video-thumbnail:hover::before {
    background-color: rgba(0, 0, 0, 0.8);
}

.video-thumbnail:hover::after {
    opacity: 1;
}

footer {
  text-align: center;
  padding: 10px;
  background: #f0f0f0;
  width: 100%;
}