/*
 * page-projet.css — Feuille de style de la page générique page-projet.php
 * (page d'un projet ouvert au mécénat, servie pour chaque ?id=<slug>).
 *
 * Constantes de la maquette figma/concept_page-projet-1.png et du cahier des
 * charges prompts/prompt-pages-projet.md : sous-titre en petites capitales
 * jaunes #C9A84C, titre de page en bleu marine #0B1F4B dans une police serif
 * (Source Serif 4, chargée via le hook $google_fonts de header.php).
 *
 * Police du corps : Inter (Google Fonts), comme devenir-donateur.css.
 */

:root {
    --jaune-soutien: #C9A84C;                   /* sous-titre « — SOUTIEN AU … » */
    --bleu-marine-titre: #0B1F4B;               /* titre de la page projet */
    --fond-gris-clair: #F7F7F5;
    --bleu-profond-header: #2C2F7D;
    --texte: #333333;
    --texte-secondaire: #727272;
    --bleu-lien: #0353D6;
    --police-serif-titre: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

/* ------------------------------------------------------------------ */
/* Page projet : tout en Inter, titres en serif                         */
/* ------------------------------------------------------------------ */
.page-projet {
    font-family: 'Inter', Arial, sans-serif;
    color: var(--texte);
    background: #FFFFFF;
}
.page-projet .page-projet-contenu {
    padding: 60px 0 70px; /* body a déjà margin-top:140px (header opaque) */
}

/* ------------------------------------------------------------------ */
/* En-tête de la page : « Autres projets → » en haut à droite           */
/* ------------------------------------------------------------------ */
.page-projet .entete-projet {
    position: relative;
    margin-bottom: 45px;
}
.page-projet .autres-projets {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--texte);
    text-decoration: none;
}
.page-projet .autres-projets:hover { text-decoration: underline; }
.page-projet .sur-titre {
    color: var(--jaune-soutien);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}
.page-projet .titre-page {
    font-family: var(--police-serif-titre);
    color: var(--bleu-marine-titre);
    font-size: 40px;
    line-height: 1.2;
    font-weight: 600;
    max-width: 900px;
    margin-bottom: 10px;
}
.page-projet .mention-priorite {
    font-family: var(--police-serif-titre);
    color: var(--bleu-marine-titre);
    font-size: 26px;
    font-weight: 600;
}
@media (max-width: 767px) {
    .page-projet .titre-page { font-size: 28px; }
    .page-projet .mention-priorite { font-size: 20px; }
    .page-projet .autres-projets { position: static; display: inline-block; margin-bottom: 18px; }
}

/* ------------------------------------------------------------------ */
/* Les trois cartes : le besoin, la solution, le financement            */
/* ------------------------------------------------------------------ */
.page-projet .cartes-projet {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
@media (max-width: 991px) {
    .page-projet .cartes-projet { grid-template-columns: 1fr; }
}
.page-projet .carte-etape img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 16px;
}
.page-projet .carte-etape .etiquette {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--texte-secondaire);
    margin-bottom: 8px;
}
.page-projet .carte-etape h2 {
    font-family: var(--police-serif-titre);
    color: var(--bleu-marine-titre);
    font-size: 21px;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 10px;
}
.page-projet .carte-etape .texte {
    font-size: 15px;
    line-height: 1.6;
    color: var(--texte-secondaire);
}

/* ------------------------------------------------------------------ */
/* Contact du responsable du projet                                     */
/* ------------------------------------------------------------------ */
.page-projet .contact-projet {
    margin: 40px 0 0;
    font-size: 15px;
}
.page-projet .contact-projet a { color: var(--bleu-lien); }

/* ------------------------------------------------------------------ */
/* Partie inférieure : texte commun (gauche) + appel au don (droite)   */
/* ------------------------------------------------------------------ */
.page-projet .projet-inferieur {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    border-top: 1px solid #E5E5E5;
    margin-top: 45px;
    padding-top: 45px;
}
@media (max-width: 991px) {
    .page-projet .projet-inferieur { grid-template-columns: 1fr; }
}
.page-projet .texte-commun h2 {
    font-family: var(--police-serif-titre);
    color: var(--bleu-marine-titre);
    font-size: 28px;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 16px;
}
.page-projet .texte-commun p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 14px;
}
.page-projet .cta-don {
    align-self: start;
    background: var(--fond-gris-clair);
    border-radius: 15px;
    padding: 30px;
}
.page-projet .bouton-soutenir {
    display: block;
    background: var(--bleu-profond-header);
    color: #FFFFFF;
    text-align: center;
    font-weight: 700;
    font-size: 17px;
    padding: 16px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: filter .2s ease-in-out;
}
.page-projet .bouton-soutenir:hover { filter: brightness(1.15); color: #FFFFFF; }
.page-projet .lien-l1214 {
    font-size: 13px;
    margin-top: 16px;
}
.page-projet .lien-l1214 a { color: var(--bleu-lien); }

/* ------------------------------------------------------------------ */
/* Page 404 (projet inconnu ou fermé)                                   */
/* ------------------------------------------------------------------ */
.page-projet .page-projet-404 {
    padding: 60px 0 70px;
}
.page-projet .page-projet-404 h1 {
    font-family: var(--police-serif-titre);
    color: var(--bleu-marine-titre);
    font-size: 32px;
    margin-bottom: 16px;
}
.page-projet .page-projet-404 a { color: var(--bleu-lien); }
