/* ==========================================================================
   Variables & Reset
   ========================================================================== */
   :root {
    --primary-color: #111111;
    --secondary-color: #f4f4f5;
    --accent-color: #3b82f6; /* Bleu pro */
    --text-color: #3f3f46;
    --bg-color: #ffffff;
    --border-color: #e4e4e7;
    --radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--secondary-color);
}

/* ==========================================================================
   Boutons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.btn-secondary:hover {
    background-color: #e4e4e7;
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.full-width {
    width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-color);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a:not(.btn) {
    font-weight: 600;
    font-size: 0.95rem;
}

.main-nav a:not(.btn):hover {
    color: var(--accent-color);
}

.admin-link {
    color: var(--border-color) !important;
    opacity: 0.5;
}
.admin-link:hover { opacity: 1; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 150px 0 100px;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    max-width: 800px;
    margin: 0 auto 20px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.highlight-card {
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.service-card h3 {
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.service-card li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.service-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */
.portfolio-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.portfolio-item:nth-child(even) {
    direction: rtl; /* Inverse layout */
}

.portfolio-item:nth-child(even) > * {
    direction: ltr; /* Reset text direction */
}

.portfolio-visual {
    background: #e4e4e7;
    height: 400px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-visual {
    background: #1f2937;
}

.visual-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Faux wireframes pour décorer sans images */
.wireframe-mockup {
    width: 70%;
    height: 60%;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.wireframe-header { height: 15%; border-bottom: 1px solid #eee; }
.wireframe-hero { flex: 1; background: #f8fafc; margin: 10px; border-radius: 4px; }
.wireframe-chat { width: 50%; height: 80%; background: #374151; margin: auto; border-radius: 8px; }

.portfolio-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.tag-list {
    margin-bottom: 20px;
}

.tag {
    display: inline-block;
    background: var(--border-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 5px;
    font-weight: 600;
}

.portfolio-content p:not(.tag-list) {
    margin-bottom: 30px;
}

/* ==========================================================================
   Rendez-vous Section (Formulaire)
   ========================================================================== */
.appointment-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.appointment-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.appointment-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-note {
    font-size: 0.8rem;
    color: #71717a;
    text-align: center;
    margin-top: 15px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
}

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

.footer-links a {
    margin-left: 20px;
    font-size: 0.9rem;
    color: #71717a;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   Responsive (Mobile & Tablette)
   ========================================================================== */
@media (max-width: 992px) {
    .portfolio-item, .appointment-container {
        grid-template-columns: 1fr;
    }
    
    .portfolio-item:nth-child(even) {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .hero-actions, .form-row {
        flex-direction: column;
    }
    
    .main-nav {
        display: none; /* A remplacer par un menu burger JS en prod */
    }
    
    .hero {
        padding: 100px 0 60px;
    }
}