/* ClinicalWriterAI — thème « Chaleur humaine » (crème + sauge + corail) */
:root {
  --sage: #7A9B76;
  --sage-dark: #5C7A58;
  --sage-deep: #3E4A3D;
  --coral: #E2795B;
  --coral-dark: #B85A3F;
  --ink: #403F38;
  --muted: #8C8677;
  --bg: #FBF7F0;
  --card: #FFFDF9;
  --line: #E8DFD0;
  --success-bg: #EFF5EC; --success-line: #CFE0CB; --success-ink: #47603F;
  --info-bg: #FAF3E4; --info-line: #EBD9B4;
  --error-bg: #F9ECE7; --error-line: #EFC7B8; --error-ink: #A6472C;
  --tip-bg: #F7F3E8; --tip-line: #E9DFC8;
  --radius: 18px;
  --shadow: 0 6px 22px rgba(94, 82, 60, 0.09);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Nunito Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  background-image: radial-gradient(circle at 12% 18%, rgba(122,155,118,0.08), transparent 42%), radial-gradient(circle at 88% 8%, rgba(226,121,91,0.07), transparent 40%);
  line-height: 1.6;
}
h1, h2, h3, .brand span { font-family: 'Fraunces', Georgia, serif; color: var(--sage-deep); }
h2 { font-size: 1.12rem; margin: 0 0 .6rem; font-weight: 600; }
a { color: var(--sage-dark); }

.topbar { background: rgba(255,253,249,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: .7rem 1.2rem; }
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 600; }
.brand span { font-size: 1.05rem; }
.nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; }
.nav a.active, .nav a:hover { color: var(--sage-dark); }
.nav-user { color: var(--coral-dark); font-weight: 700; font-size: .9rem; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 1.4rem 1.2rem 3rem; }

.hero { text-align: center; padding: 1.8rem 0 .9rem; }
.hero-icon svg { width: 56px; height: 56px; filter: drop-shadow(0 6px 14px rgba(122,155,118,.35)); }
.hero h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin: .4rem 0 .3rem; color: var(--sage-deep); font-weight: 600; letter-spacing: -.01em; }
.hero-sub { color: var(--muted); max-width: 640px; margin: 0 auto .9rem; font-size: 1.02rem; }
.pill { display: inline-block; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.15rem; font-size: .9rem; color: var(--coral-dark); box-shadow: var(--shadow); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.15rem 1.3rem; margin: 1rem 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: .5rem; }
.card-head h1, .card-head h2 { margin: 0; }
.subhead { margin: 1rem 0 .5rem; font-size: .98rem; }

.alert { border-radius: var(--radius); padding: .85rem 1.15rem; margin: 1rem 0; border: 1px solid; font-size: .95rem; }
.alert-success { background: var(--success-bg); border-color: var(--success-line); color: var(--success-ink); }
.alert-info { background: var(--info-bg); border-color: var(--info-line); }
.alert-error { background: var(--error-bg); border-color: var(--error-line); color: var(--error-ink); }
.alert-tip { background: var(--tip-bg); border-color: var(--tip-line); font-size: .88rem; }
.banner-flex { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: none; border-radius: 999px; padding: .62rem 1.35rem; font: 700 .92rem 'Nunito Sans', sans-serif; cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s, opacity .12s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid rgba(122,155,118,.45); outline-offset: 2px; }
.btn-primary { background: var(--sage); color: #FFFDF9; box-shadow: 0 4px 14px rgba(122,155,118,.35); }
.btn-primary:hover { background: var(--sage-dark); }
.btn-teal { background: var(--card); color: var(--sage-dark); border: 1.5px solid var(--sage); }
.btn-teal:hover { background: #F2F6EF; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn-ghost:hover { background: #F7F2E8; }
.btn-voice { background: var(--coral); color: #FFFDF9; box-shadow: 0 4px 14px rgba(226,121,91,.35); }
.btn-voice:hover { background: var(--coral-dark); }
.btn-voice.recording { background: #C94F42; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(201,79,66,.16); } }
.btn-rewrite { background: var(--sage); color: #FFFDF9; font-size: 1.05rem; padding: .9rem 1.3rem; box-shadow: 0 6px 18px rgba(122,155,118,.4); }
.btn-rewrite:hover { background: var(--sage-dark); }
.btn-sm { padding: .42rem .95rem; font-size: .85rem; }
.btn-block { width: 100%; margin-top: .8rem; }
.btn[disabled] { opacity: .55; cursor: wait; transform: none; }

label { display: block; font-weight: 700; font-size: .88rem; margin: .7rem 0; color: var(--ink); }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%; margin-top: .3rem; padding: .68rem .85rem; border: 1px solid var(--line); border-radius: 12px;
  font: 400 .96rem 'Nunito Sans', sans-serif; color: var(--ink); background: #FFFEFB;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(122,155,118,.18); }
textarea { resize: vertical; }
#inputText { min-height: 240px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }

.format-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.format-option { display: flex; gap: .6rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px; padding: .85rem; margin: 0; cursor: pointer; background: #FFFEFB; transition: border-color .12s, background .12s; }
.format-option:has(input:checked) { border-color: var(--sage); background: #F2F6EF; }
.format-option input { margin-top: .25rem; accent-color: var(--sage-dark); }
.format-option span { display: block; font-weight: 400; }
.format-option strong { display: block; font-size: .93rem; color: var(--sage-deep); }
.format-option small { color: var(--muted); font-size: .8rem; line-height: 1.4; display: block; }
.format-option em { color: var(--coral-dark); font-size: .78rem; font-style: normal; font-weight: 700; }
.format-custom { border-style: dashed; }

.output-box { min-height: 300px; border: 1px solid var(--line); border-radius: 14px; padding: .95rem 1.05rem; background: linear-gradient(165deg, #FFFEFB, #FBF6EC); white-space: pre-wrap; font-size: .96rem; }

.count { display: inline-block; background: #F6E9DF; color: var(--coral-dark); border-radius: 999px; padding: .05rem .6rem; font-size: .8rem; vertical-align: middle; }
.tag { display: inline-block; background: #EFF5EC; color: var(--sage-dark); border: 1px solid #D5E3D1; border-radius: 999px; padding: .12rem .62rem; font-size: .78rem; font-weight: 700; }

.history-item { border-top: 1px solid var(--line); padding: .4rem 0; }
.history-item summary { display: flex; gap: .7rem; align-items: center; cursor: pointer; padding: .35rem 0; list-style: none; }
.history-item summary::-webkit-details-marker { display: none; }
.history-snippet { flex: 1; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-date { font-size: .78rem; white-space: nowrap; }
.history-body h4, .history-card h4 { margin: .8rem 0 .2rem; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-family: 'Nunito Sans', sans-serif; }
pre { white-space: pre-wrap; word-wrap: break-word; background: #FAF6EC; border: 1px solid var(--line); border-radius: 12px; padding: .75rem .95rem; font: .89rem/1.55 'Nunito Sans', sans-serif; margin: 0; }
.tpl-instructions { font-size: .85rem; }

.auth-card { max-width: 440px; margin: 3rem auto; }
.auth-head { text-align: center; margin-bottom: .6rem; }
.auth-head svg { width: 44px; height: 44px; }
.auth-head h1 { font-size: 1.5rem; margin: .3rem 0 .2rem; }
.auth-alt { text-align: center; font-size: .9rem; color: var(--muted); }
.muted { color: var(--muted); }
.page-title { font-size: 1.65rem; margin: .6rem 0; }

.pagination { display: flex; gap: .4rem; flex-wrap: wrap; margin: 1rem 0; }
.pagination a { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); text-decoration: none; font-size: .88rem; color: var(--ink); }
.pagination a.active { background: var(--sage); color: #FFFDF9; border-color: var(--sage); }

.footer { text-align: center; color: var(--muted); font-size: .82rem; padding: 1.5rem 1rem 2.5rem; }
.footer-links { margin-bottom: .5rem; font-size: .9rem; }
.footer-links a { color: var(--sage-dark); text-decoration: none; margin: 0 .3rem; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }

.static-page { max-width: 820px; margin: 0 auto; }
.static-page .card h2 { color: var(--sage-deep); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-of-type { border-bottom: none; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: .85rem .2rem; list-style: none; position: relative; padding-right: 2rem; color: var(--sage-deep); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: .4rem; top: .7rem; font-size: 1.2rem; color: var(--coral); font-weight: 700; }
.faq-item[open] summary::after { content: '\2013'; }
.faq-item p { margin: 0 .2rem 1rem; color: var(--ink); }

@media (max-width: 840px) {
  .workspace, .grid-2 { grid-template-columns: 1fr; }
  .topbar-inner { flex-direction: column; gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn-voice.recording { transition: none; animation: none; }
}

/* ---- Mouvement : entrée de page, révélation au défilement, résultat ---- */
@keyframes floatDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes softGrow { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }

.hero-icon { animation: floatDown .7s cubic-bezier(.22,1,.36,1) both; }
.hero h1 { animation: riseIn .7s cubic-bezier(.22,1,.36,1) .12s both; }
.hero-sub { animation: riseIn .7s cubic-bezier(.22,1,.36,1) .22s both; }
.hero .pill { animation: riseIn .7s cubic-bezier(.22,1,.36,1) .32s both; }

.js-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.js-reveal.is-visible { opacity: 1; transform: translateY(0); }

.output-box.reveal { animation: softGrow .5s cubic-bezier(.22,1,.36,1) both; }

.faq-item summary::after { transition: transform .25s ease, color .25s ease; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { animation: riseIn .35s ease both; }

.format-option { transition: border-color .15s, background .15s, transform .15s; }
.format-option:hover { transform: translateY(-2px); }
.brand svg { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.brand:hover svg { transform: rotate(-8deg) scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  .hero-icon, .hero h1, .hero-sub, .hero .pill, .output-box.reveal, .faq-item p { animation: none; }
  .js-reveal { opacity: 1; transform: none; transition: none; }
  .format-option, .brand svg { transition: none; }
}

/* ---- Page d'accueil vitrine ---- */
.landing-hero { padding: 2.6rem 0 1.4rem; }
.landing-hero h1 { line-height: 1.12; }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin: 1.1rem 0; }
.landing-section { padding: 1.6rem 0 .4rem; }
.landing-title { font-size: clamp(1.4rem, 3vw, 1.9rem); text-align: center; margin: 0 0 1.1rem; }
.landing-lead { text-align: center; color: var(--muted); max-width: 620px; margin: -0.4rem auto 1.2rem; }
.landing-note { text-align: center; font-size: .88rem; margin-top: .8rem; }
.landing-final { text-align: center; padding-bottom: 2rem; }

.demo-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch; }
.demo-card { margin: 0; }
.demo-label { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.demo-text { margin: 0; font-size: .95rem; line-height: 1.65; }
.demo-result { border: 1.5px solid var(--sage); background: #FDFEFB; }
.demo-result .demo-label { color: var(--sage-dark); }
.demo-arrow { align-self: center; font-size: 2rem; color: var(--coral); font-weight: 700; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.feature { margin: 0; text-align: left; }
.feature-icon { font-size: 1.7rem; display: block; margin-bottom: .3rem; }
.feature h3 { font-size: 1.02rem; margin: 0 0 .3rem; }
.feature p { margin: 0; font-size: .92rem; color: var(--muted); }

.quotes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.quote { margin: 0; display: flex; flex-direction: column; }
.quote-text { font-family: 'Fraunces', Georgia, serif; font-size: 1.02rem; color: var(--sage-deep); margin: 0 0 .8rem; flex: 1; line-height: 1.55; }
.quote-who { margin: 0; font-size: .88rem; font-weight: 700; border-top: 1px solid var(--line); padding-top: .7rem; }

.trust-card { background: #F5F1E6; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.trust-grid strong { display: block; margin-bottom: .3rem; color: var(--sage-deep); }
.trust-grid p { margin: 0; font-size: .92rem; color: var(--ink); }

@media (max-width: 840px) {
  .demo-grid { grid-template-columns: 1fr; }
  .demo-arrow { transform: rotate(90deg); justify-self: center; }
}

/* ---- Sélecteur de langue de la vitrine ---- */
.lang-toggle { text-align: right; padding-top: .6rem; font-size: .9rem; }
.lang-toggle a { text-decoration: none; color: var(--muted); font-weight: 700; padding: .2rem .45rem; border-radius: 8px; }
.lang-toggle a.active { color: #FFFDF9; background: var(--sage); }
.lang-toggle span { color: var(--line); }

/* ---- Sélecteur FR/EN de la barre de navigation ---- */
.nav-lang { display: inline-flex; gap: .25rem; margin-left: .3rem; }
.nav-lang a { font-size: .78rem; font-weight: 700; padding: .18rem .5rem; border-radius: 999px; text-decoration: none; color: var(--muted); border: 1px solid var(--line); }
.nav-lang a.active { background: var(--sage); color: #FFFDF9; border-color: var(--sage); }

/* ---- Assistant de clavardage ---- */
#cwChatBtn { position: fixed; bottom: 22px; right: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; border: none; background: var(--sage); color: #FFFDF9; font-size: 1.5rem; cursor: pointer; box-shadow: 0 6px 20px rgba(94,82,60,.3); transition: transform .15s; }
#cwChatBtn:hover { transform: scale(1.08); }
#cwChat { position: fixed; bottom: 92px; right: 22px; z-index: 91; width: min(360px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 40px rgba(94,82,60,.25); display: flex; flex-direction: column; overflow: hidden; }
.cwc-head { display: flex; justify-content: space-between; align-items: center; background: var(--sage); color: #FFFDF9; padding: .7rem 1rem; }
.cwc-head strong { font-family: 'Fraunces', serif; font-size: .98rem; }
.cwc-head button { background: none; border: none; color: #FFFDF9; font-size: 1rem; cursor: pointer; }
.cwc-body { height: 300px; overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: .5rem; background: var(--bg); }
.cwc-msg { max-width: 85%; padding: .55rem .8rem; border-radius: 14px; font-size: .9rem; line-height: 1.45; white-space: pre-wrap; }
.cwc-assistant { background: #FFFFFF; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.cwc-user { background: var(--sage); color: #FFFDF9; align-self: flex-end; border-bottom-right-radius: 4px; }
.cwc-note { font-size: .68rem; color: var(--muted); padding: .3rem .9rem; background: var(--card); border-top: 1px solid var(--line); }
.cwc-input { display: flex; gap: .4rem; padding: .5rem .6rem; background: var(--card); }
.cwc-input input { flex: 1; margin: 0; }
.cwc-input button { border: none; background: var(--coral); color: #FFFDF9; border-radius: 10px; padding: 0 .9rem; font-size: 1rem; cursor: pointer; }
.cwc-leave { border: none; background: var(--card); color: var(--sage-dark); font-size: .82rem; font-weight: 700; padding: .5rem; cursor: pointer; border-top: 1px solid var(--line); }
.cwc-leave:hover { background: #F2F6EF; }
.cwc-contact { padding: .7rem; display: flex; flex-direction: column; gap: .5rem; background: var(--card); }
.cwc-contact input, .cwc-contact textarea { margin: 0; }
.cwc-contact button[type=submit] { border: none; background: var(--sage); color: #FFFDF9; border-radius: 999px; padding: .55rem; font-weight: 700; cursor: pointer; }
.cwc-back { border: none; background: none; color: var(--muted); font-size: .8rem; cursor: pointer; }

/* ---- Correctif clavardage : respect de hidden + dimensions ---- */
#cwChat[hidden], #cwcContact[hidden], #cwcForm[hidden], .cwc-leave[hidden] { display: none !important; }
#cwChat { max-height: min(560px, calc(100vh - 130px)); }
.cwc-body { flex: 1; min-height: 220px; }

.nav-badge { display: inline-block; background: var(--coral); color: #FFFDF9; border-radius: 999px; padding: 0 .45rem; font-size: .72rem; font-weight: 700; vertical-align: middle; }
.cwc-delay { margin: 0; font-size: .74rem; color: var(--muted); text-align: center; }

/* ---- Section Ginette ---- */
.ginette-card { display: flex; gap: 1.6rem; align-items: center; padding: 1.6rem; }
.ginette-img { flex: 0 0 240px; }
.ginette-img img { width: 100%; border-radius: 16px; display: block; }
.ginette-text { flex: 1; }
.ginette-quote { font-family: 'Fraunces', serif; font-size: 1.12rem; color: var(--sage-dark); margin-top: .9rem; }
@media (max-width: 640px) {
  .ginette-card { flex-direction: column; text-align: center; }
  .ginette-img { flex: 0 0 auto; max-width: 240px; }
}
.ginette-links { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1rem; }
@media (max-width: 640px) { .ginette-links { justify-content: center; } }

/* ---- Correctif proportions Ginette ---- */
.ginette-card { padding: 1.4rem; }
.ginette-img { flex: 0 0 180px; max-width: 180px; }
.ginette-img img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 640px) { .ginette-img { max-width: 160px; flex-basis: auto; } }

/* ---- Blogue ---- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.blog-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: .5rem; transition: transform .15s; }
.blog-card:hover { transform: translateY(-3px); }
.blog-card h2 { font-size: 1.15rem; margin: 0; }
.blog-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; }
.blog-more { color: var(--coral); font-weight: 700; margin: 0; }
.blog-article { max-width: 760px; margin: 0 auto; }
.blog-content { line-height: 1.75; }
.blog-content h2 { font-family: 'Fraunces', serif; color: var(--sage-dark); margin-top: 1.8rem; }
.blog-content figure { margin: 1.4rem 0; }
.blog-content figure img { width: 100%; border-radius: 14px; }
.blog-content figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .35rem; }
.blog-content pre, .blog-content blockquote { background: #F7F5EF; border-radius: 12px; padding: .9rem 1.1rem; overflow-x: auto; }
.blog-disclaimer { margin-top: 1.6rem; }
.prompt-box { margin-bottom: .9rem; }
.prompt-box textarea { width: 100%; font-family: Consolas, monospace; font-size: .8rem; background: #F7F5EF; }

/* ---- Garde-fou universel : aucune image ne déborde jamais de l'écran ---- */
img { max-width: 100%; height: auto; }
.blog-content img, .blog-article img { max-width: 100%; height: auto; display: block; }

.invite-card { max-width: 560px; margin: 0 auto; }
.invite-form label { margin-top: .6rem; }

.store-badge { display: inline-block; margin-top: .9rem; padding: .45rem 1rem; border: 1.5px solid var(--sage); border-radius: 999px; color: var(--sage-dark); font-weight: 700; font-size: .88rem; text-decoration: none; background: #FFFFFF; }
.store-badge:hover { background: #F2F6EF; }

/* ---- Page Tarifs ---- */
.pricing-banner { max-width: 880px; margin: 0 auto 1.6rem; text-align: center; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; max-width: 980px; margin: 0 auto; align-items: start; }
.price-card { text-align: center; position: relative; padding: 1.6rem 1.3rem; }
.price-card h2 { font-family: 'Fraunces', serif; margin: 0 0 .3rem; }
.price { font-family: 'Fraunces', serif; font-size: 2rem; color: var(--sage-dark); margin: .2rem 0 .8rem; }
.price .muted { font-size: .85rem; font-family: 'Nunito Sans', sans-serif; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.1rem; text-align: left; }
.price-card li { padding: .32rem 0 .32rem 1.5rem; position: relative; font-size: .92rem; border-bottom: 1px dashed var(--line); }
.price-card li::before { content: '✓'; position: absolute; left: 0; color: var(--coral); font-weight: 700; }
.price-pro { border: 2px solid var(--sage); box-shadow: 0 10px 26px rgba(94,82,60,.16); }
.pro-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--coral); color: #FFFDF9; font-size: .74rem; font-weight: 800; padding: .22rem .8rem; border-radius: 999px; white-space: nowrap; }
.btn-soon { opacity: .65; cursor: default; }
.pricing-team { max-width: 880px; margin: 1.6rem auto 0; text-align: center; background: #F2F6EF; }
.pricing-founder { max-width: 780px; margin: 1.4rem auto .4rem; text-align: center; font-weight: 700; color: var(--sage-dark); }
.pricing-notes { text-align: center; font-size: .82rem; }

/* ---- Joie de vivre : mouvement doux ---- */
/* Bulles décoratives flottantes derrière les héros */
.hero { position: relative; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; filter: blur(46px); opacity: .5; pointer-events: none; z-index: -1; }
.hero::before { width: 260px; height: 260px; background: radial-gradient(circle, rgba(122,155,118,.35), transparent 70%); top: -60px; left: 6%; animation: floaty 16s ease-in-out infinite alternate; }
.hero::after { width: 200px; height: 200px; background: radial-gradient(circle, rgba(226,121,91,.28), transparent 70%); bottom: -40px; right: 8%; animation: floaty 13s ease-in-out infinite alternate-reverse; }
@keyframes floaty { from { transform: translate(0,0) scale(1); } to { transform: translate(26px,-20px) scale(1.12); } }

/* Apparition en douceur au défilement */
.js-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal.revealed { opacity: 1; transform: translateY(0); }

/* Les cartes respirent au survol */
.card { transition: transform .22s ease, box-shadow .22s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(94,82,60,.14); }

/* Boutons vivants */
.btn { transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(94,82,60,.2); }
.btn-primary, .btn-rewrite { animation: heartbeat 6s ease-in-out infinite; }
@keyframes heartbeat { 0%, 92%, 100% { transform: scale(1); } 95% { transform: scale(1.025); } }

/* Le médaillon de Ginette flotte doucement */
.ginette-img img { animation: floaty-soft 5s ease-in-out infinite alternate; }
@keyframes floaty-soft { from { transform: translateY(0); } to { transform: translateY(-7px); } }

/* La bulle de clavardage fait coucou de temps en temps */
#cwChatBtn { animation: wiggle 14s ease-in-out infinite; }
@keyframes wiggle { 0%, 96%, 100% { transform: rotate(0); } 97% { transform: rotate(-8deg) scale(1.06); } 98% { transform: rotate(8deg) scale(1.06); } 99% { transform: rotate(-4deg); } }

/* Le logo salue au survol */
.nav-logo:hover svg, .brand:hover svg { animation: hello 0.6s ease; }
@keyframes hello { 0% { transform: rotate(0); } 30% { transform: rotate(-12deg); } 60% { transform: rotate(10deg); } 100% { transform: rotate(0); } }

/* Le salut du corridor */
.greeting { font-family: 'Fraunces', serif; color: var(--coral); font-size: 1.08rem; margin-bottom: .2rem; animation: fadein 1s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .btn-primary, .btn-rewrite, .ginette-img img, #cwChatBtn { animation: none !important; }
  .js-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card, .btn { transition: none; }
}

/* ---- Verrou définitif : proportions de Ginette sur l'accueil ---- */
.ginette-card .ginette-img { flex: 0 0 180px !important; width: 180px !important; max-width: 180px !important; }
.ginette-card .ginette-img img { width: 180px !important; height: 180px !important; max-width: 180px !important; object-fit: cover; border-radius: 50%; display: block; }
@media (max-width: 640px) { .ginette-card .ginette-img, .ginette-card .ginette-img img { flex-basis: auto !important; width: 160px !important; height: 160px !important; max-width: 160px !important; } }

/* ---- Popup de dernière chance (site public seulement) ---- */
.exitpop-overlay { position: fixed; inset: 0; background: rgba(62,74,61,.45); backdrop-filter: blur(3px); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1rem; animation: fadein .3s ease; }
.exitpop-card { position: relative; background: #FFFDF9; border-radius: 20px; max-width: 420px; width: 100%; padding: 2rem 1.8rem 1.6rem; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.25); animation: exitpop-in .35s ease; }
@keyframes exitpop-in { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
.exitpop-emoji { font-size: 2.4rem; margin-bottom: .3rem; }
.exitpop-card h2 { font-family: 'Fraunces', serif; color: var(--sage-dark); margin: 0 0 .6rem; }
.exitpop-card p { font-size: .95rem; line-height: 1.55; }
.exitpop-cta { display: inline-block; margin: .9rem 0 .5rem; }
.exitpop-close { display: block; margin: .3rem auto 0; background: none; border: none; color: var(--muted); font-size: .85rem; cursor: pointer; text-decoration: underline; }
.exitpop-x { position: absolute; top: .6rem; right: .9rem; background: none; border: none; font-size: 1.5rem; color: var(--muted); cursor: pointer; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .exitpop-overlay, .exitpop-card { animation: none; } }

/* ---- Page Tutoriel ---- */
.tuto-video { max-width: 420px; margin: 0 auto 1.6rem; }
.video-frame { position: relative; aspect-ratio: 9/16; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 34px rgba(94,82,60,.18); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tuto-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; max-width: 980px; margin: 0 auto; }
.tuto-steps h3 { font-family: 'Fraunces', serif; color: var(--sage-dark); margin: 0 0 .4rem; }

/* ---- Liens intelligents dans les textes ---- */
.smartlink { color: var(--sage-dark); text-decoration: none; border-bottom: 1.5px dotted var(--coral); }
.smartlink:hover { color: var(--coral); border-bottom-style: solid; }

/* ---- Grille des professions ---- */
.pros-grid { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; max-width: 860px; margin: 0 auto; }
.pro-pill { background: #FFFFFF; border: 1.5px solid var(--sage); color: var(--sage-dark); border-radius: 999px; padding: .4rem .95rem; font-size: .88rem; font-weight: 600; }
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }

/* ---- Barre de partage des articles ---- */
.share-bar { margin: 1.8rem 0 .4rem; padding: 1.1rem 1.2rem; background: #F2F6EF; border-radius: 14px; }
.share-label { display: block; font-weight: 700; color: var(--sage-dark); margin-bottom: .6rem; }
.share-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-pill { display: inline-block; background: #FFFFFF; border: 1.5px solid var(--sage); color: var(--sage-dark); border-radius: 999px; padding: .4rem .95rem; font-size: .86rem; font-weight: 700; text-decoration: none; cursor: pointer; font-family: inherit; transition: background .15s, color .15s; }
.share-pill:hover { background: var(--sage); color: #FFFDF9; }

/* ---- Historique : recherche + archives ---- */
.hist-tools { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.hist-tabs { display: flex; gap: .5rem; }
.hist-tab { padding: .4rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 700; font-size: .88rem; }
.hist-tab.active { border-color: var(--sage); color: var(--sage-dark); background: #F2F6EF; }
.hist-search { display: flex; gap: .45rem; flex: 1; min-width: 260px; max-width: 480px; }
.hist-search input[type="search"] { flex: 1; margin: 0; }
