/* ----------- RESET LÉGER ----------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Page article */
.article-page {
    margin-top: 2rem;
    margin-bottom: 2rem;
}



.article-main-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.article-meta {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.article-hero img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.article-body {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    font-size: 1.05rem;
}

.article-body h3 {
    margin-top: 1rem;
    font-size: 1.3rem;
}

blockquote {
    border-left: 4px solid #2563eb;
    padding-left: 1rem;
    color: #374151;
    font-style: italic;
}

/* Adaptation pour mobile */
@media (max-width: 600px) {
    .article-main-title {
        font-size: 1.6rem;
    }
}


body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    background: #f5f5f7;
    color: #222;
}

/* ----------- LAYOUT GÉNÉRAL ----------- */
.container {
    width: min(1100px, 100% - 2rem);
    margin: 0 auto;
}

.section {
    margin: 2.5rem 0;
}

/* ----------- HEADER ----------- */
.site-header {
    background: #14a196de;
    color: #ffd000;
    padding: 1.5rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-title {
    font-size: 1.4rem;
}

.site-nav a {
    margin-left: 1rem;
    color: #ffd000;
    text-decoration: none;
    font-size: 0.95rem;
}

.site-nav a:hover {
    text-decoration: underline;
}

/* ----------- ARTICLES ----------- */
.section h2 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.article-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.img-slot img{
  display: block;
  height: auto;
  width: 100%;
}

.img-slot--small img{
  width: min(280px, 100%);
  margin: 0 auto;
}

.img-slot--medium img { max-width: 420px; ;
  margin: 0 auto;}
.img-slot--large img { max-width: 640px; ;
  margin: 0 auto;}





.article-content {
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.article-meta {
    font-size: 0.8rem;
    color: #6b7280;
}

.article-category {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.article-excerpt {
    font-size: 0.95rem;
    color: #374151;
}

/* Barre de sélection d’article */
.article-toolbar {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.95rem;
}

#article-selector {
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font: inherit;
}

/* Footer de l’article avec bouton retour */
.article-footer {
  margin-top: 1.5rem;
  text-align: right;
  color: #14a196de;
}

.btn-back-top {
  font-size: 0.85rem;
  padding-inline: 0.9rem;
  color: #14a196de;
}

/* Sur mobile : barre en colonne */
@media (max-width: 600px) {
  .article-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-footer {
    text-align: left;
  }
}


/* ----------- BOUTONS ----------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: none;
    background: #14a196de;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.btn:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 10px rgba(37,99,235,0.35);
    transform: translateY(-1px);
}

/* ----------- LISTE VIDÉOS ----------- */
.videos-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.videos-list a {
    text-decoration: none;
    color: #2563eb;
}

.videos-list a:hover {
    text-decoration: underline;
}

/* ----------- FORMULAIRE COMMENTAIRES ----------- */
.comment-form {
    background: #ffffff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    margin-bottom: 1.2rem;
}

.form-group {
    margin-bottom: 0.9rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37,99,235,0.25);
}

/* ----------- LISTE COMMENTAIRES ----------- */
.comments-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.comment-item {
    background: #ffffff;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.comment-author {
    font-weight: 600;
}

.comment-text {
    font-size: 0.95rem;
}

/* ----------- FOOTER ----------- */
.site-footer {
    margin-top: 2rem;
    padding: 1.2rem 0;
    background: #111827;
    color: #9ca3af;
    text-align: center;
    font-size: 0.85rem;
}

/* ----------- RESPONSIVE ----------- */
/* ----------- TÉLÉPHONE (≤ 600px) ----------- */
@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .site-nav a {
        margin-left: 0;
        font-size: 0.9rem;
    }
}


    .articles-grid {
        grid-template-columns: 1fr; /* une seule colonne sur mobile */
    }

    body {
        font-size: 0.95rem;
    }

    .article-image {
        height: 180px; /* un peu plus haute sur mobile */
    }


/* ----------- TABLETTES (≈ ≤ 900px) ----------- */
@media (max-width: 900px) {
    .container {
        width: min(100% - 1.5rem, 100%);
    }

    .header-content {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .site-nav a {
        font-size: 0.9rem;
    }

    .articles-grid {
        grid-template-columns: 1fr 1fr; /* 2 colonnes au lieu de 3 sur tablette */
    }
}

