@media (min-width: 76.25em) {

  /* TOC à gauche */
  .md-sidebar--secondary {
    order: -1;
  }

  /* Navigation à droite */
  .md-sidebar--primary {
    order: 1;
  }

  /* Contenu au centre */
  .md-content {
    order: 0;
  }
}

@font-face {
  font-family: "Clack";
  src: url("../assets/fonts/Clack-VF.ttf") format('truetype');
}

@font-face {
  font-family: "Qoonquer";
  src: url("../assets/fonts/Qonquer.ttf") format('truetype');
}

body {
  background: #dafff9;
  color : #414636;
}

.md-typeset h1 {
  color : #faab22;
  font-family: "Qoonquer";
  font-size: 4em;
  width: 800px;
  height: 30px;
  text-shadow: 1px 1px #7b1200, 2px 2px #7b1200, 3px 3px #7b1200, 4px 4px #e95333, 5px 5px #e95333;
  text-align: center;
  margin: auto;
  animation: blinker 1s step-start infinite;
}

.md-typeset h2 {
  color : #faab22;
  font-family: "Qoonquer";
  font-size: 3.5em;
  text-shadow: 1px 1px #7b1200, 2px 2px #7b1200, 3px 3px #7b1200, 4px 4px #e95333, 5px 5px #e95333;
  height: 40px;
  text-align: center;
  margin: 2rem 0;
}

.md-typeset h3 {
  color : #faab22;
  font-family: "Qoonquer";
  font-size: 2.5em;
  text-shadow: 1px 1px #7b1200, 2px 2px #7b1200, 3px 3px #7b1200, 4px 4px #e95333, 5px 5px #e95333;
  height: 40px;
}

.md-typeset h4 {
  color : #faab22;
  font-family: "Qoonquer";
  font-size: 2em;
  text-shadow: 1px 1px #7b1200, 2px 2px #7b1200, 3px 3px #7b1200, 4px 4px #e95333, 5px 5px #e95333;
  height: 40px;
}

.md-typeset h5 {
  color : #7b1200;
  font-family: "Qoonquer";
  font-size: 1.5em;
}

.md-typeset h6 {
  color : #7b1200;
  font-family: "Qoonquer";
  font-size: 1.2em;
}

.center {
  margin: 100px;
}

:root  > * {
  --md-primary-fg-color:#c9a96c;
  --md-accent-fg-color:#7b1200;
  --md-code-bg-color:#d7d7d786;
  --md-code-fg-color:#414636;
}

@keyframes blinker {
  10% {
    color: #ffe3b4;
    text-shadow: 1px 1px #7b1200, 2px 2px #7b1200, 3px 3px #7b1200,4px 4px #7b1200, 0 0 25px #ffc35b;
  }
  20% {
    color : #faab22;
    text-shadow: 1px 1px #7b1200, 2px 2px #7b1200, 3px 3px #7b1200, 4px 4px #e95333, 5px 5px #e95333, 6px 6px #e95333;
  }
  50% {
    color: #ffe3b4;
    text-shadow: 1px 1px #7b1200, 2px 2px #7b1200, 3px 3px #7b1200,4px 4px #7b1200, 0 0 25px #ffc35b;
  }
}

.blink {
  animation: blinker 1.5s linear infinite;
}

/* Supprimer les sidebars uniquement si .home-hero est présent */
.home-hero ~ .md-sidebar--primary,
.home-hero ~ .md-sidebar--secondary {
  display: none;
}

/* Homepage full width */
.md-content__inner {
  max-width: 100% !important;
}

.md-grid {
  max-width: 100%;
}

.home-page {
  margin-top: -2.5rem;
}

/* HERO PARALLAX */
.hero {
  position: relative;
  height: 120vh;
  overflow: hidden;

  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.layer {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform;
}

.layer-back {
  background-image: url("../assets/images/home/background-low.jpg");
  z-index: 0;
}

.layer-middle {
  background-image: url("../assets/images/home/midground-low.png");
  z-index: 1;
}

.layer-front {
  background-image: url("../assets/images/home/foreground-low.png");
  z-index: 2;
}

.hero-title {
  position: absolute;
  top: 6rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  z-index: 2;
}

/* STYLE DU TITRE */
.hero-title h1 {
  font-size: 4.5rem;
  margin: 0;
}

/* ============================= */
/* GRID SECTION */
/* ============================= */

.grid-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;

  padding: 4rem 2rem;
}

/* Carte */
.grid-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.grid-card:hover {
  transform: translateY(-6px);
}

/* Image carrée */
.grid-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
}

.grid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.grid-card:hover img {
  transform: scale(1.08);
}

/* Titre sous image */
.grid-title {
  text-align: center;
  margin-top: 1rem;
  font-weight: bold;
  font-size: 1.1rem;
  color: #faab22;
  text-shadow: 2px 2px #7b1200;
}

/* ============================= */
/* HERO SHOT FRAME SECTION */
/* ============================= */

@keyframes frame-blinker {
  0% {background: #ffe3b4;}
  50% {background: #faab22;}
  100% {background: #ffe3b4;}
}

.media-frame {
  background: #ffe3b4;          /* intérieur */
  padding: 1.5rem;
  border: 3px solid rgba(123,18,0,1.0);    /* 👈 bordure */
  border-radius: 16px;
  margin: 2rem 0;
}

/*Image / vidéo responsive*/
.media-frame img,
.media-frame video {
  width: 100%;
  border-radius: 10px;
  display: block;
}