/* ==========================================================================
   BBDK Edition — feuille de style
   Reproduit le thème Squarespace « Fulton » du site d'origine.
   ========================================================================== */

/* Polices
   Le site d'origine utilise Freight Sans Pro et Proxima Nova (Adobe Fonts).
   Remplacées ici par des équivalents gratuits Google Fonts.
   Pour revenir aux polices Adobe : changer les deux variables ci-dessous
   et remplacer le <link> Google Fonts dans le <head> des pages. */
:root {
  --font-text: "Alegreya Sans", "Helvetica Neue", Arial, sans-serif;
  --font-button: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --color-header: #212326;   /* bandeau du haut */
  --color-title: #f3f7f7;    /* logo texte dans le bandeau */
  --color-text: #050000;     /* texte courant */
  --color-heading: #212326;  /* titres h2 */
  --color-footer: #16181a;
  --color-button: #2b2f33;

  --content-width: 1080px;   /* largeur max de la colonne (marges comprises) */
}

/* Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--color-text);
  font-family: var(--font-text);
  font-size: 24px;
  line-height: 1.6;
  letter-spacing: -0.5px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

p { margin: 0; }

a { color: inherit; }

/* En-tête
   ========================================================================== */
.site-header {
  position: relative;
  background: var(--color-header);
  padding: 30px;
  text-align: center;
}

.site-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 28.8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.site-title a {
  color: var(--color-title);
  text-decoration: none;
}

/* Bouton « hamburger » */
.nav-toggle {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 40px;
  height: 36px;
  padding: 10px 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin-bottom: 5px;
  background: #fff;
  transition: transform .3s, opacity .3s;
}

.nav-toggle span:last-child { margin-bottom: 0; }

/* Menu plein écran
   ========================================================================== */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(33, 35, 38, .96);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.nav-open .nav-overlay { opacity: 1; visibility: visible; }
.nav-open { overflow: hidden; }

.nav-overlay ul { list-style: none; margin: 0; padding: 0; text-align: center; }

.nav-overlay a {
  display: block;
  padding: 15px 0;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-overlay a:hover { opacity: .7; }

/* Le bouton passe au-dessus du menu et devient une croix */
.nav-open .nav-toggle { position: fixed; z-index: 101; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Contenu
   ========================================================================== */
.content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 68px 34px;
}

.content--page { padding-top: 100px; padding-bottom: 100px; }

/* Chaque bloc (titre, image, texte) est espacé de 17px en haut et en bas,
   comme la grille Squarespace d'origine. */
.block { padding: 17px 0; }
.block:first-child { padding-top: 0; }

.spacer { height: 68px; }

/* Titres de section : « / Design Industriel : … » */
.section-title { margin: 0; font-weight: 400; font-size: 24px; line-height: 1.6; }
.section-title strong { font-weight: 700; }

h2 {
  margin: 0;
  color: var(--color-heading);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

/* Images avec légende */
.figure { margin: 0; }

.figure img { width: 100%; }

.figure figcaption {
  margin-top: 18px;
  font-size: 19.8px;
  line-height: 1.68;
}

/* Image recadrée au format 5:3 (page IHM) */
.figure--crop img { aspect-ratio: 5 / 3; object-fit: cover; }

/* Deux images côte à côte (pages projets) */
.figure-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}

/* Même hauteur pour les deux images, recadrées au format 4:3 */
.figure-pair img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Crédit photo dans une légende : « © Photographe » */
.credit { opacity: .6; }

/* Sous-titres des pages projets */
h3 {
  margin: 0;
  color: var(--color-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
}

/* Fiche projet (pages projets) : libellé à gauche, valeur à droite */
.fiche {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 34px;
  margin: 0;
  padding-top: 17px;
  border-top: 1px solid rgba(22, 24, 26, .15);
  font-size: 19.8px;
  line-height: 1.68;
}

.fiche dt { font-weight: 700; }
.fiche dd { margin: 0; }

/* Lien texte souligné (ex. « Voir le projet sur le site du client ») */
.text-link {
  font-size: 19.8px;
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 24, 26, .3);
}

.text-link:hover { border-bottom-color: currentColor; }

/* Introduction de l'accueil : titre + métiers en trois colonnes
   ========================================================================== */
html { scroll-behavior: smooth; }

.metiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.metiers a {
  display: block;
  height: 100%;
  padding-top: 17px;
  border-top: 1px solid rgba(22, 24, 26, .15);
  text-decoration: none;
  transition: border-color .2s;
}

.metiers a:hover { border-top-color: currentColor; }

.metiers p:not(.section-title) {
  margin-top: 8px;
  font-size: 19.8px;
  line-height: 1.68;
}

/* Références (logos clients)
   ========================================================================== */
.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.logos a { display: block; aspect-ratio: 1; }

.logos img { width: 100%; height: 100%; object-fit: contain; }

/* Bouton « Contactez nous »
   ========================================================================== */
.contact { text-align: right; }

.button {
  display: inline-block;
  padding: 14px 35px;
  border: 2px solid var(--color-button);
  color: var(--color-button);
  font-family: var(--font-button);
  font-size: 14px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.button:hover { background: var(--color-button); color: #fff; }

/* Pied de page
   ========================================================================== */
.site-footer {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 68px 34px;
  color: var(--color-footer);
  text-align: center;
}

.site-footer p { margin-bottom: 22.8px; font-size: 22.8px; line-height: 38.4px; }

.site-footer a {
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 24, 26, .3);
}

.back-to-top { display: none; }

/* Mobile
   ========================================================================== */
@media (max-width: 640px) {
  .site-header { padding: 20px; }
  .site-title { line-height: 24px; }
  .nav-toggle { top: 14px; left: 20px; }

  .nav-overlay a { padding: 12px 0; font-size: 24px; line-height: 24px; }

  .content { padding: 40px 20px; }

  h2 { font-size: 32px; }

  .logos { grid-template-columns: repeat(2, 1fr); }

  .figure-pair { grid-template-columns: 1fr; }

  .metiers { grid-template-columns: 1fr; gap: 24px; }

  .fiche { grid-template-columns: 1fr; gap: 0; }
  .fiche dd { margin-bottom: 8px; }

  .contact { text-align: center; }

  .site-footer { padding: 20px; }

  .back-to-top {
    display: inline-block;
    margin-bottom: 14px;
    padding: 10.5px 14px;
    color: var(--color-header);
    font-size: 14px;
    font-weight: 500;
    line-height: 17.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
  }

  .site-footer .back-to-top { border-bottom: 0; }
}
