/* Font family commun utilisée partout */
:root {
    --font-main: ABeeZee, Verdana, sans-serif, "Times New Roman", Times, serif, "Lucida Console", Monaco, monospace;
}

/* Global font settings */
body, #body, .topnav, .en_tete table, #page, #myTable, #chanson, #stramoy, #menu, .menu table, .table,
.paris table, .habit table, .danse table, .music table {
    font-family: var(--font-main);
}

/* General font size & line-height defaults */
#body {
    font-size: 14px;
}
#page, #myTable, #chanson, #stramoy, #menu, .menu table {
    font-size: 14px;
    line-height: 1.5;
}
.paris table {
    font-size: 14px;
    line-height: 1.2;
}
.gras {
    font-size: 120%;
    font-weight: bold;
    color: #9900CC;
}

/* Top navigation bar */
.topnav {
    overflow: hidden;
    background-color: #339933;
    border: 2px solid black;
    margin: 10px 2%;
    font-family: var(--font-main);
}
.topnav a {
    float: left;
    display: block;
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}
.topnav a:hover {
    color: red;
}
.topnav a.ouvre {
    background-color: black;
    color: white;
}
.topnav .icon {
    display: none;
}
@media screen and (max-width: 600px) {
    .topnav a:not(:first-child) {
        display: none;
    }
    .topnav a.icon {
        float: right;
        display: block;
    }
    .topnav.responsive {
        position: relative;
    }
    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
}

/* Table styles */
.en_tete table {
    background-color: black;
    margin: 0 2%;
    border: 1px solid black;
    font-size: 180%;
    text-align: left;
}
.en_tete td {
    border: 0;
    padding: 10px;
}
#page {
    margin: 10px 2% 0;
    background: url("images/fond_d.jpg") repeat;
    text-align: justify;
    font-size: 14px;
    line-height: 1.5;
    padding: 0 20px;
    border: 2px solid black;
}
#page h1, #page h1 a {
    color: black;
    text-align: center;
}
#page h2 a {
    color: red;
    text-align: left;
}
#page h3 {
    color: #0033cc;
    text-align: left;
}
#page h4 {
    color: black;
    text-align: left;
}
#page a {
    font-weight: bold;
    color: green;
    text-decoration: none;
}
#page a:hover {
    color: red;
    font-weight: bold;
    text-decoration: none;
}
#myInput {
    width: 400px;
    height: 20px;
    padding: 10px;
    margin: 12px 0 12px 0;
    font-family: var(--font-main);
    font-size: 14px;
}
#myTable, #chanson, #stramoy {
    border-collapse: separate; /* none is not valid */
    width: 100%;
    font-size: 14px;
    line-height: 1.5;
}
#myTable td, #chanson td, #stramoy td {
    padding: 2px;
    line-height: 1.5;
    font-size: 14px;
    width: 100%;
}
#myTable td {
    border-bottom: 1px solid red;
}
/* Specific table layouts */
.paris table {
    margin: 0 2%;
    text-align: center;
    font-size: 14px;
    line-height: 1.2;
    padding: 5px;
    border-collapse: collapse;
    border: 2px solid black;
}
.paris table td {
    vertical-align: middle;
    border: 1px solid black;
    padding: 5px;
}
.habit table, .danse table {
    margin-left: auto;
    margin-right: auto;
    padding: 5px;
    border-collapse: collapse;
    border: 2px solid black;
}
.habit table td {
    vertical-align: top;
    border: 1px solid black;
    padding: 10px 25px;
}
.danse table {
    border-color: blue;
}
.danse table td {
    border: 1px solid blue;
    padding: 10px;
}
.music table {
    margin-left: auto;
    margin-right: auto;
    padding: 5px;
    border-collapse: collapse;
}
.music table td {
    padding: 10px;
}
.table {
    margin-left: auto;
    margin-right: auto;
    padding: 5px;
    border-collapse: collapse;
    border: 2px solid black;
}
.table td {
    border: 1px solid black;
    text-align: center;
    padding: 2px;
}
/* Menu styles */
#menu {
    background-color: #FFFFCC;
    padding: 2px;
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.5;
}
.menu h1 {
    margin-left: 2%;
    line-height: 1;
}
.menu h2 {
    text-align: center;
}
.menu table {
    width: 96%;
    background: url("images/fond_d.jpg") repeat;
    border: 2px solid black;
    margin: 0 2%;
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
    border-collapse: collapse;
}
.menu td {
    vertical-align: top;
    border: 1px solid black;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
}
.menu ul {
    margin-left:2%;
    text-align: left;
    list-style: square;
    padding-left: 20px;
}
.menu a {
    color: black;
    text-decoration: none;
}
.menu a:hover {
    color: blue;
    font-weight: bold;
}
/* Fix typo: .menu responsive table td */
.menu.responsive table td {
    max-width: 100%;
    height: auto;
}

/* Search component with box-sizing reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}
.search-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    width: 100%;
}
.search-wrapper {
  display: flex;          /* Active Flexbox : aligne les enfants côte à côte */
  justify-content: center;/* Centre le tout horizontalement dans la page */
  align-items: center;    /* Aligne l'input et le bouton verticalement */
  gap: 8px;              /* Ajoute un petit espace entre l'input et le bouton */
}
.search-box {
    width: 70%;
    padding: 10px 14px;
    font-size: 14px;
    border: 2px solid #7b61ff;
    border-right: none;
    border-radius: 6px 0 0 6px;
    outline: none;
}
.clear-btn {
    width: 30%;
    padding: 10px 14px;
    font-size: 14px;
    border: 2px solid #7b61ff;
    border-radius: 0 6px 6px 0;
    border-left: none;
    background-color: white;
    cursor: pointer;
    appearance: none;
    transition: background-color 0.3s, color 0.3s;
}
.clear-btn:hover {
    background-color: #7b61ff;
    color: white;
}
.search-box:focus {
    border-color: #4a3bcf;
    box-shadow: 0 0 5px #7b61ff;
}
@media (max-width: 768px) {
    .search-wrapper {
        width: 90%;
        flex-direction: column;
    }
    .search-box, .clear-btn {
        width: 100%;
        border-radius: 6px;
        border-right: 2px solid #7b61ff;
        margin-bottom: 10px;
    }
    .clear-btn {
        border-left: 2px solid #7b61ff;
        margin-bottom: 0;
    }
}
.search-results {
    width: 100%;
    border-collapse: collapse;
}
.search-results th, .search-results td {
    border: 1px solid #ddd;
    padding: 3px;
    text-align: left;
}
.search-results th {
    background-color: #f4f4f4;
}
.search-results tr:hover {
    background-color: #f1f1f1;
}

/* Float image captions */
.photo {
    margin-left: 15px;
    float: right;
    color: black;
    text-align: center;
    font-size: small;
}
.photog {
    margin-right: 15px;
    float: left;
    color: black;
    text-align: center;
    font-size: small;
}
.etang {
    font-style: italic;
    margin-left: 35px;
    color: blue;
}
.societe {
    color: #CC6600;
}
.imageflottante {
    float: left;
    margin-right: 10px;
}
.dessous {
    clear: both;
}

.gras {
    color: #9900CC;
    font-size: 120%;
    font-weight: bold;
}
.poeme {
    margin-left: 20%;
    text-align: left;
    color: #3366ff;
}

/* Scroll up button */
#scrollUp {
    position: fixed;
    bottom: 10px;
    right: 10px;
}

/* Film */
#film {
    width: 100%;
    height: 100%;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}
.video-container iframe,
.video-container object,
.video-container embed {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.video-wrapper {
    width: 600px;
    max-width: 100%;
}

.indent {
    text-indent: 30px;
}

/* Modal window */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: black;
}
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1134px;
}
.close {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 120%;
    font-weight: bold;
    cursor: pointer;
}
.close:hover,
.close:focus {
    color: #999;
    text-decoration: none;
}

/* Slides */
.mySlides {
    display: none;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    user-select: none;
    border-radius: 0 3px 3px 0;
}
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.numbertext {
    font-family: var(--font-main);
    font-weight: bold;
    color: black;
    font-size: 14px;
    padding: 1px;
    position: absolute;
    bottom: 5px;
    right: 0;
}

/* Image styles */
img.demo {
    opacity: 0.6;
}
.active,
.demo:hover {
    opacity: 1;
}
img.hover-shadow {
    transition: 0.3s;
}
.hover-shadow:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2),
                0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
img.highlight {
    background: yellow;
    border-bottom: 2px inset grey;
    border-radius: 5px;
    font-size: 150%;
}
