/* Style général */
body {
    font-family: 'Oswald', Arial, Helvetica, sans-serif;
    background-color: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Header et navigation */
header {
    background-color: #181818;
    color: #fff;
    padding: 32px 0 10px 0;
    text-align: center;
    box-shadow: 0 2px 8px #000a;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

header nav ul li {
    display: inline;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 8px 18px 7px 18px;
    border-radius: 7px 7px 0 0;
    border-bottom: none; /* plus de soulignement */
    transition: background 0.2s, color 0.2s;
}

header nav ul li a:hover,
header nav ul li a.active {
    background: #fff;
    color: #181818;
    border-bottom: none;
}

/* Main content */
main {
    min-height: 70vh;
    padding: 0;
}

main,
.travaux-container {
    flex: 1 0 auto;
}

.container {
    max-width: 800px;
    margin: 50px auto 0 auto;
    background: #181818;
    padding: 40px 30px 32px 30px;
    border-radius: 32px;
    box-shadow: 0 4px 40px #0008;
}

h1 {
    color: #ffd85b;
    font-family: 'Oswald', Arial, sans-serif;
}

h2 {
    color: #fff;
    font-family: 'Oswald', Arial, sans-serif;
}

h2 {
    font-size: 2em;
    margin-bottom: 18px;
}

.desc {
    color: #ccc;
    font-size: 1.15em;
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: #181818;
    color: #fff;
    text-align: center;
    padding: 18px 0 14px 0;
    font-size: 1em;
    margin-top: 40px;
    box-shadow: 0 -2px 8px #000a;
    position: static;
    width: 100%;
    bottom: 0;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 700px) {
    .container {
        padding: 20px 8px 18px 8px;
        border-radius: 18px;
    }
    header h1 {
        font-size: 1.5em;
    }
    h2 {
        font-size: 1.2em;
    }
    main {
        min-height: 60vh;
    }
    header nav ul {
        gap: 12px;
    }
}

/* Timeline */
.timeline {
    position: relative;
    margin: 40px 0 0 0;
    padding-left: 44px;
    border-left: 3px solid #fff3;
}
.timeline-item {
    position: relative;
    margin-bottom: 32px;
    min-height: 48px;
}
.timeline-date {
    position: absolute;
    left: -90px;      /* était -90px */
    top: 0;
    width: 110px;      /* était 80px */
    text-align: right;
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    opacity: 0.7;
    z-index: 2;
}
.timeline-content {
    background: #232323;
    color: #fff;
    padding: 16px 22px;
    border-radius: 10px;
    box-shadow: 0 2px 12px #0003;
    margin-left: 0;
    min-width: 200px;
    display: inline-block;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -56px;
    top: 18px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    border: 3px solid #232323;
    box-shadow: 0 0 0 4px #181818;
}

/* Responsive timeline */
.timeline-content {
    position: relative;
}

.timeline-branch {
    position: relative;
    margin-top: 14px;
    margin-left: 24px;
    padding-left: 24px;
}

.timeline-branch::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 18px;
    height: 24px;
    border-left: 2px solid #fff3;
    border-bottom: 2px solid #fff3;
    border-radius: 0 0 0 6px;
}

.timeline-sub {
    color: #bbb;
    font-size: 0.98em;
    padding-left: 6px;
    position: relative;
    top: 6px;
}

.cv-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #181818;
    color: #fff !important;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    margin-top: 12px;
}
.cv-btn:hover {
    background: #fff;
    color: #232323 !important;
}




/* ------------------------------------------------------ */

/* --- Styles spécifiques à la page travaux.html --- */

.travaux-container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    background: none; /* pas de fond pour cette page */
    border-radius: 0;
    box-shadow: none;
}

.filters {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}
.filter-btn {
    font-size: 1.5em;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0 10px 7px 10px;
    border-radius: 7px 7px 0 0;
    border-bottom: 2px solid transparent;
    transition: border 0.2s, background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
}
.filter-btn.active, .filter-btn:hover {
    border-bottom: 2px solid #fff;
}
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    justify-items: center;
    align-items: stretch;
}
.card {
    background: #181818;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 4px 40px #0008;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.3s;  
}

.card:hover {
    transform: translateY(-7px) scale(1.04);
    box-shadow: 0 6px 48px #fff3, 0 2px 8px #000a;
}
.card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}
.card-content {
    padding: 24px 20px 20px 20px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.card-title {
    font-size: 1.4em;
    margin-bottom: 7px;
}
.card-desc {
    color: #bbb;
    font-size: 1em;
    margin-bottom: 18px;
    flex-grow: 1; /* pousse le bouton vers le bas */
}
.see-more {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    background: #32373c;
    padding: 10px 22px;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
    display: inline-block;
    align-self: flex-start;
}
.see-more:hover {
    background: #505357;
    transform: scale(1.07);
    box-shadow: 0 2px 14px #fff3;
}
@media (max-width: 600px) {
    .filters { flex-wrap: wrap; gap: 15px; }
    .card img { height: 160px; }
}




/* --- Styles spécifiques à la page serpent-histoire.html --- */
.serpent-h-timeline-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 40px auto 60px auto;
  min-height: 230px;
  overflow: visible;
}
.serpent-h-timeline-path,
.serpent-h-timeline-events {
  width: 100%;
  max-width: 800px;
  left: 0;
  position: absolute;
  top: 0;
  height: 230px;
}
.serpent-h-event {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #232323;
  color: #fff;
  padding: 16px 28px;
  border-radius: 18px;
  box-shadow: 0 2px 18px #0009;
  min-width: 150px;
  text-align: center;
  pointer-events: auto;
  opacity: 0;
  animation: eventAppear 1.5s ease forwards;
  transition: 
    min-width 0.4s cubic-bezier(.68,-0.55,.27,1.55),
    max-width 0.4s cubic-bezier(.68,-0.55,.27,1.55),
    padding 0.4s cubic-bezier(.68,-0.55,.27,1.55),
    box-shadow 0.3s, background 0.3s, color 0.3s;
  cursor: pointer;
  overflow: visible;
}
.serpent-h-event:nth-child(1) { animation-delay: 0.3s;}
.serpent-h-event:nth-child(2) { animation-delay: 1s;}
.serpent-h-event:nth-child(3) { animation-delay: 1.7s;}
.serpent-h-event:nth-child(4) { animation-delay: 2.4s;}
.serpent-h-event:nth-child(5) { animation-delay: 3.1s;}
/* Ajoute plus si tu ajoutes plus d'étapes */

.serpent-h-year {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 4px;
  color: #ffd85b;
}
.serpent-h-label {
  font-size: 1em;
  color: #fff;
}
.serpent-h-detail {
  color: #bbb;
  font-size: 0.92em;
}

/* Effet d’allongement et d’affichage du détail au hover */
.serpent-h-event:hover, .serpent-h-event:focus-within {
  min-width: 320px;
  max-width: 420px;
  padding-left: 38px;
  padding-right: 38px;
  background: #232323;
  box-shadow: 0 8px 30px #ffd85b88, 0 2px 18px #0009;
  z-index: 10;
}

/* Détail caché/affiché */
.serpent-h-more {
  display: none;
  margin-top: 14px;
  color: #ffd85b;
  font-size: 0.99em;
  text-align: left;
  animation: detailAppear 0.6s;
}
.serpent-h-event:hover .serpent-h-more,
.serpent-h-event:focus-within .serpent-h-more {
  display: block;
}

@keyframes detailAppear {
  0% { opacity: 0; transform: translateY(12px);}
  100% { opacity: 1; transform: translateY(0);}
}

@keyframes eventAppear {
  0% { opacity: 0; transform: translate(-50%, -40%) scale(0.8);}
  80% { opacity: 1; transform: translate(-50%, -54%) scale(1.05);}
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1);}
}

.serpent-h-timeline-path #serpent-h-path {
  animation: serpent-move 1.2s linear infinite;
  stroke-dasharray: 32 16; /* total motif = 48 */
}
@keyframes serpent-move {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -48; }
}

@media (max-width: 1000px) {
  .serpent-h-timeline-container,
  .serpent-h-timeline-path,
  .serpent-h-timeline-events {
    width: 98vw;
    max-width: 98vw;
    min-width: 0;
  }
  .serpent-h-timeline-path,
  .serpent-h-timeline-events {
    height: 230px;
  }
}
@media (max-width: 600px) {
  .serpent-h-timeline-container { min-height: 160px; }
  .serpent-h-event {
    min-width: 90px;
    padding: 8px 5px;
    font-size: 0.86em;
  }
}

.serpent-h-event.ensea-long {
  min-width: 400px;
  max-width: 550px;
  /* facultatif, plus de padding si tu veux */
  padding-left: 40px;
  padding-right: 40px;
}

/* Garde l'effet d'élargissement au hover */
.serpent-h-event.ensea-long:hover, .serpent-h-event.ensea-long:focus-within {
  min-width: 500px;
  max-width: 550px;
}

.serpent-h-event.gem-long {
  min-width: 265px;
  max-width: 350px;
  /* facultatif, plus de padding si tu veux */
  padding-left: 40px;
  padding-right: 40px;
}

/* Garde l'effet d'élargissement au hover */
.serpent-h-event.gem-long:hover, .serpent-h-event.gem-long:focus-within {
  min-width: 400px;
  max-width: 400px;
}

/* Responsive pour la timeline */
@media (max-width: 700px) {
  .serpent-h-timeline-container {
    min-height: 350px; /* Pour laisser la place aux events empilés */
  }
  .serpent-h-timeline-events {
    position: static !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }
  .serpent-h-event {
    position: static !important;
    transform: none !important;
    min-width: 90vw !important;
    max-width: 95vw !important;
    padding: 14px 8px !important;
    font-size: 0.95em;
    margin-bottom: 16px;
  }
  .serpent-h-event.ensea-long,
  .serpent-h-event.gem-long {
    min-width: 90vw !important;
    max-width: 95vw !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .serpent-h-timeline-path {
    display: none !important; /* On cache le SVG pour la version mobile */
  }
}


/* --- Styles spécifiques à la page publications.html --- */
.publications-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.pub-item {
    display: flex;
    align-items: flex-start; /* Par défaut le bouton sera aligné en haut, on va corriger ça plus bas */
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    min-height: 88px; /* Ajuste selon le texte de la plus petite ligne */
}

.pub-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.see-more.small {
    padding: 9px 22px;
    font-size: 1.1em;
    border-radius: 8px;
    align-self: center; /* le bouton est centré verticalement par rapport au texte */
}

@media (max-width: 700px) {
    .pub-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        min-height: unset;
    }
    .see-more.small {
        align-self: flex-start;
    }
}

.strong {
    font-weight: bold;
    color: #ffd85b;
}


/* --- CARROUSEL BLOG --- */
.image-carousel {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 24px auto 28px auto;
    overflow: hidden;
    border-radius: 22px;
    background: #181818;
    box-shadow: 0 4px 40px #0008;
}
.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(.42,0,.58,1);
    will-change: transform;
}
.carousel-img {
    min-width: 100%;
    height: 360px;
    object-fit: contain;
    background: #232323;
    cursor: zoom-in;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #232323bb;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 2em;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-btn:hover { background: #fff; color: #232323; }
.carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 2;
    pointer-events: none;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff8;
    border: 1.5px solid #fff;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
    pointer-events: auto;
}
.carousel-dot.active {
    background: #fff;
    transform: scale(1.22);
}
@media (max-width: 800px) {
    .carousel-img { height: 210px; }
}
@media (max-width: 500px) {
    .carousel-img { height: 150px; }
    .carousel-btn { width: 32px; height: 32px; font-size: 1.3em; }
    .carousel-dot { width: 6px; height: 6px; }
    .carousel-dots { bottom: 7px; }
}

/* --- LIGHTBOX --- */
.carousel-lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(10,10,10,0.97);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.carousel-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}
.carousel-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 20px;
    box-shadow: 0 4px 60px #000b;
    animation: popin 0.33s;
    background: #181818;
}
@keyframes popin {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.carousel-lightbox-close {
    position: fixed;
    top: 26px;
    right: 32px;
    font-size: 3.2em;
    color: #fff;
    background: rgba(30,30,30,0.7);
    border: none;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    z-index: 1010;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.carousel-lightbox-close:hover {
    background: #fff;
    color: #232323;
}
/* Icone ouvrir image originale */
.carousel-lightbox-link {
    position: relative;
    display: inline-block;
    outline: none;
}
.carousel-lightbox-open {
    position: absolute;
    bottom: 18px;
    right: 28px;
    font-size: 2.1em;
    color: #fff;
    background: #232323cc;
    padding: 6px 10px 5px 10px;
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 14px #0005;
    z-index: 1020;
    opacity: 0.95;
}
.carousel-lightbox-link:hover .carousel-lightbox-open,
.carousel-lightbox-open:hover {
    background: #fff;
    color: #232323;
    opacity: 1;
}
@media (max-width:600px){
    .carousel-lightbox-img { max-width: 98vw; max-height: 70vh; }
    .carousel-lightbox-close { top: 12px; right: 10px; font-size: 2.1em; width: 38px; height: 38px;}
    .carousel-lightbox-open { font-size: 1.3em; bottom: 7px; right: 9px; }
}

/* --- Styles spécifiques à la page tixi.html --- */
.tixi-main {
    max-width: 880px;
    margin: 48px auto 32px auto;
    background: #181818;
    border-radius: 26px;
    box-shadow: 0 4px 32px #000a;
    padding: 42px 28px 32px 28px;
}
        .tixi-h1 {
            color: #ffd85b;
            font-family: 'Oswald', Arial, sans-serif;
            font-size: 2.3em;
            margin-bottom: 12px;
            letter-spacing: 1px;
        }
        .tixi-section {
            margin-bottom: 32px;
        }
        .tixi-section h2 {
            color: #ffd85b;
            font-size: 1.3em;
            margin-bottom: 10px;
        }
        .tixi-list {
            margin-top: 0; margin-bottom: 14px; padding-left: 20px;
        }
        .tixi-table {
            width: 100%;
            border-collapse: collapse;
            background: #232323;
            margin-bottom: 22px;
            border-radius: 10px;
            overflow: hidden;
        }
        .tixi-table th, .tixi-table td {
            padding: 12px 10px;
            border-bottom: 1px solid #222;
        }
        .tixi-table th {
            background: #181818;
            color: #ffd85b;
            text-align: left;
        }
        .tixi-table tr:last-child td {
            border-bottom: none;
        }
        .tixi-badge {
            font-weight: bold;
            color: #ffd85b;
        }
        .tixi-galerie {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            margin: 20px 0;
        }
        .tixi-galerie img {
            width: 220px;
            max-width: 95vw;
            border-radius: 13px;
            background: #232323;
            box-shadow: 0 2px 18px #0007;
        }
        .tixi-emoji {
            font-size: 1.45em;
            vertical-align: middle;
            margin-right: 5px;
        }
        .tixi-checked {
            color: #98e298;
            font-weight: bold;
            font-size: 1.2em;
        }
        @media (max-width: 600px) {
            .tixi-main { padding: 16px 3vw 12px 3vw; }
            .tixi-h1 { font-size: 1.3em;}
            .tixi-galerie { flex-direction: column; align-items: center;}
            .tixi-galerie img { width: 97vw;}
        }

#language-switcher select {
    border-radius: 5px;
    transition: transform 0.3s ease;
}

#language-switcher select:hover {
    transform: scale(1.05);
}

canvas {
    pointer-events: none; /* Pour ne jamais bloquer les clics */
}


/* Blog : réutilise la grille et les cartes de travaux */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    justify-items: center;
    align-items: stretch;
}
.card {
    background: #181818;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 4px 40px #0008;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.3s;  
}
@media (max-width: 900px) {
    .grid { grid-template-columns: repeat(2, 1fr);}
}
@media (max-width: 600px) {
    .grid { grid-template-columns: 1fr;}
}





.timeline-road-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 50px auto 80px auto;
  height: 250px;
}

.timeline-road-svg {
  width: 100%;
  height: 100%;
}

.timeline-road-path {
  fill: none;
  stroke: white;
  stroke-width: 20;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40 20;
  animation: dash-move 2s linear infinite;
}

@keyframes dash-move {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -60; }
}

.road-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}

.road-marker::before {
  content: '';
  width: 24px;
  height: 24px;
  background: red;
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #181818;
}


.roadmap {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 300px;
  margin: 50px auto;
}

.roadmap-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.marker {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
}

.pin {
  width: 24px;
  height: 24px;
  background: #ffd85b;
  border: 6px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #111;
  margin: 0 auto 8px auto;
}

.strong {
  font-weight: bold;
  color: #ffd85b;
  margin-bottom: 5px;
}


