/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* En-tête */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2.5rem;
    color: #667eea;
}

.logo h1 {
    font-size: 1.8rem;
    color: #333;
    font-weight: 700;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #f0f4ff;
    border-radius: 50px;
    font-weight: 500;
}

.location-info i {
    color: #667eea;
}

/* Bannière de consentement */
.consent-banner {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #667eea;
}

.consent-content {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.consent-content i {
    font-size: 3rem;
    color: #667eea;
}

.consent-text {
    flex: 1;
    min-width: 300px;
}

.consent-text h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.consent-text p {
    color: #666;
    font-size: 1rem;
}

.consent-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

button {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-accept {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-deny {
    background: #f0f4ff;
    color: #666;
}

.btn-deny:hover {
    background: #e4e9ff;
}

/* Message de refus */
.refusal-message {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    margin-bottom: 20px;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.refusal-message i {
    font-size: 4rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.refusal-message h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.refusal-message p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.btn-retry {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 0 auto;
}

.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Contenu principal */
.main-content {
    display: none;
}

/* Carte météo actuelle */
.current-weather {
    margin-bottom: 30px;
}

.weather-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.weather-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-size: 1.5rem;
}

.weather-header i {
    color: #667eea;
}

.time-display {
    background: #f0f4ff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    color: #667eea;
}

.weather-main {
    text-align: center;
    margin-bottom: 40px;
}

.temperature {
    font-size: 5rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 10px;
}

.temp-unit {
    font-size: 2rem;
    vertical-align: super;
}

.weather-desc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.3rem;
    color: #666;
}

.weather-desc i {
    font-size: 2rem;
    color: #667eea;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.detail {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f0f4ff;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.detail:hover {
    transform: translateY(-5px);
}

.detail i {
    font-size: 1.8rem;
    color: #667eea;
}

.detail-label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.detail-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

/* Prévisions */
.forecast {
    margin-bottom: 30px;
}

.forecast h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.forecast-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.forecast-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.forecast-card:hover {
    transform: translateY(-5px);
}

.forecast-date {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.forecast-icon {
    font-size: 2.5rem;
    color: #667eea;
    margin: 10px 0;
}

.forecast-temp {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.forecast-desc {
    color: #666;
    font-size: 0.9rem;
}

.forecast-placeholder {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    grid-column: 1 / -1;
}

.forecast-placeholder p {
    color: #666;
    font-size: 1.1rem;
}

/* Informations supplémentaires */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
}

.info-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.info-card p {
    color: #666;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Pied de page */
.footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 30px 20px;
    font-size: 0.9rem;
}

.footer p {
    margin-bottom: 10px;
}

.footer-info {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .consent-text {
        min-width: auto;
    }
    
    .consent-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .weather-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .temperature {
        font-size: 4rem;
    }
    
    .forecast-cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .weather-details {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    button {
        width: 100%;
        padding: 15px;
    }
}