/* ---------- STYLES GÉNÉRAUX ---------- */
body {
  font-family: "Spectral", serif;

  color: #2c3e50;
  line-height: 1.6;
  padding: 0 10px;
  background: url(../images/technologylinedark.png);
  background-attachment: fixed;
  margin: 0;
}

/* --- Header --- */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  width: 100%;
  background-color: #dee1e6;
  border-bottom: 2px solid #1e5f9c;
  margin-bottom: 30px;
  animation: fadeInHeader 1s ease-in-out forwards;
}

/* --- Logo --- */
.logo {
  max-height: 200px;
  width: 150px;
  height: auto;
  opacity: 0;
  transform: scale(0.95);
  animation: fadeInLogo 1.5s ease-in-out forwards;
  animation-delay: 0.3s; /* léger décalage pour un effet plus doux */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

a {
  color: #1e5f9c;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  color: #0a3d62;
  text-decoration: underline;
}

h1,
h2,
h3 {
  color: #0a3d62;
}

/* ---------- TITRE PRINCIPAL ---------- */
.titre {
  text-align: center;
  font-family: "Cookie", cursive;
  font-size: 3rem;
  margin-top: 30px;
  color: #0a3d62;
  text-shadow: 1px 1px 2px rgba(10, 61, 98, 0.2);
}

/* ---------- GRILLE PRINCIPALE ---------- */
.testgrid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-areas:
    "photo text"
    "adresse formation"
    "hobby experience";
  gap: 25px;
  max-width: 1100px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* ---------- SECTION PHOTO ---------- */
.photo {
  grid-area: photo;
  text-align: center;
}

.photo img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid #1e5f9c;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.photo p {
  margin-top: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #0a3d62;
}

/* ---------- SECTION ADRESSE ---------- */
.adresse {
  grid-area: adresse;
  background-color: #d9e9f7;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #1e5f9c;
}

.adresse p {
  margin: 6px 0;
  font-size: 0.95rem;
}

/* ---------- TEXTE DE PRÉSENTATION ---------- */
.text {
  grid-area: text;
  font-size: 1.1rem;
  background-color: #d9e9f7;
  padding: 20px;
  border-left: 5px solid #1e5f9c;
  border-radius: 8px;
}

/* ---------- FORMATION ---------- */
.formation {
  grid-area: formation;
}

.formation h2 {
  margin-bottom: 10px;
  border-bottom: 2px solid #1e5f9c;
  display: inline-block;
  padding-bottom: 5px;
  color: #0a3d62;
}

.formation h3 {
  color: #2c3e50;
  font-size: 1rem;
  margin-top: 8px;
  font-weight: 600;
}

.formation p {
  font-size: 0.95rem;
  margin-left: 10px;
  color: #2c3e50;
}
/* ---------- EXPÉRIENCE PROFESSIONNELLE ---------- */
.experience {
  grid-area: experience;
  background-color: #d9e9f7;
  padding: 20px;
  border-radius: 8px;
  border-left: 5px solid #1e5f9c;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.experience h2 {
  margin-bottom: 10px;
  border-bottom: 2px solid #1e5f9c;
  display: inline-block;
  padding-bottom: 5px;
  color: #0a3d62;
}

.experience h3 {
  color: #2c3e50;
  font-size: 1rem;
  margin-top: 10px;
  font-weight: 600;
}

.experience p {
  font-size: 0.95rem;
  margin-left: 10px;
  color: #2c3e50;
  line-height: 1.5;
}

/* ---------- CENTRES D’INTÉRÊT / HOBBIES ---------- */
.hobby {
  grid-area: hobby;
  background-color: #d9e9f7;
  padding: 20px;
  border-radius: 8px;
  border-left: 5px solid #1e5f9c;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.hobby h2 {
  margin-bottom: 10px;
  border-bottom: 2px solid #1e5f9c;
  display: inline-block;
  padding-bottom: 5px;
  color: #0a3d62;
}

.hobby ul {
  list-style-type: square;
  padding-left: 20px;
}

.hobby li {
  margin: 6px 0;
  color: #2c3e50;
  font-size: 0.95rem;
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 600px) {
  body {
    font-size: 0.95rem;
  }
  .testgrid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "text"
      "adresse"
      "formation"
      "experience"
      "hobby";
    padding: 20px;
  }
  .titre {
    font-size: 2rem;
  }
  .photo img {
    width: 130px;
    height: 130px;
  }

  .logo {
    max-height: 80px;
  }
}
/* --- Animations --- */
@keyframes fadeInHeader {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLogo {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
footer {
  background-color: #000; /* fond noir */
  color: #fff; /* texte blanc */
  text-align: center; /* centre le texte horizontalement */
  padding: 15px 0;
  font-size: 14px;
  margin-top: 20px;
}

footer a {
  color: #44c5e4; /* bleu clair */
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: none;
}
