/**
 * Master styling
 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8fafc;
    font-size: 17px;
    line-height: 1.6;
    color: #2d3748;
    font-weight: 400;
    letter-spacing: 0.01em;
}
hr {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: 0;
    border-top: 1px solid #e2e8f0;
    opacity: 1;
}

/** Font and link declarations */
span.time, span.categories {
    color: #ADADAD;
    margin-bottom: 5px;
    font-size: 11px;
}

h1 {
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    font-size: 2.25rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

h2 {
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #2d3748;
    font-size: 1.875rem;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

h3 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
    line-height: 1.3;
}

a, a:link, a:active {
    text-decoration: none;
    color: #3182ce;
    transition: color 0.2s ease;
}

a:hover {
    color: #2c5aa0;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

/**
 * /////////////////
 * Container element
 * /////////////////
 */
div#container {
    width: 700px;
    margin: auto;
}

/**
 * //////////////////////////////////
 * Right aka content column formatting
 * //////////////////////////////////
 */
div.right {
    width: 100%;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    margin-top: 2rem;
}

div.content {
    border-top: 1px solid #E6E6E6;
    margin-top: 5px;
    padding-top: 5px;
}

div.content pre {
    background: #1a202c;
    padding: 1.5rem;
    color: #e2e8f0;
    overflow-x: auto;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    line-height: 1.5;
}


footer {
    border-top: 1px solid #e2e8f0;
    width: 100%;
    margin-top: 3rem;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    color: #718096;
    font-size: 14px;
    text-align: center;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
    padding-bottom: 1rem;
}

footer div#github {
	text-align: right;
}

div.right h1 {
	margin-bottom: -2px;
}

div.right ul {
	list-style: none;
	margin-left: 0;
	padding: 0;
}

div.right ul li {
	margin-top: 5px;
	margin-left: 0;
	padding: 0;
}

div.right .post ul {
	list-style: square;
	margin-left: 15px;
}

/**
 * Left column aka nav bar formatting
 */
div.col-sm-2 {
        margin-top: 2rem;
        font-size: 14px;
        color: #4a5568;
        padding: 1.5rem;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 12px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

div.col-sm-2 strong {
        font-size: 18px;
        color: #ffffff;
        font-weight: 600;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

div.col-sm-2 div#about {
    margin-top: 10px;
    font-size: 12px;
    color: #e2e8f0;
    opacity: 0.9;
}

div.col-sm-2 img#about {
    border-radius: 50%;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

div.col-sm-2 img#about:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.PageNavigation {
    font-size: 14px;
    display: block;
    width: auto;
    overflow: hidden;
}

.PageNavigation a {
    display: block;
    width: 50%;
    float: left;
    margin: 1em 0;
}

.PageNavigation .next {
    text-align: right;
}
.PageNavigation .prev {
    text-align: left;
}

.social{
    display: block;
    margin: 10px 0;
}
.social ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.social ul li {
    display: inline-block;
    margin: 0 5px;
}
.social li a {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.social li a:hover {
    color: #ffffff;
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.share-page {
    padding: 10px 10px 5px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.post {
    text-align: justify;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

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

.post-content img, .content img {max-width: 100%}

/** Recherche */
#search-demo-container ul#results-container {
    list-style: none;
    font-size: 12px;
    margin-left: 0px;
    background-color: white;
    z-index: -1;
    border-left: 1px solid #dedede;
    box-shadow: 2px 3px 2px #dedede;
}

ul#results-container a {
    background-color: transparent;
}

ul#results-container a:hover {
    color: black;
}

#search-demo-container a:hover {
    color: black;
}

#search-input {
    padding: .5em;
    width:100%;
    font-size: 0.8em;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 768px) {
    div.col-sm-2 {
        margin-top: 1rem;
        margin-bottom: 2rem;
        padding: 1rem;
    }
    
    div.right {
        margin-top: 0;
        padding: 1.5rem;
    }
    
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 1.875rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}
