/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

h1 {
    margin-left: 20;
    margin-top: 10;
}


/* Header */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header a {
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.header a:hover {
    color: #0066cc;
}

.header a:first-child {
    margin-right: auto;
    font-weight: 600;
    /* color: #0066cc; */
}

/* Conteneur des posts */
.posts {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.posts .post {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.posts .post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.posts a {
    text-decoration: none;
    text-align: center;
    color: inherit;
    display: block;
}

.posts img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #f0f0f0;
}

.posts a > *:not(img) {
    padding: 1rem;
}

.posts .title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.posts i {
    text-align: left;
    font-style: normal;
    color: #86868b;
    font-size: 0.85rem;
    display: block;
}
.post-meta {
    display: flex;
    justify-content: space-between;
    padding: 0 1rem 1rem 1rem;
    font-size: 0.85rem;
    color: #86868b;
}

.post-meta i {
    font-style: normal;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
        gap: 1rem;
    }
    
    .posts {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header a:first-child {
        margin-right: 0;
        width: 100%;
        text-align: center;
    }
}

/* Styles pour les formulaires */
form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

form label {
    display: block;
    margin: 1.5rem 0 0.5rem 0;
    font-weight: 500;
    color: #1d1d1f;
}

form input[type="text"],
form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form textarea {
    min-height: 200px;
    resize: vertical;
}
form h1 {
    text-align: center;
}

form input[type="text"]:focus,
form textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 125, 250, 0.1);
}

form input[type="file"] {
    width: 100%;
    padding: 0.5rem 0;
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 1rem;
    margin-top: 2rem;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #004080;
}

/* Styles responsives pour les formulaires */
@media (max-width: 768px) {
    form {
        padding: 1.5rem;
        margin: 1.5rem;
    }
}

@media (max-width: 480px) {
    form {
        padding: 1rem;
        margin: 1rem;
    }
    
    form label {
        margin: 1rem 0 0.3rem 0;
    }
}

/* Styles pour les inputs password */
form input[type="password"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Pour la cohérence des polices */
}

form input[type="password"]:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 125, 250, 0.1);
}

form input[type="email"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Pour la cohérence des polices */
}

form input[type="email"]:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 125, 250, 0.1);
}

/* Style pour la section de présentation */
.blog_presentations {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    line-height: 1.7;
    color: #333;
}

.blog_presentations p {
    font-size: 1.1rem;
    margin-bottom: 0;
    text-align: center;
}

/* Animation subtile pour la présentation */
.blog_presentations {
    animation: fadeIn 0.8s ease-out;
}

.blog_presentations h2 {
    margin-bottom: 0;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Style responsive */
@media (max-width: 768px) {
    .blog_presentations {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }
    
    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .blog_presentations {
        padding: 1rem;
        margin: 1rem auto;
    }
    
    .blog_presentations p {
        font-size: 1rem;
        text-align: left;
    }
    
    h1 {
        font-size: 1.8rem;
    }
}

/* Style pour la section des derniers posts */
.latests_posts {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.latests_posts h2 {
   margin-bottom: 0;
    text-align: center;
}

/* Amélioration des tableaux dans les posts */
table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

th,
td {
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    text-align: left;
}

th {
    background-color: #f5f7fa;
    font-weight: 600;
    color: #0c0039;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

.latests_posts {
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    line-height: 1.7;
    color: #333;
}


/* Footer Minimaliste */
/* Footer compact (même style que le header) */
footer {
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 2rem;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

footer a {
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 1rem;
    padding: 0.3rem 0;
}

footer a:hover {
    color: #0066cc;
}

.legal {
    color: #86868b;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Version mobile */
@media (max-width: 768px) {
    footer {
        padding: 0.6rem 1rem;
    }
    footer a {
        margin: 0 0.7rem;
        font-size: 0.9rem;
    }
}