/* ================================
   TerraQuest - Styles Principaux
   ================================ */

:root {
    --primary-color: #667eea;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --dark-bg: #1a202c;
    --light-bg: #f7fafc;
    --text-dark: #2d3748;
    --text-light: #ffffff;
    --border-color: #e2e8f0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    overflow: hidden;
    background: #f0f4f8;
}

/* ================================
   NAVIGATION
   ================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--dark-bg);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-left, .nav-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-center {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-btn, .menu-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.nav-btn:hover, .menu-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.nav-btn-icon {
    background: transparent;
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s;
}

.nav-btn-icon:hover {
    transform: scale(1.2);
}

.slide-indicator {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

/* ================================
   PROGRESS BAR
   ================================ */

.progress-bar {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0,0,0,0.1);
    z-index: 999;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    width: 0%;
}

/* ================================
   SOMMAIRE OVERLAY
   ================================ */

.sommaire-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.sommaire-overlay.hidden {
    display: none;
}

.sommaire-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ef4444;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.sommaire-container h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.sommaire-container h3 {
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.parcours-rapides {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.parcours-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.btn-parcours {
    background: linear-gradient(135deg, var(--primary-color), #5568d3);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-parcours:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.badge {
    background: rgba(255,255,255,0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.section-group {
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.section-header label {
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.count {
    color: #64748b;
    font-weight: normal;
    font-size: 0.9rem;
}

.subsections {
    list-style: none;
    padding-left: 2rem;
}

.subsections li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
}

.subsections label {
    cursor: pointer;
}

input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.sommaire-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e2e8f0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--text-dark);
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.sommaire-stats {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f0f9ff;
    border-radius: 8px;
    text-align: center;
}

.sommaire-stats p {
    margin: 0.3rem 0;
}

/* ================================
   SLIDES
   ================================ */

.slides-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 64px);
    margin-top: 64px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0s 0s;
}

.slide-content {
    width: 100%;
    height: 100%;
    padding: 3rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.slide-content.centered {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.slide-content.split {
    flex-direction: row;
    padding: 2rem;
    gap: 2rem;
}

.slide-left, .slide-right {
    flex: 1;
}

/* ================================
   HERO SLIDE
   ================================ */

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-content {
    max-width: 800px;
}

.logo-animation {
    font-size: 6rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-tagline p {
    font-size: 1.3rem;
    margin: 0.5rem 0;
}

.hero-tagline .small {
    font-size: 1rem;
    opacity: 0.8;
}

/* ================================
   TYPOGRAPHY
   ================================ */

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.lead {
    font-size: 1.3rem;
    color: #64748b;
    margin-bottom: 2rem;
}

/* ================================
   COMPONENTS
   ================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    display: inline-block;
}

.stat-unit {
    font-size: 1.5rem;
    color: #64748b;
    margin-left: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1rem 0;
}

.stat-desc {
    color: #64748b;
    font-size: 0.95rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.column {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.check-list.positive li::before {
    content: '✓ ';
    color: var(--secondary-color);
    font-weight: bold;
}

.check-list.negative li::before {
    content: '✗ ';
    color: #ef4444;
    font-weight: bold;
}

.highlight-box {
    background: linear-gradient(135deg, #667eea15, #10b98115);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.definition-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* ================================
   MAP
   ================================ */

.map-container {
    width: 100%;
    height: 70vh;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.circuits-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.circuit-card {
    background: white;
    padding: 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.circuit-card:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.circuit-icon {
    font-size: 2.5rem;
}

.circuit-info h3 {
    margin: 0 0 0.3rem 0;
    color: var(--primary-color);
}

.circuit-info p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.circuit-type {
    display: inline-block;
    background: #f0f9ff;
    color: var(--primary-color);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.map-legend {
    margin-top: 1rem;
    text-align: center;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* ================================
   WORKFLOW
   ================================ */

.workflow {
    max-width: 700px;
    margin: 2rem auto;
}

.workflow-step {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

.workflow-arrow {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin: 1rem 0;
}

/* ================================
   TEAMS
   ================================ */

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.team-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.team-contribution {
    display: inline-block;
    background: #f0f9ff;
    color: var(--primary-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* ================================
   CTA
   ================================ */

.cta-box {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    max-width: 700px;
}

.cta-profiles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin: 2rem 0;
}

.profile-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
}

.btn-cta {
    background: linear-gradient(135deg, #667eea, #10b981);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 2rem;
    transition: all 0.3s;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* ================================
   CONTACT
   ================================ */

.contact-box {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    max-width: 700px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-icon {
    font-size: 2.5rem;
}

.next-meeting {
    background: #f0f9ff;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary-color);
    margin-top: 2rem;
}

/* Custom marker styles for Leaflet */
.custom-marker-container {
    background: transparent !important;
    border: none !important;
}

.custom-marker {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}
.btn-app {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: #10b981;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s;
}

.btn-app:hover {
    background: #059669;
    transform: translateY(-3px);
}