/* ============================================
   CAP'TAINE - SITE WEB
   Thème maritime fun et coloré
   ============================================ */

/* --- Variables CSS --- */
:root {
    /* Couleurs maritimes */
    --ocean-deep: #0c4a6e;
    --ocean-mid: #0369a1;
    --ocean-light: #38bdf8;
    --ocean-pale: #e0f2fe;
    --sand: #fef3c7;
    --sand-dark: #fcd34d;
    --sunset: #fb923c;
    --coral: #f472b6;
    --seafoam: #34d399;
    --seafoam-dark: #10b981;

    /* Couleurs principales */
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #7dd3fc;
    --secondary: #34d399;
    --secondary-dark: #10b981;
    --accent: #fbbf24;

    /* Couleurs neutres */
    --text: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #f1f5f9;
    --border: #e2e8f0;

    /* Couleurs sémantiques */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #0ea5e9;

    /* Badges */
    --badge-green: #dcfce7;
    --badge-green-text: #166534;
    --badge-blue: #dbeafe;
    --badge-blue-text: #1e40af;
    --badge-purple: #f3e8ff;
    --badge-purple-text: #6b21a8;

    /* Espacements */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Typographie */
    --font-display: 'Fredoka', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Rayons */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.3);

    /* Transitions */
    --transition: 200ms ease;
    --transition-slow: 400ms ease;
    --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style-position: inside;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: 800px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text);
}

.nav-logo:hover {
    color: var(--text);
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-menu a {
    color: var(--text-light);
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.btn-nav {
    background: linear-gradient(135deg, var(--primary), var(--ocean-mid));
    color: white !important;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: var(--shadow);
}

.btn-nav::after {
    display: none !important;
}

.btn-nav:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--ocean-deep));
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
    border-radius: 2px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-icon {
    font-size: 1.25rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--ocean-mid));
    color: white;
    box-shadow: var(--shadow), 0 4px 14px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--ocean-deep));
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 8px 25px rgba(14, 165, 233, 0.5);
}

.btn-ghost {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-dark);
}

.btn-ghost:hover {
    background: rgba(14, 165, 233, 0.2);
    color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.125rem;
    border-radius: var(--radius-xl);
}

.btn-download {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
}

.btn-download:hover {
    background: linear-gradient(135deg, var(--secondary-dark), #059669);
    color: white;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: calc(70px + var(--space-3xl)) 0 var(--space-4xl);
    background: linear-gradient(180deg, var(--ocean-pale) 0%, #f0f9ff 50%, white 100%);
    min-height: 100vh;
    overflow: hidden;
}

/* Waves Animation */
.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    transform-origin: center bottom;
}

.wave1 {
    background: linear-gradient(to bottom, transparent 0%, rgba(14, 165, 233, 0.1) 100%);
    animation: wave 8s linear infinite;
    bottom: 0;
    height: 80px;
    border-radius: 50% 50% 0 0;
}

.wave2 {
    background: linear-gradient(to bottom, transparent 0%, rgba(14, 165, 233, 0.15) 100%);
    animation: wave 6s linear infinite reverse;
    bottom: 10px;
    height: 60px;
    border-radius: 50% 50% 0 0;
    animation-delay: -2s;
}

.wave3 {
    background: linear-gradient(to bottom, transparent 0%, rgba(14, 165, 233, 0.08) 100%);
    animation: wave 10s linear infinite;
    bottom: 20px;
    height: 40px;
    border-radius: 50% 50% 0 0;
    animation-delay: -4s;
}

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

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-mascot {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-lg);
}

.mascot-boat {
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.mascot-sparkles {
    position: absolute;
    top: -10px;
    right: -30px;
}

.mascot-sparkles span {
    position: absolute;
    animation: sparkle 2s ease-in-out infinite;
}

.mascot-sparkles span:nth-child(1) { top: 0; left: 0; animation-delay: 0s; }
.mascot-sparkles span:nth-child(2) { top: 20px; left: 20px; animation-delay: 0.3s; }
.mascot-sparkles span:nth-child(3) { top: -5px; left: 30px; animation-delay: 0.6s; }

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
    font-size: 3.25rem;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero-subtitle strong {
    color: var(--primary);
}

/* Badges */
.hero-badges {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-green {
    background: var(--badge-green);
    color: var(--badge-green-text);
}

.badge-blue {
    background: var(--badge-blue);
    color: var(--badge-blue-text);
}

.badge-purple {
    background: var(--badge-purple);
    color: var(--badge-purple-text);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* App Window Preview */
.hero-preview {
    display: flex;
    justify-content: center;
}

.app-window {
    background: var(--text);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    width: 100%;
    max-width: 450px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform var(--transition-slow);
}

.app-window:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: var(--space-md);
    background: #1e293b;
}

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

.dot.red { background: #f87171; }
.dot.yellow { background: #fbbf24; }
.dot.green { background: #34d399; }

.window-content {
    padding: var(--space-lg);
}

.chat-demo {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.msg {
    display: flex;
    gap: var(--space-sm);
    max-width: 90%;
}

.msg-bot {
    align-self: flex-start;
}

.msg-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-avatar {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.msg-bubble {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    line-height: 1.5;
}

.msg-bot .msg-bubble {
    background: #334155;
    color: white;
    border-bottom-left-radius: var(--radius-sm);
}

.msg-user .msg-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: var(--radius-sm);
}

/* ============================================
   HIGHLIGHTS / POINTS CLÉS
   ============================================ */
.highlights {
    background: white;
    padding: var(--space-3xl) 0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.highlight-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.highlight-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
    color: var(--ocean-deep);
}

.highlight-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   HOW IT WORKS / VÉRITÉ
   ============================================ */
.how-it-works {
    background: linear-gradient(180deg, white 0%, var(--ocean-pale) 100%);
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--ocean-mid));
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.section-header h2 {
    margin-bottom: var(--space-md);
    color: var(--ocean-deep);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

.truth-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.truth-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.truth-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--ocean-pale);
}

.truth-icon {
    font-size: 2rem;
}

.truth-header h3 {
    font-size: 1.25rem;
    color: var(--ocean-deep);
}

.truth-content p {
    margin-bottom: var(--space-md);
    color: var(--text-light);
}

.truth-content p strong {
    color: var(--text);
}

.truth-content ul {
    list-style: none;
    margin: var(--space-md) 0;
}

.truth-content li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: var(--text-light);
}

.truth-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.truth-note {
    background: var(--ocean-pale);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--ocean-deep);
    margin-top: var(--space-md);
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features {
    background: white;
    padding: var(--space-4xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.feature {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 2.25rem;
    margin-bottom: var(--space-md);
}

.feature h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
    color: var(--ocean-deep);
}

.feature p {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ============================================
   DOWNLOAD SECTION
   ============================================ */
.download {
    background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.download .container {
    position: relative;
    z-index: 1;
}

.download .section-header h2,
.download .section-header p {
    color: white;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.download-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    color: white;
    transition: all var(--transition);
    text-decoration: none;
}

.download-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    color: white;
}

.os-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
}

.download-card h3 {
    color: white;
    margin-bottom: var(--space-sm);
}

.os-version {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
}

.download-btn {
    display: inline-block;
    background: white;
    color: var(--ocean-deep);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
}

.download-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    color: white;
}

.tip-icon {
    font-size: 1.5rem;
}

.download-tip p {
    margin: 0;
    font-size: 0.9rem;
}

.download-tip a {
    color: var(--sand-dark);
}

.download-tip a:hover {
    color: var(--sand);
}

/* ============================================
   EDUCATION PREVIEW
   ============================================ */
.education {
    background: var(--bg-alt);
    padding: var(--space-4xl) 0;
}

.education-card {
    background: white;
    border: 2px dashed var(--border);
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.education-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--text);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.education h2 {
    color: var(--ocean-deep);
    margin-bottom: var(--space-md);
}

.education-card > p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
}

.education-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.education-features span {
    background: var(--ocean-pale);
    color: var(--ocean-deep);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
}

.education-note {
    color: var(--text-lighter);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text);
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
}

.footer-waves {
    height: 60px;
    overflow: hidden;
}

.wave-footer {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 60px;
    background: linear-gradient(to bottom, var(--bg-alt) 0%, transparent 100%);
    border-radius: 0 0 50% 50%;
    animation: wave 12s linear infinite;
}

.footer .container {
    padding: var(--space-3xl) var(--space-lg) var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand p {
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.5rem;
    color: white;
    margin-bottom: var(--space-md);
}

.version {
    font-size: 0.75rem;
    opacity: 0.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    padding: var(--space-xs) 0;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
}

.footer-bottom p {
    margin-bottom: var(--space-xs);
}

/* ============================================
   PAGE HEADERS
   ============================================ */
.page-header {
    padding: calc(70px + var(--space-3xl)) 0 var(--space-2xl);
    background: linear-gradient(180deg, var(--ocean-pale) 0%, white 100%);
    text-align: center;
}

.page-header h1 {
    margin-bottom: var(--space-md);
    color: var(--ocean-deep);
}

.page-header p {
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-header-small {
    padding: calc(70px + var(--space-2xl)) 0 var(--space-xl);
}

/* ============================================
   SECTIONS GÉNÉRIQUES
   ============================================ */
.section {
    padding: var(--space-3xl) 0;
}

.section.alt-bg {
    background: var(--bg-alt);
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
    padding: var(--space-3xl) 0;
}

.legal-content {
    line-height: 1.8;
}

.legal-section {
    margin-bottom: var(--space-2xl);
}

.legal-section h2 {
    color: var(--ocean-deep);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--ocean-pale);
}

.legal-section h3 {
    margin: var(--space-lg) 0 var(--space-md);
    font-size: 1.125rem;
    color: var(--ocean-mid);
}

.legal-section p {
    margin-bottom: var(--space-md);
    color: var(--text-light);
}

.legal-section ul, .legal-section ol {
    margin: var(--space-md) 0;
    padding-left: var(--space-xl);
}

.legal-section li {
    margin-bottom: var(--space-sm);
    color: var(--text-light);
}

.legal-info-box {
    background: var(--ocean-pale);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

.legal-info-box p {
    margin-bottom: var(--space-sm);
}

.legal-note {
    font-size: 0.875rem;
    color: var(--text-lighter);
    font-style: italic;
}

.legal-footer {
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 2px solid var(--border);
    text-align: center;
    color: var(--text-lighter);
}

/* ============================================
   PRICING PAGE
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    position: relative;
    transition: all var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary);
}

.pricing-card.upcoming {
    border-style: dashed;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-card.upcoming .pricing-badge {
    background: var(--accent);
    color: var(--text);
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.pricing-price {
    margin-top: var(--space-md);
}

.pricing-price .price {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--primary);
}

.pricing-price .period {
    display: block;
    color: var(--text-lighter);
    font-size: 0.875rem;
}

.pricing-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.pricing-features li {
    padding: var(--space-sm) 0;
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.pricing-features .check {
    color: var(--secondary);
    font-weight: bold;
}

.pricing-cta {
    text-align: center;
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: var(--space-2xl) 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--ocean-pale);
    font-weight: 600;
}

.comparison-table th:not(:first-child),
.comparison-table td:not(:first-child) {
    text-align: center;
    min-width: 150px;
}

.comparison-table .yes {
    color: var(--secondary);
    font-weight: 600;
}

.comparison-table .no {
    color: var(--text-lighter);
}

/* ============================================
   FAQ PAGE
   ============================================ */
.faq-category {
    margin-bottom: var(--space-3xl);
}

.faq-category h2 {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--primary);
    color: var(--ocean-deep);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-question {
    width: 100%;
    background: white;
    border: none;
    padding: var(--space-lg);
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
}

.faq-question:hover {
    background: var(--bg-alt);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform var(--transition);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--space-lg) var(--space-lg);
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-answer p {
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.faq-answer ul, .faq-answer ol {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

.faq-answer li {
    margin-bottom: var(--space-sm);
    color: var(--text-light);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-3xl);
}

.contact-form-wrapper h2 {
    margin-bottom: var(--space-xl);
    color: var(--ocean-deep);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--space-md);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-info-card {
    background: var(--ocean-pale);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
}

.contact-info-card h3 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    color: var(--ocean-deep);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

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

.contact-item strong {
    display: block;
    margin-bottom: var(--space-xs);
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

/* ============================================
   FONCTIONNALITÉS PAGE
   ============================================ */
.feature-detail-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.feature-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.feature-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.tech-block {
    background: var(--ocean-pale);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

.tech-block h4 {
    color: var(--ocean-deep);
    margin-bottom: var(--space-md);
}

.tech-block ul {
    margin: var(--space-md) 0;
}

.tech-block li {
    margin-bottom: var(--space-sm);
    color: var(--text-light);
}

.provider-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.provider-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    position: relative;
    transition: all var(--transition);
}

.provider-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.provider-card.recommended {
    border-color: var(--secondary);
}

.provider-badge {
    position: absolute;
    top: -10px;
    right: var(--space-md);
    background: var(--secondary);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.provider-logo {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--space-md);
}

.provider-card h4 {
    text-align: center;
    margin-bottom: var(--space-xs);
}

.provider-price {
    text-align: center;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.provider-card ul {
    list-style: none;
}

.provider-card li {
    padding: var(--space-xs) 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-preview {
        display: none;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .truth-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-detail-content {
        grid-template-columns: 1fr;
    }

    .provider-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition-slow);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .provider-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .hero {
        padding-top: calc(70px + var(--space-xl));
    }

    .mascot-boat {
        font-size: 3rem;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .education-features {
        flex-direction: column;
        align-items: center;
    }
}
