/* Ragnagna — vitrine publique (JM 24/10/2026, v77 : refonte « fun et pro »). Téléphone d'abord, aucune ressource extérieure. */
:root {
    --fond: #fffafb;
    --surface: #ffffff;
    --texte: #2a1a20;
    --doux: #6f5a62;
    --accent: #a3364f;
    --accent-fonce: #82263d;
    --accent-doux: #fbe4ea;
    --rose: #f4b6c6;
    --peche: #ffd8c2;
    --lilas: #e5d4f5;
    --ligne: #f0dde3;
    --ombre: 0 18px 40px rgba(130, 38, 61, 0.14);
    --rayon: 22px;
}
@media (prefers-color-scheme: dark) {
    :root {
        --fond: #19121a;
        --surface: #241a22;
        --texte: #f7ecf0;
        --doux: #c7b2ba;
        --accent: #ef7d9a;
        --accent-fonce: #ff98b1;
        --accent-doux: #3a2530;
        --rose: #6d2f43;
        --peche: #5b3a2f;
        --lilas: #3d2f52;
        --ligne: #3a2a33;
        --ombre: 0 18px 40px rgba(0, 0, 0, 0.45);
    }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--fond);
    color: var(--texte);
    font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { letter-spacing: -0.02em; }

/* ---------- En-tête ---------- */
.v-entete {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 18px;
    background: color-mix(in srgb, var(--fond) 80%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.v-marque { display: flex; align-items: center; gap: 10px; color: var(--texte); text-decoration: none; font-weight: 800; font-size: 1.2rem; }
.v-langues { position: relative; }
.v-langues summary {
    list-style: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    padding: 6px 10px 6px 6px; border-radius: 999px;
    background: var(--surface); box-shadow: 0 2px 10px rgba(130, 38, 61, 0.12);
}
.v-langues summary::-webkit-details-marker { display: none; }
.v-chevron { color: var(--doux); font-size: .8rem; }
.v-langues ul {
    position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none; min-width: 190px;
    background: var(--surface); border-radius: 18px; box-shadow: var(--ombre);
}
.v-langues li a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--texte); text-decoration: none; font-weight: 600; }
.v-langues li a:hover, .v-langues li a[aria-current] { background: var(--accent-doux); }
.v-drapeau { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); object-fit: cover; flex: none; }

/* ---------- Boutons ---------- */
.v-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; }
.v-actions-centre { justify-content: center; }
.v-bouton {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 0 26px; border-radius: 999px;
    background: var(--accent); color: #fff; text-decoration: none; font-weight: 800; font-size: 1.02rem;
    box-shadow: 0 10px 24px rgba(163, 54, 79, 0.32);
    transition: transform .15s ease, box-shadow .15s ease;
}
.v-bouton:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(163, 54, 79, 0.38); }
.v-bouton-clair { background: var(--surface); color: var(--accent); box-shadow: 0 6px 18px rgba(130, 38, 61, 0.12); }

/* ---------- Héros ---------- */
.v-heros {
    position: relative; isolation: isolate;
    display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center;
    padding: 92px 22px 56px; margin: -64px 0 0;
    background:
        radial-gradient(circle at 15% 20%, var(--peche) 0, transparent 42%),
        radial-gradient(circle at 85% 10%, var(--lilas) 0, transparent 40%),
        radial-gradient(circle at 70% 85%, var(--rose) 0, transparent 45%),
        var(--accent-doux);
    border-radius: 0 0 44px 44px;
    overflow: hidden;
}
.v-heros::after {
    content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; right: -120px; bottom: -140px;
    border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.v-heros-texte { max-width: 560px; }
.v-heros h1 { font-size: clamp(2rem, 8vw, 3.4rem); line-height: 1.08; margin: 0 0 16px; font-weight: 900; }
.v-chapo { font-size: 1.12rem; color: var(--doux); margin: 0 0 24px; }
.v-heros .v-chapo strong { color: var(--texte); }
.v-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.v-badges span { padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 75%, transparent); color: var(--accent-fonce); font-weight: 700; font-size: .85rem; }
.v-heros-tel { display: flex; justify-content: center; }
@media (min-width: 860px) {
    .v-heros { grid-template-columns: 1.15fr .85fr; padding: 120px max(32px, calc((100vw - 1100px) / 2)) 80px; }
}

/* ---------- Téléphone ---------- */
.v-tel {
    width: min(250px, 66vw); aspect-ratio: 9 / 19.5;
    padding: 9px; border-radius: 40px; background: #1b1316;
    box-shadow: 0 28px 60px rgba(130, 38, 61, 0.35), inset 0 0 0 2px #3a2a31;
    position: relative;
}
.v-tel img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 32px; display: block; }
.v-tel-penche { transform: rotate(-4deg); }
/* (v77) en haut : deux téléphones qui se chevauchent */
.v-heros-tel { position: relative; min-height: 470px; align-items: center; }
.v-tel-devant { transform: rotate(-5deg); z-index: 2; margin-left: 70px; }
.v-tel-arriere { position: absolute; transform: rotate(8deg) scale(.86); left: calc(50% - 205px); top: 10px; opacity: .95; }
@media (max-width: 420px) {
    .v-heros-tel { min-height: 420px; }
    .v-tel-devant { margin-left: 60px; width: 58vw; }
    .v-tel-arriere { width: 52vw; left: calc(50% - 46vw); }
}
.v-tel-vide > div {
    width: 100%; height: 100%; border-radius: 32px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(160deg, var(--accent-doux), var(--rose));
    color: var(--accent-fonce); font-weight: 800;
}

/* ---------- Page ---------- */
.v-page { max-width: 1100px; margin: 0 auto; padding: 0 20px 50px; }
.v-section { margin: 56px 0; }
.v-section h2, .v-article h2 { font-size: clamp(1.4rem, 5vw, 2rem); line-height: 1.2; margin: 0 0 16px; font-weight: 850; }
.v-titre-centre { text-align: center; }

/* Atouts illustrés */
.v-atout { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: center; margin: 64px 0; }
.v-atout-texte { max-width: 520px; }
.v-atout-texte p { color: var(--doux); font-size: 1.05rem; }
.v-atout-texte ul { padding-left: 1.1em; color: var(--doux); }
.v-atout-texte li { margin: 8px 0; }
.v-atout-texte li strong { color: var(--texte); }
.v-atout-tel { display: flex; justify-content: center; }
@media (min-width: 860px) {
    .v-atout { grid-template-columns: 1fr 1fr; gap: 60px; }
    .v-atout-inverse .v-atout-texte { order: 2; }
}
.v-pastille-emoji {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 52px; height: 52px; border-radius: 18px; margin-bottom: 14px;
    background: linear-gradient(140deg, var(--accent-doux), var(--rose)); font-size: 1.6rem;
}

/* Confidentialité */
.v-prive {
    margin: 64px 0; padding: 32px 24px; border-radius: 32px; text-align: center;
    background: linear-gradient(150deg, #3a1622, #6e1f35); color: #fde9ee;
    box-shadow: var(--ombre);
}
.v-prive h2 { color: #fff; }
.v-prive .v-pastille-emoji { background: rgba(255, 255, 255, .14); }
.v-prive ul { list-style: none; padding: 0; margin: 18px auto; max-width: 620px; text-align: left; display: grid; gap: 10px; }
.v-prive li { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .08); }
.v-prive li strong { color: #fff; }
.v-prive p { color: #f4cfd9; max-width: 620px; margin: 0 auto 10px; }

/* Fonctions compactes */
.v-mini { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .v-mini { grid-template-columns: 1fr 1fr; } }
.v-mini-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border-radius: var(--rayon); box-shadow: 0 6px 22px rgba(130, 38, 61, 0.08); }
.v-mini-item .v-pastille-emoji { margin: 0; width: 46px; height: 46px; font-size: 1.35rem; border-radius: 15px; }
.v-mini-item h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.v-mini-item p { margin: 0; color: var(--doux); font-size: .96rem; }

/* Installer */
.v-installer { padding: 28px 22px; border-radius: 30px; background: var(--surface); box-shadow: var(--ombre); text-align: center; }
.v-installer ul { list-style: none; padding: 0; margin: 14px auto; max-width: 560px; text-align: left; }
.v-installer li { margin: 10px 0; padding: 12px 14px; border-radius: 16px; background: var(--accent-doux); }
.v-installer p { color: var(--doux); }
.v-surligne { animation: v-surligne 1.8s ease; }
@keyframes v-surligne { 0%, 100% { box-shadow: var(--ombre); } 30% { box-shadow: 0 0 0 6px var(--accent); } }

/* Guides */
.v-guides { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .v-guides { grid-template-columns: 1fr 1fr; } }
.v-guides a {
    display: block; height: 100%; padding: 18px 20px; border-radius: var(--rayon);
    background: var(--surface); box-shadow: 0 6px 22px rgba(130, 38, 61, 0.08);
    text-decoration: none; color: var(--texte); transition: transform .15s ease;
}
.v-guides a:hover { transform: translateY(-2px); }
.v-guides strong { display: block; color: var(--accent); font-size: 1.05rem; }
.v-guides strong::after { content: " →"; }
.v-guides span { display: block; color: var(--doux); font-size: .94rem; margin-top: 4px; }

/* FAQ */
.v-faqs { max-width: 760px; margin-left: auto; margin-right: auto; }
.v-faq { background: var(--surface); border-radius: 18px; margin: 0 0 10px; box-shadow: 0 4px 16px rgba(130, 38, 61, 0.07); }
.v-faq summary { cursor: pointer; padding: 16px 18px; font-weight: 750; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.v-faq summary::-webkit-details-marker { display: none; }
.v-faq summary::after { content: "+"; color: var(--accent); font-weight: 900; font-size: 1.3rem; line-height: 1; }
.v-faq[open] summary::after { content: "–"; }
.v-faq > div { padding: 0 18px 16px; color: var(--doux); }
.v-faq > div p { margin: 0 0 8px; }

/* ---------- Guide (article) ---------- */
.v-corps-guide .v-page { max-width: 760px; }
.v-fil { padding: 22px 0 0; font-size: .9rem; color: var(--doux); }
.v-fil a { color: var(--doux); }
.v-article h1 { font-size: clamp(1.8rem, 6.5vw, 2.6rem); line-height: 1.15; margin: 14px 0 14px; font-weight: 900; }
.v-article h2 { margin-top: 34px; }
.v-article p { margin: 0 0 14px; }
.v-article ul { padding-left: 1.2em; }
.v-article li { margin: 6px 0; }
.v-encart { margin: 34px 0 20px; padding: 22px; border-radius: 26px; background: linear-gradient(140deg, var(--accent-doux), color-mix(in srgb, var(--rose) 55%, var(--accent-doux))); }
.v-encart h2 { margin-top: 0; font-size: 1.25rem; }
.v-encart .v-actions { margin: 14px 0 0; }
.v-avertissement { font-size: .9rem; color: var(--doux); border-left: 3px solid var(--ligne); padding-left: 12px; }

/* ---------- Pied ---------- */
.v-pied { background: linear-gradient(160deg, #a3364f, #6e1f35); color: #fde9ee; border-radius: 44px 44px 0 0; margin-top: 40px; }
.v-pied-contenu { max-width: 760px; margin: 0 auto; padding: 44px 20px 50px; text-align: center; }
.v-pied p { margin: 0 0 16px; }
.v-pied-marque { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 900; font-size: 1.4rem; color: #fff; }
.v-pied-marque img { background: #fff; border-radius: 10px; padding: 3px; }
.v-pied .v-bouton { background: #fff; color: #a3364f; box-shadow: none; }
.v-pied .v-bouton-clair { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.v-pied-don { color: #fff; font-weight: 800; text-decoration: none; }
.v-pied-langues { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
.v-pied-langues a { display: inline-flex; align-items: center; gap: 6px; color: #fde9ee; text-decoration: none; font-size: .95rem; }
.v-pied-langues .v-drapeau { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .v-bouton, .v-guides a { transition: none; }
    .v-surligne { animation: none; }
}

/* (v80) pas de coupures de ligne moches : titres, boutons et accroche équilibrés sur leurs lignes
   (« Ton cycle, tes phases et / tes conseils du jour. » plutôt qu’un mot seul en bas) ; paragraphes sans mot orphelin */
h1, h2, h3, h4, button, .btn, label, .accroche, .accroche strong { text-wrap: balance; }
p, li, small { text-wrap: pretty; }

/* (v85) mentions légales et page introuvable */
.v-pied-legal a { color: #fde9ee; font-size: .9rem; }
.v-mentions h2 { font-size: 1.15rem; margin-top: 28px; }
.v-introuvable { text-align: center; padding: 40px 0 10px; }
.v-introuvable-code { margin: 0; font-size: clamp(4rem, 22vw, 7rem); font-weight: 900; line-height: 1; letter-spacing: -.04em;
    background: linear-gradient(160deg, #e0587a, #6e1f35); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v-introuvable h1 { margin: 10px 0 12px; }
.v-introuvable p { max-width: 34em; margin-left: auto; margin-right: auto; }

/* (v86) liste des langues : défile seule, et montre qu'il y en a d'autres */
html.v-sans-defilement, html.v-sans-defilement body { overflow: hidden; }
.v-langues ul {
    max-height: min(66vh, 520px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; z-index: 30;
    scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
.v-langues ul::-webkit-scrollbar { width: 6px; }
.v-langues ul::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 6px; }
.v-langues-indice { position: sticky; bottom: 0; height: 0; display: flex; justify-content: center; pointer-events: none; }
.v-langues-indice::before {
    content: ''; position: absolute; left: -8px; right: -8px; bottom: -8px; height: 70px;
    background: linear-gradient(transparent, var(--surface) 70%); opacity: 0; transition: opacity .2s;
}
.v-langues-indice span {
    position: relative; transform: translateY(-46px); width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; padding-bottom: 6px; box-sizing: border-box;
    background: var(--accent); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .22); opacity: 0; transition: opacity .2s;
}
.v-langues.a-plus-bas .v-langues-indice::before, .v-langues.a-plus-bas .v-langues-indice span { opacity: 1; }
.v-langues.a-plus-bas .v-langues-indice span { pointer-events: auto; animation: v-indice-rebond 1.6s ease-in-out infinite; }
@keyframes v-indice-rebond { 50% { transform: translateY(-41px); } }
@media (prefers-reduced-motion: reduce) { .v-langues.a-plus-bas .v-langues-indice span { animation: none; } }

.v-langues-indice span { padding: 0; }
.v-langues-indice span::before {
    content: ''; display: block; width: 10px; height: 10px;
    border: solid #fff; border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg);
}
