
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
    transition: background 0.3s, color 0.3s;
}

body.dark {
    background: #121212;
    color: #eee;
}

/* SIDEBAR */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    padding: 30px 20px;
    background: #eee;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

body.dark .sidebar {
    background: #1e1e1e;
    border-color: #333;
}

.sidebar h2 {
    margin-bottom: 35px;
    font-size: 22px;
}

.sidebar nav a {
    display: block;
    padding: 13px 15px;
    margin-bottom: 8px;
    text-decoration: none;
    color: inherit;
    border-radius: 7px;
    transition: background 0.2s;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: #d8eaf2;
    color: #167ba8;
}

body.dark .sidebar nav a:hover,
body.dark .sidebar nav a.active {
    background: #292929;
    color: #55bdeb;
}

/* BOUTONS */

.sidebar-buttons {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.sidebar-buttons button {
    flex: 1;
    padding: 12px 8px;
    border: none;
    border-radius: 7px;
    background: #2696c9;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.sidebar-buttons button:hover {
    background: #187eac;
}

/* CONTENU */

.content {
    margin-left: 260px;
    padding: 55px;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 30px auto;
}

.container h1 {
    font-size: 38px;
    margin-bottom: 15px;
}

.description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 40px;
}

body.dark .description {
    color: #aaa;
}

.section {
    max-width: 850px;
    margin: 0 auto 70px;
}

.section h2 {
    font-size: 27px;
    margin-bottom: 20px;
}

.section p {
    line-height: 1.8;
    color: #666;
}

body.dark .section p {
    color: #aaa;
}

/* INTRODUCTION */

.hero {
    max-width: 850px;
    margin: 65px auto 90px;
}

.hero .subtitle {
    color: #2696c9;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 25px;
}

.hero p {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
}

body.dark .hero p {
    color: #aaa;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    flex-wrap: wrap;
}

/* LIENS ET CARTES */

.button {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 7px;
    text-decoration: none;
    background: #2696c9;
    color: white;
    transition: 0.2s;
}

.button:hover {
    background: #187eac;
    transform: translateY(-2px);
}

.button.secondary {
    background: transparent;
    border: 1px solid #2696c9;
    color: #2696c9;
}

.cards,
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.card,
.project-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, border 0.2s;
}

.card {
    padding: 25px;
}

.card:hover,
.project-card:hover {
    transform: translateY(-4px);
    border-color: #2696c9;
}

body.dark .card,
body.dark .project-card {
    background: #1e1e1e;
    border-color: #333;
}

.card h3 {
    margin-bottom: 12px;
}

.card p,
.project-info p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

body.dark .card p,
body.dark .project-info p {
    color: #aaa;
}

.card a,
.project-link {
    color: #2696c9;
    text-decoration: none;
}

.card a:hover,
.project-link:hover {
    text-decoration: underline;
}

/* PROJETS */

.project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: #ddd;
}

.project-info {
    padding: 22px;
}

.project-info h2 {
    font-size: 21px;
    margin-bottom: 12px;
}

.project-link {
    display: inline-block;
    font-size: 14px;
}

.empty {
    color: #888;
    padding: 20px 0;
}

/* FORMULAIRE */

.formulaire {
    background: white;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

body.dark .formulaire {
    background: #1e1e1e;
    border-color: #333;
}

.champ {
    margin-bottom: 22px;
}

.champ label {
    display: block;
    margin-bottom: 9px;
    font-weight: bold;
}

.champ input,
.champ select,
.champ textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fafafa;
    color: #222;
    font-size: 15px;
    font-family: Arial, sans-serif;
    outline: none;
}

.champ textarea {
    min-height: 150px;
    resize: vertical;
}

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
    border-color: #2696c9;
}

body.dark .champ input,
body.dark .champ select,
body.dark .champ textarea {
    background: #292929;
    color: white;
    border-color: #444;
}

.submit-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 7px;
    background: #2696c9;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.submit-button:hover {
    background: #187eac;
}

.information {
    margin-top: 20px;
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

/* FOOTER */

footer {
    margin-top: 100px;
    padding: 25px 0;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #888;
    font-size: 13px;
}

body.dark footer {
    border-color: #333;
}

/* MOBILE */

@media (max-width: 750px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 18px;
    }

    .sidebar h2 {
        margin-bottom: 15px;
    }

    .sidebar-buttons {
        margin-top: 15px;
    }

    .content {
        margin-left: 0;
        padding: 25px;
    }

    .hero {
        margin: 35px auto 65px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 16px;
    }

    .container h1 {
        font-size: 30px;
    }

    .formulaire {
        padding: 20px;
    }
}
