/* ============================================
   STYLE MOBILE — style-mobile.css
   À charger APRÈS style1-6.css sur mobile
   ============================================ */

/* ─── RESET & BASE ─── */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* ─── HEADER MOBILE ─── */
.header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px 0 16px;
    text-align: center;
}

/* Langue : plus petite, collée en haut à droite */
.lang {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 12px;
    z-index: 10;
}

.lang a {
    text-decoration: none;
    color: black;
}

.active-lang {
    font-weight: bold;
}

/* Logo : réduit */
.logo {
    margin-top: 0;
    margin-bottom: 8px;
}

.logo img {
    height: 72px;
    margin-bottom: 8px;
}

/* ─── MENU MOBILE ─── */
.menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border-top: 1px solid #868484;
    border-left: 1px solid #868484;
}

.menu a {
    width: auto;
    padding: 8px 6px;
    font-size: 13px;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
    border: none;
    border-right: 1px solid #868484;
    border-bottom: 1px solid #868484;
    background: #f5f5f5;
    color: black;
    text-decoration: none;
    box-sizing: border-box;
}

.menu a:hover,
.menu a.active {
    background: #e0e0e0;
    font-weight: bold;
}

/* ─── PAGE ACCUEIL MOBILE ─── */
.home-content {
    padding: 20px 16px 40px 16px;
    min-height: unset;
    display: block;
    margin-top: 10px;
}

.home-wrapper {
    max-width: 100%;
    text-align: center;
    margin: 0;
}

.home-wrapper h1 {
    font-size: 20px;
    margin-bottom: 16px;
    color: #333;
    font-family: Arial, sans-serif;
}

.home-text,
.home-text-j,
.home-text-l {
    font-size: 13px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 18px;
    text-align: left;
}

/* .home-text {
    text-align: center;
}  #POUR NE PAS AVOIR LA PREMIèRE PHRASE EN DEUX LIGNES */ 

.home-text-j {
    text-align: justify;
}

/* ─── LIGNE CODE MOBILE ─── */
.code-line {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
}

.code-input {
    font-size: 14px;
    width: 140px;
    padding: 4px 8px;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    outline: none;
    text-align: center;
    font-family: Arial, sans-serif;
}

.code-input:focus {
    border-bottom: 1px solid #666;
}

.code-input::placeholder {
    color: #bbb;
    font-style: italic;
}

/* ─── CONTENU CACHÉ ─── */
.hidden-content {
    display: none;
    margin-top: 20px;
    padding: 14px 16px;
    background: rgba(0, 123, 255, 0.05);
    border-left: 3px solid #426f9c;
    border-radius: 4px;
    animation: fadeIn 0.5s ease;
}

.special-text {
    margin: 0;
    color: #333;
    font-style: italic;
    font-size: 14px;
}

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


/* ============================================
   PAGE BAGAGE — MOBILE
   ============================================ */

.bagage-content {
    padding: 16px;
    padding-left: 16px;
    padding-right: 16px;
}

.bagage-subtitle,
.bagage-subtitle-2 {
    font-size: 20px;
    margin-bottom: 10px;
    margin-top: 24px;
}

.bagage-text,
.bagage-text-details,
.bagage-text-classes,
.bagage-text-classes-2 {
    font-size: 14px;
    line-height: 1.6;
}

/* Réduction de l'indentation sur mobile */
.bagage-content .marge {
    margin-left: 1.2em;
}

.pdf-link {
    font-size: 14px;
}


/* ============================================
   PAGE ARTICLES / TRAVAUX — MOBILE
   ============================================ */

.articles-content {
    padding: 16px;
    padding-left: 16px;
    padding-right: 16px;
}

.articles-content .bagage-subtitle,
.articles-content .bagage-subtitle-2 {
    font-size: 20px;
    margin-bottom: 10px;
    margin-top: 24px;
}

.articles-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Indentation réduite dans articles aussi */
.articles-content .marge {
    margin-left: 1.2em;
}

.articles-content .bagage-text-details {
    font-size: 14px;
    line-height: 1.6;
}


/* ============================================
   PAGE INSPIRATIONS — MOBILE
   ============================================ */

.desktop {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    padding: 20px 16px 40px 16px;
    max-width: 100%;
    margin: 0 auto;
}

.project-icon {
    width: 100px;
    padding: 8px;
}

.project-icon img {
    width: 56px;
    height: 56px;
    margin-bottom: 6px;
}

.project-icon span {
    font-size: 13px;
}
