/**
 * Fichier: style.css
 * 
 * Description:
 * Feuille de style principale pour le site UNE ŒUVRE · UN PRIX.
 * Définit l'ensemble du style visuel et des animations pour toutes les pages.
 * 
 * Fonctionnalités:
 * - Définition du style global et des éléments de navigation
 * - Mise en page responsive pour différentes tailles d'écran
 * - Styles des formulaires et des boutons d'action
 * - Animations et effets de transition (hover, zoom, rebond)
 * - Mise en forme des dialogues modaux
 * - Styles spécifiques pour le jeu d'estimation de prix
 * - Thèmes clair et sombre (contrôlés par JavaScript)
 * 
 * Structure:
 * - Styles de base et réinitialisations
 * - Typographie et éléments communs
 * - En-tête et navigation
 * - Dialogues et formulaires
 * - Composants spécifiques aux pages
 * - Animations et effets visuels
 * - Styles responsives
 * 
 * Utilisé par:
 * - Toutes les pages HTML du site
 */

 
/* Réinitialisation et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Arial", sans-serif;
    line-height: 1.6;
    color: #000;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Typographie */
h1 {
    text-align: center;
    font-size: 2.5rem;
    margin: 1.5rem 0;
    color: #000;
    padding: 1rem;
    background-color: #ffd700;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

h1:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

h2 {
    font-size: 1.8rem;
    margin: 1rem 0;
    color: #000;
}

/* Sections */
section {
    margin: 3rem 0;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Effet de survol pour les sections */
section:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Paragraphes */
p {
    margin: 1rem 0;
    font-size: 1.1rem;
    color: #000;
}

/* Liens */
a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffd700;
}

/* Bouton d'appel à l'action */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 1rem 0;
    background-color: #FFD700;
    color: #000;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #ffed4a;
    transform: translateY(-2px);
    color: #000;
}

.white-cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 1rem 0;
    background-color: white;
    color: #000;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.white-cta-button:hover {
    background-color: grey;
    transform: translateY(-2px);
    color: #000;
}

/* Design responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    section {
        padding: 1rem;
    }
}

/* Header et styles de connexion */
.site-header {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.5rem 0;
    min-height: 60px;
}

.sign-in-button {
    margin-right: 0;
    background-color: #000;
    border: none;
    border-radius: 8px;
    width: auto;
    height: auto;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.sign-in-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.sign-in-button svg {
    color: white;
    width: 20px;
    height: 20px;
}

.user-pill {
    position: absolute;
    left: 0;
    background-color: #000;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.user-pill:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.user-pill svg {
    width: 16px;
    height: 16px;
    color: white;
    position: relative;
    top: 3px;
}

/* Styles de dialogue */
.name-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.name-input {
    padding: 0.5rem;
    margin: 1rem 0;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.dialog-button {
    background-color: #000;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 0.5rem;
}

.dialog-button:hover {
    background-color: #333;
}

/* Styles de navigation */
.nav-pills {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1;
}

.nav-pill {
    background-color: #000;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.nav-pill:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    color: white;
}

.nav-separator {
    color: #000;
    font-size: 1.2rem;
    user-select: none;
}

/* Responsive pour l'en-tête */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .nav-pills {
        position: static;
        transform: none;
        flex-wrap: wrap;
        justify-content: center;
        order: 2;
    }

    #user-display {
        order: 1;
    }

    .sign-in-button {
        order: 1;
    }
}

/* Styles de lien du titre */
h1 a {
    color: #000;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    transition: transform 0.2s ease;
}

h1 a:hover {
    color: #000;
    transform: scale(1.1);
}

.home-button {
    background-color: #000;
    border: none;
    border-radius: 8px;
    width: auto;
    height: auto;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    margin-right: 0.5rem;
}

.home-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.home-button svg {
    color: white;
    width: 20px;
    height: 20px;
}

/* Styles d'image de bas de page */
.bottom-image-container {
    display: block;
    width: 1200px;
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.bottom-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.bottom-image-container:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.zoomed-image {
    transform: scale(1.1);
}

.footer-text {
    text-align: center;
    color: #888;
    font-size: 0.8rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.color-change-button {
    background-color: #000;
    border: none;
    border-radius: 8px;
    width: auto;
    height: auto;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    margin-right: 0.5rem;
}

.color-change-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.color-change-button svg {
    color: white;
    width: 20px;
    height: 20px;
}

/* Styles de formulaire de contact */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: bold;
    color: inherit;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    color: black;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
    font-family: "Arial", sans-serif;
    font-size: 1rem;
}

.submit-button {
    background-color: #000;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Formulaire responsive */
@media (max-width: 768px) {
    .contact-form {
        gap: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
    }
    
    .submit-button {
        width: 100%;
    }
}

/* Styles d'affichage d'œuvre */
.artwork-info {
    background-color: #000;
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem auto;
    max-width: 100%;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

#artwork-details, #price-reveal {
    font-family: "Arial", sans-serif;
    line-height: 1.4;
}

#actual-price {
    color: #ffd700;
}

#guess-price {
    color: #ffd700;
}

.artwork-display {
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
}

.artwork-display img {
    height: 450px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
    justify-content: center;
}

/* Styles de dialogue de devinette */
.guess-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.price-input {
    padding: 0.5rem;
    margin: 1rem 0;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

#guess-button {
    display: block;
    margin: 2rem auto;
    cursor: pointer;
}

/* Styles d'indicateur de défilement */
.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #000;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
    animation: bounce 2s infinite;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
}

.price-difference {
    display: block;
    margin-top: 0.8rem;
    font-size: 1.5rem;
    color: white;
}

.price-difference .difference-value {
    color: #ff4444;
}

.learn-resources {
    text-align: center;
    background-color: black;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.learn-resources:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

section.learn-resources {
    background-color: #000;
    margin: 2rem auto;
    max-width: 100%;
}

.resource-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 96%;
    margin: 0 auto;
}

.resource-buttons .cta-button {
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .resource-buttons {
        padding: 0 1rem;
    }
}

/* Contrôle de hauteur */
.height-control {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background-color: #000;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.height-control input[type="range"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    background: #666;
    border-radius: 2px;
    cursor: pointer;
    margin: 0;
}

.height-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.height-control input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}