/* ============================================================
   Thème vintage (vintagewatchexpert.com, Dr. H. Crott)
   Reprend l'apparence de l'ancien site (gabarit « hc », design icone.be) :
   Roboto fin, gris, accent rouge-orange, cartes grises en 3 colonnes.
   Clair uniquement. Palette et police : bloc :root, tout le reste en découle.
   Mesures relevées sur l'ancien site à 1280 px (2026-12-02) : conteneur 940 px, texte
   18/26 px, h1 25 px graisse 400, pages en colonne de 620 px (span8), fiches News /
   Library / Media et Book edition en 940 px, contenu à 65 px sous l'en-tête.
   ============================================================ */

@font-face {
    font-family: 'Roboto';
    src: url('fonts/roboto-latin-wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --vwe-accent:      #ff2e07;   /* rouge-orange du logo : liens, boutons */
    --vwe-accent-dark: #d62300;
    --vwe-header-bg:   #f2f2f2;   /* en-tête, cartes, accueil */
    --vwe-card-bg:     #f1f1f1;
    --vwe-nav-active:  #d8d8d8;
    --vwe-footer-bg:   #8c8c8c;
    --vwe-ink:         #000000;   /* titres, menu */

    --primary:         var(--vwe-accent);
    --primary-dark:    var(--vwe-accent-dark);
    --text:            #58585a;
    --text-muted:      #7a7a7c;
    --text-light:      #a0a0a2;
    --bg:              #ffffff;
    --bg-alt:          var(--vwe-header-bg);
    --surface:         #ffffff;
    --border:          #dcdcdc;

    --font-base:       'Roboto', system-ui, sans-serif;
    --font-size:       18px;
    --line-height:     26px;
    --max-w:           980px;   /* 940 px de contenu + 2 x 20 px */
    --radius:          0;
    --radius-lg:       0;
    --gap:             1rem;

    /* noms utilisés par quelques feuilles du core */
    --color-text: var(--text); --color-muted: var(--text-muted); --color-border: var(--border); --color-primary: var(--primary);
}

body { font-weight: 300; color: var(--text); -webkit-font-smoothing: antialiased; }
strong, b { font-weight: 500; }
h1, h2, h3, h4 { font-weight: 300; color: var(--vwe-ink); letter-spacing: 0; }
h1 { font-size: 25px; font-weight: 400; line-height: 25px; margin: 0 0 15px; }
.container { padding-inline: 20px; }
p { margin: 0 0 11.5px; }
a { color: var(--vwe-accent); }
a:hover { color: var(--vwe-accent-dark); }
:focus-visible { outline: 2px solid var(--vwe-accent); outline-offset: 3px; }

/* ── En-tête : fond gris clair, logo à gauche, menu Roboto fin ───────────── */
.site-header {
    position: relative;   /* non collant comme l'ancien site ; garde le menu mobile au-dessus du contenu */
    z-index: 100;
    background: var(--vwe-header-bg);
    border-bottom: 0;
}
.site-header .container { height: 110px; gap: 0; }
.site-brand { width: 240px; }              /* logo : colonne de 220 px + 20 px de gouttière */
.site-logo { max-height: 59px; }
.site-nav { gap: 0; margin-left: 0; }      /* menu aligné à gauche, après le logo */
.site-nav a {
    padding: 14px 20px;
    border-radius: 0;
    font-size: 22px;
    line-height: 25px;
    font-weight: 300;
    color: var(--vwe-ink);
    white-space: nowrap;
}
.site-nav a { transition: background .3s ease, color .3s ease; }
.site-nav a[aria-current="page"] { background: var(--vwe-nav-active); color: var(--vwe-ink); }
.site-nav a:hover { background: #ff2d06; color: #fff; }   /* survol : fond rouge, texte blanc, comme avant */
/* « Home » ajouté par le core : l'ancien site n'en avait pas (le logo y mène) */
.site-nav > a:first-child { display: none; }

/* Fil d'Ariane : discret, sur fond blanc */
.breadcrumb-bar { background: transparent; border-bottom: 0; padding: 20px 0 0; }
.breadcrumb { font-size: 13px; line-height: 20px; }
/* l'ancien site n'avait pas de fil d'Ariane : il prend place dans les 65 px au-dessus du titre */
.breadcrumb-bar + .site-main { padding-top: 25px; }

.site-main { padding: 65px 0 30px; }
.section { padding: 0; }

/* ── Boutons : rectangles rouges ─────────────────────────────────────────── */
.btn {
    padding: 10px 40px;
    border: 0;
    border-radius: 0;
    font-size: 14px;
    line-height: 23px;
    font-weight: 300;
    color: #fff;
    background: var(--vwe-accent);
}
.btn:hover { color: #fff; background: var(--vwe-accent-dark); }
.btn-secondary, .btn-primary { color: #fff; background: var(--vwe-accent); border: 0; }
.btn-secondary:hover, .btn-primary:hover { color: #fff; background: var(--vwe-accent-dark); }
.btn svg, .btn .ph { display: none; }   /* pas de flèche : « Read more » seul, comme avant */

/* ── Cartes (News, Library, Media) : fond gris, image, texte, bouton ─────── */
.grid { gap: 16px; }
.card-item {
    background: var(--vwe-card-bg);
    border: 0;
    padding: 18px 20px 20px;
}
.card-item:hover { box-shadow: none; }
.card-item:hover .card-img img { transform: none; }
.card-img { aspect-ratio: auto; }
.card-img { margin-right: 20px; }        /* image 243 px dans une carte de 303 px */
.card-img img { height: auto; object-fit: contain; }
.card-body { padding: 18px 0 0; display: flex; flex-direction: column; flex: 1; }
.card-date { font-size: .75rem; color: var(--text-muted); }
.card-title { font-size: 1rem; font-weight: 500; line-height: 1.4; color: var(--text); }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--vwe-accent); }
.card-excerpt { font-size: 18px; line-height: 26px; }
.card-excerpt p { margin: 0 0 11.5px; }
/* Résumé saisi en HTML (paragraphes) : le navigateur ferme le <p class="card-excerpt"> du
   gabarit, vide, et ses paragraphes suivent dans .card-body */
.card-excerpt:empty { display: none; }
.card-body > p:not([class]) { margin: 0 0 11.5px; }
.card-body > p:not([class]):empty { display: none; }
.card-actions { margin-top: auto; padding-top: 0; }

/* Cartes News : l'ancien site n'affichait ni titre ni date (le chapô les reprend souvent).
   Masqués à l'écran seulement : toujours lus par les lecteurs d'écran et les moteurs. */
.section-news .card-title,
.section-news .card-date {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Liste des News sans catégories : pas de colonne réservée à la barre latérale */
.layout-sidebar:not(:has(.layout-sidebar-aside)) { display: block; }

/* Library / Media : même grille de cartes que les News */
.card-list-item { flex-direction: column; }
.card-list-item .card-img { width: auto; }

/* ── Pages et articles ───────────────────────────────────────────────────── */
.article-header h1, .section-header h1 { margin: 0 0 15px; font-size: 25px; font-weight: 400; line-height: 25px; }
.article-header, .section-header { margin: 0; }

/* Largeurs : fiches (News, Library, Media) sur toute la largeur (940 px), pages en colonne
   de 620 px alignée à gauche, sauf une page de fiches livres (Book edition) en 940 px */
.content-article { max-width: none; margin: 0; }
.section-page .content-article { max-width: 620px; }
.section-page .content-article:has(.vwe-livre) { max-width: none; }

/* Illustration de page à gauche (About) : photo flottante, le texte l'entoure */
.page-media--left { display: block; }
.page-media--left .page-media__figure { float: left; width: 176px; margin: 0 20px 10px 0; }
.page-media--left .page-media__text { display: block; }
.article-body :is(p, li), .content-body :is(p, li) { font-size: 18px; line-height: 26px; }
.article-body p, .content-body p { margin: 0 0 11.5px; }
.article-body img, .content-body img { max-width: 100%; height: auto; }
.article-body :is(h2, h3, h4), .content-body :is(h2, h3, h4) { font-weight: 400; color: var(--vwe-ink); }
.content-body .vwe-livre h2 { color: #e3b355; font-size: 31px; font-weight: 300; line-height: 1.2; }
/* Book edition : liens « Order » (paragraphe sous le titre h3 d'une fiche livre) en boutons */
.vwe-livre h3 + p { display: flex; flex-wrap: wrap; gap: .75rem; }
.vwe-livre h3 + p a {
    padding: .65rem 1.5rem;
    font-size: .8rem;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: var(--vwe-accent);
}
.vwe-livre h3 + p a:hover { color: #fff; background: var(--vwe-accent-dark); }
.article-body iframe, .content-body iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; }
.page-media__figure img { border: 0; }
/* Image principale d'une fiche : affichée dans les listes seulement, comme sur l'ancien
   site (le texte contient ses propres photos) ; elle reste l'image de partage (og:image) */
.content-article > .article-image { display: none; }
/* Media : le résumé est le début du texte, inutile de le répéter sur la fiche */
.module-media .article-excerpt { display: none; }

/* ── Accueil (page « Home » choisie comme accueil) ────────────────────────── */
.is-home .site-main { background: var(--vwe-header-bg); padding-top: 25px; }
.is-home .breadcrumb-bar { display: none; }
.is-home .content-article { max-width: none; margin-left: 0; }
.is-home .section-page .article-header {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Pied de page : bande grise, texte blanc ─────────────────────────────── */
.site-footer {
    background: var(--vwe-footer-bg);
    border-top: 0;
    padding: 15px 0 10px;
    color: #fff;
    text-align: left;
    font-size: 18px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.vwe-footer { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 0; }
.vwe-footer > p { width: 335px; }          /* colonne de 300 px + gouttière, comme avant */
.vwe-footer ul { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.vwe-footer p { margin: 0; }
.vwe-credits { display: flex; gap: 20px; margin: 15px 0 0; font-size: 12px; }
.vwe-credits p { width: 220px; }
.vwe-credits p { margin: 0; }

@media (max-width: 768px) {
    .site-header .container { height: 80px; }
    .site-logo { max-height: 46px; }
    .site-nav { top: 100%; background: var(--vwe-header-bg); align-items: stretch; }
    .site-brand { width: auto; }
    .site-nav { margin-left: 0; }
    .site-nav a { font-size: 20px; }
    .site-main { padding-top: 40px; }
    .section-page .content-article { max-width: none; }
    .page-media--left .page-media__figure { width: 120px; }
    .vwe-credits { flex-direction: column; gap: .25rem; }
}
