/* --- CONFIGURATION & VARIABLES --- */
:root {
  --bg: #101010;
  --bg-blue: #0f172a;
  --accent: #ffb300;
  --warning: #ff3e3e;
  --ok: #4caf50;
  --info: #2196f3;
  --text: rgba(255, 255, 255, 0.8);
  --border: #b3b3b3;
  --box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Quicksand", "Inter", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

/*
===============================================================================
== TYPOGRAPHIE ================================================================
===============================================================================
*/

.Inter {
  font-family: "Inter", sans-serif;
}

.Quicksand {
  font-family: "Quicksand", sans-serif;
}

.Playfair {
  font-family: "Playfair Display", serif;
}

/* == H1, H2 =============================================================== */
h1,
h2 {
  font-family: "Playfair Display", serif;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 1rem 0;
}

h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
}

/* == H3, H4, H5 =========================================================== */
h3,
h4,
h5 {
  font-family: "Inter", serif;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

h3 {
  font-weight: 700;
}
h4 {
  font-weight: 400;
}
h5 {
  font-weight: 300;
}

/* == AUTRES =============================================================== */
strong {
  color: #fff;
  font-weight: 700;
}

em {
  font-family: "Playfair Display", serif;
  font-style: italic;
}

hr {
  border: none;
  height: 1px;
  background: var(--accent);
  padding: 0;
  margin: 2rem 0;
}

section > article > div > hr {
  margin: 0;
}

blockquote {
  font-family: "Playfair Display", serif;
  border-left: 4px solid var(--accent);
  padding-left: 2rem;
  font-style: italic;
}

.flex {
  display: flex;
}

.serif {
  font-family: "Playfair Display", serif;
}

.italic {
  font-style: italic;
}

.normal {
  font-style: normal !important;
}

/*
===============================================================================
== HEADER =====================================================================
===============================================================================
*/
header {
  width: 100%;
  min-width: 360px;
  max-width: 1200px;
  box-sizing: border-box;

  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 70px auto 0 auto;
  padding: 2rem;
  text-shadow:
    0 0 0.1rem black,
    0 0 0.5rem black,
    0 0 1rem black,
    0 0 2rem black;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: var(--box-shadow);

  img {
    border: 1px solid white;
    margin-bottom: 15px;
    max-width: 100%;
    height: auto;
  }

  > p:nth-of-type(1) {
    font-family: "Inter", serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 5px;
    width: 100%;
  }

  > p:nth-of-type(2) {
    width: 70%;
    font-family: "Playfair Display", serif;
    font-weight: 400;
    font-style: italic;
    text-align: justify;
  }

  .photo {
    border-radius: 50%;
    border: 6px solid var(--accent) !important;
    box-shadow: var(--box-shadow);
    object-fit: cover;
    aspect-ratio: 1 / 1;
  }
}

/*
===============================================================================
== MAIN =======================================================================
===============================================================================
*/

main {
  width: 100%;
  min-width: 360px;
  margin: auto;
  box-sizing: border-box;

  ul,
  ol {
    margin-bottom: 1rem;
    margin-left: 3rem;
  }

  p,
  li {
    margin-bottom: 1rem;
  }

  p:last-child,
  li:last-child {
    margin-bottom: 0;
  }

  .last-child {
    margin-bottom: 0;
  }

  /*
  =============================================================================
  == SECTION ==================================================================
  =============================================================================
  */
  section {
    /*
    ===========================================================================
    == ARTICLE ================================================================
    ===========================================================================
    */
    article {
      display: flex;
      align-items: flex-start;
      gap: 2rem;
      margin: 0 auto;
      padding: 4rem 2rem;
      max-width: 1200px;
      min-height: 80vh;

      /*
      =========================================================================
      == ARTICLE - COLONNE GAUCHE =============================================
      =========================================================================
      */
      > div:nth-child(1) {
        flex: 0 1 40%;
        position: sticky;
        top: calc(70px + 2.5rem);

        > p:nth-child(1),
        .h2s {
          text-transform: uppercase;
          font-family: "Inter", serif;
          font-weight: 700;
          font-size: 1rem;
          color: var(--accent);
        }
      }

      /*
      =========================================================================
      == ARTICLE - COLONNE DROITE =============================================
      =========================================================================
      */
      > div:nth-child(2) {
        flex: 0 1 60%;
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 4rem;

        a,
        a:link,
        a:visited {
          color: var(--info);
          text-decoration: none;
          text-underline-offset: 0.33rem;
        }

        a:hover,
        a:active {
          color: var(--accent);
          text-decoration: underline;
          text-underline-offset: 0.33rem;
        }
      }

      & .column {
        flex-direction: column;
        gap: 2rem;
        min-height: 0;
      }

      img {
        width: 100%;
        height: auto;
        object-fit: cover;
        box-shadow: var(--box-shadow);
        border-radius: 1rem;
      }
    }
  }
}

/*
===============================================================================
== MILESTONES =================================================================
===============================================================================
*/
.milestone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.milestone-card {
  padding: 2rem;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.milestone-card h4 {
  color: var(--accent);
  margin-top: 0;
}

/*
===============================================================================
== PROGRAM CARD ===============================================================
===============================================================================
*/
.program-card {
  padding: 2rem;
  margin: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);

  .card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    margin: 0;
    border-radius: 8px;
  }

  .card.premium {
    border: 1px solid rgba(255, 255, 0, 0.1);
    background: rgba(255, 255, 0, 0.05);
  }
}

/*
===============================================================================
== FLAGS BOX ==================================================================
===============================================================================
*/
.flag-box {
  margin: 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--box-shadow);

  .btn-container {
    justify-content: flex-start;
  }
}

.flag-box.warning {
  border-left: 4px solid var(--warning);

  h3,
  h4,
  h5 {
    color: var(--warning);
  }
}

.flag-box.ok {
  border-left: 4px solid var(--ok);

  h3,
  h4,
  h5 {
    color: var(--ok);
  }
}

.flag-box.accent {
  border-left: 4px solid var(--accent);

  h3,
  h4,
  h5 {
    color: var(--accent);
  }
}

.flag-box.info {
  border-left: 4px solid var(--info);

  h3,
  h4,
  h5 {
    color: var(--info);
  }
}

/*
===============================================================================
== TIER BOX ===================================================================
===============================================================================
*/
.tier-box {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--box-shadow);
}

.tier-box.premium {
  background: rgba(255, 255, 0, 0.05);
  border: 1px solid rgba(255, 255, 0, 0.1);
}

/*
===============================================================================
== ICON BOX ===================================================================
===============================================================================
*/

.icon-box {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem;
  margin: 0;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--box-shadow);
}

.icon-box.warning {
  border: 1px solid var(--warning);

  h3,
  h4,
  h5 {
    color: var(--warning);
  }
}
.icon-box.info {
  border: 1px solid var(--info);

  h3,
  h4,
  h5 {
    color: var(--info);
  }
}
.icon-box.ok {
  border: 1px solid var(--ok);

  h3,
  h4,
  h5 {
    color: var(--ok);
  }
}

.icon-box .icon {
  flex: 0 1;
}
.icon-box .content {
  flex: 1 1;
}

/*
===============================================================================
== OBJECTIVE-BOX ==============================================================
===============================================================================
*/
.objective-box {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem;
  margin: 0;

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;

  h4,
  h5 {
    color: var(--accent);
    margin: 0 0 0.5rem 0;
  }
}

/*
===============================================================================
== RATING CONTAINER ===========================================================
===============================================================================
*/
.rating-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/*
===============================================================================
== FEATURES LIST ==============================================================
===============================================================================
*/
.features-list {
  list-style: none;

  li {
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.6);

    span.col1 {
      flex: 1 1 100px;
      display: inline-block;
      max-width: 100px;
    }

    span.col2 {
      flex: 2 1 200px;
      color: white;
      text-align: right;
    }

    span.item {
      display: inline-block;
      margin: 0 0.5rem;
    }
  }

  li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent);
  }
}

.price {
  font-weight: bold;
  font-size: 2.5rem;
  color: var(--accent);
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.05);
}

.big-note {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 0;
  padding-top: 0;
}

.center {
  text-align: center;
}

.video-container {
  text-align: center;

  video {
    width: 100%;
    max-width: 400px;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
  }

  iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
  }
}

/*
===============================================================================
== BOUTONS ====================================================================
===============================================================================
*/

.btn-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

article > div {
  > .btn-container {
    margin: 2rem auto;
  }

  > .btn-container:last-child {
    margin: 0 auto;
  }

  > div {
    > .btn-container {
      margin: 2rem auto;
    }

    > .btn-container:last-child {
      margin: 2rem auto 0 auto;
    }
  }
}

.btn {
  display: inline-block;
  background: var(--accent);
  border: 1px solid black !important;
  color: #000 !important;
  padding: 1rem;
  margin: 0;
  font-family: "Inter", serif;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  font-weight: 700;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 00.5rem 1rem rgba(0, 0, 0, 0.25);
}

.btn.warning {
  background: var(--warning) !important;
}

.btn.info {
  background: var(--info) !important;
}

.btn.ok {
  background: var(--ok) !important;
}

.btn:hover,
.btn.warning:hover,
.btn.info:hover,
.btn.ok:hover {
  color: #000;
  background: #fff !important;
  box-shadow: 0 0 0.1rem rgba(0, 0, 0, 0.9);
}

.btn-outline {
  color: var(--accent) !important;
  background: transparent;
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  color: #000 !important;
  background: var(--accent) !important;
}

/*
===============================================================================
=== FINAL CALL ================================================================
===============================================================================
*/
.final-call {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  max-width: 66%;
  padding: 0 2rem;
  margin: 4rem auto;

  > p:nth-child(1) {
    text-transform: uppercase;
    font-family: "Inter", serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
  }
}

/*
===============================================================================
=== FORMULAIRE ================================================================
===============================================================================
*/
.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  text-align: center;
  scroll-margin-top: calc(70px + 2rem);
}

.contact-form-container {
  margin: 4rem auto;
  border-top: 4px solid var(--accent);
}

.form-header {
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  text-align: left;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: #fff;
  font-family: inherit;
}

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

.helper-text {
  text-align: center;
  font-size: 0.8rem;
}

/*
===============================================================================
=== CONFIRMATION ==============================================================
===============================================================================
*/
.confirmation-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  text-align: center;
  scroll-margin-top: calc(70px + 2rem);
}

.status-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.8rem;
  margin: 0;
  text-transform: uppercase;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.instruction {
  font-size: 1.2rem;
  font-weight: 200;
  color: #b0b0b0;
  margin: 3rem auto;
}

.instruction ul {
  width: fit-content;
  margin: 0 auto;
  text-align: left;
}

/*
======================================================================
=== COLORS ===========================================================
======================================================================
*/
.bg-blue {
  background: var(--bg-blue);

  > article {
    > div {
      > h3 {
        color: #38bdf8;
      }
    }
  }
}

/*
======================================================================
=== RESPONSIVE =======================================================
======================================================================
*/
@media (max-width: 854px) {
  section {
    article {
      flex-direction: column;
      padding: 4rem 2rem;
      gap: 2rem;

      > div {
        width: 100%;
      }

      > div:nth-child(1) {
        position: static !important;
      }
    }

    .form-row {
      grid-template-columns: 1fr;
    }
  }

  .final-call {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  section {
    article {
      flex-direction: column;
      padding: 2rem 1rem;
      gap: 1rem;

      > div {
        width: 100%;
      }

      > div:nth-child(1) {
        position: static !important;
      }

      .program-card,
      .icon-box,
      .flag-box {
        padding: 1rem;
        gap: 1rem;
      }
    }
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
