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

body {
    background-color: #F5EDE2;
    color: #8B008B;
}

h1 {
    font-family: 'Bebas Neue', sans-serif;
}

h2 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
}

p {
    font-family: 'Roboto', sans-serif;
    color: #8B008B;
    font-size: 30px;
}

/* Header */
.header {
    position: fixed;
  height: 60px;
  top: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
  align-items: center; 
    display: flex;
    background: linear-gradient(to bottom, rgba(139, 0, 139, 0.9) 0%, rgba(245, 237, 226, 0) 100%);
    justify-content: space-between;
    z-index: 1000;
}

.header-item.header-left {
font-size: 20px;
  font-family: 'Bebas Neue', sans-serif;
    font-weight: bold;
  letter-spacing: 3px;
    color: #F5EDE2;
}

.header-item.header-right {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    font-size: 30px;
    font-family: 'Bebas Neue', sans-serif;
}

.header-item.header-right a {
    color: #F5EDE2;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.header-item.header-right a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: #FFFF00;
    transition: width 0.3s ease;
}

.header-item.header-right a:hover {
    color: #FFFF00;
}

.header-item.header-right a:hover::after {
    width: 100%;
}
/* retour à l'acc */
.header-left-link {
    font-size: 30px;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: bold;
    letter-spacing: 3px;
    color: #F5EDE2;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.header-left-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: #FFFF00;
    transition: width 0.3s ease;
}

.header-left-link:hover {
    color: #FFFF00;
}

.header-left-link:hover::after {
    width: 100%;
}
/* Container principal */
.container {
    max-width: 1400px;
    margin: 50px auto 50px;
    padding: 0 50px;
}

/* Hero section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 10px 0;
    padding: 200px 40px;
}

.hero-left h1 {
    font-size: 70px;
    font-weight: bold;
    color: #8B008B;
    line-height: 0.9;
    text-align: right;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-left h2 {
    font-size: 30px;
    line-height: 1;
    font-weight: normal;
    text-align: right;
    color: #8B008B;
}

.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hero-right p {
    font-size: 15px;
    line-height: 1.2;
    text-align: justify;
    color: #8B008B;
}
.image-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 20px 0;
  padding-bottom: 180px;
}

.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}

.image-container img {
  width: 100%;
  aspect-ratio: 1 / 1.414; /* A4 portrait */
  object-fit: cover;
  transition: transform 0.3s, filter 0.3s;
  filter: brightness(1);
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(139,0,139,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
  text-align: center;
  padding: 10px;
  z-index: 10;
}

.overlay p {
  color: #FFFF00;
  font-size: 1.2rem;
  font-weight: bold;
}

.image-container:hover img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.image-container:hover .overlay {
  opacity: 1;
}

/* Layout avec colonnes */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 100px;
}

/* Colonne de contenu */
.content-column {
    padding-right: 50px;
}

/* Section */
.section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 30px;
    font-weight: bold;
    color:#8B008B;
    margin-bottom: 10px;
  letter-spacing: 3px;
    text-transform: lowercase;
}

.subsection-title {
    font-size: 20px;
  font-family: 'Bebas Neue', sans-serif;
    font-weight: bold;
  letter-spacing: 3px;
    margin: 20px 0 10px;
}

/* Texte en colonnes */
.text-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 130px;
}

.text-columns p {
    line-height: 1.2;
  font-family: 'Roboto', sans-serif;
    color: #8B008B;
    font-size: 15px;
    text-align: justify;
    margin-bottom: 20px;
}

.text-columns.transition-right {
    grid-template-columns: 0fr 1fr;
    margin-top: 40px;
}

.text-columns.transition-right p {
    font-style: italic;
    opacity: 0.85;
}

/* Colonne de notes */
.notes-column {
    position: relative;
   padding-left: -20px;
}


.note-item {
font-size: 11px;
    line-height: 1.5;
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif;
    color: #8B008B;
    width: 100%;
   padding: 3px 6px;
   border-radius: 3px;
  position: absolute;
}

.note-item strong {
    display: block;
    margin-bottom: 3px;
}
.note-ref {
    cursor: pointer;
  text-decoration: underline;
    text-decoration-color: #FFFF00;
  text-decoration-thickness: 3px;
  }


.note-ref:hover {
    background-color: #FFFF00;
}

.note-item.active {
  background-color: #FFFF00;
}


/* Positionnement spécifique des notes */
.note-item:nth-child(1) { top: 0; }
.note-item:nth-child(2) { top: 380px; }
.note-item:nth-child(3) { top: 620px; }
.note-item:nth-child(4) { top: 900px; }
.note-item:nth-child(5) { top: 1200px; }
.note-item:nth-child(6) { top: 1680px; }
.note-item:nth-child(7) { top: 2150px; }
.note-item:nth-child(8) { top: 2350px; }
.note-item:nth-child(9) { top: 2650px; }
.note-item:nth-child(10) { top: 2950px; }

/* Image centrale */
.center-image {
    width: 100%;
    max-width: 400px;
    margin: 30px auto;
    display: block;
}

.center-image img {
    width: 100%;
    height: auto;
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-left h1 {
        font-size: 48px;
        text-align: center;
    }

    .hero-left h2 {
        text-align: center;
    }

    .main-layout {
        grid-template-columns: 1fr;
    }

    .content-column {
        border-right: none;
        padding-right: 0;
    }

    .notes-column {
        display: none;
    }

    .note-item {
        display: none;
    }

    .note-ref {
        position: relative;
        cursor: pointer;
        background-color: transparent;
        transition: background-color 0.2s ease;
    }

    .note-ref.active {
        background-color: #FFFF00;
    }

    .note-ref::after {
        content: attr(data-note);
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #8B008B;
        color: #F5EDE2;
        padding: 15px 20px;
        border-radius: 8px;
        font-size: 12px;
        line-height: 1.4;
        max-width: 80%;
        width: max-content;
        z-index: 2000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        display: none;
    }

    .note-ref.active::after {
        opacity: 1;
        pointer-events: auto;
        display: block;
    }

    .image-row {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        scroll-snap-type: x mandatory;
        padding-bottom: 100px;
        -webkit-overflow-scrolling: touch;
    }

    .image-container {
        flex: 0 0 75%;
        scroll-snap-align: center;
        display: flex;
        flex-direction: column;
    }

    .overlay {
        position: static;
        opacity: 1;
        background: none;
        padding: 8px 0 0 0;
        margin-top: 8px;
    }

    .overlay p {
        color: #8B008B;
        font-size: 0.9rem;
        font-weight: normal;
        text-align: left;
    }

    .image-container:hover img {
        transform: none;
        filter: brightness(1);
    }

    .image-container:hover .overlay {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header {
        padding: 10px 15px;
        height: auto;
    }

    .header-item.header-left {
        font-size: 18px;
    }

    .header-item.header-right {
        gap: 15px;
        font-size: 20px;
    }

    .hero-left h1 {
        font-size: 40px;
    }

    .hero-left h2 {
        font-size: 18px;
    }

    .hero {
        padding: 120px 20px 80px;
        gap: 30px;
        grid-template-columns: 1fr;
    }

    .hero-right p {
        font-size: 14px;
    }

    .text-columns {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 60px;
    }

    .text-columns p {
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .subsection-title {
        font-size: 18px;
    }

    .main-layout {
        grid-template-columns: 1fr;
    }

    .content-column {
        padding-right: 0;
    }

    .notes-column {
        display: none;
    }

    .note-item {
        display: none;
    }

    .note-ref {
        position: relative;
        cursor: pointer;
        background-color: transparent;
        transition: background-color 0.2s ease;
    }

    .note-ref.active {
        background-color: #FFFF00;
    }

    .note-ref::after {
        content: attr(data-note);
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #8B008B;
        color: #F5EDE2;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 11px;
        line-height: 1.4;
        max-width: 90%;
        width: max-content;
        z-index: 2000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        display: none;
    }

    .note-ref.active::after {
        opacity: 1;
        pointer-events: auto;
        display: block;
    }

    .image-row {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        scroll-snap-type: x mandatory;
        padding-bottom: 100px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .image-row::-webkit-scrollbar {
        display: none;
    }

    .image-container {
        flex: 0 0 90%;
        scroll-snap-align: center;
        display: flex;
        flex-direction: column;
    }

    .overlay {
        position: static;
        opacity: 1;
        background: none;
        padding: 10px 0 0 0;
        margin-top: 8px;
    }

    .overlay p {
        color: #8B008B;
        font-size: 0.85rem;
        font-weight: normal;
        text-align: left;
        line-height: 1.3;
    }

    .image-container:hover img {
        transform: none;
        filter: brightness(1);
    }
}