﻿/* ============================
   Éléments principaux de la page
   ============================ */
body {
    background: #ffeef6; /* fond rose très clair */
    font-family: 'Times New Roman', Times, serif; /* police principale */
    color: #4a2c3a; /* texte rose foncé */
    margin: 0;
    padding: 0;
}

#page {
    width: 90%;
    max-width: 900px;
    margin: auto;
}

/* Titres et navigation */
section h1, nav a {
    font-family: 'Times New Roman', Times, serif;
    font-weight: normal;
    text-transform: uppercase;
    color: #8b2e5f; /* rose vif */
}

/* ============================
   Header
   ============================ */
header {
    border-bottom:3px solid #d98cb3; /* rose moyen */
    margin-bottom:20px;
    padding-bottom: 10px;
}

#titre_page {
    display: inline-block;
}

header h1 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.5em;
    font-weight: normal;
    display: inline-block;
    margin-bottom: 0px;
    color: #a03f7d; /* rose soutenu */
}

header h2 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.1em;
    margin-top: 0px;
    font-weight: normal;
    color: #b56589; /* rose clair */
}

/* ============================
   Navigation
   ============================ */
nav {
    display: inline-block;
    width: 100%;
    text-align: right;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav li {
    display: inline-block;
    margin-left: 15px;
}

nav a {
    font-size: 1.3em;
    color: #8b2e5f; /* rose vif */
    padding-bottom: 3px;
    text-decoration: none;
}

nav a:hover {
    color: #d44b94; /* rose plus clair au survol */
    border-bottom: 3px solid #d44b94;
}

/* ============================
   Corps (article + aside)
   ============================ */
section {
    display: flex;
    flex-wrap: wrap; /* empile les colonnes sur petits écrans */
}

article, aside {
    display: inline-block;
    vertical-align: top;
    text-align: justify;
}

article {
    flex: 1 1 60%; /* minimum 60% largeur */
    margin-right: 2%;
}

article p {
    font-size: 0.9em;
    margin: 5px 0;
}

aside {
    flex: 1 1 35%; /* minimum 35% largeur */
    background-color: #f4c2d1; /* rose pastel */
    box-shadow: 0px 2px 5px #d49bbf;
    border-radius: 5px;
    padding: 10px;
    color: #4a2c3a; /* texte rose foncé */
    font-size: 0.9em;
    margin-top: 20px;
}

#photo {
    text-align: center;
}

#photo img {
    max-width: 100%;
    height: auto;
    border: 1px solid #a03f7d; /* bord rose foncé */
    border-radius: 5px;
}

/* ============================
   Footer
   ============================ */
footer {
    padding-top: 25px;
    font-size: 0.6em;
    color: #b56589; /* rose clair */
    text-align: center;
}

footer a, footer a:link, footer a:visited {
    color: #b56589;
    text-decoration: none;
}

/* ============================
   Media Queries pour responsive
   ============================ */

/* Tablettes */
@media (max-width: 768px) {
    article, aside {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    nav {
        text-align: center;
    }
}

/* Smartphones */
@media (max-width: 480px) {
    header h1 { font-size: 1.8em; }
    header h2 { font-size: 1em; }
    
    nav a {
        display: block;
        margin: 5px 0;
    }
    
    article p {
        font-size: 0.85em;
    }
}

/* ============================
   Correctifs pour vieilles versions d'IE
   ============================ */
.old_ie #titre_page, .old_ie #logo, .old_ie header h1, .old_ie nav, .old_ie nav li, .old_ie article, .old_ie aside {
    display: inline;
}

.old_ie section h1, .ie8 section h1 {
    font-size: 1.1em;
}
