body {
    font-family: "alda", serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.4;

    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0; /* Modifié à 0 pour que la barre de recherche touche les bords */
    padding: 20px; /* Ajouté pour compenser la marge retirée */

    background-color: rgb(182, 198, 208);
}

.container{
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px; /* Ajouté pour espacer le titre de la barre de recherche */
}

h1{
    font-family: "adobe-caslon-pro", serif;
    font-weight: 600;
    font-style: italic;
    font-size: clamp(1.75rem, 1.655vw + 1.362rem, 2.5rem);
    margin-bottom: 80px;
}

.phrase {
    font-size: clamp(1.25rem, 1.103vw + 0.991rem, 1.75rem);
    margin: 20px 0 57px 28px;
}

.numero{
    font-weight: 700;
    color: rgb(7, 44, 107);
    font-size: clamp(0.875rem, 0.828vw + 0.681rem, 1.25rem);
}

/* ==========================================
   NOUVEAU : STYLES POUR LA RECHERCHE
   ========================================== */

/* Barre de recherche collée en haut */
.search-bar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgb(182, 198, 208); /* Même couleur que le fond */
    padding: 15px 0;
    text-align: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(7, 44, 107, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Champ de saisie */
.search-bar input {
    font-family: "alda", serif;
    padding: 8px 15px;
    font-size: 1rem;
    width: 250px;
    border: 1px solid rgba(7, 44, 107, 0.5);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.8);
    color: rgb(7, 44, 107);
}

/* Bouton */
.search-bar button {
    font-family: "alda", serif;
    padding: 9px 15px;
    font-size: 1rem;
    cursor: pointer;
    background-color: rgb(7, 44, 107);
    color: white;
    border: none;
    border-radius: 4px;
    margin-left: 10px;
    transition: background-color 0.2s ease;
}

.search-bar button:hover {
    background-color: rgb(7, 44, 107);
}

/* Conteneur d'une phrase (pour l'animation de surlignage) */
.phrase-container {
    transition: background-color 0.6s ease;
    padding: 5px 20px;
    border-radius: 8px;
}

/* Surlignage quand on scrolle vers une phrase */
.highlight {
    background-color: rgba(255, 255, 255, 0.5); 
}