/* Zoharys : la maison des outils. Ambiance « crépuscule » : nuit indigo, horizon orangé, étoile dorée. */
:root {
  --nuit: #0D0B26;
  --nuit-2: #17133A;
  --violet: #34265F;
  --prune: #5B2F5E;
  --braise: #C96B45;
  --or: #F7C873;
  --or-fonce: #B7792B;
  --creme: #FBF7EF;
  --papier: #FFFFFF;
  --encre: #18152E;
  --gris: #5B5770;
  --gris-clair: #C9C4DA;
  --bord: #E8E1D2;
  --rayon: 20px;
  --ombre: 0 1px 2px rgba(24, 21, 46, .06), 0 12px 32px -12px rgba(24, 21, 46, .18);
  --police: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --police-titre: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--police); color: var(--encre); background: var(--creme); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h2 { font-family: var(--police-titre); font-weight: 600; font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 6px; }

.cadre { width: min(1120px, 100% - 32px); margin-inline: auto; }
.evitement { position: absolute; left: -999px; top: 8px; background: var(--papier); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.evitement:focus { left: 16px; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 20; background: rgba(13, 11, 38, .38); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); transition: background .3s ease, box-shadow .3s ease; }
.entete-pleine { background: rgba(13, 11, 38, .9); box-shadow: 0 10px 30px -18px rgba(13, 11, 38, .9); }
.entete-ligne { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-family: var(--police-titre); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 17px; white-space: nowrap; }
.marque img { transition: transform .5s cubic-bezier(.2, .8, .2, 1), filter .5s ease; }
.marque:hover img { transform: scale(1.12); filter: drop-shadow(0 0 6px rgba(242, 182, 90, .7)); }
.menu { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.menu a:not(.bouton) { position: relative; color: rgba(255, 255, 255, .74); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: color .2s ease, background .2s ease; }
.menu a:not(.bouton):hover { color: #fff; background: rgba(255, 255, 255, .07); }
.menu a[aria-current] { color: #fff; }
.menu a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--or); box-shadow: 0 0 8px var(--or); }
.menu .menu-appel { display: none; }
.burger { display: none; position: relative; width: 44px; height: 44px; margin-left: 4px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; background: rgba(255, 255, 255, .06); cursor: pointer; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s ease, top .25s ease; }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
section[id] { scroll-margin-top: 72px; }

/* ---------- Boutons ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 650; font-size: 15px; text-decoration: none; color: var(--nuit); background: linear-gradient(135deg, #FFE3A8, var(--or) 55%, #EFA25F); box-shadow: 0 6px 20px -8px rgba(232, 137, 74, .7); transition: transform .15s ease, box-shadow .15s ease; white-space: nowrap; }
.bouton:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -8px rgba(232, 137, 74, .8); }
.bouton-grand { padding: 15px 28px; font-size: 16px; }
.bouton-petit { padding: 8px 16px; font-size: 14px; }
.bouton-verre { color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); box-shadow: none; }
.bouton-verre:hover { background: rgba(255, 255, 255, .14); box-shadow: none; }
.lien-fleche { font-weight: 650; text-decoration: none; color: var(--teinte, var(--encre)); }
.lien-fleche span { display: inline-block; transition: transform .15s ease; }
.lien-fleche:hover span { transform: translateX(3px); }

/* ---------- Ciel (en-tête de page) ---------- */
.ciel { position: relative; overflow: hidden; color: #fff; padding: 120px 0 170px; margin-top: -64px; padding-top: 184px;
  background: linear-gradient(180deg, var(--nuit) 0%, var(--nuit-2) 38%, var(--violet) 64%, var(--prune) 82%, var(--braise) 100%); }
.etoiles { position: absolute; inset: 0; opacity: .85;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff 60%, transparent),
    radial-gradient(1px 1px at 28% 34%, #fff 60%, transparent),
    radial-gradient(1.6px 1.6px at 44% 12%, #FFF3D6 60%, transparent),
    radial-gradient(1px 1px at 58% 28%, #fff 60%, transparent),
    radial-gradient(1.2px 1.2px at 71% 9%, #fff 60%, transparent),
    radial-gradient(1px 1px at 83% 22%, #fff 60%, transparent),
    radial-gradient(1.4px 1.4px at 92% 40%, #FFF3D6 60%, transparent),
    radial-gradient(1px 1px at 6% 46%, #fff 60%, transparent),
    radial-gradient(1.2px 1.2px at 36% 52%, #fff 60%, transparent),
    radial-gradient(1px 1px at 64% 48%, #fff 60%, transparent),
    radial-gradient(1px 1px at 19% 64%, #fff 60%, transparent),
    radial-gradient(1px 1px at 52% 70%, #fff 50%, transparent);
  animation: scintille 6s ease-in-out infinite alternate; }
@keyframes scintille { from { opacity: .55; } to { opacity: .95; } }
.astre { position: absolute; right: max(4vw, calc(50% - 540px)); top: 128px; width: 120px; filter: drop-shadow(0 0 28px rgba(247, 200, 115, .75)) drop-shadow(0 0 70px rgba(232, 137, 74, .45)); animation: flotte 7s ease-in-out infinite; }
.astre::before { content: ""; position: absolute; inset: -90px; background: radial-gradient(circle, rgba(247, 200, 115, .28), transparent 62%); z-index: -1; }
@keyframes flotte { 50% { transform: translateY(-8px); } }
.ciel-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ciel-vivant .etoiles { display: none; }
.horizon { position: absolute; left: -25%; right: -25%; bottom: -170px; height: 260px; border-radius: 50%; background: var(--creme); box-shadow: 0 -30px 80px 10px rgba(247, 200, 115, .35); }
.ciel + .section { margin-top: -1px; }
.ciel-texte { position: relative; max-width: 1120px; }
.sur-titre { font-size: 13px; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; color: var(--or); margin-bottom: 18px; }
.sur-titre.sombre { color: var(--or-fonce); }
.ciel h1 { font-family: var(--police-titre); font-weight: 600; font-size: clamp(42px, 7vw, 80px); letter-spacing: -.02em; max-width: 13ch; }
.ciel h1 em { font-style: italic; color: var(--or); }
.chapo { margin-top: 24px; max-width: 560px; font-size: clamp(17px, 2vw, 20px); color: rgba(255, 255, 255, .82); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.acces-direct { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 34px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.acces-direct > span { letter-spacing: .14em; text-transform: uppercase; font-weight: 650; font-size: 11.5px; }
.raccourci { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 650; font-size: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); transition: background .2s ease, border-color .2s ease; }
.raccourci img { width: 24px; height: 24px; padding: 3px; border-radius: 50%; background: #CCFBF1; }
.raccourci small { font-weight: 500; color: rgba(255, 255, 255, .6); }
.raccourci small::before { content: "· "; }
.raccourci:hover { background: rgba(255, 255, 255, .13); border-color: var(--teinte); }

/* Apparition du texte d'accueil, puis des blocs au fil du défilement */
.apparait { animation: monte .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--delai, 0ms); }
@keyframes monte { from { opacity: 0; transform: translateY(16px); } }
.js [data-revele] { opacity: 0; translate: 0 22px; transition: opacity .7s ease var(--delai, 0ms), translate .7s cubic-bezier(.2, .8, .2, 1) var(--delai, 0ms), transform .2s ease, box-shadow .2s ease; }
.js [data-revele].revele { opacity: 1; translate: none; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tete { max-width: 640px; margin-bottom: 48px; }
.section-tete p:not(.sur-titre) { margin-top: 14px; color: var(--gris); font-size: 18px; }

/* ---------- Outils ---------- */
#outils { padding-top: 40px; }
.grille-outils { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.outil { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px; background: var(--papier); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); transition: transform .2s ease, box-shadow .2s ease; overflow: hidden; }
.outil::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--teinte), var(--teinte-vive)); }
.outil:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(24, 21, 46, .06), 0 22px 44px -16px rgba(24, 21, 46, .28); }
.outil > * { position: relative; }
.outil[data-lueur]::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(360px circle at var(--x, 50%) var(--y, 0%), color-mix(in srgb, var(--teinte-vive) 16%, transparent), transparent 70%); }
.outil[data-lueur]:hover::after { opacity: 1; }
.outil-lien { color: inherit; text-decoration: none; }
.outil-lien:hover { color: var(--teinte); }
.point-vivant { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--teinte-vive, #2DD4BF); vertical-align: 1px; box-shadow: 0 0 0 0 color-mix(in srgb, var(--teinte-vive) 60%, transparent); animation: pouls 2.2s ease-out infinite; }
@keyframes pouls { 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.points { list-style: none; padding: 0; margin: 2px 0 0; display: grid; gap: 8px; }
.points li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--encre); }
.points li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teinte-claire) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%230F766E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.outil-haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.outil-logo { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--teinte-claire); }
.pastille { font-size: 12.5px; font-weight: 650; padding: 5px 11px; border-radius: 999px; color: var(--teinte); background: var(--teinte-claire); }
.outil h3 { font-size: 26px; font-weight: 700; margin-top: 6px; }
.outil-accroche { font-weight: 600; color: var(--teinte); }
.outil p:not(.outil-accroche) { color: var(--gris); }
.etiquettes { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 2px 0 0; }
.etiquettes li { font-size: 13px; padding: 4px 10px; border-radius: 8px; background: var(--creme); border: 1px solid var(--bord); color: var(--gris); }
.outil-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: auto; padding-top: 10px; }
.outil .bouton { color: #fff; background: var(--teinte); box-shadow: none; }
.outil .bouton:hover { filter: brightness(1.08); box-shadow: none; }
.outil-futur { --teinte: var(--or-fonce); --teinte-claire: #FBF0DA; --teinte-vive: var(--or); background: transparent; border: 1.5px dashed #D9CDB4; box-shadow: none; }
.outil-futur::before { display: none; }
.outil-futur:hover { transform: none; box-shadow: none; }
.outil-logo-vide img { opacity: .55; }
.pastille-calme { color: var(--or-fonce); }

/* ---------- Le nom ---------- */
.section-nuit { color: #fff; background: radial-gradient(900px 480px at 85% 0%, rgba(91, 47, 94, .55), transparent 70%), var(--nuit); }
.recit { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.recit-texte p:not(.sur-titre) { margin-top: 16px; color: rgba(255, 255, 255, .8); font-size: 18px; max-width: 46ch; }
.recit-texte strong { color: var(--or); font-weight: 650; }
.recit h2 { margin-bottom: 8px; }
.equation { margin: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px; padding: 36px 28px; border-radius: var(--rayon); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.terme { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 96px; text-align: center; }
.terme > span:not(.glyphe) { font-family: var(--police-titre); font-size: 22px; font-weight: 600; }
.terme small { font-size: 13px; color: var(--gris-clair); }
.glyphe { display: grid; place-items: center; width: 44px; height: 44px; font-size: 32px; line-height: 1; color: var(--or); }
.glyphe-etoile::before { content: ""; width: 30px; height: 30px; background: var(--or); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 8px rgba(247, 200, 115, .8)); }
.signe { font-size: 26px; color: rgba(255, 255, 255, .45); }
.terme-final > span:not(.glyphe) { color: var(--or); }
.terme-final img { filter: drop-shadow(0 0 14px rgba(247, 200, 115, .6)); }

/* ---------- Promesses ---------- */
.promesses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.promesses li { padding: 30px; border-radius: var(--rayon); background: var(--papier); border: 1px solid var(--bord); }
.numero { font-family: var(--police-titre); font-size: 40px; color: var(--or-fonce); line-height: 1; }
.promesses h3 { font-size: 20px; margin: 18px 0 10px; }
.promesses p { color: var(--gris); }

/* ---------- Appel final ---------- */
.section-appel { padding-top: 24px; }
.appel { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 64px 24px; border-radius: 28px; color: #fff;
  background: radial-gradient(600px 300px at 50% 120%, rgba(232, 137, 74, .55), transparent 70%), linear-gradient(160deg, var(--nuit-2), var(--violet)); }
.appel-astre { filter: drop-shadow(0 0 18px rgba(247, 200, 115, .7)); margin-bottom: 6px; }
.appel p { color: rgba(255, 255, 255, .8); margin-bottom: 12px; }
.appel-astre { animation: flotte 7s ease-in-out infinite; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contact-actions button { font: inherit; font-weight: 650; cursor: pointer; }
.appel .adresse { margin: 10px 0 0; font-size: 14px; color: rgba(255, 255, 255, .55); letter-spacing: .02em; }

/* ---------- Équation du nom ---------- */
.terme { transition: transform .3s ease; }
.equation:hover .terme-final { transform: scale(1.06); }

/* ---------- Pied de page ---------- */
.pied { padding: 56px 0 32px; border-top: 1px solid var(--bord); font-size: 14px; color: var(--gris); }
.pied-ligne { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.pied-grille { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.pied-marque p { margin-top: 12px; max-width: 28ch; }
.marque-pied { color: var(--encre); font-size: 15px; }
.pied nav { display: flex; flex-direction: column; gap: 10px; }
.pied nav h2 { font-family: var(--police); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--encre); margin-bottom: 4px; }
.pied nav a { text-decoration: none; width: fit-content; }
.pied nav a:hover { color: var(--encre); text-decoration: underline; }
.pied-bas { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--bord); font-size: 13px; }

/* ---------- Message éphémère (copie) ---------- */
.annonce { position: fixed; left: 50%; bottom: 24px; z-index: 40; translate: -50% 20px; opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 999px; background: var(--nuit); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 14px 40px -12px rgba(13, 11, 38, .6); transition: opacity .25s ease, translate .25s ease; max-width: calc(100% - 32px); text-align: center; }
.annonce-visible { opacity: 1; translate: -50% 0; }

/* ---------- Page de texte (mentions légales) ---------- */
.page-texte .entete { position: static; background: var(--nuit); }
.texte-legal { max-width: 760px; padding: 56px 0 24px; }
.texte-legal h1 { font-family: var(--police-titre); font-weight: 600; font-size: clamp(32px, 5vw, 44px); margin-bottom: 12px; }
.texte-legal h2 { font-family: var(--police); font-weight: 700; font-size: 21px; margin: 36px 0 10px; }
.texte-legal p { margin-top: 10px; color: #3A3650; }
.texte-legal a { color: var(--or-fonce); }

/* ---------- Page introuvable ---------- */
.ciel-plein { margin-top: 0; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 48px 0; }
.perdu { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.perdu h1 { font-family: var(--police-titre); font-weight: 600; font-size: clamp(36px, 6vw, 60px); max-width: 16ch; }
.perdu .chapo { margin-inline: auto; }
.perdu .actions { justify-content: center; }
.perdu-astre { margin-bottom: 28px; filter: drop-shadow(0 0 30px rgba(247, 200, 115, .75)); animation: flotte 7s ease-in-out infinite; }

/* ---------- Petits écrans ---------- */
@media (max-width: 860px) {
  .burger { display: inline-block; }
  .entete-appel { margin-left: auto; }
  .menu { position: fixed; inset: 64px 0 auto; flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 16px 16px 24px;
    background: var(--nuit); border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
    opacity: 0; translate: 0 -12px; visibility: hidden; transition: opacity .22s ease, translate .22s ease, visibility 0s linear .22s; }
  .menu-ouvert .menu { opacity: 1; translate: none; visibility: visible; transition: opacity .22s ease, translate .22s ease; }
  .menu-ouvert .entete { background: var(--nuit); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-ouvert { overflow: hidden; }
  main, .pied { transition: filter .22s ease; }
  .menu-ouvert main, .menu-ouvert .pied { filter: brightness(.45) blur(2px); }
  .menu a:not(.bouton) { font-size: 18px; padding: 14px 12px; border-radius: 12px; }
  .menu a[aria-current]::after { left: auto; right: 16px; top: 50%; bottom: auto; margin: -2.5px 0 0; }
  .menu .menu-appel { display: inline-flex; margin-top: 10px; padding: 14px 20px; font-size: 16px; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .pied-marque { grid-column: 1 / -1; }
  .recit { grid-template-columns: 1fr; gap: 40px; }
  .promesses { grid-template-columns: 1fr; }
  .astre { width: 76px; top: 100px; right: 20px; }
  .astre img { width: 76px; height: 76px; }
  .ciel { padding-top: 160px; padding-bottom: 110px; }
  .horizon { left: -60%; right: -60%; bottom: -200px; }
  .section { padding: 72px 0; }
}
@media (max-width: 520px) {
  .marque span { letter-spacing: .16em; }
  .actions .bouton, .contact-actions .bouton { width: 100%; }
  .entete-appel { display: none; }
  .burger { margin-left: auto; }
  .outil { padding: 24px; }
  .pied nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
