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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #87CEEB 0%, #FFD700 50%, #F4A460 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Soleil */
.sun {
    position: fixed;
    top: 30px;
    right: 80px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #FFD700, #FFA500);
    border-radius: 50%;
    box-shadow: 0 0 60px #FFD700, 0 0 120px #FFA50080;
    animation: pulse-sun 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse-sun {
    0%, 100% { transform: scale(1); box-shadow: 0 0 60px #FFD700, 0 0 120px #FFA50080; }
    50% { transform: scale(1.05); box-shadow: 0 0 80px #FFD700, 0 0 150px #FFA50080; }
}

/* Ocean et vagues */
.ocean {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 0;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%230099cc88' d='M0,50 C360,100 720,0 1080,50 C1260,75 1350,25 1440,50 L1440,100 L0,100 Z'/%3E%3C/svg%3E") repeat-x;
    animation: wave-move 8s linear infinite;
}

.wave2 {
    opacity: 0.5;
    animation: wave-move 6s linear infinite reverse;
    bottom: -10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%230077aa66' d='M0,50 C360,0 720,100 1080,50 C1260,25 1350,75 1440,50 L1440,100 L0,100 Z'/%3E%3C/svg%3E") repeat-x;
}

@keyframes wave-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Palmiers */
.palm-tree {
    position: fixed;
    bottom: 60px;
    z-index: 1;
}

.palm-tree.left {
    left: 20px;
}

.palm-tree.right {
    right: 20px;
}

.trunk {
    width: 12px;
    height: 120px;
    background: linear-gradient(to right, #8B4513, #A0522D, #8B4513);
    margin: 0 auto;
    border-radius: 5px;
    transform: rotate(-3deg);
}

.right .trunk {
    transform: rotate(3deg);
}

.leaves {
    position: relative;
    top: -10px;
}

.leaf {
    position: absolute;
    width: 80px;
    height: 20px;
    background: #228B22;
    border-radius: 50% 50% 0 0;
    transform-origin: bottom center;
    animation: sway 3s ease-in-out infinite;
}

.leaf1 { transform: rotate(-40deg); left: -30px; top: -15px; }
.leaf2 { transform: rotate(40deg); left: -10px; top: -15px; }
.leaf3 { transform: rotate(-70deg); left: -40px; top: -5px; }
.leaf4 { transform: rotate(70deg); left: 0px; top: -5px; }

@keyframes sway {
    0%, 100% { transform: rotate(var(--base-rotation, -40deg)); }
    50% { transform: rotate(calc(var(--base-rotation, -40deg) + 5deg)); }
}

/* Container principal */
.container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px 160px;
    text-align: center;
}

.hidden {
    display: none !important;
}

h1 {
    font-size: 2.5rem;
    color: #1a3a5c;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #2c5f7c;
    margin-bottom: 30px;
}

/* Formulaire */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #87CEEB;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #0099cc;
    box-shadow: 0 0 10px rgba(0, 153, 204, 0.3);
}

/* Boutons */
.btn-primary {
    background: linear-gradient(135deg, #0099cc, #006699);
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 102, 153, 0.4);
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 153, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #FF8C00, #FF6347);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.2s;
    white-space: nowrap;
    align-self: flex-end;
}

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

.btn-reset {
    background: transparent;
    color: #666;
    border: 1px solid #ccc;
    padding: 8px 20px;
    font-size: 0.85rem;
    border-radius: 15px;
    cursor: pointer;
    margin-top: 30px;
}

/* Countdown */
.countdown-box {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.countdown-number {
    font-size: 5rem;
    font-weight: 800;
    color: #0099cc;
    line-height: 1;
    text-shadow: 2px 2px 0 rgba(0, 153, 204, 0.15);
}

.countdown-label {
    font-size: 1.1rem;
    color: #555;
    margin-top: 8px;
    font-weight: 500;
}

/* Barre de progression */
.progress-container {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    height: 30px;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FF6347, #FF8C00, #FFD700);
    border-radius: 20px;
    transition: width 1s ease-out;
    width: 0%;
}

.progress-text {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: 0.85rem;
    color: #333;
}

/* Citation */
.quote-box {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 16px;
    padding: 20px 24px;
    margin: 20px 0;
    border-left: 4px solid #FFD700;
    font-style: italic;
    color: #2c5f7c;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Grille d'infos */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.info-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    padding: 16px 10px;
}

.info-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0099cc;
}

.info-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
}

/* Section vacances */
.vacation-section {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 18px;
    padding: 24px;
    margin-top: 24px;
    text-align: left;
}

.vacation-section h2 {
    font-size: 1.3rem;
    color: #1a3a5c;
    margin-bottom: 16px;
    text-align: center;
}

/* Calendrier vacances */
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.cal-nav-btn {
    background: rgba(0, 153, 204, 0.15);
    border: 1px solid rgba(0, 153, 204, 0.3);
    color: #0099cc;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.cal-nav-btn:hover {
    background: rgba(0, 153, 204, 0.3);
}

.cal-month-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a3a5c;
    min-width: 180px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-header {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #666;
    padding: 6px 0;
    text-transform: uppercase;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    border: 2px solid transparent;
    color: #333;
}

.cal-day:hover {
    background: rgba(0, 153, 204, 0.1);
    border-color: rgba(0, 153, 204, 0.3);
}

.cal-day.empty {
    cursor: default;
}

.cal-day.empty:hover {
    background: transparent;
    border-color: transparent;
}

.cal-day.off {
    color: #ccc;
    cursor: default;
    background: rgba(0, 0, 0, 0.03);
}

.cal-day.off:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: transparent;
}

.cal-day.today {
    border-color: #0099cc;
    font-weight: 700;
    color: #0099cc;
}

.cal-day.vacation {
    background: linear-gradient(135deg, #FF8C00, #FF6347);
    color: white;
    font-weight: 700;
    border-color: #FF6347;
}

.cal-day.vacation:hover {
    background: linear-gradient(135deg, #e07b00, #e0523a);
}

.cal-day.past {
    opacity: 0.4;
}

.vac-summary {
    margin-top: 12px;
    text-align: center;
    font-size: 0.85rem;
    color: #2c5f7c;
    font-weight: 500;
}

.vacation-list .delete-vac {
    background: #ff6b6b;
    color: white;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.vacation-list .delete-vac:hover {
    background: #e55050;
}

/* Responsive */
@media (max-width: 500px) {
    h1 { font-size: 1.8rem; }
    .countdown-number { font-size: 3.5rem; }
    .info-grid { grid-template-columns: 1fr; }
    .vacation-form .form-row {
        flex-direction: column;
    }
    .btn-secondary {
        align-self: stretch;
    }
    .palm-tree { display: none; }
    .sun { width: 60px; height: 60px; right: 20px; }
}
