/* ================================
   CYBERDOJO
   Style inspiré du CSS Zen Garden #215
   "A Robot Named Jimmy" by meltmedia
   Culture du cyberspace depuis 1990
   ================================ */

/* ================================
   RESET & BASE
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Frutiger, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #0f2a36;
    background: #ffffff;
    background: linear-gradient(to bottom, #ffffff 0%, #edf6ff 100%);
    min-height: 100vh;
    position: relative;
}

/* Background image overlay - semi-transparent (only on index.html) */
body.with-images::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

/* Spotlight effect - reveal circle in center (only on index.html) */
body.with-images::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    box-shadow: 0 0 80px 40px rgba(43, 171, 225, 0.1);
}

/* ================================
   TYPOGRAPHY
   ================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Arvo', Constantia, Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: #00374f;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: #2babe1;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #2babe1;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #dd3b2a;
}

/* ================================
   LAYOUT
   ================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* ================================
   HEADER
   ================================ */
header {
    text-align: center;
    padding: 80px 24px 60px;
    background: linear-gradient(135deg, rgba(43, 171, 225, 0.1) 0%, rgba(221, 59, 42, 0.1) 100%);
    border-bottom: 4px solid #2babe1;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

/* Header background image - behind title (only on index.html) */
body.with-images header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background-image: url('../images/head.png');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

body.with-images header > * {
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 3.5rem;
    font-weight: 700;
    color: #00374f;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.tagline {
    font-size: 1.5rem;
    color: #2babe1;
    font-weight: 400;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 1rem;
    color: #dd3b2a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
    background: linear-gradient(135deg, #2babe1 0%, #30e0ad 100%);
    color: #ffffff;
    padding: 60px 48px;
    border-radius: 8px;
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(43, 171, 225, 0.3);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(45deg);
}

.hero h2 {
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.125rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* ================================
   SECTIONS
   ================================ */
.section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 48px 40px;
    margin: 48px 0;
    box-shadow: 0 4px 20px rgba(15, 42, 54, 0.1);
    border-left: 6px solid #2babe1;
}

.section-title {
    font-size: 2rem;
    color: #00374f;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #edf6ff;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-title::before {
    content: "▸";
    color: #dd3b2a;
    font-size: 1.5rem;
}

.section-content {
    color: #0f2a36;
    font-size: 1rem;
    line-height: 1.8;
}

/* ================================
   HIGHLIGHT & BADGES
   ================================ */
.highlight {
    color: #dd3b2a;
    font-weight: 700;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: #2babe1;
    color: #ffffff;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.accent {
    background: #dd3b2a;
}

/* ================================
   MISSION LIST
   ================================ */
.mission-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.mission-list li {
    padding: 20px 24px;
    margin-bottom: 16px;
    background: rgba(43, 171, 225, 0.05);
    border-left: 4px solid #2babe1;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.mission-list li::before {
    content: "◆";
    color: #dd3b2a;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.mission-list li:hover {
    background: rgba(43, 171, 225, 0.1);
    transform: translateX(8px);
    border-left-color: #dd3b2a;
}

/* ================================
   QUOTE BOX
   ================================ */
.quote {
    background: rgba(0, 55, 79, 0.03);
    border-left: 6px solid #00374f;
    border-radius: 4px;
    padding: 40px 48px;
    margin: 48px 0;
    font-style: italic;
    font-size: 1.25rem;
    color: #0f2a36;
    position: relative;
}

.quote::before {
    content: """;
    position: absolute;
    top: 10px;
    left: 16px;
    font-size: 4rem;
    color: #2babe1;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.quote-author {
    text-align: right;
    margin-top: 20px;
    font-style: normal;
    font-weight: 700;
    color: #dd3b2a;
    font-size: 1rem;
}

/* ================================
   TEAM GRID
   ================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin: 48px 0;
}

.member-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(15, 42, 54, 0.1);
    border-top: 4px solid #2babe1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2babe1 0%, #30e0ad 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(43, 171, 225, 0.2);
}

.member-card:hover::before {
    transform: scaleX(1);
}

.member-card.featured {
    border-top-color: #dd3b2a;
}

.member-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.member-name {
    font-size: 1.75rem;
    color: #00374f;
    margin-bottom: 8px;
}

.member-role {
    font-size: 1rem;
    color: #2babe1;
    font-style: italic;
    margin-bottom: 16px;
    font-weight: 600;
}

.member-description {
    font-size: 0.9375rem;
    color: #0f2a36;
    line-height: 1.7;
    margin-bottom: 20px;
}

.member-specialty {
    border-top: 2px dashed #edf6ff;
    padding-top: 16px;
    margin-top: 16px;
}

.member-specialty strong {
    display: block;
    color: #dd3b2a;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.member-specialty p {
    font-size: 0.875rem;
    color: #0f2a36;
}

/* ================================
   NAVIGATION GRID
   ================================ */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 48px 0;
}

.nav-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 32px 24px;
    text-decoration: none;
    display: block;
    box-shadow: 0 4px 16px rgba(15, 42, 54, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    text-align: center;
}

.nav-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(43, 171, 225, 0.2);
    border-color: #2babe1;
}

.nav-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.nav-item:hover .nav-icon {
    filter: grayscale(0%);
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #00374f;
    margin-bottom: 8px;
    font-family: 'Arvo', serif;
}

.nav-desc {
    font-size: 0.9375rem;
    color: #0f2a36;
    line-height: 1.5;
}

/* ================================
   ALERT BOX
   ================================ */
.alert {
    background: rgba(221, 59, 42, 0.05);
    border-left: 6px solid #dd3b2a;
    border-radius: 4px;
    padding: 24px 32px;
    margin: 32px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.alert::before {
    content: "⚠";
    font-size: 1.5rem;
    color: #dd3b2a;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #dd3b2a;
    margin-bottom: 8px;
}

.alert-text {
    color: #0f2a36;
    font-size: 0.9375rem;
}

/* ================================
   FOOTER
   ================================ */
footer {
    margin-top: 80px;
    padding: 48px 24px;
    text-align: center;
    background: rgba(0, 55, 79, 0.03);
    border-top: 4px solid #2babe1;
}

footer p {
    margin: 8px 0;
    color: #0f2a36;
}

footer .highlight {
    color: #2babe1;
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }

    h1 {
        font-size: 2rem;
    }

    .logo {
        font-size: 2.5rem;
    }

    .hero {
        padding: 40px 24px;
    }

    .hero h2 {
        font-size: 1.75rem;
    }

    .section {
        padding: 32px 24px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .quote {
        padding: 24px 32px;
        font-size: 1rem;
    }

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

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