/* ============================================
   CLEERI - Premium IT Consulting Landing Page
   Design professionnel & moderne
   ============================================ */

/* ========== ROOT & VARIABLES ========== */
:root {
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --secondary: #00d4ff;
    --accent: #ff6b35;
    --dark: #0f1419;
    --dark-light: #1a1f2e;
    --text-primary: #e8f0f8;
    --text-secondary: #a0afc0;
    --border: #2a3f5f;
    --success: #00d084;
    --warning: #ffa500;
    --error: #ff4757;
}

/* ========== RESET & GENERAL ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

main, .content {
    flex: 1;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3.5em;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

h2 {
    font-size: 2.5em;
    color: var(--text-primary);
    margin-top: 30px;
}

h3 {
    font-size: 1.8em;
    color: var(--secondary);
}

h4 {
    font-size: 1.3em;
    color: var(--text-primary);
}

p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1.05em;
}

strong {
    color: var(--secondary);
    font-weight: 600;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ========== HEADER ========== */
header {
    background: linear-gradient(180deg, rgba(15, 20, 25, 0.95) 0%, rgba(26, 35, 50, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 102, 255, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.8em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

header .subtitle {
    font-size: 0.85em;
    color: var(--text-secondary);
    margin: 5px 0 0 0;
}

/* ========== NAVIGATION ========== */
nav {
    display: flex;
    gap: 10px;
    background: transparent;
}

nav a {
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

nav a:hover {
    color: var(--secondary);
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--secondary);
}

/* ========== SECTIONS ========== */
.section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1em;
    margin-top: 15px;
}

/* ========== HERO SECTION ========== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 100px 0;
}

.hero-content h1 {
    font-size: 3.8em;
    margin-bottom: 25px;
    line-height: 1.15;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.hero-visual {
    position: relative;
    height: 400px;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    filter: blur(40px);
}

/* Animation du losange bleu retirée pour laisser place au logo animé */

/* ========== SERVICES GRID ========== */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.8), rgba(42, 63, 95, 0.6));
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary), transparent);
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 50%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.05));
    box-shadow: 0 20px 50px rgba(0, 102, 255, 0.2);
}

.service-card:hover::before {
    opacity: 0.15;
}

.service-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.service-card p {
    margin-bottom: 0;
    line-height: 1.7;
}

.service-card ul {
    margin-top: 20px;
    margin-left: 0;
}

.service-card li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* ========== PRICING SECTION ========== */
.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.price-card {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.9), rgba(42, 63, 95, 0.7));
    border: 2px solid var(--border);
    padding: 50px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
}

.price-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 212, 255, 0.05));
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 102, 255, 0.25);
}

.price-card:hover {
    border-color: var(--secondary);
    transform: translateY(-10px);
}

.price-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
    box-shadow: 0 40px 80px rgba(0, 102, 255, 0.35);
}

.price-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 15px;
}

.price-card h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.price-card .price {
    font-size: 3em;
    font-weight: 900;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0;
}

.price-card .period {
    color: var(--text-secondary);
    font-size: 0.95em;
}

.price-card ul {
    text-align: left;
    margin: 30px 0;
    list-style: none;
}

.price-card li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    padding-left: 0;
}

.price-card li::before {
    content: '→ ';
    color: var(--success);
    margin-right: 10px;
    font-weight: bold;
}

.price-card li:last-child {
    border-bottom: none;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--primary);
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
    border-color: var(--secondary);
}

.btn:hover::before {
    left: 100%;
}

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

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-block {
    width: 100%;
    margin-top: 20px;
}

.btn-large {
    padding: 16px 45px;
    font-size: 1.1em;
}

/* ========== FORMS ========== */
.contact-form {
    max-width: 600px;
    margin: 30px auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1em;
    background: rgba(26, 35, 50, 0.8);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(26, 35, 50, 0.95);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* ========== TECH STACK ========== */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.tech-item {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.8), rgba(42, 63, 95, 0.6));
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: var(--secondary);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-5px);
}

.tech-item .icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.tech-item h4 {
    font-size: 1.1em;
    margin-bottom: 8px;
}

.tech-item p {
    font-size: 0.9em;
    margin: 0;
}

/* ========== MESSAGES ========== */
.success-message, .error-message {
    padding: 18px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 15px;
}

.success-message {
    background: rgba(0, 208, 132, 0.15);
    border-left-color: var(--success);
    color: var(--success);
}

.error-message {
    background: rgba(255, 71, 87, 0.15);
    border-left-color: var(--error);
    color: var(--error);
}

/* ========== ALERTS ========== */
.alert {
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 4px solid;
    background: rgba(42, 63, 95, 0.5);
}

.alert-info {
    border-left-color: var(--primary);
    background: rgba(0, 102, 255, 0.1);
}

.alert-warning {
    border-left-color: var(--warning);
    background: rgba(255, 165, 0, 0.1);
}

.alert-success {
    border-left-color: var(--success);
    background: rgba(0, 208, 132, 0.1);
}

.alert h3 {
    margin-top: 0;
}

/* ========== FOOTER ========== */
footer {
    background: linear-gradient(180deg, rgba(15, 20, 25, 0.95), rgba(10, 15, 20, 0.98));
    border-top: 1px solid var(--border);
    padding: 50px 0 30px;
    margin-top: auto;
    color: var(--text-secondary);
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

footer h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 12px;
}

footer a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 30px;
    text-align: center;
    color: var(--text-secondary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 1.8em;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 50px 0;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-visual {
        display: none;
    }

    .section {
        padding: 50px 0;
    }

    .container {
        padding: 0 20px;
    }

    nav {
        flex-wrap: wrap;
    }

    .price-card.featured {
        transform: scale(1);
    }

    .price-card.featured:hover {
        transform: translateY(-10px);
    }

    header .container {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.4em;
    }

    h3 {
        font-size: 1.2em;
    }

    .section {
        padding: 30px 0;
    }

    .hero-content h1 {
        font-size: 1.8em;
    }

    .container {
        padding: 0 15px;
    }

    nav {
        gap: 5px;
    }

    nav a {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    .services, .pricing, .tech-stack {
        grid-template-columns: 1fr;
    }

    .section-title {
        margin-bottom: 30px;
    }

    footer .container {
        gap: 20px;
        grid-template-columns: 1fr;
    }
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }

.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

.hidden { display: none; }
.visible { display: block; }
