/* =========================================================
   PROJETS GEII — styles spécifiques à la page
   Reprend la palette de styles.css : bleu nuit / cyan néon
   ========================================================= */

:root {
    --p-bg-glass: rgba(30, 192, 255, 0.08);
    --p-border: rgba(30, 192, 255, 0.3);
    --p-accent: #1ec0ff;
    --p-text-soft: #e0f7ff;
}

.projects-container {
    padding: 120px 40px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== EN-TÊTE DE PAGE ===== */
.page-header {
    text-align: center;
    margin-bottom: 70px;
}

.page-eyebrow {
    color: var(--p-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-title {
    font-size: 2.6rem;
    margin: 0 0 18px;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(30, 192, 255, 0.5);
}

.page-subtitle {
    max-width: 700px;
    margin: 0 auto 25px;
    color: var(--p-text-soft);
    line-height: 1.7em;
    font-size: 16px;
}

.page-meta {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.meta-pill {
    background: var(--p-bg-glass);
    border: 1px solid var(--p-border);
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 14px;
    color: #ffffff;
}

/* ===== SECTIONS GÉNÉRIQUES ===== */
.project-section {
    margin: 70px 0;
}

.section-title-center {
    text-align: center;
    color: var(--p-accent);
    font-size: 1.8rem;
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(30, 192, 255, 0.5);
}

.section-grid.two-col {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: stretch;
}

.section-grid.two-col.reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.section-grid.two-col.reverse .section-card {
    order: 1;
}

.section-text {
    text-align: left;
}

.section-text h2 {
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 1.6rem;
}

.section-text p {
    color: var(--p-text-soft);
    line-height: 1.8em;
    font-size: 15.5px;
}

.section-card {
    background: var(--p-bg-glass);
    border: 1px solid var(--p-border);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 30px 35px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.section-card h3 {
    color: var(--p-accent);
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 1.3rem;
}

.section-card .card-subtitle {
    color: var(--p-text-soft);
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.85;
}

.section-card.highlight-card {
    border-color: rgba(30, 192, 255, 0.5);
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.check-list li {
    color: var(--p-text-soft);
    padding: 8px 0 8px 28px;
    position: relative;
    line-height: 1.5em;
    font-size: 15px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--p-accent);
    font-weight: bold;
}

/* ===== SPEC LIST (capteur) ===== */
.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14.5px;
}

.spec-list li:last-child {
    border-bottom: none;
}

.spec-list li span:first-child {
    color: var(--p-text-soft);
    opacity: 0.8;
}

.spec-list li span:last-child {
    color: #ffffff;
    font-weight: 600;
}

.flow-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
}

.flow-steps span {
    color: var(--p-text-soft);
}

.flow-steps span:nth-child(odd) {
    background: var(--p-bg-glass);
    border: 1px solid var(--p-border);
    padding: 8px 16px;
    border-radius: 20px;
    color: #ffffff;
    font-weight: 600;
}

.flow-steps span:nth-child(even) {
    color: var(--p-accent);
}

/* ===== MATÉRIEL : GRID D'APPAREILS ===== */
.device-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.device-grid.three-equal {
    grid-template-columns: repeat(3, 1fr);
}

.device-card {
    background: var(--p-bg-glass);
    border: 1px solid var(--p-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.device-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 20px rgba(30, 192, 255, 0.35);
}

.device-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.device-card h3 {
    color: var(--p-accent);
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.device-card p {
    color: var(--p-text-soft);
    font-size: 14.5px;
    line-height: 1.6em;
    margin: 0;
}

.env-note {
    text-align: center;
    margin-top: 35px;
    color: var(--p-text-soft);
    font-size: 14.5px;
    opacity: 0.9;
}

.env-note strong {
    color: #ffffff;
}

/* ===== PROBLÈMES RENCONTRÉS ===== */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.problem-card {
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--p-accent);
    border-radius: 0 12px 12px 0;
    padding: 20px 25px;
}

.problem-card h3 {
    color: #ffffff;
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.problem-card p {
    color: var(--p-text-soft);
    font-size: 14.5px;
    line-height: 1.6em;
    margin: 0;
}

/* ===== TIMELINE / VISION ===== */
.timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.timeline-step {
    background: var(--p-bg-glass);
    border: 1px solid var(--p-border);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: left;
    position: relative;
}

.timeline-step.final {
    border-color: var(--p-accent);
    box-shadow: 0 0 18px rgba(30, 192, 255, 0.3);
}

.timeline-index {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--p-accent);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.timeline-step h3 {
    color: #ffffff;
    font-size: 1rem;
    margin: 0 0 8px;
}

.timeline-step p {
    color: var(--p-text-soft);
    font-size: 13.5px;
    line-height: 1.55em;
    margin: 0;
}

/* ===== COMPÉTENCES ===== */
#competences .skills {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.skill-btn {
    background: var(--p-bg-glass);
    border: 1px solid var(--p-border);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skill-btn:hover {
    background: rgba(30, 192, 255, 0.18);
    box-shadow: 0 0 14px rgba(30, 192, 255, 0.5);
    transform: translateY(-2px);
}

/* ===== MODAL COMPÉTENCES ===== */
.skill-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.skill-modal.open {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #13315c, #0a1f44);
    border: 1px solid var(--p-border);
    border-radius: 16px;
    padding: 35px 40px;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    color: var(--p-accent);
    margin-top: 0;
}

.modal-content p {
    color: var(--p-text-soft);
    line-height: 1.7em;
}

.close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 22px;
    color: #ffffff;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.close-btn:hover {
    opacity: 1;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .timeline {
        grid-template-columns: repeat(3, 1fr);
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .section-grid.two-col,
    .section-grid.two-col.reverse {
        grid-template-columns: 1fr;
    }

    .section-grid.two-col.reverse .section-card {
        order: 0;
    }

    .device-grid,
    .device-grid.three-equal {
        grid-template-columns: 1fr 1fr;
    }

    .timeline {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .projects-container {
        padding: 110px 20px 60px;
    }

    .page-title {
        font-size: 2rem;
    }

    .device-grid,
    .device-grid.three-equal,
    .timeline {
        grid-template-columns: 1fr;
    }

    .skills {
        flex-direction: column;
        align-items: center;
    }
}