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

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    width: 100%;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.navbar-content {
    display: flex;
    justify-content: space-between !important;
    align-items: center;
    height: 80px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.logo-img {
    height: 140px;
    width: auto;
    max-width: 100%;
}
.logo-img.log{
    height: 180px;
    width: auto;
    max-width: 100%;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #F6D23F;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 10px 15px;
    background: white;
    border-top: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
}

.mobile-nav-link {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.mobile-nav-link:hover {
    background: #f0f4f8;
}

/* Responsive */
@media (max-width: 768px) {
    .container{
        width: 100%;
        margin: auto;
    } 
    .nav-links {
        display: none;
    }
  
    .menu-toggle {
        display: block;
    }
  
    .mobile-menu.active {
        display: flex;
    }
}

/* Hero Section - Corrected */
.hero-section {
    position: relative;
    padding-top: 80px;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1e3a8a;
    opacity: 0.75;
    mix-blend-mode: multiply;
}

.hero-content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: white;
    z-index: 10;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.hero-date {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    margin-top: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #1e3a8a;
    background: white;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #dbeafe;
}

.cta-icon {
    margin-left: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
        padding: 0 15px;
    }
  
    .hero-subtitle { 
        font-size: 1.2rem;
        padding: 0 15px;
    }
  
    .hero-date {
        font-size: 1rem;
    }
.navbar-content {
    
    justify-content: space-between !important;
     width: 80% !important;
     
}
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: white;
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e293b;
}

.about-description {
    margin-top: 1rem;
    font-size: 1.25rem;
    color: #64748b;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    background: #dbeafe;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
}

.value-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d4ed8;
}

.value-description {
    margin-top: 0.75rem;
    font-size: 1rem;
    color: #374151;
}

/* Responsive */
@media (min-width: 768px) {
    .about-values {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .about-values {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Program Section */
.program-section {
    padding: 4rem 0;
    background: #f9fafb;
}

.program-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
}

.program-schedule {
    margin-top: 3rem;
    display: grid;
    gap: 2rem;
}

.day-schedule {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.day-header {
    background: #E1F2FB;
    padding: 1rem;
}

.day-date {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    text-align: center;
}

.day-events {
    padding: 1rem;
}

.event {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.event:last-child {
    border-bottom: none;
}

.event-time {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563eb;
}

.event-title {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #1e293b;
}

/* Responsive */
@media (min-width: 768px) {
    .program-schedule {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .program-schedule {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Registration Section */
.registration-section {
    padding: 4rem 0;
    background: white;
    margin-top: 180px;
}

.registration-form {
    max-width: 800px;
    margin: 0 auto;
}

.registration-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
    margin-bottom: 2rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.form-input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    color: #1e293b;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: #2563eb;
    outline: none;
}

textarea.form-input {
    resize: vertical;
}

.submit-button {
    padding: 0.75rem;
    background: #2563eb;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: #F6D23F;
}

/* Partners Section */
.partners-section {
    padding: 4rem 0;
    background: #f9fafb;
    margin: auto;
}

.partners-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
}

.partners-grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.partner-image {
    max-height: 4rem;
    width: auto;
}

.partnership-cta {
    margin-top: 4rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e293b;
}

.cta-description {
    margin-top: 1rem;
    font-size: 1rem;
    color: #64748b;
}

.cta-button {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: #2563eb;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #1d4ed8;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: white;
}

.contact-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
}

.contact-content {
    margin-top: 3rem;
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .contact-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #2563eb;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.info-value {
    font-size: 0.875rem;
    color: #64748b;
}

.social-links {
    margin-top: 2rem;
}

.social-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.social-icons {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: #64748b;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #2563eb;
}

.icon {
    width: 1.5rem;
    height: 1.5rem;
}

.contact-form {
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 2rem;
}

.form-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.form-input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #1e293b;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: #2563eb;
    outline: none;
}

textarea.form-input {
    resize: vertical;
}

.submit-button {
    padding: 0.75rem;
    background: #2563eb;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: #1d4ed8;
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    height: 120px;
    width: 200px;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    font-size: 0.875rem;
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-text {
    font-size: 0.875rem;
    color: #d1d5db;
}

.footer-copyright {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    text-align: center;
}

/* Team Section */
.our-team{
    border-left: 8px solid #0097DC;
    border-bottom: 8px solid #0097DC;
}
.our-team .team-image{
    position: relative;
    text-align: center;
}
.our-team img{
    width: 70%;
    height: auto;
}
.our-team .description{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 14px;
    color: #fff;
    line-height: 30px;
    padding: 40px 50px;
    opacity: 0;
    background-color: #3b336a;
    transition: all 0.5s ease 0s;
}
.our-team:hover .description{
    opacity: 1;
}
.our-team .social{
    padding: 10px 0 0 0;
    margin: 0;
    list-style: none;
    position: absolute;
    top: 40px;
    left: -27px;
    background: #3b336a;
    text-align: center;
    transform: translate(25px, 0px) rotateY(90deg);
    transition: all 0.5s ease 0s;
}
.our-team:hover .social{
    transform: translate(0px, 0px) rotateY(0deg);
}
.our-team .social li{
    display: block;
    margin-bottom: 10px;
}
.our-team .social li a{
    display: block;
    width: 40px;
    height: 35px;
    font-size: 17px;
    color: #fff;
    line-height: 30px;
    transition: all 0.5s ease 0s;
}
.our-team .social li a:hover{
    background: #bc3fbf;
}
.our-team .team-info{
    padding: 20px;
}
.our-team .title{
    font-size: 18px;
    color: #E1F2FB;
    letter-spacing: 4px;
    margin: 0 0 15px 0;
    transition: all 0.5s ease 0s;
}
.our-team .post{
    display: block;
    font-size: 14px;
    color: #3b336a;
    text-transform: capitalize;
}
.our-team .title:hover,
.our-team .post:hover{
    color: #bc3fbf;
}

/* Gallery Section */
.gallerys{
    height: 600px;
    margin: 0;
    display: grid;
    grid-template-rows: 500px 100px;
    grid-template-columns: 1fr 30px 30px 30px 30px 30px 1fr;
    align-items: center;
    justify-items: center;
}

#carousel {
    grid-row: 1 / 2;
    grid-column: 1 / 8;
    width: 100vw;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 600px;
    --items: 5;
    --middle: 3;
    --position: 1;
    pointer-events: none;
}

div.item {
    position: absolute;
    width: 300px;
    height: 400px;
    background-color: coral;
    --r: calc(var(--position) - var(--offset));
    --abs: max(calc(var(--r) * -1), var(--r));
    transition: all 0.25s linear;
    transform: rotateY(calc(-10deg * var(--r)))
    translateX(calc(-300px * var(--r)));
    z-index: calc((var(--position) - var(--abs)));
}

div.item:nth-of-type(1) {
    --offset: 1;
    background-color: #90f1ef;
}
div.item:nth-of-type(2) {
    --offset: 2;
    background-color: #ff70a6;
}
div.item:nth-of-type(3) {
    --offset: 3;
    background-color: #ff9770;
}
div.item:nth-of-type(4) {
    --offset: 4;
    background-color: #ffd670;
}
div.item:nth-of-type(5) {
    --offset: 5;
    background-color: #e9ff70;
}

/* Articles Section */
article {
    --img-scale: 1.001;
    --title-color: black;
    --link-icon-translate: -20px;
    --link-icon-opacity: 0;
    position: relative;
    border-radius: 16px;
    box-shadow: none;
    background: #fff;
    transform-origin: center;
    transition: all 0.4s ease-in-out;
    overflow: hidden;
    padding: 20px 0;
}

article a::after {
    position: absolute;
    inset-block: 0;
    inset-inline: 0;
    cursor: pointer;
    content: "";
}

article h2 {
    margin: 0 0 18px 0;
    font-family: "Bebas Neue", cursive;
    font-size: 1.9rem;
    letter-spacing: 0.06em;
    color: var(--title-color);
    transition: color 0.3s ease-out;
}

figure {
    margin: 0;
    padding: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

article img {
    max-width: 100%;
    transform-origin: center;
    transform: scale(var(--img-scale));
    transition: transform 0.4s ease-in-out;
}

.article-body {
    padding: 24px;
}

article a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #28666e;
}

article a:focus {
    outline: 1px dotted #28666e;
}

article a .icon {
    min-width: 24px;
    width: 24px;
    height: 24px;
    margin-left: 5px;
    transform: translateX(var(--link-icon-translate));
    opacity: var(--link-icon-opacity);
    transition: all 0.3s;
}

article:has(:hover, :focus) {
    --img-scale: 1.1;
    --title-color: #28666e;
    --link-icon-translate: 0;
    --link-icon-opacity: 1;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}

.articles {
    display: grid;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Editor Styles */
.ck-editor__editable_inline {
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Message Styles */
.message{
    padding: 8px 0;
    text-align: center;
    width: 95%;
    background-color: #FFCCCC;
    color: #FF3333;
    font-size: 1rem;
}
.msgSuccess{
    padding: 8px 0;
    text-align: center;
    width: 95%;
    background-color: #CCFFCC;
    color: #00CC00;
    font-size: 1rem;
}

/* Responsive Adjustments */
@media only screen and (max-width: 990px){
    .our-team{ margin-bottom: 30px; }
}

@media only screen and (max-width: 767px){
    .our-team .social{ left: -20px; }
    /* Correction pour la navbar */
    .navbar-content {
        padding: 0 10px;
    }
    
    /* Correction pour le hero */
    .hero-title {
        font-size: 2rem;
        padding: 0 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    /* Correction pour les partenaires */
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .partner-logo {
        padding: 1rem;
    }
    
    /* Correction pour les articles */
    .articles {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    /* Correction spécifique pour la galerie */
    #carousel {
        perspective: 300px;
    }
    
    div.item {
        width: 85%;
        height: 300px;
        transform: rotateY(calc(-8deg * var(--r))) 
                   translateX(calc(-45% * var(--r)));
    }
}

@media only screen and (max-width: 480px){
    .our-team .social{ left: -20px; }
    .partner-logo {
        padding: 1rem;
    }
    
    .partner-image {
        max-width: 80%;
        height: auto;
    }
}

@media screen and (max-width: 960px) {
    article {
        container: card/inline-size;
    }
    .article-body p {
        display: none;
    }
}

@container card (min-width: 380px) {
    .article-wrapper {
        display: grid;
        grid-template-columns: 100px 1fr;
        gap: 16px;
    }
    .article-body {
        padding-left: 0;
    }
    figure {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    figure img {
        height: 100%;
        aspect-ratio: 1;
        object-fit: cover;
    }
}

.sr-only:not(:focus):not(:active) {
    clip: rect(0 0 0 0); 
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap; 
    width: 1px;
}

@media (max-width: 767px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .our-team img {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .partner-logo {
        padding: 1rem;
    }
    
    .partner-image {
        max-width: 80%;
        height: auto;
    }
}