/* Feuille de style principale du site Projet Dressage */

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.4rem 0 0 0;
}

header h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Style du logo */
#logo{
    display: block;          /* nécessaire pour margin auto */
    width: 64px;            /* largeur par défaut */
    height: auto; 
    margin: 0;
    padding: 0;    
    cursor: pointer;         /* main au survol */
}


/* Navigation principale */
nav {
    justify-content: center;
}

#NavPrincipale{
    padding: 8px;
    margin: 0;
    background-color: #2c3e50;
}

#NavPrincipale ul {
    list-style: none;
    display: flex;
    justify-content: center; /* centre horizontalement tout le contenu */
    align-items: center;     /* centre verticalement le logo et les liens */
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    gap: 1rem;               /* espace entre chaque élément */
}

#NavPrincipale ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    text-align: center;
}

/* Hover */
nav ul li a:hover {
    background-color: #555;
    border-radius: 5px;
}

/* Page active */
nav ul li a.active {
    background-color: #4CAF50;
    border-radius: 5px;
}

/* Menu latéral pour navigation interne */
#side-menu {
    position: fixed;
    left: 8px;
    top: 200px;
    background-color: rgb(255, 255, 255);
    padding:18px;
    border-radius: 6px;
    max-width: 220px;
    border-left: 4px solid #3a36c3;
}

#side-menu h3 {
    font-size: 14px;
    margin-bottom: 6px;
    color: #667eea;
}

#side-menu ul {
    list-style-type: none;
}

#side-menu ul li {
    margin: 0.5rem 0;
}

#side-menu ul li a {
    color: #504ab8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

#side-menu ul li a:hover {
    color: #9ba9ec;
}

#side-menu h2 {
    font-size: 14px;    
    margin-bottom: 6px;
    color: #667eea;
    font-weight: 600;
}


/* Main content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    background-color: white;
    border-radius: 4px;
}


/*  welcome  banner */
.welcome-banner {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
}

.welcome-banner h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.welcome-banner p {
    font-size: 1.1rem;
    color: #ffffff;
}


/* Sections */
section {
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

section h2 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 2rem;
    padding-left: 1rem;
}

section h3 {
    color: #764ba2;
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
}

/* Articles */
article {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: #f8f8f8;
    border-radius: 5px;
}

article h3 {
    color: #2c3e50;
    margin-top: 0;
}


.remarque {
    background-color: #e8f4f8;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid #53a6de;
    border-radius: 4px;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

table, th, td {
    border: 1px solid #ddd;
}

th {
    background-color: #5c74df;
    color: white;
    padding: 0.75rem;
    text-align: left;
}

td {
    padding: 0.75rem;
}

caption, figcaption{
    text-align: center;
    color: #2824a8;
}


/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 6px 0;
    margin-top: 1rem;
}

footer p {
    margin: 0.5rem 0;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}



footer span {
    display: block;       /* force chaque span à aller à la ligne */
    margin: 4px 0;     /* petit espace entre chaque ligne */
}

footer a {
    color: #9ba9ec;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Listes */
ul.styled-list, ol.styled-list {
    margin: 1rem 0 1rem 2rem;
}

ul.styled-list li, ol.styled-list li {
    margin: 0.5rem 0;
}
#piece-figure {
    text-align: center;
}

#piece-figure img {
    width: 60%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.jauge-image, .animaux{
    width: 60%;
    max-width: 320px;
    height: auto;
    display: block;
    margin: 8px auto;
}

