/* --- Reset minimal --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: Arial, sans-serif;
    background: #f4f4f9;
    color: #333;
    padding: 1em;
}

.container {
    max-width: 900px;
    margin: auto;
}

h1 {
    text-align: center;
}
h2 {
    font-size: 1.3em;
}
.center {
    text-align: center;   
}

a {
    color: #00796b;
    text-decoration:none;
}

/* --- Champ de recherche --- */
#search {
    width: 100%;
    padding: 0.9em 1em;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s;
}

#search:focus {
    border-color: #00796b;
    box-shadow: 0 0 8px rgba(0,121,107,0.3);
}

#searchType {
    padding: 0.5em 2em 0.5em 0.5em; /* top/right/bottom/left */
    border-radius: 6px;
    font-size: 1em;
    border: 1px solid #ccc;
    background-color: #fff;
    appearance: none; /* supprime la flèche native sur certains navigateurs */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12"><polygon points="0,0 12,0 6,6" fill="%2300796b"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.5em center;
    background-size: 12px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

#searchType:focus {
    border-color: #00796b;
    box-shadow: 0 0 8px rgba(0,121,107,0.3);
    outline: none;
}

/* --- Suggestions --- */
.suggestions {
    margin-top: 0.5em;
    border-radius: 8px;
    overflow: hidden;
}

.suggestions div {
    background: #fff;
    padding: 0.6em 1em;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.suggestions div:hover {
    background: #e0f7fa;
}

/* --- Panneau flottant définition --- */
#definition {
    position: relative;
    background: #ffffff;
    padding: 1em 1.2em;
    margin-bottom: 1em;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

/* --- Liste alphabétique --- */
.letters {
    text-align: center;
    margin: 1em 0 2em 0;
}

.letters a {
    margin: 0 5px;
    text-decoration: none;
    color: #00796b;
    font-weight: bold;
    font-size:1.1em;
}

.letters a.current {
    text-decoration: underline;
}
/* --- Liste par réf --- */
.ref-link {
    color: #00796b;
    text-decoration: none;
    font-style: italic;
    transition: color 0.2s;
}

.ref-link:hover {
    text-decoration: underline;
    color: #004d40;
}

/* --- Liste des mots --- */
ul {
    list-style: none;
    padding: 0;
    margin-top: 1em;
    columns: 4;
    column-gap: 1.5em; 
}

ul li {
    padding: 0.3em 0;
}

ul li a {
    text-decoration: none;
    color: #00796b;
    transition: all 0.2s;
}

ul li a:hover {
    text-decoration: underline;
    color: #004d40;
}

#random-word {
    display: inline-block;
    padding: 0.5em 1em;
    margin-bottom: 1em;
    font-size: 1em;
    background-color: #00796b;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#random-word:hover {
    background-color: #004d40;
}

#about {
    background: #e0f7fa;
    border-left: 6px solid #00796b;
    padding: 1em 1.2em;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
#about h3 {
    margin-bottom: 0.5em;
}
.about-box {
    position: relative;
    background: #e0f7fa;
    padding: 1.5em;
    margin: 1.5em 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-box h3 {
    margin-bottom: 0.5em;
    color: #004d40;
}

.about-box p {
    line-height: 1.5;
    color: #333;
}
.close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 1.9em;
    cursor: pointer;
    color: #004d40;
    font-weight: bold;
    line-height: 1;
}

.close-btn:hover {
    color: #d32f2f;
}


footer {
    margin-top: 3em;
    padding: 1.5em;
    text-align: center;
    font-size: 0.9em;
    color: #555;
    background-color: #f1f1f1;
    border-top: 1px solid #ddd;
}
footer p {
    margin: 0;
    line-height: 1.4;
}


/* --- Responsive --- */
@media(max-width:600px){
    #search { font-size: 0.95em; padding:0.7em; }
    #definition { font-size: 0.95em; padding:0.8em 1em; }
}
@media(max-width:900px){
    ul { columns: 3; }
}
@media(max-width:600px){
    ul { columns: 2; }
}

