/* ---------- Variables & reset léger ---------- */
:root{
  --header-h: 53px;    /* hauteur fixe du header */
  --maxw: 800px;
  --bg: #fdfdfd;
  --text: #333;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

/* ---------- Header fixe ---------- */
.site-header{
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid #eee;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  z-index: 50;
}
.site-header h1{ margin: 0; font-size: 1.6rem; }
.site-header h1 a{ color:#333; text-decoration:none; }
.site-header nav{ display:flex; gap:16px; }
.site-header nav a{
  text-decoration:none; color:#333; font-weight:500; transition:color .2s ease;
}
.site-header nav a:hover{ color:#000; }

/* ---------- HERO plein écran (avec multiplicateur de hauteur) ---------- */
/* Par défaut: 1.0× la hauteur écran (moins le header).
   Pour “voir plus” de la photo: ajouter --hero-height: 1.3 sur la section. */
.hero{
  position: relative;
  background-image: var(--hero-image, url('background.jpg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Fallback desktop */
  height: calc( (100vh - var(--header-h)) * var(--hero-height, 1) );

  display:flex; align-items:center; justify-content:center;
  padding: 0 16px;
  isolation:isolate;
}

/* Mobiles modernes: unités stables (prennent la priorité si supportées) */
@supports (height: 100svh) {
  .hero{ height: calc( (100svh - var(--header-h)) * var(--hero-height, 1) ); }
}
@supports (height: 100dvh) {
  .hero{ height: calc( (100dvh - var(--header-h)) * var(--hero-height, 1) ); }
}

.hero-content{
  color:#fff; text-align:center;
  text-shadow: 0 6px 22px rgba(0,0,0,.4);
  max-width: 900px;
}
.hero-content h1{
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height:1.05; letter-spacing:-.02em; margin-bottom:.4rem;
}
.hero-content p{
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin:.25rem 0; opacity:.95;
}

/* “Chips” de navigation dans le hero */
.anchor-nav{ display:inline-flex; gap:.5rem; margin-top:1rem; flex-wrap:wrap; justify-content:center; }
.chip{
  display:inline-flex; align-items:center; justify-content:center;
  padding:.55rem 1rem; border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  color:#fff; text-decoration:none; font-weight:600;
  backdrop-filter:saturate(140%) blur(6px);
  background: rgba(255,255,255,.08);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.chip:hover{ transform:translateY(-1px); background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.6); }

/* Flèche scroll — centrée horizontalement, 8% au-dessus du bas du HERO */
.scroll-btn{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 1.15rem;
  line-height: 1;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.10);
  backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 10px 28px rgba(0,0,0,.3);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.scroll-btn:hover{
  transform: translateX(-50%) translateY(-2px);
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.6);
  box-shadow: 0 14px 34px rgba(0,0,0,.36);
}

/* ---------- Contenu principal ---------- */
main{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 20px 0;   /* espace sans affecter la hauteur du hero */
}

/* Ancrages: quand on scroll vers #top/#french..., on décale sous le header fixe */
#top, #french, #amore, #saudade{ scroll-margin-top: calc(var(--header-h) + 16px); }

/* Sections génériques (si tu en utilises) */
.section{ padding:100px 0; text-align:center; }
.section h2{ font-size:2rem; margin:0 0 .5em; }
.section p{ margin:.5em 0; }

/* ---------- Articles ---------- */
article{ margin-bottom: 1.5em; }
article h3{ margin:0; font-size:1.2em; }
article h3 a{ text-decoration:none; color:#333; }
article h3 a:hover{ text-decoration:underline; }
article p{ margin:.5em 0 0 0; }

/* ---------- Zone Like + Commentaire privé ---------- */
.post-actions{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.like-button{
  display:inline-flex; align-items:center; gap:.5rem;
  border:1px solid #ddd; border-radius:999px;
  padding:6px 12px; background:#fff; color:#333; cursor:pointer;
  transition: background .2s ease, border-color .2s ease, transform .1s ease, color .2s ease;
}
.like-button:hover{ background:#f7f7f7; border-color:#ccc; }
.like-button:active{ transform: scale(0.98); }
.like-heart{ font-size:1.05em; line-height:1; }
.like-button.liked{ color:#e00; border-color:#f0c2c2; background:#fff5f5; }
.like-button.like-disabled{ opacity:.5; pointer-events:none; }
.like-count{ font-variant-numeric: tabular-nums; min-width: 1ch; text-align:right; }

.comment-form{ display:flex; gap:6px; align-items:center; }
.comment-input{
  width: 220px; max-width: 60vw; padding: 6px 10px;
  border: 1px solid #ddd; border-radius: 999px; font-size: .95rem; outline: none;
}
.comment-input:focus{ border-color: #aaa; }
.comment-send{
  border: 1px solid #ddd; background: #fff; border-radius: 999px;
  padding: 6px 10px; cursor: pointer; transition: background .2s ease, border-color .2s ease;
}
.comment-send:hover{ background:#f7f7f7; border-color:#ccc; }
.comment-send.comment-disabled{ opacity:.5; pointer-events:none; }

/* ---------- Footer ---------- */
footer{
  text-align:center;
  font-size:.9em;
  color:#777;
  padding:10px 0;
  border-top:1px solid #eee;
  margin-top:40px;
}

/* ====== Teasers / Cartes “Apple-like” ====== */
/* Moins d'espace autour des sections de tuiles */
.section.teaser{ padding: 36px 20px; }

/* Tuiles plus denses */
.tile{
  --radius: 28px;
  position: relative;
  display: block;
  width: 100%;
  max-width: 1000px;
  min-height: 50vh;                 /* avant 56vh */
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #111;

  background-image: var(--img, url('background.jpg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  transform: translateZ(0);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s;
}
.tile:hover{
  transform: translateY(-4px);
  box-shadow: 0 26px 80px rgba(0,0,0,.35);
}

.tile__overlay{
  position:absolute; inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.10) 60%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

/* Contenu: structure + moins d’écart */
.tile__content{
  position:absolute; left:0; right:0; bottom:0;
  padding: clamp(20px, 6vw, 48px);
  display:flex; flex-direction:column; gap:.8rem;
}
.tile__content h2{
  margin:0 0 .25em 0;
  font-size: clamp(1.8rem, 6vw, 3rem);
  letter-spacing:-.02em;
  color:#fff;
}

/* Extrait de poème “verre dépoli” */
.tile__sample{ margin:.2rem 0 .4rem; max-width:56ch; }
.tile__sample blockquote{
  margin:0;
  padding:12px 14px;
  border-left:3px solid rgba(255,255,255,.5);
  border-radius:12px;
  color:#fff;
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(6px) saturate(140%);
}
.tile__sample blockquote p{
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:3;          /* coupe à 3 lignes */
  -webkit-box-orient: vertical;
  overflow:hidden;
}
.tile__sample cite{
  display:block;
  margin-top:8px;
  font-style:normal;
  opacity:.85;
  font-weight:600;
}

/* Call-to-action */
.tile__cta{
  display:inline-block;
  padding:.6rem 1.1rem;
  border:1px solid rgba(255,255,255,.35);
  border-radius:999px;
  backdrop-filter:saturate(140%) blur(6px);
  background: rgba(255,255,255,.10);
  color:#fff;
  font-weight:600;
  text-decoration:none;
  transition: transform .2s, background .2s, border-color .2s;
}
.tile:hover .tile__cta{
  transform: translateY(-1px);
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.6);
}

/* Révélation douce au scroll */
.reveal{ opacity:0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  .tile, .reveal, .tile__cta{ transition: none !important; }
  .reveal{ opacity:1; transform:none; }
}
@media (max-width: 640px){
  .tile{ min-height: 46vh; }
}
