/* CARONNA Website : charte graphique
   Encre #121A33 · Bleu signal #2350FF · Bleu nuit #0E1A4D · Menthe #12B886 · Soleil #FFB020 · Papier #F5F6FA */
@font-face { font-family: Poppins; src: url(/poppins-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url(/poppins-700.woff) format("woff"); font-weight: 700; font-display: swap; }
:root {
  --encre: #121A33; --gris: #5A6178; --trait: #E3E6EF; --papier: #F5F6FA; --blanc: #fff;
  --bleu: #2350FF; --bleu-f: #1A3BD1; --nuit: #0E1A4D; --menthe: #12B886; --soleil: #FFB020; --rouge: #D9384A;
  --r: 18px; --ombre: 0 18px 40px -22px rgba(14, 26, 77, .35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 Poppins, system-ui, sans-serif; color: var(--encre); background: var(--papier); }
a { color: var(--bleu); }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .6rem; }
h1 { font-size: clamp(2rem, 5.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--soleil); outline-offset: 2px; border-radius: 6px; }
.ws-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* boutons */
.ws-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.3rem; border-radius: 14px;
  border: 1.5px solid var(--trait); background: var(--blanc); color: var(--encre); font: 700 1rem Poppins, sans-serif; text-decoration: none; cursor: pointer; }
.ws-btn:hover { border-color: var(--bleu); }
.ws-btn-fort { background: var(--bleu); border-color: var(--bleu); color: #fff; box-shadow: 0 10px 24px -12px rgba(35, 80, 255, .8); }
.ws-btn-fort:hover { background: var(--bleu-f); border-color: var(--bleu-f); }
.ws-btn-lien { border: 0; background: none; color: var(--bleu); min-height: 40px; padding: 0 .4rem; }
.ws-btn[disabled] { opacity: .55; cursor: wait; }

/* en-tête */
.ws-tete { position: sticky; top: 0; z-index: 20; background: rgba(245, 246, 250, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--trait); }
.ws-tete .ws-wrap { display: flex; align-items: center; gap: 1rem; min-height: 66px; }
.ws-marque { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--encre); font-weight: 700; letter-spacing: -.01em; }
.ws-marque img { width: 34px; height: 34px; }
.ws-marque small { display: block; font-size: .68rem; font-weight: 400; color: var(--gris); letter-spacing: .01em; margin-top: -3px; }
.ws-nav { display: flex; gap: 1.2rem; margin-left: auto; }
.ws-nav a { color: var(--encre); text-decoration: none; font-size: .95rem; }
.ws-nav a:hover { color: var(--bleu); }
.ws-tete-act { display: flex; gap: .5rem; }
@media (max-width: 600px) { .ws-marque small { display: none; } .ws-tete-act .ws-btn { padding: 0 .9rem; } }
@media (max-width: 900px) { .ws-nav { display: none; } .ws-tete-act { margin-left: auto; } .ws-tete-act .ws-btn:not(.ws-btn-fort) { display: none; } }

/* héros */
.ws-heros { padding: clamp(2.2rem, 6vw, 5rem) 0 3rem; }
.ws-heros .ws-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.ws-heros h1 span { color: var(--bleu); }
.ws-heros .ws-chapo { font-size: 1.15rem; color: var(--gris); max-width: 34rem; }
.ws-heros-act { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0 1rem; }
.ws-garanties { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; padding: 0; margin: 0; list-style: none; font-size: .9rem; color: var(--gris); }
.ws-garanties li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--menthe); margin-right: .45rem; vertical-align: 1px; }
@media (max-width: 900px) { .ws-heros .ws-wrap { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }

/* démonstration : la conversation construit la page */
.ws-demo { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; }
.ws-demo-chat { background: var(--nuit); color: #fff; border-radius: 22px; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; min-height: 340px; box-shadow: var(--ombre); }
.ws-demo-chat b { font-size: .72rem; opacity: .7; font-weight: 400; }
.ws-bulle { max-width: 92%; padding: 9px 12px; border-radius: 14px; font-size: .82rem; line-height: 1.45; opacity: 0; transform: translateY(6px); animation: ws-apparait .5s ease forwards; }
.ws-bulle.moi { align-self: flex-end; background: var(--bleu); border-bottom-right-radius: 4px; }
.ws-bulle.ia { background: rgba(255, 255, 255, .1); border-bottom-left-radius: 4px; }
.ws-bulle.ia i { display: block; font-style: normal; color: var(--soleil); font-size: .74rem; margin-top: 4px; }
.ws-demo-site { background: var(--blanc); border: 1px solid var(--trait); border-radius: 22px; overflow: hidden; box-shadow: var(--ombre); }
.ws-demo-barre { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--trait); font-size: .72rem; color: var(--gris); }
.ws-demo-barre span { width: 9px; height: 9px; border-radius: 50%; background: var(--trait); }
.ws-demo-barre em { font-style: normal; margin-left: 6px; background: var(--papier); border-radius: 8px; padding: 2px 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ws-demo-page { padding: 12px; display: grid; gap: 9px; }
.ws-bloc-d { border-radius: 12px; border: 1.5px dashed var(--bleu); opacity: 0; animation: ws-construit .6s ease forwards; }
.ws-bloc-d.couv { min-height: 92px; background: linear-gradient(120deg, #0E1A4D, #2350FF); border: 0; padding: 14px; color: #fff; font-weight: 700; font-size: .92rem; line-height: 1.2; }
.ws-bloc-d.couv small { display: block; font-weight: 400; opacity: .8; font-size: .7rem; margin-top: 4px; }
.ws-bloc-d.couv u { display: inline-block; margin-top: 8px; background: var(--soleil); color: var(--encre); text-decoration: none; font-size: .66rem; padding: 3px 9px; border-radius: 7px; }
.ws-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.ws-bloc-d.carte { height: 64px; background: var(--papier); border: 0; padding: 9px; font-size: .64rem; font-weight: 700; }
.ws-bloc-d.carte::after { content: ""; display: block; height: 5px; width: 70%; background: var(--trait); border-radius: 3px; margin-top: 7px; box-shadow: 0 9px 0 var(--trait); }
.ws-bloc-d.galerie { height: 74px; border: 0; background: repeating-linear-gradient(90deg, #E6D3B8 0 31%, transparent 31% 34.5%); border-radius: 12px; }
.ws-bloc-d.pied { height: 28px; border: 0; background: #0E1A4D; border-radius: 10px; }
.ws-bloc-d.ligne { height: 34px; background: #EAF8F3; border: 0; display: flex; align-items: center; padding: 0 10px; font-size: .66rem; font-weight: 700; color: #0B7A59; }
@keyframes ws-apparait { to { opacity: 1; transform: none; } }
@keyframes ws-construit { 0% { opacity: 0; transform: scale(.97); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; border-style: solid; } }
@media (prefers-reduced-motion: reduce) { .ws-bulle, .ws-bloc-d { animation: none; opacity: 1; transform: none; } }
@media (max-width: 560px) { .ws-demo { grid-template-columns: minmax(0, 1fr); } .ws-demo-chat { min-height: 0; } }

/* sections */
.ws-section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.ws-section.blanc { background: var(--blanc); border-block: 1px solid var(--trait); }
.ws-section .ws-intro { max-width: 40rem; color: var(--gris); font-size: 1.05rem; }
.ws-etapes { list-style: none; counter-reset: e; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ws-etapes li { counter-increment: e; background: var(--papier); border-radius: var(--r); padding: 22px; position: relative; }
.ws-etapes li::before { content: counter(e); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bleu); color: #fff; font-weight: 700; margin-bottom: 14px; }
.ws-etapes p { color: var(--gris); margin: 0; font-size: .95rem; }
.ws-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 2rem; }
.ws-grille div { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--r); padding: 18px; }
.ws-grille div::before { content: ""; display: block; width: 28px; height: 6px; border-radius: 3px; background: var(--bleu); margin-bottom: 12px; }
.ws-grille div:nth-child(3n+2)::before { background: var(--menthe); }
.ws-grille div:nth-child(3n)::before { background: var(--soleil); }
.ws-grille p { color: var(--gris); font-size: .92rem; margin: 0; }
@media (max-width: 960px) { .ws-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ws-etapes { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .ws-grille { grid-template-columns: minmax(0, 1fr); } }

/* exemple de conversation */
.ws-exemple { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.ws-fil-ex { background: var(--nuit); border-radius: 24px; padding: 20px; display: grid; gap: 12px; color: #fff; }
.ws-fil-ex p { margin: 0; padding: 12px 14px; border-radius: 14px; font-size: .92rem; }
.ws-fil-ex .moi { background: var(--bleu); justify-self: end; max-width: 90%; }
.ws-fil-ex .ia { background: rgba(255, 255, 255, .09); max-width: 94%; }
.ws-fil-ex .ia ul { margin: .5rem 0 0; padding-left: 1.1rem; color: #D7DCF5; }
.ws-fil-ex small { opacity: .65; font-size: .75rem; }
@media (max-width: 900px) { .ws-exemple { grid-template-columns: minmax(0, 1fr); } }

/* tarif */
.ws-tarif { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.ws-prix { background: var(--blanc); border: 2px solid var(--bleu); border-radius: 26px; padding: 28px; box-shadow: var(--ombre); }
.ws-prix .montant { font-size: 4rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.ws-prix .montant sup { font-size: 1.6rem; vertical-align: 1.6rem; }
.ws-prix .unite { color: var(--gris); margin: .3rem 0 1.2rem; }
.ws-prix ul { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .5rem; }
.ws-prix li { padding-left: 1.7rem; position: relative; }
.ws-prix li::before { content: ""; position: absolute; left: 0; top: .45rem; width: 14px; height: 8px; border-left: 3px solid var(--menthe); border-bottom: 3px solid var(--menthe); transform: rotate(-45deg); }
.ws-prix .ws-btn { width: 100%; }
.ws-prix .note { font-size: .82rem; color: var(--gris); margin: .9rem 0 0; }
@media (max-width: 900px) { .ws-tarif { grid-template-columns: minmax(0, 1fr); } }

/* questions */
.ws-faq { max-width: 820px; margin-top: 1.6rem; }
.ws-faq details { background: var(--blanc); border: 1px solid var(--trait); border-radius: 16px; padding: 0 18px; margin-bottom: 10px; }
.ws-faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.ws-faq summary::after { content: "+"; color: var(--bleu); font-size: 1.4rem; line-height: 1; }
.ws-faq details[open] summary::after { content: "–"; }
.ws-faq details p { color: var(--gris); }

/* bas de page */
.ws-final { background: var(--nuit); color: #fff; border-radius: 30px; padding: clamp(2rem, 6vw, 3.5rem); text-align: center; }
.ws-final p { color: #C9D0EE; }
.ws-pied { padding: 2.5rem 0 3rem; font-size: .9rem; color: var(--gris); }
.ws-pied .ws-wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.ws-pied h3 { font-size: .95rem; color: var(--encre); }
.ws-pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.ws-pied a { color: var(--gris); text-decoration: none; }
.ws-pied a:hover { color: var(--bleu); }
@media (max-width: 760px) { .ws-pied .ws-wrap { grid-template-columns: minmax(0, 1fr); } }

/* pages de contenu */
.ws-page { max-width: 780px; margin: 0 auto; padding: 2.5rem 20px 4rem; }
.ws-page h2 { font-size: 1.45rem; margin-top: 2rem; }
.ws-fil { font-size: .9rem; }
.ws-chapo { font-size: 1.12rem; color: var(--gris); }
.ws-bloc { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--r); padding: 20px 22px; margin-top: 14px; }
.ws-bloc h2 { margin-top: 0; font-size: 1.2rem; }
.ws-bloc p { color: var(--gris); margin: 0; }
.ws-cta-bas { margin-top: 2rem; background: var(--nuit); color: #fff; border-radius: 22px; padding: 26px; }
.ws-cta-bas p { color: #C9D0EE; }
.ws-liens ul { padding-left: 1.1rem; }
.ws-legal h2 { font-size: 1.15rem; }
.ws-legal p, .ws-legal li { color: #333B55; font-size: .96rem; }

/* ================================================================ application */
.ws-app { min-height: 100vh; }
.ws-app main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 16px 4rem; }
.ws-carte { background: var(--blanc); border: 1px solid var(--trait); border-radius: 22px; padding: 22px; }
.ws-auth { max-width: 460px; margin: 2rem auto; }
.ws-onglets { display: grid; grid-template-columns: 1fr 1fr; background: var(--papier); border-radius: 14px; padding: 4px; margin-bottom: 1.2rem; }
.ws-onglets button { min-height: 44px; border: 0; border-radius: 11px; background: none; font: 700 .95rem Poppins, sans-serif; color: var(--gris); cursor: pointer; }
.ws-onglets button[aria-selected="true"] { background: var(--blanc); color: var(--encre); box-shadow: 0 2px 8px rgba(14, 26, 77, .1); }
.ws-champ { display: block; margin-bottom: .9rem; }
.ws-champ span { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .3rem; }
.ws-champ small { display: block; color: var(--gris); font-size: .8rem; margin-top: .25rem; }
.ws-champ input, .ws-champ textarea { width: 100%; min-height: 50px; border: 1.5px solid var(--trait); border-radius: 13px; padding: .7rem .9rem; font: 400 1rem Poppins, sans-serif; color: var(--encre); background: #fff; }
.ws-champ input:focus, .ws-champ textarea:focus { border-color: var(--bleu); outline: none; }
.ws-case { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--gris); margin: .4rem 0 1rem; }
.ws-case input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--bleu); }
.ws-piege { position: absolute; left: -9999px; }
.ws-msg { padding: .8rem 1rem; border-radius: 12px; font-size: .92rem; margin: .8rem 0; }
.ws-msg.ko { background: #FDE8EA; color: #9C1E2E; }
.ws-msg.ok { background: #E3F7EF; color: #0B6B4E; }
.ws-bonjour { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.ws-bonjour h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); margin: 0; }
.ws-pastille { display: inline-flex; align-items: center; gap: .4rem; background: #E8EDFF; color: var(--bleu-f); border-radius: 999px; padding: .3rem .8rem; font-size: .82rem; font-weight: 700; }
.ws-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.ws-site { text-align: left; cursor: pointer; font: inherit; color: inherit; display: grid; gap: .3rem; }
.ws-site:hover { border-color: var(--bleu); }
.ws-site b { font-size: 1.1rem; }
.ws-site span { color: var(--gris); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-jauge { height: 7px; background: var(--papier); border-radius: 4px; overflow: hidden; margin-top: .5rem; }
.ws-jauge i { display: block; height: 100%; background: var(--menthe); }
.ws-acheter { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; background: var(--nuit); color: #fff; border: 0; }
.ws-acheter p { color: #C9D0EE; }
.ws-acheter .ws-case { color: #C9D0EE; }
@media (max-width: 760px) { .ws-acheter { grid-template-columns: minmax(0, 1fr); } }
.ws-guide { counter-reset: g; list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .6rem; }
.ws-guide li { counter-increment: g; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: .7rem; font-size: .92rem; color: #333B55; }
.ws-guide li::before { content: counter(g); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #E8EDFF; color: var(--bleu-f); font-weight: 700; font-size: .85rem; }

/* discussion */
.ws-discu { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: calc(100dvh - 66px); max-width: 860px; margin: 0 auto; }
.ws-discu-tete { display: flex; align-items: center; gap: .6rem; padding: .7rem 16px; border-bottom: 1px solid var(--trait); background: var(--blanc); }
.ws-discu-tete b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-discu-tete small { color: var(--gris); font-size: .8rem; }
.ws-discu-tete > div { min-width: 0; flex: 1; }
.ws-fil-msg { overflow-y: auto; padding: 1.2rem 16px; display: flex; flex-direction: column; gap: 12px; }
.ws-m { max-width: 86%; padding: .75rem 1rem; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .97rem; }
.ws-m.user { align-self: flex-end; background: var(--bleu); color: #fff; border-bottom-right-radius: 6px; }
.ws-m.assistant { align-self: flex-start; background: var(--blanc); border: 1px solid var(--trait); border-bottom-left-radius: 6px; }
.ws-m a { color: inherit; }
.ws-travail { align-self: flex-start; background: #EEF1FF; border-radius: 16px; padding: .8rem 1rem; font-size: .88rem; min-width: min(100%, 300px); }
.ws-travail b { display: flex; align-items: center; gap: .5rem; color: var(--bleu-f); }
.ws-travail b::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--bleu); border-right-color: transparent; animation: ws-tourne .8s linear infinite; }
.ws-travail ul { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .25rem; color: #333B55; }
.ws-travail li::before { content: "•"; color: var(--gris); margin-right: .45rem; }
.ws-travail li.fait::before { content: "✓"; color: var(--menthe); font-weight: 700; }
.ws-travail li.erreur::before { content: "!"; color: var(--rouge); font-weight: 700; }
@keyframes ws-tourne { to { transform: rotate(360deg); } }
.ws-idees { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 16px .6rem; }
.ws-idees button { border: 1.5px solid var(--trait); background: var(--blanc); border-radius: 999px; padding: .45rem .9rem; font: 400 .86rem Poppins, sans-serif; cursor: pointer; color: var(--encre); text-align: left; }
.ws-idees button:hover { border-color: var(--bleu); }
.ws-saisie { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .5rem; align-items: end; padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom)); background: var(--blanc); border-top: 1px solid var(--trait); }
.ws-saisie textarea { width: 100%; min-height: 48px; max-height: 180px; resize: none; border: 1.5px solid var(--trait); border-radius: 14px; padding: .7rem .9rem; font: 400 1rem Poppins, sans-serif; }
.ws-saisie textarea:focus { border-color: var(--bleu); outline: none; }
.ws-joindre { width: 48px; height: 48px; border-radius: 14px; border: 1.5px solid var(--trait); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--gris); }
.ws-vignettes { display: flex; gap: .4rem; padding: 0 16px; flex-wrap: wrap; }
.ws-vignettes span { font-size: .78rem; background: #E8EDFF; color: var(--bleu-f); border-radius: 8px; padding: .2rem .6rem; }
.ws-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ws-table th, .ws-table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
.ws-table-wrap { overflow-x: auto; }
.ws-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--encre); color: #fff; padding: .7rem 1.1rem; border-radius: 12px; font-size: .92rem; z-index: 50; max-width: calc(100% - 32px); }

/* charte */
.ws-nuancier { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 1rem 0 2rem; }
.ws-nuancier div { border-radius: 16px; overflow: hidden; border: 1px solid var(--trait); background: #fff; font-size: .85rem; }
.ws-nuancier i { display: block; height: 84px; }
.ws-nuancier p { margin: 0; padding: .6rem .8rem; }
@media (max-width: 600px) { .ws-idees button:nth-child(n+3) { display: none; } }
