
:root {
    --noir: #171717;
    --gris-fonce: #555555;
    --gris-moyen: #d9d9d9;
    --gris-clair: #f5f5f5;
    --blanc: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    max-width: 1250px;
    margin: 0 auto;
    padding: 32px;
    background: var(--blanc);
    color: var(--noir);
    font-family: Arial, sans-serif;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.entete {
    padding: 18px 0 28px;
    border-bottom: 1px solid var(--gris-moyen);
}

.sur-titre {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--gris-fonce);
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
}

.introduction {
    max-width: 700px;
    margin: 0;
    color: var(--gris-fonce);
    line-height: 1.6;
}

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

.panneau-mentors,
.panneau-conversation {
    min-width: 0;
    border: 1px solid var(--gris-moyen);
    border-radius: 14px;
    padding: 22px;
    background: var(--blanc);
}

h2 {
    margin: 0 0 18px;
    font-size: 21px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
}

.presentation-mentors {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-bottom: 22px;
}

.presentation-mentors button {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    padding: 13px;
    border: 1px solid var(--gris-moyen);
    border-radius: 10px;
    background: var(--blanc);
    color: var(--noir);
    text-align: left;
}

.presentation-mentors button:hover {
    background: var(--gris-clair);
}

.presentation-mentors button span {
    color: var(--gris-fonce);
    font-size: 13px;
}

.presentation-mentors button.mentor-actif {
    border-color: var(--noir);
    background: var(--gris-clair);
    box-shadow: inset 3px 0 0 var(--noir);
}

#mentor,
#titre-nouvelle-discussion,
#question {
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--gris-moyen);
    border-radius: 8px;
    background: var(--blanc);
    color: var(--noir);
    font-size: 15px;
}

#mentor {
    margin-bottom: 28px;
}

#mentor:focus,
#titre-nouvelle-discussion:focus,
#question:focus {
    outline: 2px solid var(--noir);
    outline-offset: 2px;
}

.entete-discussions {
    padding-top: 20px;
    border-top: 1px solid var(--gris-moyen);
}

.liste-discussions {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ligne-discussion {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--gris-moyen);
    border-radius: 10px;
    background: var(--blanc);
}

.ligne-discussion.discussion-active {
    border-color: var(--noir);
    background: var(--gris-clair);
}

.bouton-ouvrir-discussion {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    padding: 9px;
    border: 0;
    background: transparent;
    color: var(--noir);
    text-align: left;
}

.titre-liste-discussion {
    overflow-wrap: anywhere;
    font-size: 14px;
    font-weight: bold;
}

.mentor-liste-discussion {
    color: var(--gris-fonce);
    font-size: 12px;
}

.bouton-renommer {
    flex-shrink: 0;
    padding: 8px 6px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--gris-fonce);
    font-size: 12px;
    text-decoration: underline;
}

.bouton-renommer:hover {
    background: var(--gris-moyen);
    color: var(--noir);
}

.bouton-ancien {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gris-moyen);
    border-radius: 10px;
    background: var(--blanc);
    color: var(--noir);
    text-align: left;
}

.bouton-ancien.discussion-active {
    border-color: var(--noir);
    background: var(--gris-clair);
    font-weight: bold;
}

.haut-conversation {
    margin-bottom: 20px;
}

.haut-conversation h2 {
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.creation-discussion {
    padding: 18px;
    border: 1px solid var(--gris-moyen);
    border-radius: 12px;
    background: var(--gris-clair);
}

.ligne-creation {
    display: flex;
    gap: 10px;
}

#nouvelle-conversation {
    flex-shrink: 0;
    padding: 12px 18px;
    border: 1px solid var(--noir);
    border-radius: 8px;
    background: var(--noir);
    color: var(--blanc);
    font-weight: bold;
}

#nouvelle-conversation:hover {
    background: #383838;
}

.aide {
    margin: 10px 0 0;
    color: var(--gris-fonce);
    font-size: 12px;
    line-height: 1.5;
}

#conversation {
    height: 420px;
    min-height: 0;
    overflow-y: auto;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid var(--gris-moyen);
    border-radius: 12px;
    background: var(--blanc);
    line-height: 1.6;
}

.message-utilisateur,
.message-mentor {
    padding: 13px 15px;
    border-radius: 12px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    line-height: 1.7;
}

.message-utilisateur {
    margin-left: 18%;
    background: var(--noir);
    color: var(--blanc);
}

.message-mentor {
    margin-right: 18%;
    background: var(--gris-clair);
    color: var(--noir);
}

.zone-question {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zone-question label {
    margin-bottom: 0;
}

#envoyer {
    align-self: flex-end;
    padding: 12px 28px;
    border: 1px solid var(--noir);
    border-radius: 8px;
    background: var(--noir);
    color: var(--blanc);
    font-weight: bold;
}

#envoyer:hover {
    background: #383838;
}

@media (max-width: 850px) {
    body {
        padding: 18px;
    }

    .application {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body {
        padding: 12px;
    }

    .panneau-mentors,
    .panneau-conversation {
        padding: 15px;
    }

    .ligne-creation {
        flex-direction: column;
    }

    #nouvelle-conversation {
        width: 100%;
    }

    #conversation {
        height: 55vh;
        padding: 12px;
    }

    .message-utilisateur {
        margin-left: 8%;
    }

    .message-mentor {
        margin-right: 8%;
    }
}

/* =========================================================
   ACCUEIL SAVOIR QUOTIDIEN IA
   ========================================================= */

html {
    scroll-behavior: smooth;
}

.entete-accueil {
    min-height: 72vh;
    display: flex;
    align-items: center;
    padding: 70px 0;
}

.hero {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 60px;
    align-items: center;
}

.hero-contenu h1 {
    max-width: 850px;
    font-size: clamp(42px, 6vw, 76px);
    letter-spacing: -2px;
}

.hero-contenu .introduction {
    max-width: 720px;
    margin-top: 24px;
    font-size: 18px;
}

.bouton-principal {
    margin-top: 32px;
    padding: 15px 24px;
    border: 1px solid var(--noir);
    border-radius: 8px;
    background: var(--noir);
    color: var(--blanc);
    font-weight: bold;
}

.bouton-principal:hover {
    background: #383838;
}

.hero-signature {
    width: 220px;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--noir);
    border-radius: 50%;
}

.hero-signature span {
    font-size: 70px;
    font-weight: bold;
    letter-spacing: -5px;
}

.hero-signature p {
    margin: 0;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 5px;
}


/* Découverte */

.decouverte {
    padding: 90px 0;
}

.titre-section {
    max-width: 750px;
    margin-bottom: 40px;
}

.titre-section h2,
.titre-espace h2 {
    margin-bottom: 14px;
    font-size: clamp(28px, 4vw, 42px);
}

.titre-section > p:last-child {
    color: var(--gris-fonce);
    line-height: 1.7;
}

.grille-decouverte-mentors {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.carte-decouverte {
    min-height: 270px;
    display: grid;
    grid-template-columns: 45px 1fr auto;
    gap: 20px;
    align-items: start;
    padding: 28px;
    border: 1px solid var(--gris-moyen);
    border-radius: 14px;
    background: var(--blanc);
    color: var(--noir);
    text-align: left;
    transition:
            transform 0.2s ease,
            border-color 0.2s ease,
            background 0.2s ease;
}

.carte-decouverte:hover {
    transform: translateY(-3px);
    border-color: var(--noir);
    background: var(--gris-clair);
}

.numero-mentor {
    color: var(--gris-fonce);
    font-size: 12px;
    font-weight: bold;
}

.carte-decouverte h3 {
    margin: 0 0 7px;
    font-size: 25px;
}

.carte-decouverte .discipline {
    margin: 0 0 24px;
    color: var(--gris-fonce);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.4px;
}

.carte-decouverte div > p:last-child {
    margin: 0;
    color: var(--gris-fonce);
    line-height: 1.65;
}

.fleche {
    font-size: 24px;
}


/* Comment ça marche */

.comment-ca-marche {
    padding: 90px 0;
    border-top: 1px solid var(--gris-moyen);
}

.etapes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--gris-moyen);
}

.etape {
    padding: 32px 32px 10px 0;
}

.etape + .etape {
    padding-left: 32px;
    border-left: 1px solid var(--gris-moyen);
}

.etape > span {
    color: var(--gris-fonce);
    font-size: 12px;
    font-weight: bold;
}

.etape h3 {
    margin: 30px 0 12px;
    font-size: 22px;
}

.etape p {
    color: var(--gris-fonce);
    line-height: 1.6;
}


/* Application */

.espace-apprentissage {
    padding: 90px 0 40px;
    border-top: 1px solid var(--gris-moyen);
}

.titre-espace {
    margin-bottom: 36px;
}

.espace-apprentissage .application {
    margin-top: 0;
}


/* Responsive accueil */

@media (max-width: 850px) {

    .entete-accueil {
        min-height: auto;
        padding: 55px 0;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-signature {
        width: 150px;
        height: 150px;
    }

    .hero-signature span {
        font-size: 48px;
    }

    .grille-decouverte-mentors {
        grid-template-columns: 1fr;
    }

    .etapes {
        grid-template-columns: 1fr;
    }

    .etape {
        padding: 25px 0;
    }

    .etape + .etape {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--gris-moyen);
    }
}


@media (max-width: 600px) {

    .hero-contenu h1 {
        font-size: 39px;
        letter-spacing: -1px;
    }

    .hero-signature {
        display: none;
    }

    .decouverte,
    .comment-ca-marche,
    .espace-apprentissage {
        padding: 60px 0;
    }

    .carte-decouverte {
        min-height: auto;
        grid-template-columns: 30px 1fr;
        padding: 20px;
    }

    .fleche {
        display: none;
    }
}

/* =========================================================
   PROGRESSION UTILISATEUR
   ========================================================= */

.progression {
    padding: 90px 0;
    border-top: 1px solid var(--gris-moyen);
}

.statistiques-progression {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 45px;
    border-top: 1px solid var(--gris-moyen);
    border-bottom: 1px solid var(--gris-moyen);
}

.statistique {
    padding: 35px 25px;
}

.statistique + .statistique {
    border-left: 1px solid var(--gris-moyen);
}

.statistique strong {
    display: block;
    margin-bottom: 8px;
    font-size: 48px;
    line-height: 1;
}

.statistique span {
    color: var(--gris-fonce);
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.details-progression {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding-top: 45px;
}

.bloc-progression {
    min-width: 0;
}

.liste-progression {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    color: var(--gris-fonce);
}

.element-progression {
    display: inline-block;
    padding: 9px 13px;
    border: 1px solid var(--gris-moyen);
    border-radius: 100px;
    background: var(--blanc);
    color: var(--noir);
    font-size: 13px;
}

@media (max-width: 700px) {

    .progression {
        padding: 60px 0;
    }

    .statistiques-progression {
        grid-template-columns: 1fr;
    }

    .statistique + .statistique {
        border-left: 0;
        border-top: 1px solid var(--gris-moyen);
    }

    .details-progression {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

/* =========================================================
   CONTINUER À APPRENDRE
   ========================================================= */

.continuer-apprentissage {
    margin-top: 55px;
    padding: 40px;
    border: 1px solid var(--gris-moyen);
}

.continuer-apprentissage h3 {
    margin: 12px 0 15px;
    font-size: 28px;
}

.continuer-apprentissage > p:not(.sur-titre) {
    max-width: 700px;
    margin-bottom: 25px;
    color: var(--gris-fonce);
    line-height: 1.7;
}

.continuer-apprentissage .bouton-principal {
    margin-top: 5px;
}

@media (max-width: 700px) {

    .continuer-apprentissage {
        margin-top: 40px;
        padding: 28px 22px;
    }

    .continuer-apprentissage h3 {
        font-size: 23px;
    }
}

/* =========================================================
   NAVIGATION DU COMPTE
   ========================================================= */

.navigation-compte {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

.navigation-compte-contenu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;

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

.logo-navigation {
    color: #111111;
    font-weight: 700;
    text-decoration: none;
}

.actions-compte {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lien-connexion {
    color: #111111;
    text-decoration: none;
    font-weight: 600;
}

.bouton-compte {
    display: inline-block;
    padding: 10px 18px;

    background: #111111;
    color: #ffffff;

    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.utilisateur-connecte {
    font-size: 0.9rem;
}

.bouton-deconnexion {
    padding: 10px 18px;

    background: transparent;
    border: 1px solid #111111;
    border-radius: 6px;

    cursor: pointer;
    font-weight: 600;
}

@media (max-width: 700px) {

    .navigation-compte-contenu {
        align-items: flex-start;
        flex-direction: column;
    }

    .actions-compte {
        width: 100%;
        flex-wrap: wrap;
    }

    .utilisateur-connecte {
        overflow-wrap: anywhere;
    }
}

[hidden] {
    display: none !important;
}

/* =========================================================
   RYTHME VERTICAL DE LA PAGE
   ========================================================= */

/* Hero plus compact */
.hero {
    min-height: auto;
    padding-top: 75px;
    padding-bottom: 55px;
}

/* Grandes sections */
.decouverte,
.comment-ca-marche,
.progression,
.espace-apprentissage {
    padding-top: 70px;
    padding-bottom: 70px;
}

/* Réduit l'espace sous les titres de sections */
.titre-section {
    margin-bottom: 45px;
}

/* Navigation légèrement plus compacte */
.navigation-compte-contenu {
    padding-top: 14px;
    padding-bottom: 14px;
}

@media (max-width: 700px) {

    .hero {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .decouverte,
    .comment-ca-marche,
    .progression,
    .espace-apprentissage {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .titre-section {
        margin-bottom: 32px;
    }
}

.navigation-compte-contenu,
.hero,
.decouverte,
.comment-ca-marche,
.progression,
.espace-apprentissage {
    width: min(90%, 1400px);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   CONNEXION ET INSCRIPTION
   ========================================================= */

.page-authentification {
    min-height: 100vh;
    background: #f7f7f5;
}

.authentification {
    width: min(90%, 1400px);
    margin: 0 auto;

    min-height: calc(100vh - 75px);

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

    padding: 60px 0;
}

.carte-authentification {
    width: 100%;
    max-width: 560px;

    background: #ffffff;

    padding: 55px;

    border: 1px solid #e5e5e5;
    border-radius: 10px;
}

.carte-authentification h1 {
    margin-top: 10px;
    margin-bottom: 18px;

    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.introduction-authentification {
    margin-bottom: 36px;

    line-height: 1.7;
    color: #555555;
}

.formulaire-authentification {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.champ-authentification {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.champ-authentification label {
    font-weight: 600;
}

.champ-authentification input {
    width: 100%;
    box-sizing: border-box;

    padding: 14px 15px;

    border: 1px solid #cfcfcf;
    border-radius: 6px;

    background: #ffffff;

    font: inherit;
}

.champ-authentification input:focus {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

.aide-authentification {
    margin: 0;

    color: #666666;
    font-size: 0.88rem;
}

.bouton-authentification {
    width: 100%;

    margin-top: 4px;
    padding: 15px 20px;

    border: 1px solid #111111;
    border-radius: 6px;

    background: #111111;
    color: #ffffff;

    font: inherit;
    font-weight: 700;

    cursor: pointer;
}

.bouton-authentification:hover {
    opacity: 0.88;
}

.lien-secondaire-authentification {
    margin-top: 30px;
    margin-bottom: 0;

    text-align: center;
    color: #555555;
}

.lien-secondaire-authentification a,
.message-authentification a {
    color: #111111;
    font-weight: 700;
}

.message-authentification {
    margin-top: 24px;
    padding: 14px 16px;

    background: #f1f1ef;
    border-radius: 6px;

    line-height: 1.5;
}

.texte-navigation-auth {
    color: #666666;
    font-size: 0.9rem;
}


/* L'attribut hidden doit toujours gagner sur display:flex */
[hidden] {
    display: none !important;
}


@media (max-width: 700px) {

    .texte-navigation-auth {
        display: none;
    }

    .authentification {
        width: min(92%, 600px);
        padding: 35px 0;
        align-items: flex-start;
    }

    .carte-authentification {
        padding: 42px 48px;
    }

    .carte-authentification h1 {
        font-size: 2rem;
    }
}

/* =========================================================
   RESPONSIVE FINAL - SAVOIR QUOTIDIEN IA
   ========================================================= */

/* Tablettes et mobiles */
@media (max-width: 850px) {

    body {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    .navigation-compte-contenu,
    .hero,
    .decouverte,
    .comment-ca-marche,
    .progression,
    .espace-apprentissage {
        width: calc(100% - 40px);
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    /* Navigation */

    .navigation-compte-contenu {
        padding: 14px 0;
        gap: 12px;
    }

    /* Hero */

    .entete-accueil {
        min-height: auto;
        padding: 0;
    }

    .hero {
        display: block;
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .hero-contenu {
        width: 100%;
        max-width: none;
    }

    .hero-contenu h1 {
        max-width: 700px;
        font-size: clamp(38px, 8vw, 58px);
        line-height: 1.02;
        letter-spacing: -1.5px;
    }

    .hero-contenu .introduction {
        max-width: 650px;
        margin-top: 22px;
        font-size: 17px;
        line-height: 1.6;
    }

    .hero-signature {
        display: none;
    }

    /* Sections */

    .decouverte,
    .comment-ca-marche,
    .progression,
    .espace-apprentissage {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .titre-section {
        max-width: 650px;
        margin-bottom: 32px;
    }

    .titre-section h2,
    .titre-espace h2 {
        font-size: 34px;
        line-height: 1.08;
    }

    /* Mentors */

    .grille-decouverte-mentors {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .carte-decouverte {
        min-height: auto;
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 16px;
        padding: 24px;
    }

    .carte-decouverte h3 {
        font-size: 26px;
    }

    .fleche {
        display: none;
    }

    /* Comment ça marche */

    .etapes {
        grid-template-columns: 1fr;
    }

    .etape,
    .etape + .etape {
        padding: 25px 0;
        border-left: 0;
    }

    .etape + .etape {
        border-top: 1px solid var(--gris-moyen);
    }

    .etape h3 {
        margin-top: 18px;
    }

    /* Application */

    .application {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* Progression */

    .statistiques-progression {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    .statistique {
        padding: 26px 0;
    }

    .statistique + .statistique {
        border-left: 0;
        border-top: 1px solid var(--gris-moyen);
    }

    .details-progression {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 35px;
    }
}


/* Téléphones */
@media (max-width: 600px) {

    .navigation-compte-contenu,
    .hero,
    .decouverte,
    .comment-ca-marche,
    .progression,
    .espace-apprentissage {
        width: calc(100% - 32px);
    }

    /* Navigation */

    .navigation-compte-contenu {
        align-items: stretch;
        flex-direction: column;
    }

    .logo-navigation {
        font-size: 15px;
    }

    .actions-compte {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .bouton-compte,
    .bouton-deconnexion {
        padding: 9px 13px;
        font-size: 14px;
    }

    /* Hero */

    .hero {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .sur-titre {
        font-size: 11px;
        letter-spacing: 1.7px;
    }

    .hero-contenu h1 {
        margin-bottom: 0;
        font-size: clamp(34px, 10.5vw, 43px);
        line-height: 1.04;
        letter-spacing: -1.2px;
    }

    .hero-contenu .introduction {
        margin-top: 22px;
        font-size: 17px;
        line-height: 1.55;
    }

    .bouton-principal {
        width: 100%;
        margin-top: 28px;
        padding: 15px 18px;
    }

    /* Sections */

    .decouverte,
    .comment-ca-marche,
    .progression,
    .espace-apprentissage {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .titre-section {
        margin-bottom: 28px;
    }

    .titre-section h2,
    .titre-espace h2 {
        font-size: 30px;
        line-height: 1.08;
    }

    .titre-section > p:last-child {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Cartes mentors */

    .carte-decouverte {
        display: block;
        padding: 22px 20px;
    }

    .numero-mentor {
        display: block;
        margin-bottom: 14px;
    }

    .carte-decouverte h3 {
        margin-bottom: 6px;
        font-size: 27px;
        line-height: 1.05;
    }

    .carte-decouverte .discipline {
        margin-bottom: 18px;
    }

    .carte-decouverte div > p:last-child {
        font-size: 16px;
        line-height: 1.55;
    }

    /* Espace connecté */

    .panneau-mentors,
    .panneau-conversation {
        padding: 16px;
        border-radius: 10px;
    }

    .ligne-creation {
        flex-direction: column;
    }

    #nouvelle-conversation {
        width: 100%;
    }

    #conversation {
        height: 55vh;
        margin: 16px 0;
        padding: 10px;
    }

    .message-utilisateur,
    .message-mentor {
        padding: 12px;
        font-size: 15px;
    }

    .message-utilisateur {
        margin-left: 5%;
    }

    .message-mentor {
        margin-right: 5%;
    }

    #envoyer {
        width: 100%;
        align-self: stretch;
    }

    /* Progression */

    .statistique strong {
        font-size: 40px;
    }

    .continuer-apprentissage {
        margin-top: 30px;
        padding: 22px 18px;
    }

    /* Connexion / inscription */

    .authentification {
        width: calc(100% - 32px);
        min-height: auto;
        padding: 32px 0;
    }

    .carte-authentification {
        max-width: none;
        padding: 28px 20px;
    }

    .carte-authentification h1 {
        font-size: 30px;
        line-height: 1.08;
    }

    .formulaire-authentification {
        gap: 20px;
    }
}


/* Très petits téléphones */
@media (max-width: 380px) {

    /* Navigation */

    .navigation-compte-contenu {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .logo-navigation {
        flex-shrink: 0;
        font-size: 14px;
        white-space: nowrap;
    }

    .actions-compte {
        width: auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .lien-connexion {
        font-size: 13px;
        white-space: nowrap;
    }

    .bouton-compte,
    .bouton-deconnexion {
        flex-shrink: 0;
        padding: 8px 10px;
        font-size: 13px;
        white-space: nowrap;
    }

    .utilisateur-connecte {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .hero,
    .decouverte,
    .comment-ca-marche,
    .progression,
    .espace-apprentissage {
        width: calc(100% - 24px);
    }

    .hero-contenu h1 {
        font-size: 32px;
    }

    .titre-section h2,
    .titre-espace h2 {
        font-size: 27px;
    }

    .carte-decouverte {
        padding: 19px 17px;
    }

    .carte-decouverte h3 {
        font-size: 24px;
    }
}

@media (max-width: 600px) {

    .navigation-compte-contenu {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between;
        gap: 8px;
    }

    .actions-compte {
        width: auto !important;
        flex-wrap: nowrap !important;
        gap: 8px;
    }

    .logo-navigation {
        font-size: 13px;
    }

    .lien-connexion {
        font-size: 12px;
    }

    .bouton-compte,
    .bouton-deconnexion {
        padding: 8px 9px;
        font-size: 12px;
    }
}