/* ====== Styles globaux ====== */

body {
    width: 90%;
    margin: auto;
    background: #f5f5f5;
    font-family: 'Marianne', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* ====== Header ====== */
header {
    background-color: teal;
    color: white;
    padding: 1em 2em;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

header h1, header h2 {
    margin: 0;
    font-weight: bold;
}

nav {
    margin-top: 0.5em;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5em;
    padding: 0;
    margin: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: #ffcc00;
}

/* ====== Main content ====== */
main {
    padding: 2em 0;
}

h1, h2 {
    color: teal;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

/* ====== Footer ====== */
footer {
    background-color: teal;
    color: white;
    text-align: center;
    padding: 1em;
    margin-top: 3em;
    border-radius: 10px 10px 0 0;
    font-size: 0.9em;
}

/* ====== Boutons et liens ====== */
a {
    color: navy;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: darkorange;
}

/* ====== Navigation flèches ====== */
.navigation-rescrits {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2em;
}

.nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: teal;
    text-decoration: none;
    padding: 0.5em 1em;
    border: 1px solid teal;
    border-radius: 5px;
    background-color: #fff;
    transition: background-color 0.3s, color 0.3s;
}

.nav-arrow:hover {
    background-color: teal;
    color: white;
}

.nav-arrow svg {
    vertical-align: middle;
}

.nav-arrow.retour {
    flex-grow: 1;
    text-align: center;
}

/* ====== Cartes génériques ====== */
.card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1.5em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.bandeau {
    width: 100%;
    overflow: hidden;
    background-color: teal;
    color: white;
    font-weight: bold;
    padding: 0.5em 0;
    margin-bottom: 1em;
}

.bandeau p {
    display: inline-block;
    white-space: nowrap;
    animation: defilement 15s linear infinite;
}

@keyframes defilement {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}
