* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0d0d0d;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 500px;
    position: relative;
}

.section {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 400px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
    overflow-y: auto;
    max-height: 90vh;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.section.hidden {
    display: none;
}

.content {
    width: 100%;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1, h2 {
    color: #f5f5f5;
    margin-bottom: 20px;
    font-size: 2em;
    font-weight: 600;
}

h1 {
    font-size: 2.5em;
}

p {
    color: #e0e0e0;
    font-size: 1.1em;
    line-height: 1.6;
    margin: 15px 0;
    font-weight: 400;
}

.remords-list p {
    padding: 12px 15px;
    background: rgba(255, 182, 193, 0.15);
    border: 1px solid rgba(255, 182, 193, 0.3);
    border-radius: 10px;
    margin: 12px 0;
    animation: slideIn 0.5s ease;
    text-align: left;
    color: #e0e0e0;
}

.remords-list p.highlight {
    background: rgba(255, 182, 193, 0.25);
    border: 1px solid rgba(255, 182, 193, 0.4);
    font-weight: bold;
    text-align: center;
    color: #f5f5f5;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    border: 1px solid rgba(255, 182, 193, 0.3);
}

.message-box p {
    color: #e0e0e0;
}

.highlight {
    color: #ff6b9d;
    font-weight: bold;
    font-size: 1.2em;
}

.question-box p {
    color: #e0e0e0;
}

/* Avertissement à la fin des slides */
.warning-box {
    margin-top: 30px;
    padding: 15px 20px;
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
    border-radius: 10px;
    text-align: center;
}

.warning-text {
    color: #ffd54f;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

.big-text {
    font-size: 1.5em;
    margin: 15px 0;
}

.question-box {
    margin: 30px 0;
    padding: 20px;
}

.btn-next, .btn-choice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    font-weight: bold;
    width: 100%;
    max-width: 300px;
}

.btn-next:hover, .btn-choice:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-next:active, .btn-choice:active {
    transform: translateY(0);
}

.btn-choice.btn-yes {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    font-size: 1.2em;
    padding: 18px 30px;
}

.btn-choice.btn-reflect {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    font-size: 1.1em;
    padding: 16px 30px;
}

.btn-choice.btn-talk {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    font-size: 1.1em;
    padding: 16px 30px;
}

.btn-choice.btn-no {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    font-size: 1.1em;
    padding: 16px 30px;
    position: relative;
    transition: all 0.1s ease;
}

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

.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    align-items: center;
    position: relative;
    min-height: 300px;
    width: 100%;
    padding: 20px 0;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

.delay-5 {
    animation-delay: 1s;
}

.delay-6 {
    animation-delay: 1.2s;
}

.delay-7 {
    animation-delay: 1.4s;
}

.delay-8 {
    animation-delay: 1.6s;
}

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

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0d0d0d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
    color: #f5f5f5;
}

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

.loader .heart {
    font-size: 4em;
    animation: pulse 1.5s ease infinite;
}

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

.celebration {
    padding: 20px;
}

.celebration h1 {
    font-size: 5em;
    margin: 20px 0;
}

.bounce {
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Animations pour le bouton "Non" qui bouge */
.btn-no.moving {
    animation: shake 0.5s ease infinite;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(-20px) rotate(-5deg);
    }
    75% {
        transform: translateX(20px) rotate(5deg);
    }
}

/* Optimisations pour mobile */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .section {
        padding: 30px 20px;
        min-height: auto;
        max-height: 95vh;
        border-radius: 15px;
    }
    
    h1 {
        font-size: 2em;
        color: #f5f5f5;
    }
    
    h2 {
        font-size: 1.5em;
        color: #f5f5f5;
    }
    
    p {
        font-size: 1em;
        color: #e0e0e0;
        line-height: 1.7;
    }
    
    .message-box {
        padding: 20px 15px;
    }
    
    .message-box p {
        color: #e0e0e0;
        font-size: 0.95em;
    }
    
    .remords-list p {
        color: #e0e0e0;
        font-size: 0.95em;
        padding: 10px 12px;
    }
    
    .big-text {
        font-size: 1.2em;
        color: #f5f5f5;
    }
    
    .highlight {
        color: #ff6b9d;
    }
    
    .btn-choice {
        font-size: 1em;
        padding: 14px 25px;
    }
    
    .buttons-container {
        min-height: 250px;
        gap: 12px;
    }
    
    .btn-next {
        font-size: 1em;
        padding: 14px 35px;
    }
    
    .warning-box {
        margin-top: 20px;
        padding: 12px 15px;
    }
    
    .warning-text {
        font-size: 0.85em;
    }
}

/* Responsive pour très petits écrans */
@media (max-width: 400px) {
    .section {
        padding: 25px 15px;
        min-height: auto;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    p {
        font-size: 0.95em;
    }
    
    .big-text {
        font-size: 1.1em;
    }
    
    .btn-choice {
        font-size: 0.95em;
        padding: 12px 20px;
    }
    
    .buttons-container {
        min-height: 220px;
        gap: 10px;
    }
    
    .warning-box {
        margin-top: 15px;
        padding: 10px 12px;
    }
    
    .warning-text {
        font-size: 0.8em;
    }
}

/* Animation de transition entre sections */
.section.fade-out {
    opacity: 0;
    transform: scale(0.9);
}

/* Bouton admin caché - en bas à droite du conteneur */
#home {
    position: relative;
}

#admin-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0;
    z-index: 100;
    font-size: 0;
    color: transparent;
    padding: 0;
    margin: 0;
}

#admin-btn:hover {
    opacity: 0.05;
}

#admin-btn:active {
    opacity: 0.1;
}

/* Panel d'administration */
.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.admin-panel.hidden {
    display: none;
}

.admin-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.admin-content h2 {
    margin-bottom: 20px;
    color: #f5f5f5;
    text-align: center;
}

.admin-content h3 {
    margin: 20px 0 15px 0;
    color: #e0e0e0;
    font-size: 1.3em;
}

.admin-login {
    text-align: center;
}

.admin-login input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #2a2a2a;
    color: #f5f5f5;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1em;
    box-sizing: border-box;
}

.admin-login input:focus {
    outline: none;
    border-color: #667eea;
    background: #333;
}

.admin-login input::placeholder {
    color: #888;
}

.admin-login button,
.btn-reset,
.btn-close {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 5px;
}

.admin-login button:hover,
.btn-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-reset {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    margin-top: 20px;
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.admin-dashboard {
    text-align: left;
}

.admin-dashboard.hidden {
    display: none;
}

.choices-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.choices-list li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.choices-list li strong {
    color: #f5f5f5;
    display: block;
    margin-bottom: 5px;
}

.choices-list li small {
    color: #b0b0b0;
    font-size: 0.9em;
}

.admin-dashboard p {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #b0b0b0;
}

/* Masquer le bouton admin quand on n'est pas sur la page d'accueil */
body:not(:has(#home:not(.hidden))) #admin-btn,
#home.hidden ~ * #admin-btn {
    display: none;
}

/* Alternative pour navigateurs qui ne supportent pas :has() */
.section.hidden #admin-btn {
    display: none;
}

/* Styles pour le calendrier de choix de date */
.date-picker-container {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 182, 193, 0.3);
    border-radius: 15px;
}

.date-picker-container h3 {
    color: #f5f5f5;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.date-time-picker {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.date-time-picker label {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 1em;
}

.date-time-picker input[type="date"],
.date-time-picker input[type="time"] {
    width: 100%;
    padding: 12px;
    background: #2a2a2a !important;
    color: #f5f5f5 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1em;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}

.date-time-picker input[type="date"]::-webkit-calendar-picker-indicator,
.date-time-picker input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.8;
    cursor: pointer;
}

.date-time-picker input[type="date"]::-webkit-datetime-edit-text,
.date-time-picker input[type="date"]::-webkit-datetime-edit-month-field,
.date-time-picker input[type="date"]::-webkit-datetime-edit-day-field,
.date-time-picker input[type="date"]::-webkit-datetime-edit-year-field,
.date-time-picker input[type="time"]::-webkit-datetime-edit-text,
.date-time-picker input[type="time"]::-webkit-datetime-edit-hour-field,
.date-time-picker input[type="time"]::-webkit-datetime-edit-minute-field {
    color: #f5f5f5 !important;
    opacity: 1 !important;
}

.date-time-picker input[type="date"]::-webkit-inner-spin-button,
.date-time-picker input[type="date"]::-webkit-clear-button,
.date-time-picker input[type="time"]::-webkit-inner-spin-button {
    filter: invert(1);
    opacity: 0.8;
}

.date-time-picker input[type="date"]:focus,
.date-time-picker input[type="time"]:focus {
    outline: none;
    border-color: #ff6b9d;
    background: #333 !important;
    color: #f5f5f5 !important;
}

.date-time-picker input[type="date"]:disabled,
.date-time-picker input[type="time"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.success-message {
    margin-top: 15px;
    padding: 12px;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    border-radius: 10px;
    color: #81c784;
    text-align: center;
    font-weight: 500;
}

.success-message.hidden {
    display: none;
}

/* Styles pour la zone de message final */
.message-container {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 182, 193, 0.3);
    border-radius: 15px;
}

.message-container h3 {
    color: #f5f5f5;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.message-container textarea {
    width: 100%;
    padding: 12px;
    background: #2a2a2a !important;
    color: #f5f5f5 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 15px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.message-container textarea:focus {
    outline: none;
    border-color: #ff6b9d;
    background: #333 !important;
    color: #f5f5f5 !important;
}

.message-container textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.message-container textarea::placeholder {
    color: #888;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .date-picker-container,
    .message-container {
        padding: 20px 15px;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 182, 193, 0.4) !important;
    }
    
    .date-picker-container h3,
    .message-container h3 {
        color: #f5f5f5 !important;
    }
    
    .date-time-picker {
        gap: 12px;
    }
    
    .date-time-picker label {
        color: #e0e0e0 !important;
    }
    
    .date-time-picker input[type="date"],
    .date-time-picker input[type="time"] {
        font-size: 0.95em;
        padding: 12px;
        background: #1e1e1e !important;
        color: #f5f5f5 !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
    }
    
    .date-time-picker input[type="date"]:focus,
    .date-time-picker input[type="time"]:focus {
        background: #2a2a2a !important;
        border-color: #ff6b9d !important;
        color: #f5f5f5 !important;
    }
    
    .message-container textarea {
        font-size: 0.95em;
        padding: 12px;
        background: #1e1e1e !important;
        color: #f5f5f5 !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
    }
    
    .message-container textarea:focus {
        background: #2a2a2a !important;
        border-color: #ff6b9d !important;
        color: #f5f5f5 !important;
    }
    
    .message-container textarea::placeholder {
        color: #aaa !important;
    }
}

@media (max-width: 400px) {
    .date-picker-container,
    .message-container {
        padding: 15px 12px;
    }
    
    .date-picker-container h3,
    .message-container h3 {
        font-size: 1.1em;
        color: #f5f5f5 !important;
    }
    
    .date-time-picker input[type="date"],
    .date-time-picker input[type="time"] {
        font-size: 0.9em;
        padding: 10px;
        background: #1e1e1e !important;
        color: #f5f5f5 !important;
    }
    
    .message-container textarea {
        font-size: 0.9em;
        padding: 10px;
        background: #1e1e1e !important;
        color: #f5f5f5 !important;
    }
}
