/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: 0px solid red;
}

html {
    scroll-behavior: smooth;
}



:root {
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI",
                     Roboto, Helvetica, Arial, sans-serif;;
    /* --font-body: "DM sans", sans-serif; */
    --font-titles:  "Source Serif 4", serif;
    --font-display: "Space Grotesk", sans-serif;
    
    --text-base: 16px;
    --text-line-height: 26px;

    --bg-main-background: #F3F3F3;
    --bg-nav-background: #FFF;
}


body {

    font-family: var(--font-body);
    font-size: var(--text-base);
    background-color: var(--bg-main-background);
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

}



/* Dark background */
.announcement-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;

    padding: 1rem;

    animation: fadeIn 0.25s ease;
}

/* Popup */
.announcement-popup {
    position: relative;

    width: 100%;
    max-width: 520px;

    background: #fff;

    padding: 2.5rem;

    border-radius: 16px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

    text-align: center;

    animation: popupIn 0.3s ease;
}

/* Close button */
.announcement-close {
    position: absolute;

    top: 12px;
    right: 16px;

    border: none;
    background: none;

    font-size: 28px;
    line-height: 1;

    color: #777;

    cursor: pointer;
}

.announcement-close:hover {
    color: #222;
}

/* Icon */
.announcement-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Title */
.announcement-popup h2 {
    margin: 0 0 1rem;
}

/* Text */
.announcement-popup p {
    margin: 0 0 1.5rem;

    line-height: 1.6;
    color: #555;
}

/* Button */
.announcement-button {
    display: inline-block;

    padding: 0.7rem 1.2rem;

    background: #333;
    color: #fff;

    border-radius: 8px;

    text-decoration: none;

    transition: background 0.2s ease;
}

.announcement-button:hover {
    background: #555;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile */
@media (max-width: 600px) {

    .announcement-popup {
        padding: 2rem 1.5rem;
    }

}




/* HEADER - NAV - SEARCH - LOGO */

/* .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    border-bottom: 1px solid #DDD;
    background-color: var(--bg-nav-background);
    margin-bottom: 2rem;
} */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
    width: 100%;
    min-height: 64px;
    background: #fff;
    background-color: var(--bg-nav-background);
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}



.logo {
    color: #666;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: -0.02rem;
    font-family: var(--font-body);
    text-transform: uppercase;
}

.logo a
{
    text-decoration: none;
}


/* SCREENSHOTS TABLE */

.chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 16px;
  /* space between items */
  justify-content: center;
  /* centers the grid if fewer items */
  padding: 0;
  margin-bottom: 1rem;
}

.chip-grid div {
border-radius: 0.4rem;
border: 1px #DDD solid;
padding: 1rem;
}


.sc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  /* space between items */
  justify-content: center;
  /* centers the grid if fewer items */
  padding: 0;
  margin-bottom: 1rem;
}

.sc-grid div {
  color: white;
  font-size: 1.5rem;
  /* specific height */
  /* display: flex;
  align-items: center; */
  /* justify-content: center; */
  border-radius: 8px;
  width: 80%;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 36px;
  cursor: pointer;
}

/* MODAL */

/* Thumbnail */
.thumbnail {
  cursor: pointer;
  transition: transform 0.2s ease;
  background-color: #26292e;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.thumbnail:hover {
  transform: scale(1.03);
}

/* Modal background */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

/* Modal image */
.modal-content {
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}


.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.8rem;
}

.nav a {
    color: #666;
    text-decoration: none;
            font-weight: 600;
}


  .search {
    position: relative;
    width: 190px;
  }

  .search input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 40px 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    font-family: var(--font-body);
  }

  .search input:focus {
    border-color: #999;
  }

  .search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 20px;
    pointer-events: none;
  }

.hamburger {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
}

/* LES GRILLES */

.main-grid-grey {
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 1rem;
    margin-top: 2rem;
    padding: 2rem;
    width: calc(100% - 2rem);
}

.main-grid-white {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #FFF;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    width: calc(100% - 2rem);
    margin-top: 2rem;
    
}

.main-grid-white-border
{
  border-right:1px solid #DDD;
  padding:0 1rem 0 0;  
}

/* .main-grid-white-full {
    padding: 2rem;

    display: grid;
    grid-template-columns: 1fr;

    width: calc(100% - 2rem);
    max-width: 1200px;
    margin: 0 auto;

    background-color: #FFF;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
} */



.main-grid-white-full {
    box-sizing: border-box;

    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr;

    width: calc(100% - 2rem);
    max-width: 1200px;
    margin: 0 auto;

    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 2rem;
}

.main-grid-grey-full {
    display: grid;
    grid-template-columns: 1fr;
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 2rem;
    margin-top: 2rem;
    width: calc(100% - 2rem);
    
}


.main-grid-grey-full-right {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 2rem;
    margin-top: 2rem;
    width: calc(100% - 2rem);
    text-align: right;
}

.grid-story {
    display: grid;
    grid-template-columns: 100px 1fr;
    grid-column-gap: 1rem;
}

.grid-story img {
    width:100px;
    height:100px;
    border-radius: 0.4rem;
    margin-top:25px;
}


/* LES TITRES et P */


h1
{

    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.04rem;
    font-family: var(--font-body);
    font-size: clamp(1.6rem, 6vw, 1.9rem);
  }


.museum {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 3px 10px 4px;
    border-radius: 3px;
    letter-spacing: -0.5px;
}


h2
{
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03rem;
    font-family: var(--font-body);
    transition: color 0.2s ease, transform 0.2s ease;
    margin-bottom: 1rem;
}

h3
{
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.04rem;
    font-family: var(--font-body);
    transition: color 0.2s ease, transform 0.2s ease;
    margin-bottom: 0.5rem;
    line-height: 1.8rem;
}

a
{
    color: #000;
    text-decoration: underline;
    text-decoration-color: #2563eb;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;  
    font-weight: 500;
}

a:hover
{
  text-decoration: none;
  color:#888;
}


.time
{
  color:#888;
  font-size: 0.8rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}


footer
{
  color:#666;
  font-size: 0.8rem;
}


.title-link {
    color: #222;
    text-decoration: none;
}

.title-link h2 {
    transition: color 0.2s ease, transform 0.2s ease;
}

.title-link:hover h2 {
    color: #2563eb;
    transform: translateX(4px);
}

p
{
    font-family: var(--font-body);
    line-height: var(--text-line-height);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

p.intro
{
    font-family: var(--font-body);
    line-height: 1.7rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #666;
}
p.note
{
    font-family: var(--font-body);
    line-height: 1.7rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #666;
    font-style: italic;
}




hr {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 1rem 0;
}

ul {
  list-style-type: square;
  list-style-position: inside;
  padding: 0;
  margin-bottom: 1rem;
}

li
{
  line-height: 1.8rem;
  font-size: 0.95rem;
}

li span
{
  font-weight: 600;
}


.minimal-list {
    list-style: none;
    margin: 0 0 1rem 0;
    padding: 0;
}

.minimal-list > li {
    padding: 3px 0;
    font-weight: 400;
}

.minimal-list > li > ul {
    list-style: none;
    margin: 3px 0 0;
    padding: 0 0 0 20px;
}

.minimal-list > li > ul > li {
    padding: 4px 0;
    font-size: 0.9rem;
    font-weight: 400;
    color: #777;
    position: relative;
}

/* Small minimalist marker */
.minimal-list > li > ul > li::before {
    content: "—";
    position: absolute;
    left: -18px;
    color: #bbb;
}


/* TABLES */

.data-table {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    margin-bottom: 1rem;
}

.table-header,
.table-row {
    display: contents;
}

.table-header > div {
    background: #eeeeee;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.table-row > div,
.table-header > div {
    padding: 12px 16px;
    font-size: 0.9rem;>
}

.table-row > div {
    background: white;
    border-top: 1px solid #eeeeee;
}

/* TRACKER SELECTOR */

.black-area {
  background-color: #003153;
  background-image: linear-gradient(315deg, #003153 0%, #1B1B1B 74%);
  color: #FFF;
  padding: 2rem;
  border-radius: 0.5rem;
}

.minimal-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.minimal-select:focus {
  border-color: #999;
}


/* CARDS */

.image-container {
    position: relative;
}

.stories-image-header
{
width: 100%;
border-radius: 0.5rem;
margin-bottom: 1rem;
}

.story-image {
    width: 30%;
    float: right;
    margin: 0 0 1rem 1.5rem;
    border-radius: 0.5rem;
}

.link-right {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.story-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
    border:1px solid #DDD;
}


.story-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.content {
    padding: 1rem;
}

.date {
    display: inline-block;
    font-size: .8rem;
    color: #888;
    margin-bottom: 0rem;
}


.category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,.80);
    color: white;
    padding: .2rem .5rem;
    border-radius: 20px;  
    font-size: .75rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom:1rem;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 1rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.img-story-right {
    width: 10%;
    float: right;
    margin: 0 0 1rem 1.5rem;
    border-radius: 1rem;
}





@media (max-width: 1000px) {

    .main-grid-white {
        display: grid;
        grid-template-columns: 1fr;
        padding:1rem;
        margin:0 1rem;
    }
    .main-grid-grey {
        display: grid;
        grid-template-columns: 1fr;
        padding:0 1rem;
    }

.chip-grid {
        display: grid;
        grid-template-columns: 1fr;
  padding: 0;
  margin-bottom: 1rem;
}


.stories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.grid-story {
    display: grid;
    grid-template-columns: 1fr;
    grid-column-gap: 1rem;
}

.grid-story img {
    width:100px;
    height:100px;
    border-radius: 0.4rem;
    margin-top:25px;

}

    .header {
        position: relative;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 0.5rem 0;
        color: #FFF;

    }

    .search-form {
        margin: 1rem 0 0;
        width: 100%;
    }

    .search-form input {
        flex: 1;
    }

    .hamburger {
        display: block;
    }
    .main-grid-white-border
    {
      border:none;
    }


    .data-table {
        display: block;
        border:none;
    }

    .table-header {
        display: none;
    }

    .table-row {
        display: block;
        margin-bottom: 5px;
        padding: 8px 12px;
        border-bottom: 1px solid #CCC;
    }

    .table-row > div {
        display: flex;
        justify-content: space-between;
        padding: 5px 0;
        border:none;

    }

    .table-row > div:last-child {
        border-bottom: none;
    }
    .table-row:last-child {
        border-bottom: none;
    }

    .table-row > div::before {
        content: attr(data-label);
        font-weight: 600;
        color: #777;
    }
}

/* FOOTER */

.footer {
        color: #444;
        font-size: 0.8rem;
        text-align: center;
        padding: 3rem;
        
    }

.footer a {
        color: #444;
        text-decoration: underline;
        margin: 0 5px;
    }

.footer a:hover {
    color: #666;
    }
