/*
======================================================================
CYRIL CRESPO — PORTAIL
style.css — V5.0
----------------------------------------------------------------------
Base visual system only.

Responsive layout is split into:
  - responsive_paysage.css  : landscape / desktop / tablet landscape
  - responsive_portrait.css : portrait / mobile / tablet portrait

Photo slideshow is handled by:
  - portal.js

Design principles:
  - Three independent portal cards.
  - Images are always top-aligned.
  - No global card container around the three portals.
  - The 2560×1440 composition is the reference baseline.
======================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&display=swap');


/* ==================================================================
   1. DESIGN TOKENS
   ================================================================== */

:root {
  --bg: #050505;
  --white: #f4f1eb;

  --gold: #c9a05d;
  --gold-light: #e0bb72;
  --cyan: #35b9e8;
  --green: #7ea34b;

  --mono: "DM Mono", monospace;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;

  --card-background: rgba(4, 7, 9, 0.90);
  --card-border: rgba(255, 255, 255, 0.16);
  --card-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}


/* ==================================================================
   2. RESET / DOCUMENT
   ================================================================== */

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

html,
body {
  min-height: 100%;
  background: var(--bg);
}

body {
  color: var(--white);
  font-family: var(--sans);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ==================================================================
   3. BACKGROUND
   ================================================================== */

.bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  /* Overlay de contraste : le fond réel est désormais photofond.png. */
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.90),
      rgba(0, 0, 0, 0.48) 42%,
      rgba(0, 0, 0, 0.78)
    ),
    linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.95),
      rgba(0, 0, 0, 0.08) 50%,
      rgba(0, 0, 0, 0.76)
    );
}

.grid {

  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.12;

  background-image:
    linear-gradient(rgba(201, 160, 93, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 160, 93, 0.07) 1px, transparent 1px);

  background-size: 90px 90px;
  mask-image: radial-gradient(ellipse, black 20%, transparent 85%);
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;

  background:
    radial-gradient(
      ellipse,
      transparent 18%,
      rgba(0, 0, 0, 0.48) 78%,
      #000
    );
}


/* ==================================================================
   4. MAIN / HERO
   ================================================================== */

main {
  position: relative;
  z-index: 3;

  width: min(1400px, calc(100% - 80px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 40px);

  display: flex;
  flex-direction: column;

  padding: 14px 0 8px;
}


/* ==================================================================
   5. IDENTITY HEADER
   ================================================================== */

.heading {
  text-align: center;
}

.heading h1 {
  color: var(--white);

  font-size: clamp(2.7rem, 4.7vw, 4.8rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.heading h1 b {
  color: var(--gold-light);
}

.sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;

  margin-top: 11px;
}

.sub i {
  width: 38px;
  height: 1px;
  background: rgba(201, 160, 93, 0.50);
}

.sub span {
  color: #d2b579;

  font: 400 0.58rem var(--mono);
  letter-spacing: 0.20em;
}

.heading p {
  margin-top: 16px;

  color: rgba(255, 255, 255, 0.92);

  font: 400 0.68rem var(--mono);
  letter-spacing: 0.27em;
}

.heading > em {
  display: block;

  width: 54px;
  height: 2px;

  margin: 9px auto 0;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--gold-light),
      transparent
    );
}


/* ==================================================================
   6. PORTAL GRID
   ------------------------------------------------------------------
   The grid itself is intentionally invisible.
   Each .card owns its own border/background/shadow.
   ================================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;

  margin-top: 12px;
}

.card {
  position: relative;

  width: 100%;
  min-width: 0;
  min-height: 0;

  overflow: hidden;

  background: var(--card-background);
  border: 1px solid var(--card-border);

  box-shadow: var(--card-shadow);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.56);
}

.card.pro {
  border-color: rgba(53, 185, 232, 0.42);
}

.card.sport {
  border-color: rgba(201, 160, 93, 0.48);
}

.card.life {
  border-color: rgba(126, 163, 75, 0.45);
}


/* ==================================================================
   7. PHOTO AREA
   ------------------------------------------------------------------
   object-position: center top is intentional:
   the top of every source photo remains aligned with the top of
   the portal instead of being vertically centered/cropped.
   ================================================================== */

.photo {
  position: relative;

  width: 100%;
  height: 390px;

  overflow: hidden;

  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: #050505;
}

.photo img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  max-width: none;

  object-fit: cover;
  object-position: center top;

  filter: saturate(0.68) contrast(1.08);
}


/* ==================================================================
   8. CARD BODY
   ================================================================== */

.body {
  position: relative;
  z-index: 3;

  min-height: 168px;

  padding: 13px 22px 18px;

  text-align: center;
}

.icon {
  display: grid;
  place-items: center;

  width: 50px;
  height: 50px;

  margin: 0 auto 10px;

  border: 1px solid var(--gold);
  border-radius: 50%;

  background: #080909;
  color: var(--gold-light);

  font-size: 1.15rem;

  box-shadow: 0 0 0 7px rgba(0, 0, 0, 0.30);
}

.pro .icon {
  border-color: var(--cyan);
  color: var(--cyan);
}

.life .icon {
  border-color: var(--green);
  color: var(--green);
}

.body label {
  display: block;

  font: 600 0.72rem var(--mono);
  letter-spacing: 0.15em;
}

.pro label,
.pro .body > strong {
  color: var(--cyan);
}

.sport label,
.sport .body > strong {
  color: var(--gold-light);
}

.life label,
.life .body > strong {
  color: var(--green);
}

.body h2 {
  margin-top: 7px;

  color: #eee9e1;

  font-size: 0.92rem;
  line-height: 1.30;
  letter-spacing: 0.09em;
}

.body p {
  max-width: 300px;

  margin: 10px auto 0;

  color: #aaa7a1;

  font-size: 0.68rem;
  line-height: 1.55;
}

.body > strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;

  margin-top: 13px;
  padding: 9px 13px;

  border: 1px solid currentColor;

  font: 500 0.49rem var(--mono);
  letter-spacing: 0.11em;
}

.body > strong b {
  font-size: 0.90rem;
  font-weight: 400;
}


/* ==================================================================
   9. QUOTE / FOOTER
   ================================================================== */

.quote {
  max-width: 900px;

  margin: 12px auto 0;

  color: #cbbfae;

  font: 500 1.02rem/1.15 var(--serif);
  text-align: center;
}

.quote span {
  color: #8d8478;
  font-size: 1.7rem;
}

.quote b {
  display: block;

  margin-top: 3px;

  color: #d6b873;

  font: italic 500 1.25rem var(--serif);
}

footer {
  position: relative;
  z-index: 5;

  min-height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 55px;

  padding: 7px 30px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  color: #67645f;

  font: 400 0.44rem var(--mono);
  letter-spacing: 0.12em;
  text-align: center;
}


/* ==================================================================
   10. ACCESSIBILITY
   ================================================================== */




/* ==================================================================
   11. DYNAMIC PHOTO TRANSITION
   ------------------------------------------------------------------
   The current image moves left and fades.
   The next image starts outside the right edge and enters smoothly.
   ================================================================== */

.photo-slider {
  position: relative;
  isolation: isolate;
}

.photo-slider .photo-layer {
  position: absolute;
  inset: 0;
  z-index: 1;

  width: 100%;
  height: 100%;
  max-width: none;

  object-fit: cover;
  object-position: center top;

  will-change: transform, opacity;
}

.photo-slider .photo-layer.is-current {
  opacity: 1;
  transform: translateX(0);
}

.photo-slider .photo-layer.is-next {
  opacity: 0;
  transform: translateX(8%);
}

.photo-slider .photo-layer.is-leaving {
  z-index: 2;

  animation:
    portal-photo-leave 900ms
    cubic-bezier(0.72, 0, 0.28, 1)
    forwards;
}

.photo-slider .photo-layer.is-entering {
  z-index: 3;

  animation:
    portal-photo-enter 900ms
    cubic-bezier(0.72, 0, 0.28, 1)
    forwards;
}

@keyframes portal-photo-leave {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-7%);
  }
}

@keyframes portal-photo-enter {
  from {
    opacity: 0;
    transform: translateX(8%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* ==================================================================
   V5.1 — GLOBAL COMPOSITION
   ------------------------------------------------------------------
   The previous version concentrated the content too tightly around
   the upper centre of the viewport. V5.1 deliberately increases the
   vertical rhythm between:
     1. the name,
     2. the subtitle,
     3. the access prompt,
     4. the portal row,
     5. the quote.
   ================================================================== */

@media (min-width: 721px) {
  .hero {
    padding-top: 25px;
    padding-bottom: 18px;
  }

  .sub {
    margin-top: 20px;
  }

  .heading p {
    margin-top: 28px;
  }

  .heading > em {
    margin-top: 12px;
  }

  .cards {
    margin-top: 28px;
  }

  .photo {
    height: 445px;
  }

  .body {
    min-height: 198px;
    padding-top: 18px;
    padding-bottom: 23px;
  }

  .quote {
    margin-top: 22px;
  }
}


/* ============================
   V5.2 — Luxury Card Redesign
   ============================ */
@media (min-width:721px){
  .photo{height:510px;}
  .body{
    min-height:230px;
    padding:22px 28px 26px;
    background:linear-gradient(180deg,rgba(5,5,5,.94),rgba(10,10,10,.98));
  }
  .body label{
    color:#d9b875!important;
    font-size:.78rem;
    letter-spacing:.22em;
    text-transform:uppercase;
  }
  .body h2{
    font-size:1.12rem;
    line-height:1.35;
    letter-spacing:.04em;
    margin-top:10px;
  }
  .body p{
    font-size:.78rem;
    color:#c9c5bd;
    line-height:1.7;
    margin-top:14px;
  }
  .icon{
    width:58px;height:58px;
    background:radial-gradient(circle,#1a1510,#090909);
    border:1px solid rgba(224,187,114,.7);
    box-shadow:0 0 25px rgba(201,160,93,.18);
    margin-bottom:14px;
  }
  .body strong{
    margin-top:20px;
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    padding:14px 18px;
    border:none;
    border-radius:0;
    background:linear-gradient(135deg,#c9a05d,#e0bb72);
    color:#090909!important;
    font-size:.60rem;
    font-weight:700;
    letter-spacing:.18em;
    transition:.35s;
    box-shadow:0 12px 28px rgba(201,160,93,.22);
  }
  .card:hover .body strong{
    transform:translateY(-2px);
    box-shadow:0 18px 38px rgba(201,160,93,.34);
  }
}


/* ==================================================================
   V5.3 — GOLD & BLACK REFINEMENT
   ------------------------------------------------------------------
   - Elegant typography for the portal CTA buttons.
   - Warmer / richer gold for CTA surfaces.
   - Custom inline SVG icons:
       PRO    = computer / workstation
       SPORT  = traditional martial-arts baton / nunchaku-inspired mark
       LIFE   = human connection / network
   ------------------------------------------------------------------
   Inline SVG is used deliberately: no icon font, no external asset,
   no dependency and perfect scaling at every resolution.
   ================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

.icon {
  position: relative;
  color: var(--gold-light);
}

.icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pro .icon {
  color: #e3bd72;
  border-color: rgba(227, 189, 114, 0.78);
}

.sport .icon {
  color: #e8c477;
  border-color: rgba(232, 196, 119, 0.82);
}

.life .icon {
  color: #d9b56c;
  border-color: rgba(217, 181, 108, 0.78);
}

/* Elegant CTA treatment */
.body > strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;

  color: #17120a !important;

  background: linear-gradient(
    135deg,
    #caa45f 0%,
    #e0bd76 45%,
    #d4ad67 100%
  );

  border: 1px solid rgba(239, 207, 142, 0.82);
  box-shadow:
    0 10px 25px rgba(151, 111, 43, 0.22),
    inset 0 1px 0 rgba(255, 242, 203, 0.45);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
}

.body > strong b {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
}

.card:hover .body > strong {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow:
    0 15px 32px rgba(151, 111, 43, 0.32),
    inset 0 1px 0 rgba(255, 242, 203, 0.55);
}

/* Gold-only portal accents: keep the three cards distinct without
   returning to the previous cyan/green button treatment. */
.card.pro,
.card.sport,
.card.life {
  border-color: rgba(201, 160, 93, 0.34);
}

.pro label,
.sport label,
.life label {
  color: #d9b875 !important;
}

@media (max-width: 720px) {
  .body > strong {
    font-size: 0.70rem;
  }

  .icon svg {
    width: 27px;
    height: 27px;
  }
}


/* ============================================================
   V6 — ANIMATED BLACK & GOLD BACKGROUND
   ============================================================ */

.animated-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #050505;
  pointer-events: none;
}

.animated-background .background-image {
  position: absolute;
  inset: 0;
  background: url("../images/photofond.png") center center / cover no-repeat;
}

.animated-background .background-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 35%, rgba(196, 140, 38, 0.055), transparent 28%),
    radial-gradient(circle at 78% 65%, rgba(214, 166, 61, 0.04), transparent 30%);
  opacity: 0.55;
}

.gold-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.gold-particles canvas {
  display: block;
  width: 100%;
  height: 100%;
}











/* ============================================================
   V6.1 — FIXED WALLPAPER + FLUID GOLD PARTICLES
   ============================================================ */

.animated-background .background-image {
  animation: none !important;
  transform: none !important;
  will-change: auto;
}

.animated-background .background-glow {
  animation: none !important;
  transform: none !important;
  will-change: auto;
}

.gold-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.gold-particles canvas {
  display: block;
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .gold-particles canvas {
    display: none;
  }
}


/* ============================================================
   V2.1 — PORTAIL 1440p MASTER
   ----------------------------------------------------------------
   This block is the desktop result of the existing landscape CSS at
   the 2K/1440p reference viewport. Responsive styles are deliberately
   not loaded on the portal: this keeps the reference composition
   identical while we rebuild responsive behavior separately later.
   ============================================================ */

main {
  width: min(1780px, calc(100% - 70px));
}

.hero {
  padding-top: 27px;
  padding-bottom: 18px;
}

.cards {
  grid-template-columns: repeat(3, 445px);
  justify-content: center;
  column-gap: 135px;
  margin-top: 32px;
}

.photo {
  height: 560px;
}

.body {
  min-height: 200px;
}

.quote {
  margin-top: 24px;
}
