/* Charte JIRANI, reprise du nouveau design (export « Bundled Page » du
   12 octobre 2026). Palette et typographie de marque ; coins arrondis
   (pilules pour les boutons, 14 à 28 px pour les cartes et images). */

:root {
  color-scheme: light;
  --color-bg: #F6EDE1; --color-surface: #EFD9C2; --color-text: #2A1A12;
  --color-accent: #B4451F; --color-accent-700: #8C3517; --color-accent-2: #75592E;
  --font-heading: "Archivo", system-ui, sans-serif; --font-body: "Archivo", system-ui, sans-serif;
  /* crème, sable, encre, brique, fauve */
  --c: #F6EDE1; --s: #EFD9C2; --e: #2A1A12; --b: #B4451F; --f: #75592E;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; text-wrap: pretty; background: var(--c); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--b); text-decoration: none; }
a:hover { color: var(--e); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--b); outline-offset: 3px; }

.w { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4.5vw, 72px); }
.d1 { font-size: clamp(42px, 6.2vw, 92px); line-height: 0.98; letter-spacing: -0.04em; }
.d2 { font-size: clamp(32px, 4vw, 58px); line-height: 1.02; letter-spacing: -0.035em; }
.d3 { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.15; letter-spacing: -0.02em; }
.k { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; line-height: 1; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--f); }
.k::before { content: ""; width: 8px; height: 8px; flex: 0 0 8px; background: var(--b); }
.nl { font-size: 15px; font-weight: 500; color: var(--e); white-space: nowrap; }
.nl:hover { color: var(--b); }
.btn1 { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; background: var(--b); color: var(--c); white-space: nowrap; border: 0; cursor: pointer; font-family: var(--font-heading); transition: background .2s; }
.btn1:hover { background: var(--e); color: var(--c); }
.btn2 { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 2px solid var(--e); color: var(--e); white-space: nowrap; transition: all .2s; }
.btn2:hover { background: var(--e); color: var(--c); }
.ph { overflow: hidden; border-radius: 18px; background: var(--s); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.hv:hover .ph img { transform: scale(1.05); }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
.g2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); }
.bento { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 18px; }
.bento > .big { grid-row: span 2; }
.fam { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ben { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.rail::-webkit-scrollbar { display: none; }
.arw { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 999px; border: 2px solid var(--e); background: transparent; color: var(--e); font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-heading); transition: all .2s; }
.arw:hover { background: var(--b); border-color: var(--b); color: var(--c); }
.burger { display: none; }
.menu[hidden] { display: none; }

/* Textes riches des cartes « Ce que JIRANI apporte » : un filet par paragraphe */
.ben-txt p { margin: 0; font-size: 16px; line-height: 1.65; padding-top: 18px; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.ben-txt b, .ben-txt strong { font-weight: 700; }
.ben-txt { display: flex; flex-direction: column; gap: 22px; }
.lead-txt p { margin: 0 0 12px; max-width: 46ch; font-size: 17px; }
.lead-txt p + p { margin: 0; color: color-mix(in srgb, var(--c) 84%, transparent); }
.obj-txt p { margin: 0; }
.obj-txt b, .obj-txt strong { font-weight: 700; color: var(--e); }

/* Modales (fiche d'une famille, application bientôt disponible) */
.mdl-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(42,26,18,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.mdl-wrap[hidden] { display: none; }
.mdl { position: relative; width: 100%; max-width: 760px; max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; background: var(--c); color: var(--e); border-radius: 26px; box-shadow: 0 30px 80px rgba(42,26,18,.35); animation: jr-pop .2s cubic-bezier(.2,.8,.3,1); }
.mdl-img { position: relative; height: clamp(160px, 32vh, 340px); overflow: hidden; border-radius: 26px 26px 0 0; background: var(--s); }
.mdl-x { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 999px; border: 0; background: var(--c); color: var(--e); font-size: 22px; line-height: 1; cursor: pointer; font-family: var(--font-heading); }
@keyframes jr-pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mdl { animation: none; } }

/* Bloc de téléchargement de l'application, badges style officiel */
.jr-stores { display: flex; flex-wrap: wrap; gap: 14px; }
.jr-badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; min-width: 190px; background: #000; color: #fff; border: 1px solid #000; border-radius: 9px; cursor: pointer; font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; transition: opacity .15s; }
.jr-badge:hover { opacity: 0.82; }
.jr-badge svg { flex: 0 0 auto; }
.jr-badge-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.jr-badge-txt small { font-size: 11px; font-weight: 400; letter-spacing: 0.01em; }
.jr-badge-txt strong { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-top: 1px; }

@media (max-width: 1080px) { .ben { grid-template-columns: 1fr; } .fam { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 920px) {
  .navlinks, .navcta { display: none !important; }
  .burger { display: inline-flex; }
  .hero, .g2, .bento { grid-template-columns: 1fr; }
  .bento > .big { grid-row: auto; }
  .hero-sm { left: 12px !important; }
}
@media (min-width: 921px) { .menu { display: none !important; } }
@media (max-width: 560px) {
  .fam { grid-template-columns: 1fr; }
  .mdl-wrap { padding: 0; align-items: flex-end; }
  .mdl { max-height: 92dvh; border-radius: 22px 22px 0 0; }
  .mdl-img { height: 190px; border-radius: 22px 22px 0 0; }
  .mdl-cta { padding: 14px 18px !important; font-size: 14px !important; }
  .btn1, .btn2 { white-space: normal; }
  .d1 { font-size: 40px; }
  .jr-badge { min-width: 0; flex: 1 1 160px; }
}
