/*

    TABLEAUX

*/

#post table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
}

#post table th,
#post table td {
  border: 1px solid #ddd !important;
  padding: 8px 12px !important;
  text-align: left;
}

#post table th {
  background-color: #2c3e50;
  color: #ffffff;
  font-weight: bold;
}
/*

    PORTFOLIO

*/

.portfolio-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
}

.portfolio-card {
  position: relative;
  padding-top: 20px;
  width: min(90vw, 400px);
  margin: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.portfolio-card .image-container {
  height: 200px; /* Hauteur fixe pour l'espace d'image */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.portfolio-card img.illustration {
  max-width: 100%;
  max-height: 100%;
}

.portfolio-card-content {
  padding: 15px;
}

.portfolio-wrapper {
  position: relative;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.portfolio-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.portfolio-wrapper:hover .portfolio-card, .portfolio-wrapper:hover .portfolio-link {
  background-color: rgba(255, 255, 255, 0.2);
}

.portfolio-link {
  position: relative;
  padding-top: 20px;
  width: min(90vw, 300px);
  margin: 20px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
  font-variant: small-caps;
  font-weight: bold;
}

.portfolio-link .titre {
  display: flex;
  align-items: center;
  height: 75px;
  transition: color 0.3s ease;
}

.portfolio-link:hover .titre {
  color: white;
}

.portfolio-link .illustration {
  flex: 0 0 20%;
  width: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portfolio-link .illustration img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
}

.portfolio-link .texte {
  flex: 1;
  align-items: center;
  display: flex;
  justify-content: center;
}

.portfolio-link img.illustration {
  display: inline;
  max-width: 100%;
  max-height: 100%;
}

.portfolio-link-content {
  padding: 15px;
}


.portfolio-link .technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.portfolio-link .tech-logo {
  max-height: 20px;
  width: auto;
  object-fit: contain;
}

.portfolio-button {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
  z-index: 1;
  font-weight: bold;
  color: white !important;
}

.source {
  background-color: rgba(31, 121, 4, 0.9);
}
.demo {
  background-color: rgba(219, 51, 21, 0.9);
}

.portfolio-button:hover,
.button:hover {
  transform: scale(1.1);
}

.details-button {
  display: inline-block;
  margin-top: 10px;
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.details-button:hover {
  background-color: #45a049;
}

.portfolio-card .technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.portfolio-card .tech-logo {
  max-height: 50px;
  width: auto;
  object-fit: contain;
}

.buttons {
  display: flex;
  justify-content: space-evenly;
}

.buttons a {
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  color: white;
}

.portfolio-image-top {
  height: 20vh !important;
  object-fit: contain; /* ou "cover" selon le rendu souhaité */
  display: block;
  margin: 0 auto; /* Centrer l'image si nécessaire */
}

.portfolio-detail h1 {
  text-align: center;
}

.portfolio-detail .resume {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0; 
  background-color: rgba(255, 255, 255, 0.1);
}

.portfolio-detail .resume::before {
  content: "Résumé";
  display: block;
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 0.5em;
}

.portfolio-detail .motscles {
  padding: 20px;
  text-align: left;
}

.portfolio-detail .motscles::before {
  content: "Mots clés";
  display: block;
  font-weight: bold;
  font-size: 0.8em;
  margin-bottom: 0.5em;
}

.portfolio-detail .motscles span {
  padding: 5px;
  margin: 5px;
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 0.7em;
}
/* Sections À propos et Contact : texte lisible, aligné à gauche */
#about p,
#about ul {
  text-align: left;
}

#about ul {
  padding-left: 20px;
}

#about li {
  margin-bottom: 8px;
}

#contact .contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.linkedin {
  background-color: rgba(10, 102, 194, 0.9);
}

#contact .download {
  background-color: rgba(76, 175, 80, 0.9);
}

/* Parcours : deux colonnes (expérience / formation), lignes dépliables */
.parcours {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 20px;
  text-align: left;
}

@media (min-width: 768px) {
  .parcours {
    grid-template-columns: 1fr 1fr;
  }
}

.parcours-colonne h3 {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(239, 235, 212, 0.3);
  font-size: 20px;
}

.parcours-item {
  border-bottom: 1px solid rgba(239, 235, 212, 0.12);
}

.parcours-item > summary,
div.parcours-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
}

.parcours-item > summary {
  list-style: none;
  cursor: pointer;
  border-radius: 4px;
}

.parcours-item > summary::-webkit-details-marker {
  display: none;
}

.parcours-item > summary:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.parcours-item > summary:focus-visible {
  outline: 2px solid rgba(239, 235, 212, 0.6);
}

/* Chevron indiquant qu'on peut déplier */
.parcours-item > summary::after {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin: 0 6px 4px auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.6;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.parcours-item[open] > summary::after {
  margin-bottom: -4px;
  transform: rotate(-135deg);
}

.parcours-logos {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
}

.parcours-logos img {
  width: 44px;
  height: 44px;
  padding: 3px;
  border-radius: 50%;
  background-color: #fff;
  object-fit: contain;
}

.parcours-texte {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.parcours-date {
  font-size: 13px;
  opacity: 0.75;
}

.parcours-titre {
  font-size: 16px;
  line-height: 1.3;
}

.parcours-org {
  font-size: 14px;
  opacity: 0.85;
}

.parcours .parcours-details {
  margin: 0 4px 14px 60px;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .parcours .parcours-details {
    margin-left: 4px;
  }
}

/* Certifications : sur une seule ligne sur mobile */
@media (max-width: 767px) {
  #timeline .certifications-container {
    flex-wrap: nowrap;
    gap: 12px;
  }

  #timeline .certification-img {
    max-height: 70px;
  }

  #timeline .certification-item p {
    font-size: 13px;
    line-height: 1.3;
  }
}

/* Bannière de consentement aux cookies */
.consent-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 2000;
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.92);
  color: white;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner p {
  margin: 0 0 12px;
}

.consent-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.consent-btn {
  min-width: 110px;
  padding: 8px 16px;
  border: 1px solid white;
  border-radius: 5px;
  background: transparent;
  color: white;
  font-weight: bold;
}

.consent-btn:hover,
.consent-btn:focus {
  background-color: white;
  color: black;
}

.consent-tracking .consent-required {
  display: none;
}

/* Boutons de partage répartis à parts égales (remplace le calcul de
   rrssb.js ; site.js passe en icônes seules quand la place manque) */
.rrssb-buttons {
  display: flex;
}

.rrssb-buttons::before,
.rrssb-buttons::after {
  display: none;
}

.rrssb-buttons li {
  flex: 1 1 0;
  min-width: 0;
}
