/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  background: #ffffff;
  color: #111;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 25px;
}

.logo img {
  width: 60px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.1);
}

.accueil-link a {
  text-decoration: none;
  color: #0077cc;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s;
}

.accueil-link a:hover {
  color: #00c6ff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav ul li a {
  text-decoration: none;
  color: #0077cc;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #00c6ff;
}
#presentation {
  background-color: #f4f9ff;
  padding: 80px 20px;
  text-align: center;
}

.presentation-container {
  max-width: 900px;
  margin: auto;
}

#presentation h2 {
  font-size: 2.2rem;
  color: #0077cc;
  margin-bottom: 40px;
  font-family: "Roboto", sans-serif;
}

#presentation p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.6;
}

#presentation a {
  color: #0077cc;
  text-decoration: none;
  font-weight: bold;
}

#presentation a:hover {
  color: #00c6ff;
  text-decoration: underline;
}

.intro-competences {
  font-weight: bold;
  margin-top: 30px;
}

/* Timeline Section */
#timeline-section {
  position: relative;
  max-width: 800px;
  margin: 50px auto;
  padding: 40px 20px;
}

.timeline-container {
  position: relative;
  padding: 50px 0;
}

/* Ligne verticale */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  height: 100%;
}

/* Blocs gauche/droite */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

/* Contenu */
.timeline-content {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #0077cc;
}

.timeline-content p {
  font-size: 16px;
  color: #555;
}

/* Connecteurs */
.timeline-connector {
  position: absolute;
  top: 50%;
  width: clamp(
    1rem,
    5vw,
    2.5rem
  ); /* entre 1rem et 3rem, dépendant de l'écran */
  height: 2px;
  background-color: #0077cc;
  transform: translateY(-50%);
}

.timeline-item.left .timeline-connector {
  right: 0;
}

.timeline-item.right .timeline-connector {
  left: 0;
}
/* Etincelles */
.sparks-container {
  position: absolute;
  left: 50%;
  top: 0;
  width: 0;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.spark {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #00c6ff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00c6ff;
  opacity: 0;
  animation: sparkFade 0.8s ease-out forwards;
}

@keyframes sparkFade {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Glow sur les paths SVG */
path {
  filter: drop-shadow(0 0 6px #00c6ff);
}
circle {
  filter: drop-shadow(0 0 6px #00c6ff);
}
/* Section Hero */
#hero {
  background: url("../img/wallpaper_background_r.png") center/cover no-repeat;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* Effet d'assombrissement */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 0 20px;
  transform: translateY(-150%); /* Ajouté pour remonter le texte */
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  font-family: "Roboto", sans-serif;
}

.hero-content p {
  font-size: 1.3rem;
  font-family: "Times New Roman", serif;
  opacity: 0.9;
}
/* === TRAÎNÉE CURSEUR BLEUE === */
.trail {
  position: absolute;
  width: 15px;
  height: 15px;
  background: radial-gradient(circle, rgb(41, 230, 255) 10%, transparent 80%);
  border-radius: 50%;
  pointer-events: none;
  transform: scale(0);
  animation: fadeOut 1s ease-out forwards;
}

@keyframes fadeOut {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}
#transition-bar {
  height: 120px; /* Hauteur ajustable */
  background-color: #0077cc; /* Bleu cohérent avec ta charte */
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
}
/* Titres de section */
.section-title {
  font-family: "Roboto", sans-serif;
  font-size: 2.5rem;
  color: #0077cc;
  text-align: center;
  margin-bottom: 40px;
}

/* Expériences pro */
#experiences {
  background-color: #f4f9ff;
  padding: 80px 20px;
}

.experience-list {
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.experience h3 {
  font-size: 1.5rem;
  color: #0077cc;
}

.experience p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
}

/* Footer */
footer {
  background-color: #0077cc;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.95rem;
}

footer a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

#exemples-sites {
  background-color: #f4f9ff;
  padding: 80px 20px;
  text-align: center;
}

.intro-exemples {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 20px;
}

.sous-texte-exemples {
  font-size: 1rem;
  color: #666;
  margin-bottom: 40px;
}

.btn-container {
  margin-top: 20px;
}

.btn-exemples {
  display: inline-block;
  background: linear-gradient(90deg, #0077cc, #0099ff);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.2rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-exemples:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
#exemples-page {
  background: #f4f9ff;
  padding: 80px 20px;
  text-align: center;
}

#exemples-page h1 {
  font-size: 2.8rem;
  color: #0077cc;
  margin-bottom: 60px;
  font-family: "Roboto", sans-serif;
}

.cards-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.site-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  width: 350px;
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(50px);
}

.site-card.show {
  opacity: 1;
  transform: translateY(0);
}

.site-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.site-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.site-card h2 {
  font-size: 1.5rem;
  color: #0077cc;
  margin-bottom: 15px;
}

.site-card p {
  flex-grow: 1;
  font-size: 1rem;
  color: #444;
  margin-bottom: 25px;
  line-height: 1.6;
}

.btn-voir-site {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(90deg, #0077cc, #00c6ff);
  color: white;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  margin-top: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-voir-site:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 900px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
  }

  .site-card {
    width: 90%;
  }
}
/* === PAGE CONTACT === */
#contact-section {
  background: #f4f9ff;
  padding: 80px 20px;
  text-align: center;
}

#contact-section h1 {
  font-size: 2.8rem;
  color: #0077cc;
  margin-bottom: 60px;
  font-family: "Roboto", sans-serif;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.contact-form .form-group {
  margin-bottom: 25px;
}

.contact-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
  color: #0077cc;
  font-size: 1.1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s ease;
  font-family: "Roboto", sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0077cc;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  display: inline-block;
  background: linear-gradient(90deg, #0077cc, #00c6ff);
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Icône dans input */
.input-icon {
  position: relative;
}

.input-icon input {
  padding-left: 40px;
}

.input-icon span {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #0077cc;
}

/* Animation d'apparition fluide */
.hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}
#mentions-legales {
  background: #f4f9ff;
  padding: 80px 20px;
  max-width: 900px;
  margin: auto;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
#mentions-legales.show {
  opacity: 1;
  transform: translateY(0);
}
#mentions-legales h1 {
  font-size: 2.8rem;
  color: #0077cc;
  text-align: center;
  margin-bottom: 50px;
}

#mentions-legales .mentions-content {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  color: #333;
  line-height: 1.8;
  font-size: 1.1rem;
}

#mentions-legales h2 {
  font-size: 1.6rem;
  color: #0077cc;
  margin-top: 30px;
  margin-bottom: 15px;
}

#mentions-legales p {
  margin-bottom: 15px;
}
/* Responsive contact */
@media (max-width: 700px) {
  .contact-form {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
  }

  .header-left {
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }

  .logo img {
    width: 45px;
  }

  .accueil-link a {
    font-size: 14px;
  }

  nav ul {
    flex-direction: row;
    gap: 12px;
  }

  nav ul li a {
    font-size: 13px;
  }
}

/* Toujours empêcher le débordement horizontal */
body {
  overflow-x: hidden;
}

/* Correction hero image mobile */
@media (max-width: 768px) {
  #hero {
    height: auto;
    padding: 60px 15px;
  }

  .hero-content {
    transform: none;
    padding-top: 40px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

/* Transition bar plus fine sur mobile */
@media (max-width: 768px) {
  #transition-bar {
    height: 70px;
  }
}

/* Optimisation mobile SEO final */

@media (max-width: 600px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Header général */
  header {
    padding: 8px 15px;
  }

  .logo img {
    width: 40px;
  }

  .header-left {
    gap: 12px;
  }

  nav ul {
    gap: 15px;
  }

  nav ul li a,
  .accueil-link a {
    font-size: 13px;
    padding: 10px 12px;
  }

  /* Section Hero mobile : image toujours bien centrée et pas de découpe */
  #hero {
    height: auto;
    padding: 80px 20px;
  }

  .hero-content {
    transform: none;
    padding-top: 30px;
  }

  .hero-content h1 {
    font-size: 1.9rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  /* Espacements généraux des sections */
  #presentation,
  #exemples-sites,
  #experiences,
  #timeline-section {
    padding: 50px 15px;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Meilleur confort sur les formulaires */
  .contact-form label {
    font-size: 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px;
    font-size: 0.95rem;
  }

  .contact-form button {
    padding: 12px 30px;
    font-size: 1rem;
  }

  /* Footer allégé sur mobile */
  footer {
    font-size: 0.85rem;
    padding: 15px;
  }

  /* Réduction des cards exemples de sites */
  .site-card {
    padding: 25px 15px;
    width: 95%;
  }
}
/* Correction timeline responsive mobile */
@media (max-width: 768px) {
  .timeline-item {
    width: 100%;
    text-align: center;
    padding: 20px 20px;
    left: 0 !important;
  }

  .timeline-connector {
    display: none; /* on supprime les petits traits entre timeline et contenu */
  }

  .timeline-content {
    margin: auto;
  }

  /* On peut même réduire un peu le padding général pour l’aération */
  #timeline-section {
    padding: 30px 15px;
  }
}
