:root {
    --primary-color: #0077B6;
    --secondary-color: #90E0EF;
    --dark-blue: #023E8A;
    --accent-color: #CAF0F8;
    --text-color: #333;
    --light-bg: #F8FBFF;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav { display: flex; justify-content: space-between; align-items: center; }

.logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--primary-color);
    font-weight: 800; font-size: 1.5rem;
}

.nav-links { display: flex; gap: 30px; }

.nav-links a {
    text-decoration: none; color: var(--text-color);
    font-weight: 500; transition: color 0.3s;
}
.nav-links a:hover { color: var(--primary-color); }

/* Hero Section */
.hero {
    padding: 100px 0;
    color: var(--white);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero h1 { font-size: 4rem; font-weight: 900; margin-bottom: 10px; letter-spacing: -1px; }
.hero .subtitle { font-size: 1.25rem; margin-bottom: 40px; opacity: 0.9; }

.badge-demo {
    background: #ffb703; color: #000;
    padding: 5px 15px; border-radius: 20px;
    display: inline-block; margin-bottom: 20px;
    font-weight: 700; font-size: 0.8rem; text-transform: uppercase;
}

.current-weather-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 25px; padding: 40px;
    max-width: 700px; margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex; align-items: center;
    justify-content: space-around; flex-wrap: wrap; gap: 30px;
}

.weather-main { display: flex; align-items: center; gap: 20px; }
.weather-icon-large { width: 80px; height: 80px; color: var(--secondary-color); }
.temp-big { font-size: 6rem; font-weight: 800; line-height: 1; }
.weather-details { text-align: left; }
.weather-details .desc { font-size: 1.5rem; font-weight: 600; margin-bottom: 15px; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }

/* Quick Stats */
.quick-stats { margin-top: -60px; position: relative; z-index: 10; }

.stats-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px; box-shadow: var(--shadow);
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;
}

.stat-item { display: flex; align-items: center; gap: 15px; padding: 10px; }
.icon-blue { color: var(--primary-color); width: 40px; height: 40px; }
.stat-info .label { display: block; font-size: 0.8rem; color: #666; text-transform: uppercase; font-weight: 600; }
.stat-info .value { display: block; font-size: 1.4rem; font-weight: 800; color: var(--primary-color); }
.stat-info .sub { font-size: 0.75rem; color: #888; }

/* Surf Rating Badge (Quick Stats) */
.surf-rating-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 20px;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    min-width: 40px;
    min-height: 40px;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Forecast Section */
.forecast-section { padding: 80px 0; }
.section-title { font-size: 2.5rem; margin-bottom: 40px; color: var(--dark-blue); font-weight: 800; }

.forecast-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }

.forecast-card {
    background: var(--white); padding: 30px;
    border-radius: var(--border-radius); text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
    display: flex; flex-direction: column; align-items: center;
}
.forecast-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.forecast-card .date { display: block; font-weight: 700; margin-bottom: 15px; color: #666; }
.forecast-card i { width: 40px; height: 40px; margin: 10px 0; color: var(--primary-color); }

.temp-range { display: flex; justify-content: center; gap: 10px; margin: 10px 0; }
.temp-max { font-size: 1.8rem; font-weight: 800; color: var(--text-color); }
.temp-min { font-size: 1.2rem; font-weight: 600; color: #888; align-self: flex-end; margin-bottom: 4px; }
.forecast-card .desc { display: block; font-size: 0.9rem; color: #555; margin-top: 10px; }

.rain-info {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    margin-top: 15px; font-size: 0.85rem; color: var(--dark-blue);
    background: var(--accent-color); padding: 6px 12px; border-radius: 20px; font-weight: 600;
}
.rain-info i { width: 16px; height: 16px; margin: 0; }

/* Surf Section */
.surf-details-section { background: var(--dark-blue); color: var(--white); padding: 100px 0; }
.surf-content-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.surf-text h2 { color: var(--secondary-color); }
.surf-tips { list-style: none; margin-top: 30px; }
.surf-tips li { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-size: 1.1rem; }
.surf-tips i { color: var(--secondary-color); }
.surf-image-card img { width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }

/* Surf Forecast Section */
.surf-forecast-section { padding: 80px 0; background: var(--white); }

.tide-demo-notice {
    font-size: 0.9rem; color: #e67e22;
    background: #fef9f0; border: 1px solid #f39c12;
    padding: 8px 16px; border-radius: 8px;
    display: inline-block; margin-bottom: 30px;
}

.tide-station-name {
    font-size: 0.9rem; color: #555;
    margin-bottom: 30px;
}

.surf-forecast-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.surf-card {
    background: var(--light-bg);
    border-radius: var(--border-radius); padding: 25px 20px;
    border: 1px solid #e1e8ed;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex; flex-direction: column;
}
.surf-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.surf-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #e1e8ed;
    padding-bottom: 12px;
    margin-bottom: 20px;
}
.surf-card-header .date {
    font-weight: 800; color: var(--dark-blue); font-size: 1rem;
}

/* Badge rating dans les cartes surf 5 jours */
.surf-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    white-space: nowrap;
}

.surf-card-body { display: flex; justify-content: space-around; margin-bottom: 20px; }

.surf-stat { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.surf-stat i { width: 24px; height: 24px; }
.surf-stat .val { font-weight: 800; font-size: 1.2rem; color: var(--text-color); }
.surf-stat .label { font-size: 0.7rem; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }

/* Tide Info Block */
.surf-tide-info {
    background: var(--accent-color); padding: 14px;
    border-radius: 8px; font-size: 0.85rem;
    color: var(--dark-blue);
    display: flex; flex-direction: column; gap: 6px;
    margin-top: auto;
}

.tide-type-label {
    display: flex; align-items: center; gap: 6px;
    font-weight: 700; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--primary-color);
    margin-top: 6px;
}
.tide-type-label:first-child { margin-top: 0; }
.tide-type-label i { width: 14px; height: 14px; }

.tide-row {
    display: flex; align-items: center; gap: 8px;
    padding-left: 4px;
}
.tide-row i { width: 14px; height: 14px; flex-shrink: 0; }

.tide-height {
    margin-left: auto;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.85rem;
    background: rgba(0,119,182,0.1);
    padding: 1px 7px; border-radius: 10px;
}

.tide-coef {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #555;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 6px;
}

/* Activities */
.activities-section { padding: 100px 0; background: var(--light-bg); }
.activities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.activity-card { background: var(--white); padding: 40px; border-radius: var(--border-radius); text-align: center; box-shadow: var(--shadow); }
.activity-card i { width: 50px; height: 50px; margin-bottom: 20px; color: var(--primary-color); }

/* Reveal on Scroll */
.reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }

/* Footer */
footer { background: #111; color: #999; padding: 60px 0 20px; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-info h4 { color: var(--white); margin-bottom: 15px; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; text-align: center; font-size: 0.9rem; }
.text-center { text-align: center; }

/* Mobile */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .temp-big { font-size: 4rem; }
    .surf-content-split { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .stats-card { grid-template-columns: 1fr 1fr; }
    .surf-forecast-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .surf-forecast-grid { grid-template-columns: 1fr; }
    .forecast-grid { grid-template-columns: 1fr 1fr; }
}