/* =============================================
RÉINITIALISATION
============================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
}

/* =============================================
FONTS
============================================= */
@font-face {
  font-family: 'Caveat';
  src: url('FONTS/Caveat-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}
@font-face {
  font-family: 'Saira';
  src: url('FONTS/SairaStencilOne-Regular.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

/* =============================================
MISE EN PAGE GLOBALE
============================================= */
body {
  font-family: 'Caveat', cursive;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: url('./IMAGES/FondEcran.png') no-repeat center center fixed;
  background-size: cover;
}

/* =============================================
CONTAINER PRINCIPAL
============================================= */
.page-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 96%;
  max-width: 609px;
  min-height: 100vh;
  margin: 0 auto;
  border-top: 9px solid yellow; /* jaune */
  border-right: 9px solid blue; /* rouge */
  border-bottom: 9px solid red; /* bleu */
  border-left: 9px solid green; /* vert */
  background: rgba(7, 12, 63, 0.3);
  overflow: hidden;
  cursor: default;
    border-radius: 33px
}

.page-container:hover {
  border-radius: 33px;
  box-shadow: 0 0 33px 3px rgba(1,2,3,1);
}

@media (max-width: 609px) {
  .page-container {
    width: 100%;
    max-width: none;
    border-radius: 33px;
  }
}




/* =============================================
HEADER & FOOTER
============================================= */
header, footer {
  background: rgba(1, 2, 3, 0.0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: auto;
  transition: border 1.2s ease-in-out, max-width 1.2s ease-in-out;
  padding: 3px;
  height: 123px;
  
}

header {
  border-bottom: 9px dashed white;
  width: 88%;
}

footer {
  border-top: 9px dashed white;
  width: 88%;
}

/* =============================================
LIENS PRINCIPAUX
============================================= */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 0;
  height: 100%;
  box-sizing: border-box;
}

/* =============================================
ÉTOILE PURE CSS (ÉtoileCiel)
============================================= */
.star-ciel {
  width: 28px;
  height: 28px;
  display: inline-block;
  background: white;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  border-radius: 10%;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
  transform: rotate(-180deg);
  transition: transform 0.4s ease-in-out, background 0.4s ease-in-out;
}

.star-mer {
  width: 28px;
  height: 28px;
  display: inline-block;
  background: rgb(1,2,3);
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  border-radius: 10%;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease-in-out, background 0.4s ease-in-out;
}

.hover-image-EtoileCiel:hover .star-ciel {
  background: blue;
  transform: rotate(180deg);
}

.hover-image-EtoileDeMer:hover .star-mer {
  background: red;
  transform: rotate(360deg);
}

/* =============================================
ICÔNES INTERACTIVES
============================================= */
.hover-image-EtoileCiel,
.hover-image-LogIN,
.hover-image-EtoileDeMer,
.hover-image-Globe {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 3px solid rgb(1, 2, 3);
  border-radius: 9px;
  background-color: #fff;
  box-shadow: 0 0 5px 3px #fff;
  transition: all 0.4s ease-in-out;
}

.hover-image-EtoileCiel {
  background-color: rgb(1, 2, 3);
}

.hover-image-EtoileDeMer {
  background-color: #fff;
}

.hover-image-Globe {
  background-color: rgb(1,2,3);
  border-radius: 9px;
}

/* =============================================
EFFETS AU SURVOL (ICÔNES)
============================================= */
.hover-image-EtoileCiel:hover {
  border-radius: 50%;
  box-shadow: 0 0 10px 5px red;
  border: 3px solid red;
}

.hover-image-LogIN:hover {
  border-radius: 50%;
  transform: rotate(-360deg);
  box-shadow: 0 0 10px 5px yellow;
  background-color: transparent;
  border: 3px solid yellow;
}

.hover-image-EtoileDeMer:hover {
  border-radius: 50%;
  background-color: blue;
  transform: rotate(360deg);
  box-shadow: 0 0 10px 5px green;
  border: 3px solid green;
}

.hover-image-Globe:hover {
  border-width: 9px;
  border-style: solid;
  border-top-color: yellow;
  border-right-color: blue;
  border-bottom-color: red;
  border-left-color: green;
  background-color: rgbargba(1, 2, 3, 1);
  transform: rotate(-360deg);
  border-radius: 50%;
  box-shadow: 0 0 10px 5px blue;
}

/* =============================================
DATE & HEURE
============================================= */
#date,
#fullDate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 22px;
  font-family: 'Saira';
  color: orange;
  transition: color 1.2s ease, transform 1.2s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.heure {
  color: grey;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 22px;
  font-family: 'Saira';
  transition: color 1.2s ease, transform 1.2s ease;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 1);
}

#dayOfWeek {
  color: #008FF0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 22px;
  font-family: 'Saira';
  transition: color 1.2s ease, transform 1.2s ease;
  
}

.heure:hover {
  color: white;
}

#dayOfWeek:hover{
  color: white;
}

#fullDate:hover {
  color: orange;
  transform: scale(1.3);
}


/* ———————————————————————————————————————————————————— */
/* ICONES PLAYER */
/* ———————————————————————————————————————————————————— */

.player {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin: auto 0;
  height: auto;
  padding: 0;
  box-sizing: border-box;
  margin-top: 0.7rem;
  margin-bottom: 0.7rem;
  
}
.play-btn {
  height: 3rem;
  width: 3rem;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  border: 3px solid transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    height 0.3s ease,
    width 0.3s ease;
}

.play-btn svg {
  border: 3px solid transparent;
  width: 3rem;
  height: 3rem;
  fill: red;
  transition: transform 0.4s ease, fill 0.4s ease;
  pointer-events: none;
  
}

.play-btn:not(.active):hover {
  box-shadow: 0 0 10px 5px #008FF0;
  border-radius: 50%;
  border: 3px solid transparent;
  height: 3rem;
  width: 3rem;
}

.play-btn.active {
  border: 3px solid transparent;
  border-radius: 3px;
  background: grey;
  width: 3.2rem;
  height: 3.2rem;
}

/* ———————————————————————————————————————————————————— */
/* PERSONNALISATION PLAYER */
/* ———————————————————————————————————————————————————— */

.player[data-id="MUSIQUE"] .play-btn {
  border-color: #008FF0;
  background: transparent;
  color: white;
}

.player[data-id="MUSIQUE"] .play-btn svg {
  fill: white;
}

.player[data-id="MUSIQUE"] .play-btn.active {
  border: 3px solid orange;
  box-shadow: 0 0 10px 5px #008FF0;
  background: grey;
  border-radius: 50%;
}
