/* ============================================================
   Fiches projet — CSS partagé des 10 pages projet-*.html
   Page de référence : projet-darkeyes.html. Les autres fiches
   réutilisent ces classes telles quelles, sans CSS additionnel.

   Structure HTML attendue :

   <header class="project-hero grain">
     <div class="container">
       <a class="project-back" href="projets.html" data-reveal>← Retour aux projets</a>
       <span class="kicker" data-reveal>Projet Pro · Cybersécurité</span>
       <h1 data-reveal data-reveal-delay="2">Titre du <em>projet</em></h1>
       <p class="project-subtitle" data-reveal data-reveal-delay="3">…</p>
       <div class="project-chips" data-reveal data-reveal-delay="4">
         <span class="chip">…</span>
       </div>
       <!-- Optionnel — lien externe :
       <a class="btn btn-light project-btn" href="…" target="_blank"
          rel="noopener noreferrer" data-reveal data-reveal-delay="5">Voir le site</a>
       -->
     </div>
   </header>

   <section class="project-body">
     <div class="container project-layout">
       <div class="project-content">
         <section class="project-section" data-reveal>
           <span class="project-section-index" aria-hidden="true">01</span>
           <h2>Sous-titre <em>éditorial</em></h2>
           <p>…</p>
           <ul class="project-list"><li>…</li></ul>
         </section>
         … (index 02, 03…)
         <div class="project-skills grain" data-reveal>
           <h2>Compétences <em>développées</em></h2>
           <ol class="project-skills-list"><li>…</li></ol>
         </div>
       </div>
       <aside class="project-aside">
         <div class="project-facts" data-reveal data-reveal-delay="2">
           <span class="kicker">Fiche technique</span>
           <div class="project-fact">
             <span class="project-fact-label">Label</span>
             <span class="project-fact-value">Valeur</span>
           </div>
           … (autres .project-fact)
         </div>
         <a class="project-next" href="projet-….html" data-reveal data-reveal-delay="3">
           <span class="project-next-label">Projet suivant</span>
           <span class="project-next-title">Titre du <em>projet</em></span>
           <span class="project-next-arrow" aria-hidden="true">→</span>
         </a>
       </aside>
     </div>
   </section>
   ============================================================ */

/* ── Hero projet ── */
.project-hero {
    position: relative;
    padding: 190px 0 80px;
    background: var(--coal);
    color: var(--bone);
    border-bottom: 1px solid var(--line-dark);
    overflow: hidden;
}

.project-back {
    display: flex;
    width: fit-content;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--bone-soft);
    margin-bottom: 44px;
    transition: color .25s ease, transform .3s var(--ease);
}

.project-back:hover {
    color: var(--bone);
    transform: translateX(-4px);
}

.project-hero .kicker {
    color: var(--bone-soft);
}

.project-hero h1 {
    font-size: clamp(44px, 7vw, 84px);
    max-width: 14em;
    margin-bottom: 26px;
}

.project-subtitle {
    font-size: 17px;
    line-height: 1.75;
    color: var(--bone-soft);
    max-width: 640px;
    margin-bottom: 34px;
}

.project-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--bone-soft);
}

/* Bouton d'action optionnel (à combiner avec .btn .btn-light) */
.project-btn {
    margin-top: 40px;
}

/* ── Corps — grille contenu / aside ── */
.project-body {
    padding: clamp(80px, 10vw, 128px) 0 clamp(96px, 12vw, 160px);
    background: var(--paper);
}

.project-layout {
    display: grid;
    grid-template-columns: minmax(0, 7.5fr) minmax(0, 4fr);
    gap: clamp(48px, 7vw, 104px);
    align-items: start;
}

/* ── Sous-sections de contenu ── */
.project-section {
    padding-bottom: clamp(40px, 5vw, 60px);
}

.project-section + .project-section {
    border-top: 1px solid var(--line);
    padding-top: clamp(40px, 5vw, 60px);
}

.project-section-index {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .28em;
    color: var(--ink-soft);
    margin-bottom: 14px;
}

.project-section h2,
.project-skills h2 {
    font-size: clamp(28px, 2.8vw, 34px);
    margin-bottom: 20px;
}

.project-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink-soft);
    max-width: 640px;
    margin-bottom: 16px;
}

.project-section p strong {
    color: var(--ink);
}

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

/* Liste à puces fines (carré bleu 5px) */
.project-list {
    max-width: 640px;
}

.project-list li {
    position: relative;
    padding: 9px 0 9px 26px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-soft);
}

.project-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 19px;
    width: 5px;
    height: 5px;
    background: var(--blue);
}

/* ── Photos : figure simple et galerie ── */
.project-figure {
    margin-top: 32px;
    max-width: 700px;
}

.project-figure .figure-frame {
    aspect-ratio: 16 / 9;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 0 0 clamp(40px, 5vw, 60px);
    border-top: 1px solid var(--line);
    padding-top: clamp(40px, 5vw, 60px);
}

.project-gallery-item--wide {
    grid-column: 1 / -1;
}

.project-gallery-item--wide .figure-frame {
    aspect-ratio: 16 / 10;
}

.project-gallery-item .figure-frame {
    aspect-ratio: 1 / 1;
}

.project-gallery + .project-section {
    border-top: 1px solid var(--line);
    padding-top: clamp(40px, 5vw, 60px);
}

/* ── Encart « Compétences développées » ── */
.project-skills {
    position: relative;
    padding: clamp(36px, 5vw, 56px);
    background: var(--coal);
    color: var(--bone);
    border-radius: 2px;
    overflow: hidden;
}

.project-skills h2 {
    margin-bottom: 28px;
}

.project-skills-list {
    list-style: none;
    counter-reset: skill;
}

.project-skills-list li {
    counter-increment: skill;
    position: relative;
    padding: 16px 0 16px 52px;
    border-top: 1px solid var(--line-dark);
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--bone-soft);
}

.project-skills-list li::before {
    content: counter(skill, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
    color: var(--blue-bright);
}

/* ── Aside « fiche technique » ── */
.project-aside {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-fact {
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 22px 26px;
}

/* Cartes empilées : les hairlines fusionnent */
.project-fact + .project-fact {
    margin-top: -1px;
}

.project-fact-label,
.project-next-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--ink-soft);
    margin-bottom: 10px;
}

.project-fact-value {
    display: block;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--ink);
}

/* ── Mini-carte « Projet suivant » ── */
.project-next {
    position: relative;
    display: block;
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 24px 56px 24px 26px;
    transition: border-color .3s ease, background .3s ease, transform .3s var(--ease);
}

.project-next:hover {
    border-color: color-mix(in srgb, var(--ink) 45%, transparent);
    background: var(--paper-raised);
    transform: translateY(-4px);
}

.project-next-label {
    margin-bottom: 12px;
}

.project-next-title {
    display: block;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: var(--ink);
}

.project-next-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--ink-soft);
    transition: transform .3s var(--ease), color .25s ease;
}

.project-next:hover .project-next-arrow {
    transform: translateX(5px);
    color: var(--blue);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .project-layout {
        grid-template-columns: 1fr;
        gap: 72px;
    }

    .project-aside {
        position: static;
    }
}

@media (max-width: 768px) {
    .project-hero {
        padding: 150px 0 60px;
    }

    .project-back {
        margin-bottom: 32px;
    }

    .project-body {
        padding: 64px 0 96px;
    }

    .project-layout {
        gap: 56px;
    }

    .project-skills {
        padding: 32px 24px;
    }

    .project-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-gallery-item .figure-frame {
        aspect-ratio: 4 / 3;
    }

    .project-skills-list li {
        padding-left: 44px;
    }

    .project-fact {
        padding: 20px 22px;
    }
}
