@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
  --bg: #f5f7fa;
  --text: #333;
  --primary: #007acc;
  --accent: #005fa3;
  --gradient: linear-gradient(135deg, #007acc, #005fa3);
}

body {
  margin: 0;
  padding: 20px;
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  text-align: center;
  overflow-x: hidden;
}

h1, h2 {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

header.hero {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  animation: fadeSlide 0.8s ease-out;
}

header.hero h1 {
  color: white;
}

.navbar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  background-color: var(--accent);
  padding: 1rem;
  flex-wrap: wrap;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.navbar a:hover {
  opacity: 0.8;
}

.container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
  animation: fadeSlide 1s ease-out;
}

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

.card {
  background-color: white;
  border: 1px solid #ddd;
  padding: 1.5rem;
  border-radius: 10px;
  width: 250px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeSlide 1s ease-out;
}

.card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

a.card {
  text-decoration: none;
  color: inherit;
}

/* === COMPÉTENCES === */
.competences-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.competence-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 250px;
  transition: transform 0.3s ease;
}

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

.competence-card h3 {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.2rem;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1rem;
}

.skills-grid img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  filter: grayscale(30%);
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.skills-grid img:hover {
  transform: scale(1.15);
  filter: grayscale(0%);
  box-shadow: 0 0 10px rgba(0,122,204,0.6);
}

/* === CERTIFICATIONS === */
.certif-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.certif-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 420px;
  max-width: 100%;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--primary);
}

.certif-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,122,204,0.2);
}

.certif-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.fortinet-logo {
  background: linear-gradient(135deg, #ee3124, #c0392b);
  color: white;
}

.senscyber-logo {
  background: linear-gradient(135deg, #003189, #0052cc);
  color: white;
}

.certif-info h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  color: var(--text);
}

.certif-issuer {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.certif-desc {
  font-size: 0.85rem;
  color: #555;
  margin: 0 0 0.8rem;
  line-height: 1.5;
}

.certif-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.certif-badge.fortinet {
  background: #fde8e7;
  color: #c0392b;
}

.certif-badge.anssi {
  background: #e0e8ff;
  color: #003189;
}
 
.certif-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  transition: background 0.3s ease, color 0.3s ease;
}

.certif-btn:hover {
  background: var(--primary);
  color: white;
}
/* === BTS SIO === */
.sio-options {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.sio-card {
  background: white;
  border-radius: 15px;
  padding: 1.8rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 420px;
  max-width: 100%;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.sio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,122,204,0.2);
}

.sio-card.active-option {
  border: 2px solid var(--primary);
  box-shadow: 0 4px 16px rgba(0,122,204,0.25);
}

.sio-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sio-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.sisr .sio-icon {
  background: linear-gradient(135deg, #007acc, #005fa3);
  color: white;
}

.slam .sio-icon {
  background: linear-gradient(135deg, #27ae60, #1e8449);
  color: white;
}

.sio-header h3 {
  margin: 0 0 0.2rem;
  font-size: 1.4rem;
  color: var(--primary);
}

.slam .sio-header h3 {
  color: #27ae60;
}

.sio-label {
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
}

.my-option-badge {
  margin-left: auto;
  background: linear-gradient(135deg, #007acc, #005fa3);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  white-space: nowrap;
}

.sio-desc {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.sio-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.sio-list li {
  font-size: 0.85rem;
  padding: 0.35rem 0;
  color: #444;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid #f0f0f0;
}

.sio-list li:last-child {
  border-bottom: none;
}

.sisr .sio-list li i {
  color: var(--primary);
}

.slam .sio-list li i {
  color: #27ae60;
}

.sio-metiers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.metier-tag {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-weight: 600;
}

.sisr .metier-tag {
  background: #e6f3fb;
  color: var(--accent);
}

.slam .metier-tag {
  background: #e8f8ee;
  color: #1e8449;
}

/* Footer */
.footer {
  background-color: var(--accent);
  color: white;
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.footer a {
  color: #ffffff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #d0e6ff;
}

/* Animation */
@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Social */
.social-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-links a {
  font-size: 2rem;
  color: var(--primary);
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.2);
  color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 0.5rem;
  }

  .navbar a {
    padding: 0.5rem;
    display: block;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .container p,
  .container ul {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }

  .competences-sections {
    flex-direction: column;
    align-items: center;
  }

  .competence-card {
    width: 90%;
  }

  .certif-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 90%;
  }

  .sio-options {
    flex-direction: column;
    align-items: center;
  }

  .sio-card {
    width: 90%;
  }

  .sio-header {
    flex-wrap: wrap;
  }

  .my-option-badge {
    margin-left: 0;
  }
}