/* Sojolio — feuille de style unique
   Palette : encre (bleu nuit), papier, ciel, or, ruban. Une seule famille : Bricolage Grotesque (auto-hébergée). */

@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --encre: #1d2340;
  --encre-doux: #4a5070;
  --papier: #ffffff;
  --ciel: #e3eeff;
  --or: #f2b632;
  --or-clair: #ffe7a0;
  --or-fonce: #b07a0c;
  --ruban: #ff6f91;
  --nuit: #1d2340;
  --lune: #fff4cf;

  --f: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --mesure: 34rem;
  --large: 72rem;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f); color: var(--encre); background: var(--papier);
  font-size: 1.0625rem; line-height: 1.55; font-weight: 400;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ruban); }
:focus-visible { outline: 3px solid var(--ruban); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-weight: 750; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: var(--mesure); }
.chapo { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.45; color: var(--encre-doux); }

.wrap { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 var(--pad); }
.bloc { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.bloc--ciel { background: var(--ciel); }
.bloc--nuit { background: var(--nuit); color: var(--lune); }
.bloc--nuit .chapo { color: #c9cde6; }
.bloc--nuit a { color: var(--lune); }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid #eef0f6; }
.entete .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.6rem; letter-spacing: -0.05em; text-transform: lowercase; text-decoration: none; }
.logo__pastille { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--or-clair), var(--or) 50%, var(--or-fonce)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); position: relative; }
.logo__pastille::before { content: ""; position: absolute; left: 50%; top: -.55rem; width: .7rem; height: .7rem; transform: translateX(-50%); background: var(--ruban); clip-path: polygon(0 0, 100% 0, 75% 100%, 25% 100%); }
.nav { display: flex; gap: 1.4rem; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ruban); text-decoration-thickness: 3px; }
.nav-bouton { display: none; background: none; border: 1.5px solid var(--encre); border-radius: 999px; padding: .4rem .9rem; font: inherit; font-weight: 600; color: inherit; cursor: pointer; }

@media (max-width: 860px) {
  .nav-bouton { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 0; background: var(--papier); border-bottom: 1px solid #eef0f6; padding: .5rem var(--pad) 1rem; }
  .nav.is-ouverte { display: flex; }
  .nav a { padding: .6rem 0; font-size: 1.15rem; }
}

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 650; text-decoration: none; border: 2px solid var(--encre); background: var(--encre); color: var(--papier); cursor: pointer; font: inherit; font-weight: 650; line-height: 1.2; }
.btn:hover { background: #2c3460; text-decoration: none; }
.btn--clair { background: transparent; color: var(--encre); }
.btn--clair:hover { background: var(--encre); color: var(--papier); }
.btn--or { background: var(--or); border-color: var(--or); color: var(--encre); }
.btn--or:hover { background: var(--or-clair); border-color: var(--or-clair); }
.bloc--nuit .btn--clair { color: var(--lune); border-color: var(--lune); }
.bloc--nuit .btn--clair:hover { background: var(--lune); color: var(--nuit); }
.btn[aria-disabled="true"] { cursor: help; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.note-paiement { font-size: .9rem; color: var(--encre-doux); margin-top: .75rem; min-height: 1.2em; }
.bloc--nuit .note-paiement { color: #c9cde6; }

/* Héros */
.heros { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 8vw, 6rem); }
.heros .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.heros__texte p { max-width: 30rem; }
@media (max-width: 760px) { .heros .wrap { grid-template-columns: 1fr; } .heros__visuel { order: -1; } }

/* Médaille : le composant signature */
.medaille {
  --taille: 15rem; --r1: var(--ruban); --r2: #ffffff; --r3: #7cc4f5;
  width: var(--taille); margin: 0 auto; display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 0;
}
.medaille__ruban {
  width: calc(var(--taille) * .42); height: calc(var(--taille) * .62);
  background: linear-gradient(90deg, var(--r1) 0 30%, var(--r2) 30% 40%, var(--r3) 40% 60%, var(--r2) 60% 70%, var(--r1) 70% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}
.medaille__disque {
  width: var(--taille); aspect-ratio: 1; border-radius: 50%; margin-top: calc(var(--taille) * -.16);
  background: radial-gradient(circle at 32% 28%, #fff6d0 0, var(--or-clair) 18%, var(--or) 52%, var(--or-fonce) 100%);
  box-shadow: inset 0 0 0 calc(var(--taille) * .035) rgba(255,255,255,.28), inset 0 0 0 calc(var(--taille) * .05) var(--or-fonce), 0 calc(var(--taille) * .04) calc(var(--taille) * .08) rgba(29,35,64,.18);
  display: grid; place-items: center; text-align: center; padding: 18%;
  color: #6b4a06; text-shadow: 0 1px 0 rgba(255,255,255,.55);
  font-weight: 750; line-height: 1.05; letter-spacing: -0.01em;
  font-size: calc(var(--taille) * .095); overflow-wrap: anywhere;
}
.medaille__disque small { display: block; font-size: .62em; font-weight: 600; margin-top: .4em; opacity: .85; }
.medaille--balance { animation: balance 2.6s cubic-bezier(.3,.6,.3,1) .3s 1 both; }
@keyframes balance { 0% { transform: rotate(-9deg); } 30% { transform: rotate(6deg); } 55% { transform: rotate(-3deg); } 78% { transform: rotate(1.2deg); } 100% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .medaille--balance { animation: none; } }

/* Variantes de ruban par famille */
.r-quotidien { --r1: #ff6f91; --r2: #ffffff; --r3: #ffb3c4; }
.r-defis { --r1: #2f6fd8; --r2: #ffffff; --r3: #7cc4f5; }
.r-grands { --r1: #2f8a63; --r2: #ffffff; --r3: #9fe0bf; }
.r-famille { --r1: #f2b632; --r2: #1d2340; --r3: #ffe7a0; }

/* Manifeste */
.manifeste { font-size: clamp(1.3rem, 2.6vw, 1.85rem); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; }
.manifeste p { max-width: 40rem; }

/* Produits sur l'accueil */
.produit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.produit--inverse .produit__visuel { order: -1; }
@media (max-width: 760px) { .produit { grid-template-columns: 1fr; } .produit--inverse .produit__visuel { order: 0; } }
.prix-ligne { font-weight: 650; font-size: 1.1rem; }

/* L'heure + bulle */
.heure { font-size: clamp(5rem, 16vw, 10rem); font-weight: 800; letter-spacing: -0.06em; line-height: .85; color: var(--or); margin: 0 0 1.25rem; font-variant-numeric: tabular-nums; }
.bulle { background: var(--papier); color: var(--encre); border-radius: 1.4rem 1.4rem 1.4rem .3rem; padding: 1.2rem 1.35rem; font-size: 1.2rem; line-height: 1.4; font-weight: 550; max-width: 26rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.bulle__meta { display: block; font-size: .8rem; font-weight: 500; color: var(--encre-doux); margin-top: .7rem; }
.bulle--clair { box-shadow: 0 10px 30px rgba(29,35,64,.12); border: 1px solid #e6e9f3; }

/* Sélecteur de thème */
.themes { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }
.puce { border: 1.5px solid currentColor; background: transparent; color: inherit; border-radius: 999px; padding: .5rem 1rem; font: inherit; font-weight: 600; cursor: pointer; }
.puce[aria-pressed="true"] { background: var(--or); border-color: var(--or); color: var(--encre); }
.bloc:not(.bloc--nuit) .puce[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: var(--papier); }
.lien-bouton { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; margin-top: 1rem; }

/* Étapes (vraie séquence) */
.etapes { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: e; }
.etapes li { counter-increment: e; }
.etapes li::before { content: counter(e); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--or); color: var(--encre); font-weight: 800; margin-bottom: .9rem; }
.etapes h3 { margin-bottom: .3em; }
.etapes p { color: var(--encre-doux); }
@media (max-width: 760px) { .etapes { grid-template-columns: 1fr; } }

/* Tarifs */
.bascule { display: inline-flex; border: 1.5px solid var(--encre); border-radius: 999px; padding: .25rem; margin: 1rem 0 2rem; }
.bascule button { border: 0; background: transparent; color: var(--encre); font: inherit; font-weight: 600; padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer; }
.bascule button[aria-pressed="true"] { background: var(--encre); color: var(--papier); }
.tarifs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; max-width: 46rem; }
@media (max-width: 640px) { .tarifs { grid-template-columns: 1fr; } }
.tarif { border: 2px solid var(--encre); border-radius: 1.25rem; padding: 1.75rem; background: var(--papier); }
.tarif--mis-en-avant { border-color: var(--or); box-shadow: 6px 6px 0 var(--or); }
.tarif .tarif__prix { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: .3rem 0 .4rem; }
.tarif__prix span { font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.tarif p { color: var(--encre-doux); font-size: .97rem; }
.tarif .btn { width: 100%; margin-top: .5rem; }
.tarif__badge { display: inline-block; background: var(--or-clair); border-radius: 999px; padding: .15rem .65rem; font-size: .85rem; font-weight: 650; }
[hidden] { display: none !important; }

/* Catalogue de médailles */
.filtres { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2.5rem; }
.catalogue { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 2.5rem 1.5rem; }
.catalogue li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.catalogue .medaille { --taille: 8.5rem; margin-bottom: 1rem; }
.catalogue h3 { font-size: 1.05rem; margin: 0 0 .25rem; max-width: 13rem; }
.catalogue .prix { color: var(--encre-doux); font-size: .95rem; margin: 0 0 .75rem; }
.catalogue .btn { padding: .55rem 1.1rem; font-size: .95rem; }

/* Médaille personnalisée */
.perso { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 760px) { .perso { grid-template-columns: 1fr; } }
.champ { display: flex; flex-direction: column; gap: .4rem; margin: 1.25rem 0 .25rem; max-width: 26rem; }
.champ label { font-weight: 650; }
.champ input, .champ select { font: inherit; padding: .8rem 1rem; border: 2px solid var(--encre); border-radius: .8rem; background: var(--papier); color: var(--encre); }
.champ__aide { font-size: .9rem; color: var(--encre-doux); }

/* Listes de détails */
.details-produit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.details-produit h3 { margin-bottom: .3em; }
.details-produit p { color: var(--encre-doux); }
.bloc--nuit .details-produit p { color: #c9cde6; }
@media (max-width: 760px) { .details-produit { grid-template-columns: 1fr; } }

/* Futurs produits */
.bientot { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.bientot li { border: 1.5px dashed var(--encre-doux); border-radius: 1rem; padding: 1.25rem 1.35rem; }
.bientot strong { display: block; margin-bottom: .25rem; }
.bientot span { color: var(--encre-doux); font-size: .95rem; }

/* FAQ */
.faq { max-width: 46rem; }
.faq h2 { margin-top: 2.5rem; font-size: 1.6rem; }
.faq details { border-bottom: 1.5px solid #e1e4ef; padding: 1.1rem 0; }
.faq summary { font-weight: 650; font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--ruban); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--encre-doux); }

/* Pages de texte (légal, à propos) */
.texte { max-width: 44rem; }
.texte h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.texte h3 { font-size: 1.15rem; margin-top: 1.75rem; }
.texte p, .texte li { max-width: none; color: #2e3456; }
.texte ul { padding-left: 1.2rem; }
.a-completer { background: var(--or-clair); padding: 0 .25rem; border-radius: .2rem; }

/* Pied de page */
.pied { background: var(--nuit); color: #c9cde6; padding: 3.5rem 0 2.5rem; font-size: .95rem; }
.pied .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.pied .logo { color: var(--lune); margin-bottom: .75rem; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.pied a { color: #e6e8f5; text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied__bas { grid-column: 1 / -1; border-top: 1px solid #333a5e; padding-top: 1.5rem; margin-top: 1rem; font-size: .88rem; }
@media (max-width: 760px) { .pied .wrap { grid-template-columns: 1fr; } }

/* Message éphémère */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--encre); color: var(--papier); padding: .8rem 1.2rem; border-radius: 999px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 50; max-width: calc(100% - 2rem); text-align: center; }

.centre { text-align: center; }
.centre p { margin-left: auto; margin-right: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) {
  .catalogue { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .catalogue .medaille { --taille: 7rem; }
  .catalogue h3 { font-size: .98rem; }
  .catalogue .prix { font-size: .85rem; }
}

/* Boîte « Rien » */
.boite { --t: 14rem; width: var(--t); margin: 0 auto; position: relative; padding-top: calc(var(--t) * .2); }
.boite__noeud { position: absolute; top: calc(var(--t) * .03); left: 50%; width: calc(var(--t) * .46); height: calc(var(--t) * .2); transform: translateX(-50%); transition: transform .5s cubic-bezier(.3,.7,.3,1); }
.boite__noeud svg { width: 100%; height: 100%; overflow: visible; }
.boite__couvercle { position: relative; z-index: 2; height: calc(var(--t) * .2); margin: 0 -5%; background: linear-gradient(90deg, #343d6e 0 43%, var(--or) 43% 57%, #343d6e 57%); border-radius: calc(var(--t) * .03); box-shadow: 0 calc(var(--t) * .02) 0 rgba(0,0,0,.18); transition: transform .5s cubic-bezier(.3,.7,.3,1); }
.boite__corps { position: relative; height: calc(var(--t) * .74); background: linear-gradient(90deg, var(--nuit) 0 43%, var(--or) 43% 57%, var(--nuit) 57%); border-radius: 0 0 calc(var(--t) * .03) calc(var(--t) * .03); box-shadow: 0 calc(var(--t) * .05) calc(var(--t) * .1) rgba(29,35,64,.2); }
.boite__etiquette { position: absolute; z-index: 3; right: -9%; bottom: 14%; background: var(--papier); color: var(--encre); padding: .3em .75em; border-radius: .35em; transform: rotate(-8deg); font-weight: 800; letter-spacing: -0.03em; font-size: calc(var(--t) * .13); box-shadow: 0 6px 14px rgba(29,35,64,.18); }
.boite__dedans { position: absolute; z-index: 1; left: 0; right: 0; top: calc(var(--t) * .2); text-align: center; color: var(--encre-doux); font-weight: 600; font-size: calc(var(--t) * .075); opacity: 0; transition: opacity .3s .25s; }
.boite.is-ouverte .boite__couvercle { transform: translate(18%, -95%) rotate(14deg); }
.boite.is-ouverte .boite__noeud { transform: translate(-12%, -150%) rotate(14deg); }
.boite.is-ouverte .boite__dedans { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .boite__couvercle, .boite__noeud { transition: none; } }
.liste-simple { padding-left: 1.2rem; margin: 0; }
.liste-simple li { margin-bottom: .5rem; max-width: 34rem; }
.occasions { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.occasions li { border: 1.5px solid currentColor; border-radius: 999px; padding: .4rem .95rem; font-weight: 600; }

/* Logo étiquette (fichiers vectoriels dans assets/logo/) */
.logo img { display: block; height: 3.1rem; width: auto; }
.pied .logo img { height: 3.6rem; }
.pied__bas { max-width: none; }
