/* ============================================================
   site.css — nouveau site Gilles Raynaldy (FR / EN)
   Pages : travaux, actualités, à propos, contact
   (repris de styles-site.css, nettoyé)
   ============================================================ */


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

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

/* Couleur par défaut des liens */
a, a:visited {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: #b1925d;
}

/* Le nom ramène à l'index Travaux ; il reste noir au survol */
#site-title:hover {
  color: inherit;
}


/* ============================================================
   2. EN-TÊTE : NOM, MENU, LANGUE
   ============================================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fdfdfd;
  z-index: 1000;
  padding-top: 40px;
  padding-bottom: 35px;
}

.header-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

#site-title {
  display: table;          /* le lien ne couvre que le nom, pas toute la largeur */
  color: inherit;
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}

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

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

/* Rubrique active */
#nav a.active {
  color: #b1925d;
}

/* Lien de langue (EN / FR), à droite du menu */
#nav a.lang-switch {
  margin-left: auto;
  align-self: center;
  font-size: 15px;
  font-weight: 500;
}


/* ============================================================
   3. CONTENU & GRILLE DES TRAVAUX
   ============================================================ */
#content {
  width: 100%;
  max-width: 1400px;
  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 {
  display: block;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Titre + ligne grise (contexte, année) */
.grid-item .project-title {
  font-weight: 600;
  display: block;
}

.grid-item .project-year {
  font-weight: 400;
  color: #666;
  display: block;
  margin-top: 3px;
}


/* ============================================================
   4. PAGES DE TEXTE : À PROPOS / CV
   ============================================================ */
.bio-intro {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 22px;
  max-width: 750px;
}

.cv-section {
  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;
}

.cv-list a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cv-list a:hover {
  color: #b1925d;
  text-decoration: none;
}


/* ============================================================
   5. 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;
}

.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;
}


/* ============================================================
   6. ACTUALITÉS (flux Tumblr)
   ============================================================ */
#posts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.post {
  width: 700px;
  max-width: 100%;
  margin: 0 0 60px 0;
}

.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 a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

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

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


/* ============================================================
   7. TÉLÉPHONE (max 640px)
   ============================================================ */
@media (max-width: 640px) {

  #header {
    padding: 28px 0 30px 0;
  }

  .header-wrapper {
    padding: 0 12px;
  }

  #site-title {
    font-size: 32px;
    letter-spacing: 0.025em;
    margin-bottom: 2px;
  }

  #nav {
    justify-content: space-between;
    width: 100%;
    margin-top: 12px;
    gap: 0;
  }

  #nav a {
    font-size: clamp(11px, 3.5vw, 15px);
    white-space: nowrap;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: auto;
  }

  #nav a.lang-switch {
    margin-left: 0;
    font-size: clamp(11px, 3.5vw, 15px);
  }

  #content {
    padding: 135px 12px 60px 12px;
  }

  .commissions-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .grid-item span,
  .grid-item .project-title {
    font-size: 14px;
    font-weight: 500;
  }

  .grid-item .project-year {
    font-size: 13px;
    font-weight: 400;
  }

  .post h1 { font-size: 24px; }
  .post h2 { font-size: 17px; }
  .post p  { font-size: 14px; line-height: 1.5; }

  .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;
  }

  .post a, .post p, .post span {
    word-break: break-word;
  }
}
