/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

:root {
  /* Couleurs principales */
  --color-primary: #FFFFFF;
  --color-secondary: #AAB8C2;
  --color-tertiary: #000000;
  --color-accent: #0666FF;

  /* Typographie */
  --font-family-base: 'FHLecturisTest', sans-serif;
  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-md: 1rem;      /* 16px */
  --font-size-lg: 1.25rem;   /* 20px */
  --font-size-xl: 1.5rem;    /* 24px */

  /* Espacements */
  --spacing-xs: 0.25rem;     /* 4px */
  --spacing-sm: 0.5rem;      /* 8px */
  --spacing-md: 1rem;        /* 16px */
  --spacing-lg: 2rem;        /* 32px */
  --spacing-xl: 4rem;        /* 64px */

  /* Rayons de bordure */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
}

@font-face {
  font-family: 'FHLecturisTest';
  src: url('../import/_fonts/FHLecturisTest-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'FHLecturisTest';
  src: url('../import/_fonts/FHLecturisTest-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'FHLecturisTest';
  src: url('../import/_fonts/FHLecturisTest-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'RenaiSansArabic';
  src: url('../import/_fonts/RenaiSansArabic-Medium.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/*
   _____  _____  _____  __
  /  _/ |/ / _ \/ __/ |/_/
 _/ //    / // / _/_>  <  
/___/_/|_/____/___/_/|_|

*/

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-md);
  font-weight: 400;
  background-image: -o-radial-gradient(black 0.5px, transparent 0.5px);
  background-image: radial-gradient(black 0.5px, transparent 0.5px);
  background-size: 32px 32px;
  background-position: center;
  mix-blend-mode: difference;
}


h1{
  font-weight: bold;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  width: 25%;
  float: right;
  padding: 10px;
  padding-left: 20px;
}

.header__burger{
  display: none;
}

.header__responsive{
  display: none;
}

header {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-family: 'FHLecturisTest';
  position: sticky;
  padding-bottom: 5px;
  top: 5px;      
  z-index: 1000;       
  background-color: white;
  letter-spacing: 0.05em;
}

.header-link.active {
  font-weight: 600;
}

ul.header-list{
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 50%;
}

ul.header-about{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 25%;
  float: right;
}

li{
  padding: 5px;
  margin: 5px;
}

li:hover a{
  color: var(--color-accent);
}

li.infos{
  width: 100%;
  text-align: right;
  padding-right: 15px;
}

li.lang{
  border: none;
  list-style: none;
  text-align: right;
  padding-right: 0px;
  color: var(--color-tertiary);
}

a#index-link{
  color: var(--color-tertiary);
  text-decoration: none;
}

a#header-link:hover{
  color: #0600FF;
}

a.header-link{
  color: var(--color-tertiary);
  text-decoration: none;
}

a.header-link:hover{
  color: var(--color-accent);
  font-weight: 600;
}

a.about{
  color: var(--color-tertiary);
  text-decoration: none;
}

a.about:hover{
  color: var(--color-accent);
  font-weight: 600;
}

em{
  font-family: sans-serif;
  font-style: italic !important;
}

a.link-description{
  font-weight: bold;
  font-style: normal;
  color: black;
  text-decoration: none;
}

a.link-description:hover{
  color: var(--color-accent);
}

.container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  margin-top: 20px;
  width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
}

.image-project {
  width: calc((100% - 60px) / 4); /* 4 colonnes avec 3 gaps de 20px entre */
  max-height: 550px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  position: relative;
  -webkit-transition: opacity 0.5s ease;
  -o-transition: opacity 0.5s ease;
  transition: opacity 0.5s ease;
  opacity: 1;
  -ms-flex-negative: 0;
      flex-shrink: 0; /* Empêche la div de se rétrécir */
}

.image-project.hidden {
  opacity: 0;
  pointer-events: none;
}

.fixed-element {
  color: var(--color-accent);
  background-color: white;
  padding: 10px;
  width: 100%;
  font-family: sans-serif;
  position: absolute;
  bottom: 0px;
  left: 0px;
  opacity: 0;
  -webkit-transition: opacity 0.2s ease;
  -o-transition: opacity 0.2s ease;
  transition: opacity 0.2s ease;
  pointer-events: none; /* évite que la souris déclenche quoi que ce soit sur lui */
}

.image-project:hover .fixed-element {
  opacity: 1;
}

/*
   ___  ___  ____     _____________________
  / _ \/ _ \/ __ \__ / / __/ ___/_  __/ __/
 / ___/ , _/ /_/ / // / _// /__  / / _\ \  
/_/  /_/|_|\____/\___/___/\___/ /_/ /___/

*/

span.code{
  margin-right: 5%;
  font-weight: normal;
  mix-blend-mode: multiply;
  color: var(--color-tertiary);
}

.project-image {
  position: relative;
  display: inline-block;
  -webkit-filter: saturate(150%);
          filter: saturate(150%);
}

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

img.project-image:hover {
  -webkit-filter: none;
          filter: none;
  cursor: pointer;
}

.project-details {
  color: var(--color-tertiary);
  line-height: var(--spacing-md);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; /* permet l’alignement horizontal */
  max-width: 100%;
}

.detail-line {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: auto;
}

.column-01 {
  width: 35%;
}

.right-part{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 50%;
}

.column-02 {
  width: 50%;
}

.column-03 {
  width: 50%;
}

.label{
  width: 25%;
  color: var(--color-tertiary);
  font-size: var(--font-size-sm);
}

.value{
  color: var(--color-accent);
  font-size: var(--font-size-sm);
}

div.presentation-container{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  height: auto;
}

div.program-part{
  text-align: justify;
  font-size: var(--font-size-sm);
  color: var(--color-tertiary);
  font-family: sans-serif;
  width: 50%;
  padding: 20px;
  line-height: var(--spacing-md);
}

div.image-part {
  padding: 20px 20px 20px 0px;
  width: 65%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.image-part img {
  width: 100%;       /* s'ajuste à la largeur du parent */
  height: auto;      /* conserve le ratio naturel */
  display: block;    /* supprime l'espace blanc sous l'image */
  -o-object-fit: contain;
     object-fit: contain; /* ou cover selon ton besoin */
}

.logos-section{
  width: 100%;
  margin-top: 20px;
}

.logos-section img,
.logos-section svg {
  max-height: 40px;
  height: 40px;
  width: auto;
  padding: 10px 20px 0px 0px;
  -o-object-fit: contain;
     object-fit: contain;
  display: inline-block;
}

.image-grid {
  margin-top: -20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  padding: 20px;
  padding-right: 0px;
  gap: 20px;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start; /* évite étirement vertical */
  padding-bottom: 150px;
}

.images {
  max-width: calc(33.333% - 20px);
  width: auto; /* laisse la largeur naturelle */
  height: auto; /* garde le ratio */
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1; /* permet de remplir l’espace horizontal sans forcer */
  -ms-flex-negative: 1;
      flex-shrink: 1; /* autorise un léger rétrécissement si besoin */
  -ms-flex-preferred-size: auto;
      flex-basis: auto; /* taille de base selon contenu */
  display: block;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0px;
  width: 100%;
  z-index: 1000;
  background-color: white;
  font-family: sans-serif;
  color: var(--color-accent);
}

.project-details-columns {
  font-size: var(--font-size-sm);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  text-align: left;
  width: 100%;
}

.project-details-columns .column {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.column:nth-child(1) {
  padding-left: 20px;
  padding-top: 20px;
  width: 17.5%;
}

.column:nth-child(2) {
  width: 17.5%;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-right: 20px;
}

.column:nth-child(3) {
  width: 65%;
  padding-top: 20px;
  padding-bottom: 20px;
}

.project-details-columns strong {
  padding-right: 10px;
  font-family: sans-serif;
  color: var(--color-tertiary);
}

div.ref{
  color: var(--color-tertiary);
}



/*
   ___   ___  ____  __  ________
  / _ | / _ )/ __ \/ / / /_  __/
 / __ |/ _  / /_/ / /_/ / / /   
/_/ |_/____/\____/\____/ /_/

*/


h4{
  font-weight: bold;
}

span.arabic[lang="ar"] {
  font-family: 'RenaiSansArabic', sans-serif;
  direction: rtl;
}

span.bold{
  font-weight: bold;
}

span.arabic {
  font-family: 'RenaiSansArabic', !important;
  direction: rtl;
}

sup {
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
}


div.education-part{
  font-family: sans-serif;
  font-size: var(--font-size-sm);
  width: 50%;
  padding: 20px;
}

div.label-education{
  color: var(--color-tertiary);
  width: 25%;
}

div.value-education{
  width: 85%;
}




div.exhibition-part{
  font-family: sans-serif;
  font-size: var(--font-size-sm);
  width: 50%;
  padding: 20px;
}

div.label-exhibition{
  color: var(--color-tertiary);
  width: 25%;
}

div.label-exhibition-none{
  opacity: 0;
  width: 25%;
}

div.value-exhibition{
  width: 85%;
}



div.residencies-part{
  font-family: sans-serif;
  font-size: var(--font-size-sm);
  width: 50%;
  padding: 20px;
}

div.label-residencies{
  color: var(--color-tertiary);
  width: 25%;
}

div.label-residencies-none{
  opacity: 0;
  width: 25%;
}

div.value-residencies{
  width: 85%;
}



div.disctinctions-part{
  font-family: sans-serif;
  font-size: var(--font-size-sm);
  width: 50%;
  padding: 20px;
}

div.label-disctinctions{
  color: var(--color-tertiary);
  width: 25%;
}

div.label-disctinctions-none{
  opacity: 0;
  width: 25%;
}

div.value-disctinctions{
  width: 85%;
}



div.conferences-part{
  font-family: sans-serif;
  font-size: var(--font-size-sm);
  width: 50%;
  padding: 20px;
}

div.label-conferences{
  color: var(--color-tertiary);
  width: 25%;
}

div.label-conferences-none{
  opacity: 0;
  width: 25%;
}

div.value-conferences{
  width: 85%;
}



div.contact-part{
  font-family: sans-serif;
  font-size: var(--font-size-sm);
  line-height: var(--spacing-md);
  width: 50%;
  padding: 20px;
  padding-top: 0px;
}

.linkedin a,
.instagram a,
.contact a {
  color: var(--color-tertiary);
  text-decoration: none;
}

.linkedin a:hover,
.instagram a:hover,
.contact a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

p.phone{
  color: var(--color-tertiary) !important;
  text-decoration: none;
}

p.phone:hover{
  color: var(--color-accent) !important;
  text-decoration: none;
}

div.credits{
  margin-top: 50px;
  text-align: right;
  width: 100%;
  font-size: var(--font-size-sm);
  font-family: sans-serif !important;
}

div.center{
  padding: 0px 20px 20px 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: auto;
}

p.left{
  width: 50%;
  text-align: left;
}

p.right{
  width: 50%;
}

#web-link{
  color: var(--color-tertiary);
  text-decoration: none;
}

#web-link:hover{
  color: var(--color-accent);
  text-decoration: none;
}

/* 
    __  _____________  _______   _____    ____  __  ____________  ____  _______________
   /  |/  / ____/ __ \/  _/   | / ___/   / __ \/ / / / ____/ __ \/ __ \/  _/ ____/ ___/
  / /|_/ / __/ / / / // // /| | \__ \   / / / / / / / __/ / /_/ / /_/ // // __/  \__ \ 
 / /  / / /___/ /_/ // // ___ |___/ /  / /_/ / /_/ / /___/ _, _/ _, _// // /___ ___/ / 
/_/  /_/_____/_____/___/_/  |_/____/   \___\_\____/_____/_/ |_/_/ |_/___/_____//____/

*/

@media screen and (max-width: 768px) {

  /* Boutons burger et croix */
  .burger-icon,
  .close-icon {
    position: absolute;
    top: 0;
    right: 0;
  }

  .header__burger {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    cursor: pointer;
  }

  .close-icon {
    display: none;
    background-color: white;
    z-index: 1101;
  }

  /* États du menu */
  .menu-open .burger-icon {
    display: none;
  }

  .menu-open .close-icon {
    display: block;
  }

  nav.header__responsive {
    display: none;
    position: fixed;
    top: 5px;
    right: 0;
    padding: 20px 50px 20px 20px;
    width: 100%;
    height: auto;
    z-index: 1000;
    text-align: right;
  }

  .menu-open nav.header__responsive {
    display: block;
  }

  /* Cacher les listes */
  ul.header-list,
  ul.header-about {
    display: none;
  }

  /* Projets : une image par ligne */
  .image-project {
    width: 100%;
    max-width: 100%;
  }

  header { 
    z-index: 1000;
    height: 6em;     
    background-color: white;
  }

  /* Titres mobiles */
  h1 {
    width: 35%;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  /* Liens dans menu mobile */
  a.link-reponsive {
    display: block;
    color: var(--color-tertiary);
    text-decoration: none;
    line-height: 2px;
  }

  div.presentation-container{
  display: block;
  width: 100%;
  height: auto;
  }

  .image-part{
    width: 100% !important;
    padding: 20px !important;
  }

  .image-part img{
    width: 100% !important;
    padding-top: 0px;
    padding-bottom: 0px;
  }

  img.images{
    padding-bottom: 20px;
    padding-right: 20px !important;
    max-width: 95% !important;
  }

  video.images{
    padding-bottom: 20px;
    padding-right: 20px !important;
    max-width: 95% !important;
  }

  div.program-part{
  text-align: justify;
  padding: 0px;
  width: 100%;
  }

  p.presentation{
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    padding: 20px;
  }

  div.logos-section{
    width: 95% !important;
    margin-top: -5px;
    padding-left: 20px;
  }

  .project-details-columns {
    font-size: var(--font-size-sm);
    display: block;
    text-align: left;
    width: 100%;
  }

  .project-details-columns .column {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    margin-right: 25px;
    line-height: 1.5em;
  }

  .project-details-columns strong {
    padding-right: 10px;
    font-family: sans-serif;
    color: var(--color-tertiary);
  }

  .image-grid {
    display: block; /* ou flex/grid si besoin */
    width: 100%;
    padding-bottom: 150px;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
  }

  div.education-part,.exhibition-part,.residencies-part,.disctinctions-part,.conferences-part{
    width: 90vw !important; 
  }

  div.conferences-part{
    margin-bottom: 20px;
  }

  p.left{
  width: 45% !important;
  }

  p.right{
  width: 55% !important;
  }

  a.link-reponsive{
    line-height: 1.1em;
  }

  nav.header__responsive li{
    all: unset;
    list-style: none;
    line-height: 0.8em;
  }

  .column:nth-child(1) {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
  }

  .column:nth-child(2) {
    padding-bottom: 0px;
    padding-left: 20px;
    padding-top: 0px;
    width: 100%;
  }

  .column:nth-child(3) {
    padding-top: 0px;
    padding-left: 20px;
    width: 100%;
  }

  .image-project{
    display: block !important;
  }

}