/* Search Section - Bottom Floating Style */
.search-floating.bottom-search {
    position: absolute;
    bottom: 50px; /* Thumb zone - Ergonomie mobile */
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    width: 90%;
    max-width: 500px;
}

.search-box {
    background: var(--bg-light);
    padding: 0; /* On gère les paddings sur les enfants pour le bouton "full-height" */
    border-radius: 100px;
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    transition: var(--transition-premium);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    width: 100%;
}

.search-icon {
    color: var(--text-light);
    margin-left: 20px;
    opacity: 0.6;
    flex-shrink: 0;
}

.search-box:focus-within {
    border-color: var(--primary-solid);
    box-shadow: 0 15px 45px rgba(0, 102, 255, 0.15);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 1.2rem 1rem;
    font-size: 1.1rem;
    outline: none;
    font-family: var(--font-body);
    min-width: 0;
}

.geolocate-btn {
    background: transparent;
    border: none;
    color: var(--primary-solid);
    cursor: pointer;
    padding: 0 20px;
    align-self: stretch; /* Prend toute la hauteur disponible du .search-box */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-premium);
    flex-shrink: 0;
    border-left: 1px solid rgba(0,0,0,0.05); /* Séparateur visuel */
}

.geolocate-btn:hover {
    background: rgba(0, 102, 255, 0.05);
}

.geolocate-btn.loading {
    animation: pulse 1.5s infinite;
    opacity: 0.6;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.search-results {
    position: absolute;
    bottom: calc(100% + 10px); /* Apparait AU-DESSUS de la barre */
    top: auto; 
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    z-index: 950;
    overflow: hidden;
    display: none;
    box-shadow: 0 -15px 45px rgba(0,0,0,0.1);
}

.search-results.active {
    display: block;
    animation: slideUpFade 0.3s ease;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.suggestion-item {
    padding: 1rem 2rem;
    cursor: pointer;
    transition: var(--transition-premium);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
}

.suggestion-item:hover {
    background: rgba(0, 102, 255, 0.05);
    padding-left: 2.5rem;
    color: var(--primary-solid);
}

/* Hamburger Menu Drawer */
.main-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    background: var(--bg-light);
    z-index: 3000;
    transition: var(--transition-premium);
    box-shadow: 20px 0 60px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.main-menu.active {
    left: 0;
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 1.5rem;
    font-size: 2.5rem;
    line-height: 1;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    z-index: 10;
}

.logo-menu {
    padding: 3rem 2rem 2rem;
    display: flex;
    align-items: center;
    font-family: var(--font-header);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-logo);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.menu-items {
    padding: 2rem;
    list-style: none;
    flex: 1;
}

.menu-items li {
    margin-bottom: 1.8rem;
}

.menu-items a {
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition-premium);
    font-family: var(--font-header);
}

.menu-items a:hover {
    color: var(--primary-solid);
    padding-left: 10px;
}

.menu-footer {
    padding: 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Global Logo */
.logo {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-logo);
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Hamburger Button */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 3005; /* Au-dessus du menu */
    transition: var(--transition-premium);
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-solid);
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    border-radius: 3px;
    transform-origin: center;
}

/* État Actif (Croix) */
.hamburger-btn.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.is-active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger-btn.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- YUKA-STYLE UI --- */
.yuka-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.product-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
}

.product-info {
    flex: 1;
}

.product-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    color: var(--text-main);
}

.product-score-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
}

.score-dot {
    width: 14px;
    height: 14px;
    min-width: 14px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.score-dot.status-excellent { background: var(--status-excellent); box-shadow: 0 0 10px rgba(5, 150, 105, 0.4); }
.score-dot.status-good { background: var(--status-good); box-shadow: 0 0 10px rgba(16, 185, 129, 0.4); }
.score-dot.status-warning { background: var(--status-warning); box-shadow: 0 0 10px rgba(251, 191, 36, 0.4); }
.score-dot.status-critical { background: var(--status-critical); box-shadow: 0 0 10px rgba(248, 113, 113, 0.4); }

.report-section {
    margin-bottom: 3.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 0.5rem;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
}

.section-header .count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    background: var(--surface-sunken);
    padding: 2px 8px;
    border-radius: 10px;
}

.yuka-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition-premium);
}

.yuka-row:hover {
    background: rgba(0,0,0,0.01);
}

.yuka-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.yuka-content {
    flex: 1;
}

.yuka-name {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.yuka-subtitle {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 2px;
}

.yuka-value-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-align: right;
}

.yuka-val {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.yuka-dot-small {
    width: 12px;
    height: 12px;
    min-width: 12px;
    border-radius: 50%;
    margin-left: 0.8rem;
    flex-shrink: 0;
}

.yuka-dot-small.status-excellent { background: var(--status-excellent); }
.yuka-dot-small.status-good { background: var(--status-good); }
.yuka-dot-small.status-warning { background: var(--status-warning); }
.yuka-dot-small.status-critical { background: var(--status-critical); }

/* Range Details Spectrum */
.yuka-row { cursor: pointer; transition: background 0.2s; }
.yuka-row:hover { background: rgba(0,0,0,0.01); }

.yuka-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
    border-radius: 0 0 12px 12px;
}

.yuka-details.active {
    max-height: 150px;
    padding-bottom: 1.5rem;
}

.yuka-range-container {
    padding: 1.5rem 1rem 0.5rem 1rem;
    position: relative;
    max-width: 320px;
    margin: 0 auto;
}

.yuka-range-bar {
    height: 6px;
    width: 100%;
    border-radius: 10px;
    position: relative;
}

.yuka-range-bar.linear {
    background: linear-gradient(to right, 
        var(--status-excellent) 0%, var(--status-excellent) 25%, 
        var(--status-good) 25%, var(--status-good) 50%, 
        var(--status-warning) 50%, var(--status-warning) 75%, 
        var(--status-critical) 75%, var(--status-critical) 100%
    );
}

.yuka-range-bar.centered {
    background: linear-gradient(to right, 
        var(--status-critical) 0%, var(--status-critical) 11%,
        var(--status-warning) 11%, var(--status-warning) 22%, 
        var(--status-good) 22%, var(--status-good) 33%, 
        var(--status-excellent) 33%, var(--status-excellent) 67%, 
        var(--status-good) 67%, var(--status-good) 78%, 
        var(--status-warning) 78%, var(--status-warning) 89%,
        var(--status-critical) 89%, var(--status-critical) 100%
    );
}

.yuka-marker {
    position: absolute;
    top: -12px;
    left: var(--marker-pos, 50%);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--marker-color, var(--text-main));
    transition: left 0.6s ease-out;
}

.yuka-range-labels {
    position: relative;
    height: 1.2rem;
    margin-top: 0.8rem;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
}

.yuka-range-labels span {
    position: absolute;
    top: 0;
    white-space: nowrap;
}

.yuka-toggle-arrow {
    transition: transform 0.3s;
    opacity: 0.4;
    margin-left: 10px;
}

.yuka-details.active + .yuka-row .yuka-toggle-arrow,
.yuka-row.active .yuka-toggle-arrow {
    transform: rotate(180deg);
}

.share-btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: #FFFFFF;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-premium);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.share-btn:hover {
    border-color: var(--primary-solid);
    color: var(--primary-solid);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
}

.report-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.7rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Side Panel (Vignette) */
.side-panel {
    position: absolute;
    top: 20px;
    right: -450px;
    width: 400px;
    height: calc(100% - 40px);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    z-index: 1500;
    transition: var(--transition-premium);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.08);
    overflow: visible; /* Autorise le débordement de la croix */
}

#panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 2.5rem;
    border-radius: inherit;
    /* Scrollbar premium */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) transparent;
}

#panel-content::-webkit-scrollbar {
    width: 6px;
}

#panel-content::-webkit-scrollbar-thumb {
    background-color: var(--primary-light);
    border-radius: 10px;
}

.side-panel.active {
    right: 20px;
}

.close-panel {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-main);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 10; /* Toujours au-dessus */
    transition: var(--transition-premium);
    line-height: 1;
}

.close-panel:hover {
    transform: scale(1.1) rotate(90deg);
    background: var(--primary-solid);
    color: white;
    border-color: var(--primary-solid);
}
/* --- PAGE CONTENT COMPONENTS (Legal, Contact, etc.) --- */
.content-wrapper {
    padding: 120px 20px 60px;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-main);
}

.content-wrapper h1 { 
    font-size: 2.5rem; 
    margin-bottom: 2rem; 
    color: var(--primary-solid); 
}

.content-wrapper h2 { 
    font-size: 1.5rem; 
    margin-top: 3rem; 
    margin-bottom: 1rem; 
}

.content-wrapper section { 
    margin-bottom: 3rem; 
    background: white; 
    padding: 2rem; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.02); 
    border: 1px solid rgba(0,0,0,0.03); 
}

.content-wrapper p {
    line-height: 1.8;
}

/* Contact Form */
.form-card { 
    background: white; 
    padding: 3rem; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.02); 
    border: 1px solid rgba(0,0,0,0.03); 
}

.form-group { margin-bottom: 1.5rem; }

.form-group label { 
    display: block; 
    margin-bottom: 0.5rem; 
    font-weight: 600; 
    color: var(--text-light); 
    font-size: 0.9rem; 
}

.form-group input, 
.form-group textarea { 
    width: 100%; 
    padding: 12px 20px; 
    border-radius: 12px; 
    border: 1px solid #e2e8f0; 
    background: #f8fafc; 
    font-family: inherit; 
    font-size: 1rem; 
    outline: none; 
    transition: border-color 0.2s; 
}

.form-group input:focus, 
.form-group textarea:focus { 
    border-color: var(--primary-solid); 
}

.submit-btn { 
    width: 100%; 
    background: var(--primary-gradient); 
    color: white; 
    border: none; 
    padding: 15px; 
    border-radius: 12px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: transform 0.2s; 
    font-size: 1.1rem; 
}

.submit-btn:hover { 
    transform: translateY(-2px); 
}

/* Utility Classes */
.logo-icon { margin-right: 8px; }
.logo-menu-icon { margin-right: 12px; }

.full-height-body {
    overflow: hidden;
}

.empty-state-panel {
    text-align: center; 
    margin-top: 50%; 
    color: var(--text-light);
}

.text-subtle {
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* --- LOADING SKELETONS --- */
.skeleton {
    background: #eee;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: 5px;
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
    to { background-position-x: -200%; }
}

.skeleton-text { height: 1.2rem; margin-bottom: 0.8rem; width: 100%; }
.skeleton-title { height: 2rem; margin-bottom: 1rem; width: 60%; }
.skeleton-circle { width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0; }
.skeleton-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.skeleton-line { height: 1rem; width: 80%; border-radius: 10px; }
.skeleton-line-sm { height: 0.8rem; width: 40%; border-radius: 10px; }
