/*
Theme Name: Starter Theme
Theme URI: https://example.com/starter-theme
Author: Your Name
Author URI: https://example.com
Description: Un thème WordPress simple et moderne pour démarrer vos projets.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: starter-theme
Tags: simple, modern, starter, clean, responsive
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.header-search {
    flex: 1;
    max-width: 400px;
    position: absolute;
    left: 35%;
    transform: translateX(-50%);
}

.header-search form {
    display: flex;
    width: 100%;
}

.header-search input[type="search"],
.header-search .search-field {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.header-search input[type="search"]:focus,
.header-search .search-field:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.header-search input[type="submit"] {
    display: none;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.site-title a:hover {
    opacity: 0.8;
}

.site-logo {
    height: 65px;
    width: auto;
    display: block;
    margin: 0;
}

.site-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0.25rem 0 0 0;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
}

.main-navigation a {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    color: #fff;
    background-color: #27ae60;
    border-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

/* Main Content */
.site-main {
    padding: 0;
    min-height: calc(100vh - 200px);
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
    background-color: #fff;
}

.content-section:nth-child(even) {
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.section-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: #333;
}

.section-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.tool-item h3 {
    color: #27ae60;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tool-item p {
    color: #666;
    margin-bottom: 1rem;
}

.btn-download {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #27ae60;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-download:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

/* Contact Section */
.contact-section {
    background-color: #2c3e50;
    color: #fff;
}

.contact-section .section-title {
    color: #fff;
}

.contact-section .section-content {
    color: #fff;
}

.contact-info {
    margin-top: 2rem;
    text-align: center;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-info strong {
    color: #27ae60;
}

/* Hero Section (Page d'accueil) */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 4rem 0;
    background-color: #000;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background-color: #fff;
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: #27ae60;
    color: #fff;
}

.btn-contact:hover .btn-logo {
    filter: brightness(0) invert(1);
}

.btn-contact:active {
    transform: translateY(-1px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Posts */
.post {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.post:last-child {
    border-bottom: none;
}

.post-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #27ae60;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-content {
    margin-top: 1rem;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content a {
    color: #3498db;
    text-decoration: none;
}

.post-content a:hover {
    color: #27ae60;
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.site-footer a {
    color: #3498db;
    text-decoration: none;
}

.site-footer a:hover {
    color: #27ae60;
    text-decoration: underline;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .header-search {
        position: static;
        transform: none;
        max-width: 100%;
        margin: 1rem 0;
        order: 3;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .btn-contact {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 3rem 0;
    }
}
