/*! 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
   ========================================================================== */

/* Overlay premium (dégradé + vignette + spotlight) */
.hero-overlay{
  background:
    radial-gradient(900px 500px at 18% 35%, rgba(212,175,55,.18), transparent 60%),
    radial-gradient(900px 650px at 80% 55%, rgba(0,0,0,.55), transparent 55%),
    linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.20) 70%, rgba(0,0,0,.12) 100%);
}

/* Grain léger (texture luxe) */
.hero-grain{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Animation du point de scroll */
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: .25; }
  35% { opacity: 1; }
  100% { transform: translateY(14px); opacity: .25; }
}
.hero-scroll-dot{
  animation: scrollDot 1.3s ease-in-out infinite;
}

/* Curseur typing */
@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
/* Reveal base */
.reveal, .reveal-item{
  opacity: 0;
  filter: blur(6px);
  transition: opacity .85s ease, transform .85s ease, filter .85s ease;
  will-change: opacity, transform, filter;
}

/* Variantes direction */
.reveal-up{ transform: translateY(18px); }
.reveal-left{ transform: translateX(-22px); }
.reveal-right{ transform: translateX(22px); }

.is-visible{
  opacity: 1;
  transform: translate(0,0);
  filter: blur(0);
}

.reveal-item{
  transition-delay: var(--delay, 0ms);
}

.tilt-card{
  transform-style: preserve-3d;
  transition: transform .18s ease, box-shadow .18s ease;
  will-change: transform;
}
.tilt-card:hover{
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
}


.btn-shine{
  position: relative;
  overflow: hidden;
}
.btn-shine::after{
  content:"";
  position:absolute;
  top:-30%;
  left:-120%;
  width:60%;
  height:160%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transition: left .8s ease;
}
.btn-shine:hover::after{
  left:160%;
}


html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}
/* Modal cinématique */
.modal-overlay{ opacity:0; pointer-events:none; transition: opacity .25s ease; }
.modal-overlay.is-open{ opacity:1; pointer-events:auto; }

.modal-panel{
  opacity: 0;
  transform: translateY(14px) scale(.98);
  transition: opacity .25s ease, transform .25s ease;
}
.modal-overlay.is-open .modal-panel{
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.modal-open{ overflow: hidden; }

/* Badges */
.modal-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 9999px;
  font-size: 12px;
  line-height: 1;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
}
.modal-badge-dot{
  width: 6px; height: 6px; border-radius: 9999px;
  background: #D4AF37;
}


/*
 * 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;
  }
}

/* ===== MAGAZINE PAGE REVEAL ===== */
.mag-page{
  transform-style: preserve-3d;
  transform-origin: left center;
  will-change: transform, opacity, filter;
  opacity: 0;
  transform: perspective(1200px) rotateY(-14deg) translateY(18px) scale(.985);
  filter: blur(1.2px);
  transition:
    transform .85s cubic-bezier(.2,.8,.2,1),
    opacity .65s ease,
    filter .65s ease,
    box-shadow .65s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
  position: relative;
  overflow: hidden; /* pour le gloss */
}

/* gloss qui traverse la carte */
.mag-page::after{
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(120deg,
    transparent 35%,
    rgba(255,255,255,.20) 48%,
    transparent 62%);
  transform: translateX(-80%) rotate(0.001deg);
  opacity: 0;
  transition: transform 1.1s ease, opacity .55s ease;
  pointer-events: none;
}

/* Visible = page qui s'ouvre */
.mag-page.is-visible{
  opacity: 1;
  filter: blur(0);
  transform: perspective(1200px) rotateY(0deg) translateY(0) scale(1);
  box-shadow: 0 18px 50px rgba(0,0,0,.14);
}

/* gloss passe au moment où ça devient visible */
.mag-page.is-visible::after{
  opacity: 1;
  transform: translateX(80%);
}

/* Variante "droite" : page qui s'ouvre depuis l’autre côté */
.mag-page.right{
  transform-origin: right center;
  transform: perspective(1200px) rotateY(14deg) translateY(18px) scale(.985);
}

/* Respect accessibilité */
@media (prefers-reduced-motion: reduce){
  .mag-page, .mag-page::after{
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

