/*
 * studio.css — studio.vincentdionis.com, et RIEN d'autre.
 *
 * Une identité à part, volontairement : ni la palette ni les fontes du site
 * photo (site.css n'est pas chargé ici). Blanc franc, encre presque noire, un
 * seul accent — l'outremer — pour ce qui se clique. Instrument Serif pour la
 * voix, Inter Tight pour le reste. La page n'a pas d'image : l'échelle et le
 * blanc font la hiérarchie.
 *
 * Écrit pour le téléphone d'abord ; les largeurs ne font qu'ajouter de l'air.
 */

:root {
  --fond: #ffffff;
  --fond-2: #f4f4f1;
  --encre: #111113;
  --gris: #5c5e66;
  --filet: #e5e5e0;
  --accent: #2f3be0;

  --voix: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --texte: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --mesure: 72rem;
  --marge: clamp(1.25rem, 5vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 400 1.0625rem/1.6 var(--texte);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.masque-visuel {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.evitement {
  position: absolute; left: var(--marge); top: -4rem; z-index: 10;
  padding: .6rem 1rem; background: var(--encre); color: var(--fond);
  text-decoration: none; border-radius: 2px;
}
.evitement:focus { top: 1rem; }

/* --- Le haut ----------------------------------------------------------- */

.haut {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  max-width: calc(var(--mesure) + 2 * var(--marge));
  margin: 0 auto; padding: 1.5rem var(--marge);
}
.haut__nom { font-weight: 500; letter-spacing: .01em; }
.haut__studio { color: var(--gris); font-weight: 400; }
.haut__contact {
  font-size: .9375rem; text-decoration: none; color: var(--gris);
  border-bottom: 1px solid var(--filet); padding-bottom: .1rem;
  transition: color .2s, border-color .2s;
}
.haut__contact:hover { color: var(--accent); border-color: var(--accent); }

/* --- L'accroche -------------------------------------------------------- */

main > section {
  max-width: calc(var(--mesure) + 2 * var(--marge));
  margin: 0 auto;
  padding-inline: var(--marge);
}

.hero {
  padding-block: clamp(4rem, 14vh, 9rem) clamp(4.5rem, 14vh, 9rem);
}
.hero__surtitre {
  font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gris); margin-bottom: 1.75rem;
}
.hero__accroche {
  font: 400 clamp(2.6rem, 8.4vw, 6.4rem)/1.02 var(--voix);
  letter-spacing: -.012em;
  max-width: 15ch;
  text-wrap: balance;
}
.hero__sous {
  margin-top: 2rem;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--gris);
  text-wrap: pretty;
}

.bouton {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-top: 2.5rem;
  min-height: 3rem; padding: .8rem 1.6rem;
  background: var(--encre); color: var(--fond);
  font-weight: 500; text-decoration: none;
  border-radius: 999px;
  transition: background-color .25s;
}
.bouton::after { content: '→'; transition: transform .25s; }
.bouton:hover { background: var(--accent); }
.bouton:hover::after { transform: translateX(3px); }

/* --- Les sections ------------------------------------------------------ */

.section__titre {
  font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gris); font-weight: 500;
  padding-bottom: 1rem; margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--filet);
}

.services { padding-bottom: clamp(5rem, 14vh, 9rem); }
.services__liste {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 2.75rem;
}
.service__num {
  display: block; font-size: .8125rem; color: var(--gris);
  font-variant-numeric: tabular-nums; margin-bottom: .9rem;
}
.service__titre { font: 400 clamp(1.75rem, 3vw, 2.25rem)/1.1 var(--voix); margin-bottom: .7rem; }
.service__texte { color: var(--gris); max-width: 30rem; text-wrap: pretty; }

@media (min-width: 48rem) {
  .services__liste { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
}

/* --- Les réalisations -------------------------------------------------- */

.realisations { padding-bottom: clamp(4rem, 12vh, 8rem); }
.projets { list-style: none; margin: 0; padding: 0; }
/* Le titre et la première rangée portent chacun un filet : un seul suffit. */
.realisations .section__titre { border-bottom: 0; padding-bottom: 0; margin-bottom: 1rem; }

/* Chaque réalisation est une rangée entière cliquable, séparée par un filet :
   un index, pas une galerie. */
.projet { border-top: 1px solid var(--filet); }
.projet__lien {
  display: block; text-decoration: none;
  padding-block: clamp(1.75rem, 4vh, 2.5rem);
}

.projet__legende { display: grid; gap: .9rem; }
.projet__tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; }
.projet__nom {
  font: 400 clamp(2rem, 5vw, 3.5rem)/1.05 var(--voix);
  transition: color .25s;
}
.projet__discipline { color: var(--gris); font-size: .9375rem; }
.projet__texte { color: var(--gris); max-width: 36rem; text-wrap: pretty; }
.projet__voir {
  justify-self: start;
  font-size: .9375rem; font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: .1rem;
  transition: color .2s;
}
.projet__domaine { color: var(--gris); font-weight: 400; transition: color .2s; }
.projet__lien:hover .projet__nom,
.projet__lien:hover .projet__voir,
.projet__lien:hover .projet__domaine { color: var(--accent); }

@media (min-width: 56rem) {
  .projet__legende {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 3rem;
    align-items: baseline;
  }
  .projet__tete { grid-row: span 2; flex-direction: column; gap: .4rem; }
}

/* --- Le contact -------------------------------------------------------- */

.contact {
  padding-block: clamp(4rem, 12vh, 8rem) clamp(5rem, 14vh, 9rem);
}
/* Le filet s'arrête à la mesure, pas à la marge : un border-top filerait
   jusqu'au bord de la boîte, marges comprises. */
.contact, .pied {
  background: linear-gradient(var(--filet), var(--filet)) no-repeat center top / calc(100% - 2 * var(--marge)) 1px;
}
.contact__titre { font: 400 clamp(2.25rem, 6vw, 4.5rem)/1.05 var(--voix); max-width: 16ch; text-wrap: balance; }
.contact__texte { margin-top: 1.5rem; color: var(--gris); max-width: 32rem; text-wrap: pretty; }
.contact__courriel {
  display: inline-block;
  margin-top: 2.25rem;
  font: italic 400 clamp(1.5rem, 5vw, 3rem)/1.2 var(--voix);
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  overflow-wrap: anywhere;
  transition: opacity .2s;
}
.contact__courriel:hover { opacity: .75; }

/* --- Le pied ----------------------------------------------------------- */

.pied {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem 2rem;
  max-width: calc(var(--mesure) + 2 * var(--marge));
  margin: 0 auto; padding: 2rem var(--marge) 2.5rem;
  font-size: .875rem; color: var(--gris);
}
.pied__photo { color: var(--gris); text-decoration: none; }
.pied__photo:hover { color: var(--encre); text-decoration: underline; text-underline-offset: .2em; }
.pied__langues { margin-left: auto; display: flex; gap: .9rem; letter-spacing: .06em; }
.pied__langues a {
  color: var(--gris); text-decoration: none;
  /* Une cible tactile honnête autour de deux lettres. */
  padding: .5rem .25rem; margin: -.5rem -.25rem;
}
.pied__langues a:hover { color: var(--encre); }
.pied__langues [aria-current] { color: var(--encre); font-weight: 500; }

/* --- L'apparition : une seule animation, une fois ---------------------- */

.js .revele {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
}
.js .revele.est-vu { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .revele { opacity: 1; transform: none; }
}
