/* ------------------------------ */
/* CYBER SECURITY DESIGN - Orange/Yellow Variant */
/* ------------------------------ */

:root {
  --dark-bg: #0a0a0a;
  --darker-bg: #1a1a1a;
  --medium-bg: #2a2a2a;
  --orange-primary: #FF8C00;
  --orange-light: #FFB84D;
  --orange-accent: #FFA500;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #999999;
  --border-color: #3a3a3a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Hanken Grotesk', 'Segoe UI', sans-serif;
  background-color: var(--dark-bg);
  background-image: 
    linear-gradient(0deg, transparent 24%, rgba(255, 140, 0, 0.05) 25%, rgba(255, 140, 0, 0.05) 26%, transparent 27%, transparent 74%, rgba(255, 140, 0, 0.05) 75%, rgba(255, 140, 0, 0.05) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(255, 140, 0, 0.05) 25%, rgba(255, 140, 0, 0.05) 26%, transparent 27%, transparent 74%, rgba(255, 140, 0, 0.05) 75%, rgba(255, 140, 0, 0.05) 76%, transparent 77%, transparent);
  background-size: 50px 50px;
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
}

/* Subtle animated lines */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange-primary), transparent);
  animation: scanlines 8s linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(100vh); }
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

/* ------------------------------ */
/* HEADER & NAVIGATION */
/* ------------------------------ */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: linear-gradient(135deg, var(--darker-bg) 0%, var(--medium-bg) 100%);
  border-bottom: 2px solid var(--orange-primary);
  box-shadow: 0 4px 20px rgba(255, 140, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .logo::before {
  content: '🔒';
  font-size: 24px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

header .logo img {
  max-height: 60px;
  width: auto;
  filter: brightness(1.1);
}

/* NAVIGATION */

nav {
  display: flex;
  gap: 30px;
  align-items: center;
  flex: 1;
  margin-left: 60px;
}

nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1em;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange-primary);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--orange-light);
}

nav a:hover::after {
  width: 100%;
}

.menu-item {
  position: relative;
}

.menu-link {
  cursor: pointer;
  display: inline-block;
  font-weight: 500;
  font-size: 1em;
  color: var(--text-primary);
  transition: color 0.3s ease;
  position: relative;
}

.menu-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange-primary);
  transition: width 0.3s ease;
}

.menu-item:hover .menu-link {
  color: var(--orange-light);
}

.menu-item:hover .menu-link::after {
  width: 100%;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(135deg, var(--darker-bg) 0%, var(--medium-bg) 100%);
  border-left: 3px solid var(--orange-primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  list-style: none;
  padding: 10px 0;
  margin: 10px 0 0 0;
  z-index: 999;
  min-width: 180px;
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.submenu li a {
  color: var(--text-secondary);
  padding: 12px 20px;
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 20px;
}

.submenu li a::before {
  content: '▸';
  position: absolute;
  left: 8px;
  color: var(--orange-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.submenu li a:hover {
  background: rgba(255, 140, 0, 0.1);
  color: var(--orange-light);
  padding-left: 30px;
}

.submenu li a:hover::before {
  opacity: 1;
}

.menu-item:hover .submenu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.arrow {
  margin-left: 5px;
  font-size: 0.8em;
}

/* Contact Button */

.mail-button {
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-accent) 100%);
  color: #000;
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid var(--orange-light);
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.mail-button::before {
  content: '📧';
  margin-right: 8px;
}

.mail-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 140, 0, 0.5);
}

.mail-button:active {
  transform: translateY(-1px);
}

/* ------------------------------ */
/* MAIN CONTENT */
/* ------------------------------ */

main {
  flex-grow: 1;
  padding: 60px 40px;
  background: var(--dark-bg);
}

/* HOME PAGE */

body.home main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
  position: relative;
}

.hero {
  text-align: center;
  max-width: 900px;
  z-index: 3;
}

.hero h1 {
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  animation: fadeInDown 0.8s ease-out;
}

.hero .subtitle {
  font-size: 1.5em;
  color: var(--text-secondary);
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero .tagline {
  font-size: 1.1em;
  color: var(--text-muted);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero .cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-accent));
  color: #000;
  padding: 14px 40px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.3);
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 140, 0, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--orange-primary);
  padding: 14px 40px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--orange-primary);
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-secondary:hover {
  background: rgba(255, 140, 0, 0.1);
  transform: translateY(-5px);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* BACKGROUND MAP */

.background-map {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.15;
}

.background-map iframe {
  position: absolute;
  top: -72px;
  left: 0;
  width: 100%;
  height: calc(100% + 144px);
  border: 0;
}

body.qui-suis-je .background-map,
body.formations-page .background-map {
  display: none;
}

/* ------------------------------ */
/* QUI SUIS-JE PAGE */
/* ------------------------------ */

body.qui-suis-je header {
  padding: 10px 40px;
}

.intro {
  margin-bottom: 50px;
  animation: fadeInUp 0.8s ease-out;
}

.intro h1 {
  font-size: 2.8em;
  color: var(--orange-primary);
  margin-bottom: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
  position: relative;
  padding-bottom: 20px;
}

.intro h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange-primary), transparent);
}

.intro p {
  max-width: 900px;
  margin: 0 auto 20px auto;
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: justify;
  font-size: 1.05em;
}

/* COMPETENCES */

.competences {
  margin-top: 60px;
}

.cv-button {
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-accent));
  color: #000;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
  display: block;
  width: fit-content;
  margin: 30px auto 50px auto;
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.3);
  transition: all 0.3s ease;
  border: 2px solid var(--orange-primary);
}

.cv-button::before {
  content: '📄 ';
}

.cv-button:hover {
  background: linear-gradient(135deg, var(--orange-light), var(--orange-primary));
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 140, 0, 0.5);
}

.competences h2 {
  font-size: 2.2em;
  margin-bottom: 30px;
  color: var(--orange-primary);
  text-align: center;
  font-weight: 700;
  position: relative;
  padding-bottom: 20px;
}

.competences h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange-primary), transparent);
}

.competences table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.competences th,
.competences td {
  border: 1px solid var(--border-color);
  padding: 18px 20px;
  text-align: left;
}

.competences th {
  background: linear-gradient(135deg, var(--medium-bg) 0%, var(--darker-bg) 100%);
  color: var(--orange-primary);
  font-weight: 700;
  border-bottom: 2px solid var(--orange-primary);
  text-transform: uppercase;
  font-size: 0.95em;
  letter-spacing: 1px;
}

.competences td {
  color: var(--text-secondary);
  background: rgba(255, 140, 0, 0.02);
  transition: all 0.3s ease;
}

.competences tr:hover td {
  background: rgba(255, 140, 0, 0.08);
  border-color: var(--orange-primary);
}

.competences td:first-child {
  color: var(--orange-light);
  font-weight: 600;
  width: 150px;
}

/* ------------------------------ */
/* MON PARCOURS PAGE */
/* ------------------------------ */

body.formations-page main {
  padding: 60px 20px;
  background: var(--dark-bg);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.formations-certifs {
  text-align: left;
  color: var(--text-secondary);
  padding: 0 20px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.formations-certifs section {
  margin-bottom: 50px;
  animation: fadeInUp 0.8s ease-out;
}

.formations-certifs h2 {
  font-size: 2.2em;
  margin-bottom: 30px;
  color: var(--orange-primary);
  border-left: 4px solid var(--orange-primary);
  padding-left: 20px;
  font-weight: 700;
  position: relative;
}

.formations-certifs h2::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, var(--orange-primary), transparent);
  transform: translateY(-50%);
}

.formations-certifs .item {
  margin-bottom: 35px;
  padding: 20px;
  border-left: 3px solid var(--orange-primary);
  background: rgba(255, 140, 0, 0.03);
  border-radius: 0 4px 4px 0;
  transition: all 0.3s ease;
}

.formations-certifs .item:hover {
  background: rgba(255, 140, 0, 0.08);
  border-left-width: 5px;
  transform: translateX(5px);
}

.formations-certifs .item h3 {
  color: var(--orange-light);
  margin-bottom: 8px;
  font-size: 1.2em;
  font-weight: 700;
}

.formations-certifs .item p {
  font-style: italic;
  margin-bottom: 15px;
  color: var(--text-muted);
  font-size: 0.95em;
}

.formations-certifs .item ul {
  list-style-type: none;
  margin-left: 0;
  color: var(--text-secondary);
}

.formations-certifs .item li {
  margin: 8px 0 8px 20px;
  position: relative;
  padding-left: 15px;
}

.formations-certifs .item li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--orange-primary);
  font-weight: bold;
}

.certifications ul {
  list-style-type: none;
  margin-left: 0;
}

.certifications a {
  color: var(--orange-light);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}

.certifications a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange-light);
  transition: width 0.3s ease;
}

.certifications a:hover {
  color: var(--orange-primary);
}

.certifications a:hover::after {
  width: 100%;
}

/* ------------------------------ */
/* FOOTER */
/* ------------------------------ */

footer {
  background: linear-gradient(135deg, var(--darker-bg) 0%, var(--medium-bg) 100%);
  color: var(--text-secondary);
  padding: 30px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-top: auto;
  border-top: 2px solid var(--orange-primary);
  box-shadow: 0 -4px 20px rgba(255, 140, 0, 0.1);
}

footer span {
  font-size: 0.95em;
  font-weight: 500;
}

.linkedin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 140, 0, 0.1);
  border: 2px solid var(--orange-primary);
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.linkedin-button i {
  font-size: 20px;
  color: var(--orange-primary);
  transition: all 0.3s ease;
}

.linkedin-button:hover {
  background: var(--orange-primary);
  transform: translateY(-5px);
}

.linkedin-button:hover i {
  color: #000;
}

/* ------------------------------ */
/* RESPONSIVE */
/* ------------------------------ */

@media (max-width: 1024px) {
  header {
    flex-direction: column;
    gap: 20px;
  }

  nav {
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.5em;
  }

  .intro h1 {
    font-size: 2.2em;
  }

  .competences h2 {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }

  nav {
    gap: 15px;
    font-size: 0.9em;
  }

  main {
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 2em;
  }

  .hero .subtitle {
    font-size: 1.2em;
  }

  .hero .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
  }

  .intro h1 {
    font-size: 1.8em;
  }

  .intro p {
    text-align: left;
    font-size: 1em;
  }

  .competences table {
    font-size: 0.9em;
  }

  .competences th,
  .competences td {
    padding: 12px 10px;
  }

  .formations-certifs h2 {
    font-size: 1.6em;
  }

  .formations-certifs .item {
    padding: 15px;
  }

  footer {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 12px 15px;
  }

  header .logo img {
    max-height: 50px;
  }

  .mail-button {
    padding: 8px 16px;
    font-size: 0.9em;
  }

  nav {
    gap: 10px;
    font-size: 0.85em;
  }

  main {
    padding: 30px 15px;
  }

  .hero h1 {
    font-size: 1.5em;
  }

  .hero .subtitle {
    font-size: 1em;
  }

  .intro h1 {
    font-size: 1.5em;
  }

  .competences table {
    font-size: 0.8em;
  }

  .competences th,
  .competences td {
    padding: 8px 5px;
  }
}
