/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  background-color: #2aa0bf;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: 1em;
  line-height: 1.4;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}
/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* END BOILERPLATE*/

/* START CSS*/
.screen {
    height: 100vh;
    height: 100dvh;

    font-size: 20px;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logopage {
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    flex-direction: column;

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

    gap: 0px;

    text-align: center;
}
.logopage img { 
  width: 320px;
}

.logopage h1 {
  font-size: 90px;
  margin: 0;
  padding: 0;
}


.logopage h2 {
  font-size: 41px;
  margin: -30px 0 0 0;
  padding: 0;
}


.video-section {
    width: 100%;
    height: 100vh;
    height: 100dvh;

    position: relative;
    overflow: hidden;

    scroll-snap-align: start;
}

.video-section video {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

/* SECTION PRESENTATION */

.presentation h1 {
  font-size: 60px;
  color: #000;
}
/* =========================
   SECTION JEUX
========================= */

.jeux {
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;
}

.jeux h2 {
    font-size: 60px;
    margin: 0 0 50px 0;
    color: #000;
}

.games-container {
    display: flex;
    flex-wrap: wrap;

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

    gap: 10px;

    max-width: 1440px;
}


/* =========================
   JEU
========================= */

.jeux .game {
    position: relative;

    display: flex;
    flex-direction: column;

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

    cursor: pointer;
}


/* =========================
   IMAGE
========================= */

.jeux .game img {
    width: clamp(120px, 15vw, 280px);
    height: auto;

    display: block;

    filter: grayscale(100%);

    transition:
        filter 0.4s ease-in-out,
        transform 0.4s ease-in-out;
}


.jeux .game:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}


/* =========================
   DESCRIPTION
========================= */

.jeux .description {
    position: absolute;

    top: 100%;
    left: 50%;

    width: max-content;
    max-width: 250px;

    margin: 15px 0 0 0;

    transform: translateX(-50%) translateY(-10px);

    color: #000;
    font-size: 20px;
    text-align: center;

    opacity: 0;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;

    pointer-events: none;
}


.jeux .game:hover .description {
    opacity: 1;

    transform: translateX(-50%) translateY(0);
}


/* =========================
   EVENEMENTS
========================= */

.evenement {
    display: flex;
    flex-direction: column;

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

    color: #000;

    padding: 40px;
}

.evenement h2 {
  font-size: 60px;
  color: #000;
  margin: 0 0 40px 0;
}

.evenement h3 {
  color: #000;
    margin: 20px 0 10px 0;
}

.evenement ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.evenement li {
    color: #fff;
    display: flex;
    align-items: center;

    margin: 10px 0;
}

.evenement li p {
  color :#fff;
}

.evenement .date_event {
    margin: 0 25px 0 0;
    width: 170px;
    font-weight: bold;
}

.evenement .lieu {
    margin: 0 0 0 10px;
}

.contact {
    overflow-y: auto;
}


.contact-container {
    max-height: 100%;
}

.contact-container h2 {
  text-align: center;
  font-size: 60px;
  color: #000;
}

.contact-container label {
  display: inline-block;
  width: 190px;
}

.contact-container input {
  width: 240px;
  height: 30px;
}

.contact-container select {
  width: 248px;
  height: 30px;
}

.contact-container textarea{
  width: 240px;
}

.contact .form-group {
    margin-bottom: 10px;
}

.contact textarea {
    min-height: 100px;
}

.contact button {
  cursor: pointer;
  background-color: white;
  width: 100px;
  height: 40px;
  font-family: 'Bebas Neue';
  font-size: 22px;
  margin-left: 340px;
}

#form-message {
    display: none;

    padding: 15px 20px;
    margin-bottom: 20px;

    text-align: center;

    font-family: "Outfit", sans-serif;
    font-size: 16px;

    border-radius: 5px;
}

#form-message.success {
    display: block;

    background: #d4edda;
    color: #155724;

    border: 1px solid #155724;
}

#form-message.error {
    display: block;

    background: #f8d7da;
    color: #721c24;

    border: 1px solid #721c24;
}

/* =========================================================
   GAME OVERLAY
   ========================================================= */

.game-overlay {
    position: fixed;

    inset: 0;

    z-index: 1000;

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

    padding: 40px;

    background: rgba(0, 0, 0, 0.75);

    opacity: 0;
    visibility: hidden;

    cursor: pointer;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


/* Overlay visible */

.game-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* Bloc central */

.game-overlay-content {
    display: grid;

    grid-template-columns: 1fr 1fr;

    width: min(1000px, 90vw);

    min-height: 400px;

    background: #2aa0bf;

    cursor: pointer;

    transform: scale(0.9);

    transition: transform 0.3s ease;
}


/* Animation d'ouverture */

.game-overlay.active .game-overlay-content {
    transform: scale(1);
}


/* Image */

.game-overlay-image {
    display: flex;

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

    padding: 40px;
}


.game-overlay-image img {
    display: block;

    width: 100%;
    max-width: 400px;
    height: auto;

    object-fit: contain;
}


/* Texte */

.game-overlay-text {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 50px;

    color: #000;
}


.game-overlay-text h2 {
    margin: 0 0 25px 0;

    font-size: 50px;
}


.game-overlay-text p {
    margin: 0;

    font-family: "Outfit", sans-serif;

    font-size: 18px;

    line-height: 1.6;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .game-overlay {
        padding: 20px;
    }

    .game-overlay-content {
        grid-template-columns: 1fr;

        width: 100%;

        max-height: 90vh;

        overflow-y: auto;
    }

    .game-overlay-image {
        padding: 30px 30px 10px;
    }

    .game-overlay-image img {
        max-width: 250px;
    }

    .game-overlay-text {
        padding: 20px 30px 30px;

        text-align: center;
    }

    .game-overlay-text h2 {
        font-size: 40px;
        margin-bottom: 15px;
    }

}