/* ============================================================
   BAIDU — STYLE GLOBAL MAPTRIPGUIDE
   ============================================================ */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BASE */
html, body {
    width: 100%;
    min-height: 100vh;
    font-family: "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    color: #222;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================================
   TITRES
   ============================================================ */

h1, h2, h3, legend {
    font-weight: 600;
    color: #222;
    margin-bottom: 1rem;
    letter-spacing: 0.2px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 600;
    border-left: 6px solid #3385ff;
    padding-left: 0.8rem;
    margin-bottom: 1rem;
}

/* ============================================================
   HEADER — STYLE BAIDU
   ============================================================ */

header {
    background: #ffffff;
    color: #3385ff;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e5e5e5;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #3385ff;
}

header nav a,
header a {
    color: #3385ff;
    font-weight: bold;
    text-decoration: none;
    margin-left: 1.5rem;
}

header nav a:hover,
header a:hover {
    text-decoration: underline;
}

/* ============================================================
   MAIN CONTAINER
   ============================================================ */

main {
    max-width: 1600px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* ============================================================
   TABLEAUX
   ============================================================ */

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

th {
    background: #f7f7f7;
    padding: 1rem;
    font-weight: 600;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
}

td {
    padding: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

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

a {
    color: #3385ff;
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================================================
   FORMULAIRES
   ============================================================ */

form {
    background: #fff;
    padding: 2rem;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

label {
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: block;
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fafafa;
    margin-bottom: 1rem;
}

button {
    padding: 0.9rem 1.2rem;
    background: #3385ff;
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.2s;

    width: 100%;
    height: 5rem;

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

    font-size: 1.1rem;
}

button:hover {
    background: #2a6ed8;
}

/* =============================================================================================================================
   INDEX — LAYOUT ACCUEIL (PHOTO GAUCHE / NAVIGATION DROITE)
   ============================================================ */
/*
#index-main {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 1rem;
}


#index-poster-section {
    width: 45%;
    max-width: 500px;
}

#index-poster {
    width: 100%;
    height: auto;
    border-radius: 8px;
}


#index-links-section {
    width: 45%;
    max-width: 500px;
}

#index-mtg-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


#index-mtg-nav button {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.3rem;
    font-weight: 700;
    background: #3385ff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#index-mtg-nav button:hover {
    background: #2a6ed8;
}


.index-card {
    text-decoration: none;
    display: block;
}
*/
================================================================================================================================
/* ============================================================
   INDEX — POSTER À GAUCHE / CHOIX À DROITE (ÉQUILIBRÉ)
   ============================================================ */

#index-main {
    display: flex;
    flex-direction: row;
    justify-content: space-between;   /* Équilibre horizontal */
    align-items: center;              /* Alignement vertical */
    gap: 3rem;
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

/* SECTION POSTER (GAUCHE) */
#index-poster-section {
    flex: 1;                          /* 50% de l’espace */
    display: flex;
    justify-content: center;
}

#index-poster {
    width: 100%;
    max-width: 480px;
    border-radius: 10px;
    object-fit: cover;
}

/* SECTION NAVIGATION (DROITE) */
#index-links-section {
    flex: 1;                          /* 50% de l’espace */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Navigation */
#index-mtg-nav {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Boutons */
#index-mtg-nav button {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.3rem;
    font-weight: 700;
    background: #3385ff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

#index-mtg-nav button:hover {
    background: #2a6ed8;
}

/* Liens contenant les boutons */
.index-card {
    text-decoration: none;
    display: block;
}


================================================================================================================================

/* ============================================================
   MAP
   ============================================================ */

#map {
    width: 100%;
    height: 50vh;
    min-height: 300px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    background: #f2f2f2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.map {
    width: 100%;
    height: 100%;
}

/* ============================================================
   WORLD MAP
   ============================================================ */

#world-map-postcards-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.postcard {
    background: #fff;
    padding: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.postcard:hover {
    transform: translateY(-4px);
    transition: 0.2s;
}

/* ============================================================
   VOCABULAIRE
   ============================================================ */

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

.vocabulaire-word-item {
    background: #fff;
    padding: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.vocabulaire-word-item:hover {
    background: #f7f7f7;
}

/* ============================================================
   POSTCARD
   ============================================================ */

#postcard-main {
    max-width: 700px;
    margin: 2rem auto;
}

#postcard-status {
    margin-top: 1rem;
}

/* ============================================================
   IDENTIFICATION / INSCRIPTION
   ============================================================ */

#identification-planer-main,
#inscription-travel-projects-main {
    max-width: 500px;
    margin: 2rem auto;
}

/* ============================================================
   AGENDA
   ============================================================ */

#agenda-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 1rem;
    padding: 0.5rem;
}

#agenda-events-section {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
}

#agenda-alerts-section {
    flex: 0 0 auto;
}

#agenda-timeline-section {
    flex: 0 0 260px;/*
    min-height: 260px;
    max-height: 260px;*/
    height: auto;
    min-height: 300px;
    background: #fff;
    padding: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

#agenda-timeline-chart {
    width: 100% !important;
    height: 200px !important;
    display: block;
}

#agenda-form-section {
    flex: 0 0 260px;
}

#agenda-form {
    height: 100%;
    overflow-y: auto;
    background: #fff;
    padding: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ============================================================
   PAGE VOCABULAIRE — STYLE GLOBAL
   ============================================================ */

#vocabular-body {
    font-family: Arial, sans-serif;
    margin: 30px;
    background: #ffffff;
    color: #222;
}

#vocabular-title {
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #3385ff;
}

#vocabular-under-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

#vocabular-form-section {
    margin-bottom: 20px;
}

#vocabular-input {
    padding: 10px;
    width: 300px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background: #fff;
}

#vocabular-submit,
#vocabular-refresh {
    padding: 10px 16px;
    width: 300px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}

#vocabular-submit {
    background: #3385ff;
    color: white;
}

#vocabular-submit:hover {
    background: #2a6ed8;
}

#vocabular-refresh {
    background: #ff9800;
    color: white;
}

#vocabular-refresh:hover {
    background: #e68900;
}

#vocabular-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

#vocabular-voice,
#vocabular-speak {
    width: 300px;
    padding: 10px 16px;
    background: #444;
    color: white;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

#vocabular-voice:hover,
#vocabular-speak:hover {
    background: #222;
}

#vocabular-error {
    color: red;
    margin-top: 10px;
    font-weight: bold;
}

#vocabular-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.vocabular-column {
    background: white;
    padding: 20px;
    border-radius: 8px;
    flex: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.vocabular-column h3 {
    margin-top: 0;
    border-bottom: 2px solid #3385ff;
    padding-bottom: 6px;
    font-size: 1.2rem;
}

.vocabular-definition,
.vocabular-sentence,
.vocabular-word-item {
    margin-bottom: 8px;
    line-height: 1.4;
}

.vocabular-distance {
    color: #777;
    font-size: 0.9rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
    text-align: center;
    padding: 1.5rem;
    background: #ffffff;
    color: #3385ff;
    margin-top: 3rem;
    border-top: 2px solid #e5e5e5;
}

footer a {
    color: #3385ff;
    font-weight: bold;
    text-decoration: none;
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   BAIDU — STYLE GLOBAL MAPTRIPGUIDE (SMARTPHONE VERSION)
   ============================================================ */

@media (max-width: 600px) {

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    opacity: 1;
}

/* BASE */
html, body {
    width: 100%;
    min-height: 100vh;
    font-family: "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    color: #222;
    line-height: 1.6;
    overflow-x: hidden;
    padding: 1.1rem; /* PLUS GRAND */
    font-weight: 500;        /* PLUS ÉPAIS */
    opacity: 1;
}

/* ============================================================
   TITRES
   ============================================================ */

h1, h2, h3, legend {
    font-weight: 700;        /* PLUS ÉPAIS */
    color: #222;
    margin-bottom: 1.1rem;
    letter-spacing: 0.22px;
    opacity: 1;
}

.section-title {
    font-size: 1.7rem;       /* PLUS GRAND */
    font-weight: 700;        /* PLUS ÉPAIS */
    border-left: 5px solid #3385ff;
    padding-left: 0.66rem;
    margin-bottom: 1.1rem;
    opacity: 1;
}

/* ============================================================
   HEADER — STYLE BAIDU
   ============================================================ */

header {
    background: #ffffff;
    color: #3385ff;
    padding: 1.1rem;
    text-align: center;
    border-bottom: 2px solid #e5e5e5;
    opacity: 1;
}

header h1 {
    font-size: 1.7rem;         /* PLUS GRAND */
    font-weight: 800;        /* PLUS ÉPAIS */
    opacity: 1;
}

/* ============================================================
   MAIN CONTAINER
   ============================================================ */

main {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 1.5rem;
    gap: 1.5rem;
    opacity: 1;
}

/* ============================================================
   TABLEAUX
   ============================================================ */

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    font-size: 1.15rem;      /* PLUS GRAND */
    font-weight: 500;        /* PLUS ÉPAIS */
    opacity: 1;
}

th {
    background: #f7f7f7;
    padding: 0.9rem;
    font-weight: 700;        /* PLUS ÉPAIS */
    border-bottom: 1px solid #e5e5e5;
    opacity: 1;
}

td {
    padding: 0.8rem;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    opacity: 1;
}

tr:nth-child(even) {
    background: #fafafa;
    opacity: 1;
}

/* ============================================================
   FORMULAIRES
   ============================================================ */

form {
    background: #fff;
    padding: 1.32rem;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    opacity: 1;
}

label {
    font-weight: 700;        /* PLUS ÉPAIS */
    margin-bottom: 0.44rem;
    display: block;
    opacity: 1;
}

input, select, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fafafa;
    margin-bottom: 1.1rem;
    font-size: 1.1rem;       /* PLUS GRAND */
    font-weight: 500;        /* PLUS ÉPAIS */
    opacity: 1;
}

button {
    width: 100%;
    padding: 1.1rem;
    background: #3385ff;
    color: #fff;
    border: none;
    font-weight: 800;        /* PLUS ÉPAIS */
    cursor: pointer;
    border-radius: 6px;
    font-size: 1.1rem;       /* PLUS GRAND */
    margin-bottom: 0.88rem;
    opacity: 1;
}

button:hover {
    background: #2a6ed8;
    opacity: 1;
}
===============================================================================================================================
/* ============================================================
   INDEX — LAYOUT SMARTPHONE
   ============================================================ */
/*
#index-main {
    display: flex;
    flex-direction: column;
    gap: 1.65rem;
    opacity: 1;
}

#index-poster-section,
#index-links-section {
    width: 100%;
    max-width: 100%;
    opacity: 1;
}

#index-poster {
    width: 100%;
    border-radius: 8px;
    opacity: 1;
}

#index-mtg-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.88rem;
    opacity: 1;
}

#index-mtg-nav button {
    font-size: 1.45rem;
    font-weight: 800;
}

.index-card {
    font-size: 1rem;
    font-weight: 600;
}
 */
============================================================================================================================
/* ============================================================
   INDEX — LAYOUT SMARTPHONE - RESPONSIVE — TABLETTES & SMARTPHONES
   ============================================================ */

@media (max-width: 900px) {
    #index-main {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    #index-main {
        flex-direction: column;       /* Passe en colonne */
        text-align: center;
        padding: 1.5rem;
    }

    #index-poster-section,
    #index-links-section {
        width: 100%;
        max-width: 500px;
    }

    #index-poster {
        max-width: 100%;
    }
}

=============================================================================================================================
/* ============================================================
   MAP
   ============================================================ */

#map {
    width: 100%;
    height: 44vh;
    min-height: 275px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #f2f2f2;
    opacity: 1;
}

/* ============================================================
   WORLD MAP
   ============================================================ */

#world-map-postcards-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
    opacity: 1;
}

.postcard {
    background: #fff;
    padding: 1.1rem;
    border-radius: 6px;
    border: 1px solid #e5e5e5;/* PLUS GRAND */
    font-weight: 500;        /* PLUS ÉPAIS */
    opacity: 1;
}

/* ============================================================
   VOCABULAIRE
   ============================================================ */

#vocabular-container {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    opacity: 1;
}

.vocabular-column {
    background: white;
    padding: 1.1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    opacity: 1;
}

.vocabular-column h3 {
    border-bottom: 2px solid #3385ff;
    padding-bottom: 6.6px;
    margin-bottom: 1.1rem;
    font-size: 1.5rem;       /* PLUS GRAND */
    font-weight: 700;        /* PLUS ÉPAIS */
    opacity: 1;
}

.vocabular-definition,
.vocabular-sentence,
.vocabular-word-item {
    margin-bottom: 0.66rem;
    font-size: 1.2rem;       /* PLUS GRAND */
    font-weight: 500;        /* PLUS ÉPAIS */
    opacity: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
    text-align: center;
    padding: 1.1rem;
    background: #ffffff;
    color: #3385ff;
    margin-top: 2.2rem;
    border-top: 2px solid #e5e5e5;
    font-size: 1.25rem;      /* PLUS GRAND */
    font-weight: 700;        /* PLUS ÉPAIS */
    opacity: 1;
}

}

/* ============================================================
   CORRECTION : AGENDA BODY
   ============================================================ */

#agenda-body {
    font-size: 1.3rem;       /* PLUS GRAND */
    font-weight: 600;        /* PLUS ÉPAIS */
}
