/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

@media (max-width: 480px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .container {
        height: auto;
        min-height: 100vh;
        padding: 2px 0;
        align-items: flex-start;
    }
}

/* Container principal */
.container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .container {
        height: auto;
        min-height: 100vh;
        align-items: flex-start;
        padding: 15px 0;
    }
}

.main-section {
    text-align: center;
    color: white;
    max-width: 90vw;
    padding: 20px;
}

/* Header */
.header {
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out;
}

.title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #fff, #ffeb3b, #fff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s ease-in-out infinite;
}

.tesla-icon {
    display: inline-block;
    animation: bounce 2s infinite;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: #ffeb3b;
    text-shadow: 0 2px 10px rgba(255, 235, 59, 0.5);
    font-size: 1em;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* Compteur principal */
.countdown-container {
    margin-bottom: 25px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.countdown-item:hover::before {
    left: 100%;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.countdown-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
    color: #ffeb3b;
    text-shadow: 0 2px 10px rgba(255, 235, 59, 0.5);
}

.countdown-label {
    font-size: clamp(0.8rem, 2vw, 1rem);
    font-weight: 400;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section dodos */
.dodos-section {
    margin-bottom: 25px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.dodos-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
    margin: 0 auto;
}

.dodos-icon {
    font-size: clamp(2rem, 4vw, 3rem);
    animation: float 3s ease-in-out infinite;
}

.dodos-count {
    text-align: center;
}

.dodos-number {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    color: #4fc3f7;
    text-shadow: 0 4px 20px rgba(79, 195, 247, 0.5);
    display: block;
    line-height: 1;
}

.dodos-text {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 500;
    opacity: 0.9;
    display: block;
    margin-top: 5px;
}

/* Informations Tesla */
.tesla-info {
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.tesla-visual {
    font-size: clamp(3rem, 6vw, 4rem);
    margin-bottom: 20px;
    animation: drive 4s ease-in-out infinite;
}

.delivery-info h3 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffeb3b;
}

.delivery-date {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 500;
    margin-bottom: 5px;
}

.delivery-location {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.8;
}

/* Galerie photos */
.photos-section {
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.photos-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}

.photo-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    max-width: 220px;
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.photo-card:hover::before {
    left: 100%;
}

.photo-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.photo-img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.photo-card:hover .photo-img {
    transform: scale(1.02);
    filter: brightness(1.1);
}



/* Particules flottantes */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 20%; left: 80%; animation-delay: 1s; }
.particle:nth-child(3) { top: 80%; left: 20%; animation-delay: 2s; }
.particle:nth-child(4) { top: 60%; left: 90%; animation-delay: 3s; }
.particle:nth-child(5) { top: 40%; left: 5%; animation-delay: 4s; }
.particle:nth-child(6) { top: 70%; left: 70%; animation-delay: 5s; }
.particle:nth-child(7) { top: 30%; left: 60%; animation-delay: 2.5s; }
.particle:nth-child(8) { top: 90%; left: 40%; animation-delay: 1.5s; }

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes textShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(5deg); }
    66% { transform: translateY(-10px) rotate(-5deg); }
}

@keyframes drive {
    0%, 100% { transform: translateX(0px); }
    25% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        margin-bottom: 15px;
    }
    
    .countdown-container {
        margin-bottom: 15px;
    }
    
    .dodos-section {
        margin-bottom: 15px;
    }
    
    .tesla-info {
        margin-bottom: 12px;
    }
    
    .photos-section {
        margin-bottom: 10px;
    }
    
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .countdown-item {
        padding: 12px 8px;
    }
    
    .dodos-container {
        flex-direction: column;
        gap: 10px;
        padding: 15px 12px;
    }
    
    .main-section {
        padding: 8px;
    }
    
    .photos-container {
        gap: 8px;
    }
    
    .photo-card {
        max-width: none;
        min-width: 120px;
        padding: 6px;
    }
    
    .photo-img {
        max-height: 100px;
    }
}

@media (max-width: 480px) {
    .header {
        margin-bottom: 8px;
    }
    
    .countdown-container {
        margin-bottom: 8px;
    }
    
    .dodos-section {
        margin-bottom: 8px;
    }
    
    .tesla-info {
        margin-bottom: 6px;
    }
    
    .photos-section {
        margin-bottom: 5px;
    }
    
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .countdown-item {
        padding: 10px 6px;
    }
    
    .countdown-number {
        font-size: clamp(1.5rem, 4vw, 2rem) !important;
    }
    
    .countdown-label {
        font-size: clamp(0.7rem, 1.5vw, 0.8rem) !important;
    }
    
    .dodos-container {
        padding: 12px 8px;
        gap: 8px;
    }
    
    .dodos-number {
        font-size: clamp(2rem, 6vw, 3rem) !important;
    }
    
    .dodos-text {
        font-size: clamp(0.8rem, 2vw, 1rem) !important;
    }
    
    .photos-container {
        gap: 6px;
    }
    
    .photo-card {
        min-width: 100px;
        max-width: 130px;
        padding: 5px;
    }
    
    .photo-img {
        max-height: 80px;
        border-radius: 6px;
    }
    
    .tesla-visual {
        margin-bottom: 5px;
        font-size: clamp(2rem, 5vw, 2.5rem) !important;
    }
    
    .delivery-info h3 {
        margin-bottom: 3px;
        font-size: clamp(1rem, 2.5vw, 1.2rem) !important;
    }
    
    .delivery-date {
        font-size: clamp(0.9rem, 2vw, 1.1rem) !important;
        margin-bottom: 2px;
    }
    
    .delivery-location {
        font-size: clamp(0.8rem, 1.8vw, 1rem) !important;
    }
    
    .main-section {
        padding: 3px;
    }
}

/* Breakpoint pour très petits écrans */
@media (max-width: 360px) {
    .header {
        margin-bottom: 5px;
    }
    
    .countdown-container {
        margin-bottom: 5px;
    }
    
    .dodos-section {
        margin-bottom: 5px;
    }
    
    .tesla-info {
        margin-bottom: 3px;
    }
    
    .photos-section {
        margin-bottom: 3px;
    }
    
    .photo-img {
        max-height: 60px;
    }
    
    .photo-card {
        min-width: 80px;
        max-width: 110px;
        padding: 3px;
    }
    
    .countdown-item {
        padding: 8px 4px;
    }
    
    .dodos-container {
        padding: 8px 5px;
    }
}
