/*
 Theme Name:   Kivi1 Theme
 Theme URI:    http://kivi1wp.el
 Description:  Thème Kivi1 basé sur Astra
 Author:       Kivi1
 Author URI:   http://kivi1wp.el
 Template:     astra
 Version:      1.0.0
 Text Domain:  kivi1
*/

/* Import Kivi1 fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Raleway:wght@400;500;600;700&display=swap');

/* Kivi1 Color Variables */
:root {
    --kivi1-primary: #68ADBD;
    --kivi1-primary-hover: #62BCF6;
    --kivi1-red: #F23F3F;
    --kivi1-green: #89A54E;
    --kivi1-orange: #FF7E39;
    --kivi1-yellow: #FFC107;
    --kivi1-text: #2E323C;
    --kivi1-text-light: #8796AF;
    --kivi1-border: #E1E5F1;
    --kivi1-bg-light: #F7F9FB;
    --kivi1-white: #FFFFFF;
}

/* Base Typography */
body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--kivi1-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1 {
    font-weight: 700;
    font-size: 36px;
    letter-spacing: -0.5px;
}

h2 {
    font-weight: 600;
    font-size: 28px;
    letter-spacing: -0.3px;
}

h3 {
    font-weight: 500;
    font-size: 22px;
}

/* Links */
a {
    color: var(--kivi1-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--kivi1-primary-hover);
    text-decoration: underline;
}

/* Buttons */
.wp-block-button__link,
.button,
button,
input[type="submit"] {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 5px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.wp-block-button__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(104, 173, 189, 0.3);
}

/* Cards */
.wp-block-column[style*="border-radius: 8px"] {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.wp-block-column[style*="border-radius: 8px"]:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
select {
    background: var(--kivi1-white);
    border: 1px solid var(--kivi1-border);
    border-radius: 5px;
    padding: 12px 16px;
    font-size: 16px;
    color: var(--kivi1-text);
    line-height: 1.5;
    min-height: 44px;
    transition: border 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border: 2px solid var(--kivi1-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(104, 173, 189, 0.1);
}

/* Hide header/footer/title for landing page style */
.page-id-16 .site-header,
.page-id-16 .site-footer,
.page-id-16 .entry-header {
    display: none;
}

.page-id-16 .site-content {
    margin-top: 0;
}

/* Full width for landing page */
.page-id-16 .site-content .ast-container {
    max-width: 100%;
    padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    .wp-block-button__link {
        width: 100%;
        text-align: center;
    }

    .wp-block-columns {
        flex-direction: column;
    }
}

/* Accessibility - Focus visible */
*:focus-visible {
    outline: 2px solid var(--kivi1-primary);
    outline-offset: 2px;
}

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

/* Navigation Header */
#kivi1-header a:not([style*="background"]):hover {
    color: var(--kivi1-primary) !important;
    background: var(--kivi1-bg-light);
}

#kivi1-header a[style*="background"]:hover {
    background: var(--kivi1-primary-hover) !important;
    transform: translateY(-1px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    #kivi1-nav {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

    #kivi1-nav.open {
        display: flex !important;
    }

    #kivi1-nav a {
        width: 100%;
        text-align: center;
        padding: 12px 16px !important;
    }

    #kivi1-nav a[style*="margin-left"] {
        margin-left: 0 !important;
        margin-top: 8px;
    }

    #kivi1-burger {
        display: block !important;
    }
}

/* Header scroll effect */
#kivi1-header.scrolled {
    background: rgba(255,255,255,1) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15) !important;
}

/* Landing page sections */
section {
    box-sizing: border-box;
}

/* Responsive stats grid */
@media (max-width: 768px) {
    #cta > div > div[style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #hero h1 {
        font-size: 32px !important;
    }

    #hero p {
        font-size: 16px !important;
    }
}
