/* 🌟 Variables globales pour les polices et couleurs */
:root {
    --font-serif: "Georgia", "Times New Roman", "Droid Serif", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "San Francisco", "Helvetica Neue", Helvetica, "Roboto", Verdana, Arial, sans-serif;
    --color-primary: #36c;
    --color-secondary: #111;
    --color-background: #fff;
    --color-border: #cdcdcd;
}

/* 🌟 Réinitialisation et base globale */
html, body {
    height: 100%;
    margin: 0;
}

html {
    font-size: 18px;
}
@media (min-width: 768px) {
    html {
        font-size: 20px;
    }
}

body {
    font-family: var(--font-serif);
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
    padding: 120px 15px 0;
    background: var(--color-background);
    color: var(--color-secondary);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

main { flex: 1; }

/* 🌟 Typographie */
header, footer, .breadcrumb-bar, .breadcrumb-bar-footer, h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.875rem; }
h6 { font-size: 0.75rem; }

p, ul, ol {
    margin: 0.5rem 0 1.5rem;
    line-height: 1.5;
}

/* 🌟 Citations */
blockquote {
    font-style: italic;
    padding-left: 1.5rem;
    border-left: 5px solid var(--color-primary);
    color: #555;
}

/* 🌟 Liens */
a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 🌟 Header */
header {
    position: fixed;
    min-height: 3.2rem;
    top: 0;
    left: 0;
    z-index: 1003;
    background-color: var(--color-background);
    width: 100%;
    margin: 0 auto;
}

.header-container {
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    max-width: 768px;
    align-items: center;
    width: 100%;
    margin: 0 auto;  /* Cela centre l'élément horizontalement */
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: red;
    font-family: var(--font-serif);
}

.logo-small { display: inline; }
.logo-large { display: none; }
@media (min-width: 768px) {
    .logo-small { display: none; }
    .logo-large { display: inline-block; }
}

/* 🌟 Footer */
footer {
    position: relative;
    background: var(--color-background);
    margin-top: auto;
    text-align: center;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
}

.footer-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 180px;
    text-align: center;
}

.footer-column h5 { text-align: center; }

footer ul {
    list-style: none;
    padding: 0;
    font-size: 80%;
}

footer ul li { margin: 8px 0; }
footer ul li a { font-size: 1em; }
footer ul li a:hover { color: #007BFF; }
footer p { padding: 1rem 0; font-size: 80%; }

@media (min-width: 769px) {
    .footer-container { flex-direction: row; justify-content: space-between; }
    .footer-column {flex: 1; min-width: 180px; margin-bottom: 0;}
    .footer-column, .footer-column h5 { text-align: left; }
}

/* SVG gestion */

svg {
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1em;
    width: 24px;
    height: 24px;
}

.open_in_new-icon {
    width: 0.8em !important;
    height: 0.8em !important;
    stroke-width: 0.8em;
    vertical-align: middle;
}





/* à optimiser */


/* 🌟 Breadcrumb */
.dropdown-menu {
    font-size: 14px;
}

.dropdown-menu li {
    padding: 0.6em 0; /* Espace vertical entre les éléments */
    list-style-type: none; /* Enlève les puces */

}

details {
    position: relative;
}
summary {
    display: flex;
    cursor: pointer;
    padding: 5px 10px;
    color: #36c;
    font-weight: bold;
    align-items: center; 
    gap: 5px;
}
summary::marker {
    display: none;
}
nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    display: none;
    z-index: 1001; /* Assurer que les menus restent en avant */
}
details[open] nav {
    display: block;
}

.breadcrumb-bar {
    position: fixed;
    top: 3.2rem; /* Espace sous le header */
    left: 0;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f9f9fb;
    border-top: 1px solid #cdcdcd;
    border-bottom: 1px solid #cdcdcd;
    z-index: 1000;
}
.breadcrumb-container {
    display: flex;
    max-width: 768px;
    margin: 0 auto;
    padding: 0 15px;
    justify-content: space-between;
    align-items: center;
    font-size: 80%;
    align-items: center; 
    gap: 5px; 
    line-height: 1;
}
.language-text {
    font-size: 90%;
}
.breadcrumb a {
    text-decoration: none;
    color: #36c;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.language-selector {
    position: relative;
}
.language-selector details {
    display: inline-block;
}
.language-selector nav {
    right: 0;
    left: auto;
    top: 100%;
    z-index: 1001;
}

@media (max-width: 767px) {
    .language-text {
        display: none;
    }
}






.breadcrumb-bar-footer {
position: relative;
left: 0;
width: 100vw;
left: 50%;
transform: translateX(-50%);
background-color: #f9f9fb;
border-top: 1px solid #cdcdcd;
border-bottom: 1px solid #cdcdcd;
z-index: 1000;
}

.whatsapp-link {
font-size: 90%;
font-weight: bold;
width: 100vw; /* Utilise 100% de la largeur du viewport */
padding: 5px 0; /* Un peu d'espace sous le texte */
margin: 0; /* Supprime l'espacement autour de l'élément */
}


.whatsapp-link a {
text-decoration: none; /* Enlever le soulignement du lien */
font-size: inherit; /* Garder la taille de la police héritée */
color: #25D366; /* Un vert plus sombre lors du survol */
display: flex; 
align-items: center;
gap: 5px; 
justify-content: center;
}