/* 
 * Tech Talents Conseils - Main Stylesheet
 * Ultra-lightweight, High-performance, Mobile-first
 */

/* =========================================
   1. Design System & Variables
   ========================================= */
:root {
    /* Colors */
    --color-primary: #1A2B56;
    /* Bleu Marine Profond */
    --color-accent: #F27A22;
    /* Orange Énergie */
    --bg-white: #FFFFFF;
    --bg-light: #F9F9F9;
    --text-dark: #1A2B56;
    --text-light: #F9F9F9;
    /* Adjusted for contrast on dark backgrounds */

    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-regular: 400;
    --font-weight-bold: 800;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Borders & Radius */
    --border-radius-special: 0 0 30px 0;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* =========================================
   2. Reset & Base Styles
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

/* =========================================
   3. Utility Classes & Layout
   ========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius-special);
    cursor: pointer;
    transition: var(--transition-medium);
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: #121e3c;
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--bg-white);
}

.btn-accent:hover {
    background-color: #d96817;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    text-align: center;
}

.text-accent {
    color: var(--color-accent);
}

/* =========================================
   4. Header
   ========================================= */
.header {
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: var(--spacing-sm) 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.logo-img {
    height: 48px;
    /* Similaire à la hauteur du bouton (12px + 12px padding + ~24px texte) */
    width: auto;
    object-fit: contain;
}

/* Desktop Nav */
.nav-menu {
    display: none;
    /* Hidden on mobile by default */
}

.nav-menu ul {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--color-accent);
}

/* Burger Menu */
.burger-menu {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    margin-bottom: 5px;
    transition: var(--transition-medium);
}

.burger-menu span:last-child {
    margin-bottom: 0;
}

/* Mobile Menu Active State */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    padding: var(--spacing-md);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    align-items: center;
}

.nav-menu.active ul {
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
}

.nav-menu.active li {
    width: 100%;
    text-align: center;
}

/* =========================================
   5. Hero Section
   ========================================= */
.hero {
    background-color: var(--color-primary);
    color: var(--bg-white);
    padding: 6rem 0;
    /* Add top padding to obscure header overlap if any */
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.btn-large {
    font-size: 1.25rem;
    padding: 16px 32px;
}

/* =========================================
   6. References Section (Social Proof)
   ========================================= */
.references {
    background-color: var(--bg-white);
    text-align: center;
}

.references h2 {
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    align-items: center;
}

.logo-item {
    font-weight: var(--font-weight-bold);
    color: #ccc;
    font-size: 1.5rem;
    padding: var(--spacing-md);
    transition: var(--transition-medium);
    cursor: default;
    /* Style pour contenir les logos */
    border: 2px solid #eee;
    border-radius: var(--border-radius-special);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 120px;
    background-color: var(--bg-white);
}

.logo-item:hover {
    border-color: var(--color-primary);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.club-logo {
    max-height: 80px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* =========================================
   7. Expertise CRM Section
   ========================================= */
.expertise {
    background-color: var(--bg-light);
    text-align: center;
}

.expertise h2 {
    margin-bottom: var(--spacing-lg);
    color: var(--color-primary);
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.card {
    background-color: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-special);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-medium);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
    height: 60px;
    /* Hauteur fixe pour tous les logos */
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.crm-logo {
    height: 100%;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    object-position: left center;
}

.card h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.card p {
    color: #666;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.btn-text {
    background: none;
    border: none;
    color: var(--color-accent);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.btn-text:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* =========================================
   8. Team Section
   ========================================= */
.team {
    background-color: var(--bg-white);
    text-align: center;
}

.team h2 {
    margin-bottom: var(--spacing-lg);
    color: var(--color-primary);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    max-width: 800px;
    /* Limit width for cleaner 2-column look on desktop */
    margin: 0 auto;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md);
}

.team-photo {
    width: 150px;
    height: 150px;
    background-color: #eee;
    border-radius: 50%;
    margin-bottom: var(--spacing-sm);
    /* Placeholder for actual photo */
    border: 4px solid var(--bg-white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.team-card .role {
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.team-card .desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: var(--spacing-sm);
    max-width: 300px;
}

.linkedin-link {
    color: var(--color-accent);
    font-weight: bold;
    font-size: 0.9rem;
}

/* =========================================
   9. Contact Section
   ========================================= */
.contact {
    background-color: var(--color-primary);
    color: var(--bg-white);
    padding-bottom: var(--spacing-lg);
}

.contact h2 {
    color: var(--bg-white);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-form-container,
.calendly-container {
    background-color: rgba(255, 255, 255, 0.05);
    /* Glass-like subtle effect */
    padding: var(--spacing-md);
    border-radius: var(--border-radius-special);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border-radius: 4px;
    /* Standard radius for inputs for UX */
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--color-accent);
}

.calendly-placeholder {
    background-color: rgba(255, 255, 255, 0.1);
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.7);
}

.contact h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--bg-white);
}

.footer {
    background-color: #0f1a36;
    /* Darker than primary */
    color: rgba(255, 255, 255, 0.5);
    padding: var(--spacing-md) 0;
    text-align: center;
    font-size: 0.9rem;
}

.form-message {
    margin-top: var(--spacing-sm);
    text-align: center;
    font-weight: bold;
    min-height: 1.5rem;
}

.form-message.success {
    color: #4CAF50;
}

.form-message.error {
    color: #FF5252;
}

/* =========================================
   10. Media Queries (Responsiveness)
   ========================================= */

/* Tablet (Portrait) and up */
@media (min-width: 768px) {
    .burger-menu {
        display: none;
    }

    .nav-menu {
        display: block;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        flex-direction: row;
    }

    .contact-form-container,
    .calendly-container {
        flex: 1;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}