/* nicolaguel.fr — une seule feuille, mode clair seul.
   Le hub n'a pas de couleur propre : il emprunte celles des sites
   vers lesquels il renvoie (une famille de styles par projet). */

@font-face { font-family: "Instrument Sans"; src: url("/polices/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/polices/instrument-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/polices/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Literata; src: url("/polices/literata-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IM Fell English"; src: url("/polices/im-fell-english-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Caveat; src: url("/polices/caveat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Newsreader; src: url("/polices/newsreader-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --papier: #F7F4EE;
  --survol: #fffdf8;
  --encre: #22201b;
  --encre-moyenne: #3d3931;
  --encre-douce: #625c51;
  --filet: #ddd4c1;
  --interface: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --texte: Literata, Georgia, serif;
  --colonne: 52rem;
}

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

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--interface);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

a { color: var(--encre); }
a:hover { color: #000; }
a:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }

.page {
  max-width: var(--colonne);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
}

/* ---------------------------------------------------------------- en-tête */

.tete { display: flex; flex-direction: column; gap: 1.25rem; padding-bottom: 3.5rem; }
.domaine { margin: 0; font-size: .9375rem; color: var(--encre-douce); }
h1 {
  margin: 0;
  font-weight: 600;
  font-size: 4.25rem;
  line-height: 1;
  letter-spacing: -.025em;
}
.chapo { margin: 0; max-width: 36rem; font-size: 1.25rem; line-height: 1.55; color: var(--encre-moyenne); }
.chapo a { text-decoration-thickness: 1px; text-underline-offset: .2em; }

.rubrique {
  margin: 0;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--encre);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- projets */

.ligne {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--filet);
  color: var(--encre);
  text-decoration: none;
  transition: background .15s;
}
.ligne:hover { background: var(--survol); color: var(--encre); }
.ligne:hover .adresse { text-decoration: underline; }

.embleme {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--filet);
  font-size: 1.75rem;
  line-height: 1;
}
.corps { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.ligne .nom { font-size: 1.875rem; line-height: 1.1; }
.ligne .description { font-family: var(--texte); font-size: 1.0625rem; line-height: 1.5; }
.adresse { font-size: .875rem; white-space: nowrap; }

/* Aiôn : vélin, filet d'or, bleu lapis, Instrument Sans */
.projet-aion .embleme { background: #f6f2e9; border-top: 3px solid #b08b3c; font-weight: 600; }
.projet-aion .embleme, .projet-aion .nom, .projet-aion .adresse { color: #2a46b8; }
.projet-aion .nom { font-weight: 600; }

/* Silva : papier vergé, cinabre, IM Fell English */
.projet-silva .embleme { background: #EEE5CF; border-color: #C9B98F; font-family: "IM Fell English", Georgia, serif; font-size: 2rem; }
.projet-silva .embleme, .projet-silva .nom, .projet-silva .adresse { color: #9E3B26; }
.projet-silva .nom { font-family: "IM Fell English", Georgia, serif; font-size: 2rem; }

/* Popote : carnet ligné, rouge, Caveat */
.projet-popote .embleme {
  background-color: #fffcf5;
  background-image: repeating-linear-gradient(#fffcf5 0 15px, #d9d3ea 15px 16px);
  font-family: Caveat, cursive; font-weight: 600; font-size: 2.25rem;
}
.projet-popote .embleme, .projet-popote .nom, .projet-popote .adresse { color: #b5161e; }
.projet-popote .nom { font-family: Caveat, cursive; font-weight: 600; font-size: 2.375rem; line-height: 1; }

/* Politique en clair : blanc cassé, bleu et rouge, Newsreader */
.projet-pec .embleme { background: #FBFAF6; border-color: #E4E1D8; border-bottom: 3px solid #EF4135; font-family: Newsreader, Georgia, serif; font-weight: 500; }
.projet-pec .embleme, .projet-pec .nom, .projet-pec .adresse { color: #0055A4; }
.projet-pec .nom { font-family: Newsreader, Georgia, serif; font-weight: 500; }

/* ---------------------------------------------------------------- côté pro */

#pro { padding-top: 4rem; }
.rubrique-pro { border-bottom: 0; padding-bottom: 0; margin-bottom: 1.25rem; }
.pro { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.lienpro {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.25rem 0;
  border-top: 2px solid var(--encre);
  color: var(--encre);
  text-decoration: none;
}
.lienpro:hover .nom { text-decoration: underline; }
.lienpro .nom { font-size: 1.25rem; font-weight: 600; }
.lienpro .description { font-size: .9375rem; line-height: 1.45; color: var(--encre-douce); }
.logo-cadre { height: 2.75rem; display: flex; align-items: center; }
.logo { display: block; height: 2rem; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.lienpro:hover .logo, .lienpro:focus-visible .logo { filter: none; opacity: 1; }

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

.pied {
  margin-top: 5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--filet);
}

/* ---------------------------------------------------------------- téléphone */

@media (max-width: 720px) {
  .page { padding-top: 3rem; }
  h1 { font-size: 3rem; }
  .chapo { font-size: 1.125rem; }
  .ligne { grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; align-items: start; }
  .embleme { width: 2.75rem; height: 2.75rem; font-size: 1.375rem !important; }
  .adresse { grid-column: 2; }
  .pro { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* ---------------------------------------------------------------- pied commun à la famille nicolaguel.fr */
.pied-ligne { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif; font-size: .9375rem; font-weight: 500; color: var(--encre-douce); }
.pied-ligne a { text-decoration: none; }
.pied-ligne a:hover { text-decoration: underline; }
.pied-site { font-weight: 600; color: var(--encre); }
.pied-hub { color: var(--encre-douce); }
.pied-mention { margin: .5rem 0 0; font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif; font-size: .8125rem; color: var(--encre-douce); }
.pied-mention a { color: inherit; }
