body { margin: 0; padding: 1.5rem; font-family: system-ui, sans-serif; line-height: 1.6; color: #1d1d1b; background: #fff; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { margin: 0; font-weight: 400; text-transform: uppercase; letter-spacing: 0.18em; }
h1 { font-size: 1.1rem; }
h2 { font-size: 0.9rem; }
p { margin: 0; }

/* Marges plutôt que gap : Safari < 14.1 ignore gap en flex */
nav, footer { display: flex; flex-wrap: wrap; justify-content: center; margin: -0.5rem -1.25rem; }
nav a, footer a, .meta { color: #6f6c66; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; }
nav a, footer a { display: inline-block; margin: 0.5rem 1.25rem; padding: 0.6rem 0 0.3rem; text-decoration: none; border-bottom: 1px solid #e8e5e0; }
nav a:hover, footer a:hover, [aria-current] { color: #1d1d1b; border-color: #1d1d1b; }
footer { padding-top: 5rem; }

/* Accueil */
.accueil { min-height: 100vh; min-height: 100dvh; box-sizing: border-box; display: grid; grid-template-rows: 1fr auto; }
.accueil main { align-self: center; display: grid; justify-items: center; gap: clamp(2rem, 8vw, 3rem); }
.accueil h1 { margin: 0; }
.accueil h1 img { width: min(24rem, 100vw - 3rem); }
.accueil footer { padding-top: 0; }
.accueil nav p { flex-basis: 100%; text-align: center; }

/* Pages intérieures */
header { display: grid; justify-items: center; gap: 2rem; padding-block: 1.5rem 4rem; }
header img { width: 11rem; }
main { max-width: 56rem; margin-inline: auto; }
main h1 { text-align: center; margin-bottom: 3rem; }

/* Projets : masque maison et contour issus de la charte graphique */
.projets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 3.5rem 2rem; }
.projets a { display: grid; gap: 0.4rem; text-align: center; color: inherit; text-decoration: none; }
.projets h2 { margin-top: 1.25rem; }
.maison { margin: 0; filter: drop-shadow(1px 0 #1d1d1b) drop-shadow(-1px 0 #1d1d1b) drop-shadow(0 1px #1d1d1b) drop-shadow(0 -1px #1d1d1b); }
.maison img { width: 100%; aspect-ratio: 130 / 124; object-fit: cover; background: #f5ead4; clip-path: polygon(50% 0, 69.3% 0, 100% 64.4%, 100% 100%, 0 100%, 0 64.4%); transition: transform 0.4s; }
.projets a:hover img { transform: scale(1.03); }
.projets a:hover .meta { color: #1d1d1b; }

/* Page projet */
.projet h1 { margin-bottom: 0.75rem; }
.projet > p { max-width: 38rem; margin-inline: auto; text-align: center; }
.projet > p + p { margin-top: 1.5rem; }
.photos { display: grid; gap: 1rem; margin-top: 3rem; }
.photos img { width: 100%; background: #f5ead4; }
.paire { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .paire { grid-template-columns: 1fr 1fr; } }
.projet nav { margin-top: 4rem; }

@media (prefers-reduced-motion: reduce) { .maison img { transition: none; } }

/* Mentions légales */
.texte { max-width: 38rem; }
.texte a { color: inherit; }
.texte h2 { margin: 2rem 0 0.75rem; padding-top: 2rem; border-top: 1px solid #e8e5e0; }
.texte p + p { margin-top: 0.75rem; }
.texte dl { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.3rem 1rem; margin: 0; }
.texte dt { color: #6f6c66; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 0.2rem; }
.texte dd { margin: 0; }

/* Fondu entre les pages, ignoré par les navigateurs qui ne le gèrent pas */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
