# ── violet-chaton v2 — kitty terminal ────────────────────────────────────────
# Font : Maple Mono NF — cursive italics + ligatures
# Palette : violet-chaton v2 (source : themes/palette.sh)

# ── Font ─────────────────────────────────────────────────────────────────────
font_family      Maple Mono NF
bold_font        Maple Mono NF Bold
italic_font      Maple Mono NF Italic
bold_italic_font Maple Mono NF Bold Italic
font_size        13.0

# Ligatures et font features (cursive italics pour commentaires)
disable_ligatures never
font_features    MapleMono-NF-Regular   +cv01 +ss01 +ss02 +ss03 +ss05
font_features    MapleMono-NF-Italic    +cv01 +ss01 +ss02 +ss03 +ss05
font_features    MapleMono-NF-Bold      +cv01 +ss01 +ss02 +ss03 +ss05
font_features    MapleMono-NF-BoldItalic +cv01 +ss01 +ss02 +ss03 +ss05

# ── Cursor + trail effect ────────────────────────────────────────────────────
cursor                 #ff4da6
cursor_text_color      #1a0e27
cursor_shape           beam
cursor_beam_thickness  1.8
cursor_blink_interval  0.4

# Undercurl style — vagues violettes pour les erreurs/warnings
undercurl_style        thin-sparse
# Couleurs undercurl (utilisees par les apps qui supportent les colored underlines)
# Les terminaux modernes + neovim/bat utilisent ces couleurs automatiquement

# Trail — trainee lumineuse magenta derriere le curseur
cursor_trail           15
cursor_trail_decay     0.05 0.3
cursor_trail_start_threshold 0

# ── Scrollback ───────────────────────────────────────────────────────────────
scrollback_lines       10000
wheel_scroll_multiplier 3

# ── Mouse ────────────────────────────────────────────────────────────────────
mouse_hide_wait        2.0
url_color              #a4b4ff
url_style              curly
open_url_with          default
detect_urls            yes

# ── Bell ─────────────────────────────────────────────────────────────────────
enable_audio_bell      no
visual_bell_duration   0.0

# ── Window ───────────────────────────────────────────────────────────────────
window_padding_width   8 12
background_opacity     0.92
dynamic_background_opacity yes
dim_opacity            0.75

# Blur (compositor dependent — works on KWin, Hyprland, COSMIC)
# background_blur 24

confirm_os_window_close 0
initial_window_width   120c
initial_window_height  35c

# ── Tab bar ──────────────────────────────────────────────────────────────────
tab_bar_edge           top
tab_bar_style          powerline
tab_powerline_style    slanted
tab_bar_min_tabs       2

active_tab_foreground   #1a0e27
active_tab_background   #ff4da6
active_tab_font_style   bold
inactive_tab_foreground #c4b8d4
inactive_tab_background #3d2454
inactive_tab_font_style normal
tab_bar_background      #1a0e27

# ── Palette violet-chaton v2 ─────────────────────────────────────────────────

# Fond
foreground              #f0eaf8
background              #261537
selection_foreground     #1a0e27
selection_background     #c9a0ff

# Noir (fonds)
color0                  #261537
color8                  #5a3875

# Rouge (danger)
color1                  #f25c7a
color9                  #ff7a96

# Vert (mitsuri)
color2                  #9adba8
color10                 #b5e8c0

# Jaune (champagne)
color3                  #e8c87a
color11                 #f0d99a

# Bleu (lavande)
color4                  #a4b4ff
color12                 #bcc8ff

# Magenta
color5                  #ff4da6
color13                 #c9a0ff

# Cyan (lilac — pas de vrai cyan, on reste violet)
color6                  #c9a0ff
color14                 #dfc0ff

# Blanc (texte)
color7                  #c4b8d4
color15                 #f0eaf8

# ── Marks ────────────────────────────────────────────────────────────────────
mark1_foreground        #1a0e27
mark1_background        #ff4da6
mark2_foreground        #1a0e27
mark2_background        #c9a0ff
mark3_foreground        #1a0e27
mark3_background        #a4b4ff

# ── Keyboard shortcuts ──────────────────────────────────────────────────────

# Clipboard
map ctrl+v              paste_from_clipboard
map ctrl+c              copy_or_interrupt

# Tabs
map ctrl+shift+t        new_tab_with_cwd
map ctrl+shift+l        next_tab
map ctrl+shift+h        previous_tab
map ctrl+shift+w        close_tab
map ctrl+shift+,        set_tab_title

# Splits / Windows — tiling dans le terminal
map ctrl+shift+enter    new_window_with_cwd
map ctrl+shift+\        launch --cwd=current --location=vsplit
map ctrl+shift+-        launch --cwd=current --location=hsplit
map ctrl+shift+z        toggle_layout stack
map ctrl+shift+r        start_resizing_window

# Navigation entre splits
map ctrl+shift+left     neighboring_window left
map ctrl+shift+right    neighboring_window right
map ctrl+shift+up       neighboring_window up
map ctrl+shift+down     neighboring_window down

# Swap splits
map ctrl+shift+f        move_window_forward
map ctrl+shift+b        move_window_backward

# Zoom
map ctrl+shift+equal    change_font_size all +1.0
map ctrl+shift+minus    change_font_size all -1.0
map ctrl+shift+0        change_font_size all 0

# Reload
map ctrl+shift+f5       load_config_file

# Quick layouts
map ctrl+shift+1        goto_layout tall
map ctrl+shift+2        goto_layout fat
map ctrl+shift+3        goto_layout grid
map ctrl+shift+4        goto_layout horizontal
map ctrl+shift+5        goto_layout vertical

# ── Layouts ──────────────────────────────────────────────────────────────────
enabled_layouts         tall,fat,grid,horizontal,vertical,stack

# ── Splits styling ──────────────────────────────────────────────────────────
active_border_color     #ff4da6
inactive_border_color   #3d2454
bell_border_color       #f25c7a
window_border_width     1.5pt
window_margin_width     2
single_window_margin_width 0
draw_minimal_borders    yes
inactive_text_alpha     0.7
