/* CUSTOM CSS*/
@font-face {
    font-family: 'Large Italic';
    src: url(webfonts/Large-Italic.woff)
}

@font-face {
    font-family: 'Large Roman';
    src: url(webfonts/Large-Roman.woff)
}

@font-face {
    font-family: 'Baikal Medium';
    src: url(webfonts/Baikal-Medium.woff2)
}

@font-face {
    font-family: 'DaVinci Regular';
    src: url(webfonts/TRJNDaVinci-Display.woff)
}

@font-face {
    font-family: 'DaVinci Italic';
    src: url(webfonts/TRJNDaVinciItalic-Display.woff)
}

.site-info {
    font-family: DaVinci Regular;
}

.site {
    margin: 1rem;
}

body{
	background-color: white;
	color: black;
}

a,
a:visited {
    text-decoration: none;
    color: black;
}

/* TYPOS */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'DaVinci Regular';
    font-weight: normal;
}

h1 {
    font-size: clamp(3rem, 3rem + 5vw, 8rem);
    line-height: 1;
    color: black;
    text-align: center;
}

.home .entry-title {
    display: none;
}

/* STRUCTURE */
.site-header {
    background-color: transparent;
}

.site-footer{
    background-color: white;
    color: black;
}

.site-header,
.site-main,
.site-footer {
    padding: clamp(0.2rem, 0.2rem + 0.8vw, 1rem);
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: black;
    z-index: 1000;
    margin-bottom: 0;
}

/* .home .site-header {
    position: fixed;
    width: calc(100% - 6rem);
} */

.main-navigation {
    font-family: DaVinci Regular;
    font-size: clamp(1.2rem, 1.2rem + 0.8vw, 2rem);
    background-color: transparent;
    color: white;
    width: 100%;
    justify-content: space-between;
}

.main-navigation .menu-toggle {
    display: none;
}

.main-navigation li:first-of-type{
    opacity: 0;
}

.site-description {
    display: none;
}

/* HEADER BRANDING */
.site-title {
    display: none;
}

.site-branding {
    position: absolute;
    display: flex;
    align-items: center;
}

.site-branding img {
    margin-top: 1rem;
    width: clamp(2rem, 2rem + 5vw, 7rem);
}

/* HEADER NAVIGATION */
.main-navigation ul {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.main-navigation ul li a {
    display: block;
    padding: 0.5em 1em;
}

.main-navigation li a {
    display: inline-block;
    min-width: clamp(0rem, 0rem + 12.5vw, 12.5rem); /* ajuste selon "Projets" / "Contact" */
    text-align: center;
}

.main-navigation li a:hover {
    font-family: DaVinci Italic;
}



/* PROJETS */
/* GRILLE DE PROJETS */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.archive-grid article {
    width: 100%;
}

.archive-grid img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* TYPO EN DESSOUS DES IMAGES*/
.archive-meta {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 0;
    line-height: 1.2;
}

.archive-meta h3,
.archive-meta .post-subcategories a {
    font-size: 1rem;
    align-items: center;
}

.archive-title {
    font-family: Baikal Medium;
    margin: 0;
}

.archive-title:hover {
    text-decoration: underline;
}

.post-subcategories ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

/* STYLE DE LA SOUS-CATEGORIE SOUS LES IMAGES DES PROJETS */
.post-subcategories a {
    font-family: Baikal Medium;
    text-decoration: none;
}

.post-subcategories a:hover {
    text-decoration: underline;
}

.archive-grid img {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
    justify-content: space-between;
}

/* TITRE DE LA PAGE D'UN PROJET STICKY */
.single .entry-header h1{
    font-family: DaVinci Regular;
    font-size: clamp(2rem, 2rem + 3vw, 5rem);
    text-transform: none;
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.single .entry-header {
    position: sticky;
    top: 5rem;
} 

 .single p{
    padding-left: clamp(0rem, 0rem + 10vw, 10rem);
    padding-right: clamp(0rem, 0rem + 10vw, 10rem);
    font-family: Baikal Medium;
    font-size: clamp(0.6rem, 0.6rem + 0.9vw, 1.5rem);
    text-align: center;
    line-height: 1.2;
}

/* HOME PAGE, LISTE DES DERNIERS TRAVAUX */
.projects-list {
    padding: 0;
    font-family: DaVinci Regular;
    font-size: clamp(2rem, 2rem + 6vw, 8rem);
    line-height: 1.1cap;
    text-align: center;
    margin: 0;
    margin-top: 5rem;
}

.projects-list li a:hover{
    font-family: DaVinci Italic;
}

.projects-list li a {
    display: inline-block;
    flex-direction: column;
    text-align: center;
}

.projects-list li a img {
    pointer-events: none;
    display: block;
    width: auto;
    height: auto;
    max-width: 40vh;
    opacity: 0;
    position: fixed;
    left: 50%;
    top:50%;
    transform: translate(-50%, -50%);
}

.projects-list li a:hover img {
    opacity: 1;
}

.projects-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* VIDEO HOME PAGE */
.video-home {
    max-height: 80vh;
}

.video-home video {
    max-height: 75vh;
}

/* TYPE DE PROJET STICKY */
.category-title-group {
    font-family: DaVinci Italic;
    text-align: center;
    font-size: clamp(2rem, 2rem + 3vw, 5rem);
    line-height: 0.7;
    margin-bottom: 5rem;
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .archive-meta {
    display: block;
  }

  .archive-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
  }

  .projects-list {
    line-height: 1.1cap;
  }

  /* Cache l'image desktop sur mobile */
  .modal-image-desktop {
    display: none !important;
  }

  /* Affiche l'image mobile sur mobile */
  .modal-image-mobile {
    display: block !important;
    width: 150%;
    height: auto;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
  }
 /* RESPONSIVE EN HAUT */ }




/* Cache l'image mobile par défaut (sur desktop) */
.modal-image-mobile {
    position: fixed;
    transform: translate(-50%, -50%);
    display: none;
    width: 120%;
    max-width: none;
}

/* Affiche l'image desktop par défaut (sur desktop) */
.modal-image-desktop {
    display: block;
    width: 100%;
    height: auto;
}

.sidebar-modal {
    width: 75%;
    position: fixed;
    top: 50%;
    left: -5000px;
    z-index: 2000;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.sidebar-modal.visible {
    left: 50%;
    opacity: 1;
}

.modal-close {
    display: none;
}

.modal-center-text {
    padding-left: clamp(0.1rem, 0.1rem + 11.9vw, 12rem);
    padding-right: clamp(0.1rem, 0.1rem + 11.9vw, 12rem);
    font-family: Baikal Medium;
    line-height: 1.1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2001;
    color: white;
    font-size: clamp(0.5rem, 0.5rem + 0.7vw, 1.2rem);
    text-align: center;
    width: 100%;
}

/* .modal-center-text a {
    color: white;
    text-decoration: underline;
} */

.modal-center-title {
    margin-top: -2rem;
    font-family: DaVinci Regular;
    font-size: clamp(0.7rem, 0.7rem + 2.3vw, 3rem);
    line-height: 1;
    margin-bottom: clamp(-0.1rem, -0.1rem + -0.7vw, -0.8rem);
}

.modal-center-accroche {
    font-family: DaVinci Italic;
    font-size: clamp(0.7rem, 0.7rem + 2.3vw, 3rem);
    line-height: 1;
    margin-bottom: clamp(-0.1rem, -0.1rem + -0.7vw, -0.8rem);
}

.modal-center-text a {
    color: white;
    text-decoration: none;
}

.underline {
    text-decoration: none;
}

.underline:hover {
    text-decoration: underline;
}