/*** theming (dark is the default) ***/
:root {
    --bg: #1a1a1a;
    --text: #e0e0e0;
    --accent: #4ea3b8;
    --muted: #aaaaaa;
}

:root[data-theme="light"] {
    --bg: #fafafa;
    --text: #222222;
    --accent: #025a6c;
    --muted: #555555;
}

body {
    background: var(--bg);
    color: var(--text);
}

.theme-toggle {
    font-family: 'Courier New', Courier;
    font-size: 0.85rem;
    color: var(--accent);
    background: none;
    border: 1px solid var(--accent);
    border-radius: 3px;
    padding: 2px 8px;
    cursor: pointer;
    margin-left: 12px;
}

.theme-toggle:hover {
    background: var(--accent);
    color: var(--bg);
}

.theme-img-dark {
    display: none;
}

:root[data-theme="dark"] .theme-img-light {
    display: none;
}

:root[data-theme="dark"] .theme-img-dark {
    display: inline;
}

footer {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    display: flex;
    justify-content: center;
    padding: 3px;
    background-color: var(--accent);
    color: white;
}

courrier {
    width: 66%;
    margin-left: 10%;
    font-family: 'Courier New', Courier;
    font-size: 0.8rem;
    justify-content: left;
    padding: 16px;
    background-color: #ffffff;
    color: rgb(24, 24, 24);
}

h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.7rem;
    letter-spacing: 1.1px;
    justify-content: left;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
}

h1 a {
    color: inherit;
    text-decoration: none;
}

h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.0rem;
    justify-content: left;
    padding: 6px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

.error {
    font-family: 'Courier New', Courier;
    font-size: 1.2rem;
    justify-content: center;
    padding: 6px;
}

p.ex1 {
  margin-left: 10%;
}

.svgimg img {
	width: 80%;
}


/*** table accueil ***/
.menu {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1.2px;
    padding: 0px;
    text-align: left;
}

.menu a {
    color: var(--accent);
    text-decoration: none;
}

/*** table of contents ***/
.toc {
    width: 60%;
    border: 0px;
    margin-left: 10%;
    font-family: 'Courier New', Courier;
    font-size: 1.2rem;
    letter-spacing: 1.2px;
    tr {
        width: 50%;
        text-align: left;
    }
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
  }

.iprefer {
    width: 100%;
    border: 0px;
    font-family: 'Courier New', Courier;
    font-size: 0.8rem;
    letter-spacing: 1.2px;
    padding: 6px;
/*    tr {
        width: 50%;
        text-align: left;
    }
*/
}

/*** top bar (site logo + main navigation) ***/
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 92%;
    margin: 0 auto 24px auto;
}

.topbar .sitelogo {
    font-family: 'Courier New', Courier;
    font-size: 1.1rem;
    letter-spacing: 1.2px;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}

nav.mainnav {
    width: auto;
    margin: 0;
    font-family: 'Courier New', Courier;
    font-size: 1.1rem;
    text-align: right;
}

nav.mainnav a {
    margin: 0 16px;
    color: var(--accent);
    text-decoration: none;
}

nav.subnav {
    width: 66%;
    margin: 8px 0 8px 10%;
    font-family: 'Courier New', Courier;
    font-size: 0.9rem;
    text-align: center;
}

nav.subnav a {
    margin: 0 6px;
    color: var(--accent);
    text-decoration: none;
}

.topbar-right {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.lang-switch a {
    font-family: 'Courier New', Courier;
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid var(--accent);
    border-radius: 3px;
    padding: 2px 8px;
    white-space: nowrap;
}

.lang-switch a:hover {
    background: var(--accent);
    color: #fff;
}

/*** archive article pages ***/
.article-breadcrumb {
    width: 92%;
    margin: 0 auto;
    font-family: 'Courier New', Courier;
    font-size: 0.8rem;
}

.article-breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.article-date {
    width: 92%;
    margin: 4px auto 12px auto;
    font-family: 'Courier New', Courier;
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--accent);
}

.article-draft-badge {
    width: 92%;
    margin: 4px auto;
    font-family: 'Courier New', Courier;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #c0392b;
}

.article-descriptif, .article-chapo {
    width: 92%;
    margin: 8px auto;
    font-family: 'Courier New', Courier;
    font-size: 0.95rem;
    color: var(--muted);
}

section.content.article-body {
    width: 92%;
    margin: 16px auto;
}

.article-ps {
    width: 92%;
    margin: 16px auto;
    font-family: 'Courier New', Courier;
    font-size: 0.85rem;
    color: var(--muted);
    border-top: 1px solid #ddd;
    padding-top: 8px;
}

.article-see-also {
    width: 92%;
    margin: 16px auto;
    font-family: 'Courier New', Courier;
    font-size: 0.85rem;
    color: var(--muted);
}

.article-see-also a {
    color: var(--accent);
}

.article-doc a {
    color: var(--accent);
}

.article-figure {
    margin: 16px auto;
    text-align: center;
}

.article-figure img {
    max-width: 100%;
    border-radius: 2px;
}

/* logos drawn for a light background: flip to white in the (default) dark theme */
.logo-invert-dark {
    filter: invert(1);
}
:root[data-theme="light"] .logo-invert-dark {
    filter: none;
}

/* logos drawn for a dark background: flip to black in the light theme */
:root[data-theme="light"] .logo-invert-light {
    filter: invert(1);
}

.article-figure figcaption {
    font-family: 'Courier New', Courier;
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 4px;
}

.article-album {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    margin: 16px auto;
}

.article-album-small {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.article-album-small img {
    width: auto;
    height: auto;
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}

.article-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    width: 92%;
    margin: 24px auto;
}

.article-gallery figure {
    margin: 0;
    flex: 0 1 calc(25% - 18px);
    max-width: calc(25% - 18px);
    text-align: center;
}

.article-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 2px;
}

.article-gallery figcaption {
    font-family: 'Courier New', Courier;
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 6px;
}

.article-attachments {
    width: 92%;
    margin: 16px auto;
    border-top: 1px solid #ddd;
    padding-top: 12px;
}

.article-attachments ul {
    font-family: 'Courier New', Courier;
    font-size: 0.85rem;
}

.article-attachments a {
    color: var(--accent);
}

.article-album img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 2px;
}

section.content video, section.content audio {
    max-width: 100%;
    display: block;
    margin: 12px auto;
}

/*** homepage table navigation ***/
nav.nav-table table {
    width: 90%;
    margin: 0 auto 24px auto;
    border: 0;
    border-collapse: collapse;
    table-layout: fixed;
    font-family: 'Courier New', Courier;
    font-size: 1.1rem;
}

nav.nav-table td {
    width: 20%;
    text-align: left;
    vertical-align: middle;
    padding: 8px;
}

nav.nav-table a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

nav.nav-table a:hover {
    border-bottom: 1px solid var(--accent);
}

nav.nav-table img {
    width: 360px;
    height: 360px;
}

nav.nav-table td.align-bottom {
    vertical-align: bottom;
}

/*** content sections (services, bio, travaux...) ***/
section.content {
    width: 66%;
    margin-top: 16px;
    margin-left: 10%;
    margin-bottom: 24px;
}

section.content a {
    color: var(--accent);
    text-decoration: none;
}

section.content p.bio a {
    color: var(--accent) !important;
    text-decoration: none !important;
}

section.content hr.section-sep {
    border: none;
    border-top: 1px solid var(--accent);
    opacity: 0.3;
    margin: 24px 0;
}

section.content h2 {
    font-size: 1.3rem;
    text-align: left;
    width: auto;
    margin: 0 0 8px 0;
    color: var(--accent);
}

section.content h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

section.content h4 {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 16px 0 2px 0;
}

section.content p, section.content ul {
    font-family: 'Courier New', Courier;
    font-size: 0.9rem;
    line-height: 1.5;
}

section.content ul {
    margin-top: 4px;
}

section.content .tagline {
    font-style: italic;
}

section.content .pourqui {
    font-size: 0.85rem;
    color: var(--muted);
}

.cta {
    display: block;
    width: 66%;
    margin: 24px 0 24px 10%;
    font-family: 'Courier New', Courier;
    font-size: 1.1rem;
}

.cta a {
    color: var(--accent);
}

.worklist {
    font-family: 'Courier New', Courier;
    font-size: 0.85rem;
    line-height: 1.6;
    list-style: square;
}

/*** invisible/borderless data tables (chronologies, worklists...) ***/
.table-scroll {
    width: 92%;
    margin: 16px auto;
    overflow-x: auto;
}

table.invisible-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Courier New', Courier;
    font-size: 0.85rem;
}

table.invisible-table th,
table.invisible-table td {
    text-align: left;
    vertical-align: top;
    padding: 6px 14px 6px 0;
}

table.invisible-table thead th {
    color: var(--accent);
    font-weight: bold;
    border-bottom: 1px solid var(--accent);
}

table.invisible-table tbody tr {
    border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}

table.invisible-table .oeuvre {
    font-style: italic;
}

table.invisible-table .annee {
    white-space: nowrap;
}

/*** ================================================================
     Fonocanal page — local styles
     Base copied from fred.css on 2026-08-30; rules below are specific
     to /fonocanal/index.html and are safe to diverge from the site.
     ================================================================ ***/

/* --- closure / status notice ------------------------------------- */
.fono-notice {
    box-sizing: border-box;
    width: 92%;
    margin: 0 auto 16px auto;
    padding: 12px 16px;
    border: 2px solid var(--accent);
    border-radius: 4px;
    font-family: 'Courier New', Courier;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.55;
    color: var(--muted);
    animation: fono-notice-flash 2.4s ease-in-out infinite;
}

@keyframes fono-notice-flash {
    0%, 100% {
        border-color: var(--accent);
        box-shadow: 0 0 0 0 rgba(78, 163, 184, 0);
    }
    50% {
        border-color: rgba(78, 163, 184, 0.25);
        box-shadow: 0 0 10px 1px rgba(78, 163, 184, 0.35);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fono-notice {
        animation: none;
    }
}

.fono-notice p {
    margin: 0.4em 0;
}

.fono-notice a {
    color: var(--accent);
    text-decoration: none;
}

/* --- full-bleed hero image ------------------------------------- */
body {
    overflow-x: hidden;
}

.fono-hero {
    margin: 0 calc(50% - 50vw) 28px;
    width: 100vw;
}

.fono-hero img {
    display: block;
    width: 100%;
    height: auto;
}

/* --- gallery: even 3-up on this page ---------------------------- */
.article-gallery.fono-gallery {
    gap: 20px;
}

.article-gallery.fono-gallery figure {
    flex: 0 1 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
}

.article-gallery.fono-gallery img {
    aspect-ratio: 4 / 3;
    transition: filter 0.15s ease;
}

.article-gallery.fono-gallery a:hover img {
    filter: brightness(1.08);
}

@media (max-width: 680px) {
    .article-gallery.fono-gallery figure {
        flex-basis: 100%;
        max-width: 100%;
    }
}

/* --- sound extracts: flat list --------------------------------- */
.fono-tracks {
    width: 92%;
    margin: 12px auto 24px auto;
    padding: 0;
    list-style: none;
}

.fono-tracks li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.18);
}

.fono-tracks li:first-child {
    border-top: 1px solid rgba(128, 128, 128, 0.18);
}

.fono-track-title {
    display: block;
    margin-bottom: 6px;
    font-family: 'Courier New', Courier;
    font-size: 0.9rem;
    color: var(--accent);
}

.fono-track-title .fono-track-num {
    color: var(--muted);
    margin-right: 8px;
}

.fono-tracks audio {
    width: 100%;
    max-width: 460px;
    display: block;
    margin: 0;
}

.fono-tracks-note {
    width: 92%;
    margin: 0 auto 24px auto;
    font-family: 'Courier New', Courier;
    font-size: 0.8rem;
    color: var(--muted);
}
