
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --bg-light: #f8fafc;
    --success: #22c55e;
    --content:rgb(0, 0, 143);
    --title-color:rgb(199, 0, 0);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Style de la section et du carrousel */
.hero {
    background-color:var(--content) ;
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}


.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,160L48,144C96,128,192,96,288,106.7C384,117,480,171,576,197.3C672,224,768,224,864,208C960,192,1056,160,1152,128C1248,96,1344,64,1392,48L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-position: bottom;
    background-repeat: no-repeat;
    pointer-events: none;
}


.carousel {
    position: relative;
    width: 100%;
    height: 100vh;
}

.carousel-inner {
    display: flex;
    transition: transform 3ss ease;
    width: 100%;
}

@keyframes animationCar{
    form{
        transform: translateX(7px);
        opacity: 0;
    }
    to{
        transform: translateX(7px);
        opacity: 1;
    }
}
.carousel-item {
    min-width: 100%;
    height: 100vh;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 2;
}

.hero-content {
    text-align: center;
    text-align: center;
    color: #fff;
    max-width: 800px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 40px;
}

.hero p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.about-cards {
    padding: 80px 20px;
    background: #f8fafc;
}

.cards-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    position: relative;
    bottom: 160px;

}

.card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.222);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background:var(--title-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2em;
    transition: 0.6s ease-in;
}
.icon-wrapper:hover {
    background-color: black;
}

/*********************************************************************************************/
.counter-section {
    background: white;
    padding: 80px 20px;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.counter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.counter-item {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.counter-icon {
    font-size: 2.5em;
    color: #4f46e5;
    margin-bottom: 15px;
}

.counter {
    font-size: 3em;
    font-weight: 700;
    color: #1e293b;
    margin: 10px 0;
}

.member-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.member-info {
    padding: 20px;
    text-align: center;
}

.member-name {
    font-size: 1.2em;
    color: #1e293b;
    margin-bottom: 5px;
}

.member-role {
    color: #64748b;
    font-size: 0.9em;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    color: #64748b;
    margin: 0 10px;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #4f46e5;
}

.cta-section {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #4f46e5;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }
    .cards-container {
        grid-template-columns: 1fr;
    }
    .counter-container {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.numero-contact{
    margin-left: 20px;
}
 ul{
    list-style-type: none;
}

.numero-contact ul li{
    margin: 10px;
}
.numero-contact ul li a{
    color: var(--content);
    text-decoration: none;
    margin: 10px;
    padding: 10px;
    transition: 1s ease-in;
}
.numero-contact ul li a:hover{
    color: #fff;
    background-color: var(--title-color);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info {
    padding-right: 50px;
}

.contact-info h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #1e293b;
}

.contact-info p {
    color: var(--secondary);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--title-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: 0.6s ease-in;
}
.contact-icon:hover{
    background-color: black;
}
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1e293b;
    font-weight: 500;
}

.form-group label span {
    color: #ef4444;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.submit-btn {
    background: var(--primary);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding-right: 0;
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
    }
}

/* Moyens écrans (entre 480px et 768px) */
@media (min-width: 480px) and (max-width: 768px) {
    .presention-ecole {
        padding: 15px;
        margin: 30px auto;
    }

    .contenu-presentation h1 {
        font-size: 24px;
    }

    .contenu-presentation h3, .organigramme-title {
        font-size: 20px;
    }
}

/* Responsivité pour les petits écrans (480px et moins) */
@media (min-width:162px) and (max-width: 480px) {
    .presention-ecole {
        padding: 10px;
        margin: 20px auto;
    }

    .contenu-presentation h1 {
        font-size: 20px;
    }

    .contenu-presentation h3 {
        font-size: 18px;
    }

    .schools, .organigramme {
        padding: 10px;
        margin: 20px auto;
    }

    .organigramme-title {
        font-size: 20px;
    }

    .schools img, .organigramme img {
        max-width: 100%;
        background-color: rgba(128, 128, 128, 0.066);
        display: flex;
        flex: 1;
        gap: 2px;
        margin: 10px;
    }
    .contenu-presentation {
        padding: 10px;
    }

    .contenu-presentation h1, .contenu-presentation h3 {
        font-size: 1.2em;
    }
    
    .contenu-presentation p {
        font-size: 0.9em;
    }
}
/* Animation keyframes */
@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate {
    animation: slideUp 0.6s ease forwards;
}

  /* Styles généraux */
 
  .about-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Roboto', sans-serif;
  }

  h2, h3 {
    color: #333;
  }

  /* Section du directeur */
  .director-section {
    margin-bottom: 4rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.382);
  }

  .director-section h2{
    color: blue;
    padding: 20px;
    margin: 10px;
  }
  .director-info {
    display: flex;
    align-items: center;
  }

  .director-info img {
    width: 600px;
    height: 70vh;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .infor-directeur-ecole{
    margin-top: 15%;
  }
  .director-details {
    flex: 1;
    background-color: rgb(158, 0, 0);
    padding: 10px;
    height: 70vh;
  }

  .director-details h3 {
    color:#fff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .director-details p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #c8c7c7;
    font-weight: bolder;
  }

  .directeur-ariere{
        border-radius: 10px;
}

  .email a{
    color: blue;
    text-decoration: none;
    transition: 0.5s ease-in;
    padding: 10px;
  }
  .email a:hover{
    background-color: var(--title-color);
    color: white;
  }


  .contactez-nous{
    background-color: rgba(36, 0, 108, 0.057);
    padding: 20px;
    margin: 20px;
    text-align: center;
    word-spacing: 5px;
    letter-spacing: 3px;
    margin: 70px auto 80px auto;
  }
  .contactez-nous p{
    margin: 10px;
    color: rgb(2, 2, 108);
  }

  /* Section de l'école */
  .school-section {
    margin-bottom: 4rem;
  }

  .school-info-grid {
    text-align: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }

  .school-info-item {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.251);
    position: relative;
    bottom: 80px;
    transition: 0.4s ease-in;
  }
  .school-info-item img{
    width: 100px;
  }

  .school-info-item:hover{
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .school-info-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
  }

  .school-info-item p, .school-info-item li {
    font-size: 1rem;
    line-height: 3;
    color: rgb(86, 80, 80);
  }

  .school-info-item ul {
    list-style-type:none;
    padding-left: 1.5rem;
    text-align: justify;
  }
  .school-info-item ul li::before{
    content: "➤";
    margin-right: 10px;
    color: rgb(0, 0, 125);
  }

  /* Icônes */
  .icon-user-circle, .icon-school, .icon-info, .icon-target, .icon-heart {
    font-size: 1.8rem;
    margin-right: 0.5rem;
    color: #555;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .director-info {
      flex-direction: column;
      text-align: center;
    }


    .director-info img {
      max-width: 200px;
    }
    .presention-ecole {
        flex-direction: column;
        align-items: center;
    }

    .presention-ecole img {
        max-width: 100%; /* Pour les tablettes et petits écrans */
        height: auto;
        object-fit: cover;
    }

    .contenu-presentation h1 {
        font-size: 1.5rem;
    }
  }
.organigramme{
    text-align: center;
    margin-bottom: 10%;
}

/* La section de presentation de l'école */
.presention-ecole{
    background-color: rgba(128, 128, 128, 0.066);
    display: flex;
    flex: 1;
    gap: 2px;
    margin: 40px 20px;
}
.presention-ecole img{
    width: 600px;
    height: 100vh;
    padding: 10px;
    border-radius: 20px 50%;
    box-shadow: 0 10px 20px 1px rgba(220, 0, 0, 0.296);
    opacity: 1;
    transition: 3s;
    transition-delay: 0.4s;
    transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
}
.presention-ecole img:hover{
    border-radius: 20px;
    opacity: 0.9;
}
.image-ecole-visible{
    margin-left: 30px;
    margin-right: 40px;
    border-radius: 20px 50%;
    background-color: rgba(15, 4, 167, 0.217);
    transition: 4s;
    transition-delay: 0.4s;
}
.image-ecole-visible:hover{
    border-radius: 20px;
}
.contenu-presentation{
    padding: 10px 20px;
}
.contenu-presentation h1{
    font-size: 2rem;
    margin: 20px;
    padding: 10px;
}
.contenu-presentation p{
    color: rgb(97, 86, 86);
    line-height: 2;
}
.nous-concernant{
    color: var(--title-color);
    font-size: 1rem;
}
.contenu-presentation h3{
    margin: 10px;
    color: var(--title-color);
    font-size: 0.9rem;
}
.nimba{
    color: var(--title-color);
}
.presentation-footer{
    color: black;
    font-size: 0.8rem;
    margin-top: 40px;
}

/* Organigramme section */
.organigramme-title{
    color: rgb(196, 13, 0);
    margin-top: 50px;
    margin-bottom: 30px;
}

.schools{
    text-align: center;
}