:root{
    --black:#000000;
    --yellow: #FFF6E3;
    --gray:#CFCFCF;
    --white:#FFFFFF;
}

/* playfair-display-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/playfair-display-v39-latin-regular.woff2') format('woff2');
}

/* playfair-display-italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/playfair-display-v39-latin-italic.woff2') format('woff2');
}

/* playfair-display-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/playfair-display-v39-latin-500.woff2') format('woff2');
}

/* playfair-display-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/playfair-display-v39-latin-600.woff2') format('woff2');
}

/* playfair-display-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/playfair-display-v39-latin-700.woff2') format('woff2');
}

/* playfair-display-800 - latin */
@font-face {
  font-display: swap;
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/playfair-display-v39-latin-800.woff2') format('woff2');
}

/* dancing-script-regular - latin */
@font-face {
  font-display: swap; 
  font-family: 'Dancing Script';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/dancing-script-v28-latin-regular.woff2') format('woff2');
}

/* STYLE GENERAL */
body{
    color: var(--black) ;
    font-family: "Playfair Display", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.6rem;
    text-align: justify;
}

/* font-family: "Dancing Script", cursive; */

h2{
    font-size: 4rem;
    text-align: center;
    font-family: "Dancing Script", cursive;
    padding-bottom: 3rem;
}

h3{
    text-align: center;
    margin-bottom: 1rem;
}

svg{
    width: 2.3rem;
}

.section-style{
    padding: 4rem 0;
}

.bg-yellow{
    background-color: var(--yellow);
}

.container{
    width: 90%;
    height: auto;
    margin: auto;
}

/* SECTION PRESENTATION */
/* Profil */
.profil_div{
    display : flex;
    flex-direction: row;
    justify-content : space-between;
    align-items: center;
}

@media only screen and (min-width: 768px){
    .profil_div{
        width: 40%;
        align-items: start;
        margin-top: 3rem;
    }
}

.profil_div > div{
    display : flex;
    flex-direction: column;
    justify-content : center;
    align-items: center;
}

.important_profil{
    font-weight: 800;
    font-size: 2rem;
}

/* Nom + prénom */
.names_profil_div{
    display : flex;
    flex-direction: column;
    align-items: start;
    margin-top: 3rem;
}

.names_profil_div span:first-child{
    font-size: 3rem;
    font-family: "Dancing Script", cursive;
}

/* .names_profil_div span:last-child{
    font-style: italic;
} */

@media only screen and (min-width: 768px){
    .container

    .double_infos{
        display : flex;
        flex-direction: row-reverse;
        justify-content : space-between;
    }
}

/* Infos perso */
.infos_perso_div{
    margin-top: 3rem;
    display : flex;
    flex-direction: column;
    justify-content : center;
    align-items: start;
    gap: 1rem;
}

.infos_perso_div > div{
    display : flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.infos_perso_div > div:first-child > a{
    padding-inline-start: .7rem;
}

.infos_perso_div a{
    color: var(--black);
    text-decoration: none;
}

/*  Stories à la une */
.stories_div {
    display : flex;
    flex-direction: row;
    justify-content : space-between;
    align-items: center;
    margin-top: 3rem;
}

.stories_div a{
    max-width: 7rem;
    display: inline-block;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: none;
    color: var(--black);
}

.stories_div a div{
    overflow: hidden;
    margin-bottom: 1rem;
}

.stories_div > div{
    display : flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 50%;
}

.circle_story{
    border: thick double rgb(220, 220, 220);
    border-radius: 50%;
    width: 7rem;
    height:7rem;
    margin: auto;
}

@media only screen and (min-width: 768px){
    .circle_story{
        width: 10rem;
        height:10rem;
    }

    .stories_div a{
        max-width: initial;
    }
}

@media only screen and (min-width: 1000px){
    .names_profil_div span:first-child{
        font-size: 5rem;
    }

    .presentation_div{
        font-size: 2rem;
    }

    .stories_div{
        margin-bottom: 6rem;
    }

    .circle_story{
        width: 15rem;
        height:15rem;
    }

}

/* Post Instagram */
.post_picture{
    margin: 3rem auto 0 auto ;
    position: relative;
    width: 30rem;
}

.post_picture img{
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

.post_picture > div{
   position: absolute;
   bottom: 1rem;
   padding: 0 1.5rem;

   display : flex;
   flex-direction: row;
   justify-content : space-between;
   align-items: center;
   width: 100%;
}

.three_icons_div svg{
    margin-right: .7rem;
    cursor: pointer;
}

.one_icon_div svg{
    cursor: pointer;
}

.heart_icon_not_selected{
    fill: transparent;
    stroke: var(--black);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.heart_icon_selected{
    fill: #f44e66;
    stroke: transparent;
    stroke-width: 1;
}

@media (hover: hover) and (pointer: fine) {
    .heart_icon_not_selected:hover,
    .save_icon:hover path
    {
        fill: var(--black);
    }

    .comment_icon:hover path,
    .send_icon:hover path{
        fill: #f44e66;
        stroke: #f44e66;
    }
}

.comment_icon{
    transform: matrix(-1, 0, 0, 1, 0, 0);
}

.save_icon_not_selected{
    fill: transparent;
    stroke: var(--black);
}
.save_icon_selected{
    fill: var(--black);
    stroke: var(--black);
}

/* SECTION MISSIONS */
.reactions_img{
    width: 50rem;
    height: auto;
    margin: auto;
}

.reaction_div{
    display : flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6rem;
}

.reaction{
    width: max-content;
    min-height: 4rem;
    background-color: #ff4343;
    border-radius: .9rem;
    position: relative;
    padding: 1rem 2rem;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    transition: transform .5s ease-in-out;
}

.reaction::after{
    content: '';
    display: block;
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4rem;
    height: 1.5rem;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    background-color: #ff4343;
}

.reaction_div .reaction:nth-of-type(1),
.reaction_div .reaction:nth-of-type(7)
{
    transform: rotate(-10deg);
}

.reaction_div .reaction:nth-of-type(2),
.reaction_div .reaction:nth-of-type(4),
.reaction_div .reaction:nth-of-type(6),
.reaction_div .reaction:nth-of-type(8)
{
    transform: rotate(20deg);
}

.reaction_div .reaction:nth-of-type(3){
   transform: rotate(30deg);
}

.reaction_div .reaction:nth-of-type(5){
    transform: rotate(-20deg);
}

/* Hover reactions */
.reaction_div .reaction:nth-of-type(1):hover,
.reaction_div .reaction:nth-of-type(7):hover {
    transform: rotate(-10deg) translateY(-1rem); 
}

.reaction_div .reaction:nth-of-type(2):hover,
.reaction_div .reaction:nth-of-type(4):hover,
.reaction_div .reaction:nth-of-type(6):hover,
.reaction_div .reaction:nth-of-type(8):hover
{
    transform: rotate(20deg) translateY(-1rem);
}

.reaction_div .reaction:nth-of-type(3):hover {
   transform: rotate(30deg) translateY(-1rem);
}

.reaction_div .reaction:nth-of-type(5):hover {
    transform: rotate(-20deg) translateY(-1rem);
}

@media only screen and (min-width: 840px) {
    .reaction_div{
        display : grid;
        grid-template-columns : 1fr 1fr;
        grid-template-rows : auto;
        align-items: center;

        background-image: url('../img/reactions.png');
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain ;
    }

    .reaction_div .reaction:nth-child(even){
        justify-self: center;
    }

    .reaction_div .reaction:nth-child(4n) {
        justify-self: end;
        margin-right: 3rem;
    }

    .reaction_div .reaction:nth-child(odd){
        justify-self: center;
    }

    .reaction_div .reaction:nth-child(4n - 3) {
        justify-self: start;
        margin-right: 3rem;
    }
    .reaction_img_div{
        display: none;
    }
}

.reaction p{
    width: 11rem;
    text-align: center;
    font-size: 1.3rem;
    color: var(--white);
}

/* SMILE FESTIVAL */
.smile_festival_div .objectif {
    display : flex;
    flex-direction: column;
    gap: 2rem;
}

.smile_festival_div .smile_cible,
.smile_festival_div .smile_diffusion{
    text-align: center;
}

@media only screen and (min-width: 850px){
    .smile_festival_div{
        display : grid;
        grid-template-columns : 1fr 1fr;
        grid-template-rows : auto;
        align-items: center;
    }

    .smile_festival_div h3,
    .smile_festival_div .smile_cible,
    .smile_festival_div .smile_diffusion{
        text-align: start;
    }

    .smile_festival_div .contexte {
        grid-column: 2;
        grid-row:1 / span 2;
        align-self: center;
        margin-bottom: 30rem;
    }

    .smile_festival_div .objectif {
        grid-column: 2;
        grid-row:1 / span 2;
        align-self: center;
        margin-top: 20rem;
    } 
}

@media only screen and (min-width: 1000px){
  .smile_festival_div,
  .nuit_palmiste_texte,
  .culture_texte_div{
        font-size: 2rem;
    }

    .smile_festival_div .objectif {
        margin-top: 28rem; 
    } 

    .reaction p{
        width: 17rem;
        font-size: 2rem;
    }

    .reaction svg {
        width: 3rem;
    }
}

.phone-frame {
  width: 29rem;
  height: 50rem;
  border: 1.6rem solid #333;
  border-radius: 4rem;
  background: #000;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
  position: relative;
  margin: 2rem auto;
  padding: 1rem;
  box-sizing: border-box;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 6rem;
  height: .6rem;
  background: #555;
  border-radius: .3rem;
}

.phone-frame::after {
  content: '';
  position: absolute;
  top: 1rem;
  left: 70%;
  transform: translateX(-70%);
  width: .6rem;
  height: .6rem;
  background: #555;
  border-radius: 50%;
}

.phone-frame .screen video {
  width: 100%;
  height: 100%;
  border-radius: 3rem; 
  object-fit: cover;  
  display: block;
  margin-top: 1rem;
}

/* SO GLAM SO YANA */
.so-glam{
    text-align: center;
}

.so_glam_tout img,
.pack_sold_out img, 
.nuit_palmiste_div img
{
    width: 33rem;
    height: auto;
    margin: auto;
}

.so_glam_texte,
.pack_sold_texte
{
    display : flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media only screen and (min-width: 850px){
    .so_glam_tout{
        display : flex;
        flex-direction: row;
        justify-content : space-between;
        align-items: center;   
    }

    .so-glam,
    .so-glam h3
    {
        text-align: start;
    }

    .pack_sold_out{
        display : flex;
        flex-direction: row-reverse;
        justify-content : space-between;
    }

    .pack_sold_texte,
    .pack_sold_texte h3{
        text-align: end;
    }
}

/* CULTURE POUR TOUS */
.youtube-player {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  font-family: 'Arial', sans-serif;
  user-select: none;
}

.youtube-video {
  display: block;
  width: 100%;
  border-radius: 1.2rem 1.2rem 0 0;
  background-color: var(--black);
}

@media only screen and (min-width: 768px){
    .youtube-player {
        width: 50rem;
        margin: auto;
    }
}

/* YouTube logo top left */
.youtube-logo {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color:var(--white);
  font-weight: bold;
  font-size:1.4rem;
  text-shadow: 0 0 4px rgba(0,0,0,0.7);
  pointer-events: none;
  user-select: none;
}

.culture_texte_div,
.nuit_palmiste_texte{
    display : flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 5rem;
    text-align: center;
}

@media only screen and (min-width: 850px){
   .culture_texte_div{
        display : flex;
        flex-direction: row;
    } 
    .text_descrip p{
        text-align: center;
    }

     .culture_texte_div > div:last-child h3 {
        text-align: center;         
        white-space: nowrap;        
        overflow: hidden;           
        text-overflow: ellipsis;  
    }
}

@media only screen and (min-width: 1000px){
    .so_glam_texte,
    .pack_sold_texte,
    .text_descrip p{
        font-size: 2rem;
    }
}

/* NUIT PALMISTE */
.nuit_palmiste_div{
    text-align: center;
}

@media only screen and (min-width: 850px){
    .nuit_palmiste_div{
        display : flex;
        flex-direction: row-reverse;
        justify-content : space-between;
        align-items: center;   
    }

    .nuit_palmiste_div h3,
    .nuit_palmiste_texte
    {
        text-align: start;
    }

    .nuit_palmiste_texte p{
        width: 80%;
    }
}

 /* Bouton fixe en bas à droite */
    #scrollTopBtn {
      position: fixed;
      bottom: 3rem;
      right: 3rem;
      z-index: 100;
      background-color: var(--yellow);
      border: none;
      padding: 1.5rem 2rem;
      border-radius: 50%;
      cursor: pointer;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
      transition: opacity 0.3s ease-in-out;

      display : flex;
      flex-direction: column;
      justify-content : center;
      align-items: center;
    }

    #scrollTopBtn:hover {
      background-color: #e8d6af;
    }

    /* Optionnel : le bouton ne s'affiche qu'après un peu de scroll */
    #scrollTopBtn.hidden {
      opacity: 0;
      pointer-events: none;
    }