/* ===== Calviro — Apple-épuré, gris/blanc ===== */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #18181b;
  --text-muted: #71717a;
  --text-soft: #a1a1aa;
  --accent: #18181b;
  --accent-soft: #27272a;
  --success: #16a34a;
  --warning: #d97706;
  --error: #dc2626;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.06), 0 16px 40px rgba(0,0,0,0.06);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -0.01em;
  min-height: 100vh;
  padding: 24px 20px 60px;
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

.container-wide {
  max-width: 1120px;
  margin: 0 auto;
}

/* ===== Header / Nav ===== */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 32px;
}

.brand {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

.back:hover { color: var(--text); }

/* ===== Typography ===== */

h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 12px;
}

h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.tagline {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

p { color: var(--text-muted); }

/* ===== Home grid ===== */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.tool-card .title {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.tool-card .desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.tool-card.soon {
  opacity: 0.55;
  cursor: not-allowed;
}

.tool-card.soon::after {
  content: 'Bientôt';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

/* ===== Tool page layout ===== */

.tool {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 8px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 600px) {
  .tool { padding: 24px 20px; border-radius: var(--radius); }
}

.tool-header {
  margin-bottom: 28px;
}

.tool-header h1 {
  font-size: 28px;
  margin-bottom: 6px;
}

.tool-header p {
  font-size: 15px;
}

/* ===== Form elements ===== */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}

label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.005em;
}

input[type="number"],
input[type="text"],
input[type="date"],
select,
textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  transition: all var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(24,24,27,0.06);
}

input::placeholder { color: var(--text-soft); }

textarea { resize: vertical; min-height: 90px; font-family: 'Geist Mono', monospace; font-size: 13px; }

/* Hide number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--text);
  color: var(--surface);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
}

.btn:hover { background: var(--accent-soft); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--border); }

.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-group .btn { width: auto; flex: 1; min-width: 0; }

/* ===== Tabs / Toggles ===== */

.tabs {
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 7px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* ===== Result block ===== */

.result {
  margin-top: 24px;
  padding: 20px;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: none;
}

.result.visible { display: block; animation: fadeIn 300ms ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.result-value {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  font-family: 'Geist', sans-serif;
  font-feature-settings: 'tnum';
}

.result-value .unit {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
}

.result-detail {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.result-detail-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.result-detail-row strong { color: var(--text); font-weight: 500; font-feature-settings: 'tnum'; }

.note {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Pomodoro special ===== */

.timer-display {
  font-family: 'Geist Mono', monospace;
  font-size: clamp(72px, 18vw, 120px);
  font-weight: 500;
  text-align: center;
  letter-spacing: -0.04em;
  margin: 32px 0;
  font-feature-settings: 'tnum';
}

.timer-mode {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

/* ===== Misc ===== */

.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
  border: none;
}

.pseudo-output {
  font-family: 'Geist Mono', monospace;
  font-size: 22px;
  font-weight: 500;
  text-align: center;
  padding: 24px;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 16px 0;
  word-break: break-all;
  letter-spacing: -0.01em;
}

.subjects-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subject-row {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  gap: 10px;
  align-items: center;
}

.subject-row input { padding: 9px 12px; font-size: 14px; }
.subject-row span { font-size: 13px; color: var(--text-muted); }

@media (max-width: 480px) {
  .subject-row { grid-template-columns: 1fr 70px 70px; gap: 8px; }
}

/* ===== SEO content section ===== */

.seo-content {
  max-width: 720px;
  margin: 32px auto 0;
  padding: 0 4px;
}

.seo-content h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 32px 0 12px;
  color: var(--text);
}

.seo-content h2:first-child { margin-top: 0; }

.seo-content h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 24px 0 8px;
  text-transform: none;
}

.seo-content p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 14px;
  letter-spacing: -0.003em;
}

.seo-content p strong { color: var(--text); font-weight: 500; }

.seo-content ul, .seo-content ol {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 16px 20px;
}

.seo-content li { margin-bottom: 6px; }

.seo-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.seo-content th, .seo-content td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.seo-content th {
  font-weight: 500;
  color: var(--text);
  background: var(--surface-2);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.seo-content td { color: var(--text-muted); }

.seo-content a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}

.seo-content a:hover { text-decoration-color: var(--text); }

/* ===== Blog ===== */

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
}

.blog-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.blog-card .blog-date {
  font-size: 12px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.blog-card h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

.blog-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.blog-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .blog-article { padding: 28px 22px; border-radius: var(--radius); }
}

.blog-article .blog-date {
  font-size: 13px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.blog-article h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.blog-article p, .blog-article ul, .blog-article ol {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
}

.blog-article ul, .blog-article ol { margin-left: 20px; }
.blog-article li { margin-bottom: 8px; }

.blog-article h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 12px;
  letter-spacing: -0.02em;
}

.blog-article h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 8px;
  text-transform: none;
  color: var(--text);
  letter-spacing: -0.01em;
}

.blog-article .cta-tool {
  display: block;
  background: var(--text);
  color: var(--surface);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  text-align: center;
  font-weight: 500;
  margin: 24px 0;
  transition: all var(--transition);
}

.blog-article .cta-tool:hover { background: var(--accent-soft); transform: translateY(-1px); }

/* ===== Footer ===== */

.footer {
  text-align: center;
  margin-top: 48px;
  padding-top: 24px;
  font-size: 12px;
  color: var(--text-soft);
}

.footer a { color: var(--text-muted); text-decoration: none; margin: 0 8px; }
.footer a:hover { color: var(--text); }

/* ===========================
   MODE SOMBRE
   =========================== */

html[data-theme="dark"] {
  --bg: #0a0a0a;
  --surface: #161616;
  --surface-2: #1f1f1f;
  --border: #2a2a2a;
  --border-strong: #3f3f46;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-soft: #71717a;
  --accent: #fafafa;
  --accent-soft: #e4e4e7;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow: 0 1px 3px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.5), 0 16px 40px rgba(0,0,0,0.4);
}

html[data-theme="dark"] .brand-dot {
  background: var(--text);
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

html[data-theme="dark"] .btn {
  background: var(--text);
  color: var(--bg);
}

html[data-theme="dark"] .btn-secondary {
  background: var(--surface-2);
  color: var(--text);
}

/* ===========================
   THEME TOGGLE BUTTON
   =========================== */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all var(--transition);
  color: var(--text);
  line-height: 1;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  transform: scale(1.05);
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: inline; }
html[data-theme="dark"] .theme-toggle .sun-icon { display: inline; }
html[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

/* ===========================
   BARRE DE RECHERCHE
   =========================== */

.search-bar {
  position: relative;
  margin: 24px 0 32px;
}

.search-bar input {
  width: 100%;
  padding: 14px 18px 14px 48px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  transition: all var(--transition);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 4px rgba(24, 24, 27, 0.05);
}

.search-bar::before {
  content: '🔍';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  opacity: 0.5;
}

.search-bar input::placeholder {
  color: var(--text-soft);
}

.search-results-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  background: var(--surface);
  border-radius: var(--radius);
  margin: 20px 0;
  display: none;
}

.search-results-empty.visible { display: block; }

/* ===========================
   CATÉGORIES
   =========================== */

.category-section {
  margin-bottom: 40px;
  scroll-margin-top: 20px;
}

.category-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.category-header h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.category-count {
  font-size: 13px;
  color: var(--text-muted);
}

.category-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar { display: none; }

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
  cursor: pointer;
}

.category-pill:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.category-pill.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ===========================
   HISTORIQUE
   =========================== */

.history-section {
  margin: 24px 0 32px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: none;
}

.history-section.visible { display: block; }

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.history-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.history-clear {
  font-size: 12px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all var(--transition);
}

.history-clear:hover {
  background: var(--surface-2);
  color: var(--text);
}

.history-items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.history-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition);
}

.history-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 600px) {
  .category-nav {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ===========================
   V3 : OUTILS LIÉS
   =========================== */

.related-tools {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.related-tools h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  color: var(--text);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.related-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  transition: all var(--transition);
}

.related-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.related-card .ico {
  font-size: 18px;
  flex-shrink: 0;
}

/* ===========================
   V3 : BOUTONS DE PARTAGE
   =========================== */

.share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
}

.share-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-right: 4px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.share-btn:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* ===========================
   V3 : BOUTON "RETOUR HAUT"
   =========================== */

.top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  border: none;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.top-btn:hover {
  transform: scale(1.05);
}

/* ===========================
   V3 : BANNIÈRE COOKIES
   =========================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px;
  display: none;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.cookie-banner.visible { display: block; }

.cookie-content {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  min-width: 250px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

.cookie-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: all var(--transition);
  font-family: inherit;
}

.cookie-btn:hover {
  border-color: var(--border-strong);
}

.cookie-btn.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ===========================
   V3 : FAQ
   =========================== */

.faq-section {
  margin-top: 48px;
  margin-bottom: 32px;
}

.faq-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--surface-2);
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  color: var(--text-muted);
  transition: transform var(--transition);
  font-weight: 300;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  padding: 0 20px 20px;
  max-height: 500px;
}

/* ===========================
   V3 : FAVORIS
   =========================== */

.fav-star {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.3;
  transition: all var(--transition);
  z-index: 2;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
}

.fav-star:hover {
  opacity: 1;
  background: var(--surface-2);
}

.fav-star.active {
  opacity: 1;
  color: #f59e0b;
}

.tool-card { position: relative; }

/* ===========================
   V3 : ANIMATIONS
   =========================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.visible {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Smooth scroll global */
html { scroll-behavior: smooth; }

/* ===========================
   V3 : RESPONSIVE
   =========================== */

@media (max-width: 600px) {
  .top-btn {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
  
  .share-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ===========================
   V4 : ONGLETS APPLE STYLE
   =========================== */

.category-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 8px;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.category-tabs::-webkit-scrollbar { display: none; }

html[data-theme="dark"] .category-tabs {
  background: rgba(40, 40, 40, 0.6);
}

.tab-pill {
  flex: 0 0 auto;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  font-family: inherit;
  letter-spacing: -0.01em;
}

.tab-pill:hover {
  color: var(--text);
  background: var(--surface);
}

.tab-pill.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

html[data-theme="dark"] .tab-pill.active {
  background: var(--text);
  color: var(--bg);
}

/* CATEGORY VISIBILITY - 100% CSS basé sur body[data-cat] */
.category-section {
  display: block;
  animation: fadeInSection 0.3s ease-out;
}

@keyframes fadeInSection {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mode "Tous" : tout visible (par défaut) */
body[data-cat="all"] .category-section,
body:not([data-cat]) .category-section {
  display: block;
}

/* Mode filtré : cache toutes les sections sauf celle qui correspond */
body[data-cat="immobilier"] .category-section:not(#immobilier),
body[data-cat="finance"] .category-section:not(#finance),
body[data-cat="travail"] .category-section:not(#travail),
body[data-cat="sante"] .category-section:not(#sante),
body[data-cat="temps"] .category-section:not(#temps),
body[data-cat="quotidien"] .category-section:not(#quotidien),
body[data-cat="etudes"] .category-section:not(#etudes) {
  display: none;
}

/* Cards plus compactes */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.tool-card {
  padding: 18px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.tool-card .title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
}

.tool-card .desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  letter-spacing: -0.005em;
}

@media (max-width: 640px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .tool-card {
    padding: 14px 12px;
  }
  
  .tool-card .title { font-size: 13px; }
  .tool-card .desc { font-size: 11px; }
}

/* Hero plus Apple */
.hero-title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-align: center;
  margin: 16px 0 8px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

@media (max-width: 640px) {
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 14px; }
}

/* --- LE HERO BLOCK (Titre + Logo) --- */
.hero-block {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre verticalement */
    align-items: center;     /* Centre horizontalement */
    text-align: center;
    width: 100%;
    max-width: 980px;
    padding: 32px 20px;
    min-height: 50vh; /* Prend 50% de la hauteur de l'écran sur PC */
    margin: 0 auto 2rem;
}

/* Le conteneur du Titre et du Logo */
.logo-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; /* Espace entre le logo et le texte */
    font-size: clamp(3.5rem, 7vw, 6rem); /* TEXTE GÉANT SUR PC */
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -0.04em;
    margin: 0;
}

.subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
    letter-spacing: -0.01em;
    margin-bottom: 28px;
}

/* Le Logo Pyrax */
.pyrax-logo {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 0 15px rgba(255, 72, 0, 0.4)); /* Léger halo de feu autour */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation stylée : le logo "bat des ailes" quand on le survole */
.pyrax-logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 25px rgba(255, 72, 0, 0.8));
}

/* --- VERSION TÉLÉPHONE (Responsive) --- */
@media (max-width: 768px) {
    .hero-block {
        min-height: auto; /* Annule l'effet plein écran */
        padding-top: 40px;
        margin-bottom: 1.5rem;
    }
    
    .logo-title {
        font-size: 3.5rem; /* Taille plus raisonnable sur mobile */
        gap: 10px;
    }

    .pyrax-logo {
        width: 60px; /* Logo plus petit sur mobile */
        height: 60px;
    }
}

/* Recherche améliorée */
.search-bar input {
  padding: 14px 18px 14px 46px;
  border-radius: 14px;
  font-size: 14px;
}

/* Category header (titre + count) plus discret */
.category-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
  padding-left: 4px;
}

.category-header h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.category-count {
  font-size: 12px;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}


/* ============================================================
   ===== REDESIGN DESKTOP (≥ 1000px) — type tableau de bord =====
   Le mobile reste 100% inchangé. Tout est dans ce media query.
   ============================================================ */
@media (min-width: 1000px) {

  body {
    padding: 0 0 80px;
  }

  /* Conteneur large qui remplit l'écran */
  .container-wide {
    max-width: 1280px;
    padding: 0 48px;
  }

  /* ----- Barre de navigation desktop ----- */
  .container-wide > .nav {
    padding: 24px 0 0;
    border-bottom: none;
  }

  /* ----- Hero ample, aligné à gauche ----- */
  .container-wide .hero-block {
    text-align: left;
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
  }

  .container-wide .hero-title {
    font-size: 88px;
    text-align: left;
    margin: 0 0 12px;
    letter-spacing: -0.05em;
    line-height: 1;
  }

  .container-wide .hero-subtitle {
    text-align: left;
    font-size: 19px;
    margin-bottom: 28px;
    max-width: 540px;
  }

  /* ----- Barre de recherche desktop : large et marquée ----- */
  .container-wide .search-bar {
    max-width: 520px;
    margin: 0 0 28px;
  }

  .container-wide .search-bar input {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-sm);
  }

  /* ----- Onglets de catégories : style segmenté pro ----- */
  .container-wide .category-tabs {
    gap: 6px;
    padding: 6px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 36px;
    flex-wrap: wrap;
    position: static;
  }

  .container-wide .tab-pill {
    font-size: 13px;
    padding: 9px 16px;
  }

  /* ----- Sections de catégorie : en-tête marqué ----- */
  .container-wide .category-section {
    margin-bottom: 44px;
  }

  .container-wide .category-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 20px;
    align-items: center;
  }

  .container-wide .category-header h3 {
    font-size: 15px;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--text);
    font-weight: 650;
  }

  .container-wide .category-count {
    font-size: 12px;
    background: var(--surface-2);
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: auto;
  }

  /* ----- Grille dense : 4 colonnes qui remplissent l'écran ----- */
  .container-wide .tools-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  /* ----- Cartes : style panneau, plus riche au survol ----- */
  .container-wide .tool-card {
    padding: 22px 20px;
    border-radius: 16px;
    transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .container-wide .tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, transparent 60%, rgba(0,0,0,0.015) 100%);
    opacity: 0;
    transition: opacity 180ms ease;
    pointer-events: none;
  }

  .container-wide .tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
  }

  .container-wide .tool-card:hover::before {
    opacity: 1;
  }

  .container-wide .tool-card:hover .icon {
    transform: scale(1.06);
  }

  .container-wide .tool-card .title {
    font-size: 15px;
    font-weight: 600;
  }

  .container-wide .tool-card .desc {
    font-size: 12.5px;
  }

  /* ----- Section "récemment utilisés" ----- */
  .container-wide .history-section {
    margin-bottom: 32px;
  }

  /* ----- Pied de page desktop ----- */
  .container-wide .footer {
    border-top: 1px solid var(--border);
    margin-top: 56px;
    padding-top: 28px;
  }
}

/* ===== Très grand écran (≥ 1400px) : 5 colonnes ===== */
@media (min-width: 1400px) {
  .container-wide {
    max-width: 1440px;
  }
  .container-wide .tools-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .container-wide .hero-title {
    font-size: 104px;
  }
  .container-wide .hero-subtitle {
    font-size: 20px;
  }
}

/* ===== Mode sombre : ajustements desktop ===== */
@media (min-width: 1000px) {
  html[data-theme="dark"] .container-wide .tool-card::before {
    background: linear-gradient(135deg, transparent 60%, rgba(255,255,255,0.025) 100%);
  }
  html[data-theme="dark"] .container-wide .search-bar input {
    background: var(--surface);
  }
}

/* ============================================================
   ===== ICÔNES DUOTONE (remplace les emoji) =====
   ============================================================ */

/* Icône dans les cartes d'outils : carré teinté + SVG coloré */
.tool-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 180ms ease;
}
.tool-card .icon svg {
  width: 22px;
  height: 22px;
}

/* Couleurs par catégorie : fond doux + trait vif */
.ic-immo  { background: #eff6ff; }  .ic-immo  svg { color: #2563eb; }
.ic-fin   { background: #ecfdf5; }  .ic-fin   svg { color: #059669; }
.ic-trav  { background: #f5f3ff; }  .ic-trav  svg { color: #7c3aed; }
.ic-sante { background: #fff1f2; }  .ic-sante svg { color: #e11d48; }
.ic-temps { background: #fff7ed; }  .ic-temps svg { color: #ea580c; }
.ic-quot  { background: #ecfeff; }  .ic-quot  svg { color: #0891b2; }
.ic-etud  { background: #eef2ff; }  .ic-etud  svg { color: #4f46e5; }

/* Mode sombre : fonds teintés plus profonds */
html[data-theme="dark"] .ic-immo  { background: rgba(37,99,235,0.15); }
html[data-theme="dark"] .ic-immo  svg { color: #60a5fa; }
html[data-theme="dark"] .ic-fin   { background: rgba(5,150,105,0.15); }
html[data-theme="dark"] .ic-fin   svg { color: #34d399; }
html[data-theme="dark"] .ic-trav  { background: rgba(124,58,237,0.15); }
html[data-theme="dark"] .ic-trav  svg { color: #a78bfa; }
html[data-theme="dark"] .ic-sante { background: rgba(225,29,72,0.15); }
html[data-theme="dark"] .ic-sante svg { color: #fb7185; }
html[data-theme="dark"] .ic-temps { background: rgba(234,88,12,0.15); }
html[data-theme="dark"] .ic-temps svg { color: #fb923c; }
html[data-theme="dark"] .ic-quot  { background: rgba(8,145,178,0.15); }
html[data-theme="dark"] .ic-quot  svg { color: #22d3ee; }
html[data-theme="dark"] .ic-etud  { background: rgba(79,70,229,0.15); }
html[data-theme="dark"] .ic-etud  svg { color: #818cf8; }

/* Icône dans les onglets de catégories */
.tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tab-ic {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.tab-ic-immo  { color: #2563eb; }
.tab-ic-fin   { color: #059669; }
.tab-ic-trav  { color: #7c3aed; }
.tab-ic-sante { color: #e11d48; }
.tab-ic-temps { color: #ea580c; }
.tab-ic-quot  { color: #0891b2; }
.tab-ic-etud  { color: #4f46e5; }

html[data-theme="dark"] .tab-ic-immo  { color: #60a5fa; }
html[data-theme="dark"] .tab-ic-fin   { color: #34d399; }
html[data-theme="dark"] .tab-ic-trav  { color: #a78bfa; }
html[data-theme="dark"] .tab-ic-sante { color: #fb7185; }
html[data-theme="dark"] .tab-ic-temps { color: #fb923c; }
html[data-theme="dark"] .tab-ic-quot  { color: #22d3ee; }
html[data-theme="dark"] .tab-ic-etud  { color: #818cf8; }

/* Onglet actif : l'icône passe en blanc pour rester lisible */
.tab-pill.active .tab-ic { color: currentColor; }

/* ===== Icône dans le titre des pages d'outils ===== */
.tool-header h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.title-ic {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.title-ic svg {
  width: 24px; height: 24px;
}
@media (max-width: 640px) {
  .title-ic { width: 34px; height: 34px; }
  .title-ic svg { width: 20px; height: 20px; }
}

/* ============================================================
   ===== FIX FINAL ICÔNES — priorité maximale (mai 2026) =====
   Force le bon rendu : petit carré coloré, SVG contenu.
   ============================================================ */
.tool-card {
  gap: 10px !important;
  padding: 18px 16px !important;
}
.tool-card .icon {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
.tool-card .icon svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
}
/* Espace entre les cartes augmenté pour qu'elles ne fusionnent plus */
.tools-grid {
  gap: 14px !important;
}
@media (max-width: 640px) {
  .tools-grid { gap: 10px !important; }
  .tool-card .icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }
  .tool-card .icon svg { width: 18px !important; height: 18px !important; }
}
/* Desktop : icônes nettes, jamais géantes */
@media (min-width: 1000px) {
  .container-wide .tool-card .icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }
  .container-wide .tool-card .icon svg { width: 21px !important; height: 21px !important; }
  .container-wide .tools-grid { gap: 16px !important; }
}

/* ===== Logo central agrandi & stylé sur la home ===== */
.hero-title {
  font-size: 64px;
}
@media (min-width: 1000px) {
  .container-wide .hero-title { font-size: 96px; }
}
@media (min-width: 1400px) {
  .container-wide .hero-title { font-size: 116px; }
}
@media (max-width: 640px) {
  .hero-title { font-size: 52px; }
}

/* ===== Masquer le "Calviro" en haut sur la HOME uniquement ===== */
body.is-home .nav .brand {
  visibility: hidden;
}

/* ===== Point accent du logo central ===== */
.hero-dot {
  color: #2563eb;
  -webkit-text-fill-color: #2563eb;
  background: none;
}
html[data-theme="dark"] .hero-dot {
  color: #60a5fa;
  -webkit-text-fill-color: #60a5fa;
}
/* Le titre hero : dégradé légèrement plus contrasté */
.hero-title {
  background: linear-gradient(135deg, var(--text) 20%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 800;
}

/* ===== FIX FINAL onglets de catégories ===== */
.category-tabs {
  gap: 6px !important;
  padding: 5px !important;
}
.tab-pill {
  padding: 9px 14px !important;
  gap: 6px !important;
}
.tab-ic {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
}
.tab-ic svg { width: 15px !important; height: 15px !important; display:block; }
@media (max-width: 640px) {
  .tab-pill { padding: 8px 11px !important; font-size: 12px !important; }
  .tab-ic { width: 13px !important; height: 13px !important; min-width: 13px !important; }
}

/* ===== FIX titre des pages d'outils : icône contenue ===== */
.title-ic {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
}
.title-ic svg { width: 21px !important; height: 21px !important; display:block; }
@media (max-width: 640px) {
  .title-ic { width: 32px !important; height: 32px !important; min-width: 32px !important; }
  .title-ic svg { width: 18px !important; height: 18px !important; }
}
/* ==========================================================
   FIX HERO GÉANT ET LOGO CYBER (A COLLER TOUT A LA FIN)
   ========================================================== */

.hero-block {
    min-height: 45vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Force le logo et le texte sur la même ligne */
.giant-calviro-title {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2vw !important;
    
    /* Taille massive sur PC */
    font-size: clamp(3.5rem, 11vw, 9.5rem) !important;
    font-weight: 900 !important;
    letter-spacing: -0.05em !important;
    line-height: 0.9 !important;
    margin: 0 0 15px 0 !important;
    
    /* Dégradé pro */
    background: linear-gradient(135deg, var(--text) 30%, var(--text-soft) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

/* Logo redimensionné et figé */
.pyrax-paradox-logo {
    flex-shrink: 0 !important; 
    width: clamp(70px, 11vw, 150px) !important; 
    height: clamp(70px, 11vw, 150px) !important;
    display: block !important;
    filter: drop-shadow(0 0 20px rgba(220, 38, 38, 0.6)) !important;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Animation au survol */
.giant-calviro-title:hover .pyrax-paradox-logo {
    transform: scale(1.08) rotate(4deg) !important;
    filter: drop-shadow(0 0 30px rgba(220, 38, 38, 0.9)) !important;
}

/* Le point de Calviro. en rouge cyber */
.hero-dot {
    color: #ef4444 !important;
    -webkit-text-fill-color: #ef4444 !important;
}

/* Sur Téléphone : on remet des tailles normales pour ne pas casser l'écran */
@media (max-width: 768px) {
    .hero-block {
        min-height: auto !important;
        padding-top: 30px !important;
    }
    .giant-calviro-title {
        flex-direction: column !important; /* L'un au dessus de l'autre sur mobile */
        gap: 10px !important;
        font-size: 3.8rem !important; /* Plus petit */
    }
    .pyrax-paradox-logo {
        width: 80px !important;
        height: 80px !important;
    }
}
