@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all .2s linear;

    /* .poppins-thin */
    /* font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: normal; */

    /* .poppins-extralight */
    /* font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: normal; */

    /* .poppins-light */
    /* font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal; */

    /* .poppins-regular */
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;

    /* .poppins-medium */
    /* font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal; */

    /* .poppins-semibold */
    /* font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal; */

    /* .poppins-bold */
    /* font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal; */

    /* .poppins-extrabold */
    /* font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: normal; */

    /* .poppins-black */
    /* font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: normal; */

    /* .poppins-thin-italic */
    /* font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: italic; */

    /* .poppins-extralight-italic */
    /* font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: italic; */

    /* .poppins-light-italic */
    /* font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: italic; */

    /* .poppins-regular-italic */
    /* font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: italic; */

    /* .poppins-medium-italic */
    /* font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: italic; */

    /* .poppins-semibold-italic */
    /* font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: italic; */

    /* .poppins-bold-italic */
    /* font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: italic; */

    /* .poppins-extrabold-italic */
    /* font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: italic; */

    /* .poppins-black-italic */
    /* font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: italic; */
}

html,
body {
    scroll-behavior: smooth;
    line-height: 1.6;
}

h1,
h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
}

a {
    text-decoration: none;
    color: #DE8717;
}

.nav-bar {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 85px;
    width: 100%;
    z-index: 1000;
    background-color: #127484;
    color: #fff;
}

.burger {
    display: none;
}

.logo {
    height: auto;
    width: 15%;
    /* align-content: center; */
}

.logo img {
    width: 100%;
    display: block;
    object-fit: cover;
    background: none;
}

.logo a:nth-child(2) {
    display: block;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    background: #de8717;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    position: absolute;
    left: 1rem;
    top: 1.3rem;
}

.logo a:nth-child(2):hover {
    background: #de8817e5;
}

.logo a.active {
    /* background: #de8817e5; */
}

.nav-menu {
    width: 70%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: inherit;
    padding: 1.3rem;
    height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.3rem;
    border: 1px solid #DE8717;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
}

.nav-link:last-child {
    color: #DE8717;
}

.nav-link:hover {
    background-color: #fff;
    color: #127484;
    font-weight: 600;
}

a.active,
a:last-child.active {
    background-color: #DE8717;
    color: #fff;
}

.language {
    width: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 1rem;
}

/* === Google Translate custom style === */
.goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
}

.goog-te-gadget-icon {
    display: none !important;
}

.goog-te-gadget-simple a,
.goog-te-gadget-simple a span {
    color: #fff !important;
}

.goog-te-gadget-simple a span:first-child {
    font-size: 0 !important;
}

.goog-te-gadget-simple a span:first-child:after {
    content: "Langue" !important;
    font-size: .9rem !important;
}

body {
    bottom: 0px !important;
}

#container {
    position: relative;
    width: 100%;
}

.hero {
    text-align: center;
    /* height: 70vh; */
    font-size: 2.5rem;
    padding: 2rem .8rem;
    background-color: #f0f0f073;
}

.hero p:first-child {
    margin-bottom: 80px;
    letter-spacing: 10px;
    font-size: 1rem;
}

.hero span {
    font-size: 1.2rem;
}

.hero h1 {
    font-size: 4rem;
    display: flex;
    flex-direction: column;
}

.hero hr,
.contacts hr,
.origin hr {
    width: 13vw;
    margin: 0.5rem auto 3rem;
    border: 1px solid #DE8717;
}

.hero .subtitle {
    width: 900px;
    margin: 0 auto;
    font-size: 1.3rem;
}

.origin {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
    background-color: #197a86;
    overflow: hidden;
    color: #fff;
}

.origin hr {
    margin: 0;
}

.origin img {
    max-width: 40%;
    display: block;
    object-fit: contain;
}

.origin div {
    width: 35%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 1.3rem;
}

/* ===========================
   QADASH SLIDERS
=========================== */

.announcements-slider,
.events-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    font-family: "Poppins", sans-serif;
}

/* --- SLIDES --- */
.announcements-slide,
.event-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 1s ease-in-out, opacity 0.8s ease;
}

.event-slide {
    background-size: cover;
    background-position: center;
}

.announcements-slide.active,
.event-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.announcements-slide.prev,
.event-slide.prev {
    transform: translateX(-100%);
    opacity: 1;
}

/* --- OVERLAY pour events --- */
.events-slider .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* --- CONTENU texte + bouton --- */
.events-slider .content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    animation: fadeUp 1s ease forwards;
}

.events-slider .content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.events-slider .content .btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: #de8717;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}

.events-slider .content .btn:hover {
    background: #127484;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40%);
    }

    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

/* --- NAVIGATION --- */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: #de8717;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    line-height: 3rem;
    text-align: center;
    cursor: pointer;
    z-index: 3;
    user-select: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.nav:hover {
    background: #de8717;
    color: #fff;
}

.nav.prev {
    left: 1.5rem;
}

.nav.next {
    right: 1.5rem;
}

/* --- DOTS --- */
.dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 3;
}

.dots .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ccc;
    border: 2px solid #de8717;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dots .dot.active {
    background: #de8717;
    transform: scale(1.2);
}

.contacts {
    background-color: #f0f0f073;
    width: 100%;
    margin: 0 auto;
    height: auto;
    padding: 1.3rem 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.3rem;
    flex-wrap: wrap;
}

.contacts hr {
    margin: 0.5rem auto 0;
}

.contacts h2 {
    width: 100%;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
}

.contacts div {
    background-color: white;
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contacts i {
    font-size: 2rem;
    color: #DE8717;
    margin-bottom: .5rem;
}

.contacts h3 {
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.contacts div p {
    font-size: 1rem;
}

.contacts a:hover {
    text-decoration: underline;
}

/*PAGE DOCUMENTAIRES*/

.documentaires {
    background-color: #f0f0f073;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 200px);
}

.documentaires img {
    max-width: 40%;
    display: block;
    object-fit: contain;
}

.documentaires p {
    color: lightgray;
    font-size: 1.5rem;
    text-align: center;
    margin: 10px;
}

/*PAGE ENSEIGNEMENTS*/

.enseignements,
.animations {
    text-align: center;
    height: auto;
    font-size: 2.5rem;
    padding: 2rem .8rem;
    background-color: #f0f0f073;
    overflow-x: hidden;
}

.enseignements h1,
.animations h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #127484;
}

.enseignements section {
    margin: 0 auto;
    max-width: 1200px;
}

.enseignements section div,
.animations section div {
    gap: 1rem;
    height: auto;
    font-size: 2.5rem;
    padding: 2rem .8rem;
}

.enseignements .video-grid,
.animations .video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.enseignements .video,
.animations .video {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
}

.enseignements .video iframe,
.animations .video iframe {
    width: 90%;
    aspect-ratio: 16 / 9;
    /* garantit le format YouTube */
    border-radius: .5rem;
    transition: transform 0.3s ease;
}

.enseignements .video iframe:hover,
.animations .video iframe:hover {
    transform: scale(1.05);
}

.enseignements .video p,
.animations .video p {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem;
    text-align: center;
    line-height: 1.4;
}

/*PAGE LIVRES*/

.livres {
    padding: 40px 5%;
    background-color: #f0f0f073;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.livres h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #127484;
}

.livres .book1 {
    margin: 10px 0 40px;
    width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filters {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filters input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    width: 220px;
}


.filters input,
.filters select {
    padding: 8px;
    border-radius: 6px;
    outline: none;
}

/* .section-header span {
    font-size: 0.95rem;
    color: #127484;
    cursor: pointer;
    transition: color 0.3s ease;
}

.section-header span:hover {
    color: #de8717;
} */

.book-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.book {
    background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    padding: 15px 15px 50px 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.book:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.book img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

.book h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #121212;
}

.book p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 12px;
}

.book .btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    background: #127484;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
    position: absolute;
    bottom: 1rem;
    width: calc(100% - 30px);
}

.book .btn:hover {
    background: #DE8717;
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination button.btn {
    background: #127484;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.pagination button.btn:hover:not(:disabled) {
    background: #DE8717;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination #pageInfo {
    font-size: 1rem;
    font-weight: 500;
    margin: 0 10px;
}

/*PAGE ANIMATIONS*/

footer {
    text-align: center;
    padding: 2rem 0;
    background-color: #DE8717;
    color: #fff;

}

footer p {
    font-weight: 500;
}

footer a {
    text-decoration: none;
    color: inherit;
    margin-left: .5em;
    cursor: pointer;
}

/* ================================
   MEDIA QUERIES ADAPTÉES
================================ */
/* Tablettes (≤1225px) */
@media (max-width: 1225px) {
    .nav-bar {
        font-size: 1.1rem;
        flex-direction: row-reverse;
    }

    .burger {
        display: block;
        width: 40%;
        text-align: center;
        font-size: 1.5rem;
        cursor: pointer;
        align-self: center;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #127484;
        border-top: 1px solid #fff;
        padding: 1rem 0;
    }

    .logo {
        width: 20%;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .language {
        width: 40%;
    }

    .language select {
        width: 25%;
    }

    main section {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero .subtitle {
        width: 700px;
        font-size: 18px;
    }

    .origin div {
        font-size: 1rem;
    }

    .contacts {
        gap: 1rem;
    }

    .contacts div {
        width: 45%;
    }

    /* Ajustements sliders pour tablettes */
    .announcements-slider,
    .events-slider {
        height: 65vh;
    }

    footer {
        font-size: 14px;
        gap: 0.5rem;
    }
}

/* Smartphones (≤768px) */
@media (max-width: 768px) {
    .nav-bar {
        gap: 0.5rem;
    }

    .burger {
        width: 35%;
    }

    .logo {
        width: 30%;
    }

    .nav-menu.active {
        padding: 1rem 1rem;
    }

    .nav-link {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .language {
        width: 35%;
    }

    .language select {
        width: 40%;
        font-size: 0.9rem;
    }

    main section {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        width: 85%;
        font-size: 16px;
    }

    .origin {
        height: 50vh;
    }

    .origin div {
        font-size: .8rem;
    }

    .events-slider .content h2 {
        font-size: 1.8rem;
    }

    /* Ajustements sliders pour petits smartphones */
    .announcements-slider,
    .events-slider {
        height: 60vh;
    }

    .nav {
        font-size: 2rem;
        width: 2.5rem;
        height: 2.5rem;
        line-height: 2.5rem;
    }

    .contacts div {
        width: 40%;
    }

    .contacts div p {
        font-size: .8rem;
    }

    footer {
        flex-direction: column;
        gap: 0.3rem;
    }

    /*PAGES DOCUMENTAIRES*/

    .documentaires {
        flex-direction: column
    }

    /*PAGES ENSEIGNEMENTS*/

    .enseignements,
    .animations {
        padding: 1.5rem .5rem;
    }

    .enseignements h1,
    .animations h1 {
        font-size: 1.5rem;
    }

    .enseignements hr,
    .animations hr {
        width: 40%;
        margin: 0 auto;
    }

    .enseignements .video-grid,
    .animations .video-grid {
        grid-template-columns: 1fr;
        /* une seule colonne sur petit écran */
    }

    .enseignements .video p,
    .animations .video p {
        font-size: 0.9rem;
        height: auto;
    }
}

@media (max-width: 600px) {

    .announcements-slider,
    .events-slider {
        height: 50vh;
    }

    .announcements-slide,
    .event-slide {
        background-position: center;
    }

    .nav {
        font-size: 2rem;
        width: 2.6rem;
        height: 2.6rem;
        line-height: 2.6rem;
    }

    .dots {
        bottom: 1rem;
    }

    /* s'assurer que l'image couvre et soit centrée */
    .announcements-slide,
    .event-slide {
        background-size: cover;
        background-position: center center;
    }
}

@media (max-width: 576px) {
    .language select {
        width: 50%;
    }

    .contacts div {
        width: 50%;
    }

}

/* Très petits écrans (≤480px) */
@media (max-width: 480px) {
    .nav-bar {
        gap: 0.3rem;
        padding-left: 10px;
    }

    .burger {
        width: 30%;
    }

    .logo {
        width: 40%;
    }

    .nav-menu {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-menu.active {
        top: 75px;
    }

    .nav-link {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .language {
        width: 30%;
    }

    .language select {
        width: 70%;
        font-size: .8rem;
    }

    main section {
        font-size: 1.2rem;
    }

    .hero span {
        font-size: 1rem;
    }

    .origin {
        height: 50vh;
    }

    .origin div {
        width: 50%;
        font-size: .8rem;
        gap: 10px;
    }

    .contacts {
        padding: 1.3rem;
    }

    .contacts div {
        width: 100%;
    }

    /* Ajustements sliders pour très petits écrans */
    .announcements-slider,
    .events-slider {
        height: 45vh;
    }
}

@media (max-width: 320px) {
    .nav-bar {
        gap: 0.2rem;
    }

    .burger {
        width: 30%;
    }

    .logo {
        width: 40%;
    }

    .nav-menu.active {
        top: 50px;
    }

    .nav-link {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .language {
        width: 30%;
    }

    .language select {
        width: 70%;
    }

    main section {
        font-size: 1.2rem;
    }

    .hero {
        padding: 2rem .9rem;
    }

    .hero p:first-child {
        margin-bottom: 30px;
        font-size: .9rem;

        /* Ajustement ultime pour écrans très étroits */
        .announcements-slider,
        .events-slider {
            height: 40vh;
        }
    }

    .hero p:first-child {
        margin-bottom: 80px;
    }

    .hero span {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 14px;
    }

    .origin div {
        width: 50%;
        font-size: .8rem;
        gap: 10px;
    }

    .contacts div {
        width: 100%;
    }
}

.albums {
    background-color: #f0f0f073;
    text-align: center;
    padding: 2rem 1rem;
}

.albums h1 {
    color: #127484;
    font-size: 2.2rem;
    font-weight: 700;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 1rem;
    justify-items: center;
}

.album-card {
    background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    width: 300px;
    transition: transform 0.3s ease;
}

.album-card:hover {
    transform: translateY(-5px);
}

.album-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.album-card h3 {
    font-size: 1.2rem;
    color: #127484;
    margin: 1rem 0;
}

.album-card .btn {
    display: inline-block;
    background: #de8717;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1rem;
}

.album-card .btn:hover {
    background: #127484;
}

.gallery {
    background-color: #f0f0f073;
    text-align: center;
    padding: 2rem 1rem;
}

.gallery-header {
    margin-bottom: 1rem;
    position: relative;
}

.gallery-header h1 {
    flex-grow: 1;
    text-align: center;
}

.gallery-grid {
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
}

.thumb-wrap {
    position: relative;
    overflow: hidden;
}

.thumb-wrap img {
    display: block;
    width: 100%;
    max-width: 220px;
    height: 160px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.thumb-wrap img:hover {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 2rem;
    pointer-events: none;
}

.video-overlay .play {
    /* width: 56px;
    height: 56px;
    border-radius: 50%; */
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.80);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 40px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* Lightbox Styles
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
} */