/* clickcurac.fr — feuille de style commune (accueil, fonctionnalités, tarifs, inscription). Sans police externe ni traceur. */
:root {
  --blue: #0050b8; --blue-dark: #003f91; --blue-soft: #e8f0fb; --ink: #1a1f2b; --muted: #5b6474; --line: #e2e6ee;
  --bg: #f7f9fc; --card: #fff; --green: #127a3e; --green-soft: #e3f4ea; --orange: #b45309; --radius: 16px;
  --shadow: 0 10px 30px rgba(16, 40, 90, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; color: var(--blue); text-decoration: none; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--blue); }
.nav .login { color: var(--muted); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; padding: 12px 20px; border-radius: 12px; border: 2px solid transparent; background: var(--blue); color: #fff !important; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--blue-dark); }
.btn.ghost { background: transparent; color: var(--blue) !important; border-color: #c9d8f0; }
.btn.ghost:hover { background: var(--blue-soft); }
.btn.big { padding: 15px 26px; font-size: 1.05rem; }
.btn:disabled { opacity: .6; cursor: wait; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { display: inline-block; font-weight: 700; font-size: .85rem; color: var(--blue); background: var(--blue-soft); border-radius: 99px; padding: 4px 12px; margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Accueil : bandeau */
.hero { padding: 64px 0 40px; background: radial-gradient(1200px 500px at 80% -10%, #dce8fb 0%, transparent 60%), var(--bg); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.chips li::before { content: '✓'; color: var(--green); font-weight: 800; margin-right: 6px; }
.shots { position: relative; }
.shots .desk { border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.shots .phone { position: absolute; width: 30%; right: -4%; bottom: -12%; border-radius: 22px; border: 6px solid #1a1f2b; box-shadow: var(--shadow); }
.hero .wrap.signup { grid-template-columns: 1fr 1.1fr; align-items: start; }
@media (max-width: 900px) { .hero .wrap, .hero .wrap.signup { grid-template-columns: 1fr; } .shots { margin: 0 4% 40px 0; } }

/* Grilles et cartes */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card.lift { transition: transform .15s, box-shadow .15s; } .card.lift:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 14px; }
.icon svg { width: 24px; height: 24px; }
.from { font-weight: 700; color: var(--ink); margin-top: 8px; font-size: .95rem; }
.from .free { color: var(--green); }
.card h3 a { color: inherit; text-decoration: none; }

/* Mise en avant (texte + image) */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.feature.flip > :first-child { order: 2; }
.feature img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 28px; position: relative; margin: 8px 0; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23127a3e' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature.flip > :first-child { order: 0; } }

/* Gratuit */
.freebox { background: linear-gradient(135deg, #0050b8, #2f6fd0); color: #fff; border-radius: 22px; padding: 36px; }
.freebox h2, .freebox a { color: #fff; }
.freebox .card { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
.freebox .btn { background: #fff; color: var(--blue) !important; }

/* Tarifs */
.toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.toggle button { font: inherit; font-weight: 600; border: 0; background: transparent; padding: 9px 16px; border-radius: 9px; cursor: pointer; color: var(--muted); }
.toggle button[aria-pressed=true] { background: var(--blue); color: #fff; }
.save { color: var(--green); font-weight: 700; font-size: .85rem; margin-left: 4px; }
.product { display: flex; flex-direction: column; }
.levels { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.levels li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.levels .head { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.levels .price { white-space: nowrap; }
.levels .price small { font-weight: 500; color: var(--muted); }
.levels p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 99px; padding: 2px 8px; background: var(--green-soft); color: var(--green); margin-left: 6px; vertical-align: middle; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 10px 0; }
summary { font-weight: 700; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Formulaires (inscription) */
.form-card { max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px; box-shadow: var(--shadow); }
label { display: block; font-weight: 600; font-size: .92rem; margin: 14px 0 5px; }
input[type=text], input[type=email], input[type=tel], input[type=password], select { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #d6dbe4; border-radius: 10px; background: #fff; }
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 80, 184, .15); }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin-top: 10px; }
.check input { margin-top: 4px; }
.hp { position: absolute; left: -10000px; }
.error { color: #c0362c; font-size: .9em; margin-top: 6px; }
.offers { display: grid; gap: 8px; margin-top: 6px; }
.offer { display: flex; gap: 10px; align-items: flex-start; border: 2px solid #d6dbe4; border-radius: 12px; padding: 10px 12px; font-weight: 400; margin: 0; cursor: pointer; }
.offer:has(input:checked) { border-color: var(--blue); background: #eef4fd; }
.offer input { margin-top: 4px; }
.offer b { display: block; }
.offer small { color: var(--muted); }
.badge { display: inline-block; font-size: .78em; font-weight: 700; color: var(--blue); background: #dde9fa; border-radius: 99px; padding: 1px 8px; margin-left: 6px; }

/* Pied de page */
.foot { background: #0f1729; color: #c7cfdd; padding: 48px 0 28px; margin-top: 0; }
.foot a { color: #e6ebf3; text-decoration: none; } .foot a:hover { text-decoration: underline; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot h4 { color: #fff; margin: 0 0 10px; font-size: .95rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .92rem; }
.foot .legal { border-top: 1px solid #263149; margin-top: 32px; padding-top: 18px; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr; } }

/* Guides et pages produits (articles du backoffice) */
.guide { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
.guide img { border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; margin-bottom: 6px; }
.guide h3 { margin: 4px 0 0; }
.guide .tag { align-self: flex-start; }
.article { max-width: 780px; }
.crumbs a { color: var(--muted); }
.prose { font-size: 1.05rem; line-height: 1.7; }
.prose h2 { font-size: 1.5rem; margin: 1.6em 0 .5em; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); margin: 1.2em auto; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin: .35em 0; }
.prose blockquote { margin: 1.2em 0; padding: 12px 16px; background: var(--blue-soft); border-left: 4px solid var(--blue); border-radius: 0 10px 10px 0; }
.prose blockquote p { margin: 0; }

/* Navigation : menu « Produits » déroulant ; sur téléphone, bouton menu et panneau plein écran. */
.drop { position: relative; }
.drop-btn { font: inherit; font-weight: 500; color: var(--ink); background: none; border: 0; cursor: pointer; padding: 6px 0; }
.drop-btn:hover, .drop.open .drop-btn { color: var(--blue); }
.drop-menu { position: absolute; top: calc(100% + 12px); left: -20px; width: 560px; display: none; grid-template-columns: 1fr 1fr; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 10px; z-index: 30; }
.drop.open .drop-menu { display: grid; }
.drop-menu a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.drop-menu a:hover { background: var(--blue-soft); }
.drop-menu b { display: block; font-size: .95rem; }
.drop-menu small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.35; margin-top: 2px; }
.drop-menu .all { grid-column: 1 / -1; color: var(--blue); font-weight: 600; text-align: center; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded=true] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded=true] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded=true] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 900px) {
  .burger { display: flex; }
  /* Le bandeau a un flou (backdrop-filter) : le panneau se place par rapport à lui, sur toute la hauteur de l'écran. */
  .top .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - 64px); background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 32px; overflow-y: auto; margin: 0; border-top: 1px solid var(--line); }
  .top.open { background: #fff; }
  .top.open .nav { display: flex; }
  .top .nav > a, .drop-btn { display: block !important; width: 100%; text-align: left; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .top .nav .btn { margin-top: 16px; text-align: center; border-bottom: 0; padding: 14px; }
  .drop-menu { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 8px; grid-template-columns: 1fr; }
  .drop-menu a { padding: 10px 8px; }
  body.menu-open { overflow: hidden; }
}

.section-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 8px 0 12px; }
.product-title { margin: 8px 0 18px; }
.members { margin: 28px 0 8px; padding: 22px; border-radius: 16px; background: linear-gradient(135deg, #0050b8, #2f6fd0); color: #fff; }
.members p { color: #e6eefb; margin: 0 0 10px; }
.members .members-title { color: #fff; font-weight: 700; font-size: 1.1rem; }
.members .btn { background: #fff; color: var(--blue) !important; }
.members .btn.ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.6); }

/* Panier et commande */
.cart-link { position: relative; }
.cart-count { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 999px; background: var(--blue); color: #fff; font-size: .75rem; font-weight: 700; margin-left: 4px; }
.btn.small { padding: 8px 14px; font-size: .9rem; border-radius: 10px; }
.btn.added { background: var(--green); }
.btn.added:hover { background: #0e6532; }
.levels li.chosen { border-color: var(--green); background: var(--green-soft); }
.levels .add { margin-top: 10px; }
.levels .included { font-size: .9rem; font-weight: 700; color: var(--green); }
.trial-banner { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; align-items: center; margin: 18px auto 0; max-width: 820px; padding: 14px 18px; border-radius: 14px; background: var(--green-soft); color: var(--green); font-weight: 700; text-align: center; }
.cart-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 760px; margin: 0 auto; padding: 12px 14px 12px 18px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.cart-bar[hidden] { display: none; }
.checkout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }
.h3 { font-size: 1.25rem; margin: 0 0 8px; }
.card.soft { background: var(--blue-soft); border-color: transparent; }
.cart-lines { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.cart-lines li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.cart-lines li > div { flex: 1; min-width: 0; }
.cart-lines li small { display: block; color: var(--muted); }
.cart-lines li.free { background: var(--bg); }
.cart-lines .line-price { font-weight: 700; white-space: nowrap; }
.cart-lines .remove { border: 0; background: transparent; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 6px; border-radius: 8px; }
.cart-lines .remove:hover { color: #b42318; background: #fdecea; }
.cart-total { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; }
.cart-total div { display: flex; justify-content: space-between; gap: 12px; }
.cart-total b { font-size: 1.3rem; }

/* Vitrine : prix de lancement (prix normal barré, remise, économie). */
.launch { font-size: 1.1rem; margin: 14px 0 18px; }
.launch s { color: inherit; opacity: .7; }
.launch .off { display: inline-block; background: #dcfce7; color: #15803d; font-weight: 700; font-size: .85rem; border-radius: 999px; padding: 2px 9px; margin-left: 4px; }
.launch .save { color: inherit; font-size: .95rem; font-weight: 600; }
.freebox .launch .free { color: inherit; }

/* Discussion en direct (bulle en bas à droite) */
.cc-chat { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; font-size: 15px; }
.cc-chat-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 18px; background: var(--blue); color: #fff; font: inherit; font-weight: 700; box-shadow: 0 10px 28px rgba(0, 63, 145, .35); cursor: pointer; position: relative; }
.cc-chat-btn:hover { background: var(--blue-dark); }
.cc-chat.is-open .cc-chat-btn { display: none; }
.cc-chat-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 12px; display: grid; place-items: center; padding: 0 5px; }
.cc-chat-panel { width: min(370px, calc(100vw - 32px)); height: min(560px, calc(100vh - 100px)); background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(15, 30, 60, .3); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.cc-chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--blue); color: #fff; }
.cc-chat-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .6); }
.cc-chat-head div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cc-chat-head small { opacity: .85; font-size: 12px; }
.cc-chat-close { border: 0; background: transparent; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.cc-chat-list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.cc-msg { max-width: 85%; align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; }
.cc-msg p { margin: 0; }
.cc-msg small { display: block; font-size: 11px; font-weight: 700; color: var(--blue); margin-bottom: 2px; }
.cc-msg.mine { align-self: flex-end; background: var(--blue); color: #fff; border-color: var(--blue); border-radius: 14px 14px 4px 14px; }
.cc-contact { max-width: 100%; display: flex; flex-direction: column; gap: 6px; }
.cc-contact input { font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.cc-contact button { font: inherit; font-weight: 700; border: 0; border-radius: 10px; padding: 9px; background: var(--blue); color: #fff; cursor: pointer; }
.cc-err { color: #b91c1c; font-size: 13px; }
.cc-chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.cc-chat-form textarea { flex: 1; resize: none; font: inherit; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.cc-chat-form button { flex: none; width: 44px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; cursor: pointer; display: grid; place-items: center; }
.cc-chat-panel[hidden], .cc-chat-badge[hidden], .cc-err[hidden] { display: none; }
.cc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cc-chat-legal { margin: 0; padding: 0 12px 10px; font-size: 11px; color: var(--muted); background: #fff; }
@media (max-width: 520px) { .cc-chat-btn span { display: none; } .cc-chat-btn { padding: 14px; } }
