/* ------------------------------
   Style global
------------------------------ */
html, body {
    height: 100%;
    margin: 0;
    font-family: "Times New Roman", sans-serif;
    color: #384d7e;
    background-color: #ffffff;
}

body {
    display: flex;
    flex-direction: column;
}

/* ------------------------------
   Navigation
------------------------------ */
#nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 20px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    position: relative;
}

#nav h2 {
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.nav-card a,
.lang-card a {
    text-decoration: none;
    padding: 8px 12px;
    color: black;
    border: 1px solid black;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.nav-card a:hover,
.lang-card a:hover {
    background-color: #C7DEF0;
}

.lang-card a {
    margin-left: 10px;
}

/* Bouton de navigation mobile  */
#hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

#mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #c6def0;
    padding: 10px 20px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    z-index: 1000;
}

#mobile-menu a {
    padding: 10px 0;
    color: black;
    text-decoration: none;
    border-bottom: 1px solid #aaa;
}

#mobile-menu a:last-child {
    border-bottom: none;
}

#mobile-menu.open {
    display: flex;
}

/* ------------------------------
   Contenu du cv
------------------------------ */
#page {
    width: 50%;
    margin: 20px auto;
    background-color: #c6def0;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

section h1 {
    font-size: 3.5em;
    color: #384d7e;
    margin: 10px 0;
}

.section-content {
    display: flex;
    gap: 30px;
}

.content-column {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

aside {
    flex: 1;
    background-color: #5e88b9;
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

article strong {
    color: #30B5C9;
}

article ins {
    font-weight: bold;
}

aside img {
    width: 100%;
    height: auto;
}

.contact-button a {
    display: inline-block;
    padding: 10px 20px;
    background: #F59C27;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.contact-button a:hover {
    background: #d9821f;
}

/* ------------------------------
   Pied de page
------------------------------ */
footer {
    text-align: center;
    font-size: 0.9em;
    padding: 10px 0;
    color: #777;
    border-top: 1px solid #ccc;
    margin-top: 40px;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #777;
    text-decoration: none;
    margin: 0 5px;
}

footer a:hover {
    text-decoration: underline;
}

footer img {
    border: 0;
    width: 88px;
    height: 31px;
    vertical-align: middle;
    margin: 5px 3px;
}

/* ------------------------------
   Voyages
------------------------------ */
#voyage {
    width: 80%;
    margin: 40px auto;
    padding: 20px;
}

#voyage-titre h1 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
}

section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.voyage-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background-color: #c6def0;
    border-radius: 12px;
}

.voyage-card.reverse {
    flex-direction: row-reverse;
}

.voyage-texte {
    flex: 1;
}

.voyage-texte h2 {
    margin-bottom: 10px;
}

.voyage-photo {
    flex: 1;
    text-align: center;
}

.voyage-photo img {
    max-width: 100%;
    border-radius: 10px;
}

/* ------------------------------
   Administration
------------------------------ */
#admin-content {
    margin: auto;
}

#content {
    display: none;
}

#error {
    color: red;
}

/* --------------------------------------
   Responsive écran plus grand que 600px
-------------------------------------- */
@media (max-width: 600px) {

    #page {
        width: 80%;
        padding: 20px;
        margin: 20px auto;
    }

    header h1 {
        font-size: 2.2em;
    }

    #nav h2 {
        font-size: 1.3em;
    }

    .nav-card,
    .lang-card {
        display: none;
    }

    #hamburger {
        display: block;
    }

    .section-content {
        flex-direction: column;
        gap: 15px;
    }

    .content-column, aside {
        width: 100%;
    }

    aside {
        order: -1;
        width: 90%;
    }

    article {
        width: 100%;
    }

    aside img {
        width: 70%;
        margin: 0 auto;
    }

    article p {
        font-size: 0.95em;
    }

    .voyage-card,
    .voyage-card.reverse {
        flex-direction: column;
        text-align: center;
    }

    .voyage-photo img {
        max-width: 85%;
    }
}
