/* EOS : feuille de style commune aux trois pages.
   Couleurs : modifier ici, ça s'applique partout. */
/* Typographie : trois tailles seulement.
   --grand   : logo, phrase d'accroche, titre de projet
   --courant : tout le reste du texte (menu, index, paragraphes)
   --petit   : étiquettes grises (titres de rubrique, en-têtes de colonnes, pied de page, compteur) */
:root { --grand:15px; --courant:15px; --petit:15px; /* TEST 10/10 : tout à la même taille. Avant : grand 24px, petit 12px */ --ink:#111; --mute:#111; --eos-fonce:#a0b000; --line:#e4e4e4; --eos:rgb(231,246,93); --bg:#fff; }
* { box-sizing:border-box; margin:0; padding:0; }
body { background:var(--bg); color:var(--ink); font:var(--courant)/1.45 "Inter", Helvetica, Arial, sans-serif; font-variation-settings:"opsz" 18; /* Inter 18pt : taille optique fixée à 18 */ padding:28px 32px 48px; min-height:100vh; display:flex; flex-direction:column; }
main { flex:1; }
a { color:inherit; text-decoration:none; }

/* En-tête */
header { display:flex; justify-content:space-between; align-items:baseline; gap:16px; flex-wrap:wrap; margin-bottom:72px; }
.logo { font-size:26px; font-weight:600; letter-spacing:.02em; line-height:1; }
nav a { margin-left:22px; color:var(--mute); }
nav a:hover { color:var(--ink); }
/* Surlignage vert : UNE seule règle pour tout le site : trait vert sur la moitié basse du texte, à la largeur exacte du texte */
nav a.actif, .vue a.actif, .surligne { text-decoration:underline; text-decoration-color:var(--eos); text-decoration-thickness:.45em; text-underline-offset:-.3em; text-decoration-skip-ink:none; }
nav a.actif { color:var(--ink); }

/* Textes */
.intro { max-width:680px; font-size:var(--grand); line-height:1.3; margin-bottom:80px; }
h2 { font-size:var(--petit); font-weight:400; color:var(--mute); margin:0 0 10px; }
.bloc { margin-bottom:64px; }


/* Index des projets */
.row { display:grid; grid-template-columns:40px 56px 1.6fr 1fr 1.2fr 1fr 76px 80px; gap:16px; padding:9px 10px; margin:0 -10px; border-top:1px solid var(--line); cursor:pointer; }
.row:not(.head):hover { background:var(--eos); } /* index : bandeau vert sur toute la ligne */
.row.head { cursor:default; color:var(--mute); font-size:var(--petit); border-top:none; }

/* Page projet : fiche, texte, puis les images qui se suivent */
.retour { display:inline-block; color:var(--mute); margin-bottom:40px; }
.retour:hover { color:var(--ink); }
/* Triangle plein vers la gauche, dessiné en CSS (pas de caractère flèche) */
.retour::before { content:""; display:inline-block; width:0; height:0; border-style:solid; border-width:.32em .5em .32em 0; border-color:transparent currentColor transparent transparent; margin-right:.5em; vertical-align:.05em; }
.retour.bas { margin:48px 0 0; }
.titre-projet { font-size:var(--grand); font-weight:400; margin-bottom:18px; }
.fiche { display:flex; flex-wrap:wrap; gap:8px 40px; margin-bottom:28px; }
.fiche i { display:block; font-style:normal; font-size:var(--petit); color:var(--mute); }
.texte-projet { max-width:620px; color:var(--ink); margin-bottom:56px; }
/* Vignettes en ligne, même hauteur, format d'origine */
.vignettes { display:flex; flex-wrap:wrap; gap:10px; }
.vignette { border:0; padding:0; background:#eee; height:110px; cursor:zoom-in; display:block; }
.vignette.paysage { aspect-ratio:3/2; } .vignette.portrait { aspect-ratio:2/3; }
.vignette img { height:110px; width:auto; display:block; }
.vignette:hover { box-shadow:0 7px 0 var(--eos); }

/* Visionneuse : cadre de taille FIXE (3:2), l'image centrée dedans sans recadrage.
   Le cadre, le compteur et les flèches ne bougent jamais, quel que soit le format. */
.visionneuse { position:fixed; inset:0; background:rgba(255,255,255,.97); z-index:10; }
.visionneuse[hidden] { display:none; }
.cadre { --w:min(90vw, calc((100vh - 140px) * 1.5)); position:absolute; left:50%; top:calc(50% - 20px); transform:translate(-50%,-50%); width:var(--w); height:calc(var(--w) * 2 / 3); background:none; cursor:pointer; } /* plus de fond gris derrière l image (13/11) */
.cadre > * { position:absolute; inset:4%; margin:auto; }
.cadre img { width:92%; height:92%; object-fit:contain; }
.cadre .vide { background:#ddd; max-width:92%; max-height:92%; }
.cadre .vide.paysage { width:92%; aspect-ratio:3/2; height:auto; } .cadre .vide.portrait { height:92%; aspect-ratio:2/3; width:auto; }
.barre { position:absolute; left:50%; bottom:28px; transform:translateX(-50%); display:flex; gap:22px; align-items:center; font-size:var(--petit); font-variant-numeric:tabular-nums; color:var(--mute); }
.barre button { border:0; background:none; font:inherit; color:var(--mute); cursor:pointer; }
.barre button:hover { color:var(--ink); }

/* Page d'accueil : photo plein écran */
body.accueil { padding:0; }
.plein { position:fixed; inset:0; display:block; }
.plein .photo { position:absolute; inset:0; background:#d9d9d4 center / cover no-repeat; display:flex; align-items:center; justify-content:center; color:var(--ink); font-size:var(--petit); }
.plein .rond { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:min(56vw,56vh); height:min(56vw,56vh); border-radius:50%; background:var(--eos); display:flex; align-items:center; justify-content:center; font-weight:400; font-size:min(10vw,10vh); letter-spacing:.04em; color:var(--ink); transition:transform .3s; }
.plein:hover .rond { transform:translate(-50%,-50%) scale(1.03); }
.plein .logo, .plein .sous-titre { position:absolute; left:32px; color:var(--ink); }
.plein .logo { top:28px; font-size:var(--grand); font-weight:600; }
.plein .sous-titre { bottom:28px; font-size:var(--courant); }

/* Colonnes (agence, contact) */
.cols { display:grid; grid-template-columns:repeat(3, 1fr); gap:32px; }
.cols.deux { grid-template-columns:repeat(2, 1fr); max-width:820px; }
.cols p { color:var(--ink); max-width:340px; }
.cols b { font-weight:600; }
.m { color:var(--mute); }
.mentions { font-size:var(--petit); color:var(--ink); max-width:560px; line-height:1.6; }

/* Pied de page */
footer { margin-top:96px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; border-top:1px solid var(--ink); padding-top:12px; font-size:var(--petit); color:var(--mute); }
footer a:hover { color:var(--ink); }

/* Téléphone */
@media (max-width:720px) {
  body { padding:20px 16px 40px; }
  header { margin-bottom:48px; }
  nav a { margin-left:0; margin-right:16px; }
  .intro { margin-bottom:56px; }
  .row { grid-template-columns:44px 1fr; margin:0 -6px; padding:9px 6px; }
  .row > :nth-child(2), .row > :nth-child(n+4) { display:none; }
  .vignette, .vignette img { height:80px; }
  .plein .logo, .plein .sous-titre { left:16px; }
  .cols, .cols.deux { grid-template-columns:1fr; }
}

/* Tout en minuscules : menu, titres, index, fiches (les paragraphes gardent leur casse) */
header, h2, .row, .fiche, .titre-projet, .retour, footer, .plein, .cols b, .surligne { text-transform:lowercase; }
.num { }
.titre-projet .num { margin-right:12px; }

/* TEST 10/10 : aucun gras sur les pages intérieures (supprimer cette ligne pour revenir au gras) */
body:not(.accueil) b, body:not(.accueil) .logo, body:not(.accueil) strong { font-weight:400; }

/* Bascule images / index (page projets) */
.vue { margin:0 0 10px; }
.vue a { margin-right:18px; }
.vue a:hover { color:var(--ink); }
.vue { text-transform:lowercase; }

/* PROPOSITION 13/11 (v2, d'après hyper.archi) : page projets « images » : une image par projet,
   TOUJOURS le même format (recadrée), en grille, légende dessous. Changer le format : --format. */
.flux { --format:1/1; display:grid; grid-template-columns:repeat(3, 1fr); gap:5vw 6%; margin-top:24px; } /* blanc d'après grue : écart entre colonnes ≈ 20 % de la largeur d image, images carrées */
.flux figure { display:block; }
.flux .img { display:block; aspect-ratio:var(--format); background:#e6e6e3; overflow:hidden; }
.flux .img img { width:100%; height:100%; object-fit:cover; display:block; }
.flux figcaption { margin-top:8px; text-transform:lowercase; }
.flux figcaption .num { margin-right:10px; }
.flux figure:hover figcaption .titre { text-decoration:underline; text-decoration-color:var(--eos); text-decoration-thickness:.45em; text-underline-offset:-.3em; text-decoration-skip-ink:none; }
@media (max-width:1000px) { .flux { grid-template-columns:repeat(2, 1fr); } }
@media (max-width:720px) { .flux { grid-template-columns:1fr; gap:24px; } }

/* Codes projet en majuscules (passe devant le « tout en minuscules ») */
.row .code, .flux .code, .titre-projet .code { text-transform:uppercase; }

/* TEST 13/11 : logo « rond, eos calé à droite » (V2-D4 de l'artefact Logo eos).
   Proportions reprises du dessin : texte réduit à 20 % du diamètre (26,2 % dans le dessin), à 8,1 % du bord droit, centré en hauteur. */
.pastille { --d:60px; position:relative; display:inline-block; width:var(--d); height:var(--d); border-radius:50%; background:var(--eos); font-size:calc(var(--d) * .2); font-weight:400; line-height:1; letter-spacing:.03em; }
.pastille span { position:absolute; right:8.1%; top:40%; white-space:nowrap; }
header { align-items:center; }
.plein .rond { justify-content:flex-end; padding-right:calc(min(56vw,56vh) * .081); font-size:calc(min(56vw,56vh) * .2); letter-spacing:.03em; line-height:1; }

/* Vignette qui contient une vraie image : pas de fond gris */
.vignette:has(img) { background:none; }
