/* --- Base --- */
#smv-app-container {
    font-family: 'Open Sans', sans-serif;
    width: 100%;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    color: #333;
    z-index: 10; 
    position: relative;
    box-sizing: border-box;
}

.smv-header { text-align: center; margin-bottom: 30px; }
.smv-header h2 { color: #E6205C; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }

.smv-progress { display: flex; justify-content: space-between; max-width: 300px; margin: 20px auto; position: relative; }
.smv-progress::before { content:''; position: absolute; top: 50%; left:0; right:0; height:2px; background:#eee; z-index:0; }
.smv-step-dot { width: 35px; height: 35px; background: #fff; border: 2px solid #ddd; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 1; font-weight: bold; color: #aaa; transition: all 0.3s; }
.smv-step-dot.active { border-color: #E6205C; background: #E6205C; color: #fff; transform: scale(1.1); }

/* --- FORMULAIRE --- */
.smv-section-title {
    font-size: 1.2em; font-weight: bold; color: #E6205C; 
    border-bottom: 2px solid #FDEBF2; padding-bottom: 5px; margin-bottom: 15px;
}

.smv-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.smv-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }

.smv-form-group { margin-bottom: 15px; }
.smv-form-group label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 0.9em; }
.smv-form-group small { font-weight: normal; color: #666; }
.smv-input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; box-sizing: border-box; font-size: 14px; }

/* Activities Grid */
.smv-activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    background: #fafafa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}
.smv-checkbox-item {
    display: flex; align-items: center; gap: 8px; font-size: 0.9em; cursor: pointer;
}
.smv-checkbox-item input {
    width: 16px; height: 16px; accent-color: #E6205C; cursor: pointer;
}

/* MAP & SCROLL */
.smv-map-wrapper { 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    padding: 20px 0; 
    background: #fdfdfd; 
    border-radius: 8px; 
    border: 1px solid #eee;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.03);
}

.smv-scroll-hint { display: none; text-align: center; color: #888; margin-bottom: 5px; font-style: italic; }
@media (max-width: 1100px) { .smv-scroll-hint { display: block; } }

.smv-map-grid {
    display: grid;
    grid-template-columns: repeat(140, 10px);
    grid-template-rows: repeat(100, 10px); 
    gap: 0; 
    min-width: 1400px; 
    margin: 0 auto;
}

/* BOOTH STYLES */
.smv-booth {
    background: #FDEBF2; border: 1px solid #E6205C;
    color: #333; font-size: 10px; font-weight: bold;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; user-select: none; transition: 0.1s;
    position: relative;
    z-index: 10; 
}
.smv-booth:hover { transform: scale(1.05); z-index: 100; box-shadow: 0 5px 15px rgba(230,32,92,0.3); }

.smv-booth.booked { background: #eee; border-color: #ccc; color: #aaa; pointer-events: none; }
.smv-booth.partial-booked {
    background: linear-gradient(90deg, #ccc 50%, #FDEBF2 50%);
    border-color: #999;
}
.smv-booth.selected, .smv-booth.preview { background: #E6205C; color: #fff; }
.smv-booth.half-select, .smv-booth.preview-half {
    background: linear-gradient(90deg, #ccc 50%, #E6205C 50%);
    color: #fff; text-shadow: 1px 1px 0 #000;
}

/* Special Items */
.smv-bar { background: #E6E6E6; border-color: #999; color: #555; pointer-events: none; z-index: 1; }
.smv-podium { background: #E6205C; color: #fff; pointer-events: none; z-index: 1; }
.smv-access { background: #FFFF00; border-color: #000; font-size: 9px; pointer-events: none; opacity: 0.8; z-index: 1; }

.smv-size-selector { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.smv-size-btn { padding: 10px 20px; border: 2px solid #eee; border-radius: 30px; cursor: pointer; text-align: center; min-width: 80px; transition: 0.2s; }
.smv-size-btn:hover, .smv-size-btn.active { border-color: #E6205C; color: #E6205C; background: #FFF0F5; }
.smv-size-btn.active { background: #E6205C; color: #fff; }

.smv-options-list { margin: 20px 0; width: 100%; }
.smv-opt-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid #f0f0f0; flex-wrap: wrap; gap: 10px; }
.smv-total-bar { text-align: right; font-size: 1.5em; font-weight: bold; color: #333; margin: 20px 0; padding: 20px; background: #fafafa; border-radius: 8px; }

.smv-actions { display: flex; justify-content: space-between; margin-top: 30px; flex-wrap: wrap; gap: 10px; }
.smv-btn { background: #E6205C; color: #fff; padding: 12px 30px; border: none; border-radius: 30px; font-weight: bold; cursor: pointer; transition: 0.2s; text-decoration: none; display: inline-block;}
.smv-btn:hover { background: #c2184e; transform: translateY(-2px); }
.smv-btn.secondary { background: #888; }
.smv-btn:disabled { background: #ddd; cursor: not-allowed; transform: none; }
.smv-tooltip { text-align: center; color: #E6205C; font-weight: bold; height: 20px; margin-top: 10px; }
.smv-success { text-align: center; padding: 50px; }

/* --- CONTRAT & SIGNATURE --- */
.smv-contract-box {
    height: 350px; 
    overflow-y: scroll;
    border: 1px solid #ccc;
    padding: 25px;
    background: #fff;
    margin-bottom: 20px;
    font-size: 0.85em;
    line-height: 1.5;
    color: #333;
    border-radius: 4px;
    text-align: justify;
}
.smv-contract-box h3 { color: #E6205C; text-align: center; text-transform: uppercase; margin-bottom: 5px; }
.smv-contract-box h4 { color: #333; margin-top: 20px; margin-bottom: 8px; font-weight: 800; border-bottom: 1px solid #eee; padding-bottom: 4px; display: inline-block;}
.smv-contract-box p { margin-bottom: 12px; }

.smv-signatures-area {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: space-between;
    flex-wrap: wrap;
}
.smv-sig-block {
    flex: 1;
    min-width: 280px;
    border: 1px solid #ddd;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}
.smv-sig-block h5 { margin: 0 0 10px 0; color: #333; text-transform: uppercase; font-size: 0.8em; }

.smv-canvas-wrapper {
    background: #fff;
    border: 2px dashed #ccc;
    border-radius: 4px;
    cursor: crosshair;
    position: relative;
}
canvas { display: block; width: 100%; }

.smv-clear-sig {
    margin-top: 5px;
    background: transparent;
    border: 1px solid #ccc;
    padding: 4px 10px;
    font-size: 0.8em;
    cursor: pointer;
    align-self: flex-start;
    border-radius: 4px;
}
.smv-clear-sig:hover { background: #eee; }
/* =============================================
   MOQUETTE — Boutons de taille
   ============================================= */
.smv-opt-moquette { flex-direction: column; align-items: flex-start; gap: 10px; }
.smv-opt-label { font-size: 0.95em; }
.smv-moquette-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.smv-moquette-btn {
    padding: 8px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85em;
    text-align: center;
    background: #fff;
    transition: all 0.18s ease;
    line-height: 1.3;
    min-width: 58px;
}
.smv-moquette-btn:hover { border-color: #E6205C; color: #E6205C; }
.smv-moquette-btn.active {
    border-color: #E6205C;
    background: #E6205C;
    color: #fff;
    font-weight: bold;
}
.smv-moquette-btn small { display: block; font-size: 0.85em; opacity: 0.85; }

/* =============================================
   FLYERS — Checkbox option
   ============================================= */
.smv-opt-checkbox { padding: 12px 15px; }
.smv-opt-checkbox:hover { background: #fff8f9; }

/* =============================================
   ACTIVITES — Badges complet / compteur
   ============================================= */
.smv-activity-full {
    opacity: 0.5;
    cursor: not-allowed;
}
.smv-activity-full input { cursor: not-allowed; }
.smv-activity-full span { text-decoration: line-through; color: #999; }
.smv-full-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 0.7em;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}
.smv-count-badge {
    display: inline-block;
    background: #f39c12;
    color: #fff;
    font-size: 0.7em;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

/* =============================================
   PARTENAIRES — Grands cercles + hover rose coeur
   ============================================= */

/* Container grille */
#smv-partenaires-grid {
    display: grid;
    gap: 35px;
    align-items: center;
    justify-items: center;
    padding: 30px 10px;
}

.smv-partenaire-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Le cercle lui-même */
.smv-logo-circle {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 28px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.smv-logo-circle:hover {
    box-shadow: 0 14px 45px rgba(230,32,92,0.35);
    transform: scale(1.04);
}

/* Image du logo */
.smv-logo-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 82%;
    height: 82%;
    object-fit: contain;
    transition: opacity 0.35s ease;
    display: block;
}

.smv-logo-circle:hover .smv-logo-img {
    opacity: 0;
}

/* Overlay rose au hover */
.smv-logo-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #E6205C;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.smv-logo-circle:hover .smv-logo-overlay {
    opacity: 1;
}

/* Coeur SVG dans l'overlay */
.smv-logo-overlay svg {
    width: 70px;
    height: 65px;
    fill: white;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.25));
    transform: scale(0.7);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.smv-logo-circle:hover .smv-logo-overlay svg {
    transform: scale(1);
}

/* Responsive */
@media (max-width: 1024px) {
    .smv-logo-circle {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    #smv-partenaires-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
    .smv-logo-circle {
        width: 155px;
        height: 155px;
    }
    .smv-logo-overlay svg {
        width: 50px;
        height: 46px;
    }
}

@media (max-width: 480px) {
    #smv-partenaires-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    .smv-logo-circle {
        width: 130px;
        height: 130px;
    }
}
