/* Quand j'avais un problème d'affichage ou d'élements qui se plaçait pas bien, je demandais à L'IA de m'expliquer comment y remédier */
/* ------------------ La base ------------------ */
body {
    font-family: "Outfit",sans-serif;
    font-size: 20px;
    line-height: 1.4;
    color:#000000;
    margin:0;
    font-weight: 400;
}
.title__sujet {
    padding-top: 24px;
    margin-bottom: 34px;
    padding-bottom: 24px;
}
h1 {
    line-height: 1.2;
    font-size: 28px;
    font-weight: 700;
}
h2 {
    line-height: 1.2;
    font-size: 28px;
    font-weight: 500;
    padding-bottom: 34px;
    margin:0;
}
p {
    margin: 0;
    padding-bottom: 28px;
    padding-top: 0;
}
.grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding-left: 24px;
    padding-right: 24px;
    column-gap: 12px;
}
.grid > * {
    grid-column: 1/-1;
}
.gridIN {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    row-gap: 48px;
    align-items: center;
}
.section > *:last-child {
    margin-bottom: 0;
}

/* ------------------ Autres ------------------ */
.title {
    background-color: #FFB572;
    color: #000000;
}
.figure {
    display:grid;
    margin-left:0;
    align-items: center;
    margin-bottom:24px;
    margin-top: 24px;
}
.figure__image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 25px;
}
.figure__legende {
    font-size: 28px;
    font-weight: 500;
    grid-column: 3;
}
.passageligne {
    display: block;
}
.bigtext {
    font-size: 40px;
}

/*------------------ Profil ------------------ */
.profil__text {
    font-size: 20px;
    padding-bottom:24px
}
.profil__contenu {
    background-color: #E0835C;
    border-radius: 25px;
    padding:24px;
    width: 100%;
    left:-24px;
    position: relative;
}
.profil__contenu > *:last-child {
    padding-bottom: 0;
    
}

/*------------------ Youtube ------------------ */
.youtube {
    margin-top:72px;
    font-size: 28px;
    text-align: center;
}
.youtube__text {
    display: inline-block;
    padding:0;
}
.youtube__contenu {
    background-color: #FFA7C5;
    border-radius: 25px;
    padding:24px;
    width: 100%;
    left:-24px;
    position: relative;
}
.bord__youtube {
    border: 2px #FFA7C5 solid;
}
.logo__youtube {
    display:none;
}
/*------------------ Twitch ------------------ */
.bord__twitch {
    border: 2px #A970FF solid;
}
.twitch {
    margin-top:72px;
    font-size: 28px;
    text-align: center;
}
.twitch__text {
    display: inline-block;
    padding:0;
}
.twitch__contenu {
    background-color: #A970FF;
    border-radius: 25px;
    padding:24px;
    width: 100%;
    left:-24px;
    position: relative;
}
.logo__twitch {
    display:none;
}

/*------------------ Insta ------------------ */
.bord__insta {
    border: 2px #D80860 solid;
}
.insta {
    margin-top:72px;
    font-size: 28px;
    text-align: center;
}
.insta__text {
    display: inline-block;
    padding:0;
}
.insta__contenu {
    background-color: #D80860;
    border-radius: 25px;
    padding:24px;
    width: 100%;
    left:-24px;
    position: relative;
}
.logo__insta {
    display:none;
}

/*------------------ X ------------------ */
.bord__X {
    border: 2px #000000 solid;
}
.X {
    margin-top:72px;
    font-size: 28px;
    text-align: center;
    margin-bottom:48px
}
.X__text {
    display: inline-block;
    padding:0;
}
.X__contenu {
    background-color: #000000;
    border-radius: 25px;
    padding:24px;
    width: 100%;
    left:-24px;
    position: relative;
    color:#FFFFFF;
}
.logo__X{
    display:none;
}

/*------------------ Header ------------------ */
.header__image {
    display: block;
    width: calc(100% + 48px);
    left:-24px;
    position: relative;
    z-index: -1;
}
.header__nav {
    font-size: 12px;
    display: flex; 
    width: calc(100% + 48px);
    margin-left: -24px;
    height: 100px; 
    background: linear-gradient(to right, #1D3348 50%, #F5ABC4 50%);
    align-items: end; 
    padding: 10px 24px; 
    box-sizing: border-box; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    justify-content: space-between;
}
.header__nav-squeezie {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    flex: 1;
    text-align: left;
    display: flex;
    align-items: end;
    height: 100%;
    justify-content: space-between;
    margin-bottom: 10px;
}

/*------------------ Menu ------------------ */
.menu__btn {
    background-color: #F5ABC4;
    border: none;
    border-radius: 100%;
    font-size: 24px;
    cursor: pointer;
    color: #1D3348;
    position: fixed;
    right: 24px;
    z-index: 10; 
    width: 54px; 
    height: 54px;
}
.menu__btn::before {
    content: "☰";
    font-size: 32px;
    display: block;
    text-align: center;
    position:absolute;
    left:50%;
    transform: translateX(-50%);
    top: 3px;
}
.menu--open .menu__btn::before {
    content: "✕";
}
.menu__liste {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #F5ABC4;
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    z-index: 5;
    color: #1D3348;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 24px;
}
.menu__el {
    margin: 24px 0;
    text-align: left;
}
.menu__link {
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    color: #1D3348;
    transition: color 0.2s ease;
}
.menu__link:hover {
    color: white;
}
.menu--open .menu__liste {
    transform: translateX(0);
}
.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 4;
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}
.menu--open .blur-overlay {
    opacity: 1;
    pointer-events: all;
}

 /*------------------ Footer ------------------ */
.footer {
    background: linear-gradient(to right, #1D3348 50%, #F5ABC4 50%);
    color: #FFFFFF;
    padding-top: 24px;
    padding-bottom:24px;
    align-items: start;
    justify-content: stretch;
    height: auto;
}
.footer__logo-section { 
    grid-column: 1 / span 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
.footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin:0;
}
.footer__logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 100%;
}
.footer__title {
    font-size: 24px;
    font-weight: 400;
    color: #FFFFFF;
}
.footer__socials {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}
.footer__icon img {
    grid-column: span 3;
    width: 20px;
    height: 20px;
    padding: 15px;
    object-fit: contain;
    border-radius: 10%;
}
.footer__icon {
    background-color: #FFFFFF;
    border-radius: 100%;
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.footer__icon:hover{
    transform: scale(1.1);
    border-radius: 50%;
}
.footer__copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    grid-column:1/span 3;
    grid-row: 2;
    padding-bottom: 0;
}
.footer__links-section {
    grid-column: 5 / span 3;
    padding-top: 14px;
}
.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer__link {
    color: #1D3348;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer__link:hover {
    color: #FFFFFF;
}
.footer__legal {
    color: #1D3348;
    font-size: 20px;
    padding-bottom: 12px;
}
.footer__li {
    padding-bottom: 12px;
}
/*------------------ media Queries ------------------ */
/*---- PC ----*/
@media (min-width: 1025px) {
    .grid {
        grid-template-columns: repeat(9, 1fr);
        column-gap: 24px;
        padding-left: 48px;
        padding-right: 48px;
    }
    .footer__logo-section { 
        grid-column: 1 / span 3;
    }
    .footer__links-section {
        grid-column: 8 / span 2;
    }
    .gridIN {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(1, 1fr);
        column-gap: 0px;
        row-gap: 0px;
    }
    .header__nav-squeezie {
        font-size: 40px;
        margin-bottom: 0;
    }
    .header__nav {
        height: 75px;
        padding:0;
        padding-right: 48px;
        padding-left:48px;
        padding-top:12px;
        padding-bottom:12px;
    }
    .menu__btn {
        display:none;
    }
    .menu__liste {
        position: static;         
        width: auto;              
        transform: none;          
        transition: none;         
        display: flex;            
        flex-direction: row;      
        justify-content: flex-end; 
        align-items: center;      
        padding-left: 0; 
        gap: 24px;
    }
    .menu__link {
        font-size: 28px;
        padding: 12px;
        padding-top:20px;
        padding-bottom:20px;
    }
    .menu__link:hover,
    .active {
        color:#FFFFFF
    }
    .header__image {
        width: calc(100% + 96px);
        left:-48px;
    }
    .header__nav {
        width: calc(100% + 96px);
        margin-left: -48px;
    }

    /* --- autres --- */
    .X__contenu {
        height: 100%;
        grid-column-start: 3;
        left:0px;
        width: auto;
        padding:0;
        padding-left: 12px;
        padding-right: 12px;
    }
    .figure__image {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }
    .figure {
        margin-bottom:0px;
        margin-top: 0px;
        width: auto;
        grid-column: span 2;
        margin-left:auto;
        margin-right: 0px;
    }
    .insta__contenu {
        height: 100%;
        grid-column-start: 3;
        left:0px;
        width: auto;
        padding:0;
        padding-left: 12px;
        padding-right: 12px;
    }
    .twitch__contenu {
        height: 100%;
        grid-column-start: 3;
        left:0px;
        width: auto;
        padding:0;
        padding-left: 12px;
        padding-right: 12px;
    }
    .youtube__contenu {
        height: 100%;
        grid-column-start: 3;
        left:0px;
        width: auto;
        padding:0;
        padding-left: 12px;
        padding-right: 12px;
    }
    .profil__contenu {
        grid-column-start: 3;
        left:0px;
        width: auto;
        padding:48px;
        margin-top:96px;
    }
    .figure--gros {
        grid-column: span 3;
        margin-top:96px;
    }
    .profil__contenu--petit {
        grid-column-start: 4;
    }
    .title__sujet {
        padding-top: 48px;
        padding-bottom: 48px;
        margin:0;
    }
    h1 {
        font-size: 57px;
        font-weight: 500;
    }
    
    .bigtext {
        font-size: 57px;
        font-weight: 600;
    }
    .youtube__contenu, .twitch__contenu, .insta__contenu, .X__contenu p {
        font-size: 28px;
    }
    .youtube, .twitch, .insta, .X {
        margin-top:96px;
    }
    .X {
        margin-bottom:96px;
    }
    .droite {
        grid-column: 8/span 2;
        grid-area: carre;
    }
    .gauche__contenu-youtube {
        grid-column: 1/span 7;
        grid-area: case;
        transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    }
    .gauche__contenu-insta {
        grid-column: 1/span 7;
        grid-area: case;
        transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    }
    .droite__contenu-twitch {
        transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    }
    .droite__contenu-X {
        transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    }
    .youtube {
        grid-template-areas: "case case case case case case case carre carre";
        margin-top:96px;
    }
    .insta {
        grid-template-areas: "case case case case case case case carre carre";
    }
    .bord__insta {
        border: 4px #D80860 solid;
        cursor: pointer;
    }
    .bord__twitch {
        border: 4px #A970FF solid;
        cursor: pointer;
    }
    .bord__X {
        border: 4px #000000 solid;
        cursor: pointer;
    }
    .bord__youtube {
        border: 4px #F5ABC4 solid;
        cursor: pointer;
    }
    
    .hidden-gauche{
        transform: translateX(-200%);
        opacity: 0%;
    }
    .hidden-droite{
        transform: translateX(200%);
        opacity: 0%;
    }
    .section  {
        overflow-x: hidden;
    }
    .youtube-btn:hover .logo__youtube {
        opacity: 0.9;
        cursor: pointer;
    }
    .twitch-btn:hover .logo__twitch {
        opacity: 0.9;
        cursor: pointer;
    }
    .insta-btn:hover .logo__insta {
        opacity: 0.9;
        cursor: pointer;
    }
    .X-btn:hover .logo__X {
        opacity: 0.9;
        cursor: pointer;
    }
    .logo__youtube{
        display:block;
        position:relative;
        width: 100%;
        margin-bottom:-100%;
        margin-left:1%;
        opacity: 0;
        transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    }
    .logo__twitch{
        display:block;
        position:relative;
        width: 75%;
        margin-bottom:-100%;
        margin-left:15%;
        opacity: 0;
        transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    }
    .logo__insta{
        display:block;
        position:relative;
        width: 100%;
        margin-bottom:-100%;
        margin-left:1%;
        opacity: 0;
        transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    }
    .logo__X{
        display:block;
        position:relative;
        width: 100%;
        margin-bottom:-100%;
        margin-left:1%;
        opacity: 0;
        transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    }
    .figure__legende {
        display:none;
    }
}
/*---- Tablette ----*/
@media (min-width: 500px) and (max-width: 1024px) {
    .figure__legende {
        text-align:left ;
    }
}