/* ------------------------------- */
/* BASE STYLES                      */
/* ------------------------------- */
html, body {
  margin: 0;
  padding: 0;
  font-size: 100%;
  font-family: Calibri, sans serif;
  background-color: white;
  color: black;
}

h1 {
  color: rgb(198,131,70);
  text-align: center;
  margin: 0;
  padding: 0;
}

h2 {
  font-size: 1.1rem;
  text-align: center;
  padding: 0.1rem;
  margin: 0;
  color: rgb(137,137,137);
  font-variant: small-caps;
  font-weight: 50;
}

h3 {
  font-size: 1.5rem;
  text-align: center;
  color: black;
  /*font-variant: small-caps;*/
  margin: auto;
  padding: 0.5rem;
}

/* ------------------------------- */
/* BLOC AVEC TITRE (INDEX)         */
/* ------------------------------- */
.bloc-avec-titre {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  width: 80%;
  padding: 3em 0;
  gap: 1em;
}

.bloc-avec-titre img {
  width: 30%;
  max-width: 400px;
  height: auto;
}

.bloc-avec-titre .standard {
  margin: 0;
  text-align: justify;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
}

/* ------------------------------- */
/* BLOC PROJETS (TEXTE + IMAGE)    */
/* ------------------------------- */
.bloc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80%;
  margin: auto;
  gap: 2em;
}

.bloc-texte {
  flex: 1;
  text-align: justify;
  max-width: 70%;
}

.bloc-image {
  width: 30%;
  height: auto;
}

    /* masquer la version mobile de l'image sur desktop */
    .bloc-image-mobile {
        display: none;
    }

.bloc-image img {
  max-width: 400px;
  height: auto;
  align-self: center;
}

/* ------------------------------- */
/* TITRES                          */
/* ------------------------------- */
.titre {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 2.25em;
  /*font-variant: small-caps;*/
  letter-spacing: 0.4em;
  margin: auto 0;
  white-space: nowrap;
  position: relative;
  align-self: center;
  padding: 0;
}

.titre2 {
    font-size: 2.25em;
  /*font-variant: small-caps;*/
    letter-spacing: 0.4em;
    margin: auto;
    margin-top: 1em;
    margin-bottom: 2em;  /* <-- on augmente ici pour tous les cas */
    white-space: nowrap;
    position: relative;
    align-self: center;
    padding: 0;
}

.titre3 {
  font-size: 2em;
  /*font-variant: small-caps;*/
  letter-spacing: 0.4em;
  margin: 0;
  padding: 0;
  text-align: left;
}

/* ------------------------------- */
/* TABLEAUX                        */
/* ------------------------------- */

.bloc-avec-titre-page {
    width: 80%;          /* blocs centrés et largeur harmonisée */
    margin: 3em auto;    
    gap: 1.5em;          /* espace entre titre et contenu */
    display: flex;
    flex-direction: column;
}

.bloc-avec-titre-page .texte-container {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.bloc-avec-titre-page .titre3 {
    font-size: 1.8rem;
    letter-spacing: 0.2em;
  /*font-variant: small-caps;*/
    margin-bottom: 1em;
    text-align: left;
}


.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 1em;
  -webkit-overflow-scrolling: touch; /* pour iOS smooth scroll */
  padding: 0.5em;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  /*font-variant: small-caps;*/
  font-size: 1.5rem;
  text-align: left;
  min-width: 600px; /* permet scroll horizontal sur petits écrans */
}

.custom-table td {
  border-block: 1px solid rgb(198,131,70);
  padding: 1em;
  text-align: justify;
  color: black;
  white-space: nowrap;
}

.custom-table tr:hover td {
  background-color: rgba(198,131,70,0.1);
}

.tabartiste {
  font-weight: 600 !important;
  color: rgb(198,131,70) !important;
  font-size: 1rem !important;
  /*font-variant: small-caps;*/
}

/* ------------------------------- */
/* TEXTE ACCUEIL                    */
/* ------------------------------- */
.texte-accueil {
  text-align: center;
  width: 90%;
  margin: 2% auto;
  font-size: 1.75rem;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  line-height: 2.2;
  font-weight: 400;
}

/* ------------------------------- */
/* HEADER / MENU / HAMBURGER       */
/* ------------------------------- */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: white;
  z-index: 2;
}

.logo {
  display: block;
  width: 100%;
  object-fit: cover;
  height: 50%;
  transition: height 0.01s linear, opacity 1s linear;
}

.liseret {
  height: 2px;
  background-color: rgb(198,131,70);
  margin-bottom: 0.5em;
}

nav {
  font-variant: small-caps;
  font-size: 1.25rem;
  color: rgb(198,131,70);
  letter-spacing: 0.3em;
  font-weight: 400;
  text-align: center;
  margin: 0;
  padding: 0;
}

nav ul {
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline-block;
  margin: 0 1%;
  padding: 0.2%;
}

nav ul li:hover {
  text-decoration-line: underline;
}

a {
  text-decoration: none;
  color: rgb(198,131,70);
}

.hamburger {
  display: none;
  position: fixed;
  top: 15px;
  right: 15px;
  font-size: 2rem;
  color: rgb(198,131,70);
  z-index: 9999;
  cursor: pointer;
}

.menu-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

.menu-mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.menu-mobile-inner a {
  color: white;
  font-size: 1.8rem;
  font-variant: small-caps;
  text-decoration: none;
}

.menu-mobile-inner a:hover {
  text-decoration: underline;
}

/* Section Réseaux dans l’overlay */
.reseaux-section {
  margin-top: 30px;
  text-align: left;
}

.reseaux-section h3 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.reseaux-icones {
  display: flex;
  gap: 20px;
  align-items: center;
}

.reseaux-icones img {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease;
  filter: grayscale(1);
}

.reseaux-icones img:hover {
  transform: scale(1.15);
  filter: grayscale(0);
}

/* ------------------------------- */
/* OVERLAY CONTACT                  */
/* ------------------------------- */
.contact-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.contact-overlay .titre2 {
    font-size: 2.25em;
  /*font-variant: small-caps;*/
    letter-spacing: 0.4em;
    margin: auto;
    margin-top: 0.5em;
    margin-bottom: 0.5em;  /* <-- on augmente ici pour tous les cas */
    white-space: nowrap;
    position: relative;
    align-self: center;
    padding: 0;
}

.contact-overlay.active {
  display: flex;
}

.contact-box {
  background: rgba(255,255,255,0.9);
  color: black;
  padding: 2em;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  align-items: flex-start;
}

.close-contact {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  cursor: pointer;
}


/* ------------------------------- */
/* GALLERIE                   */
/* ------------------------------- */

.masonry {
    column-count: 4;
    column-gap: 15px;
    padding: 20px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1em;
    width: 100%;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
}

/* Images */
.masonry-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    min-height: 500px;
}

/* Videos */
.masonry-item iframe {
    width: 100%;
    transform: scale(1.07);
    min-height: 500px;
    display: block;
}

/* ----- BREAKPOINTS RESPONSIVE ----- */
@media (max-width: 1100px) {
    .masonry { column-count: 3; }
}
@media (max-width: 800px) {
    .masonry { column-count: 2; }
}
@media (max-width: 500px) {
    .masonry { column-count: 1; }
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img,
.lightbox-content iframe {
    width: 100%;
    height: auto;
    max-height: 90vh;
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
}

/* ------------------------------- */
/* PIED DE PAGE                     */
/* ------------------------------- */
#piedpage {
  font-size: 0.8rem !important;
  text-align: center;
  margin-top: 5%;
}

/* ------------------------------- */
/* RESPONSIVE                       */
/* ------------------------------- */
@media (max-width: 768px) {

  nav, .standard, .texte-accueil {
    font-size: 0.9rem;
  }

  .tabartiste {
    font-size: 1rem !important;
    font-weight: 600;
    color: rgb(198,131,70);
  }

  .menu-desktop {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .titre {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
    margin: 1rem 0;
  }

  .titre2 {
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
    margin-bottom: 1rem;
  }

  .titre3 {
    letter-spacing: 0.2rem;
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  h3 {
    font-size: 1rem;
  }

  /* Bloc index */
  .bloc-avec-titre {
    flex-direction: column;
    width: 90%;
    gap: 10px;
    padding: 0;
  }

  .bloc-avec-titre img {
    width: 50%;
    max-width: 400px;
    margin: 0 auto;
  }

    .bloc-avec-titre-page .titre3 {
     letter-spacing: 0.2rem;
     font-size: 1rem;
     margin-bottom: 0.75rem;
    }

    .bloc-avec-titre-page {
        width: 90%;
        gap: 1em;
    }


  /* Bloc projets */

    .bloc {
        width: 80%;           /* largeur harmonisée avec les autres pages */
        max-width: none;      /* enlever toute limite de largeur */
        flex-direction: column;
        text-align: center;
        margin: 0 auto;       /* centrer horizontalement */
    }


    .bloc-texte {
        order: 2;             /* texte après image */
        width: 100%;
        max-width: none;      /* ne pas limiter la largeur */
        margin: 0 auto;
        text-align: justify;
    }



    .bloc-image-mobile {
        order: 1;             /* image après titre */
        width: 100%;          /* occupe toute la largeur du bloc */
        max-width: none;      /* supprime la limite à 400px */
        margin: 1em auto;
        display: block;
    }

    .bloc-image-mobile img {
        width: 100%;          /* l’image remplit la largeur de son parent */
        height: auto;
        display: block;
    }



    /* masquer la version desktop de l'image sur mobile */
    .bloc-image {
        display: none;
    }

  .texte-container {
    flex-direction: column;
  }

  .table-wrapper {
    width:100%;
    overflow-x: auto;
    padding:0;
    padding-bottom:0.5em;
  }

    .custom-table {
        font-size: 0.95rem;
        width: max-content;
    }

  .custom-table td {
    padding: 0.5em;
  }


.reseaux-icones img {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease;
  filter: grayscale(0);
}

.reseaux-icones img:hover {
  transform: scale(1.15);
  filter: grayscale(0);
}

}
