@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); }

:root {
  --texte: #191919;
  --gris: #999;
  --trait: #e6e6e6;
  --panneau: #f2f2f2;
  --ecart: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Montserrat", system-ui, sans-serif; color: var(--texte); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.conteneur { max-width: 1200px; margin: 0 auto; padding: 0 30px; }

/* ── en-tête ── */
.entete { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 44px; padding-bottom: 22px; position: relative; }
.entete::after { content: ""; position: absolute; left: 30px; right: 30px; bottom: 0; border-bottom: 2px solid var(--trait); }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--gris); transition: color .2s; }
.nav a:hover, .nav a.actif { color: var(--texte); }
.logo { font-weight: 700; font-size: 22px; letter-spacing: .02em; display: block; line-height: 0; }
.logo img { height: 46px; width: auto; transition: opacity .2s; }
.logo:hover img { opacity: .8; }
.reseaux { display: flex; gap: 14px; justify-content: flex-end; }
.reseaux svg { width: 16px; height: 16px; fill: var(--texte); transition: opacity .2s; }
.reseaux a:hover svg { opacity: .5; }

/* ── accueil ── */
.bienvenue { text-align: center; font-size: 60px; font-weight: 700; margin: 100px 0 140px; }
.projets { display: flex; flex-direction: column; gap: 20px; }
.projet { display: grid; grid-template-columns: 60fr 40fr; background: var(--panneau); overflow: hidden; }
.projet.inverse { grid-template-columns: 40fr 60fr; }
.projet.inverse .projet-image { order: 2; }
.projet-image { aspect-ratio: 3 / 2; overflow: hidden; }
.projet-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, opacity .4s; }
.projet:hover .projet-image img { transform: scale(1.03); }
.projet-titre { display: flex; align-items: center; justify-content: center; padding: 30px; font-size: 20px; text-align: center; }
.projet-titre span { border-bottom: 1px solid transparent; transition: border-color .3s; }
.projet:hover .projet-titre span { border-color: var(--texte); }

/* ── galerie ── */
.galerie h1, .page-texte h1 { text-align: center; font-size: 24px; font-weight: 700; margin: 64px 0 20px; }
.sous-titre { text-align: center; color: var(--gris); font-size: 15px; line-height: 1.6; margin: 0 0 20px; }
.texte { max-width: 720px; margin: 70px auto 70px; font-size: 14px; line-height: 1.5; }
.texte p { margin: 0 0 .9em; }
.grille { display: flex; flex-direction: column; gap: var(--ecart); }
.rang { display: flex; gap: var(--ecart); }
.vignette { position: relative; display: block; min-width: 0; background: var(--panneau); cursor: zoom-in; overflow: hidden; }
.vignette img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.vignette:hover img { opacity: .9; }
.autres { display: flex; justify-content: space-between; gap: 20px; margin: 70px 0 0; font-size: 15px; }
.autres a { color: var(--gris); transition: color .2s; }
.autres a:hover { color: var(--texte); }

/* ── blog ── */
.blog h1, .billet h1 { text-align: center; font-size: 24px; font-weight: 700; margin: 64px 0 20px; }
.rubrique { margin-top: 70px; }
.rubrique h2 { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); margin: 0 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--trait); }
.cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 26px; }
.carte { display: block; }
.carte-image { aspect-ratio: 3 / 2; overflow: hidden; background: var(--panneau); }
.carte-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.carte:hover .carte-image img { transform: scale(1.04); }
.carte-image.vide { display: flex; align-items: center; padding: 26px; }
.carte-image.vide span { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 15px; line-height: 1.55; color: #666; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.carte-texte h3 { font-size: 15px; font-weight: 500; line-height: 1.35; margin: 12px 0 4px; }
.carte-texte p { margin: 0; font-size: 12px; color: var(--gris); }
.lien-ressources { text-align: center; margin-top: 70px; font-size: 14px; }
.lien-ressources a { border-bottom: 1px solid currentColor; }
.billet { max-width: 760px; }
.retour { margin: 50px 0 0; font-size: 13px; }
.retour a { color: var(--gris); }
.billet .kicker { text-align: center; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); margin: 40px 0 0; }
.billet h1 { margin-top: 14px; font-size: 30px; line-height: 1.25; }
.prose { font-size: 16px; line-height: 1.7; margin-top: 50px; }
.prose p, .prose ul, .prose ol, .prose dl { margin: 0 0 1.1em; }
.prose h3 { font-size: 19px; font-weight: 700; margin: 2em 0 .6em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #bbb; }
.prose a:hover { text-decoration-color: currentColor; }
.prose figure { margin: 2em 0; }
.prose figure a { display: block; cursor: zoom-in; }
.prose figure img { margin: 0 auto; }
.prose figcaption { text-align: center; font-size: 13px; color: var(--gris); margin-top: 8px; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--trait); color: #444; font-style: italic; }
.prose .formula { font-family: Georgia, serif; font-size: 18px; }
.prose dd { margin: 0; text-align: center; }
.ressources li { margin-bottom: .7em; }

/* ── about / contact ── */
.apropos { display: grid; grid-template-columns: minmax(0, 410px) minmax(0, 1fr); gap: 10px 40px; align-items: center; max-width: 1140px; margin: 70px auto 0; }
.apropos .texte { margin: 0; }
.portrait { width: 100%; }
.badges { display: flex; justify-content: center; gap: 120px; margin: 60px 0 0; }
.badges span { border: 1px solid #ccc; border-radius: 999px; padding: 6px 20px; font-size: 12px; color: #555; }
.formulaire input::placeholder, .formulaire textarea::placeholder { color: #aaa; }
.apropos:not(:has(img)) { grid-template-columns: 1fr; }
.contact .texte { text-align: center; margin: 30px auto; }
.formulaire { max-width: 560px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 22px; }
.formulaire label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.formulaire input, .formulaire textarea { font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid #ccc; border-radius: 0; background: #fff; color: var(--texte); }
.formulaire input:focus, .formulaire textarea:focus { outline: none; border-color: var(--texte); }
.formulaire button { align-self: center; font: inherit; font-size: 14px; font-weight: 500; padding: 13px 40px; border: 0; background: var(--texte); color: #fff; cursor: pointer; transition: opacity .2s; }
.formulaire button:hover { opacity: .8; }
.cache { display: none; }
.mail { text-align: center; font-size: 18px; }
.mail a { border-bottom: 1px solid currentColor; }
.page-texte > p a { color: var(--gris); }

/* ── pied de page ── */
.pied { text-align: center; padding-top: 110px; padding-bottom: 60px; font-size: 13px; color: #555; }
.pied .reseaux { justify-content: center; margin: 18px 0; }
.haut { color: var(--gris); }

/* ── visionneuse ── */
.visionneuse { position: fixed; inset: 0; background: rgba(255,255,255,.98); z-index: 100; display: none; align-items: center; justify-content: center; touch-action: pan-y; }
.visionneuse.ouverte { display: flex; }
.visionneuse img { max-width: calc(100vw - 140px); max-height: calc(100vh - 100px); object-fit: contain; user-select: none; transition: opacity .2s; }
.visionneuse button { position: absolute; background: none; border: 0; cursor: pointer; color: var(--texte); font: 300 34px/1 system-ui, sans-serif; padding: 18px; opacity: .55; transition: opacity .2s; }
.visionneuse button:hover { opacity: 1; }
.v-fermer { top: 10px; right: 14px; }
.v-prec { left: 6px; top: 50%; transform: translateY(-50%); }
.v-suiv { right: 6px; top: 50%; transform: translateY(-50%); }
.v-compteur { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--gris); }
body.bloque { overflow: hidden; }

/* ── mobile ── */
@media (max-width: 760px) {
  :root { --ecart: 6px; }
  .conteneur { padding: 0 16px; }
  .entete { padding: 24px 16px 18px; grid-template-columns: 1fr auto; row-gap: 14px; }
  .entete::after { left: 16px; right: 16px; }
  .logo { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .logo img { height: 38px; }
  .reseaux { grid-column: 2; grid-row: 2; }
  .nav { grid-column: 1; grid-row: 2; }
  .bienvenue { font-size: 36px; margin: 50px 0 60px; }
  .projet, .projet.inverse { grid-template-columns: 1fr; }
  .projet.inverse .projet-image { order: 0; }
  .projet-titre { padding: 18px; font-size: 17px; }
  .texte { margin: 36px auto; }
  .apropos { grid-template-columns: 1fr; gap: 30px; }
  .cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .billet h1 { font-size: 24px; }
  .prose { font-size: 15px; }
  .badges { gap: 20px; }
  .rang { flex-direction: column; }
  .vignette { flex: none !important; }
  .visionneuse img { max-width: 100vw; max-height: calc(100vh - 120px); }
  .v-prec, .v-suiv { top: auto; bottom: 0; transform: none; }
  .pied { padding: 70px 16px 40px; }
}
