/* VARIABLES GLOBALES */

:root{
    /* Couleurs textes */
    --color-text-main: #40001C;
    --color-text-light: #EBE7F7;
    --color-text-header: #7159AD;
    --color-text-card: #A5456E;
    --color-text-footer: #FF90C0;
    
    /* Background */
    --bg-page: #ffffff;
    --bg-card-pink: #FFF0F0;
    --bg-card: linear-gradient(to right, #FF90C0, #ffffff, #FF90C0);
    --bg-header: #EBE7F7;
    --bg-footer: #40001C;
    
    /* typography */
    --font-main:  "Poppins", arial, sans-serif;
    --font-size-p: 20px;
    --font-size-h1: 104px;
    --font-size-h2: 48px;
    
}


body{
    font-family: var(--font-main);
    color: var(--color-text-main);
    background: var(--bg-page)
}


.purplebar{
    position: sticky;
    top: 0;
    z-index: 9999;
    
    height: 84px;
    padding: 0 28px;
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    background: #EBE7F7;
}

/* bouton burger */
.purplebar__btn{
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.purplebar__lines{
    width: 26px;
    height: 2px;
    background: rgba(113, 89, 173, .9);
    border-radius: 999px;
    position: relative;
}
.purplebar__lines::before,
.purplebar__lines::after{
    content:"";
    position:absolute;
    left:0;
    width:26px;
    height:2px;
    background: rgba(113, 89, 173, .9);
    border-radius: 999px;
}
.purplebar__lines::before{ top:-7px; }
.purplebar__lines::after{ top:7px; }


/* logo à droite */
.purplebar__logo{
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.purplebar__logo img{
    height: 38px;
    width: auto;
}



/* NAVIGATION BAR + MENU*/
.hpbar{
    position: fixed;
    left: 0;
    right: 0;
    top: 18px;
    z-index: 9999;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity .35s ease, transform .35s ease;
}
.hpbar.is-visible{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.hpbar__inner{
    height: 78px;
    border-radius: 14px;
    background: rgba(43, 25, 61, 0.92);
    box-shadow: 0 22px 50px rgba(0,0,0,.20);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    align-items: center;
    padding: 0 16px;
}

.hpbar__btn{
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.hpbar__burgerLines{
    width: 26px;
    height: 2px;
    background: rgba(235,231,247,.75);
    border-radius: 999px;
    position: relative;
}
.hpbar__burgerLines::before,
.hpbar__burgerLines::after{
    content:"";
    position:absolute;
    left:0;
    width:26px;
    height:2px;
    background: rgba(235,231,247,.75);
    border-radius: 999px;
}
.hpbar__burgerLines::before{ top:-7px; }
.hpbar__burgerLines::after{ top:7px; }

.hpbar__logo{
    justify-self:center;
    display:inline-flex;
    align-items:center;
    text-decoration:none;
}
.hpbar__logo img{
    height:38px;
    width:auto;
    opacity:.95;
}

.hpbar__icon{
    justify-self:end;
    width:44px;
    height:44px;
    border-radius:999px;
    display:grid;
    place-items:center;
    text-decoration:none;
    color: rgba(235,231,247,.85);
}
.hpbar__icon:hover{ background: rgba(255,255,255,.06); }

/* overlay menu */
.hpbar__overlay{
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
}
.hpbar__overlay.is-open{ display: block; }

.hpbar__backdrop{
    position:absolute;
    inset:0;
    background: rgba(10, 5, 20, 0.55);
}

.hpbar__panel{
    position:absolute;
    left:50%;
    top:120px;
    transform: translateX(-50%);
    width: min(1200px, calc(100vw - 56px));
    min-height: 520px;
    border-radius: 18px;
    background: #2b193d;
    box-shadow: 0 30px 90px rgba(0,0,0,.35);
    padding: 34px;
    color: rgba(235,231,247,.90);
}

.hpbar__panelHeader{
    display:flex;
    align-items:center;
    justify-content: space-between;
    margin-bottom: 26px;
}
.hpbar__panelTitle{
    font-weight:700;
    letter-spacing:.08em;
    font-size:14px;
    opacity:.75;
    margin:0;
}
.hpbar__close{
    width:42px;
    height:42px;
    border:none;
    background:transparent;
    border-radius:999px;
    display:grid;
    place-items:center;
    cursor:pointer;
    color: rgba(235,231,247,.90);
}
.hpbar__close:hover{ background: rgba(255,255,255,.06); }

.hpbar__cols{
    display:grid;
    grid-template-columns: 1.1fr .9fr 1.2fr;
    gap: 34px;
}

.hpbar__bigLink{
    display:flex;
    align-items:center;
    justify-content: space-between;
    padding: 12px 0;
    text-decoration:none;
    color: rgba(235,231,247,.92);
    font-weight:800;
    font-size:35px;
    line-height:1.05;
}
.hpbar__chev{ font-size:30px; opacity:.7; margin-left:18px; }

.hpbar__subTitle{
    margin: 0 0 12px;
    font-weight:700;
    letter-spacing:.08em;
    font-size:14px;
    opacity:.75;
}
.hpbar__link{
    display:block;
    padding:10px 0;
    color: rgba(235,231,247,.88);
    text-decoration:none;
    font-size:20px;
    font-weight:700;
}

.hpbar__social{
    display:flex;
    gap:12px;
    margin-top:18px;
}
.hpbar__social a{
    width:36px;
    height:36px;
    border-radius:999px;
    display:grid;
    place-items:center;
    text-decoration:none;
    color: rgba(235,231,247,.90);
    border:1px solid rgba(235,231,247,.15);
}
.hpbar__social a:hover{ background: rgba(255,255,255,.06); }

.hpbar__card{
    text-decoration:none;
    color: rgba(235,231,247,.9);
    display:grid;
    gap:10px;
    margin-top:12px;
}
.hpbar__thumb{
    width:100%;
    height:190px;
    border-radius:14px;
    background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
}

.hpbar__thumb img{
    width: 100%;
}

.hpbar__thumb2{
    background: radial-gradient(220px at 30% 20%, rgba(255,144,192,.25), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
}
.hpbar__card p{
    margin:0;
    font-size:18px;
    font-weight:700;
    opacity:.9;
}

/* responsive menu */
@media (max-width: 980px){
    .hpbar__cols{ grid-template-columns:1fr; gap:22px; }
    .hpbar__bigLink{ font-size:38px; }
    .hpbar__panel{ top:100px; padding:26px; }
}
@media (max-width: 560px){
    .hpbar{ top:10px; padding:0 16px; }
    .hpbar__inner{ height:66px; border-radius:12px; }
    .hpbar__logo img{ height:30px; }
    .hpbar__bigLink{ font-size:32px; }
    .hpbar__thumb{ height:160px; }
}


/* HEADER */

header{
    background: var(--bg-header);
    text-align: center;
}
header h1{
    font-size: var(--font-size-h1);
    font-weight: 800;
    color: var(--color-text-header);
}

.purple{
    background-color: #EBE7F7;
    margin-bottom: 73px;
}

/* IMAGE PRINCIPALE */

.books{
    display: grid;
    grid-template-columns: 1fr 1fr auto 1fr 1fr;
    grid-template-rows: repeat(3, auto);
    gap: 30px 60px;
    justify-items: center;
    align-items: center;
    margin-top: 40px;
}

.book--float{
    --floatY: 0px;
    transform: translateY(var(--floatY));
    will-change: transform;
}

.hp1{
    grid-column: 3;
    grid-row: 1 / 4;
}

.hp2{
    grid-column: 2; 
    grid-row: 1;
}
.hp3{
    grid-column: 1;
    grid-row: 2;
}
.hp4{
    grid-column: 2;
    grid-row: 3;
}
.hp5{
    grid-column: 4;
    grid-row: 1;
}
.hp6{
    grid-column: 5;
    grid-row: 2;
}
.hp7{
    grid-column: 4;
    grid-row: 3;
}

header a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    padding: 18px 24px;
    margin-top: 33px;
    
    background: #B1A7EA;
    color: #261630;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;   
    
    margin-bottom: 78px;
}

/* AUTEUR */

.author-card{
    max-height: 374px;
    max-width: 1000px;
    margin: 60px auto;
    padding: 30px;
    background: #7159AD;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    color: #EBE7F7;
    justify-content: flex-start;
    flex-wrap: nowrap;
}
.author-text{
    flex: 1;
}

.author-label{
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.8;
}

.author-text h2{
    font-size: var(--font-size-h2);
    font-weight: 800;
    margin: 10px 0;
    line-height: 1.2;
}
.author-text h3{
    font-size: 24px;
    font-weight: 600;
}
.author-text p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 420px;
}
.author-text a{
    display: inline-block;
    margin-top: 23px;
    margin-bottom: 40px;
    padding: 10px 16px;
    background: #B1A7EA;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    color: #261630;
}
.author-image{
    flex: 1;
    max-width: 350px;
    aspect-ratio: 4 / 3;
}
.author-image img{
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* TEXTE QUI BOUGE */

.moving-wrapper{
    overflow: hidden;
    width: 100%;
}

.moving-text{
    background-color: #EBE7F7;
    font-size: 96px;
    color: var(--color-text-header);
    font-weight: 700;
    padding: 20px 0;
    display: inline-block;
    white-space: nowrap;
    --moveX:0px;
    transform: translateX(var(--moveX));
    will-change: transform;
}

/* AMIS */

.friends{
    max-width: 1000px;
    margin: 80px auto;
    max-height: 390px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.friend-text{
    flex: 1;
}

.friend-text h2{
    font-size: var(--font-size-h2);
    font-weight: 800;
    margin-top: 52px;
    margin-bottom: 34px;
}

.friend-text h4{
    color: #FF90C0;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
}
.friend-text p{
    max-width: 420px;
}
.friend-text a {
    display: inline-block;
    margin-top: 34px;
    padding: 18px 27px;
    background-color: #FF90C0;
    color: #40001C;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.friend-image{
    flex: 1;
    max-width: 500px;
    aspect-ratio: 4 / 3;
}

.friend-image img{
    width: 100%;
    max-height: 512px;
}

/* CARTES SYMBOLES */

.symbols{
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 28px 30px;
    text-align: center;
    overflow: visible;
    
}
.symbols h2{
    font-size: var(--font-size-h2);
    font-weight: 800;
    margin-bottom: 12px;
}

.symbols p {
    font-size: 16px;
    margin-bottom: 47px;
}

.symbols-viewport{
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;

    padding: 10px 50px 10px;
    
    scroll-padding-left: 50px;
    scroll-padding-right: 50px;    
}

.symbol-cards{
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: nowrap;
    
    scroll-snap-type: x mandatory;
    
    padding: 0;
}

.symbol-card{
    position: relative;
    border-radius: 16px;
    flex: 0 0 320px;
    width: 320px;
    height: 300px;
    overflow: hidden;
    background: radial-gradient(240px at 75% 18%, rgba(255,105,180,.35), transparent 60%),
    radial-gradient(220px 220px at 15% 85%, rgba(255,105,180,.22), transparent 60%),
    linear-gradient(180deg, rgba(255,105,180,.14), rgba(255,105,180,.08))
    ;
    
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
    
    scroll-snap-align: start;
    
    margin: 6px 0;
    padding: 30px;
}

.symbol-card::before{
    content:"";
    position:absolute;
    top:20px;
    left:20px;
    width:54px;
    height:54px;
    border-radius:50%;
    background: rgba(255,105,180,.35);
    box-shadow: 0 10px 18px rgba(40,0,20,.10);
    z-index:1;
}

.symbol-card img{
    position:absolute;
    top:24px;
    left:24px;
    width:48px;
    height:48px;
    object-fit:contain;
    z-index:2;
}

.symbol-card h3{
    color: #A5456E;
    font-size: 16px;
    font-weight: 600;
    margin-top: 87px;
    margin-bottom: 17px;
}

.symbol-card p{
    min-width: 100%;
    box-sizing: border-box;
    font-size: 40px;
    color: #A5456E;
    font-weight: 800;
}

.symbols-pagination{
    margin-top: 22px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:18px;
}

.dots{ display:flex; gap:8px; }

.dot{
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #c9a3b6;
    opacity: .6;
}

.dot.active{
    width: 34px;
    background: #ff7eb9;
    opacity: 1;
}

.arrow{
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #6a2b44;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.page-indicator{
    font-weight: 800;
    color:#2b0017;
    min-width: 48px;
    text-align:center;
}

/* CARTES PERSONNAGES */

.perso{
    max-width: 1200px;
    margin: 90px auto;
    padding: 0 28px;
    text-align: center;
}

.perso-carrousel{
    margin-top: 30px;
}

.perso-stage{
    position: relative;
    height: 560px;
    width: 100%;
    margin: 0 auto;
    z-index: 1;
}

.perso h2{
    font-size: var(--font-size-h2);
    font-weight: 800;
    text-align: center;
    margin-top: 112px;
    margin-bottom: 48px;
}

.perso-card{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 400px;
    transform: translate(-50%, -50%);
    border-radius: 24px;
    padding: 34px 28px;
    text-align: center;
    transition: transform .45s ease, opacity .45s ease, filter .45s ease;
    filter: blur(0px);
    background-color: #FFF0F0;
}

.perso-card.is-active{
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    z-index: 3;
}

.perso-card.is-prev{
    opacity: 1;
    transform: translate(-135%, -50%) rotate(-10deg) scale(.92);
    z-index: 2;
}

.perso-card.is-next{
    opacity: 1;
    transform: translate(35%, -50%) rotate(10deg) scale(.92);
    z-index: 2;
}

.perso-card.is-far{
    opacity: 1;
    transform: translate(-240%, -50%) rotate(-14deg) scale(.86);
    z-index: 1;
    filter: saturate(.95);
}

.perso-card.is-far-right{
    opacity: 1;
    transform: translate(140%, -50%) rotate(14deg) scale(.86);
    z-index: 1;
    filter: saturate(.95);
}

.perso-card.is-hidden{
    opacity: 0;
    transform: translate(-50%, -50%) scale(.8);
    pointer-events: none;
}

.perso-ui{
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    position: relative;
    z-index: 10;
}

.perso-dots{
    display: flex;
    gap: 8px;
    align-items: center;
}

.perso-dot{
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(143,61,98,.35);
}

.perso-dot.active{
    width: 34px;
    background: #ff7eb9;
}

.perso-arrow{
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #2b0017;
    font-size: 34px;
    cursor: pointer;
}

.perso-page{
    min-width: 60px;
    text-align: center;
    font-weight: 800;
    color: #2b0017;
}
.perso-card h3{
    font-size: 32px;
    font-weight: 700;
    color: #A5456E;
    margin-bottom: 17px;
}

.perso-card p {
    font-size: 14px;
    color: #A5456E;
    margin-bottom: 25px;
}

.perso-stage .perso-card{ opacity: 1; }
.perso-stage .perso-card.is-hidden{ opacity: 0; }

/* PLUS HISTOIRE */

.story{
    max-width: 1000px;
    margin: 112px auto;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.story-text{
    flex: 1;
}

.story-text h2{
    font-size: var(--font-size-h2);
    font-weight: 800;
    margin-bottom: 46px;
}

.story-text p {
    font-size: 20px;
    max-width: 420px;
    margin-bottom: 40px;
}
.story-text a{
    display: inline-block;
    margin-top: 23px;
    margin-bottom: 40px;
    padding: 18px 24px;
    background: #FF90C0;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    color: #40001C;
}

.story-books{
    flex: 1;
    padding: 20px 70px;
    background-color: #25193D;
    border-radius: 16px;
    text-align: center;
}

.story-books.slideshow{
    position: relative;
    width: 500px;
    height: 400px;
    border-radius: 22px;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.bg{
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: fadeShow 21s infinite;
}

.bg1{ background:#6f6882; animation-delay:0s;}
.bg2{ background:#7fa36a; animation-delay:3s;}
.bg3{ background:#6fa4cf; animation-delay:6s;}
.bg4{ background:#9ad0e3; animation-delay:9s;}
.bg5{ background:#e28a5b; animation-delay:12s;}
.bg6{ background:#3e3e3e; animation-delay:15s;}
.bg7{ background:#9b8fb3; animation-delay:18s;}

.slide{
    position: absolute;
    width: 240px;
    height: 370px;
    object-fit: cover;
    opacity: 0;
    animation: fadeShow 21s infinite;
}

.slide:nth-of-type(1){ animation-delay:0s;}
.slide:nth-of-type(2){ animation-delay:3s;}
.slide:nth-of-type(3){ animation-delay:6s;}
.slide:nth-of-type(4){ animation-delay:9s;}
.slide:nth-of-type(5){ animation-delay:12s;}
.slide:nth-of-type(6){ animation-delay:15s;}
.slide:nth-of-type(7){ animation-delay:18s;}

@keyframes fadeShow{
    0%   {opacity:0;}
    10%  {opacity:1;}
    35%  {opacity:1;}
    45%  {opacity:0;}
    100% {opacity:0;}
}

/* LIEN VERS SITE */


.websites{
    max-width: 1100px;
    margin: 110px auto 90px;
    padding: 0 28px;
    text-align: center;
}

.websites h2{
    font-size: var(--font-size-h2);
    font-weight: 800;
    margin-bottom: 20px;
}

.websites img{
    display: block;
    margin: 0 auto 24px;
    width: min(520px, 85%);
    height: auto;
}

.websites a{
    display: inline-block;
    margin-top: 23px;
    margin-bottom: 40px;
    padding: 18px 24px;
    background: #FF90C0;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    color: #40001C;
}

/* FAQ */

.faq{
    max-width: 760px;
    margin: 120px auto 90px;
    padding: 0 28px;
}
.faq h4{
    color: #FF90C0;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.faq h2{
    font-size: var(--font-size-h2);
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
}

.faq-question{
    margin: 0;
    padding: 0;
}

.faq-question dt{
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.faq-question dd{
    font-size: 20px;
    margin-bottom: 24px;
}

/* NEWSLETTER */

.newsletter{
    max-width: 1200px;
    margin: 110px auto;
    padding: 0 28px;
}

.newsletter-card{
    background-color: #FFF0F0;
    border-radius: 22px;
    padding: 46px 56px;
    display: flex;
    gap: 56px;
    align-items: center;
}

.newsletter-left{
    flex: 0 0 430px;
    color: var(--color-text-card);
    font-weight: 700;
    font-size: var(--font-size-h2);
}
.newsletter-left strong{
    font-size: var(--font-size-h1);
    color: #A5456E;
    font-weight: 800;
}

.newsletter-right{
    flex: 1;
}

.newsletter-text{
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-card);
}

.newsletter-form{
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 14px;
}

.newsletter-form input{
    flex: 1;
    height: 58px;
    border-radius: 6px;
    border: 1.5px solid #A5456E;
    padding: 0 18px;
    font-size: 18px;
    outline: none;
    background: #ffffff;
}

.newsletter-form button{
    height: 58px;
    padding: 0 26px;
    border: none;
    border-radius: 6px;
    background-color: #FF90C0;
    color: #2b0017;
    font-weight: 900;
    font-size: 18px;
    
}

/* VIDEOS */

.videos{
    max-width: 1200px;
    margin: 110px auto;
    padding: 0 28px;
    text-align: center;
}

.videos__inner h2{
    font-size: var(--font-size-h2);
    font-weight: 800;
    margin-bottom: 12px;
}

.videos__inner p{
    font-size: 18px;
    max-width: 760px;
    margin: 0 auto 28px;
}

.videos__grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.video-card{
    background: #FFF0F0;
    border-radius: 18px;
    padding: 20px;
}

.video-card h3{
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 800;
    color: var(--color-text-card);
}

.video-frame{
    border-radius: 14px;
    overflow: hidden;
    background: #25193D;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
}


.video-frame video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-card__caption{
    margin: 12px 0 0;
    font-size: 16px;
    color: var(--color-text-main);
    opacity: .85;
}


/* FOOTER */

footer{
    background-color: #40001C;
    padding-top: 95px;
    padding-bottom: 95px;
    text-align: center;
}
footer nav{
    color: #FF90C0;
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
}
footer nav a{
    text-decoration: none;
    color: #FF90C0;
}
footer small{
    color: #FF90C0;
}


/* =======================================================
   CORRECTIONS GLOBALES
======================================================= */

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

html,
body{
    overflow-x: hidden;
}

/* =======================================================
   TABLETTE
======================================================= */

@media (max-width: 1024px){

    :root{
        --font-size-h1: 72px;
        --font-size-h2: 40px;
        --font-size-p: 18px;
    }

    .author-card,
    .friends,
    .story{
        flex-direction: column;
        max-height: none;
        text-align: center;
    }

    .author-text p,
    .friend-text p,
    .story-text p{
        max-width: 100%;
    }

    .author-image,
    .friend-image{
        max-width: 100%;
    }

    .story-books.slideshow{
        width: 100%;
        max-width: 500px;
        height: 350px;
    }

    .newsletter-card{
        flex-direction: column;
        gap: 30px;
    }

    .newsletter-left{
        flex: auto;
        text-align: center;
    }

    .videos__grid{
        grid-template-columns: 1fr;
    }

}

/* =======================================================
   MOBILE
======================================================= */

@media (max-width: 768px){

    :root{
        --font-size-h1: 52px;
        --font-size-h2: 32px;
        --font-size-p: 16px;
    }

    /* HEADER */

    header{
        padding: 30px 20px;
    }

    header h1{
        line-height: 1.1;
    }

    /* BOOKS */

    .books {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        padding: 0 20px !important;
        max-width: 360px !important;
        margin: 40px auto 0 !important;
    }

    .books img {
        width: 100% !important;
        max-width: 130px !important;
        height: auto !important;
        justify-self: center !important;
    }

    .hp1, .hp2, .hp3, .hp4, .hp5, .hp6, .hp7 {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .hp7 {
        grid-column: span 2 !important;
    }
}

    /* AUTHOR */

    .author-card {
        height: auto !important;
        max-height: none !important;
        padding-bottom: 40px;
    }

    .author-text a {
        margin-bottom: 20px;
    }

    .author-image {
        aspect-ratio: auto;
        max-width: 220px;
        margin: 0 auto;
    }



    /* FRIENDS */

    .friends{
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-height: none;
    }

    .friend-text{
        display: contents;
    }

    .friend-text h4,
    .friend-text h2,
    .friend-text p{
        order: 1;
    }

    .friend-image{
        order: 2;
        margin: 20px 0;
    }

    .friend-image img{
        width: 220px;
        max-width: 100%;
        height: auto;
    }

    .friend-text a{
        order: 3;
        margin-top: 20px;
    }


    /* MOVING TEXT */

    .moving-text{
        font-size: 48px;
    }

    /* SYMBOLS */

    .symbols{
        padding: 0 20px;
    }

.symbol-card {
    padding-top: 90px !important;
    justify-content: flex-start !important;
}

.symbol-card::before {
    top: 15px !important;
    left: 15px !important;
    width: 44px !important;
    height: 44px !important;
}

.symbol-card img {
    top: 17px !important;
    left: 17px !important;
    width: 40px !important;
    height: 40px !important;
}

.symbol-card h3 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    padding-left: 55px !important;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 15px !important;
}

.symbol-card p {
    font-size: 24px !important;
    line-height: 1.2;
}



    /* PERSONNAGES */

    .perso-stage{
        height: 450px;
    }

    .perso-card{
        width: 240px;
        height: 350px;
        padding: 25px;
    }

    .perso-card h3{
        font-size: 24px;
    }

    .perso-card.is-prev{
        transform: translate(-95%, -50%) scale(.8);
    }

    .perso-card.is-next{
        transform: translate(-5%, -50%) scale(.8);
    }

    .perso-card.is-far,
    .perso-card.is-far-right{
        opacity: 0;
        pointer-events: none;
    }

    /* STORY */

.story {
    padding: 20px;
}

.story-books {
    padding: 20px 10px !important;
}

.story-books.slideshow {
    width: 100% !important;
    max-width: 340px !important;
    height: 440px !important;
    margin: 0 auto !important;
}

.slide {
    width: 250px !important;
    height: 380px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
}

    /* NEWSLETTER */

    .newsletter{
        padding: 0 20px;
    }

    .newsletter-card{
        padding: 25px;
    }

    .newsletter-left{
        font-size: 28px;
    }

    .newsletter-left strong{
        font-size: 56px;
    }

    .newsletter-form{
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button{
        width: 100%;
    }

    /* FAQ */

    .faq h2{
        font-size: 32px;
    }

    .faq-question dt,
    .faq-question dd{
        font-size: 18px;
    }

    /* FOOTER */

    footer nav{
        display: flex;
        flex-direction: column;
        gap: 12px;
    }



/* =======================================================
   PETITS SMARTPHONES
======================================================= */

@media (max-width: 480px){

    :root{
        --font-size-h1: 42px;
        --font-size-h2: 28px;
    }

    .purplebar{
        padding: 0 16px;
    }

    .purplebar__logo img{
        height: 30px;
    }

    .moving-text{
        font-size: 36px;
    }

    .symbol-card{
        flex: 0 0 240px;
        width: 240px;
    }

    .newsletter-left strong{
        font-size: 42px;
    }

    .slide{
        width: 150px;
        height: 230px;
    }

}