/* Codes RGB des deux couleurs de la charte graphique:
Bleu technologique : #1D5C9E (RGB: 29, 92, 158)
Orange dynamique : #E87722 (RGB: 232, 119, 34)
*/

:root {
    --blue: #1D5C9E;
    --blue-dark: #174A80;      /* dérivé du bleu, pour les états actifs */
    --orange: #E87722;
    --orange-light: #FFB070;   /* orange éclairci, pour les fonds bleus */

    --text: #1a1a1a;
    --bg: #ffffff;
    --font: "Host Grotesk", system-ui, sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* ---------- Mise en page commune ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 3rem 0;
}

/* ---------- Bandeau d'intro (réutilisable) ---------- */
.page-banner {
    background-color: var(--blue);          /* couleur de secours si l'image ne charge pas */
    background-size: cover;
    background-position: center;
}

.page-banner-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;            /* titre à gauche */
    max-width: 1200px;
    min-height: 220px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.page-banner-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    color: var(--orange);
}

/* ---------- Sous-onglets ---------- */
.tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.tab-button {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font: inherit;
    color: var(--blue);
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.tab-button:hover {
    color: var(--orange);
}

.tab-button:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: -2px;
}

/* Onglet sélectionné : orange + soulignement */
.tab-button.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
    font-weight: 600;
}

.tab-pane {
    display: none;
    padding: 1.5rem 0;
}

.tab-pane.active {
    display: block;
}

@media (max-width: 600px) {
    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

/* ---------- Titres et fonds de section ---------- */
.section-alt {
    background: #f9fafb;
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 1.5rem;
}

.tab-pane > .section-title:not(:first-child),
.container > .section-title:not(:first-child) {
    margin-top: 3rem;
}

.section-intro {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ---------- Onglet The Symposium ---------- */
.symposium-hero {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.symposium-title {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--orange);
    text-wrap: balance;
}

.symposium-subtitle {
    font-size: 1.25rem;
    color: var(--blue);
    text-wrap: balance;
}

/* ---------- Texte courant ---------- */
.prose {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.75;
}

.prose p { margin-bottom: 1.25rem; }
.prose h3 { margin: 2rem 0 0.75rem; color: var(--blue); }
.prose ul { margin: 0 0 1.25rem 1.25rem; }
.prose li { margin-bottom: 0.5rem; }

.prose a,
.callout a:not(.btn) {
    color: var(--blue);
}

.prose a:hover { color: var(--orange); }

/* ---------- Cartes ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2.5rem;
}

.card {
    padding: 1.5rem;
    background: var(--bg);
    border-top: 4px solid var(--orange);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card h3 { margin-bottom: 0.25rem; color: var(--blue); }
.card p  { margin-bottom: 1rem; line-height: 1.6; }
.card-meta { color: #6b7280; font-size: 0.95rem; }

.card-link {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease;
}

.card-link:hover,
.card-link:focus-visible { color: var(--orange); }

/* ---------- Encadré (ambiance) ---------- */
.callout {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 1.75rem 2rem;
    background: #f9fafb;
    border-left: 4px solid var(--orange);
    border-radius: 0 12px 12px 0;
    line-height: 1.75;
}

.callout h3 { margin-bottom: 0.75rem; color: var(--blue); }
.callout p  { margin-bottom: 1rem; }

/* ---------- Bouton ---------- */
.cta { text-align: center; margin-top: 2rem; }

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: var(--blue);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    transition: background 0.25s ease;
}

.btn:hover,
.btn:focus-visible { background: var(--blue-dark); }

/* ---------- Liste des actes IEEE ---------- */
.proceedings-list {
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
}

.proceedings-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #e5e7eb;
}

/* ---------- Sponsors et partenaires ---------- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg);
    border-radius: 10px;
}

.partners-grid .partner-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 180px;
    max-height: 90px;
    filter: none;
    transition: opacity 0.3s ease;
}

.partners-grid .partner-logo:hover { opacity: 0.8; }

/* ---------- Groupe de boutons ---------- */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-outline {
    padding: calc(0.75rem - 2px) calc(1.75rem - 2px);
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background: transparent;
    color: var(--orange);
    border-color: var(--orange);
}

/* ---------- PDF intégré (masqué sur mobile) ---------- */
.pdf-viewer {
    display: block;
    width: 100%;
    height: 80vh;
    margin-top: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .pdf-viewer { display: none; }
}

/* ---------- Comités ---------- */
.committee-section {
    margin-bottom: 2.5rem;
}

.committee-section h3 {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding-bottom: 0.25rem;
    color: var(--blue);
    border-bottom: 2px solid var(--orange);
}

.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.committee-member {
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border-left: 4px solid var(--blue);
    border-radius: 8px;
}

.committee-member h4 { margin-bottom: 0.25rem; }
.member-title { color: var(--blue); font-weight: 600; }
.member-affiliation { color: #6b7280; font-size: 0.95rem; }

/* ---------- Listes dans les cartes et encadrés ---------- */
.card ul, .callout ul, .notice ul { margin: 0 0 1rem 1.25rem; }
.card li, .callout li, .notice li { margin-bottom: 0.4rem; line-height: 1.6; }
.stack { display: grid; gap: 1.25rem; max-width: 900px; margin: 0 auto 2rem; }
.stack-card { max-width: 900px; margin: 2rem auto; }
.prose.small { font-size: 0.9rem; color: #6b7280; }
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--orange-light); }

/* ---------- Encadré d'information ---------- */
.notice {
    max-width: 900px; margin: 1.5rem auto; padding: 1rem 1.5rem;
    background: #fff7ed; border-left: 4px solid var(--orange); border-radius: 0 8px 8px 0;
}

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 0.75rem 1rem; border: 1px solid #e5e7eb; text-align: left; vertical-align: top; }
.data-table th { background: #f9fafb; color: var(--blue); }
.data-table.kv th { width: 30%; }

/* ---------- Bloc d'appel à l'action ---------- */
.cta-box {
    max-width: 900px; margin: 2.5rem auto; padding: 2rem;
    background: var(--blue); color: #fff; border-radius: 12px; text-align: center;
}
.cta-box h3 { margin-bottom: 0.75rem; }
.cta-box p { margin-bottom: 1rem; }
.cta-box a:not(.btn) { color: #fff; }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover, .btn-light:focus-visible { background: #fff; color: var(--orange); }

/* ---------- Programme ---------- */
.day-title { margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; color: var(--blue); border-bottom: 2px solid var(--orange); }
.session { display: flex; gap: 1.5rem; margin-bottom: 0.75rem; padding: 1rem 1.25rem; background: #f9fafb; border-radius: 8px; }
.session-time { flex: 0 0 130px; font-weight: 600; color: var(--blue); }
.session-details { flex: 1; }
.session-title { font-weight: 600; }
.session-speaker, .session-info { color: #6b7280; }
.session-info { font-style: italic; }

@media (max-width: 600px) {
    .session { flex-direction: column; gap: 0.25rem; }
    .session-time { flex-basis: auto; }
}

/* ---------- Conférenciers et workshops ---------- */
.speakers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.speaker-card { overflow: hidden; background: var(--bg); border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.speaker-image { display: block; width: 100%; height: 320px; object-fit: cover; object-position: top; }
.speaker-info { padding: 1.25rem; }
.speaker-info h3 { margin-bottom: 0.25rem; color: var(--blue); }
.speaker-affiliation { margin-bottom: 0.5rem; font-weight: 500; color: var(--blue); }
.speaker-info details { margin-top: 0.75rem; line-height: 1.6; }
.speaker-info summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.speaker-info summary:hover { color: var(--orange); }

.workshop { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: start; margin-bottom: 2.5rem; }
.workshop-title { margin-bottom: 0.75rem; color: var(--blue); }
.workshop h4 { margin: 1rem 0 0.5rem; color: var(--blue); }
@media (max-width: 768px) { .workshop { grid-template-columns: 1fr; } }

/* ---------- Carte Google Maps ---------- */
.map-frame { display: block; width: 100%; height: 450px; margin: 1.5rem 0; border: 0; border-radius: 8px; }

/* ---------- Bloc de code (page technique) ---------- */
pre.code { overflow-x: auto; padding: 1rem 1.25rem; background: #f3f4f6; border-radius: 8px; font-size: 0.9rem; line-height: 1.5; }


/* ---------- Galeries photo ---------- */
.gallery-wrap {
    position: relative;
    margin: 1.5rem 0 0.25rem;
}

.gallery {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gallery a {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.gallery img {
    display: block;
    height: 220px;
    width: auto;
    border-radius: 8px;
    transition: opacity 0.25s ease;
}

.gallery a:hover img,
.gallery a:focus-visible img { opacity: 0.85; }

.gallery a:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
    border-radius: 8px;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    transform: translateY(-60%);
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--blue);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: color 0.25s ease;
}

.gallery-btn:hover,
.gallery-btn:focus-visible { color: var(--orange); }

.gallery-prev { left: 0.5rem; }
.gallery-next { right: 0.5rem; }

.gallery-hint {
    margin: 0 0 2rem;
    font-size: 0.9rem;
    text-align: center;
    color: #6b7280;
}

/* Écrans tactiles : on fait défiler au doigt, sans flèches */
@media (hover: none) {
    .gallery-btn { display: none; }
}

@media (max-width: 600px) {
    .gallery img { height: 160px; }
}