/* ============================================================
   1. BASE & TYPOGRAPHIE
   ============================================================ */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

html, body {
  font-family: "Inter Tight", sans-serif;
  font-size: 14px;
  color: #000;
  background: #fdfdfd;
  letter-spacing: 0.045em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* COULEUR PAR DÉFAUT DES LIENS SUR TOUT LE SITE */
a { 
  text-decoration: none; 
  color: #000; 
}

a:hover { 
  color: #b1925d; /* <--- Change ici la couleur au survol global */
}


/* ============================================================
   2. HEADER & NAVIGATION (Commun à toutes les pages)
   ============================================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fdfdfd;
  z-index: 1000;
  padding-top: 40px;
  padding-bottom: 35px;
}

.header-wrapper {
  width: 1200px; 
  margin: 0 auto;
  padding: 0 20px;
}

#site-title, #site-title a {
  display: block;
  font-size: 44px;
  font-weight: 700;
  color: #000;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}

#site-title a:hover, #site-title:hover {
  color: #b1925d; /* <--- Couleur survol titre du site */
}

#nav {
  display: flex;
  flex-direction: row;
  gap: 25px;
  margin-top: 12px;
  text-align: left;
}

#nav a {
  font-size: 28px;
  font-weight: 700;
}

/* LE LIEN ACTIF DANS LE MENU */
#nav a.active { 
  color: #b1925d; /* <--- Change ici la couleur du menu actif */
}


/* ============================================================
   3. CONTENU & GRILLES (Architecture, Commissions, Projects)
   ============================================================ */
#content {
  width: 1200px; 
  margin: 0 auto;
  padding: 200px 20px 80px 20px; 
}

.commissions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px 40px;
  margin-top: 5px;
}

.grid-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.grid-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
  margin-bottom: 12px;
}

.grid-item:hover img {
  opacity: 0.7;
}

.grid-item span {
  color: #000;
  display: block;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.02em;
}


/* ============================================================
   4. RESPONSIVE / MOBILE (S'applique partout automatiquement)
   ============================================================ */
@media (max-width: 1240px) {
  .header-wrapper, #content { width: 100%; }
}

@media (max-width: 640px) {
  #header { 
    padding: 28px 0 30px 0; 
  }
  
  .header-wrapper { 
    padding: 0 12px; 
  }
  
  #site-title { 
    font-family: "Inter Tight", sans-serif;
    font-size: 35px; 
    font-weight: 700;          
    letter-spacing: 0.020em; 
    margin-bottom: 2px;
    display: block;
  }

  #nav { 
    display: flex;
    flex-direction: row;
    justify-content: space-between; 
    width: 100%;                     
    margin-top: 12px; 
    gap: 0;
  }
   
  #nav a { 
    font-size: clamp(11px, 3.5vw, 15px); 
    font-weight: 700; 
    white-space: nowrap;             
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: auto; 
  }

    #content {  
    padding: 135px 12px 60px 12px;  
    box-sizing: border-box;
  }
  
  .commissions-grid {
    grid-template-columns: 1fr; 
    gap: 35px;
  }

  .grid-item span {
    font-size: 14px; 
    line-height: 1.4;
  }
}

/* ============================================================
   AJOUT SPÉCIFIQUE POUR PROJECTS.HTML (Titres + Années)
   ============================================================ */
.grid-item .project-title {
  font-weight: 700 !important; /* Bold pour le titre */
  display: block;
  color: #000;
  margin-top: 12px; /* Espacement entre image et texte */
}

.grid-item .project-year {
  font-weight: 400 !important; /* Regular pour l'année */
  color: #555; /* Gris */
  display: block;
  margin-top: 2px;
}

/* Sur mobile, on annule la marge par défaut définie pour le span générique */
@media (max-width: 640px) {
  .grid-item span { margin-top: 0 !important; }
  .grid-item .project-title { margin-top: 10px; }
}

/* ============================================================
   5. PAGES DE TEXTE / BIOGRAPHIE & CV (About)
   ============================================================ */
.bio-intro {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 22px;
  max-width: 750px; /* Évite que les lignes de texte soient trop longues à lire */
}

.cv-section {
  margin-top: 0px;
  max-width: 850px;
}

.cv-title {
  font-weight: 700;
  font-size: 18px; 
  margin-bottom: 18px;
  margin-top: 40px;
}

.cv-list {
  list-style: none;
  font-size: 15px;
  margin-bottom: 35px;
  line-height: 1.4;
}

.cv-list li {
  margin-bottom: 12px;
}

.year {
  font-weight: 700;
  margin-right: 8px;
}

/* Soulignement stylisé pour les liens du CV */
.cv-list a {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: #000;
}

.cv-list a:hover {
  color: #b1925d; /* Coordonné avec le menu actif */
  text-decoration: none;
}

/* ============================================================
   7. PAGE CONTACT 
   ============================================================ */
.contact-intro {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 30px;
  max-width: 600px;
}

.contact-title {
  font-weight: 700;
  font-size: 18px; 
  margin-top: 50px;
  margin-bottom: 20px;
}

.contact-details {
  list-style: none;
  font-size: 15px;
  margin-bottom: 35px;
  line-height: 1.6;
}

.contact-details a { 
  text-decoration: underline; 
  text-underline-offset: 2px; 
  color: #000; 
}

.contact-details a:hover { 
  color: #b1925d; 
  text-decoration: none; 
}

.bold-name { 
  font-weight: 700; 
}

.contact-copyright {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}


}

/* ============================================================
//* ============================================================
   5. AJOUT SPÉCIFIQUE POUR INDEX.HTML (NEWS / POSTS TUMBLR)
   ============================================================ */

/* --- SÉCURITÉ CENTRAGE DESKTOP --- 
   (On s'assure que l'index reste parfaitement calé au centre sans la classe container) */
#content {
  width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --- LABEL DES NEWS --- */
.news-label {
  font-family: "Inter Tight", sans-serif;
  font-size: 15px;
  font-weight: 700 !important;
  letter-spacing: 0.045em;
  color: #000;
  margin-bottom: 7px;
  display: block;
}

/* --- FLUX DE POSTS --- */
#posts {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Force l'alignement à gauche */
}

.post { 
  width: 700px; /* Largeur du flux Tumblr sur ordinateur */
  margin: 0 0 60px 0; /* Marge à 0 à gauche pour ne pas centrer */
}

.post img { 
  width: 100%; 
  height: auto; 
  margin: 15px 0; 
  display: block; 
}

.post h1 { font-size: 28px; font-weight: bold; margin-bottom: 2px; }
.post h2 { font-size: 18px; margin-top: 20px; margin-bottom: 2px; }
.post p { font-size: 15px; line-height: 1.6; margin-bottom: 12px; }

.post-separator {
  width: 600px;
  border: none;
  border-top: 1px solid #e0e0e0;
  margin-bottom: 60px;
}

/* --- RESPONSIVE & ADAPTATIONS ÉCRANS --- */
@media (max-width: 1240px) {
  #content, .header-wrapper {  
    width: 100%;  
    box-sizing: border-box;
  }
  .post {
    width: 100%;
    max-width: 700px;
  }
  .post-separator {
    width: 100%;
    max-width: 600px;
  }
}

@media (max-width: 640px) {


  .news-label {
    font-size: 14px;
    margin-bottom: 5px;
  }

  .post h1 { font-size: 24px; font-weight: bold; margin-bottom: 2px; }
  .post h2 { font-size: 17px; margin-top: 20px; margin-bottom: 2px; }
  .post p { font-size: 14px; line-height: 1.5; margin-bottom: 12px; }
  
  #posts {
    width: 100%;
  }

  /* Version adoucie : On ne bride que les blocs et les médias pour préserver le style du texte */
  .post, .post-separator, .post img, .post iframe, .post video, .post figure, .post div { 
    width: 100% !important; 
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* On empêche uniquement les très longs liens textuels de déborder */
  .post a, .post p, .post span {
    word-break: break-word !important;
  }
}