/* ==================================================
   RESET & BASES
================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    font-size: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans', sans-serif;
    background: white;
    color: #111;
    font-size: 1.15rem;
}



/* ==================================================
   TYPOGRAPHIE
================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Marcellus', serif;
}


#zoom-wrapper {
    width: 100%;
    transform-origin: top left;
}

/* ==================================================
   LISTES
================================================== */
ul {
    list-style-type: none;
    margin: 0.6rem;
    margin-top: 1.6rem;
    padding-bottom: 1.2rem;
    color: #333;
}

ul li {
    line-height: 1.6rem;
    padding-left: 1.5rem;
}

#main ul {
}

/* ==================================================
   TITRES (BASE)
================================================== */
/*
h1{font-size:2.5rem; line-height:1.2; margin-bottom:1rem;}
h2{font-size:2rem; line-height:1.2; margin-bottom:0.75rem;}
h3{font-size:1.6rem; line-height:1.25; margin-bottom:0.6rem;}
h4{font-size:1.3rem; line-height:1.25; margin-bottom:0.5rem;}
h5{font-size:1.1rem; line-height:1.3; margin-bottom:0.4rem;}
h6{font-size:1rem; line-height:1.3; margin-bottom:0.35rem;}
*/

h1{font-size:2.5rem;  margin-bottom:1rem;}
h2{font-size:2rem;  margin-bottom:0.75rem;}
h3{font-size:1.6rem;   margin-bottom:0.6rem;}
h4{font-size:1.3rem;   margin-bottom:0.5rem;}
h5{font-size:1.1rem;  margin-bottom:0.4rem;}
h6{font-size:1rem;  margin-bottom:0.35rem;}


/* ==================================================
   MAIN LAYOUT
================================================== */
#main {
    display: flex;
    flex-direction: column;
    max-width:100%;
    width:92%;
    min-height: 300px;
    overflow-wrap:break-word;
    border:none;
    margin: 4% auto;
/*outline: 1px solid gold;*/
}
@media (max-width: 768px) {
    #main {
        width: 95%;
        margin: 2% auto;
    }
}

@media (max-width: 480px) {
    #main {
        width: 98%;
        margin: 1rem auto;
    }
}


h1,h2{
    align-self:center;
    text-align:center;
    color: DodgerBlue;
}

h3,h4{
    color: DodgerBlue;
}

/* ==================================================
   HAMBURGER
================================================== */
#hamburger{
position:fixed;
top:6px;
right:12px;
align-items:center;
justify-content:center;
font-family:monospace;
margin:0;
padding:4px;
border:1px solid gray;
background:white;
cursor:pointer;
line-height:1;
font-size: 1.5rem;
border-radius:6px;
background-color:beige;
box-shadow:0 4px 8px rgba(0,0,0,0.3);
z-index: 10000;
}

#hamburger:hover{
transform:scale(1.1);
}

.burgerText{
font-size:0.7rem;
}

#hamburger:hover{
transform:scale(1.1);
}


/* ==================================================
   SIDEBAR
================================================== */
aside {
  width: 0;
  padding-top: 14rem;
  height: 76vh;
  background: #3498db;
  color: white;
  padding: 20px;
  padding-left: 0;
  /*box-sizing: border-box;*/
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9000;

  overflow-x: hidden;
  overscroll-behavior: contain;
overflow-y: auto;
  opacity: 0;
  transform: translateX(-10px);
  transition: width 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
  border: 1px solid blue;

  background: linear-gradient(45deg,
  #85c1e9 0%,
  #a9d6f5 25%,
  #c39bd3 60%,
  #d7bde2 100%);

  box-shadow: 4px 0 8px rgba(0,0,0,0.3);
  border-bottom-right-radius: 40%;

}

aside.show {
  width: 50vw;
  opacity: 1;
  transform: translateX(0);
}



#menu{
  padding-top: 8vh;
  /*background: green;*/
}

#menu {
scrollbar-width: none;
-ms-overflow-style: none;
overflow-y: auto;
}
#menu::-webkit-scrollbar {
display: none;
}


#menu a{
  font-size: 1.25rem !important;
}

#menu h1{
font-size: 10em;
margin: 2rem auto;
line-height: 1;
display: inline-block;
vertical-align: middle;
}


/* ==================================================
   TITRES DANS MAIN  🌳🌿🔥🏜️🌅❇️🌐📄
================================================== */

#main h1,
#main h2,
#main h3,
#main h4 {
    margin: 0.8em auto 1.2rem auto;
   /* line-height: 1.6rem;*/
    font-weight: 700;
    text-align: center;
}


#main h3,
.sommaire-container h3{
    margin:1.8rem 1rem 0.8rem 3rem;
    line-height:1.25;
    
}

#main h2 {
    
    /*outline: 1px solid red !important;*/
}
/* ==================================================
   TITRE PRINCIPAL
================================================== */
#main > h1:first-of-type{
    margin:0;
    padding:0;
    padding-top: 1rem;
    padding-bottom: 0rem;
    display: block;
    text-align:center;
    /*outline: 1px solid red !important;*/
}

/* ==================================================
   PARAGRAPHES
================================================== */
#main p , #main div {
	/*
    margin:1.5rem;
    margin-bottom: 2em;
    */
    /*border: 2px solid red;*/
}

/* ==================================================
   IMAGES
================================================== */
#main img {
    width: 98%;
    height: auto;
    margin:  1rem;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid gray;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

#main p:has(img){
    text-align:center;
      margin:0.5rem 0;
}

#main figure{
    text-align:center;
}

#main p img{
    max-width:  84%;
    height:auto;
}

/* ==================================================
   SOMMAIRE
================================================== */
.sommaire-container {
    line-height: 1.6rem !important;
    column-count: 2;
    column-gap: 40px;
    column-rule: 1px solid #eee;
    hyphens: auto;
    word-wrap: break-word;
    padding: 0;
}

.sommaire-container li {
    margin: 6px !important;
}

.sommaire-container ul {
    list-style-type: none;
}

/* ==================================================
   CODE
================================================== */
code{
    background:#e2e8f0;
    padding:2px 5px;
    border-radius:4px;
    font-family:monospace;
}

/* ==================================================
   FOOTER
================================================== */
#pageFooter{
background: LightSteelBlue;
padding:1rem;
/*min-height: 100vh;*/
}

#pageFooter ul,#pageFooter ul ul,#pageFooter ul ul ul{
list-style:none;
line-height:1.3;
font-size:1.2rem;
color:black;
}

#pageFooter a{
color:navy;
text-decoration:none;
font-size:1.2rem;
}

#pageFooter a:hover{
text-decoration:underline;
}

#pageFooter .icon-row{
display:flex;
justify-content:space-between;
align-items:center;
width:100%;
text-align:center;
}

#pageFooter .icon-block{
display:flex;
flex-direction:column;
align-items:center;
}

#pageFooter .icon{
font-size:2rem;
cursor:pointer;
}

#pageFooter .icon.red{color:red;}
#pageFooter .icon.black{color:black;}

#pageFooter .icon-text{
font-size:1.2rem;
margin-top:0.3rem;
}

/* ==================================================
   UTILITAIRES
================================================== */
.left {text-align:left;}
.right {text-align:right;}
.centered {text-align:center;}

.no-wrap {
    white-space: nowrap;
    overflow-x: auto;
}

/* ==================================================
   TREEVIEW
================================================== */
.treeview-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    background: transparent;
    padding: 10px;
}

.treeview-container ul {
    list-style-type: none;
    padding-left: 0;
}

.treeview-container li {
    margin: 4px 0;
    white-space: nowrap;
}

.treeview-container summary {
    cursor: pointer;
    font-weight: 600;
    outline: none;
    list-style: none;
    padding: 4px 8px;
    border-radius: 4px;
}

.treeview-container summary::-webkit-details-marker {
    display: none;
}

.treeview-container summary:hover {
    background-color: #f5f5f5;
}

.treeview-container a {
    text-decoration: none;
    color: #0056b3;
    padding: 2px 6px;
}

.treeview-container a:hover {
    color: #e67e22;
    text-decoration: underline;
}

.treeview-container details > ul {
    border-left: 1px solid #eee;
    margin-left: 12px;
}

/* ==================================================
   TOOLBAR
================================================== */
#SiteName {
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    font-family: 'Marcellus', serif;
    font-size: 2.4vw;
}

#toolbarContainer{
width:100%;
background-color: #f0f0eb;
box-shadow:0 10px 15px -3px rgba(0,0,0,0.1),0 4px 6px -2px rgba(0,0,0,0.05);
z-index: 1000;
}

#toolbar{
width:90%;
padding-top:0.6rem;
padding-bottom:0.4rem;
}

.toolbarRow{
display:flex;
width:100%;
margin:0;
line-height:1.4rem;
}

.item{
display:flex;
align-items:center;
justify-content:center;
font-size: 28px;
font-weight:bold;
}

.toolbarTextRow .item{
padding-top:0.6vw;
font-size: 1.6vw;
line-height:1.2rem;
color: gray;
}

.w10{width:10%;}
.w50{width:60%;}

/* ==================================================
   COLUMNS
================================================== */

/*
.colonnes2 {
    column-count: 2;
    column-gap: 10px;
    column-fill: balance;
    width: 100%;
    margin: 0 auto;
    text-align: justify;
}
*/

.colonnes2 {
column-count: 2;
column-gap: 20px;
column-fill: balance;
width: 100%;
margin: 0 auto;
}
.treeview-container {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 1.2rem;
color: #333;
background: transparent;
padding: 0;
}
.treeview-container ul {
list-style-type: none;
padding-left: 0;
margin-top: 0;
}
.treeview-container li {
margin: 4px 0;
white-space: nowrap;
break-inside: avoid;
}


/* ==================================================
   BOXeS
================================================== */

hr.spacer {
    border: none;
    margin: 0;
    height: 4vh;
}


/* =========================
   CONTAINER ALERT
   ========================= */

/* =========================
   BASE ALERT
   ========================= */
/*
.alert {
    margin: 1rem auto;
    padding: 1rem 1.2rem;
    width: 80%;

    border: 1px solid;
    border-left: 6px solid;
    border-radius: 8px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.08);

    font-size: 1.6rem !important
    line-height: 1.4;

    display: block; 

}
*/

/* ==================================================
   ALERT SYSTEM (VERSION STABLE)
================================================== */
/*
.alert {
    margin: 1rem auto;
    padding: 1.2rem 1rem;
    width: 80%;

    border: 1px solid;
    border-left: 6px solid;
    border-radius: 8px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.08);

    font-size: 1.6rem;
    line-height: 1.4;

    display: block;
    box-sizing: border-box;
}

*/
/*

.alert {   
    border-left: 6px solid;
    border-radius: 8px;
    padding:2em !important;
    border: 2px solid red !important;
}


.alert-content {
    padding: 0;
    margin: 0;
}
9*/

/* ==================================================
   HEADER (ICÔNE + TITRE)
================================================== */

.alert-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 0.8rem;
}

/* icône */
.alert-icon {
    font-size: 2rem;
    flex: 0 0 auto;
}

/* titre */
.alert-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

/* ==================================================
   CONTENU TEXTE
================================================== */

.alert-text {
    font-size: 1.2rem;
    line-height: 1.5;
}

/* ==================================================
   COULEURS
================================================== */

.alert-info {
    background: #e7f3fe;
    border-left-color: #2196f3;
    color: #0b3d91;
}

.alert-success {
    background: #e6f4ea;
    border-left-color: #4caf50;
    color: #2e6b2e;
}

.alert-warning {
    background: #fff8e1;
    border-left-color: #ff9800;
    color: #8a5a00;
}

.alert-danger {
    background: #fdecea;
    border-left-color: #f44336;
    color: #8b1e16;
}

.alert-primary {
    background: #eef2ff;
    border-left-color: #3f51b5;
    color: #24327a;
}

.alert-secondary {
    background: #f1f3f5;
    border-left-color: #6c757d;
    color: #444;
}

.alert-dark {
    background: #2d2d2d;
    border-left-color: #111;
    color: #fff;
}

.alert-light {
    background: #ffffff;
    border-left-color: #d9d9d9;
    color: #333;
}


/*

.alert,
.alert * {
    font-size: 40px !important;
    margin: 20px !important;
    padding: 20px !important;
    background: yellow !important;
}

*/




.alert {
position: relative;
margin-bottom: 32px;
/* Padding-left augmenté à 140px pour un gap important */
/*padding: 90px 25px 25px 140px;*/
width: 90%;
margin: 5% auto;
padding: 60px 15px 15px 100px;
border-radius: 12px;
background-color: lightgray;
box-shadow: 0 8px 20px rgba(0,0,0,0.06);
border-left: 12px solid navy;
font-size: 1.15rem;
color: #2c3e50;
line-height: 1.4;
min-height: 140px;
}

.alert::before {
content: attr(data-title);
position: absolute;
top: 0;
left: 0;
right: 0;
padding: 0.6rem;
text-align: center;
font-weight: 700;
/*text-transform: uppercase;*/
/*letter-spacing: 2px;*/
font-size: 1.6rem;
border-bottom: 1px solid rgba(0,0,0,0.05);
border-radius: 0 12px 0 0;
}

.alert::after {
content: attr(data-icon);
position: absolute;
/* Position de l'icône à gauche */
left: 30px;
top: 85px;
/* Taille réduite d'un tiers (environ 36px au lieu de 55px) */
font-size: 2rem;
line-height: 1;
}
.alert[data-type="success"] { border-left-color: #2ecc71; background: #e6f4ea; }
.alert[data-type="success"]::before { background: #eafaf1; color: #27ae60; }

.alert[data-type="warning"] { border-left-color: #f1c40f; background: #fff8e1}
.alert[data-type="warning"]::before { background: #fef9e7; color: #b7950b; }

.alert[data-type="danger"] { border-left-color: #e74c3c; }
.alert[data-type="danger"]::before { background: #fdedec; color: #c0392b; }

.alert[data-type="info"] { border: 2px solid #ddd;
border-left: 12px solid #3498db;
background: #e7f3fe; }
.alert[data-type="info"]::before { background: #ebf5fb; color: #2980b9; }


.alert[data-type="dark"] { border-left-color: #34495e; }
.alert[data-type="dark"]::before { background: #f2f4f4; color: #2c3e50; }



blockquote {
    background-color: #e7f3fe;
    border: 1px solid #3498db;
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 4px;
}

blockquote::before {
    content: "❝ ";
    font-size: 20px;
    color: #3498db;
}
