/* 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 {
    margin-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;
    margin-top:24px
}
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;
}
.section > *:last-child {
    margin-bottom: 0;
}
img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* ------------------ Autres ------------------ */
.title {
    background-color: #491D1E;
    color: #FFFFFF;
}
.figure--full {
    margin:0;
    height: 100%;
    width: calc(100% + 48px);
    left:-24px;
    position: relative;
}
.figure__legende {
    font-size: 14px;
    opacity: 50%;
}
.figure--full .figure__legende {
    margin-left: 24px;
}
.espace__blanc {
width: 100%;
height: 80px;
}
.gridcrit {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    column-gap: 24px;
}
.gridcrit > * {
    grid-column: 1/-1;
}
/* ------------------ Intro ------------------ */
.intro {
    background-color: #F5ABC4;
    padding-top: 24px;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom:-20px;
    color: #491D1E
}

/* ------------------ GP ------------------ */
.GP__image {
    max-width: 450px;
    height: 150px;
    object-fit: cover;
    object-position:50% 100%;
    z-index:-1;
    position:relative;
    margin-bottom:-24px;
    margin-top:-12px;
    top:10px
}
.GP__image2 {
    display: none;
}

/* ------------------ Tribune ------------------ */
.tribune__image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position:50% 100%;
    z-index:-1;
    position:relative;
    margin-top:-24px;
    margin-bottom:-12px;
}
.tribune__image2 {
    display: none;
} 
/* ------------------ Erreur ------------------ */
.erreur__image {
    max-width: 400px;
    height: auto;
    z-index:-1;
    position:relative;
    margin-top:-12px;
    margin-bottom:-12px;
}
.erreur__image2 {
    display: none;
}
/* ------------------ Politique ------------------ */
.politique__image {
    max-width: 400px;
    height: 800px;
    object-fit: cover;
    object-position:50% 100%;
    z-index:-1;
    position:relative; 
    margin-top:-48px;
    margin-bottom:-224px;
}
.link__politique {
    display:grid;
    width: 50px;
    height: 50px;
    grid-column: 7;
    position:relative;
    bottom:48px;
}
.link__politique-icon img {
    width: 20px;
    height: 20px;
    padding: 15px;
    object-fit: contain;
    border-radius: 10%;
}
.link__politique-icon {
    background-color: #F5ABC4;
    border-radius: 100%;
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.link__politique-icon:hover{
    transform: scale(1.1);
}
.politique__image2 {
    display: none;
}  
/* ------------------ Outro ------------------ */
.outro__image {
    max-width: 450px;
    height: 300px;
    object-fit: cover;
    object-position:50% 90%;
    z-index:-1;
    position:relative;
    margin-top:-24px;
    margin-bottom:-24px;
}
.outro > span{
    clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
}
.outro__text {
    padding-top: 48px;
}
.outro__image2 {
    display: none;
}  
/* ------------------ Bloc découpé ------------------ */
.section__fond1 {
    clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
    width: calc(100% + 48px);
    left:-24px;
    position: relative;
}
.section__fond1 p,
.section__fond1 h2 {
    margin-left: 24px;
    margin-right: 24px;
}
.section__fond2 {
    clip-path: polygon(0 0, 100% 2%, 100% 100%, 0 98%);
    width: calc(100% + 48px);
    left:-24px;
    position: relative;
    margin-top:-20px;
}
.section__fond2 p,
.section__fond2 h2 {
    margin-left: 24px;
    margin-right: 24px;
}
.section__fond1 p {
    font-weight: 300;
}
.section__fond2 p {
    font-weight: 500;
}
.section__fond2 h2 {
    font-weight: 600;
}
.rouge {
    background-color: #491D1E;
    color:#FFFFFF
}
.rouge p:last-child {
    margin-bottom: 24px;
}
.rouge h2 {
    padding-top:24px
}
.rose {
    background-color: #F5ABC4;
    color:#491D1E
}
.rose p:last-child {
    margin-bottom: 24px;
}
.rose h2 {
    padding-top:24px
}

/*------------------ 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, #491D1E 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: #491D1E;
    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: #491D1E;
    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: #491D1E;
    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, #491D1E 50%, #F5ABC4 50%);
    color: #FFFFFF;
    padding-top: 24px;
    padding-bottom:24px;
    align-items: start;
    justify-content: stretch;
    height: auto;
    clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 100%);
}
.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: #491D1E;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer__link:hover {
    color: #FFFFFF;
}
.footer__legal {
    color: #491D1E;
    font-size: 20px;
    padding-bottom: 12px;
    margin-top: 0;
}
.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: 0px;
    }
    .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;
    }
    h1 {
        font-size: 57px;
    }
    h2 {
        font-size: 40px;
        padding-bottom:48px
    }
    .title__sujet {
        margin-top: 48px;
        padding-bottom: 48px;
    }
    .intro {
        padding-top:48px;
        clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
        padding-bottom : 48px
    }
    .intro__text {
        grid-column: 1/span 4;
        max-width: 500px;
    }
    .gp__sujet {
        grid-column: 1/span 4; 
    }
    .gp__text1 {
        grid-column: 1/span 4;
    }
    .gp__text2 {
        grid-column: 2/span 4;
    }
    .section__fond1 {
        clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
        width: calc(100% + 96px);
        left: -48px;
        margin-top: 100px;
    }
    .rouge h2 {
        padding-top: 150px
    }
    .rouge p:last-child {
        margin-bottom: 125px;
    }
    .section__fond2 {
        clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 90%);
        width: calc(100% + 96px);
        left: -48px;
        margin-top: 100px;
    }
    .rose h2 {
        padding-top: 100px
    }
    .rose p:last-child {
        margin-bottom: 100px;
    }
    .figure--full {
        display: none;
    }
    .GP__image2 {
        display: block;
        position: absolute;
        width: 100%;
        grid-column: 6/span 3;
        align-self: center;
        border: 5px solid #FFFFFF;
    }
    .tribune__sujet {
        grid-column: 5/span 5;
    }
    .tribune__text {
        grid-column: 5/span 4;
    }
    .tribune__text2 {
        grid-column: 6/span 3;
    }
    .tribune__image2 {
        display: block;
        position: absolute;
        width: 100%;
        grid-column: 2/span 3;
        align-self: center;
        border: 5px solid #491D1E;
    }
    .erreur__sujet {
        grid-column: 1/span 4;
    }
    .erreur__text {
        grid-column: 1/span 4;
    }
    .erreur__text2 {
        grid-column: 2/span 4;
    }
    .erreur__image2 {
        display: block;
        position: absolute;
        width: 100%;
        grid-column: 6/span 3;
        align-self: center;
        border: 5px solid #FFFFFF;
    }
    .politique__sujet {
        grid-column: 5/span 4;
    }
    .politique__text{
        grid-column: 6/span 4;
    }
    .politique__image2 {
        display: block;
        position: absolute;
        width: 100%;
        grid-column: 2/span 2;
        align-self: center;
        border: 5px solid #491D1E;
    }
    .link__politique {
        position: absolute;
        align-self: center;
        z-index: 100;
        bottom: auto;
        grid-column: 2;
        margin-top: 50px;
    }
    .link__politique-icon {
        background-color: #FFFFFF;
        box-shadow: 0 0 5px #491D1E;
    }
    .outro__text {
        grid-column: 2/span 3;
        padding-top: 192px;
        max-width: 450px;
    }
    .outro__image2 {
        display: block;
        position: absolute;
        width: 100%;
        grid-column: 6/span 3;
        align-self: center;
        border: 5px solid #FFFFFF;
    }
    .footer {
        clip-path: polygon(0 15%, 100% 0%, 100% 100%, 0 100%);
        padding-top: 72px;
    }
    p {
        max-width: 670px;
    }
}
/*---- Tablette ----*/
@media (min-width: 500px) and (max-width: 1024px) {
    p {
        max-width: 535px;
        justify-self: center;
    }
    h1 {
        max-width: 535px;
        justify-self: center;
    }
    h2:not(.m8__sujet) {
        max-width: 535px;
        justify-self: center;
    }
    .m8__image-logo {
        width: 10%;
    }
    .m8__imagegauche {
        max-width: 200px;
    }
    .m8__imagedroite {
        max-width: 200px;
    }
    .figure--full {
        max-width: 500px;
        justify-self: center;
        left: auto;
    }
    .twitch__logo {
        width: 50px;
    }
}