/* =========================================================================
   BDIoT Academic — feuille de style principale
   -------------------------------------------------------------------------
   Identite visuelle : societe savante / revue academique.
   Palette : encre marine + papier ivoire + laiton (accent).
   Typo     : Lora (titres, serif) / Source Sans 3 (texte) / IBM Plex Mono (labels, dates).
   Signature : sceau/medaillon d'edition (motif repris en 3 endroits maximum).
   ========================================================================= */

:root {
	--ink-900: #0b1e3b;
	--ink-800: #122a4d;
	--ink-700: #1b3a63;
	--ink-100: #dce3ec;
	--paper-50: #f7f5ee;
	--paper-100: #efe9da;
	--brass-300: #d9c48a;
	--brass-500: #b08d3d;
	--brass-700: #8c6d26;
	--text: #26303e;
	--text-muted: #5b6b80;
	--white: #ffffff;
	--rule: #d8d2c0;
	--radius: 3px;
	--shadow-card: 0 1px 2px rgba(11, 30, 59, 0.06), 0 8px 24px -12px rgba(11, 30, 59, 0.18);
	--font-display: "Lora", Georgia, "Times New Roman", serif;
	--font-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
	--font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
	--container: 1180px;
}

/* ---------- Reset sobre ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
	margin: 0;
	background: var(--paper-50);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-700); text-decoration: none; }
a:hover { color: var(--brass-700); }
ul, ol { padding-left: 1.2em; }
table { border-collapse: collapse; width: 100%; }
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link {
	position: absolute; left: 8px; top: -48px; z-index: 10000;
	background: var(--ink-900); color: var(--white); padding: 10px 16px;
	border-radius: var(--radius); transition: top 0.2s ease;
}
.skip-link:focus { top: 8px; color: var(--white); }
:focus-visible { outline: 2px solid var(--brass-500); outline-offset: 2px; }

.bdiot-container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Filet superieur (detail editorial) ---------- */
.bdiot-topline { height: 4px; background: linear-gradient(90deg, var(--ink-900) 0%, var(--brass-500) 50%, var(--ink-900) 100%); }

/* =========================================================================
   Sceau / medaillon d'edition — element de signature (3 usages max)
   ========================================================================= */
.bdiot-seal { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bdiot-seal__ring {
	display: flex; align-items: center; justify-content: center;
	border: 1.5px solid var(--brass-500);
	border-radius: 50%;
	position: relative;
}
.bdiot-seal__ring::before {
	content: ""; position: absolute; inset: 3px; border: 1px solid var(--brass-300); border-radius: 50%;
}
.bdiot-seal__num { font-family: var(--font-mono); color: var(--brass-500); font-weight: 600; letter-spacing: 0.5px; }
.bdiot-seal--sm .bdiot-seal__ring { width: 40px; height: 40px; }
.bdiot-seal--sm .bdiot-seal__num { font-size: 12px; }
.bdiot-seal--md .bdiot-seal__ring { width: 56px; height: 56px; }
.bdiot-seal--md .bdiot-seal__num { font-size: 15px; }
.bdiot-seal--lg .bdiot-seal__ring { width: 84px; height: 84px; border-width: 2px; }
.bdiot-seal--lg .bdiot-seal__num { font-size: 22px; }
.bdiot-hero .bdiot-seal__ring { border-color: var(--brass-300); }
.bdiot-hero .bdiot-seal__num { color: var(--brass-300); }
.bdiot-hero .bdiot-seal { margin-bottom: 18px; }

/* =========================================================================
   Masthead / en-tete
   ========================================================================= */
.bdiot-masthead { background: var(--paper-50); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 500; }
.bdiot-masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 24px; }
.bdiot-brand { display: flex; align-items: center; gap: 14px; color: var(--ink-900); }
.bdiot-brand__logo img { max-height: 56px; width: auto; }
.bdiot-brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.bdiot-brand__title { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink-900); }
.bdiot-brand__tagline { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brass-700); margin-top: 2px; }

.bdiot-primary-nav .bdiot-menu { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.bdiot-primary-nav .bdiot-menu li { position: relative; }
.bdiot-primary-nav .bdiot-menu a {
	display: block; padding: 10px 14px; color: var(--ink-800);
	font-size: 14.5px; font-weight: 600; letter-spacing: 0.2px;
	border-radius: var(--radius);
}
.bdiot-primary-nav .bdiot-menu a:hover { color: var(--brass-700); background: var(--paper-100); }
.bdiot-primary-nav .bdiot-menu .current-menu-item > a,
.bdiot-primary-nav .bdiot-menu .current_page_item > a {
	color: var(--brass-700);
	box-shadow: inset 0 -2px 0 var(--brass-500);
}
.bdiot-menu-hint { font-size: 12px; color: var(--text-muted); margin: 4px 14px; }

.bdiot-nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 1px solid var(--rule); border-radius: var(--radius); width: 42px; height: 38px; align-items: center; justify-content: center; cursor: pointer; }
.bdiot-nav-toggle__bar { width: 20px; height: 2px; background: var(--ink-900); transition: transform 0.2s ease, opacity 0.2s ease; }
.bdiot-nav-toggle[aria-expanded="true"] .bdiot-nav-toggle__bar:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.bdiot-nav-toggle[aria-expanded="true"] .bdiot-nav-toggle__bar:nth-child(3) { opacity: 0; }
.bdiot-nav-toggle[aria-expanded="true"] .bdiot-nav-toggle__bar:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================================
   Hero (carrousel + version statique de repli)
   ========================================================================= */
.bdiot-hero { position: relative; overflow: hidden; background: var(--ink-900); color: var(--white); }
.bdiot-hero--static { min-height: 62vh; display: flex; align-items: center; }
.bdiot-hero--carousel { min-height: 62vh; }
.bdiot-hero__track { position: relative; height: 62vh; min-height: 460px; }
.bdiot-hero__slide {
	position: absolute; inset: 0; display: flex; align-items: center;
	background-size: cover; background-position: center;
	opacity: 0; visibility: hidden; transition: opacity 1.1s ease;
}
.bdiot-hero__slide.is-active { opacity: 1; visibility: visible; }
.bdiot-hero__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(11,30,59,0.88) 0%, rgba(11,30,59,0.72) 45%, rgba(11,30,59,0.92) 100%);
}
.bdiot-hero__grid {
	position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
	background-image:
		linear-gradient(rgba(217,196,138,0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(217,196,138,0.06) 1px, transparent 1px);
	background-size: 56px 56px;
}
.bdiot-hero__content, .bdiot-hero--static .bdiot-hero__content { position: relative; z-index: 3; text-align: center; padding: 40px 24px; margin: 0 auto; max-width: 760px; }
.bdiot-hero--static { padding-top: 20px; padding-bottom: 20px; }
.bdiot-eyebrow {
	font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 3px; text-transform: uppercase;
	color: var(--brass-700); margin: 0 0 10px;
}
.bdiot-eyebrow--hero { color: var(--brass-300); }
.bdiot-hero__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 5vw, 52px); line-height: 1.15; margin: 0 0 18px; }
.bdiot-hero__subtitle { font-size: clamp(14px, 2vw, 17px); color: var(--paper-100); font-family: var(--font-mono); letter-spacing: 0.6px; margin: 0; }

.bdiot-hero__dots { position: absolute; z-index: 4; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.bdiot-hero__dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--brass-300); background: transparent; padding: 0; cursor: pointer; }
.bdiot-hero__dot.is-active { background: var(--brass-500); }

/* =========================================================================
   Mise en page interieure (contenu + colonne laterale)
   ========================================================================= */
.bdiot-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding: 48px 24px 64px; }
.bdiot-layout--full { grid-template-columns: 1fr; }
.bdiot-main--full .bdiot-paper { max-width: 860px; margin: 0 auto; }

.bdiot-paper {
	background: var(--white);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
	padding: 36px 40px;
}
@media (max-width: 640px) { .bdiot-paper { padding: 26px 20px; } }

.bdiot-page-banner { background: var(--ink-900); color: var(--white); padding: 46px 24px 28px; text-align: center; }
.bdiot-page-banner h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 4vw, 36px); margin: 0; }
.bdiot-page-banner .bdiot-eyebrow { color: var(--brass-300); }

.bdiot-breadcrumb { background: var(--paper-100); border-bottom: 1px solid var(--rule); font-size: 13px; padding: 10px 0; }
.bdiot-breadcrumb a { color: var(--ink-700); font-weight: 600; }
.bdiot-breadcrumb .sep { margin: 0 8px; color: var(--text-muted); }
.bdiot-breadcrumb .current { color: var(--text-muted); }

/* ---------- Prose academique (contenu editeur WP) ---------- */
.bdiot-prose h2, .bdiot-prose h3, .bdiot-prose h4, .bdiot-prose h5, .bdiot-paper h2, .bdiot-paper h3, .bdiot-paper h4, .bdiot-paper h5,
.bdiot-paper .section-heading h5 {
	font-family: var(--font-display); color: var(--ink-900); font-weight: 600; line-height: 1.3;
}
.bdiot-prose h5, .bdiot-paper h5, .section-heading h5 {
	font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; font-family: var(--font-mono); font-weight: 600;
	color: var(--brass-700); border-bottom: 1px solid var(--rule); padding-bottom: 10px; margin: 34px 0 18px;
}
.bdiot-prose h1:first-child, .bdiot-paper h1:first-child,
.bdiot-prose h5:first-child, .bdiot-paper h5:first-child,
.bdiot-prose > *:first-child { margin-top: 0; }
.bdiot-prose p, .bdiot-paper p { margin: 0 0 16px; color: var(--text); }
.bdiot-prose a, .bdiot-paper a { text-decoration: underline; text-decoration-color: var(--brass-300); text-underline-offset: 3px; }
.bdiot-prose ul, .bdiot-paper ul { margin: 0 0 20px; }
.bdiot-prose li, .bdiot-paper li { margin-bottom: 6px; }
.bdiot-prose table, .bdiot-paper table, .wp-block-table table {
	margin: 8px 0 26px; font-size: 14.5px; border: 1px solid var(--rule);
}
.bdiot-prose table th, .bdiot-prose table td, .wp-block-table th, .wp-block-table td {
	border: 1px solid var(--rule); padding: 10px 14px; text-align: left;
}
.bdiot-prose table thead th, .wp-block-table thead th {
	background: var(--ink-900); color: var(--white); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase;
}
.bdiot-prose table tbody tr:nth-child(even), .wp-block-table tbody tr:nth-child(even) { background: var(--paper-50); }
.special-links, .bdiot-prose .special-links { font-weight: 600; }

/* Boutons */
.bdiot-btn {
	display: inline-block; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 1px;
	text-transform: uppercase; padding: 11px 22px; border-radius: var(--radius); font-weight: 600;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.bdiot-btn--outline { border: 1.5px solid var(--brass-500); color: var(--ink-900); }
.bdiot-btn--outline:hover { background: var(--ink-900); color: var(--white); border-color: var(--ink-900); }
.bdiot-btn--block { display: block; text-align: center; }

/* =========================================================================
   Colonne laterale
   ========================================================================= */
.bdiot-sidebar { display: flex; flex-direction: column; }
.widget-box, .bdiot-sidebar .widget {
	background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
	box-shadow: var(--shadow-card); padding: 22px 24px; margin-bottom: 28px;
}
.widget-title, .bdiot-sidebar .widget-title {
	font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.5px;
	color: var(--brass-700); border-bottom: 1px solid var(--rule); padding-bottom: 10px; margin: 0 0 16px;
}

.bdiot-dates-list { list-style: none; margin: 0; padding: 0; }
.bdiot-dates-list li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--paper-100); }
.bdiot-dates-list li:last-child { border-bottom: none; }
.bdiot-dates-list__num { font-family: var(--font-mono); font-size: 11px; color: var(--brass-500); }
.bdiot-dates-list__label { flex: 1; font-size: 13px; color: var(--text-muted); }
.bdiot-dates-list__value { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--ink-900); }
.bdiot-dates-list li.is-highlight .bdiot-dates-list__value { color: var(--brass-700); }

.bdiot-submission-widget__note { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }

.bdiot-editions-widget__body ul { list-style: none; margin: 0; padding: 0; }
.bdiot-editions-widget__body li { padding: 7px 0; border-bottom: 1px dashed var(--paper-100); font-size: 13.5px; }
.bdiot-editions-widget__body li:last-child { border: none; }
.bdiot-editions-widget__body hr { display: none; }

/* =========================================================================
   Intervenants (liste + fiche individuelle)
   ========================================================================= */
.bdiot-speakers-list { display: flex; flex-direction: column; gap: 30px; margin-top: 6px; }
.bdiot-speaker-row { display: grid; grid-template-columns: 128px 1fr; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid var(--paper-100); }
.bdiot-speaker-row:last-child { border-bottom: none; padding-bottom: 0; }
.bdiot-speaker-row__photo, .bdiot-speaker-row__photo--placeholder { width: 128px; height: 128px; border-radius: 50%; overflow: hidden; border: 2px solid var(--brass-300); flex-shrink: 0; }
.bdiot-speaker-row__photo img { width: 100%; height: 100%; object-fit: cover; }
.bdiot-speaker-row__photo--placeholder { background: var(--paper-100); }
.bdiot-speaker-row__body h3 { font-family: var(--font-display); margin: 0 0 4px; font-size: 20px; }
.bdiot-speaker-row__affiliation { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.4px; color: var(--brass-700); margin: 0 0 10px; text-transform: uppercase; }
.bdiot-speaker-row__excerpt { color: var(--text-muted); font-size: 14.5px; margin-bottom: 8px; }
.bdiot-speaker-row__talk { font-size: 13.5px; margin-bottom: 10px; }
.bdiot-link-more { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.5px; font-weight: 600; }

.bdiot-speaker-profile__head { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 26px; flex-wrap: wrap; }
.bdiot-speaker-profile__photo { width: 168px; height: 168px; border-radius: 50%; overflow: hidden; border: 2px solid var(--brass-300); flex-shrink: 0; }
.bdiot-speaker-profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.bdiot-speaker-profile__affiliation { font-family: var(--font-mono); font-size: 13px; color: var(--brass-700); text-transform: uppercase; letter-spacing: 0.4px; }
.bdiot-speaker-profile__talk { font-style: italic; color: var(--text-muted); }
.bdiot-speaker-profile__bio { font-size: 15.5px; line-height: 1.75; }

.bdiot-empty-state { color: var(--text-muted); font-style: italic; padding: 20px 0; }

/* =========================================================================
   Liste des comites (colonnes academiques)
   ========================================================================= */
.bdiot-committee-list p {
	margin: 0; padding: 6px 14px 6px 0; font-size: 14px; break-inside: avoid;
	border-bottom: 1px dotted var(--rule);
}
@media (min-width: 720px) {
	.bdiot-committee-list { column-count: 2; column-gap: 36px; }
}
@media (min-width: 1024px) {
	.bdiot-committee-list { column-count: 2; }
}

/* Ateliers */
.bdiot-workshops-list p { padding: 12px 16px; background: var(--paper-50); border-left: 3px solid var(--brass-500); margin-bottom: 12px; }

/* =========================================================================
   Bandeau sponsors + pied de page
   ========================================================================= */
.bdiot-sponsors-band { background: var(--paper-100); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 34px 0; }
.bdiot-sponsors { text-align: center; }
.bdiot-sponsors .bdiot-eyebrow { justify-content: center; }
.bdiot-sponsors__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 34px; margin-top: 14px; }
.bdiot-sponsor img { max-height: 52px; width: auto; filter: grayscale(100%); opacity: 0.65; transition: filter 0.2s ease, opacity 0.2s ease; }
.bdiot-sponsor img:hover { filter: grayscale(0%); opacity: 1; }
.bdiot-sponsor__label { font-family: var(--font-mono); font-size: 13px; color: var(--ink-700); }

.bdiot-footer { background: var(--ink-900); color: var(--paper-100); padding: 38px 0 26px; }
.bdiot-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,0.12); margin-bottom: 18px; }
.bdiot-footer__identity { display: flex; align-items: center; gap: 14px; }
.bdiot-footer .bdiot-seal__ring { border-color: var(--brass-500); }
.bdiot-footer .bdiot-seal__num { color: var(--brass-300); }
.bdiot-footer__title { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin: 0; color: var(--white); }
.bdiot-footer__venue { font-size: 12.5px; color: var(--paper-100); opacity: 0.75; margin: 2px 0 0; }
.bdiot-footer-menu { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.bdiot-footer-menu a { color: var(--paper-100); font-size: 13.5px; }
.bdiot-footer-menu a:hover { color: var(--brass-300); }
.bdiot-footer__copy { font-size: 12px; color: rgba(239,233,218,0.55); text-align: center; margin: 0; }

/* =========================================================================
   Contact
   ========================================================================= */
.bdiot-map { margin-bottom: 30px; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.bdiot-map iframe { width: 100%; display: block; }
.bdiot-contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 12px; }
.bdiot-contact-card { display: flex; gap: 14px; padding: 18px; background: var(--paper-50); border: 1px solid var(--rule); border-radius: var(--radius); }
.bdiot-contact-card__icon { color: var(--brass-500); font-size: 18px; line-height: 1; }
.bdiot-contact-card h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 16px; }
.bdiot-contact-card p { margin: 0; font-size: 14px; color: var(--text-muted); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
	.bdiot-layout { grid-template-columns: 1fr; padding: 34px 20px 48px; }
	.bdiot-sidebar { order: 2; }

	.bdiot-nav-toggle { display: inline-flex; }
	.bdiot-primary-nav {
		position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 84vw);
		background: var(--ink-900); padding: 90px 28px 28px; transform: translateX(100%);
		transition: transform 0.28s ease; z-index: 400; overflow-y: auto;
	}
	.bdiot-primary-nav.is-open { transform: translateX(0); }
	.bdiot-primary-nav .bdiot-menu { flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; }
	.bdiot-primary-nav .bdiot-menu a { color: var(--paper-100); width: 100%; padding: 12px 4px; }
	.bdiot-primary-nav .bdiot-menu a:hover { background: transparent; color: var(--brass-300); }
	.bdiot-primary-nav .bdiot-menu li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

@media (max-width: 640px) {
	.bdiot-speaker-row { grid-template-columns: 1fr; }
	.bdiot-committee-list { column-count: 1; }
	.bdiot-hero__track, .bdiot-hero--static { min-height: 420px; }
}

/* Overlay pour fermer le menu mobile au clic exterieur */
.bdiot-nav-scrim { position: fixed; inset: 0; background: rgba(11,30,59,0.5); z-index: 390; opacity: 0; visibility: hidden; transition: opacity 0.2s ease; }
.bdiot-nav-scrim.is-visible { opacity: 1; visibility: visible; }
