/* Global */
body {
  margin: 0;
  padding: 0;
  background-image: url('fond_cv.png');
  background-size: cover;
  background-repeat: no-repeat;
  font-family: 'Segoe UI', sans-serif;
}

footer {
  background-color: #222;
  color: #ccc;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
}

/* Header */
header {
  background-image: url('fond_cv_head.png');
  background-size: cover;
  background-position: center;
  padding: 40px 20px;
  color: white;
}

.header-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-left {
  flex: 1;
  text-align: center;
}

.header-left h1 {
  font-size: 2.8em;
  margin-bottom: 10px;
  color: white;
}

.header-left p {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: #ffcc00;
}

.header-right {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.header-right img {
  max-width: 150px;
  height: auto;
}

/* Menu */
nav ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.3s;
  color: #ffcc00;
  background-color: transparent;
}

nav a.active {
  color: white;
}

nav a:hover {
  background-color: #fff;
  background-color: rgba(255,255,255,0.1);
}

/* Titres */
.title-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.title-text {
  color: #000;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  font-size: 1.3em;
}

.title-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #ffcc00;
}

.section-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 30px;
  position: relative;
  text-align: center;
}




/* Page 1 */
.welcome-section {
  text-align: center;
  padding: 60px 20px;
}

.welcome-section h2 {
  font-size: 2.5em;
  font-weight: bold;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  color: #000;
}

.video-container {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.video-container iframe {
  width: 640px;
  max-width: 90%;
  border: 4px solid #ffcc00;
  background-color: black;
}

.video-button {
  margin-top: 20px;
  text-align: center;
}

.video-button button {
  background-color: #ffcc00;
  color: black;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.video-button button:hover {
  background-color: #e6b800;
}




/* Page 2 */
.cv-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 40px 20px;
}

.cv-sidebar {
  flex: 0 0 175px;
}

.cv-sidebar img {
  width: 200px;
  height: 544px;
  object-fit: cover;
  margin-top: -40px;
}

.cv-content {
  flex: 1;
  min-width: 300px;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

body.dark-mode .cv-content {
  background-color: rgba(30, 30, 30, 0.9);
}

.cv-top {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.cv-photo {
  width: 15%;
  border-radius: 16px;
  border: 4px solid white;
  outline: 3px solid #ffcc00;
}

.cv-description,
.cv-education,
.skills-section {
  margin-top: 20px;
}

.cv-description h2,
.cv-education h2,
.skills-section h2 {
  font-size: 2em;
  margin-bottom: 15px;
  color: #000;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.cv-description p {
  font-size: 1.05em;
  line-height: 1.8;
  color: #333;
  max-width: 800px;
  margin-bottom: 20px;
}

.cv-education p {
  font-size: 1.05em;
  line-height: 1.8;
  color: #333;
  max-width: 800px;
  margin-bottom: 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.skill-block {
  background-color: #333;
  color: #eee;
  padding: 20px;
  border-radius: 8px;
}

.skill-block h3 {
  margin-top: 0;
  color: #ffcc00;
}

.skill-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.skill-icons img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.skill-icons img:hover {
  transform: scale(1.1);
}

/* Dark mode adaptations */
body.dark-mode .cv-description p,
body.dark-mode .cv-education p,
body.dark-mode .skills-section h2 {
  color: #ddd;
}

body.dark-mode .cv-description h2,
body.dark-mode .cv-education h2 {
  color: #fff;
}

body.dark-mode .skill-icons img {
  filter: brightness(0.9) contrast(1.2);
}




/* Page 3 */
.portfolio-pdf {
  padding: 60px 20px;
  text-align: center;
}

.pdf-viewer {
  max-width: 900px;
  margin: 0 auto;
}

.portfolio-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 30px;
  position: relative;
}

.pdf-frame {
  width: 100%;
  height: 500px;
  border: 4px solid white;
  outline: 3px solid #ffcc00;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.download-button {
  margin-top: 20px;
}

.download-button .btn,
.contact-form .btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ffcc00;
  color: #000;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  font-family: 'Segoe UI', sans-serif;
  font-size: 1em;
  transition: background 0.3s, transform 0.2s;
}

.download-button .btn:hover,
.contact-form .btn:hover {
  background-color: #e6b800;
  transform: scale(1.05);
}

.portfolio-pdf {
  padding: 60px 20px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

body.dark-mode .portfolio-pdf {
  background-color: rgba(30, 30, 30, 0.9);
}

body.dark-mode .portfolio-title span,
body.dark-mode .download-button .btn {
  color: #fff;
}

body.dark-mode .pdf-frame {
  border: 4px solid #222;
  outline: 3px solid #ffcc00;
  background-color: #000;
}




/* Page 4 */
.job-sheet-section {
  padding: 40px 20px;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}
.section-title {
  margin-bottom: 20px;
}
.job-sheet-content {
  margin-top: 0;
}
.job-sheet-content h3 {
  font-size: 1.4em;
  color: #000;
  margin-top: 30px;
  margin-bottom: 10px;
  position: relative;
}

.job-sheet-content h3::before {
  content: "•";
  color: #ffcc00;
  font-size: 1.5em;
  margin-right: 8px;
}

.job-sheet-content p,
.job-sheet-content ul li {
  font-size: 1.1em;
  color: #333;
  line-height: 1.6;
  margin-bottom: 20px;
}

.job-sheet-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

body.dark-mode .job-sheet-section {
  background-color: rgba(30, 30, 30, 0.9);
}

body.dark-mode .job-sheet-content h3 {
  color: #fff;
}

body.dark-mode .job-sheet-content p,
body.dark-mode .job-sheet-content ul li {
  color: #ddd;
}




/* Page 5 */
.contact-section {
  padding: 60px 20px;
  text-align: center;
}

.contact-title {
  font-size: 1.6em;
  color: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 40px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form label {
  font-weight: bold;
  text-align: left;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 5px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 1em;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ffcc00;
  outline: none;
}




/* Mode Sombre */
#darkModeToggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background: none;
  border: none;
  padding: 0;
  width: 40px;
  height: 40px;
}

#darkModeToggle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s;
}

#darkModeToggle:hover img {
  transform: scale(1.1);
}

body.dark-mode main {
  color: #eee;
}

body.dark-mode .cv-description p,
body.dark-mode .cv-education li,
body.dark-mode .skills-section,
body.dark-mode .skill-block,
body.dark-mode .contact-form label,
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  color: #eee;
  background-color: transparent;
  border-color: #999;
}

body.dark-mode .skill-block {
  background-color: #111;
  color: #ffcc00;
}

body.dark-mode .title-text {
  color: #ffcc00;
}

body.dark-mode .section-title {
  color: #eee;
}