/* Programme TV : jetons du guide (couleurs, police systeme, largeurs, cartes). */
:root:root {
    --theme-palette-color-1: #1756A9;
    --theme-palette-color-2: #12468A;
    --theme-palette-color-3: #172033;
    --theme-palette-color-4: #172033;
    --theme-palette-color-5: #E3E6EB;
    --theme-palette-color-6: #F5F6F8;
    --theme-palette-color-7: #F5F6F8;
    --theme-palette-color-8: #FFFFFF;
    --theme-text-color: #172033;
    --theme-headings-color: #172033;
    --theme-link-initial-color: #1756A9;
    --theme-link-hover-color: #12468A;
    --theme-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --theme-font-size: 16px;
    --theme-line-height: 1.55;
    --theme-normal-container-max-width: 1240px;
    --theme-narrow-container-max-width: 780px;
    --ptv-accent: #D92D3B;
    --ptv-radius: 8px;
}

body {
    background-color: #F5F6F8;
    color: #172033;
    font-family: var(--theme-font-family);
}

/* Cartes : blanc, bordure fine, rayon 8 px */
.entry-card,
.ct-sidebar .ct-widget,
.pxn-epgc .pxn-epgc-intro {
    background: #FFFFFF;
    border: 1px solid #E3E6EB;
    border-radius: var(--ptv-radius);
}

/* Modules du cocon TV */
.pxn-epgc .pxn-epgc-update { color: #5B6475; font-size: 14px; }
.pxn-epgc .pxn-epgc-intro { padding: 16px 18px; margin-bottom: 16px; }
.pxn-epgc .pxn-epgc-h { color: var(--theme-palette-color-1); font-weight: 600; }

/* Accueil hybride */
.ptvc-home-head h1 { font-size: clamp(24px, 4vw, 34px); margin: 0 0 12px; }
.ptvc-timenav ul { display: flex; gap: 8px; overflow-x: auto; list-style: none; margin: 0 0 24px; padding: 0 0 6px; scrollbar-width: thin; }
.ptvc-timenav a { display: inline-block; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: #FFFFFF; border: 1px solid #E3E6EB; color: #172033; text-decoration: none; font-weight: 600; font-size: 15px; }
.ptvc-timenav a:hover, .ptvc-timenav a:focus-visible { background: var(--theme-palette-color-1); border-color: var(--theme-palette-color-1); color: #FFFFFF; }
.ptvc-block { background: #FFFFFF; border: 1px solid #E3E6EB; border-radius: var(--ptv-radius); padding: 18px 20px; margin: 0 0 24px; }
.ptvc-block h2 { font-size: 22px; margin: 0 0 14px; }
.ptvc-more { margin: 12px 0 0; font-weight: 600; }
.ptvc-une-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.ptvc-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.ptvc-card { margin: 0; }
.ptvc-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #E3E6EB; }
.ptvc-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ptvc-card-title { font-size: 17px; line-height: 1.35; margin: 10px 0 4px; }
.ptvc-card-title a { color: #172033; text-decoration: none; }
.ptvc-card-title a:hover { color: var(--theme-palette-color-1); }
.ptvc-card-date { color: #5B6475; font-size: 13px; }
.ptvc-guides ul { columns: 2 260px; margin: 0; padding-left: 18px; }
.ptvc-guides li { margin: 0 0 8px; break-inside: avoid; }
@media (min-width: 690px) {
    .ptvc-grid { grid-template-columns: repeat(2, 1fr); }
    .ptvc-une-grid { grid-template-columns: repeat(2, 1fr); }
    .ptvc-une-grid .ptvc-card:first-child { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
    .ptvc-grid { grid-template-columns: repeat(3, 1fr); }
    .ptvc-une-grid { grid-template-columns: 2fr 1fr 1fr; }
    .ptvc-une-grid .ptvc-card:first-child { grid-column: auto; grid-row: span 2; }
    .ptvc-une-grid .ptvc-card:first-child .ptvc-card-title { font-size: 24px; }
}

/* Archives : 3 colonnes desktop, 2 tablette, 1 mobile */
@media (min-width: 690px) { .entries[data-archive="default"] { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .entries[data-archive="default"] { grid-template-columns: repeat(3, 1fr); } }

/* Pas de debordement horizontal global */
html, body { overflow-x: hidden; }

/* Pied de page */
.ptvc-footer { background: #172033; color: #C9D1DE; padding: 36px 0 20px; }
.ptvc-footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.ptvc-footer-title { color: #FFFFFF; font-weight: 700; margin: 0 0 10px; }
.ptvc-footer ul { list-style: none; margin: 0; padding: 0; }
.ptvc-footer ul.menu { display: block; } /* Blocksy affiche .menu en ligne (flex) : liens les uns sous les autres */
.ptvc-footer li { margin: 0 0 7px; }
.ptvc-footer a { color: #C9D1DE; text-decoration: none; font-size: 15px; }
.ptvc-footer a:hover, .ptvc-footer a:focus-visible { color: #FFFFFF; text-decoration: underline; }
@media (min-width: 1000px) { .ptvc-footer-grid { grid-template-columns: repeat(4, 1fr); } }

/* En-tete mobile : le logo (423 px de large) ne doit pas sortir de l'ecran ni pousser le bouton du menu */
@media (max-width: 999.98px) {
    [data-device="mobile"] .site-branding { min-width: 0; max-width: calc(100vw - 110px); }
    [data-device="mobile"] .site-logo-container { max-width: 100%; }
    [data-device="mobile"] .site-logo-container img { max-width: 100%; object-fit: contain; object-position: left center; }
}
