/* ================= Reset ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= Variables thème clair / sombre ================= */
:root {
  --bg: #222222;
  --text: white;
  --accent: #0b3d91;
  --header-bg: rgba(0,0,0,0.5);
  --header-text: white;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1c;
    --text: #f1f1f1;
    --accent: #5a9eff;
    --header-bg: #121212;
    --header-text: #f1f1f1;
  }
}

/* ================= Body et structure flex ================= */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-top: 70px; /* pour header fixe */
}

/* Le contenu principal pousse le footer */
main {
  flex: 1;
}

/* ================= Header ================= */
header {
  background-color: var(--header-bg);
  color: var(--header-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(5px);
  flex-wrap: wrap;
}

header h1 {
  font-family: 'pacifico', cursive;
  font-size: 1.8em;
}

header h1 a {
  color: var(--header-text);
  text-decoration: none;
}

header h1 a:hover {
  color: var(--accent);
}

nav {
  display: flex;
  flex-wrap: wrap;
}

nav a {
  color: var(--header-text);
  margin: 0 1em;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover, nav a.active {
  color: var(--accent);
}

/* ================= Section Contact ================= */
#contact {
  max-width: 900px;
  margin: 3em auto 4em;
  padding: 0 1em;
  text-align: left;
}

#contact h2 {
  color: var(--accent);
  margin-bottom: 1em;
  font-size: 2em;
  text-align: center;
}

.contact-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
  flex-wrap: wrap;
  margin-bottom: 3em;
}

.contact-text {
  flex: 1 1 300px;
}

.contact-info {
  font-size: 1.3em;
  margin-bottom: 1em;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  color: white; /* <- ici */
}


.contact-info a {
  color: white;
  text-decoration: none;
}

.btn-cv {
  background-color: var(--accent);
  color: black;
  padding: 0.8em 1.6em;
  margin-top: 1em;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.btn-cv:hover {
  background-color: #327eff;
}

.contact-photo {
  flex: 1 1 300px;
  text-align: center;
}

.contact-photo img {
  max-width: 250px;
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 0 15px var(--accent);
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* ================= Formulaire ================= */
form {
  max-width: 500px;
  width: 90%;
  margin: 0 auto 4em;
  background:  #327eff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
  color: #333;
}

label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  font-size: 14px;
}

input, textarea {
  width: calc(100% - 24px);
  padding: 14px;
  margin-top: 8px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  background: #ff758c;
  color: rgb(0, 0, 0);
  border: none;
  padding: 14px 28px;
  margin-top: 15px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 16px;
  transition: background 0.3s ease-in-out;
}

button:hover {
  background: #d32f2f;
}

/* ================= Footer ================= */
footer {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 2em 1em;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid var(--accent);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 2em;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  color: var(--header-text);
}

.footer-section h3 {
  font-size: 1.4em;
  margin-bottom: 0.3em;
  color: var(--accent);
}

.footer-section p {
  font-size: 0.95em;
  margin-bottom: 0.8em;
  line-height: 1.3;
}

.footer-section a {
  color: var(--header-text);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
  cursor: pointer;
}

.footer-section a:hover {
  color: var(--accent);
}

/* ================= Vidéo en fond ================= */
#bg-video {
  position: fixed;   /* reste derrière tout */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6);
}

body, section, footer {
  position: relative;
  z-index: 1;
}

/* ================= Bouton retour ================= */
.back-button-container {
  text-align: center;
  margin-bottom: 4rem;
}

.back-button {
  display: inline-block;
  padding: 0.7em 1.5em;
  background-color: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 40px;
  box-shadow: 0 5px 15px rgba(11, 61, 145, 0.6);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.back-button:hover {
  background-color: #06407b;
  box-shadow: 0 8px 25px rgba(11, 61, 145, 0.9);
}

/* ================= Responsive ================= */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav a {
    margin: 0.5em 0;
  }

  .contact-wrapper {
    flex-direction: column;
    gap: 1.5em;
  }

  form {
    width: 100%;
    margin-bottom: 2em;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5em;
  }

  .footer-section {
    min-width: auto;
  }
}

.social-links {
  margin-top: 15px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;        /* largeur du cercle */
  height: 50px;       /* hauteur du cercle */
  border-radius: 50%; /* cercle parfait */
  background-color: rgba(0, 123, 255, 0.5); /* fond bleu semi-transparent */
  transition: transform 0.2s, background-color 0.2s;
}

.social-icon svg {
  width: 24px;  /* taille icône */
  height: 24px;
  /* Ne pas changer la couleur pour garder les couleurs d’origine */
}

.social-icon:hover {
  transform: scale(1.1);
  background-color: rgba(0, 123, 255, 0.7); /* bleu plus foncé au survol */
}
