/* Feuille de style pour impression - Site "Découvrez Paris" */

/* Reset pour l'impression */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Configuration de la page */
@page {
    size: A4;
    margin: 2cm;
    @top-center {
        content: "Découvrez Paris - Guide touristique";
        font-family: Arial, sans-serif;
        font-size: 10pt;
        color: #666;
    }
    @bottom-right {
        content: "Page " counter(page) " sur " counter(pages);
        font-family: Arial, sans-serif;
        font-size: 9pt;
        color: #666;
    }
}

/* Base typographique pour l'impression */
body {
    font-family: "Times New Roman", serif;
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: white;
    max-width: 100%;
}

/* Container principal */
.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Header - Optimisé pour l'impression */
header {
    background: white;
    color: #000;
    padding: 0 0 1cm 0;
    border-bottom: 2px solid #000;
    margin-bottom: 1cm;
    page-break-inside: avoid;
}

header h1 {
    text-align: center;
    font-size: 18pt;
    margin-bottom: 0.5cm;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1pt;
}

/* Navigation - Simplifiée pour l'impression */
nav {
    text-align: center;
    margin-bottom: 0.5cm;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1cm;
}

nav li {
    margin: 0;
}

nav a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 10pt;
    text-transform: uppercase;
    letter-spacing: 0.5pt;
}

nav a::after {
    content: " | ";
    margin: 0 0.3cm;
}

nav li:last-child a::after {
    content: "";
}

/* Main content */
main {
    padding: 0;
    min-height: auto;
}

section {
    background: white;
    margin: 0 0 1cm 0;
    padding: 0;
    border: none;
    box-shadow: none;
    page-break-inside: avoid;
}

/* Typography optimisée pour l'impression */
h1 {
    font-size: 16pt;
    margin-bottom: 0.3cm;
    color: #000;
    font-weight: bold;
    page-break-after: avoid;
}

h2 {
    font-size: 14pt;
    margin: 0.8cm 0 0.4cm 0;
    color: #000;
    border-bottom: 1pt solid #000;
    padding-bottom: 0.2cm;
    font-weight: bold;
    page-break-after: avoid;
}

h3 {
    font-size: 13pt;
    margin: 0.6cm 0 0.3cm 0;
    color: #000;
    font-weight: bold;
    page-break-after: avoid;
}

h3::before {
    content: "• ";
    color: #000;
    font-weight: bold;
}

h4 {
    font-size: 12pt;
    margin: 0.4cm 0 0.2cm 0;
    color: #000;
    font-weight: bold;
    page-break-after: avoid;
}

p {
    margin-bottom: 0.3cm;
    text-align: justify;
    font-size: 11pt;
    line-height: 1.3;
    orphans: 3;
    widows: 3;
}

/* Images - Optimisées pour l'impression */
img {
    max-width: 100%;
    height: auto;
    border: 1pt solid #ccc;
    margin: 0.3cm auto;
    display: block;
    page-break-inside: avoid;
    max-height: 8cm;
}

/* Légendes d'images */
img + p {
    font-style: italic;
    font-size: 9pt;
    text-align: center;
    margin-top: 0.2cm;
    color: #666;
}

/* Lists */
ul {
    margin: 0.3cm 0;
    padding-left: 1cm;
}

li {
    margin-bottom: 0.1cm;
    font-size: 11pt;
    line-height: 1.3;
}

li::marker {
    color: #000;
}

/* Footer - Simplifié pour l'impression */
footer {
    background: white;
    color: #000;
    text-align: center;
    padding: 0.5cm 0;
    margin-top: 1cm;
    border-top: 1pt solid #000;
    page-break-inside: avoid;
}

footer p {
    margin: 0.1cm 0;
    font-size: 9pt;
    color: #666;
}

/* Gestion des sauts de page */
h1, h2, h3, h4 {
    page-break-after: avoid;
}

section {
    page-break-inside: avoid;
}

/* Éviter les coupures dans les éléments importants */
img, table, pre {
    page-break-inside: avoid;
}

/* Masquer les éléments non nécessaires à l'impression */
.no-print {
    display: none !important;
}

/* Optimisation de l'espace */
@media print {
    /* Réduire les marges si nécessaire */
    @page {
        margin: 1.5cm;
    }
    
    /* Ajuster la taille de police si nécessaire */
    body {
        font-size: 11pt;
    }
    
    /* Optimiser l'espacement */
    section {
        margin-bottom: 0.5cm;
    }
    
    h2 {
        margin-top: 0.5cm;
    }
}

/* Styles spécifiques pour les différentes pages */
body.index h2::after {
    content: " - Page d'accueil";
    font-size: 10pt;
    color: #666;
    font-weight: normal;
}

body.monuments h2::after {
    content: " - Monuments emblématiques";
    font-size: 10pt;
    color: #666;
    font-weight: normal;
}

body.culture h2::after {
    content: " - Culture et art de vivre";
    font-size: 10pt;
    color: #666;
    font-weight: normal;
}

body.gastronomie h2::after {
    content: " - Gastronomie parisienne";
    font-size: 10pt;
    color: #666;
    font-weight: normal;
}

/* Amélioration de la lisibilité */
a {
    color: #000;
    text-decoration: underline;
}

a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666;
}

/* Optimisation des couleurs pour l'impression noir et blanc */
* {
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
}
