/* =========================================================================
   Sillage — Landing / carte de visite
   Feuille de style unique. Aucune dépendance externe.
   ========================================================================= */

/* --- Polices (servies en local, aucun appel à Google) -------------------- */

@font-face {
  font-family: Ppneuecorp;
  src: url('public/fonts/PPNeueCorp-NormalMedium.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url('public/fonts/inter-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Inter;
  src: url('public/fonts/inter-latin-ext-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Charte -------------------------------------------------------------- */

:root {
  --blanc: #fff;
  --blanc-casse: #f9f9f9;
  --violet-fonce: #1a0025;
  --bleu: #97eaea;
  --rose: #fca5f1;
  --texte-clair: #807884;

  --police-titres: Ppneuecorp, Inter, sans-serif;
  --police-texte: Inter, sans-serif;

  --degrade: linear-gradient(90deg, var(--bleu), var(--rose));

  /* Courbes d'accélération reprises à l'identique de l'ancienne version */
  --ease-out-quart: cubic-bezier(.165, .84, .44, 1);
  --ease-out-cubic: cubic-bezier(.215, .61, .355, 1);
  --ease-inout-cubic: cubic-bezier(.645, .045, .355, 1);
  --ease-inout-quart: cubic-bezier(.77, 0, .175, 1);
}

/* --- Remise à zéro ------------------------------------------------------- */

html {
  box-sizing: border-box;
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Réglages de base hérités par tout le texte courant. Le gris très foncé #333
   (et non le noir pur) reprend l'ancienne version. Inter s'applique partout :
   les titres, eux, écrasent la police avec --police-titres. */
body {
  margin: 0;
  background-color: var(--blanc-casse);
  color: #333;
  font-family: var(--police-texte);
  font-size: 14px;
  line-height: 20px;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: inline-block;
  border: 0;
}

h1, h2, h3, p {
  margin: 0;
}

strong {
  font-weight: 700;
}

/* --- Mise en page -------------------------------------------------------- */

.page {
  z-index: 1;
  gap: 5vw;
  flex-flow: column;
  justify-content: flex-start;
  align-items: center;
  padding: 5vh 30vw;
  display: flex;
  position: relative;
}

.logo {
  width: 10vw;
}

.bloc {
  gap: 2vw;
  flex-flow: column;
  width: 100%;
  display: flex;
}

/* --- Typographie --------------------------------------------------------- */

.titre-xl {
  font-family: var(--police-titres);
  text-align: center;
  letter-spacing: -.05em;
  font-size: 3vw;
  font-weight: 400;
  line-height: 1;
}

.titre-m {
  font-family: var(--police-titres);
  font-size: 1.85vw;
  font-weight: 400;
  line-height: 1;
}

.texte {
  font-size: 1.00909vw;
  line-height: 1;
}

.texte--blanc {
  color: var(--blanc);
}

.degrade-texte {
  background-image: var(--degrade);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --- Cartes cliquables --------------------------------------------------- */

.carte-lien {
  width: 100%;
  color: var(--violet-fonce);
  cursor: pointer;
  border-radius: 2vw;
  text-decoration: none;
  box-shadow: 15px 15px 25px #0000001a;
  /* neutralise le style natif quand la carte est un <button> */
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  text-align: inherit;
  display: block;
}

.carte {
  gap: 1.5vw;
  text-align: center;
  background-color: var(--blanc-casse);
  border-radius: 1.9vw;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 3vw 5vw;
  display: flex;
}

.carte--membre {
  color: var(--blanc);
  text-align: left;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 10vw 2vw 1.5vw;
  position: relative;
  overflow: hidden;
}

.carte--bouton {
  gap: 2vw;
  text-align: left;
  flex-flow: row;
}

.contour-degrade {
  background-image: var(--degrade);
  background-clip: padding-box;
  border-radius: 2vw;
  justify-content: center;
  align-items: center;
  padding: 3px;
  display: flex;
}

.carte-illustration {
  width: 5vw;
  margin-left: -.5vw;
}

.carte-icone {
  width: 2vw;
}

.carte-icone--grande {
  width: 2.3vw;
}

/* --- Cartes équipe ------------------------------------------------------- */

.equipe {
  gap: 1vw;
  display: flex;
}

.membre-photo {
  pointer-events: none;
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0%;
}

.voile-photo {
  opacity: .82;
  pointer-events: none;
  background-image: linear-gradient(0deg, #000, #0000 76%);
  position: absolute;
  inset: 0%;
}

.membre-pied {
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  display: flex;
  position: relative;
}

.membre-identite {
  gap: .4vw;
  flex-flow: column;
  display: flex;
}

.fleche {
  width: 1.5vw;
}

/* --- Listes d'actions & pied de page ------------------------------------- */

.liste-actions {
  gap: 1vw;
  flex-flow: column;
  width: 100%;
  display: flex;
}

.pied {
  gap: 2vw;
  text-align: center;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  display: flex;
}

.pied--panneau {
  margin-bottom: 5vh;
}

.filet {
  background-image: var(--degrade);
  width: 50%;
  height: 2px;
}

/* --- Panneaux coulissants ------------------------------------------------ */

.voile-fond {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  background-color: #ffffff8a;
  width: 100%;
  height: 100%;
  position: fixed;
  inset: 0%;
  transition: opacity 800ms var(--ease-inout-cubic) 600ms;
}

.voile-fond.est-visible {
  opacity: 1;
  transition: opacity 500ms var(--ease-out-cubic) 0ms;
}

.panneau {
  z-index: 3;
  gap: 5vw;
  background-color: var(--blanc-casse);
  filter: drop-shadow(0 -20px 60px #00000014);
  flex-flow: column;
  justify-content: flex-start;
  width: 100%;
  height: 0%;
  padding: 0 30vw;
  display: flex;
  position: fixed;
  inset: auto 0% 0%;
  overflow: auto;
  overscroll-behavior: contain;
  transition: height 500ms var(--ease-inout-quart) 500ms;
}

.panneau.est-ouvert {
  height: 100%;
  transition-delay: 0ms;
}

/* Les 4 blocs du panneau apparaissent en cascade (fondu + glissement). */
.panneau-anime {
  opacity: 0;
  transform: translateY(5vh);
  transition: opacity 500ms var(--ease-inout-cubic) 200ms,
              transform 500ms var(--ease-inout-cubic) 200ms;
}

.panneau.est-ouvert .panneau-anime {
  opacity: 1;
  transform: none;
}

.panneau.est-ouvert .fermer { transition-delay: 200ms; }
.panneau.est-ouvert .panneau-portrait { transition-delay: 300ms; }
.panneau.est-ouvert .panneau-coordonnees { transition-delay: 400ms; }
.panneau.est-ouvert .pied--panneau { transition-delay: 500ms; }

.fermer {
  cursor: pointer;
  width: 2vw;
  position: absolute;
  inset: 5vh auto auto 20vw;
  /* neutralise le style natif du <button> */
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  line-height: 0;
}

.fermer-croix {
  width: 100%;
  transform: rotate(45deg);
}

.panneau-portrait {
  gap: 1vw;
  border-radius: 2vw;
  flex-flow: column;
  justify-content: flex-end;
  align-items: flex-start;
  margin-top: 5vh;
  padding: 20vw 2vw 1.5vw;
  display: flex;
  position: relative;
  overflow: hidden;
}

.panneau-photo {
  object-fit: cover;
  border-radius: 2vw;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0%;
}

.panneau-identite {
  gap: .8vw;
  color: var(--blanc);
  flex-flow: column;
  display: flex;
  position: relative;
}

.panneau-coordonnees {
  gap: 2vw;
  flex-flow: column;
  width: 100%;
  display: flex;
}

/* --- Confort de navigation au clavier ------------------------------------ */

:focus-visible {
  outline: 3px solid var(--violet-fonce);
  outline-offset: 3px;
}

/* --- Mobile (≤ 479 px) --------------------------------------------------- */

@media screen and (max-width: 479px) {
  .page {
    gap: 12.5vw;
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .logo {
    width: 25vw;
  }

  .bloc {
    gap: 5vw;
  }

  .carte {
    gap: 3vw;
    border-radius: 4.75vw;
    padding: 7.5vw 10vw;
  }

  .carte--membre {
    padding: 25vw 5vw 3vw;
  }

  .carte--bouton {
    gap: 5vw;
  }

  .titre-xl {
    font-size: 8vw;
  }

  .titre-m {
    font-size: 4.5vw;
  }

  .texte {
    font-size: 3vw;
  }

  .carte-illustration {
    width: 12.5vw;
    margin-left: -2vw;
  }

  .contour-degrade {
    border-radius: 5.3vw;
    padding: 2.5px;
  }

  .carte-lien {
    border-radius: 5.3vw;
    box-shadow: 4px 4px 9px #0000001a;
  }

  .membre-identite {
    gap: 1vw;
  }

  .fleche {
    width: 3.5vw;
  }

  .equipe {
    gap: 2.5vw;
  }

  .liste-actions {
    gap: 2.5vw;
  }

  .carte-icone {
    width: 6vw;
  }

  .carte-icone--grande {
    width: 7vw;
  }

  .pied {
    gap: 5vw;
  }

  .panneau {
    gap: 12.5vw;
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .panneau-photo {
    height: 30vh;
  }

  .panneau-portrait {
    gap: 2.5vw;
    border-radius: 4.75vw;
    flex: none;
    width: 100%;
    height: 30vh;
    margin-top: 20vw;
    padding-bottom: 3.75vw;
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .panneau-identite {
    gap: 2vw;
  }

  .fermer {
    width: 10vw;
    top: 5vw;
    left: 5vw;
  }

  .panneau-coordonnees {
    gap: 5vw;
  }
}

/* --- Respect de la préférence « moins d'animations » --------------------- */

@media (prefers-reduced-motion: reduce) {
  .voile-fond,
  .voile-fond.est-visible,
  .panneau,
  .panneau.est-ouvert,
  .panneau-anime,
  .panneau.est-ouvert .panneau-anime {
    transition-duration: 1ms;
    transition-delay: 0ms;
  }
}
