
/* Styles Globaux */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #ffffff;
    color: #202124;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* --- ÉTAT INITIAL --- */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    padding: 20px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo {
    font-size: 4.2rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -3px;
    transition: all 0.4s ease;
}
.logo span { color: #F8005B; }
.logo a { color: #000; text-decoration: none; }

.baseline {
    max-width: 640px;
    font-size: 1.2rem;
    line-height: 1.6rem;
    font-weight: bold;
    color: #202124;
    text-align: center;
    transition: all 0.4s ease;
}
.sub-baseline {
    max-width: 600px;
    font-size: 0.9rem;
    line-height: 1.4rem;
    color: #747474;
    margin-bottom: 20px;
    text-align: center;
    transition: all 0.4s ease;
}

.footer {
    max-width: 640px;
    font-size: 0.8rem;
    line-height: 1.1rem;
    color: #B0B0B0;
    margin-top: 50px;
    text-align: center;
    transition: all 0.4s ease;
}

.search-box {
    width: 100%;
    box-shadow: 0 40px 60px rgba(32,33,36,0.14);
    //max-width: 584px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: all 0.4s ease;
    border: 1px solid #dfe1e5;
    border-radius: 32px;
    padding: 40px;
}

.input-container {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

input[type="text"] {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    outline: none;
    transition: box-shadow 0.2s;
}

input[type="text"]:hover, input[type="text"]:focus {
    box-shadow: 0 1px 6px rgba(32,33,36,0.28);
    border-color: rgba(223,225,229,0);
}

button {
    background-color: #000;
    border: 1px solid #000;
    border-radius: 24px;
    color: #FFF;
    font-size: 1rem;
    line-height: 1.2rem;
    padding: 12px 32px;
    cursor: pointer;
    transition: border 0.1s, box-shadow 0.1s;
}

button:hover {
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    background-color: #F8005B;
    border: 1px solid #F8005B;
    color: #FFF;
    transition: all 0.2s ease;
}

#search-all-btn {
    padding: 16px 12px;
    width: 100%;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.2rem;
    background-color: #FFF;
    border: 0px solid #FFF;
    color: #F8005B;
    box-shadow: 0 0px 20px rgba(32,33,36,0.14);
}

#search-all-btn:hover {
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    background-color: #F8005B;
    border: 0px solid #F8005B;
    color: #FFF;
    transition: all 0.2s ease;
}

#show-all-link {
    color: #000;
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 1.3rem;
    font-weight: bold;
    align-self: center;
    margin-left: 10px;
    cursor: pointer;
    display: none;
}

#show-all-link:hover {
    text-decoration: none;
    color: #F8005B;
}

/* --- AUTOCOMPLETE --- */

/* Positionnement du conteneur */
.search-container {
    position: relative;
    width: 100%;
    max-width: 600px; /* À ajuster selon la taille de ta barre */
    margin: 0 auto;
}

/* Style de la boîte de suggestions */
#suggestions-box {
    position: absolute;
    top: 100%; /* Se place pile sous l'input */
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px; /* Arrondi uniquement en bas */
    box-shadow: 0 10px 20px rgba(32, 33, 36, 0.14);
    z-index: 1000; /* Passe au-dessus du reste du contenu */
    max-height: 280px;
    overflow-y: auto; /* Ajoute une roulette si trop de suggestions */
}

/* Classe pour masquer la boîte quand elle est vide */
.suggestions-hidden {
    display: none;
}

/* Style de chaque ligne de suggestion */
.suggestion-item {
    padding: 10px 15px;
    font-size: 15px;
    color: #202124;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Effet de survol sur une suggestion */
.suggestion-item:hover {
    background-color: #f1f3f4;
}

/* Petite mention grise à droite pour indiquer la catégorie (optionnel mais sympa) */
.suggestion-cat {
    font-size: 10px;
    color: #70757a;
    text-align: right;
    text-transform: uppercase;
}

/* --- AUTOCOMPLETE --- */

/* Ajustement cosmétique une fois la recherche active */
body.searched #show-all-link {
font-size: 16px;
margin-left: 0px;
text-align:center;
}

/* --- ZONE DE RÉSULTATS (Masquée au départ) --- */
.results-section {
width: 100%;
max-width: 652px;
margin-top: 30px;
display: none;
opacity: 0;
transition: opacity 0.4s ease;
}

.result-card {
background: #ffffff;
border: 1px solid #dadce0;
border-radius: 12px;
padding: 24px;
margin-bottom: 16px;
//box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.result-card.alert-bollore {
border-left: 8px solid #F8005B;
}

.result-card.clean-brand {
border-left: 8px solid #6A24FF;
background-color: #f8f9fa;
}

.result-badge {
display: inline-block;
//padding: 4px 8px;
font-size: 24px;
font-weight: bold;
//border-radius: 4px;
margin-bottom: 20px;
}
//.badge-danger { background-color: #F8005B; color: #FFF; }
.badge-success { color: #6A24FF; }

.result-title {
font-size: 24px;
font-weight: bold;
color: #000000;
letter-spacing: -0.5px;
margin-bottom: 10px;
}

.result-parent {
font-size: 14px;
color: #000;
margin-bottom: 12px;
}
.result-parent strong { color: #F8005B; }

.result-desc {
font-size: 15px;
line-height: 1.5;
color: #4d5156;
}

/* --- ÉTAT RECHERCHE ACTIVE (Transition) --- */
body.searched {
justify-content: flex-start;
}

body.searched .container {
justify-content: flex-start;
align-items: flex-start;
margin-top: 20px;
max-width: 1000px;
padding-left: 80px;
}

body.searched .logo {
font-size: 2.8rem;
margin-bottom: 20px;
text-align: left;
}

body.searched .footer {
    margin-top: 20px;
    text-align: left;
}

body.searched .search-box {
flex-direction: row;
max-width: 652px;
gap: 10px;
padding: 24px;
box-shadow: 0 10px 20px rgba(32,33,36,0.14);
}

body.searched .search-box button {
padding: 13px 20px;
border-radius: 24px;
}

body.searched #show-all-link {
    display: block;
}

body.searched #search-all-btn {
    display: none;
}

body.searched .results-section {
display: block;
opacity: 1;
}

body.searched .baseline { display: none; }
body.searched .sub-baseline { display: none; }


/* Adaptabilité Mobile */
@media (max-width: 768px) {
.input-container { flex-direction: column; }
.search-box { padding: 30px; }
.logo { font-size: 3.2rem; }
#search-all-btn { font-size: 1.1rem; line-height: 1.2rem; }
body.searched .container { padding-left: 20px; }
body.searched .search-box { flex-direction: column; }
body.searched .search-box button { width: 100%; }
}
}
