/* ============================================================
   Rosy Bloom — v6 « Papeterie joyeuse, deux couleurs »
   Blanc crème · encre brune · corail du logo + miel
   Baloo 2 (voix ronde) · Nunito (texte)
   ============================================================ */

:root {
  --fond: #FFFCF6;
  --encre: #3D2F2A;
  --encre-douce: #7A675F;
  --corail: #D2604E;
  --corail-fonce: #B44634;
  --t-corail: #FBE6DF;
  --miel: #F0B94A;
  --miel-fonce: #B07B18;
  --t-miel: #FCEFD4;
  --blanc: #FFFFFF;
  --r-bloc: 32px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-rebond: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ombre-douce: 0 14px 34px -18px rgba(61, 47, 42, 0.3);
  --ombre-haute: 0 26px 52px -22px rgba(61, 47, 42, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--encre);
  background: var(--fond);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Mot surligné au feutre */
h1 em, h2 em {
  font-style: normal;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

h1 em::before, h2 em::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.1em; right: -0.1em;
  bottom: 0.1em;
  height: 0.34em;
  border-radius: 0.2em;
  background: var(--miel);
  opacity: 0.8;
  transform: rotate(-1deg);
}

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--miel); color: var(--encre); }

:focus-visible { outline: 3px solid var(--corail); outline-offset: 3px; border-radius: 8px; }

html { scrollbar-color: var(--corail) var(--fond); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--fond); }
::-webkit-scrollbar-thumb { background: var(--corail); border-radius: 6px; border: 3px solid var(--fond); }

/* ============ Boutons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.8em 1.7em;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 200ms var(--ease-rebond), background-color 200ms ease, color 200ms ease, box-shadow 220ms ease;
}

.btn:active { transform: scale(0.95); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-3px); }
}

.btn svg { width: 18px; height: 18px; transition: transform 240ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover svg { transform: translateX(4px); }
}

.btn-vermillon {
  background: var(--corail);
  color: #FFF;
  box-shadow: 0 12px 26px -10px rgba(210, 96, 78, 0.6);
}
.btn-vermillon:hover { background: var(--corail-fonce); }

.btn-encre {
  background: var(--encre);
  color: #FFF;
  box-shadow: 0 12px 26px -12px rgba(61, 47, 42, 0.5);
}
.btn-encre:hover { background: var(--corail-fonce); }

.btn-blanc {
  background: var(--blanc);
  color: var(--encre);
  box-shadow: var(--ombre-douce);
}
.btn-blanc:hover { background: var(--encre); color: #FFF; }

.btn-contour {
  background: transparent;
  color: var(--encre);
  box-shadow: inset 0 0 0 2px rgba(61, 47, 42, 0.22);
}
.btn-contour:hover { background: var(--t-miel); box-shadow: inset 0 0 0 2px var(--miel); }

/* ============ Header ============ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 252, 246, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.site-header.scrolled {
  background: rgba(255, 252, 246, 0.96);
  border-bottom-color: rgba(61, 47, 42, 0.09);
  box-shadow: 0 12px 32px -26px rgba(61, 47, 42, 0.5);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: min-height 250ms var(--ease-out);
}

.site-header.scrolled .header-inner { min-height: 64px; }

.brand img {
  width: 148px;
  height: auto;
  transition: width 250ms var(--ease-out);
}

.site-header.scrolled .brand img { width: 122px; }

/* Navigation et bouton groupés à droite : plus de trou au milieu */
.header-droite {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav { display: flex; gap: 26px; }

.site-nav a {
  color: var(--encre);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  padding: 4px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -3px;
  height: 4px;
  border-radius: 4px;
  background: var(--miel);
  transition: right 280ms var(--ease-out);
}

.site-nav a[aria-current="page"] { color: var(--corail-fonce); }
.site-nav a[aria-current="page"]::after { right: 0; }

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover::after { right: 0; }
}

.btn-header { font-size: 0.98rem; padding: 0.62em 1.35em; }

/* ============ Hero ============ */

.hero {
  position: relative;
  min-height: min(84vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 150px 28px 80px;
  overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Ccircle cx='30' cy='40' r='5' fill='%23F0B94A' opacity='0.35'/%3E%3Ccircle cx='140' cy='90' r='4' fill='%23D2604E' opacity='0.22'/%3E%3Ccircle cx='220' cy='30' r='5' fill='%23F0B94A' opacity='0.28'/%3E%3Ccircle cx='70' cy='180' r='4' fill='%23D2604E' opacity='0.2'/%3E%3Ccircle cx='200' cy='200' r='5' fill='%23F0B94A' opacity='0.3'/%3E%3Ccircle cx='250' cy='130' r='3' fill='%23D2604E' opacity='0.25'/%3E%3C/svg%3E"),
    var(--fond);
}

.hero-inner { max-width: 1240px; margin: 0 auto; width: 100%; position: relative; }

.hero-titre {
  font-size: clamp(2.6rem, 8vw, 6.8rem);
  text-wrap: initial;
  font-weight: 800;
}

.hero-titre .ligne { display: block; overflow: hidden; }

.hero-titre .ligne > span {
  display: inline-block;
  white-space: nowrap;
  transform: translateY(112%);
  animation: ligne-monte 950ms var(--ease-expo) forwards;
}

.hero-titre .ligne:nth-child(2) > span { animation-delay: 100ms; }
.hero-titre .ligne:nth-child(3) > span { animation-delay: 200ms; }

@keyframes ligne-monte { to { transform: translateY(0); } }

.hero-bas {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  opacity: 0;
  animation: apparait 800ms var(--ease-out) 520ms forwards;
}

@keyframes apparait { to { opacity: 1; } }

.hero-pitch {
  max-width: 42ch;
  font-size: 1.16rem;
  color: var(--encre-douce);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Gribouillis en parallaxe, deux couleurs seulement */
.scribble {
  position: absolute;
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: 0.7;
  will-change: transform;
}

.hero .scribble-boucle { stroke: var(--miel); width: 110px; right: 4%; top: 10%; }
.hero .scribble-eclair { stroke: var(--corail); width: 66px; left: 58%; top: 6%; opacity: 0.5; }
.hero .scribble-coeur { stroke: var(--corail); width: 70px; right: 12%; bottom: 26%; opacity: 0.5; }
.hero .scribble-etoile { stroke: var(--miel); width: 56px; left: 2%; bottom: 22%; }

/* ============ Têtes de section ============ */

.section-tete {
  max-width: 1240px;
  margin: 0 auto 52px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-tete h2 { font-size: clamp(2.2rem, 5vw, 3.7rem); }

.section-tete p { max-width: 44ch; color: var(--encre-douce); font-size: 1.1rem; }

/* ============ Rayon (cartes) ============ */

.rayon { padding: 100px 28px 112px; }

.blocs {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 1080px) { .blocs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .blocs { grid-template-columns: 1fr; } }

.bloc {
  position: relative;
  border-radius: var(--r-bloc);
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--blanc);
  box-shadow: var(--ombre-douce);
  transition: transform 350ms var(--ease-rebond), box-shadow 350ms var(--ease-out);
}

/* Chapeau coloré arrondi derrière la couverture */
.bloc::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 46%;
  border-radius: var(--r-bloc) var(--r-bloc) 46% 46% / var(--r-bloc) var(--r-bloc) 18% 18%;
}

.bloc--corail::before { background: var(--t-corail); }
.bloc--miel::before { background: var(--t-miel); }

@media (hover: hover) and (pointer: fine) {
  .bloc:hover { transform: translateY(-10px) rotate(-0.5deg); box-shadow: var(--ombre-haute); }
  .bloc:hover .bloc-couv img { transform: rotate(0deg) scale(1.03); }
}

.bloc-couv { display: block; margin-bottom: 22px; position: relative; }

.bloc-couv img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  transform: rotate(-2deg);
  box-shadow: 0 0 0 5px var(--blanc), 0 18px 34px -16px rgba(61, 47, 42, 0.4);
  transition: transform 450ms var(--ease-rebond);
}

.bloc-etiquette {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  background: var(--corail);
  color: #FFF;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.35em 1em;
  border-radius: 999px;
  transform: rotate(4deg);
  box-shadow: 0 8px 18px -8px rgba(180, 70, 52, 0.5);
}

.bloc-envie {
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.bloc--corail .bloc-envie { color: var(--corail-fonce); }
.bloc--miel .bloc-envie { color: var(--miel-fonce); }

.bloc h3 { font-size: clamp(1.5rem, 1.9vw, 1.85rem); margin-top: 2px; }

.bloc-desc { margin-top: 8px; font-size: 1rem; color: var(--encre-douce); flex: 1; }

.bloc .btn { margin-top: 20px; align-self: flex-start; font-size: 0.98rem; padding: 0.7em 1.5em; }

/* ============ Bande énoncé (manifeste) ============ */

.manifeste {
  background: var(--t-miel);
  color: var(--encre);
  padding: 116px 28px;
  position: relative;
  overflow: hidden;
}

.manifeste .scribble-boucle { stroke: var(--miel); width: 110px; right: 5%; top: 12%; }
.manifeste .scribble-etoile { stroke: var(--corail); width: 58px; left: 6%; bottom: 16%; opacity: 0.5; }

.manifeste-inner { max-width: 1020px; margin: 0 auto; }

.manifeste p {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4.2vw, 3.2rem);
  line-height: 1.22;
}

.manifeste em { font-style: normal; position: relative; z-index: 1; white-space: nowrap; }

.manifeste em::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.1em; right: -0.1em;
  bottom: 0.1em;
  height: 0.34em;
  border-radius: 0.2em;
  transform: rotate(-1deg);
  background: var(--blanc);
  opacity: 0.9;
}

.manifeste .mot-vermillon,
.manifeste .mot-rose { color: var(--corail-fonce); }
.manifeste .mot-soleil,
.manifeste .mot-menthe { color: var(--encre); }

.manifeste .btn { margin-top: 42px; }

/* ============ Bandeau pages intérieures ============ */

.bandeau-page {
  position: relative;
  padding: 172px 28px 66px;
  overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Ccircle cx='30' cy='40' r='5' fill='%23F0B94A' opacity='0.35'/%3E%3Ccircle cx='140' cy='90' r='4' fill='%23D2604E' opacity='0.22'/%3E%3Ccircle cx='220' cy='30' r='5' fill='%23F0B94A' opacity='0.28'/%3E%3Ccircle cx='70' cy='180' r='4' fill='%23D2604E' opacity='0.2'/%3E%3Ccircle cx='200' cy='200' r='5' fill='%23F0B94A' opacity='0.3'/%3E%3Ccircle cx='250' cy='130' r='3' fill='%23D2604E' opacity='0.25'/%3E%3C/svg%3E"),
    var(--fond);
}

.bandeau-inner { max-width: 1240px; margin: 0 auto; }

.bandeau-page h1 { font-size: clamp(2.4rem, 6.6vw, 5.4rem); font-weight: 800; }

.bandeau-page .sous-titre {
  margin-top: 30px;
  max-width: 52ch;
  color: var(--encre-douce);
  font-size: 1.15rem;
}

.bandeau-page .scribble-eclair { stroke: var(--miel); width: 66px; right: 8%; top: 28%; }
.bandeau-page .scribble-coeur { stroke: var(--corail); width: 64px; right: 20%; bottom: 8%; opacity: 0.5; }

/* ============ Filtres ============ */

.filtres {
  max-width: 1240px;
  margin: 0 auto 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filtre {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--encre);
  background: var(--blanc);
  border: 2px solid rgba(61, 47, 42, 0.16);
  border-radius: 999px;
  padding: 0.5em 1.4em;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms var(--ease-rebond);
}

.filtre:active { transform: scale(0.94); }

@media (hover: hover) and (pointer: fine) {
  .filtre:hover { border-color: var(--corail); color: var(--corail-fonce); transform: translateY(-2px); }
}

.filtre[aria-pressed="true"] {
  background: var(--corail);
  border-color: var(--corail);
  color: #FFF;
}

.bloc[hidden] { display: none; }

/* ============ Page à propos ============ */

.citation {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 28px 86px;
}

.citation blockquote {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4.2vw, 3.1rem);
  line-height: 1.26;
  text-wrap: balance;
}

.citation blockquote strong {
  font-weight: 700;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.citation blockquote strong::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.1em; right: -0.1em;
  bottom: 0.1em;
  height: 0.34em;
  border-radius: 0.2em;
  transform: rotate(-1deg);
  background: var(--miel);
  opacity: 0.8;
}

.citation figcaption {
  margin-top: 20px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--encre-douce);
}

.duo {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px 86px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.duo-bloc {
  border-radius: var(--r-bloc);
  padding: 36px 32px;
  box-shadow: var(--ombre-douce);
  background: var(--blanc);
  border-top: 8px solid;
  transition: transform 350ms var(--ease-rebond), box-shadow 350ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .duo-bloc:hover { transform: translateY(-8px); box-shadow: var(--ombre-haute); }
}

.duo-bloc h3 { font-size: 1.55rem; }

.duo-bloc p { margin-top: 10px; font-size: 1rem; color: var(--encre-douce); }

.duo-bloc svg {
  width: 44px; height: 44px;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 16px;
}

.duo-bloc--corail { border-color: var(--corail); }
.duo-bloc--corail svg { stroke: var(--corail-fonce); }
.duo-bloc--miel { border-color: var(--miel); }
.duo-bloc--miel svg { stroke: var(--miel-fonce); }

.portrait {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px 96px;
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 56px;
  align-items: center;
}

.portrait-image {
  border-radius: var(--r-bloc);
  overflow: hidden;
  transform: rotate(-2deg);
  box-shadow: 0 0 0 6px var(--blanc), var(--ombre-haute);
}

.portrait-image img { aspect-ratio: 1 / 1.1; object-fit: cover; }

.portrait h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }

.portrait p { margin-top: 14px; color: var(--encre-douce); font-size: 1.08rem; }

/* ============ Appel final ============ */

.appel {
  position: relative;
  background: var(--t-corail);
  padding: 112px 28px;
  overflow: hidden;
  text-align: center;
}

.appel .scribble-boucle { stroke: var(--miel); width: 100px; right: 6%; top: 14%; }
.appel .scribble-etoile { stroke: var(--corail); width: 58px; left: 7%; bottom: 18%; opacity: 0.5; }

.appel h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }

.appel p { margin: 16px auto 0; max-width: 50ch; font-size: 1.12rem; color: var(--encre-douce); }

.appel .btn { margin-top: 32px; }

/* ============ Footer ============ */

.site-footer {
  background: var(--encre);
  color: var(--fond);
  padding: 64px 28px 40px;
  overflow: hidden;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--corail), var(--miel));
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-bas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

/* Le logo script sur fond sombre : encadré clair, comme une étiquette */
.footer-bas img {
  width: 168px;
  background: var(--fond);
  padding: 12px 18px;
  border-radius: 18px;
}

.footer-bas nav { display: flex; gap: 24px; flex-wrap: wrap; }

.footer-bas nav a { color: var(--fond); text-decoration: none; font-weight: 700; }
.footer-bas nav a:hover { color: var(--miel); }

.footer-bas p { color: rgba(255, 252, 246, 0.65); font-size: 0.9rem; }

/* ============ Révélations ============ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ease-expo), transform 700ms var(--ease-expo);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.blocs .reveal:nth-child(2), .duo .reveal:nth-child(2) { transition-delay: 90ms; }
.blocs .reveal:nth-child(3), .duo .reveal:nth-child(3) { transition-delay: 180ms; }
.blocs .reveal:nth-child(4) { transition-delay: 100ms; }
.blocs .reveal:nth-child(5) { transition-delay: 190ms; }

/* ============ Responsive ============ */

@media (max-width: 960px) {
  .hero { min-height: 0; padding-top: 160px; }
  .portrait { grid-template-columns: 1fr; gap: 40px; }
  .portrait-image { max-width: 320px; }
}

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; padding-block: 12px; gap: 10px 18px; min-height: 0; justify-content: center; }
  .site-header.scrolled .header-inner { min-height: 0; }
  .brand img, .site-header.scrolled .brand img { width: 132px; }
  .header-droite { width: 100%; justify-content: center; gap: 0; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 0.98rem; }
  .btn-header { display: none; }
  html { scroll-padding-top: 126px; }
  .hero, .bandeau-page { padding-top: 162px; }
  .hero-bas { gap: 20px; }
  .hero .scribble-coeur, .hero .scribble-etoile, .bandeau-page .scribble-coeur { display: none; }
  .manifeste { padding: 88px 24px; }
  .footer-bas { justify-content: center; text-align: center; }
}

/* ============ Mouvement réduit ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-titre .ligne > span { animation: none; transform: none; }
  .hero-bas { animation: none; opacity: 1; }
  .scribble { transform: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .bloc, .bloc-couv img, .duo-bloc, .filtre { transition: none; }
}
