/* ==========================================================================
   PAOLINA CAFFÈ — feuille de style
   Direction : bar milanais des années 50, version éditoriale.
   Rouge profond, porcelaine, noyer, acier brossé, laiton. Didone + grotesque.
   Mobile-first : styles de base pour téléphone, media queries min-width au-delà.

   1. Tokens         4. Composants        7. Animations & préférences
   2. Base           5. Navigation
   3. Motifs         6. Sections
   ========================================================================== */

/* 1. TOKENS ================================================================= */
:root {
  --rosso: #6E1216;          /* rouge profond : fonds, titres */
  --rosso-scuro: #4A0B0E;    /* dégradés, survols */
  --rosso-filo: #9B1B20;     /* filets fins (bord des tasses) */
  --porcellana: #F7F2E9;     /* fond principal */
  --crema: #EDE4D4;          /* fond alterné */
  --noce: #3A2417;           /* noyer du comptoir */
  --espresso: #1E1411;       /* footer, texte fort */
  --ottone: #B08D57;         /* laiton : détails */
  --ottone-chiaro: #D8C29A;  /* enseigne du bar */
  --inchiostro: #2A201C;     /* texte courant */
  --grigio: #6D625A;         /* texte secondaire */

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --nav-h: 64px;
  --gutter: 1rem;            /* 16 px sur mobile */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 48em) {
  :root { --gutter: 2rem; --nav-h: 76px; }
}

/* 2. BASE =================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--porcellana);
  color: var(--inchiostro);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
table { border-collapse: collapse; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--ottone); outline-offset: 3px; }
::selection { background: var(--rosso); color: var(--porcellana); }
html { scrollbar-color: var(--rosso) var(--crema); accent-color: var(--rosso); caret-color: var(--rosso); }
a { text-underline-offset: .22em; text-decoration-thickness: 1px; }
p { text-wrap: pretty; }

.container { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .6rem 1rem;
  background: var(--rosso); color: var(--porcellana);
}
.skip-link:focus { top: 1rem; }

/* 3. MOTIFS ================================================================= */

/* Double filet rouge : repris du bord des tasses et soucoupes Paolina */
.rim {
  width: 72px;
  height: 7px;
  margin: 1.25rem 0 1.75rem;
  border-top: 2px solid var(--rosso-filo);
  border-bottom: 1px solid var(--rosso-filo);
}
.rim--center { margin-inline: auto; }

/* Bande de terrazzo, le sol des bars milanais */
.terrazzo {
  height: 56px;
  background: url("../assets/img/terrazzo.svg") center / 240px;
  border-block: 1px solid rgba(58, 36, 23, .2);
}

/* 4. COMPOSANTS ============================================================= */

/* Logotype : le PNG détouré sert de masque, la couleur vient de currentColor */
.logotype {
  display: block;
  aspect-ratio: 682 / 169;
  background-color: currentColor;
  -webkit-mask: url("../assets/img/logotype.png") center / contain no-repeat;
          mask: url("../assets/img/logotype.png") center / contain no-repeat;
}
.logotype--nav { width: 118px; }
.logotype--hero { width: min(84vw, 560px); }
.logotype--footer { width: 180px; color: var(--porcellana); }

/* Titres de section en Bodoni */
.title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(2.4rem, 9vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--rosso);
  text-wrap: balance;
}
.title em { font-style: italic; }
.title a { text-decoration: none; }
.title a:hover { color: var(--rosso-filo); }

.head { text-align: center; margin-bottom: 2.5rem; }

/* Boutons : rectangles fins, capitales étendues */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-stretch: 115%;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .1s;
}
.btn--primary { background: var(--rosso); color: var(--porcellana); border-color: var(--rosso); }
.btn--primary:hover { background: var(--rosso-scuro); border-color: var(--rosso-scuro); }
.btn--ghost { border-color: rgba(247, 242, 233, .7); color: var(--porcellana); }
.btn--ghost:hover { background: var(--porcellana); color: var(--rosso); }
.btn--line { border-color: var(--rosso); color: var(--rosso); }
.btn--line:hover { background: var(--rosso); color: var(--porcellana); }
.btn:active { transform: translateY(1px); }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6; }
.icon__fill { fill: currentColor; stroke: none; }

/* Photos : traitement discret, les vraies images sont déjà chaudes */
.photo { position: relative; overflow: hidden; background: var(--crema); }
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.03);
  transition: transform 1.2s var(--ease);
}

/* Pastille « Ouvert / Fermé » — contenu injecté par main.js */
.status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .82rem;
  line-height: 1.4;
}
.status b {
  font-stretch: 125%;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.status[data-state]::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
}
.status[data-state="open"]::before { background: #7FBF7A; box-shadow: 0 0 0 3px rgba(127, 191, 122, .25); }
.status[data-state="closed"]::before { background: currentColor; opacity: .45; }
.status__state { font-weight: 600; }
.status--ink { color: var(--inchiostro); margin-bottom: 1.25rem; }
.status--ink:empty { display: none; }
.status--ink[data-state="open"]::before { background: #3F8A3A; box-shadow: 0 0 0 3px rgba(63, 138, 58, .18); }

/* 5. NAVIGATION ============================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  color: var(--rosso);
  background: rgba(247, 242, 233, .96);
  border-bottom: 1px solid rgba(58, 36, 23, .12);
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
/* Avec JS : transparente tant qu'on est sur le hero */
.js .nav:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  color: var(--porcellana);
}
.js .nav:not(.is-scrolled) .nav__brand { opacity: 0; pointer-events: none; }

.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav__brand { display: block; padding: .5rem 0; transition: opacity .4s var(--ease); }
.nav__links { display: flex; gap: 1.5rem; }
.nav__links a {
  position: relative;
  display: block;
  padding: .75rem 0;
  font-stretch: 125%;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: .24em; bottom: .45rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__hide-sm { display: none; }

@media (min-width: 30em) { .nav__hide-sm { display: block; } }
@media (min-width: 48em) {
  .logotype--nav { width: 140px; }
  .nav__links { gap: 2.5rem; }
}

/* 6. SECTIONS =============================================================== */

/* --- HERO ---------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--porcellana);
  background: var(--espresso);
  overflow: hidden;
  isolation: isolate;
}
.hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;   /* garde le barista dans le cadre sur mobile */
}
/* Voile : lisibilité du texte + teinte rouge profond en bas de cadre */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 10, 8, .45) 0%, transparent 60%),
    linear-gradient(180deg, rgba(20, 10, 8, .55) 0%, rgba(20, 10, 8, .1) 28%, rgba(74, 11, 14, .55) 62%, rgba(74, 11, 14, .94) 100%);
}

.hero__body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 2.75rem;
}
.hero__title { margin: .25rem 0 0; }
.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 5.5vw, 2.1rem);
  line-height: 1.2;
}
.hero__sub {
  font-stretch: 125%;
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ottone-chiaro);
}
.hero__sub i { font-style: normal; margin-inline: .35em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }
.hero__cta .btn { flex: 1 1 10rem; }
.hero__status {
  display: grid;
  gap: .4rem;
  margin-top: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(247, 242, 233, .25);
}
.hero__status .status { color: rgba(247, 242, 233, .92); }

@media (min-width: 48em) {
  .hero__body { padding-bottom: 4.5rem; }
  .hero__cta .btn { flex: 0 0 auto; }
  .hero__status { grid-auto-flow: column; justify-content: start; gap: 2.5rem; }
}

/* --- ENSEIGNE ------------------------------------------------------------ */
/* Le bandeau « ESPRESSO  MARTINI  AMERICANO » au-dessus du bar, fixe comme l'original */
.sign {
  display: flex;
  justify-content: space-around;
  padding: 1rem var(--gutter);
  background: var(--ottone-chiaro);
  color: var(--noce);
  border-block: 1px solid rgba(58, 36, 23, .35);
}
.sign span {
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(.8rem, 3.4vw, 1.15rem);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* --- STORIA -------------------------------------------------------------- */
.storia { padding-block: 5rem; }
.storia__grid { display: grid; gap: 3.5rem; }
.storia__text { max-width: 36rem; }
.storia__text p + p { margin-top: 1rem; }
.storia__text .lead {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--noce);
}
.storia__quote {
  text-wrap: balance;
  margin-top: 2.25rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(58, 36, 23, .15);
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.3;
  color: var(--rosso);
}

.storia__photos {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  width: 100%;
  max-width: 30rem;
  margin-bottom: 2.5rem;
}
.storia__main { grid-column: 1 / 10; grid-row: 1; aspect-ratio: 4 / 5; }
.storia__second {
  grid-column: 7 / 13;
  grid-row: 1;
  aspect-ratio: 4 / 5;
  margin-bottom: -2.5rem;
  border: 6px solid var(--porcellana);
}

@media (min-width: 56em) {
  .storia { padding-block: 7rem; }
  .storia__grid { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
  .storia__text { max-width: 32rem; }
  .storia__photos { max-width: none; }
}

/* --- AVIS ---------------------------------------------------------------- */
.avis {
  padding-block: 4.5rem;
  background: var(--rosso);
  background-image: radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, .06), transparent 60%);
  color: var(--porcellana);
}
.avis__inner { display: grid; gap: 2.5rem; text-align: center; }
.avis__note {
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 1;
}
.avis__note small { font-size: .35em; opacity: .7; margin-left: .1em; }
.avis__stars { width: 104px; margin: .75rem auto 0; color: var(--ottone-chiaro); fill: currentColor; }
.avis__count {
  font-stretch: 125%;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .8;
  margin-top: .35rem;
}
.avis__quotes { display: grid; gap: 1.75rem; }
.avis__quotes blockquote {
  max-width: 24rem;
  margin-inline: auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.45;
  text-wrap: balance;
}

@media (min-width: 56em) {
  .avis__inner { grid-template-columns: auto 1fr; align-items: center; gap: 4rem; text-align: left; }
  .avis__score { padding-right: 4rem; border-right: 1px solid rgba(247, 242, 233, .25); }
  .avis__quotes { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .avis__quotes blockquote { margin: 0; }
  .avis__stars { margin-inline: 0; }
}

/* --- CARTA --------------------------------------------------------------- */
.carta { padding-block: 5rem; background: var(--crema); }

/* La carte : porcelaine, double filet rouge comme le bord d'une soucoupe */
.menu {
  position: relative;
  max-width: 58rem;
  margin-inline: auto;
  padding: 2rem 1.25rem 2.25rem;
  background: var(--porcellana);
  border: 2px solid var(--rosso-filo);
  outline: 1px solid var(--rosso-filo);
  outline-offset: -8px;
}

.tabs {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 0 2rem;
  border-bottom: 1px solid rgba(58, 36, 23, .15);
  scroll-snap-type: x proximity;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  scroll-snap-align: start;
  position: relative;
  min-height: 48px;
  padding: .75rem 0;
  font-stretch: 125%;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--grigio);
  transition: color .25s var(--ease);
}
.tab::after {
  content: "";
  position: absolute;
  left: 0; right: .22em; bottom: 0;
  height: 2px;
  background: var(--rosso);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.tab:hover { color: var(--rosso); }
.tab[aria-selected="true"] { color: var(--rosso); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }

.panel + .panel { margin-top: 3rem; }        /* sans JS : catégories empilées */
.js .panel + .panel { margin-top: 0; }
.panel[hidden] { display: none; }
.js .panel:not([hidden]) { animation: fade .45s var(--ease) both; }
.panel:focus-visible { outline-offset: 8px; }

.panel__title, .panel__sub {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--rosso);
}
.panel__title span, .panel__sub span {
  display: block;
  font-style: italic;
  font-size: .55em;
  color: var(--grigio);
  margin-top: .2rem;
}
.panel__sub { font-size: 1.5rem; margin-top: 2.25rem; }

.items { margin-top: 1rem; }
.item {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(58, 36, 23, .1);
}
.item__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--espresso);
}
.item__name em {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: .8rem;
  color: var(--grigio);
  margin-top: .15rem;
}
.item__price {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: .95rem;
  color: var(--rosso);
  white-space: nowrap;
}
/* Étoile laiton dessinée (SVG) qui marque la signature de la maison */
.item__star {
  content: "";
  display: inline-block;
  width: .6em; height: .6em;
  margin-left: .4em;
  vertical-align: .15em;
  background: var(--ottone);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0C5.4 3.6 6.4 4.6 10 5 6.4 5.4 5.4 6.4 5 10 4.6 6.4 3.6 5.4 0 5 3.6 4.6 4.6 3.6 5 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0C5.4 3.6 6.4 4.6 10 5 6.4 5.4 5.4 6.4 5 10 4.6 6.4 3.6 5.4 0 5 3.6 4.6 4.6 3.6 5 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.panel__note { margin-top: 1.5rem; font-family: var(--serif); font-style: italic; color: var(--noce); }
.panel__legal { margin-top: 1rem; font-size: .75rem; color: var(--grigio); }
.menu__foot {
  margin-top: 2.5rem;
  font-size: .78rem;
  text-align: center;
  color: var(--grigio);
}

@media (min-width: 40em) {
  .menu { padding: 3rem 3rem 2.75rem; outline-offset: -10px; }
  .tabs { justify-content: center; gap: 2.25rem; }
  .panel__title, .panel__sub { text-align: center; }
}
@media (min-width: 56em) {
  .items--2col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3.5rem; }
}

/* --- ADRESSES ------------------------------------------------------------ */
.adresses { padding-block: 5rem; }
.adresses__grid { display: grid; max-width: 64rem; margin-inline: auto; }

.place { position: relative; padding-block: 2.5rem; }
.place + .place { border-top: 1px solid rgba(58, 36, 23, .15); }
.place__name {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 3rem;
  line-height: 1.1;
  color: var(--rosso);
}
.place__desc { font-family: var(--serif); font-size: 1.1rem; color: var(--noce); margin-top: .5rem; max-width: 26rem; }
.place__address { font-style: normal; margin: 1rem 0 .75rem; font-weight: 500; }

.hours { width: 100%; margin-bottom: 1.75rem; font-size: .92rem; }
.hours th, .hours td { padding: .6rem 0; border-bottom: 1px solid rgba(58, 36, 23, .12); }
.hours tr:first-child > * { border-top: 1px solid rgba(58, 36, 23, .12); }
.hours th { text-align: left; font-weight: 400; color: var(--grigio); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }

.place__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.place__actions .btn { flex: 1 1 9rem; padding-inline: 1rem; }

.place__map { margin-top: 1.25rem; aspect-ratio: 4 / 3; background: var(--crema); }
.place__map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.4) sepia(.15); }

.adresses__note { margin-top: 1.5rem; text-align: center; font-size: .78rem; color: var(--grigio); }

@media (min-width: 48em) {
  .adresses__grid { grid-template-columns: 1fr 1fr; }
  .place { padding: 1rem 3rem 1rem 0; }
  .place + .place { border-top: 0; border-left: 1px solid rgba(58, 36, 23, .15); padding: 1rem 0 1rem 3rem; }
}

/* --- INSTAGRAM ----------------------------------------------------------- */
.insta { padding-block: 5rem; background: var(--crema); }
.insta .title { font-size: clamp(1.9rem, 7vw, 3rem); }
.insta__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  max-width: 54rem;
  margin-inline: auto;
}
.insta__tile { display: block; aspect-ratio: 4 / 5; }
.insta__tile img { object-position: center bottom; }
.insta__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(74, 11, 14, .35);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.insta__tile:hover::after, .insta__tile:focus-visible::after { opacity: 1; }
.insta__tile:hover img { transform: scale(1.04); }
.insta__cta { text-align: center; margin-top: 2.5rem; }

/* --- FOOTER -------------------------------------------------------------- */
.footer {
  position: relative;
  background: var(--espresso);
  color: rgba(247, 242, 233, .85);
  font-size: .9rem;
}
/* Double filet rouge en tête de footer */
.footer::before {
  content: "";
  display: block;
  height: 10px;
  border-top: 4px solid var(--rosso-filo);
  border-bottom: 1px solid var(--rosso-filo);
}
.footer__inner { display: grid; gap: 2.25rem; padding-block: 3.5rem 2.5rem; }
.footer__tag {
  margin-top: 1rem;
  font-stretch: 125%;
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ottone);
}
.footer__title {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--porcellana);
  margin-bottom: .4rem;
}
.footer__hours span { display: block; white-space: nowrap; }
.footer__social { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; text-decoration: none; }
.footer__social:hover { color: var(--ottone-chiaro); }
.footer__bottom {
  display: grid;
  gap: .25rem;
  padding-block: 1.25rem 2rem;
  border-top: 1px solid rgba(247, 242, 233, .12);
  font-size: .78rem;
  color: rgba(247, 242, 233, .6);
}
.footer__bottom a:hover { color: var(--porcellana); }

@media (min-width: 48em) {
  .footer__inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .footer__bottom { grid-auto-flow: column; justify-content: space-between; }
}

/* --- Pages secondaires (mentions légales, 404) --------------------------- */
.page { padding-block: calc(var(--nav-h) + 3rem) 5rem; }
.page .container { max-width: 46rem; }
.page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 9vw, 3.75rem); line-height: 1.05; color: var(--rosso); margin-top: .5rem; }
.page h2 { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.5rem; color: var(--rosso); margin: 2.25rem 0 .5rem; }
.page p + p { margin-top: .75rem; }
.page .todo { background: rgba(176, 141, 87, .25); padding: 0 .25em; }
.page--center { min-height: 100vh; display: grid; place-items: center; text-align: center; padding-top: 3rem; }
.page--center .rim { margin-inline: auto; }
.page--center .btn { margin-top: 2rem; }

/* 7. ANIMATIONS & PRÉFÉRENCES ============================================== */

/* Apparition douce au scroll. @media (scripting: enabled) : état caché dès le
   premier rendu (pas de flash) et jamais appliqué si JS est désactivé. */
@media (scripting: enabled) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

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