:root{
  --blue: #0000ee; /* RGB(0,0,238) */
}

/* ---------- BASE ---------- */
*{
  box-sizing: border-box;
}
html,
body{
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}
body{
  font-family: "Poppins", sans-serif;
  background: white;
  color: var(--blue);
}

/* =========================
   HEADER (fixe + apple-like)
   ========================= */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  z-index: 10;
}

.brand{
  font-weight: 700;
  letter-spacing: .6px;
  font-size: 16px;
}

.nav{
  display: flex;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
}

/* effet Apple “goutte d’eau” */
.nav a{
  position: relative;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0,0,238,0.06);
  backdrop-filter: blur(6px);
  transition: .25s ease;
  color: var(--blue);
  text-decoration: none;
}

.nav a:hover{
  background: rgba(0,0,238,0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,238,0.18);
}

.nav a::before{
  content: "";
  position: absolute;
  top: 2px;
  left: 10%;
  width: 80%;
  height: 35%;
  background: rgba(255,255,255,0.35);
  filter: blur(10px);
  border-radius: 999px;
  opacity: 0.6;
  pointer-events: none;
}

/* =========================
   PAGE DE GARDE
   ========================= */
.cover{
  height: 100svh; height: 100dvh; height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 20px;
}

.cover-title{
  margin: 0;
  font-size: clamp(36px, 6vw, 70px);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
}

.cover-subtitle{
  margin-top: 8px;
  font-size: clamp(13px, 1.8vw, 18px);
  font-weight: 500;
  letter-spacing: .6px;
}

/* =========================
   SECTION DESSINS (plein écran)
   ========================= */
.drawings{
  position: relative;
  height: 100vh;         /* comme la page de garde */
  padding: 80px 60px;    /* marge intérieure globale */
}

.drawings-inner{
  position: relative;
  width: 100%;
  height: 100%;
}

/* titre "dessins" en bas à gauche, décalé du bord */
.drawings-title{
  position: absolute;
  left: 15vw;
  bottom: 12vh;
  margin: 0;

  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 2px;
  z-index: 5; /* éviter qu’un élément passe devant */
}

/* bouton "Dessins" (style header) */
.drawings-button{
  position: relative;
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0,0,238,0.06);
  backdrop-filter: blur(6px);
  transition: .25s ease;
  color: var(--blue);
  text-decoration: none;

  white-space: nowrap;
  vertical-align: middle;
}

.drawings-button:hover{
  background: rgba(0,0,238,0.08);      /* bleu beaucoup plus léger */
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,238,0.10); /* ombre plus douce */
}

/* effet quand on clique (encore plus léger) */
.drawings-button:active{
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0,0,238,0.12);
}


/* bloc image en haut à droite, décalé du bord */
.drawings-image{
  position: absolute;
  right: 25vw;           /* décollé du bord droit */
  top: 12vh;             /* décollé du haut */
  max-width: 290px;
}

.drawings-image img{
  width: 150%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: none;     /* plus aucune ombre */
}

/* ===============================
   4 PROJETS = 4 BANDES DE 25vh
   =============================== */
.full-projects{
  width: 100%;
}

/* chaque projet = bande horizontale */
.project-row{
  min-height: 25vh;           /* au moins 1/4 de l'écran, mais peut grandir */
  width: 100%;

  display: flex;
  align-items: stretch;        /* le contenu remplit bien la hauteur */
  justify-content: center;     /* centre le contenu à l’intérieur */

  text-decoration: none;
  color: var(--blue);
  border-bottom: 1px solid rgba(0,0,238,0.12);

  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity .7s ease,
    transform .7s ease,
    background .25s ease;
}

/* délais progressifs pour l’apparition */
.project-row:nth-child(1){ transition-delay: .0s; }
.project-row:nth-child(2){ transition-delay: .08s; }
.project-row:nth-child(3){ transition-delay: .16s; }
.project-row:nth-child(4){ transition-delay: .24s; }

.project-row.is-visible{
  opacity: 1;
  transform: translateX(0);
}

.project-row:hover{
  background: rgba(0,0,238,0.03);
}

/* conteneur interne : 2 colonnes texte / image */
.pr-inner{
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 1fr; /* un peu plus de place pour le texte */
  align-items: center;

  max-width: 900px;          /* largeur max du bloc contenu */
  margin: 0 auto;            /* centre horizontalement */
  padding: 4vh 0;            /* plus de place en haut/bas, moins sur les côtés */
  column-gap: 26px;          /* espace entre texte et image */
}

/* TEXTE À GAUCHE */
.pr-left{
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.pr-left h2{
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 400;
  font-size: clamp(20px, 3vw, 32px);
  margin: 0;
  color: var(--blue);
}

.pr-left p{
  margin-top: 4px;
  opacity: 0.6;
  font-size: 13px;
}

/* IMAGE À DROITE */
.pr-right{
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.pr-right img{
  max-height: 70%;      /* ne déborde pas en hauteur */
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;   /* mets 0 si tu veux super strict */
  pointer-events: none; /* le clic reste sur tout le bloc */
}

/* animation départ vers la droite */
.project-row.is-leaving{
  transform: translateX(100%);
  opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
}

/* =========================
   REVEAL SCROLL
   ========================= */
.reveal-left,
.reveal-right{
  opacity: 0;
  transition: opacity .9s ease, transform .9s ease;
  will-change: opacity, transform;
}
.reveal-left{
  transform: translateX(-60px);
}
.reveal-right{
  transform: translateX(60px);
}
.is-visible{
  opacity: 1 !important;
  transform: translate(0,0) !important;
}

/* =========================
   A PROPOS
   ========================= */
.about-grid{
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

.about-title h2{
  margin: 0;
  font-size: clamp(22px, 3.2vw, 32px);
  letter-spacing: .6px;
  font-weight: 200;         /* 🔥 texte plus léger */
}

.about-text p{
  margin: 0 0 14px 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(0,0,238,0.85);
  max-width: 800px;
}

/* =========================
   CONTACT
   ========================= */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

.contact-sub{
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(0,0,238,0.75);
  max-width: 520px;
}

.contact-links{
  display: grid;
  gap: 10px;
}

.contact-item{
  display: inline-block;
  font-size: 16px;
  color: var(--blue);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,238,0.18);
  width: fit-content;
  transition: .2s ease;
}

.contact-item:hover{
  color: rgba(0,0,238,0.6);
  border-bottom-color: rgba(0,0,238,0.5);
  transform: translateX(2px);
}

.contact-btn{
  margin-top: 8px;
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .4px;
  width: fit-content;
  transition: .2s ease;
  text-decoration: none;
}

.contact-btn:hover{
  background: var(--blue);
  color: white;
  transform: translateY(-1px);
}

/* sections génériques */
.section{
  min-height: 70vh;
  padding: 110px 22px 60px;
  max-width: 1100px;
  margin: 0 auto;
}
.section h2{
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 12px;
}

/* =========================
   RESPONSIVE (général)
   ========================= */
@media (max-width: 900px){
  .about-grid,
  .contact-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-text p{
    font-size: 15px;
  }

  .section{
    padding: 96px 18px 50px;
    min-height: auto;
  }

  .pr-inner{
    grid-template-columns: 1fr;
    row-gap: 10px;
    padding: 4vh 5vw;
  }

  .pr-right{
    justify-content: flex-start;
  }

  .pr-right img{
    max-height: 40%;
  }
}

/* =========================
   SOMMAIRE ULTRA DISCRET
   ========================= */
.toc{
  position: fixed;
  top: 80px;           /* en haut à gauche */
  left: 22px;

  padding: 10px 12px;
  background: rgba(255,255,255,0.45); /* très transparent */
  border: 1px solid rgba(0,0,238,0.12);
  border-radius: 10px;

  backdrop-filter: blur(6px);        /* effet verre dépoli discret */
  box-shadow: 0 4px 20px rgba(0,0,238,0.05);

  font-size: 12px;
  z-index: 9;

  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .35s ease, transform .35s ease;
}

.toc.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toc-title{
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-size: 10px;
  opacity: 0.55;
}

.toc-item{
  display: block;
  text-decoration: none;
  color: var(--blue);
  padding: 3px 0;
  font-size: 12px;
  opacity: 0.55;
  transition: .2s ease;
}

.toc-item:hover{
  opacity: 0.9;
  transform: translateX(2px);
}

.toc-item.is-active{
  opacity: 1;
  font-weight: 700;
}

/* barre de progression super minimaliste */
.toc-progress{
  margin-top: 6px;
  width: 100%;
  height: 2px;
  background: rgba(0,0,238,0.1);
  border-radius: 999px;
  overflow: hidden;
}

.toc-progress-bar{
  height: 100%;
  width: 0%;
  background: var(--blue);
  opacity: 0.8;
  transition: width .15s linear;
}

/* Responsive : on cache le sommaire sur mobile */
@media (max-width: 900px){
  .toc{
    display: none;
  }
}

@media (max-width: 900px){

  .drawings{
    height: auto;
    padding: 90px 24px 70px;
  }

  .drawings-inner{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 60px; /* 🔥 plus d'espace entre l'image et le titre */
  }

  /* L’image en premier, centrée */
.drawings-image{
  position: static;
  max-width: 80%;
  margin: 10 0 0px auto; /* pousse vers la droite */
  text-align: right;     /* optionnel */
}


  .drawings-image img{
    width: 80%;
    max-width: 340px;
    border-radius: 6px;
  }

  /* Le titre bien en dessous, sans remonter sur l'image */
  .drawings-title{
    order: 2;
    position: relative;
    margin-top: 0;         /* on enlève le 20px, géré par gap + margin image */
    left: 0;
    bottom: 0;

    text-align: left;
    margin-left: 4vw;
    font-size: clamp(28px, 9vw, 42px);
  }
}


/* =========================
   ESPACE + TITRE PROJETS
   ========================= */
.spacer-between{
  height: 180px;  /* espace entre dessins et projets */
  background: white;
}

.projects-small-title{
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1px;
  opacity: 0.45;
  margin: 0 auto 18px;
  max-width: 1100px;      /* aligné avec le reste du site */
  padding-left: 22px;     /* même indent que tes sections */
  color: var(--blue);
}

/* Bulle cliquable à droite du mot DESSINS */
.drawings-bubble{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-left: 12px;          /* espace entre le mot et la bulle */
  padding: 4px 14px;          /* taille de la bulle */
  border-radius: 999px;

  background: rgba(0,0,238,0.05); /* effet léger */
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,238,0.12);

  color: var(--blue);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;

  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}


.drawings-bubble:hover{
  background: rgba(0,0,238,0.12); /* léger, pas comme les gros boutons */
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0,0,238,0.12);
}

.drawings-bubble:active{
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0,0,238,0.16);
}

/* HEADER en version mobile : on resserre un peu tout */
@media (max-width: 600px){
  .site-header{
    padding: 14px 14px;       /* moins de marge sur les côtés */
  }

  .nav{
    gap: 10px;                /* espace entre les boutons réduit */
    font-size: 12px;          /* texte un peu plus petit */
  }

  .nav a{
    padding: 4px 10px;        /* pastille plus petite */
  }
}

@media (max-width: 3500px){
  .spacer-between{
    height: 0px;   /* avant : 180px → on divise par ~2 */
  }
}