/**
 * Le Tour de Moi - Page: Le Projet
 * Styles éditoriaux pour la page de présentation du projet.
 */

.project-page {
    background-color: #fff;
    color: var(--clr-text-main);
}

/* --- HERO IMMERSIF --- */
.project-hero {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 700px;
    background-image: url("../../images/project/project-hero.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.project-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
}

.project-hero-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--clr-primary);
    margin-bottom: 2rem;
}

.project-hero-title {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

.project-hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.project-hero-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    margin: 0 auto 4rem;
}

.project-hero-btn {
    text-decoration: none;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: transform var(--transition-base);
}

.project-hero-btn:hover {
    transform: translateY(5px);
}

.project-hero-btn::after {
    content: '↓';
    font-size: 1.2rem;
}

/* --- SECTIONS ÉDITORIALES --- */
.project-section {
    padding: 8rem 0;
}

.project-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
}

.project-title-lg {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: -0.03em;
}

/* --- SECTION: POURQUOI --- */
.project-why-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}

.project-why-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--clr-text-secondary);
}

.project-why-text p:last-child {
    margin-bottom: 0;
}

.project-why-visual img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* --- SECTION: CITATION --- */
.project-quote-section {
    padding: 10rem 0;
    background-color: #f9f9f9;
    text-align: center;
}

.project-quote-main {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    text-align: center;
    font-size: clamp(2.6rem, 3.4vw, 4rem);
}

.project-quote-main blockquote {
    font-size: inherit;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
}

.project-quote-line {
    display: block;
}

.project-quote-line-first {
    white-space: nowrap;
}

/* --- SECTION: TIMELINE / ÉTAPES --- */
.project-steps-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 8rem;
}

.project-steps-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

.project-steps-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background-color: var(--clr-border);
    transform: translateX(-50%);
}

.project-step {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    margin-bottom: 12rem;
    align-items: center;
}

.project-step:last-child {
    margin-bottom: 0;
}

.project-step-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 22px;
    background-color: var(--clr-primary);
    border: 4px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 10px rgba(198, 106, 26, 0.2);
}

.project-step-dot::after {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid var(--clr-primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: gps-pulse 3s ease-out infinite;
}

@keyframes gps-pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-step-dot::after {
        animation: none;
        opacity: 0.2;
    }
}

.project-step-content {
    display: flex;
    flex-direction: column;
}

.project-step:nth-child(even) .project-step-content {
    grid-column: 1;
    grid-row: 1;
}

.project-step:nth-child(even) .project-step-visual {
    grid-column: 2;
}

.project-step-visual {
    position: relative;
    min-width: 0;
}

.project-step-visual img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 4px;
}

.project-step-number {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--clr-primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.project-step-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.project-step-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--clr-text-secondary);
}

.project-step-list {
    margin: 1.5rem 0;
}

.project-step-list-item {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

/* Stats & Listes informatives */
.project-step-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem 0 0;
    list-style: none;
    border-top: 1px solid var(--clr-border);
}

.project-stat-item {
    display: flex;
    flex-direction: column;
    padding-left: 1.25rem;
    position: relative;
}

.project-stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background-color: var(--clr-primary);
    border-radius: 50%;
}

.project-stat-text {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--clr-text-main);
}


/* Citations secondaires */
.project-step-quote {
    margin-top: 3rem;
    padding-left: 2rem;
    border-left: 2px solid var(--clr-primary);
}

.project-step-quote blockquote {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    font-style: italic;
    margin: 0;
}

/* Image pleine largeur */
.project-full-image {
    margin: 6rem 0;
    width: 100%;
}

.project-full-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- SECTION: CONCLUSION --- */
.project-conclusion {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.project-conclusion-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.project-conclusion-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--clr-text-secondary);
    margin-bottom: 3rem;
}

.project-final-quote {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 4rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.project-final-quote-line {
    display: block;
    white-space: nowrap;
}

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

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    .project-why-grid,
    .project-step {
        gap: 4rem;
    }

    .project-quote-line-first,
    .project-final-quote-line {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .project-section {
        padding: 5rem 0;
    }

    .project-hero {
        height: auto;
        padding: 8rem 0;
    }

    .project-why-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-why-visual {
        order: 2;
    }

    .project-steps-container::before {
        left: 0;
    }

    .project-step {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 6rem;
    }

    .project-step-dot {
        left: 0;
    }

    .project-step-content {
        padding-left: 2rem;
    }

    .project-step:nth-child(even) .project-step-content {
        grid-column: 1;
        grid-row: auto;
    }

    .project-step:nth-child(even) .project-step-visual {
        grid-column: 1;
        grid-row: auto;
    }

    .project-step-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-quote-section {
        padding: 6rem 0;
    }
}

@media (max-width: 430px) {
    .project-hero-title {
        font-size: 2.5rem;
    }

    .project-hero-subtitle {
        font-size: 1.5rem;
    }
}
