/*--------------------------- BOX ---------------------------*/
.box {
    position: fixed;
    top: 50%;
    left: 2rem;
    width: 240px;
    height: 240px;
    mix-blend-mode: difference;
    transform: translate(0, -50%);
}


.box2 {
    position: fixed;
    top: 65%;
    left: 0;
    width: 240px;
    height: 240px;
    mix-blend-mode: difference;
    transform: translate(0, -50%);
}

.box,
.box2 {
    position: fixed;
    z-index: -1;
    pointer-events: none;
}

/*--------------------------- FONTS FAMILY ---------------------------*/

:root {
    --fs-sm: clamp(0.8rem, 0.17vi + 0.76rem, 0.89rem);
    --fs-base: clamp(1rem, 0.34vi + 0.91rem, 1.19rem);
    --fs-md: clamp(1.25rem, 0.61vi + 1.1rem, 1.58rem);
    --fs-lg: clamp(1.56rem, 1vi + 1.31rem, 2.11rem);
    --fs-xl: clamp(1.95rem, 1.56vi + 1.56rem, 2.81rem);
    --fs-xxl: clamp(2.44rem, 2.38vi + 1.85rem, 3.75rem);
    --fs-xxxl: clamp(3.05rem, 3.54vi + 2.17rem, 5rem);
}

@font-face {
    font-family: "ErotiqueAlternateTrial-Bold";
    src: url("Fonts/ErotiqueAlternateTrial-Bold.ttf");
}

@font-face {
    font-family: "NeueMetanaNext-SemiBold";
    src: url("Fonts/NeueMetanaNext-SemiBold.otf");
}

@font-face {
    font-family: "NeueMetanaNextOutline-Black";
    src: url("Fonts/NeueMetanaNextOutline-Black.otf");
}

@font-face {
    font-family: "Syne-Regular";
    src: url("Fonts/Syne-Regular.woff2") format("woff2"),
        url("Fonts/Syne-Regular.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Syne-Extra";
    src: url("Fonts/Syne-Extra.ttf");
}


h1 {
    font-family: "NeueMetanaNext-SemiBold";
    font-size: var(--fs-xl);
    color: #FF6200;
}

h3 {
    font-family: "ErotiqueAlternateTrial-Bold";
    font-size: 1em;
    color: #FF6200;
    padding-top: 100px;
    text-align: center;
}

h4 {
    font-family: "NeueMetanaNext-SemiBold";
    font-size: var(--fs-xxl);
    color: #000000;
    margin-top: 0%;
}

h6 {
    font-family: "NeueMetanaNext-SemiBold";
    font-size: var(--fs-sm);
    color: #FF6200;
}

p {
    font-family: "Syne-Regular";
    font-size: var(--fs-base);
}

a {
    font-family: Syne-Extra;
    font-size: var(--fs-sm);
}

/*--------------------------- MENU ---------------------------*/

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    /* hauteur du header */
    z-index: 1000;
}

main {
    margin-top: 70px;
    /* même taille que la hauteur du header */
}

header {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}

.logo {
    font-size: 28px;
    cursor: pointer;
    margin-top: 4rem;
    padding-left: 8rem;
}

.bold {
    font-family: Syne-Extra;
    color: #000000;
}

.italic {
    font-family: ErotiqueAlternateTrial-Bold;
    font-style: italic;
    font-size: 40px;
    color: #FF6200;
}

/*--------------------------- Menu à droite ---------------------------*/
nav {
    display: flex;
    gap: 40px;
    padding-right: 8vw;
    margin-top: 2vw;
}

.menu-btn {
    text-decoration: none;
    font-size: 1.1vw;
    position: relative;
    color: #FF6200;
}

html {
    scroll-behavior: smooth;
}

.menu-btn::after {
    content: "";
    width: 0;
    height: 2px;
    background: #590000;
    position: absolute;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

.menu-btn:hover::after {
    width: 100%;
}

/*--------------------------- COMPTE A REBOUR ---------------------------*/

.popupBlock {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    padding: clamp(40px, 10vw, 150px) 6vw clamp(10px, 4vw, 40px) 6vw;
    gap: clamp(10px, 3vw, 40px);
}

.countdown {
    font-family: "NeueMetanaNext-SemiBold";
    font-size: var(--fs-xxl);
    margin-top: clamp(10px, 4vw, 30px);
}

h6 {
    font-family: "NeueMetanaNext-SemiBold";
    font-size: var(--fs-xxl);
    margin-top: clamp(150px, 4vw, 40px);
    /* marge responsive */
    color: #000;
}

/*--------------------------- BODY ---------------------------*/
* {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
}

img {
    max-width: 100%;
}

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

section .content {
    flex: 0 1 auto;
}

figure {
    /* outline: 10px solid rgb(0, 0, 0); outline-offset: -12px; */
    border: 12px solid #000000;
}

figure {
    display: flex;
}

section figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: initial;
    object-position: center;
    max-height: 100vh;
    box-sizing: initial;
}

#apropos figure {
    min-height: 60vh;
    max-height: 80vh;
    height: 80vh;

    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
}

#apropos figure>div {
    position: relative;
}

#apropos figure img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 40% center;
}

/*--------------------------- INTRODUCTION ---------------------------*/

/* espace entre le menu et le contenu */
.contentblockIntro {
    display: flex;
    padding-left: 2rem;
    padding-right: 2rem;
    justify-content: center;
}


.contentblockIntro>div:first-of-type {
    flex: 0 1 30rem;
}

.contentblockIntro>div:last-of-type {
    flex: 1 0 30rem;
}

@media(max-width: 60rem) {
    .contentblockIntro {
        flex-direction: column;
    }

    .contentblockIntro>div {
        flex: 1 !important;
    }
}

.italictext {
    font-family: ErotiqueAlternateTrial-Bold;
    font-style: italic;
    font-size: var(--fs-xxxl);
    color: #FF6200;
}

/*--------------------------- COLONNES ---------------------------*/
.row {
    display: flex;
    gap: 1rem;
}

.row>* {
    flex: 1;
}

.content {
    padding: 1rem;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
li {
    max-width: 80ch;
}

img {
    max-height: 80vh;
}

section {
    max-width: 60rem;
    margin: auto;
}

.contentblock {
    display: flex;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    margin-top: 1vh;
}

.contentblock>div:first-of-type {
    flex: 0 1 30cm;
}

.contentblock>div:last-of-type {
    flex: 1 0 30rem;
}

@media(max-width: 60rem) {
    .contentblock {
        flex-direction: column;
    }

    .contentblock>div {
        flex: 1 !important;
    }
}

/*--------------------------- PROJETS ---------------------------*/
.project-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.project-modal.active {
    display: flex;
}

.modal-content {
    background: transparent;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-color: #000000 transparent;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    animation: modalFade 0.60s ease;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-gallery {
    display: grid;
    gap: 1.5rem;
    margin-top: 4rem;
}

.modal-gallery img {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
}

.modal-info {
    margin-top: 2rem;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #FF6200;
}

.modal-legend {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 2rem;
    color: #FF6200;
    
}

.modal-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #FF6200;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 0.5rem;
    font-size: 3.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #FF6200;
}


.art-projects {
    bottom: auto;
    width: 100%;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
    padding: 200px 60px 40px 60px;
}

.art-left {
    display: flex;
    align-items: flex;
    justify-content: center;
    pointer-events: none;
}

.art-vertical {
    font-family: "NeueMetanaNext-SemiBold";
    font-size: 250px;
    color: #FF6200;
    transform: rotate(270deg);
    line-height: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 20px;
    align-content: flex-end;
}

.project-card {
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.video-link {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    font-size: 14px;
    text-decoration: none;
    color: #000000;
    background-color: #FF6200;
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.video-link:hover {
    background-color: #000000;
    color: #FF6200;
}

.info {
    margin-top: 10px;
    font-size: 14px;
    font-family: "syne-regular", sans-serif;
    color: #222;
}

.info strong {
    font-weight: 700;
    font-size: 16px;
}


/*--------------------------- FOOTER ---------------------------*/
h2 {
    position: fixed;
    bottom: 2px;
    right: 2px;
    padding: 1rem;
    background-color: #4A1D01;
    color: #FF6200;
    font-family: "ErotiqueAlternateTrial-Bold";
    font-size: var(--fs-sm);
}

h5 {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 70px;
    font-family: "ErotiqueAlternateTrial-Bold";
    font-style: italic;
    color: #FF6200;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mail-btn {
    margin-top: 2rem;
    display: inline-block;
    padding: 6px 14px;
    font-size: 14px;
    font-style: normal;
    text-decoration: none;
    color: #FF6200;
    background-color: #000000;
    border-radius: 20px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.mail-btn:hover {
    background-color: #FF6200;
    color: #000000;
}



/*--------------------------- MEDIAS ---------------------------*/
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}













/* ========================= MOBILE (iPhone) FIXES ========================= */
@media (max-width: 768px) {

  /* Évite les débordements horizontaux */
  html, body { overflow-x: hidden; }

  /* Cache les logos fixes à gauche sur mobile (sinon ça gêne) */
  .box, .box2 { display: none; }

  /* ---------- HEADER / NAV ---------- */

  @media (max-width: 768px) {

      /* Grand espace entre le compte à rebours et l’intro */
      #accueil {
          margin-bottom: 140px;
          /* ajuste : 100–180px selon ton goût */
      }

  }

  
  header{
    height: auto;
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .logo{
    margin-top: 0;
    padding-left: 0;
    font-size: 22px;
    line-height: 1.1;
  }

  .italic{
    font-size: 28px;
  }

  nav{
    width: 100%;
    padding-right: 0;
    margin-top: 0;
    gap: 14px;
    flex-wrap: wrap;   /* permet de passer à la ligne */
  }

  .menu-btn{
    font-size: 16px;   /* remplace le 1.1vw (trop petit sur iPhone) */
  }

  /* Pour éviter que le contenu passe sous le header fixed */
  body{
    padding-top: 110px; /* ajuste si tu trouves trop/ pas assez */
  }

  /* ---------- SECTIONS / PADDINGS ---------- */
  section{
    min-height: auto;      /* sur mobile, 100vh peut être bizarre */
    max-width: 100%;
    margin: 0;
    padding: 0 16px;       /* respire sur les côtés */
  }

  figure{
    border-width: 8px;
  }

  /* Intro + content blocks : une colonne + gap */
  .contentblockIntro,
  .contentblock{
    padding-left: 0;
    padding-right: 0;
    gap: 12px;
  }

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

p {
    margin-top: 10px;
}

  /* ---------- PROJETS ---------- */
  .art-projects{
    grid-template-columns: 1fr; /* au lieu de 200px + 1fr */
    gap: 24px;
    padding: 120px 16px 40px 16px;
  }

  /* On enlève le grand "art." (sinon ça explose la mise en page) */
  .art-left{ display: none; }

  .projects-grid{
    gap: 18px;
  }

  .info{
    font-size: 14px;
  }

        /* ---------- A PROPOS ---------- */

  #apropos figure {
      min-height: 20vh;
      max-height: 40vh;
      height: 80vh;

      display: grid;
      grid-template-rows: 1fr 1fr;
      grid-template-columns: 1fr 1fr;
  }

  /* ---------- MODAL ---------- */
  .modal-content{
    width: 95%;
    padding: 1rem;
    max-height: 85vh;
  }

  .modal-title{
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .modal-close{
    font-size: 2.8rem;
  }

  /* ---------- FOOTER ---------- */
  h2{

    display: inline-block;
    margin: 16px 0;
  }

  h5{
    height: auto;
    min-height: 70vh;
    font-size: 36px;
    padding: 40px 0;
  }
}