.search-container {
    position: relative;
    margin-bottom: 20px;
    width: 100%; /* Permet au conteneur de prendre toute la largeur disponible */
}

/* Conteneur pour le champ de recherche et le bouton */
.search-container > div {
    display: flex;
    align-items: center; /* Aligne verticalement les éléments */
}

/* Style du champ de recherche */
#recherche {
    flex-grow: 1; /* Permet au champ de recherche de prendre l'espace disponible */
    padding: 12px 20px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: border-color 0.3s ease;
    margin-right: 10px; /* Ajoute un espace entre le champ et le bouton */
}

#recherche:focus {
    border-color: #007bff;
}

/* Style du bouton de recherche */
#boutonRecherche {
    padding: 12px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#boutonRecherche:hover {
    background-color: #0056b3;
}


/* carrousel capture d ecran*/


.dav {
  font-size: 4rem;
  text-align: center;
  color: black;
  margin-top: 50px;
  margin-bottom: 20px;
}


.arial {
  font-size: 2rem;
  text-align: center;
  color: rgba(105, 105, 105, 0.839);
  margin-bottom: 20px;
}
.carousel-container {
  max-width: 50px;
  margin: 0 auto;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-image: url('AFRAM-SCHOOL copie/connect_academie/fond1.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
}

.slide img {
  width: 50%;
  height: auto;
  object-fit: cover;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.dot.active {
  background-color: #fff;
}


/* ===== SECTION MARQUE (CONNECT'ACADEMIA) ===== */
.branding-section {
    padding: 80px 20px;
    background-color: #f7f8fa; /* Un fond neutre pour faire ressortir la section */
}

.branding-container {
    display: flex;
    max-width: 1300px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* --- Colonne de gauche (image) --- */
.product-panel {
    flex: 6; /* Donne 60% de la largeur */
    background-color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.product-panel img {
    max-width: 90%;
    transform: rotate(-10deg); /* Légère rotation pour un effet dynamique */
}

/* --- Colonne de droite (logo) --- */
.logo-panel {
    flex: 4; /* Donne 40% de la largeur */
    background-color: #5A4BFF; /* Un bleu-violet vif comme sur l'image */
    padding: 60px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.logo-panel h2 {
    font-family: 'Fredoka', sans-serif; /* Police arrondie */
    font-size: clamp(32px, 6vw, 64px); /* Taille de police responsive */
    font-weight: 600;
    color: white;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap; /* Empêche le nom de passer à la ligne */
}

/* Effet de fondu avec différentes opacités */
.logo-panel h2:nth-child(1) { opacity: 0.4; }
.logo-panel h2:nth-child(2) { opacity: 0.6; }
.logo-panel h2:nth-child(3) { opacity: 1; } /* Le plus visible au centre */
.logo-panel h2:nth-child(4) { opacity: 0.6; }
.logo-panel h2:nth-child(5) { opacity: 0.4; }

.logo-panel sup {
    font-size: 0.25em; /* Rend le TM beaucoup plus petit */
    vertical-align: super;
    margin-left: 4px;
}

.secure-payment {
    text-align: center;
    font-size: 2rem;
    margin-top: 35px;
    color: darkgray;
}

/* --- Responsive pour cette section --- */
@media (max-width: 900px) {
    .branding-container {
        flex-direction: column;
    }
    .product-panel img {
        transform: rotate(0deg); /* On retire la rotation sur mobile */
        max-width: 70%;
        margin: 40px 0;
    }
    .logo-panel {
        padding: 40px 20px;
    }
    .logo-panel h2 {
        white-space: normal; /* Autorise le passage à la ligne sur petit écran */
    }
}

/* ===== SECTION SOCIAL MEDIA ===== */
.social-media-section {
    background-color: #F3F4F6; /* Le fond gris très clair */
    padding: 120px 20px;
    font-family: 'Inter', sans-serif; /* Assure la cohérence de la police */
}

.social-media-container {
    max-width: 1280px;
    margin: 0 auto;
}

/* --- En-tête de la section --- */
.section-intro {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Colonne gauche plus petite */
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 60px;
}

.intro-left .about-pill {
    display: inline-block;
    background-color: #1F2937; /* Noir/gris foncé */
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.intro-left h2 {
    font-size: 52px;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}

.intro-right p {
    font-size: 16px;
    color: #4B5563; /* Gris un peu plus clair pour le texte */
    line-height: 1.7;
    max-width: 600px;
}

/* --- Grille des publications --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E5E7EB; /* Bordure très subtile */
    overflow: hidden; /* Pour que l'image respecte les coins arrondis */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.post-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    gap: 12px;
}

.post-header img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.post-header span {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.post-image img {
    width: 100%;
    display: block; /* Évite les espaces indésirables sous l'image */
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
}

.action-icons-left {
    display: flex;
    gap: 16px;
}

.post-footer i {
    font-size: 24px;
    color: #374151;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.post-footer i:hover {
    transform: scale(1.1);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
    }
}

@media (max-width: 768px) {
    .section-intro {
        grid-template-columns: 1fr; /* Les colonnes de l'intro s'empilent */
        gap: 30px;
    }
    .intro-left h2 {
        font-size: 42px;
    }
    .posts-grid {
        grid-template-columns: 1fr; /* 1 seule colonne sur mobile */
    }
}

 /* --- Styles pour la Section d'Avis --- */

/* Conteneur principal qui centre le formulaire */
.review-section-container {
    background-color: #FAF9F3; /* Fond crème très clair, comme sur l'image */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* La boîte blanche qui contient le formulaire */
.review-form-wrapper {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    max-width: 650px;
    width: 100%;
}

.review-form-wrapper h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1E293B; /* Un bleu-noir très foncé */
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #374151; /* Gris foncé */
    margin-bottom: 12px;
}

.form-group .required {
    color: #EF4444; /* Rouge pour l'astérisque */
}

/* Style pour les étoiles */
.star-rating {
    display: flex;
    gap: 12px;
}

.star {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #F3F4F6; /* Gris clair par défaut */
    color: #6B7280; /* Gris moyen pour l'icône */
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.star:hover {
    transform: scale(1.1);
}

/* Style pour les étoiles sélectionnées (géré par JS) */
.star.selected {
    background-color: #8C52FF; /* Jaune doré */
    color: #ffffff;
}

/* Style pour les champs de texte */
#reviewer-name,
#review-text {
    width: 100%;
    padding: 14px;
    border: 1px solid #D1D5DB; /* Bordure grise */
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#reviewer-name:focus,
#review-text:focus {
    outline: none;
    border-color: #8C52FF; /* Vert du bouton */
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

#review-text {
    resize: vertical; /* Permet de redimensionner verticalement */
}

/* Style pour le bouton d'envoi */
button[type="submit"] {
    width: 100%;
    padding: 16px;
    background-color: #8C52FF; /* Vert vif */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease-in-out;
}

button[type="submit"]:hover {
    background-color: #8C52FF; /* Vert un peu plus foncé */
}


/* --- Section Présentation UIL --- */
.presentation-section {
    padding: 100px 5%;
    background-color: var(--color-white);
}

.presentation-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: flex-start; /* Aligne le haut des colonnes */
}

/* Colonne de gauche : Vidéo */
.video-column {
    flex: 1;
}

.video-wrapper {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden; /* Pour que la vidéo respecte les coins arrondis */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-wrapper video {
    width: 100%;
    display: block; /* Supprime l'espace sous la vidéo */
}

.btn-ememoire {
    background-color: var(--color-yellow);
    color: var(--color-dark-blue);
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    display: inline-block;
    transition: opacity 0.3s ease;
}
.btn-ememoire:hover {
    opacity: 0.9;
}

/* Colonne de droite : Contenu */
.content-column {
    flex: 1;
}

.content-column h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #004AAD;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}
.content-column h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--color-yellow);
}

.content-column p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 2rem;
}