/* Import Lato depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;600;700&display=swap');

/* ------------------------------- */
/* BASE STYLES                      */
/* ------------------------------- */

html {
  height: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  font-size: 100%;
  font-family: 'Lato', Calibri, sans-serif;
  font-weight: 300; /* Light par défaut */
  background-color: white;
  color: black;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

.standard{
  margin-bottom: 2em;
  margin-top :0;
  white-space: pre-line;
  padding: 0;
}

h1 {
  /*color: rgb(198,131,70);*/
  color: rgb(133,112,83);
  text-align: center;
  font-weight: 400; /* Regular pour les titres */
}


h2 {
  font-size: 1rem;
  text-align: center;
  padding: 0.1rem;
  margin: 0;
  color: rgb(137,137,137);
  font-variant: small-caps;
  font-weight: 300; /* Light */
}

h3 {
  font-size: 1.2rem;
  text-align: center;
  color: black;
  margin: auto;
  padding: 0.5rem;
  font-weight: 400; /* Regular */
}

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

.col-titre {
  display: flex;
  align-items: flex-start;   /* titre en haut */
  padding-top: 0;
  padding-right: 1.5em;
  /*background-color: rgba(133,112,83,0.08);*/
  border-right: 2px solid rgb(133,112,83);
}

.col-titre h1 {
  margin: 0;
}


.bloc-avec-titre img {
  width: 32%;
  min-width: 250px;
  max-width: 350px;
  height: auto;
  flex-shrink: 0;
}

.bloc-avec-titre .standard {
  margin: 0;
  margin-top: 0;
  text-align: justify;
  font-weight: 300; /* Light */
  font-size: 1rem;
  line-height: 1.5;
}



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

.bloc-texte {
  flex: 1;
  text-align: justify;
  max-width: 100%;
  font-weight: 300; /* Light */
}

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

.bloc-image-mobile {
  display: none;
}

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

/* ------------------------------- */
/* TITRES - HIÉRARCHIE HARMONISÉE  */
/* ------------------------------- */
.titre {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 2.5rem;
  font-weight: 600; /* Regular */
  letter-spacing: 0.3em;
  margin-right: 1em;
  /*white-space: nowrap;*/
  position: relative;
  /*align-self: center;*/
  color: rgb(133,112,83);
  text-align: right;
}

.titre2 {
  font-size: 2rem;
  font-weight: 400; /* Regular */
  letter-spacing: 0.2em;
  margin: 0.2em auto 1em;
  white-space: nowrap;
  position: relative;
  align-self: center;
  text-align: center;
  padding: 0.2em 1em 0.2em 1em;
  color: rgb(133,112,83);
  /*color: rgb(255,255,255);*/
  border-bottom: 0.1rem solid rgb(133,112,83);
  /*border-top: 0.1rem solid rgb(133,112,83);*/
  
}


.titre4 {
  font-size: 2.5rem;
  font-weight: 700; /* Regular */
  letter-spacing: 0.3em;
  white-space: nowrap;
  text-align: left;
  position:relative;
  align-self: center;
  padding: 0;
  cursor: pointer;
  max-width:50%;
  margin: 0.8em auto;
  margin-top: 1.5em;
}

.titre3 {
  font-size: 2.5rem;
  font-weight: 700; /* Regular */
  letter-spacing: 0.3em;
  padding: 0 0 0 0;
  text-align: left;
}


.titre5 {
  font-size: 2rem;
  font-weight: 500; /* Regular */
  letter-spacing: 0.3em;
  white-space: nowrap;
  text-align: left;
  position:relative;
  align-self: center;
  padding: 0;
  margin : 0;
}

/* ------------------------------- */
/* TABLEAUX                        */
/* ------------------------------- */
.bloc-avec-titre-page {
  width: 50%;
  margin: 2em auto;
  gap: 1em;
  display: flex;
  flex-direction: column;
  height:auto;
}

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

.bloc-avec-titre-page .titre3 {
  font-size: 1.5rem;
  font-weight: 400; /* Regular */
  letter-spacing: 0.2em;
  margin-bottom: 0.2em;
  text-align: left;
  widht:50%;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 0;
  -webkit-overflow-scrolling: touch;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  font-weight: 300; /* Light */
  text-align: left;
  min-width: 600px;
  padding: 0;
}

.custom-table td {
  border-block: 1px solid rgb(133,112,83);
  padding: 0.2em 0 0.2em 0;
  text-align: left;
  color: black;
  white-space: nowrap;
  border-top: 0;
}

.custom-table tr:hover td {
  background-color: rgba(133,112,83,0.1);
}

.tabartiste {
  font-weight: 600 !important; /* Semi-bold pour contraste */
  color: rgb(133,112,83) !important;
  font-size: 1.5rem !important;
}

/* ------------------------------- */
/* TEXTE ACCUEIL                    */
/* ------------------------------- */
.texte-accueil {
  text-align: center;
  width: 90%;
  margin: auto;
  margin-top: 2em;
  margin-bottom: 1em;
  font-size: 1.3rem;
  font-variant: small-caps;
  font-style: italic;
  letter-spacing: 0.05em;
  line-height: 1.8;
  font-weight: 400; /* Light */
}

/* ------------------------------- */
/* 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: 33.75vh;
  transition: height 0.01s linear, opacity 1s linear;
}

.liseret {
  height: 4px;
  background-color: rgb(133,112,83);
  margin-bottom: 0.2em;
}

nav {
  font-variant: small-caps;
  font-size: 1.1rem;
  color: rgb(133,112,83);
  letter-spacing: 0.3em;
  font-weight: 400; /* Regular */
  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(133,112,83);
}

.hamburger {
  display: none;
  position: fixed;
  border-radius: 3px;
  width: 40px;
  height: 40px;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  line-height: 1;
  color: rgba(255,255,255,0.6);
  background: rgba(133,112,83,0.6);
  z-index: 9999;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hamburger.active {
  background: rgba(133,112,83,0.6);
  color: rgba(255,255,255,0.6);
}

.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;
  font-weight: 300; /* Light */
  text-decoration: none;
}

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

.reseaux-section {
  margin-top: 30px;
  text-align: left;
}

.reseaux-section h3 {
  font-family: 'Lato', sans-serif;
  font-size: 22px;
  font-weight: 400; /* Regular */
  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: 2rem;
  font-weight: 400; /* Regular */
  letter-spacing: 0.3em;
  margin: 0.5em auto;
  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;
  font-weight: 300; /* Light */
}

.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;
}

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

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

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

.masonry-item.size-small img,
.masonry-item.size-small iframe {
  min-height: 350px;
}

.masonry-item.size-medium img,
.masonry-item.size-medium iframe {
  min-height: 500px;
}

.masonry-item.size-large img,
.masonry-item.size-large iframe {
  min-height: 650px;
}

.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 {
  flex-shrink: 0;
  font-size: 0.9rem !important;
  font-weight: 300;
  text-align: center;
  color: white;
  margin-top: auto; /* Pousse vers le bas */
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  background-color: rgb(133,112,83);
  display: inline-block;
}

.lienpied {
 display: inline-block;
 color: white;
}




/* ------------------------------- */
/* RESPONSIVE LAPTOP / PETITS ÉCRANS */
/* ------------------------------- */
@media (min-width: 769px) and (max-width: 1024px) {
  
  
  .bloc-avec-titre .standard {
    font-size: 0.95rem;
  }
  
  
  .col-titre {
  border-bottom: 2px solid rgb(133,112,83);
  border-right: none;
}
  

.bloc-avec-titre {
    flex-direction: column;
    width: 90%;
    gap: 10px;
    padding: 1.5em 0;
    text-align: center;
  }

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

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

  .contenu-presentation {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1em;
  }

  .contenu-presentation img {
    width: 50%;
    max-width: 350px;
    margin: 0 auto 1.5em;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
  }

  .contenu-presentation .standard {
    width: 100%;
    text-align: justify;
    line-height: 1.65;
  }

  .bloc-image img {
    max-width: 100%;
    width: 100%;
  }

}


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

  .logo {
    height: 15vh !important;
    transition: none !important;
  }
  
  body {
    min-height: 100vh;
    min-height: 100dvh; /* dvh = dynamic viewport height, mieux pour mobile */
  }
  
  main {  
   padding-top: 0; 
   flex: 1 0 auto; 
   min-height: auto;
  }
  
  
  .col-titre {
  border-bottom: 2px solid rgb(133,112,83);
  border-right: none;
  margin-bottom: 0.5em;
}

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

  .tabartiste {
    font-size: 1.1rem !important;
    font-weight: 600;
    color: rgb(133,112,83);
  }

  .menu-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

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

  .titre2 {
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    margin: 0em auto;
  }

   .titre4 {
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    text-align: center;
    max-width: 90%;
    margon-bottom: 0.2rem;
  }
  
  .titre5 {
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    text-align: left;
    max-width: 90%;
    margon-bottom: 0.2rem;
  }

  .titre3 {
    letter-spacing: 0.15em;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
  }

  h3 {
    font-size: 1rem;
  }

  .bloc-avec-titre {
    flex-direction: column;
    width: 90%;
    gap: 10px;
    padding: 1.5em 0;
    text-align: center;
  }

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

  .bloc-avec-titre-page .titre3 {
    letter-spacing: 0.15em;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
  }

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

  .bloc {
    width: 80%;
    max-width: none;
    flex-direction: column;
    text-align: center;
    margin: 1.5em auto;
  }

  .bloc-texte {
    order: 2;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    text-align: justify;
  }

  .bloc-image-mobile {
    order: 1;
    width: 100%;
    max-width: none;
    margin: 1em auto;
    display: block;
  }

  .bloc-image-mobile img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }

  .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.9rem;
    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);
  }

  #piedpage {
    margin-top: auto;
    margin-bottom: 0;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
  }

}

/* ------------------------------- */
/* BOUTON SCROLL TO TOP             */
/* ------------------------------- */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: rgba(133,112,83,0.6);
  color: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* Responsive mobile */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 2rem;
    line-height: 1;
    padding: 0;
  }
}


/* ------------------------------- */
/* INDEX – TEXTE QUI ENTOURE IMAGE */
/* ------------------------------- */

@media (min-width: 769px) {

  .contenu-presentation {
    display: block;
    margin-top: 1em;
  }


  .contenu-presentation .standard::first-letter {
    float: left;
    font-size: 4.2rem;
    line-height: 0.9;
    padding-right: 0.15em;
    padding-top: 0.1em;
    font-weight: 700;
    color: rgb(133,112,83);
  }

  .contenu-presentation img {
    float: left;
    width: 32%;
    max-width: 350px;
    margin: 0 2.5em 1.2em 1em;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
  }

  .contenu-presentation .standard {
    line-height: 1.65;
    letter-spacing: 0.01em;
  }

  .contenu-presentation::after {
    content: "";
    display: block;
    clear: both;
  }

}