/* ============================================================================
   Montres section — visual variant on top of the standard portfolio cards.
   Loaded AFTER index/index.css and pc-index.css so it overrides them.
   ============================================================================ */

/* --- Page-level accent: a warm bronze/gold tone for the watchmaking section --- */
:root {
    --montres-accent: #b8860b;          /* Dark goldenrod — vintage feel */
    --montres-accent-hover: #d4a017;    /* Slightly brighter on hover */
    --montres-id-bg: rgba(184, 134, 11, 0.12);
    --montres-id-color: #8b6508;
    --montres-status-repair: #c0392b;     /* Red-ish: à réparer / to repair */
    --montres-status-progress: #d4a017;   /* Gold: en cours / in progress */
    --montres-status-done: #27ae60;       /* Green: réparé / repaired */
}

/* --- Hero-ish header: simpler than the main portfolio --- */
.montres-hero {
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
}
.montres-hero h1 {
    margin-bottom: 10px;
}
.montres-hero p {
    color: var(--colors-font);
    opacity: 0.75;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* --- Watch cards: same .projet base, with a .projet-montre modifier --- */
.projet-montre {
    position: relative;
    border: 1px solid rgba(184, 134, 11, 0.25);
    border-radius: 10px;
    padding: 12px;
    /* box-sizing: include border + padding inside the width so the PC layout
       (which sets .projet { width: 46%; margin: 2% }) still fits two cards
       per row even with our extra border and padding. */
    box-sizing: border-box;
    transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.projet-montre:hover {
    border-color: var(--montres-accent);
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.18);
    transform: translateY(-2px);
}
.projet-montre a {
    color: var(--colors-font);
    text-decoration: none;
}
.projet-montre a img {
    border-radius: 6px;
    height: auto;
    width: auto;
    max-width: 100%;
}

/* The big project ID overlaid in the top-right corner of the thumbnail */
.projet-montre .montre-id {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--montres-id-bg);
    color: var(--montres-id-color);
    font-size: 1.6rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    backdrop-filter: blur(6px);
    z-index: 2;
    pointer-events: none;
}

/* Title under the image */
.projet-montre h3 {
    margin-top: 8px;
    color: var(--montres-accent);
}

/* Status badge — replaces the "tags" line of standard cards */
.projet-montre .montre-status {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.projet-montre .montre-status.to-repair {
    background: rgba(192, 57, 43, 0.14);
    color: var(--montres-status-repair);
}
.projet-montre .montre-status.in-progress {
    background: rgba(212, 160, 23, 0.18);
    color: var(--montres-status-progress);
}
.projet-montre .montre-status.done {
    background: rgba(39, 174, 96, 0.16);
    color: var(--montres-status-done);
}

/* --- Watch project page: identification block --- */
.montre-fiche {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px 16px;
    margin: 20px 0 30px;
    padding: 16px;
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 10px;
    background: rgba(184, 134, 11, 0.04);
}
.montre-fiche dt {
    font-weight: 700;
    color: var(--montres-accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.montre-fiche dd {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
}

/* Section accent for the watch project pages: heading underline */
.montre-page h2 {
    border-bottom: 2px solid var(--montres-accent);
    padding-bottom: 4px;
    display: inline-block;
}

/* Watch project pages don't have a "related projects" grid before the back
   button, so the .retour link sits right after the last text section. The
   default .retour rule (defined in projet.css) doesn't set a display value,
   so the link stays inline and ends up overlapping the previous paragraph.
   Forcing a block-level layout with auto-width margins puts it cleanly on
   its own line, with a clear gap above. */
.montre-page .retour {
    display: block;
    width: fit-content;
    margin-top: 60px;
    margin-left: auto;
    margin-right: auto;
    clear: both;
}

/* --- Comparison projects: two identification fiches side by side --- */
/* Used when a single project page documents two watches at once.
   On mobile the two fiches stack; from 650px they sit side by side. */
.montre-fiches-double {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0 30px;
}
.montre-fiches-double .fiche-col {
    flex: 1;
}
.montre-fiches-double .fiche-col h4 {
    color: var(--montres-accent);
    margin: 0 0 8px 0;
    font-size: 1.05rem;
}
.montre-fiches-double .montre-fiche {
    margin: 0;
    height: 100%;
    box-sizing: border-box;
}
@media screen and (min-width: 650px) {
    .montre-fiches-double {
        flex-direction: row;
    }
}
