/* -----------------------------------------------------------------------
   assets/css/style.css
   Identité visuelle inspirée de tribunes.pdf : bleu nuit éditorial,
   accent corail, dégradé décoratif bleu > violet > corail.
   Palette approximative (à ajuster si une charte graphique précise existe) :
     --navy       : #12224B  (titres, texte fort)
     --navy-deep  : #0B1730  (fonds sombres, dégradé)
     --coral      : #E8622C  (accent, label "tribune", liens)
     --violet     : #5B3A8E  (étape intermédiaire du dégradé)
     --paper      : #F7F5F1  (fond de page)
     --ink        : #333A46  (texte courant)
     --line       : #E3E1DA  (séparateurs)
   ----------------------------------------------------------------------- */

:root {
    --navy: #283583;
    --navy-deep: #0B1730;
    --coral: #41c0f0;
    --violet: #5B3A8E;
    --paper: #F7F5F1;
    --ink: #000A46;
    --line: #E3E1DA;
    --font-display: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Source Sans Pro', 'Segoe UI', system-ui, sans-serif;
    --max-width: 1180px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--paper);
	/*background-image: radial-gradient(ellipse farthest-corner, #fc1c14 20%, #cf15cf 80%);*/
	/*background-image: url("https://www.jeco-numerique.org/Mag2026/assets/images/fond.jpg");
	background-attachment: fixed;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;*/
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
}

a {
    color: var(--navy);
}

a:hover {
    color: var(--coral);
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- Navigation ---------- */

.site-nav {
        background: linear-gradient(120deg, var(--navy-deep) 0%, var(--violet) 55%, var(--coral) 100%);
    padding: 14px 24px;
}

.site-nav__brand {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.site-nav__brand:hover {
    color: var(--coral);
}

/* ---------- Bandeau (image manuelle) ---------- */

/* ---------- Bandeau (deux images côte à côte) ---------- */

.site-banner {
    width: 100%;
    background: var(--paper);
}

.site-banner__inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;          /* jamais l'une sous l'autre */
    max-width: 1132px;          /* était 1600px */
    margin: 0 auto;
}

.site-banner__item {
    flex: 1 1 0;                /* deux colonnes de largeur égale */
    min-width: 0;               /* autorise les images à rétrécir */
}

.site-banner__image {
    display: block;
    width: 100%;
    height: auto;
}

.site-banner__item:first-child {
    flex: 1100 1 0;    /* image de gauche : 1151 px */
}

.site-banner__item:last-child {
    flex: 455 1 0;     /* image de droite : 449 px */
}


/* ---------- Contenu principal ---------- */

.site-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 24px 40px;
}

.page-intro__title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--navy);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 20px 0 32px 0;
    border-left: 6px solid var(--coral);
    padding-left: 18px;
}

.empty-state {
    color: var(--ink);
    background: #fff;
    border: 1px dashed var(--line);
    padding: 32px;
    border-radius: 6px;
    text-align: center;
}

.back-link {
    margin-bottom: 24px;
}

.back-link a {
    text-decoration: none;
    font-weight: 600;
}

/* ---------- Grille des tribunes (accueil) ---------- */

.tribunes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.tribune-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.tribune-card:hover {
    box-shadow: 0 8px 24px rgba(18, 34, 75, 0.12);
    transform: translateY(-2px);
}

.tribune-card__authors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.tribune-card__author {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.tribune-card__author-media {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tribune-card__author-photo,
.tribune-card__author-photo--placeholder,
.tribune-card__author-logo {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    border: 2px solid var(--paper);
    box-shadow: 0 0 0 2px var(--line);
    flex-shrink: 0;
}

.tribune-card__author-photo,
.tribune-card__author-photo--placeholder {
    object-fit: cover;
}

.tribune-card__author-photo--placeholder {
    background: var(--line);
}

.tribune-card__author-logo {
    object-fit: contain;
    background: #fff;
    padding: 6px;
}

.tribune-card__author-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--navy);
    width: 100%;
    margin: 6px 0 0;
}

.tribune-card__author-role {
    font-size: 0.75rem;
    color: #6B7280;
    width: 100%;
    margin: 2px 0 0;
}

.tribune-card__authors--column {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.tribune-card__people {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.tribune-card__person {
    flex: 0 1 120px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.tribune-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--navy);
    font-size: 1.25rem;
    margin: 0;
}

/* ---------- Page détaillée d'une tribune ---------- */

.tribune-detail {
    display: grid;
    grid-template-columns: 250px 1fr;   /* était 240px */
    gap: 48px;
    align-items: start;
}

.tribune-detail__intro,
.tribune-detail__body p,
.tribune-detail__body li {
    text-align: justify;
  /*  hyphens: auto;*/
}

.tribune-detail__sidebar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}

.tribune-detail__author {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.tribune-detail__author:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tribune-detail__author-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
}

.tribune-detail__author-name {
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 4px;
}

.tribune-detail__author-role {
    font-size: 0.85rem;
    color: #6B7280;
    margin: 0;
}

.tribune-detail__separator {
    border: none;
    border-top: 1px solid var(--line);
    margin: 16px 0;
}

.tribune-detail__author-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0 auto;
}

.tribune-detail__conferences {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid var(--coral);
}

.tribune-detail__conferences-title {
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 10px;
    font-size: 0.95rem;
}

.tribune-detail__conferences ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tribune-detail__conferences li {
    margin-bottom: 8px;
}

.tribune-detail__conferences a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.tribune-detail__title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--navy);
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    margin: 0 0 20px;
}

.tribune-detail__intro {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 28px;
}

.tribune-detail__body {
    font-size: 1.02rem;
    line-height: 1.75;
}

.tribune-detail__body h2,
.tribune-detail__body h3 {
    color: var(--navy);
    font-family: var(--font-display);
}

.tribune-detail__body img {
    border-radius: 6px;
    margin: 16px 0;
}

.tribune-detail__author-photo,
.tribune-detail__author-logo {
    max-width: 100%;
}

blockquote {
    border-left: 4px solid var(--coral);
    padding-left: 16px;
    font-style: italic;
    color: var(--navy);
}

blockquote.tribune-citation {
    border-left: none;
    margin: 32px 0;
    padding: 20px 28px;
    background: #fff;
    border-radius: 6px;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--navy);
    position: relative;
}

blockquote.tribune-citation p {
    margin: 0;
}

blockquote.tribune-citation::before {
    content: "\201C";
    font-family: Georgia, serif;
    font-size: 3rem;
    color: var(--coral);
    line-height: 0;
    display: block;
    margin: 20px 0 8px 0;
}

blockquote.tribune-citation::after {
    content: "\201D";
    font-family: Georgia, serif;
    font-size: 3rem;
    color: var(--coral);
    line-height: 0;
    display: block;
    margin-top: 8px;
    margin-bottom: 0;
   text-align: right;
}
blockquote p { 
text-align: left; 
}

.tribune-detail__content {
    min-width: 0;
}

.tribune-detail__body iframe,
.tribune-detail__body table {
    max-width: 100%;
}

/* ---------- Responsive : tablette puis mobile ---------- */

@media (max-width: 900px) {
    .tribune-detail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .site-main {
        padding: 28px 16px 48px;
    }

    .tribune-card {
        padding: 18px;
    }
}

/* ---------- Pied de page ---------- */

.site-footer {
    background: linear-gradient(120deg, var(--navy) 0%, var(--coral) 100%);
    color: #fff;
    padding: 40px 24px;
}

.site-footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.site-footer__contact p,
.site-footer__extra p {
    margin: 0 0 8px;
}

.site-footer__contact a,
.site-footer__extra a {
    color: #fff;
    text-decoration: underline;
}

.site-footer__extra {
    text-align: left;
}

@media (max-width: 700px) {
    .site-footer__inner {
        flex-direction: column;
    }
    .site-footer__mecenes {
        flex: none;
        align-self: stretch;
    }
    .site-footer__extra {
        text-align: left;
    }
}


.site-footer__contact,
.site-footer__extra {
    flex: 0 0 auto;
}

.site-footer__mecenes {
    flex: 1 1 0;               /* occupe tout l'espace entre contact et extra */
    min-width: 0;
    container-type: inline-size;
    margin: 0;
    padding: 0;
    border: none;
    text-align: center;
}

.site-footer__mecenes-title {
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    line-height: inherit;
    margin: 0 0 16px;
}

.site-footer__mecenes-logos {
    display: flex;
    flex-direction: row;       /* côte à côte par défaut */
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.site-footer__mecenes-logos img {
    max-width: 100%;
    height: auto;
}

.site-footer__mecenes-logos a {
    display: block;
    flex: 0 1 auto;
    line-height: 0;
    text-decoration: none;
}

/* moins de 520px disponibles : logos empilés */
@container (max-width: 510px) {
    .site-footer__mecenes-logos {
        flex-direction: column;
        gap: 30px;
    }
}


/* ---------- Menu principal ---------- */

.menuparent {
    width: 100%;
}

.menu {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.menu_links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

a.menu_item {
    font-weight: bold;
    padding: 8px 14px;
}

/* séparateur entre les liens (desktop) */
a.menu_item + a.menu_item {
    border-left: 1px solid var(--navy);
}

/* bouton hamburger : caché sur desktop */
.menu_toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 11px;
    margin: 0 0 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
}

.menu_toggle__bar {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* animation hamburger -> croix */
.menu.is-open .menu_toggle__bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu.is-open .menu_toggle__bar:nth-child(2) {
    opacity: 0;
}
.menu.is-open .menu_toggle__bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Menu mobile ---------- */

@media (max-width: 900px) {
    .menu_toggle {
        display: flex;
    }

    .menu_links {
        display: none;
        flex-direction: column;
        margin-top: 8px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 6px;
        overflow: hidden;
    }

    .menu.is-open .menu_links {
        display: flex;
    }

    a.menu_item {
        padding: 14px 18px;
        text-align: left;
    }

    a.menu_item + a.menu_item {
        border-left: none;
        border-top: 1px solid var(--line);
    }
}

table.livres {
  /* Indispensable pour que le border-radius des <td> fonctionne */
  border-collapse: separate; 
  border-spacing: 10px; /* Optionnel : espace entre les cellules */
}

.livres td {
  background-color: #ffffff; /* Fond blanc */
  border-radius: 8px;        /* Coins arrondis */
  padding: 15px;             /* Optionnel : espace interne pour le texte */
}


/* ---------- Grille de navigation de l'accueil (4 cartes carrées) ---------- */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 300px));
    justify-content: center;
    gap: 20px;
	margin-top:20px;
}

.menu-card {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 1;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.menu-card:hover {
    box-shadow: 0 8px 24px rgba(18, 34, 75, 0.12);
    transform: translateY(-2px);
}

.menu-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* tablette : 2 par ligne */
@media (max-width: 700px) {
    .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 300px));
    }
}

/* petit mobile : 1 par ligne */
@media (max-width: 400px) {
    .menu-grid {
        grid-template-columns: minmax(0, 300px);
    }
}



/* ---------- Encart flottant (pages de contenu) ---------- */

.encart-card {
    float: right;
    width: 320px;
    margin: 0 0 24px 32px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(18, 34, 75, 0.08);
}

.encart-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--navy);
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--coral);
}

.encart-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.encart-card li {
    padding: 6px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--line);
}

.encart-card li:last-child {
    border-bottom: none;
}

/* sur mobile : l'encart passe en pleine largeur, au-dessus du texte */
@media (max-width: 700px) {
    .encart-card {
        float: none;
        width: 100%;
        margin: 0 0 24px;
    }
}


/* ---------- Photo flottante à gauche (pages de contenu) ---------- */

.photo-float {
    /* width: 320px;*/
    max-width: 100%;
    margin: 0 32px 20px 32px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(18, 34, 75, 0.12);
}
.left{
    float: left;
}

.right{
    float: right;
}


/* sur mobile : la photo passe en pleine largeur, au-dessus du texte */
@media (max-width: 700px) {
    .photo-float {
        float: none;
        width: 100%;
        margin: 0 0 20px;
    }
}


.btn-gradient {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(90deg, var(--navy) 0%, var(--coral) 100%);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 25px;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.btn-gradient:hover,
.btn-gradient:focus {
    color: #fff; /* overrides your global a:hover coral color */
    box-shadow: 0 8px 24px rgba(40, 53, 131, 0.35);
    transform: translateY(-2px);
	   background: linear-gradient(270deg, var(--navy) 0%, var(--coral) 100%);
	   
}

.logos-droite {
    float: right;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 20px 32px;
}

.logos-droite img {
    width: 200px;
    height: 100px;          /* même surface pour les deux logos */
    object-fit: contain;    /* le logo garde ses proportions, sans déformation */
    /*background: #fff;*/
}

/* sur mobile : logos centrés au-dessus du texte */
@media (max-width: 700px) {
    .logos-droite {
        float: none;
        margin: 0 auto 20px;
        align-items: center;
    }
}


.clearer { /* <p class="clearer">&nbsp;</p>     */
	clear:both;
	line-height:0px;
	height:0px;
	margin:0;
	padding:0;
}
