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

/* ===================================================================
   1. FONDATIONS & VARIABLES GLOBALES
   =================================================================== */
:root {
  --primary-color: black;
  --primary-hover: #0097a7;
  --text-dark: #212529;
  --text-light: #FFFFFF;
  --text-muted: #6c757d;
  --background-light: #FFFFFF;
  --background-gray: #f8f9fa;
  --background-dark: #121212;
  --border-color: #dee2e6;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lato", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
  overflow-x: hidden;
}
/* Loader Overlay */
#loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(3px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Loader Cercle */
.loader {
  width: 60px;
  height: 60px;
  border: 6px solid #ddd;
  border-top-color: #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Modal Overlay */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Modal Visible */
.modal.show {
  display: flex;
  opacity: 1;
}

/* Modal Content */
.modal-content {
  background: #fff;
  padding: 25px 35px;
  border-radius: 12px;
  text-align: center;
  min-width: 280px;
  transform: scale(0.7);
  transition: transform 0.3s ease;
}

/* Modal Visible Animation */
.modal.show .modal-content {
  transform: scale(1);
}

/* Button */
.modal-content button {
  margin-top: 15px;
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  background-color: #3498db;
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.text-accent,.text-about-blue {
  color: var(--primary-color);
}

/* ===================================================================
   2. NAVBAR
   =================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  z-index: 10000;
  transition: padding 0.3s ease, background 0.25s ease;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
}
.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  position: relative;
  z-index: 10001;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  cursor: pointer;
  z-index: 10002;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 25px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ===================================================================
   NAVBAR MOBILE
   =================================================================== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
  }

  .hamburger span {
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.25s ease;
  }
  .hamburger.open span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.07);
    padding: 0.75rem 0;
    gap: 1rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(.2,.9,.2,1), opacity 0.28s ease;
    z-index: 9999;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    padding: 1rem 0;
  }

  .btn-primary {
    display: none;
  }
}

/* ===================================================================
   3. SECTION HERO
   =================================================================== */
#hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0;
  text-align: center;
  color: var(--text-light);
  background-image: url('/Skill-match/images/internship-bg-1.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}


.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-top:80px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto 2.5rem auto;
  max-width: 1000px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-block;
  padding: 12px 30px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.hero-btn.primary-btn {
  background-color: white;
  color: var(--text-dark);
}
.hero-btn.primary-btn:hover {
  background-color: black;
  color: var(--text-light);
  transform: translateY(-3px);
}

.hero-btn.secondary-btn {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}
.hero-btn.secondary-btn:hover {
  background-color: var(--text-light);
  color: var(--text-dark);
  transform: translateY(-3px);
}

/* ===================================================================
   4. SECTION ABOUT
   =================================================================== */
#about {
  position: relative;
  padding: 100px 5%;
  text-align: center;
  color: var(--text-dark);
  background: url('/Skill-match/images/internship-bg-4.jpg') center/cover no-repeat;
  overflow: hidden;
}

#about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.836); /* léger overlay noir */
  z-index: 1; /* reste sous le contenu */
}

#about .section-title,
.about-description,
.about-features-grid {
  position: relative;
  z-index: 2; /* contenu au dessus de l’overlay */
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark); /* plus visible sur overlay noir léger */
  max-width: 800px;
  margin: 0 auto 4rem auto;
  text-align: center;
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 2.2rem;
  background-color: rgba(0, 187, 212, 0.034);
}

.feature-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.feature-item p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}
@media (max-width:500px)  {
  .about-features-grid {
    display: flex;             /* essentiel pour que justify-content fonctionne */
    flex-direction: row;       /* garde la disposition en ligne */
    flex-wrap: wrap;           /* permet aux items de passer à la ligne si nécessaire */
    justify-content: center;   /* centre les items horizontalement */
    gap: 1rem;                 /* réduit l'espace entre eux */
    padding: 0 10px;           /* évite que le texte touche les bords */
  }

  .feature-item {
    max-width: 300px;          /* limite la largeur de chaque item */
    text-align: center;        /* centre le texte dans l'item */
    margin: 0;                 /* supprime les marges inutiles */
  }

  .feature-item p {
    font-size: 0.9rem;         /* texte plus lisible */
    line-height: 1.4;
  }

  .feature-item h3 {
    font-size: 1.1rem;         /* titre adapté */
  }
}


/* ===================================================================
   5. SECTIONS AVEC CARTES
   =================================================================== */
#focus-areas, #testimonials, #faq {
  background-color: var(--background-gray);
}
#team, #contact-apply {
  background-color: var(--background-light);
}

.focus-card, .team-card, .testimonial-card {
  background: var(--background-light);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.focus-card:hover, .team-card:hover, .testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* --- SECTION FOCUS AREAS UPDATED --- */
#focus-areas {
  position: relative;
  padding: 100px 5%;
  text-align: center;
  color: var(--text-dark);
  background: url('/Skill-match/images/internship-bg-3.jpg') center/cover no-repeat;
  overflow: hidden;
}
#focus-areas::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 0;
}
#focus-areas * { position: relative; z-index: 1; }
#focus-areas .section-title { font-size: 2.5rem; margin-bottom: 10px; font-weight: 700; }
#focus-areas .section-subtitle { font-size: 1.1rem; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; color: var(--text-dark); }
.focus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; justify-content: center; align-items: stretch; }
.focus-card {
  background: transparent;
  border-radius: 16px;
  padding: 30px 20px;
  transition: all 0.3s ease;
  text-align: center;
}
.focus-card:hover { transform: translateY(-5px);
  cursor: pointer; }
.card-icon-wrapper { font-size: 2rem; color: var(--text-dark); margin-bottom: 15px; transition: color 0.3s ease, transform 0.3s ease; }
.focus-card:hover .card-icon-wrapper { color: var(--primary-color); transform: scale(1.2); }
.focus-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.focus-card ul { list-style: none; padding: 0; text-align: left; display: inline-block; }
.focus-card ul li { color: var(--text-muted); margin-bottom: 0.5rem; position: relative; padding-left: 20px; }
.focus-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--primary-color); font-weight: 600; }
.cta-card { background: var(--background-light); color: var(--background-dark); }
.cta-card h3, .cta-card p { color: var(--background-dark); }
.cta-card .card-icon-wrapper { background:transparent; color: var(--text-light); }
.btn-cta { background-color: var(--text-light); color: var(--background-dark); border: 2px solid black; padding: 10px 25px; border-radius: 50px; text-decoration: none; font-weight: 700; margin-top: 1rem; display: inline-block; transition: transform 0.3s ease; }
.btn-cta:hover { transform: scale(1.05);
color: #000000;
}

.card-icon-wrapper i {
  font-size: 1.8rem;
  font-weight: 10;
  color: #333;
}
.focus-card:hover .card-icon-wrapper i {
  color: #00BCD4; /* bleu */
}


.cta-card:hover .card-icon-wrapper {
  color: #000000; /* icône devient noire */
  transform: scale(1.2); /* garde l’effet de zoom */
}
.focus-card ul li:hover,.card-icon-wrapper i:hover {
  color: #00BCD4;
 
}

/* --- Section Team --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.team-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 1.5rem; border: 4px solid var(--border-color); }
.team-info h3 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.team-role { color: var(--primary-color); font-weight: 500; }

/* --- Section Testimonials --- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; }
.testimonial-text { font-style: italic; color: var(--text-muted); margin-bottom: 1rem; }
.testimonial-author h4 { font-size: 1.1rem; margin: 0; }
.testimonial-author span { font-size: 0.9rem; color: var(--text-muted); }

/* --- Section FAQ --- */
.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--background-light); border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem; cursor: pointer; font-size: 1.1rem; font-weight: 600; }
.faq-toggle { font-size: 1.5rem; color: var(--primary-color); transition: transform 0.3s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-answer p { padding: 0 1.25rem 1.25rem; color: var(--text-muted); }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-item.active .faq-answer { max-height: 200px; }

/* ===================================================================
   6. SECTION CONTACT
   =================================================================== */
/* ===================== Contact / Apply Section ===================== */
#contact-apply {
  padding: 5rem 0;
  background-color: var(--background-light);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: flex-start;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-left h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-left p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-divider {
  border: none;
  height: 3px;
  width: 50px;
  background: var(--primary-color);
  margin: 1.5rem 0 2rem 0;
}

.contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0;
}

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

.contact-info i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.contact-right {
  background: var(--background-light);
  padding: 1.6rem;
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.apply-form h3 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.apply-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.apply-form input,
.apply-form select,
.apply-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--background-light);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

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

.btn-submit {
  width: 30%;
  padding: 15px;
  border: none;
  border-radius: 50px;
  background: var(--primary-color);
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-5px);
  color: var(--text-dark);
}
@media (max-width: 768px) {
  .btn-submit {
    width: 100%;
    height: 50px;
    font-size: medium;
    
  } 
}
/*==============================================================
   FOOTER
   =================================================================== */
.footer {
  background-color: #ffffff00; /* fond blanc */
  color: #000000;            /* texte noir */
  margin: 0;
  padding: 3rem 0.5rem 1rem;   /* haut / côtés / bas */
}

/* Container des colonnes */
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* aligné à gauche */
  align-items: flex-start;
  gap: 2rem;                  /* espace entre colonnes */
  width: 100%;                /* prend toute la largeur */
  max-width: 1200px;
  margin: 0;                  /* pas de centrage automatique */
  padding: 0;                 /* pas d’espace interne */
}

/* Supprime tout padding/margin interne pour Quick Links */
.footer-links {
  margin: 0;
  padding: 0;
}

/* Titres des colonnes */
.footer-links h3,
.footer-contact h3,
.footer-column h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #000000;
}

/* Liste de liens */
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  display: inline-block;  /* nécessaire pour border-bottom */
  padding-bottom: 2px;    /* espace pour le soulignement */
  color: #000000;          /* texte noir */
  text-decoration: none;   /* supprime trait soulignement par défaut */
  transition: border-bottom 0.3s ease, color 0.3s ease;
}

.footer-links ul li a:hover {

  cursor: pointer;
}



/* Icônes sociales */
.footer-column .social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.social-icons a{
  text-decoration: none;
}
.footer-column .social-icons a {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: #000000;          /* icônes noires */
  transition: background 0.3s ease, transform 0.3s ease;
  background: transparent;  /* fond transparent */
}

.footer-column .social-icons a:hover {
  transform: translateY(-4px);
}

/* Partie du bas */
.footer-bottom {
  text-align: center;
  padding: 0.5rem 0;
  margin: 0;
  color: #000000;
  border-top: 1px solid #ddd; /* séparation discrète */
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start; /* aligne au début */
    width: 100%;
  }
  

  .footer-links,
  .footer-contact,
  .footer-column {
    margin-left: 0;
    padding-left: 0;
    justify-content: center; /* ✅ centre les icônes sur mobile */
  }

  .footer {
    padding-bottom: 0; /* enlève le vide bas */
  }

  .footer-bottom {
    margin-top: 0; /* colle parfaitement */
  }
}


/* ================================
   MEDIA QUERIES GLOBAL (inchangées)
================================ */
@media (max-width: 1024px) {
  .contact-container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  #hero .hero-content h1 { font-size: 2.5rem; }
  #hero .hero-content p { font-size: 1rem; }
  #focus-areas { padding: 70px 3%; }
  .focus-card { padding: 25px 15px; }
}
