/* =====================================================
DISSERTA — DESIGN GLOBAL
Apprenons la dissertation française ensemble !
===================================================== */

:root {
--primary: #2457d6;
--primary-dark: #173b82;
--primary-light: #edf3ff;
--secondary: #6c5ce7;

--text: #202b3c;
--text-light: #68758a;
--muted: #94a0b2;

--background: #f5f7fb;
--surface: #ffffff;
--border: #e8edf5;

--success: #159b69;
--warning: #f59e0b;
--danger: #e5484d;

--radius-sm: 10px;
--radius-md: 16px;
--radius-lg: 22px;

--shadow-sm: 0 3px 12px rgba(31, 55, 99, 0.045);
--shadow-md: 0 8px 28px rgba(31, 55, 99, 0.075);

--container-width: 1200px;

}

/* =====================================================
RÉINITIALISATION
===================================================== */

* {
  box-sizing: border-box;
  }

html {
scroll-behavior: smooth;
scroll-padding-top: 100px;
}

body {
margin: 0;
padding: 0;
background: var(--background);
color: var(--text);
font-family: 'DM Sans', Arial, sans-serif;
font-size: 15px;
line-height: 1.7;
-webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
font-family: 'DM Sans', Arial, sans-serif;
}

img {
max-width: 100%;
}

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

button,
input,
select,
textarea {
font-size: inherit;
}

button,
a {
-webkit-tap-highlight-color: transparent;
}

button {
cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
margin-top: 0;
color: var(--text);
font-family: 'Manrope', Arial, sans-serif;
font-weight: 800;
line-height: 1.35;
}

p {
margin-top: 0;
}

::selection {
background: #dce7ff;
color: var(--primary-dark);
}

/* =====================================================
EN-TÊTE
===================================================== */

.site-header {
position: relative;
z-index: 100;
background: var(--surface);
border-bottom: 1px solid var(--border);
}

.header-inner {
width: min(var(--container-width), calc(100% - 40px));
min-height: 96px;
margin: auto;

display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;

}

.brand {
display: inline-flex;
align-items: center;
gap: 13px;
min-width: 0;
}

.brand-logo {
position: relative;
flex: 0 0 54px;
width: 54px;
height: 54px;

display: flex;
align-items: center;
justify-content: center;

color: #ffffff;
font-size: 25px;

background: linear-gradient(135deg, #3977ff, #173b82);
border-radius: 17px;

box-shadow: 0 7px 18px rgba(36, 87, 214, 0.22);

}

.brand-logo::after {
content: "";
position: absolute;
width: 9px;
height: 9px;
top: 7px;
right: 7px;
background: #7df0ca;
border: 2px solid #3977ff;
border-radius: 50%;
}

.brand-text {
display: flex;
flex-direction: column;
min-width: 0;
}

.brand-name {
color: var(--primary-dark);
font-family: 'Manrope', Arial, sans-serif;
font-size: 28px;
font-weight: 800;
letter-spacing: -1.3px;
line-height: 1.25;
}

.brand-name > span {
color: #3977ff;
}

.brand-tagline {
margin-top: 4px;
color: var(--text-light);
font-size: 12px;
line-height: 1.5;
}

.header-right {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 22px;
}

.header-message {
display: flex;
align-items: center;
gap: 9px;
color: var(--text-light);
font-size: 13px;
}

.header-message i {
color: var(--primary);
font-size: 19px;
}

.header-app-link {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 9px;

padding: 12px 17px;
border-radius: 11px;

background: var(--primary);
color: #ffffff;

font-size: 13px;
font-weight: 700;

transition: background 0.2s ease, transform 0.2s ease;

}

.header-app-link:hover {
background: var(--primary-dark);
transform: translateY(-2px);
}

/* =====================================================
NAVIGATION DESKTOP
===================================================== */

.desktop-nav {
background: #ffffff;
}

.desktop-nav-inner {
width: min(var(--container-width), calc(100% - 40px));
min-height: 56px;
margin: auto;

display: flex;
align-items: stretch;
gap: 8px;

}

.nav-link {
position: relative;

display: inline-flex;
align-items: center;
justify-content: center;
gap: 9px;

padding: 0 17px;
color: var(--text-light);

font-size: 14px;
font-weight: 700;

transition: color 0.2s ease, background 0.2s ease;

}

.nav-link i {
font-size: 15px;
}

.nav-link:hover,
.nav-link.active {
color: var(--primary);
background: #f7f9ff;
}

.nav-link.active::after {
content: "";
position: absolute;
bottom: 0;
left: 17px;
right: 17px;
height: 3px;
background: var(--primary);
border-radius: 5px 5px 0 0;
}

/* =====================================================
STRUCTURE PRINCIPALE
===================================================== */

.page-container {
width: min(var(--container-width), calc(100% - 40px));
margin: 32px auto 55px;
}

.main-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) 320px;
align-items: start;
gap: 28px;
}

.main-content {
min-width: 0;
}

.sidebar {
min-width: 0;
display: flex;
flex-direction: column;
gap: 20px;
}

/* =====================================================
CARTES GÉNÉRALES
===================================================== */

.content-card,
.sidebar-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
box-shadow: var(--shadow-sm);
}

.content-card {
padding: 25px;
margin-bottom: 24px;
}

.sidebar-card {
padding: 21px;
overflow: hidden;
}

.section-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;
margin-bottom: 22px;
}

.section-heading h2 {
margin: 0;
font-size: 21px;
letter-spacing: -0.5px;
}

.section-heading p {
margin: 5px 0 0;
color: var(--text-light);
font-size: 13px;
}

.section-icon {
width: 45px;
height: 45px;
flex: 0 0 45px;

display: flex;
align-items: center;
justify-content: center;

color: var(--primary);
background: var(--primary-light);
border-radius: 14px;

font-size: 19px;

}

/* =====================================================
INTRODUCTION ET BANNIÈRES
===================================================== */

.hero-section {
position: relative;
overflow: hidden;

padding: 36px;
margin-bottom: 27px;

color: #ffffff;
background: linear-gradient(125deg, #173b82 0%, #2457d6 65%, #6688ff 100%);

border-radius: var(--radius-lg);
box-shadow: 0 12px 32px rgba(36, 87, 214, 0.16);

}

.hero-section h1,
.hero-section h2,
.hero-section p {
position: relative;
z-index: 2;
color: #ffffff;
}

.hero-section h1 {
max-width: 650px;
margin-bottom: 15px;
font-size: clamp(27px, 4vw, 39px);
letter-spacing: -1.1px;
}

.hero-section p {
max-width: 620px;
margin-bottom: 24px;
color: #e5edff;
}

.hero-decoration {
position: absolute;
top: -65px;
right: -40px;

width: 240px;
height: 240px;

border: 35px solid rgba(255, 255, 255, 0.08);
border-radius: 50%;
pointer-events: none;

}

.hero-decoration::after {
content: "";
position: absolute;
width: 100px;
height: 100px;
right: 20px;
bottom: -90px;
border: 20px solid rgba(255, 255, 255, 0.08);
border-radius: 30px;
transform: rotate(35deg);
}

.hero-button {
position: relative;
z-index: 2;

display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;

padding: 13px 19px;

color: var(--primary-dark);
background: #ffffff;
border-radius: 11px;

font-size: 14px;
font-weight: 800;

transition: transform 0.2s ease;

}

.hero-button:hover {
transform: translateY(-2px);
}

/* =====================================================
ILLUSTRATIONS CSS SANS IMAGES
===================================================== */

.illustration-violet {
--illustration-bg: linear-gradient(135deg, #eee7ff, #d7c8ff);
--illustration-color: #7652d8;
}

.illustration-bleu {
--illustration-bg: linear-gradient(135deg, #e0ecff, #b9d2ff);
--illustration-color: #2457d6;
}

.illustration-orange {
--illustration-bg: linear-gradient(135deg, #fff0dc, #ffd39a);
--illustration-color: #c87a13;
}

.illustration-vert {
--illustration-bg: linear-gradient(135deg, #d9f8e9, #a4e8c6);
--illustration-color: #13875b;
}

.illustration-rose {
--illustration-bg: linear-gradient(135deg, #ffe5ef, #ffc1d7);
--illustration-color: #c83d77;
}

.sidebar-category-icon,
.sidebar-post-thumbnail {
position: relative;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;

background: var(--illustration-bg, #edf3ff);
color: var(--illustration-color, var(--primary));

}

.sidebar-category-icon i,
.sidebar-post-thumbnail i {
position: relative;
z-index: 2;
}

.thumbnail-decoration {
position: absolute;
width: 45px;
height: 45px;
right: -17px;
bottom: -19px;

border: 7px solid currentColor;
border-radius: 50%;
opacity: 0.12;

}

/* =====================================================
BARRE LATÉRALE — PRÉSENTATION
===================================================== */

.sidebar-welcome {
position: relative;
overflow: hidden;

background: linear-gradient(145deg, #ffffff, #f0f5ff);
border-color: #dfe8ff;

}

.sidebar-welcome::after {
content: "";
position: absolute;
top: -35px;
right: -35px;

width: 105px;
height: 105px;

background: rgba(36, 87, 214, 0.055);
border-radius: 50%;

}

.sidebar-welcome-icon {
width: 47px;
height: 47px;

display: flex;
align-items: center;
justify-content: center;

margin-bottom: 18px;

color: #ffffff;
background: linear-gradient(135deg, #3977ff, #173b82);
border-radius: 15px;

font-size: 21px;

}

.sidebar-eyebrow {
display: block;
margin-bottom: 7px;

color: var(--primary);
font-size: 10px;
font-weight: 800;
letter-spacing: 1.4px;

}

.sidebar-welcome h2 {
margin-bottom: 11px;
color: var(--primary-dark);
font-size: 27px;
letter-spacing: -1px;
}

.sidebar-welcome h2 span {
color: #3977ff;
}

.sidebar-welcome p {
margin-bottom: 19px;
color: var(--text-light);
font-size: 13px;
line-height: 1.8;
}

.sidebar-cta {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;

padding: 12px 14px;

color: #ffffff;
background: var(--primary);
border-radius: 10px;

font-size: 12px;
font-weight: 800;

transition: background 0.2s ease;

}

.sidebar-cta:hover {
background: var(--primary-dark);
}

/* =====================================================
TITRES DES BLOCS DE LA SIDEBAR
===================================================== */

.sidebar-section-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;

margin-bottom: 19px;

}

.sidebar-section-heading h3 {
margin: 0;
font-size: 17px;
letter-spacing: -0.4px;
}

.sidebar-section-heading .sidebar-eyebrow {
margin-bottom: 4px;
font-size: 9px;
}

.sidebar-heading-icon {
width: 39px;
height: 39px;
flex: 0 0 39px;

display: flex;
align-items: center;
justify-content: center;

color: var(--primary);
background: var(--primary-light);
border-radius: 12px;

font-size: 16px;

}

/* =====================================================
CATÉGORIES
===================================================== */

.sidebar-category-list {
display: flex;
flex-direction: column;
gap: 8px;
}

.sidebar-category-item {
display: flex;
align-items: center;
gap: 11px;

padding: 8px;
border-radius: 11px;

transition: background 0.2s ease, transform 0.2s ease;

}

.sidebar-category-item:hover {
background: #f6f8fd;
transform: translateX(3px);
}

.sidebar-category-icon {
width: 39px;
height: 39px;
flex: 0 0 39px;

border-radius: 11px;
font-size: 16px;

}

.sidebar-category-name {
flex: 1;
min-width: 0;

color: var(--text);
font-size: 12px;
font-weight: 700;

overflow-wrap: anywhere;

}

.sidebar-category-count {
min-width: 25px;
padding: 3px 6px;

color: var(--text-light);
background: #f1f4f9;
border-radius: 7px;

text-align: center;
font-size: 11px;
font-weight: 800;

}

/* =====================================================
DERNIERS SUJETS ET COURS
===================================================== */

.sidebar-post-list {
display: flex;
flex-direction: column;
gap: 15px;
}

.sidebar-post-item {
display: flex;
align-items: flex-start;
gap: 12px;

min-width: 0;
padding-bottom: 15px;
border-bottom: 1px solid #edf0f5;

}

.sidebar-post-item:last-child {
padding-bottom: 0;
border-bottom: none;
}

.sidebar-post-thumbnail {
width: 76px;
height: 76px;
flex: 0 0 76px;

border-radius: 13px;
font-size: 26px;

}

.sidebar-post-info {
display: flex;
flex-direction: column;
align-items: flex-start;
min-width: 0;
gap: 5px;
}

.sidebar-post-category {
display: inline-block;
max-width: 100%;

color: var(--primary);
font-size: 9px;
font-weight: 800;
letter-spacing: 0.6px;

overflow-wrap: anywhere;

}

.sidebar-post-title {
display: -webkit-box;
overflow: hidden;

color: var(--text);
font-size: 12px;
font-weight: 800;
line-height: 1.5;

overflow-wrap: anywhere;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;

}

.sidebar-post-item:hover .sidebar-post-title {
color: var(--primary);
}

.sidebar-post-date {
display: flex;
align-items: center;
gap: 5px;

margin-top: 2px;
color: var(--muted);
font-size: 10px;

}

.sidebar-more-link {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;

margin-top: 18px;
padding-top: 14px;
border-top: 1px solid var(--border);

color: var(--primary);
font-size: 12px;
font-weight: 800;

}

.sidebar-more-link i {
transition: transform 0.2s ease;
}

.sidebar-more-link:hover i {
transform: translateX(4px);
}

.sidebar-empty {
margin: 0;
padding: 13px;

color: var(--text-light);
background: #f7f9fc;
border-radius: 10px;

font-size: 12px;
line-height: 1.7;

}

/* =====================================================
RÉSEAUX SOCIAUX
===================================================== */

.sidebar-social-description {
margin-bottom: 18px;
color: var(--text-light);
font-size: 12px;
line-height: 1.8;
}

.sidebar-social-links {
display: flex;
gap: 11px;
}

.sidebar-social-link {
width: 43px;
height: 43px;

display: flex;
align-items: center;
justify-content: center;

border-radius: 13px;
color: #ffffff;

font-size: 18px;

transition: transform 0.2s ease, box-shadow 0.2s ease;

}

.sidebar-social-link:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-md);
}

.social-facebook {
background: #1877f2;
}

.social-youtube {
background: #ff0033;
}

.social-tiktok {
background: #151515;
}

/* =====================================================
LIENS SECONDAIRES
===================================================== */

.footer-more {
display: inline-flex;
align-items: center;
gap: 8px;

margin-top: 17px;
color: var(--primary);

font-size: 12px;
font-weight: 800;

}

/* =====================================================
PIED DE PAGE
===================================================== */

.site-footer {
margin-top: 45px;
background: #ffffff;
border-top: 1px solid var(--border);
}

.footer-main {
width: min(var(--container-width), calc(100% - 40px));
margin: auto;
padding: 55px 0 45px;
}

.footer-grid {
display: grid;
grid-template-columns: 1.35fr 1fr 0.9fr 1.1fr;
gap: 35px;
}

.footer-column {
min-width: 0;
}

.footer-brand {
margin-bottom: 19px;
}

.footer-brand .brand-logo {
width: 45px;
height: 45px;
flex-basis: 45px;
border-radius: 14px;
font-size: 20px;
}

.footer-brand .brand-name {
font-size: 24px;
}

.footer-brand .brand-tagline {
font-size: 11px;
}

.footer-about > p {
margin-bottom: 18px;
color: var(--text-light);
font-size: 12px;
line-height: 1.9;
}

.footer-motto {
display: flex;
align-items: flex-start;
gap: 9px;

color: var(--primary);
font-size: 11px;
font-weight: 800;

}

.footer-motto i {
margin-top: 4px;
}

.footer-heading {
display: flex;
align-items: center;
gap: 10px;

margin: 3px 0 21px;
font-size: 14px;

}

.footer-heading > i {
color: var(--primary);
font-size: 16px;
}

.footer-subject-list,
.footer-menu {
display: flex;
flex-direction: column;
gap: 13px;

margin: 0;
padding: 0;
list-style: none;

}

.footer-subject-list li a {
display: flex;
align-items: flex-start;
gap: 10px;
}

.footer-subject-icon {
width: 27px;
height: 27px;
flex: 0 0 27px;

display: flex;
align-items: center;
justify-content: center;

margin-top: 2px;
color: var(--primary);
background: var(--primary-light);
border-radius: 8px;

font-size: 11px;

}

.footer-subject-title {
display: block;
color: var(--text);
font-size: 11px;
font-weight: 800;
line-height: 1.6;
overflow-wrap: anywhere;
}

.footer-subject-list li a:hover .footer-subject-title {
color: var(--primary);
}

.footer-subject-category {
display: block;
margin-top: 3px;
color: var(--muted);
font-size: 10px;
}

.footer-menu {
gap: 11px;
}

.footer-menu a {
display: flex;
align-items: flex-start;
gap: 9px;

color: var(--text-light);
font-size: 12px;
line-height: 1.7;

overflow-wrap: anywhere;

}

.footer-menu a > i {
margin-top: 6px;
color: #8ca8e9;
font-size: 9px;
}

.footer-menu a:hover {
color: var(--primary);
}

.footer-muted {
color: var(--text-light);
font-size: 12px;
}

.footer-mission {
padding: 22px;

background: linear-gradient(145deg, #f1f5ff, #ffffff);
border: 1px solid #e2eaff;
border-radius: 17px;

}

.footer-mission-icon {
width: 43px;
height: 43px;

display: flex;
align-items: center;
justify-content: center;

margin-bottom: 17px;

color: #ffffff;
background: linear-gradient(135deg, #3977ff, #173b82);
border-radius: 13px;

font-size: 19px;

}

.footer-mission h3 {
margin-bottom: 10px;
font-size: 15px;
}

.footer-mission p {
margin-bottom: 19px;
color: var(--text-light);
font-size: 12px;
line-height: 1.8;
}

.footer-button {
display: flex;
align-items: center;
justify-content: space-between;
gap: 9px;

padding: 11px 12px;

color: #ffffff;
background: var(--primary);
border-radius: 9px;

font-size: 11px;
font-weight: 800;

}

.footer-button:hover {
background: var(--primary-dark);
}

.footer-bottom {
background: #f7f9fc;
border-top: 1px solid var(--border);
}

.footer-bottom-inner {
width: min(var(--container-width), calc(100% - 40px));
min-height: 65px;
margin: auto;

display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;

}

.footer-bottom-inner p {
margin: 0;
color: var(--text-light);
font-size: 11px;
}

.footer-bottom-inner strong {
color: var(--primary-dark);
}

.footer-credit a {
color: var(--primary);
font-weight: 800;
}

.footer-credit a:hover {
text-decoration: underline;
}

/* =====================================================
BOUTONS ET FORMULAIRES RÉUTILISABLES
===================================================== */

.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 9px;

padding: 12px 17px;

border: none;
border-radius: 10px;

color: #ffffff;
background: var(--primary);

font-size: 13px;
font-weight: 800;

transition: background 0.2s ease, transform 0.2s ease;

}

.btn:hover {
background: var(--primary-dark);
transform: translateY(-1px);
}

.btn-outline {
color: var(--primary);
background: #ffffff;
border: 1px solid #dce5fa;
}

.btn-outline:hover {
color: #ffffff;
background: var(--primary);
}

input,
select,
textarea {
max-width: 100%;
padding: 12px 14px;

color: var(--text);
background: #ffffff;
border: 1px solid #dfe5ef;
border-radius: 10px;

outline: none;

}

input:focus,
select:focus,
textarea:focus {
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(36, 87, 214, 0.09);
}

/* =====================================================
NAVIGATION MOBILE FIXE
===================================================== */

.mobile-bottom-nav {
display: none;
}

/* =====================================================
TABLETTES
===================================================== */

@media (max-width: 1050px) {
.main-layout {
grid-template-columns: minmax(0, 1fr) 285px;
gap: 20px;
}

.footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px 28px;
}

.header-message {
    display: none;
}

.sidebar-card {
    padding: 17px;
}

.sidebar-post-thumbnail {
    width: 65px;
    height: 65px;
    flex-basis: 65px;
    font-size: 22px;
}

}

/* =====================================================
MOBILES
===================================================== */

@media (max-width: 760px) {
body {
font-size: 14px;
}

.header-inner {
    width: calc(100% - 28px);
    min-height: 79px;
    gap: 10px;
}

.brand {
    gap: 10px;
}

.brand-logo {
    width: 45px;
    height: 45px;
    flex-basis: 45px;
    border-radius: 14px;
    font-size: 21px;
}

.brand-name {
    font-size: 24px;
}

.brand-tagline {
    max-width: 245px;
    font-size: 10px;
    line-height: 1.4;
}

.header-right {
    gap: 0;
}

.header-app-link {
    width: 39px;
    height: 39px;
    padding: 0;
    border-radius: 12px;
    font-size: 16px;
}

.header-app-link span {
    display: none;
}

.desktop-nav {
    display: none;
}

.page-container {
    width: calc(100% - 26px);
    margin: 20px auto 32px;
}

.main-layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.main-content,
.sidebar {
    width: 100%;
}

.sidebar {
    gap: 16px;
}

.content-card {
    padding: 19px;
    margin-bottom: 17px;
    border-radius: 14px;
}

.sidebar-card {
    padding: 19px;
    border-radius: 14px;
}

.hero-section {
    padding: 26px 22px;
    margin-bottom: 20px;
    border-radius: 17px;
}

.hero-section h1 {
    font-size: 27px;
}

.hero-section p {
    font-size: 13px;
}

.hero-decoration {
    right: -100px;
    opacity: 0.7;
}

.section-heading h2 {
    font-size: 19px;
}

.footer-main {
    width: calc(100% - 30px);
    padding: 36px 0 30px;
}

.footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 29px;
}

.footer-column {
    padding-bottom: 23px;
    border-bottom: 1px solid var(--border);
}

.footer-column:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.footer-mission {
    padding: 21px;
    border: 1px solid #e2eaff;
}

.footer-bottom-inner {
    width: calc(100% - 30px);
    min-height: auto;
    padding: 17px 0;

    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

/* Barre fixe en bas de l'écran */

.mobile-bottom-nav {
    position: fixed;
    z-index: 9999;
    right: 0;
    bottom: 0;
    left: 0;

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;

    min-height: 66px;
    padding: 7px 5px calc(7px + env(safe-area-inset-bottom));

    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #e6eaf2;

    box-shadow: 0 -5px 22px rgba(24, 43, 78, 0.07);

    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.mobile-nav-item {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;

    min-width: 0;
    padding: 3px 1px;

    color: #8390a5;
    border-radius: 10px;

    transition: color 0.2s ease, background 0.2s ease;
}

.mobile-nav-icon {
    width: 30px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;
    font-size: 18px;

    transition: background 0.2s ease;
}

.mobile-nav-label {
    display: block;
    max-width: 100%;

    font-size: 9px;
    font-weight: 700;
    line-height: 1.3;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item.active .mobile-nav-icon {
    background: #edf3ff;
}

.mobile-nav-item.active::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 30%;
    right: 30%;

    height: 3px;

    background: var(--primary);
    border-radius: 0 0 4px 4px;
}

/* Évite que le menu mobile cache le bas du contenu */

body {
    padding-bottom: calc(83px + env(safe-area-inset-bottom));
}

.site-footer {
    margin-top: 25px;
}

}

/* =====================================================
PETITS ÉCRANS
===================================================== */

@media (max-width: 380px) {
.header-inner {
width: calc(100% - 20px);
}

.brand {
    gap: 8px;
}

.brand-logo {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
    font-size: 18px;
}

.brand-name {
    font-size: 21px;
}

.brand-tagline {
    max-width: 195px;
    font-size: 9px;
}

.header-app-link {
    width: 35px;
    height: 35px;
}

.page-container {
    width: calc(100% - 20px);
}

.mobile-bottom-nav {
    padding-right: 2px;
    padding-left: 2px;
}

.mobile-nav-icon {
    font-size: 16px;
}

.mobile-nav-label {
    font-size: 8px;
}

.content-card,
.sidebar-card {
    padding: 15px;
}

.footer-main {
    width: calc(100% - 24px);
}

}

/* =====================================================
ACCESSIBILITÉ
===================================================== */

@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}