/*
Theme Name: Atelier Informatique Pro
Theme URI: https://github.com/fabricefx/style_wordpress
Author: Fabrice FX
Description: Thème haute performance optimisé SEO/GEO pour l'IA et Google Workspace.
Version: 1.8
Text Domain: atelier-pro
*/

/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    --google-blue: #1a73e8;
    --google-red: #ea4335;
    --google-yellow: #fbbc04;
    --google-green: #34a853;
    --text-main: #202124;
    --text-light: #5f6368;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border: #dadce0;
    --shadow-google: 0 1px 6px rgba(32, 33, 36, 0.28);
    --shadow-premium: 0 4px 16px rgba(0, 0, 0, 0.1);
    --transition: all 0.25s ease-in-out;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Google Sans Flex', 'Roboto', Arial, sans-serif;
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(90deg, var(--google-blue), #8ab4f8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-title {
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

/* ==========================================================================
   3. HERO & SEARCH AREA (CORRECTIONS)
   ========================================================================== */
.hero-split {
    padding: 80px 0;
    background: radial-gradient(circle at top right, #f1f8ff, #ffffff);
}

.hero-split .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1.2;
    /* Donne un peu plus de place au texte */
    max-width: 650px;
    /* Augmenté pour permettre une barre plus large */
}

.hero-title {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* ZONE DE RECHERCHE AGRANDIE */
.google-search-box {
    width: 100%;
    /* Occupe toute la largeur du parent .hero-content */
    margin-top: 20px;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 6px 6px 6px 18px;
    border-radius: 30px;
    /* Style pilule */
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-input-group:hover,
.search-input-group:focus-within {
    box-shadow: var(--shadow-google);
    border-color: transparent;
}

.search-icon-svg {
    display: flex;
    align-items: center;
    color: var(--text-light);
    margin-right: 12px;
}

.search-field {
    flex: 1;
    /* CRITIQUE : Force le champ à prendre tout l'espace restant */
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-main);
    padding: 10px 0;
    background: transparent;
    min-width: 0;
    /* Empêche le débordement dans les flexbox */
}

.btn-primary {
    background: var(--google-blue);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    /* Empêche le texte du bouton de revenir à la ligne */
}

.btn-primary:hover {
    background: #1765cc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   4. SECTIONS SECONDAIRES
   ========================================================================== */
.hero-image-wrapper {
    flex: 0.8;
}

.hero-image-card {
    background: var(--white);
    padding: 10px;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
}

/* ==========================================================================
   5. RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .hero-split .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .search-input-group {
        margin: 0 auto;
    }
}