/* Pages projet — s'appuie sur style.css (polices, nav, footer, couleurs) */

.project{
    display: flex;
    flex-direction: column;
    gap: 96px;
    margin-bottom: 120px;
}

/* Hero */
.project-hero{
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.project-back{
    font-size: 14px;
    font-weight: 400;
    color: #121212;
    text-decoration: none;
    width: fit-content;
}
.project-back:hover{ text-decoration: underline; }
.project-tags{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}
.project-tags li{
    padding: 6px 14px;
    border: 1px solid rgba(18, 18, 18, 0.15);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 400;
    color: #121212;
}
.project-hero h1{
    font-size: 96px;
    font-weight: 400;
    line-height: 1;
    color: #121212;
}
.project-hero h1 span{
    font-family: 'Author', sans-serif;
    font-style: italic;
    font-weight: 600;
    color: #609A7E;
}
.project-hero .lead{
    max-width: 760px;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.4;
    color: #121212;
}

.project-cover{
    display: block;
    width: 100%;
    height: 640px;
    object-fit: cover;
    border-radius: 16px;
}

/* Encadré d'avertissement (ex. projet d'avant-vente / concept) */
.project-note{
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 760px;
    padding: 20px 24px;
    border-radius: 16px;
    background: #B4D5C5;
    color: #16442E;
}
.project-note strong{
    font-size: 16px;
    font-weight: 600;
}
.project-note p{
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

/* Fiche projet */
.project-meta{
    display: grid;
    /* autant de colonnes que d'entrées (3 ou 4 selon le projet) */
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    padding: 32px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.project-meta dt{
    font-size: 14px;
    font-weight: 300;
    color: rgba(18, 18, 18, 0.6);
    margin-bottom: 8px;
}
.project-meta dd{
    font-size: 18px;
    font-weight: 400;
    color: #121212;
}

/* Sections de texte : titre à gauche, contenu à droite */
.project-section{
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 72px;
}
.project-section h2{
    font-size: 40px;
    margin-bottom: 0;
}
.project-section .content{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.project-section p,
.project-section li{
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    color: #121212;
}
.project-section ul{
    padding-left: 20px;
}

/* Images */
.project-gallery{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.project-gallery img{
    display: block;
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 16px;
}
.project-gallery figure.wide{ grid-column: 1 / -1; }
.project-gallery figure.wide img{ height: 600px; }
.project-gallery figcaption{
    margin-top: 12px;
    font-size: 14px;
    font-weight: 300;
    color: rgba(18, 18, 18, 0.6);
}

/* Bandeau illustré pleine largeur (image à son ratio naturel) */
.project-banner img{
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

/* Captures d'interface à leur ratio naturel, avec liseré (fonds clairs) */
.project-banner.framed img,
.project-gallery.natural img{
    height: auto;
    border: 1px solid rgba(18, 18, 18, 0.08);
    box-sizing: border-box;
}
.project-banner figcaption{
    margin-top: 12px;
    font-size: 14px;
    font-weight: 300;
    color: rgba(18, 18, 18, 0.6);
}
.project-gallery.natural{ align-items: start; }
/* Rangée « paysage + portrait » : colonnes au ratio des images (1.65 et 0.49)
   pour que les deux captures aient la même hauteur */
.project-gallery.wide-tall{ grid-template-columns: 165fr 49fr; }

/* Rangée d'écrans mobiles : une capture par fonctionnalité */
.project-screens{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    list-style: none;
}
.project-screens img{
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}
/* Variante 4 colonnes, pour de vraies captures d'écran (fond blanc → liseré) */
.project-screens.cols-4{
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.project-screens.cols-3{
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.project-screens.cols-3 img,
.project-screens.cols-4 img{
    border: 1px solid rgba(18, 18, 18, 0.08);
    box-sizing: border-box;
}
.project-screens figcaption{
    margin-top: 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #121212;
}

/* Contenu à confirmer — repère temporaire, à retirer une fois le texte validé */
.todo{
    background: #FFE9A8;
    border-radius: 4px;
    padding: 0 4px;
}

/* Chiffres clés */
.project-figures{
    display: grid;
    /* 3 ou 4 chiffres selon le projet */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    list-style: none;
}
.project-figures li{
    padding: 32px;
    border-radius: 16px;
    background: #B4D5C5;
    color: #16442E;
}
.project-figures strong{
    display: block;
    font-family: 'Author', sans-serif;
    font-style: italic;
    font-size: 72px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 12px;
}
.project-figures span{
    font-size: 16px;
    font-weight: 400;
}

/* Citation */
.project-quote{
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}
.project-quote p{
    font-family: 'Author', sans-serif;
    font-style: italic;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.25;
    color: #121212;
}
.project-quote cite{
    display: block;
    margin-top: 24px;
    font-style: normal;
    font-size: 16px;
    font-weight: 300;
}

/* Projet suivant */
.project-next{
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 24px;
    border-radius: 16px;
    background: #FFFFFF;
    color: #121212;
    text-decoration: none;
    transition: background-color .2s ease;
}
.project-next:hover{ background: #B4D5C5; }
.project-next img{
    width: 320px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}
.project-next small{
    display: block;
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 8px;
}
.project-next span{
    font-size: 48px;
    font-weight: 400;
}

/* Tablette / mobile */
@media (max-width: 900px){
    .project{ gap: 64px; margin-bottom: 80px; }
    .project-hero h1{ font-size: clamp(40px, 11vw, 56px); }
    .project-hero .lead{ font-size: clamp(18px, 4.6vw, 20px); }
    /* la couverture garde son cadrage d'origine au lieu d'être rognée */
    .project-cover{ height: auto; }
    .project-section h2{ font-size: 32px; }
    .project-section p,
    .project-section li{ font-size: 17px; }
    .project-figures li{ padding: 24px; }
    .project-figures strong{ font-size: 56px; }
    .project-meta{ grid-template-columns: 1fr 1fr; }
    .project-section{ grid-template-columns: 1fr; gap: 16px; }
    .project-gallery,
    .project-gallery.wide-tall{ grid-template-columns: 1fr; }
    .project-gallery figure.portrait img{ max-width: 320px; }
    .project-gallery img,
    .project-gallery figure.wide img{ height: 320px; }
    .project-figures{ grid-template-columns: 1fr; }
    .project-screens,
    .project-screens.cols-3,
    .project-screens.cols-4{ grid-template-columns: 1fr 1fr; }
    .project-quote p{ font-size: 28px; }
    .project-next{ flex-direction: column; align-items: flex-start; gap: 16px; }
    .project-next img{ width: 100%; }
    .project-next span{ font-size: 32px; }
}
