/*
  Clé Rouge Landing Page Styles
  Palette :
    - Fond : #111 (noir profond)
    - Clé : #B11226 (rouge carmin)
    - Texte : #F5F5F5 (blanc cassé), #CCC (gris clair)
  Typographies :
    - Titres : 'Playfair Display', serif
    - Corps : 'Inter', sans-serif
*/

:root {
  --background: #111;
  --key-red: #B11226;
  --text-main: #F5F5F5;
  --text-secondary: #CCC;
  --accent: #B11226;
  --card-bg: #181818;
  --border: #333;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text-main);
  font-family: 'Syne', Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

h1, h2, h3, .slogan {
  font-family: 'Orbitron', 'Syne', Arial, sans-serif;
  color: var(--text-main);
  margin-top: 0;
  letter-spacing: 0.05em;
}

h1 {
  font-size: 3rem;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 16px #000;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.5em;
}

h3 {
  font-size: 1.2rem;
  color: var(--accent);
}

p, a, button, input, textarea {
  font-family: 'Syne', Arial, sans-serif;
  color: var(--text-secondary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #fff;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2em 1em;
}

@media (min-width: 1500px) {
  .container {
    max-width: 1200px;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #111 80%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}
.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}
.logo-placeholder {
  width: 240px;
  height: 240px;
  object-fit: contain;
  margin-bottom: 1.5em;
  /* filter: grayscale(1) brightness(0.7); */
  opacity: 0.8;
}
.slogan {
  font-size: 1.3rem;
  margin-bottom: 1.5em;
  color: var(--text-secondary);
  font-style: italic;
}
.key-halo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2em;
  position: relative;
}
.key-icon {
  font-size: 2.5rem;
  color: var(--key-red);
  filter: drop-shadow(0 0 16px #B11226cc);
  animation: haloPulse 2.5s infinite alternate;
}
@keyframes haloPulse {
  0% { filter: drop-shadow(0 0 8px #B11226cc); }
  100% { filter: drop-shadow(0 0 32px #B11226cc); }
}
.scroll-btn {
  background: var(--key-red);
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 0.9em 2.2em;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 16px #B1122640;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  margin-top: 1em;
  position: relative;
  overflow: hidden;
}
.scroll-btn:hover, .scroll-btn:focus {
  background: #d81b3a;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 32px #B11226cc;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* About Section */
.about {
  background: #181818;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about h2 {
  color: var(--accent);
}

/* Projects Section */
.projects {
  background: var(--background);
}
.project-cards {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: stretch;
  margin-left: auto;
  margin-right: auto;
}
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5em 1em;
  width: 32%;
  min-width: 240px;
  max-width: 340px;
  height: 340px;
  box-shadow: 0 2px 16px #0004;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 2em;
}
.project-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px #B1122620;
}
.project-image {
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 120px;
  background: repeating-linear-gradient(135deg, #222, #222 10px, #191919 10px, #191919 20px);
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  margin-bottom: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.projects h2 {
  color: var(--accent);
  font-family: 'Orbitron', 'Syne', Arial, sans-serif;
  font-size: 2rem;
  margin-bottom: 0.5em;
  letter-spacing: 0.04em;
}

/* Contact Section */
.contact {
    background: var(--background);
  border-top: 1px solid var(--border);
}
.contact h2 {
  color: var(--accent);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-bottom: 1em;
}
.contact-form input,
.contact-form textarea {
  background: #222;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8em;
  color: var(--text-main);
  font-size: 1rem;
  resize: none;
  transition: border 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border: 1.5px solid var(--accent);
  outline: none;
}
.contact-form button {
  background: var(--key-red);
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 0.8em 2em;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 16px #B1122640;
}
.contact-form button:hover, .contact-form button:focus {
  background: #d81b3a;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 32px #B11226cc;
}
.mailto-link {
  display: inline-block;
  margin-top: 0.5em;
  color: var(--accent);
  font-size: 1rem;
  text-decoration: underline;
  transition: color 0.2s;
}
.mailto-link:hover {
  color: #fff;
}

/* Qui suis-je ? Section */
.about-me {
  background: #181818;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-top: 3em;
  padding-bottom: 3em;
}
.about-me h2 {
  color: var(--accent);
  margin-bottom: 1.5em;
}
.about-me-content {
   display: flex;
  flex-direction: row;
  /*align-items: flex-start;
  gap: 3.5em;
  flex-wrap: nowrap;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative; */
}
.portrait-placeholder {
  width: 260px;
  height: 320px;
  border-radius: 18px;
  object-fit: cover;
  background: repeating-linear-gradient(135deg, #222, #222 10px, #191919 10px, #191919 20px);
  border: 2px solid var(--key-red);
  box-shadow: 0 4px 32px #B1122610;
  margin-bottom: 0;
  margin-right: 2.5em;
  flex-shrink: 0;
}
.about-me-text {
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 700px;
  min-width: 220px;
  flex: 1 1 0;
}
.about-me-text h3 {
  margin-top: 0;
  color: var(--text-main);
  font-size: 1.3rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.5em;
}
.about-me-text p {
  color: var(--text-secondary);
  margin-bottom: 1.2em;
}
.social-link {
  color: var(--accent);
  text-decoration: underline dotted;
  margin: 0 0.2em;
  transition: color 0.2s;
}
.social-link:hover {
  color: #fff;
  text-decoration: underline;
}

.about-me-text-below {
  width: 100%;
  max-width: 900px;
  /* margin: 0 auto 0 auto; */
  display: block;
}
@media (max-width: 700px) {
  .about-me-text-below {
    margin-top: 1.2em;
    text-align: center;
    max-width: 100%;
  }
}

/* Responsive Design */
@media (max-width: 900px) {
  .container {
    padding: 2em 0.5em;
  }
  .project-cards {
    gap: 1em;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-left: auto;
    margin-right: auto;
  }
  .project-card {
    width: 48%;
    min-width: 180px;
    max-width: 100%;
    height: 300px;
  }
  .about-me-content {
    max-width: 98vw;
    gap: 2em;
  }
  .portrait-placeholder {
    width: 180px;
    height: 220px;
    margin-right: 1.2em;
  }
  .about-me-text {
    max-width: 100%;
  }
}
@media (max-width: 1000px) {
  .about-me-content {
    max-width: 98vw;
  }
  .about-me-text {
    max-width: 100%;
  }
}
@media (max-width: 700px) {
  h1 {
    font-size: 2.1rem;
  }
  .hero-content {
    padding: 0 0.5em;
  }
  .project-cards {
    flex-direction: column;
    align-items: center;
  }
  .project-card {
    width: 100%;
    min-width: 0;
  }
  .about-me-content {
    flex-direction: column;
    align-items: center;
    max-width: 100vw;
    gap: 1.2em;
  }
  .portrait-placeholder {
    width: 120px;
    height: 150px;
    margin-right: 0;
    margin-bottom: 1em;
    border-radius: 12px;
  }
  .about-me-text {
    max-width: 100%;
    text-align: center;
    flex: unset;
  }
  .logo-placeholder {
    width: 140px;
    height: 140px;
  }
  .container {
    max-width: 100vw;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.7em;
    padding-right: 0.7em;
    box-sizing: border-box;
  }
  .project-cards {
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
    overflow-x: hidden;
    margin-left: auto;
    margin-right: auto;
    flex-direction: column;
    align-items: center;
    gap: 1em;
  }
  .project-card {
    width: 100%;
    min-width: 0;
    max-width: 700px;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    height: auto;
  }
}
@media (max-width: 500px) {
  .logo-placeholder {
    width: 100px;
    height: 100px;
  }
  .container {
    padding: 1em 0.7em;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    margin-left: auto;
    margin-right: auto;
  }
  .projects .container {
    padding-left: 0.7em;
    padding-right: 0.7em;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
    margin-left: auto;
    margin-right: auto;
  }
  .project-cards {
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
    overflow-x: hidden;
    margin-left: auto;
    margin-right: auto;
    flex-direction: column;
    align-items: center;
    gap: 1em;
  }
  .project-card {
    width: 100%;
    min-width: 0;
    max-width: 700px;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    height: auto;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
  }
}

.highlight {
  color: #c05a5a;
  font-weight: 500;
  background: linear-gradient(90deg, #B1122610 0%, #B1122600 100%);
  padding: 0 0.1em;
  border-radius: 2px;
  transition: color 0.2s;
}

.clear {
  clear: left;
}

.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.project-link:hover, .project-link:focus {
  box-shadow: 0 8px 32px #B1122640, 0 2px 16px #0008;
  transform: translateY(-6px) scale(1.03);
}
.project-link:hover h3, .project-link:focus h3 {
  color: #fff;
  text-shadow: 0 2px 16px #B1122620;
}

@media (min-width: 701px) and (max-width: 900px) {
  .project-card {
    height: auto;
  }
}

.pixel-font {
  font-family: 'Press Start 2P', monospace;
  font-size: 1em;
  letter-spacing: 0.03em;
}

.footer-outro {
  background: linear-gradient(135deg, #191919 60%, #222 100%);
  padding: 48px 0 32px 0;
  text-align: center;
  color: #fff;
  position: relative;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.serrure-img {
  width: 64px;
  height: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 8px #0008);
}

.footer-slogan {
  font-family: 'Orbitron', 'Syne', Arial, sans-serif;
  font-size: 1.2rem;
  opacity: 0.85;
  margin: 0;
} 