/* === STYLES GLOBAUX === */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #202124;
  overflow-x: hidden;
}

a {
  color: #1a0dab;
  text-decoration: none;
  font-size: 14px;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* === LAYOUT GRID GOOGLE-LIKE === */
.grid-wrapper {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 16px;
  padding: 0 16px;
}

.search-results-column {
  grid-column: 2 / span 10;
  padding-left: 2rem;
}

.profile-card {
  grid-column: 12 / span 8;
  border-left: 1px solid #dadce0;
  padding-left: 1.5rem;
}
.logo-google {
  font-family: 'Product Sans', Arial, sans-serif;
  font-size: 32px;
  margin: 0;
  line-height: 1;
  margin-right: 20px;
}


/* === GOOGLE SEARCH HEADER === */
.search-header {
  display: flex;
  align-items: center;
  padding: 8px 20px;
  top: 0;
  background-color: #fff;
  z-index: 100;
  height: 64px;
}

.logo-header {
  height: 30px;
  margin-right: 20px;
}

.search-left {
  display: flex;
  align-items: center;
}

.search-center {
  margin-left: 25px;
  max-width: 700px;  /* Limite la largeur */
  width: 100%; /* Mais prend toute la largeur disponible jusqu'au max */
}

.search-wrapper {
  position: relative;
  width: 90%;  /* Ne prend pas toute la largeur */
  max-width: 690px;
}

.search-bar {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 20px;
  font-size: 16px;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  outline: none;
  box-shadow: 0 1px 3px rgba(32,33,36,0.12);
  transition: box-shadow 0.2s, border 0.2s;
}

.search-bar:hover {
  box-shadow: 0 1px 6px rgba(32,33,36,0.28);
  border-color: rgba(223,225,229,0);
}

.search-bar:focus {
  box-shadow: 0 1px 6px rgba(32,33,36,0.28);
  border-color: rgba(223,225,229,0);
}

.search-icons {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-icons img {
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.search-icons img:hover {
  opacity: 1;
}

.search-right {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.profile-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #8ab4f8;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === SEARCH TABS === */
.search-tabs {
  border-bottom: 1px solid #e0e0e0;
  padding: 0 1.5rem;
  padding-left: 9rem;
}

.search-tabs ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  list-style: none;
  padding: 0.75rem 0;
  margin: 0;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
}

.search-tabs ul::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.search-tabs li a {
  font-size: 14px;
  color: #5f6368;
  text-decoration: none;
  padding-bottom: 6px;
  display: inline-block;
  border-bottom: 2px solid transparent;
}

.search-tabs li.active a {
  color: #1a73e8;
  border-bottom: 2px solid #1a73e8;
  font-weight: 500;
}

/* === SEARCH META === */
.search-meta {
  font-size: 14px;
  color: #70757a;
  padding: 0.5rem 1.5rem;
  padding-left: 9rem;
}

.search-meta .highlight {
  color: #202124;
}

/* === RESULT LIST === */
.search-results-column {
  padding: 1rem 0;
}

/* Résultats de recherche avec image ronde et URL */
.search-item {
  margin-bottom: 1.5rem;
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-areas: 
    "image meta"
    "image url"
    "none link"
    "none description";
  column-gap: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}

.search-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.item-image {
  grid-area: image;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  align-self: start;
}

.item-url {
  grid-area: url;
  font-size: 14px;
  color: #202124;
  margin-bottom: 6px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.item-url-path {
  color: #5f6368;
}

.item-meta {
  grid-area: meta;
  font-size: 14px;
  color: #4d5156;
  margin-bottom: 2px;
}

.item-link {
  grid-area: link;
  display: inline-block;
  font-size: 20px;
  color: #1a0dab;
  text-decoration: none;
  margin-bottom: 2px;
}

.item-link:hover {
  text-decoration: underline;
}

.item-description {
  grid-area: description;
  font-size: 14px;
  color: #4d5156;
  margin-top: 2px;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* === STYLES POUR LES COMPÉTENCES === */
.competence-category-item {
  margin-bottom: 1rem;
  padding-left: 88px; /* Retrait exact comme dans l'image */
  position: relative;
  display: block;
  grid-template-columns: 1fr;
  border-bottom: 1px solid #dadce0;
  padding-bottom: 1rem;
  padding-top: 0.5rem;
}

.competence-label {
  font-size: 14px;
  color: #202124;
  display: flex;
  flex-wrap: wrap;
  line-height: 1.5;
}

.competence-details {
  color: #5f6368;
  font-weight: normal;
}

/* === PROFILE CARD === */
.profile-card {
  max-width: 350px;
  padding: 1.5rem 0;
  margin: 1.5rem 0;
  padding-left: 1rem;
  margin-left: 5rem;
}

.photo-map {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.photo-map img {
  width: 48%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}

.profile-card h2 {
  font-size: 22px;
  margin: 0.5rem 0;
  color: #202124;
}

.rating {
  font-size: 14px;
  color: #70757a;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.stars {
  color: #fbbc04;
  letter-spacing: -2px;
}

.rating a {
  margin-left: 5px;
}

.description {
  font-size: 14px;
  color: #4d5156;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.wikipedia-link {
  display: block;
  margin-top: -5px;
  margin-bottom: 15px;
  text-align: right;
  font-size: 14px;
}

.contact p {
  font-size: 14px;
  margin-bottom: 0.5rem;
  color: #3c4043;
}

.contact-link {
  color: #1a0dab;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

/* Bouton de disponibilité */
.availability-button button {
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin: 15px 0;
  background-color: #e8f0fe;
  color: #1a73e8;
  text-align: center;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.availability-button button:hover {
  background-color: #d2e3fc;
}

.certifications {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.profile-card h4 {
  font-size: 16px;
  color: #202124;
  margin-bottom: 10px;
  font-weight: 500;
}

.certification-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.certification-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
  text-align: center;
}

.certification-badge img {
  width: 50px;
  height: 50px;
  margin-bottom: 8px;
}

.certification-badge span {
  font-size: 12px;
  color: #4d5156;
}

.voir-plus {
  display: block;
  margin-top: 10px;
  color: #1a73e8;
  font-size: 14px;
}

.translation-links {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.translation-links p {
  font-size: 14px;
  color: #4d5156;
  margin-bottom: 8px;
}

.language-flags {
  display: flex;
  gap: 10px;
}

.language-flags img {
  width: 24px;
  height: 16px;
  border: 1px solid #dfe1e5;
}

.qr-code-container {
  margin-top: 1.5rem;
  text-align: center;
}

.qr-code {
  width: 150px;
  height: 150px;
  margin-bottom: 10px;
}

.voir-mes-projets {
  text-align: center;
}

.view-projects-btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #1a73e8;
  color: #fff;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s;
}

.view-projects-btn:hover {
  background-color: #1557b0;
  text-decoration: none;
}

/* === STYLES POUR L'ACCORDÉON === */
.faq-section {
  max-width: 700px;
  margin: 30px auto;
  font-family: 'Roboto', sans-serif;
}

.faq-container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #dadce0;
}

.faq-container h2 {
  font-size: 18px;
  color: #202124;
  padding: 16px 16px 8px;
  font-weight: 500;
  margin: 0;
}

.faq-item {
  border-bottom: 1px solid #dadce0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  color: #202124;
  font-size: 16px;
  font-weight: 400;
  position: relative;
}

.faq-question:hover {
  background-color: #f8f9fa;
}

.arrow-icon {
  color: #5f6368;
  transition: transform 0.3s;
  font-size: 12px;
  margin-left: 8px;
}

.faq-item.active .arrow-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  background-color: #f8f9fa;
  color: #5f6368;
  font-size: 14px;
}

.faq-item.active .faq-answer {
  padding: 16px;
  border-top: 1px solid #e8eaed;
}

.faq-answer p {
  margin-top: 0;
  margin-bottom: 16px;
}

.faq-answer ul {
  padding-left: 24px;
  margin-bottom: 8px;
}

.faq-answer li {
  margin-bottom: 8px;
}

.faq-comments {
  padding: 12px 16px;
  color: #1a73e8;
  text-align: right;
  font-size: 14px;
  cursor: pointer;
}

/* Version pour l'intégration au CV */
.cv-skills-accordion .faq-container {
  border: none;
  box-shadow: none;
}

.cv-skills-accordion .faq-container h2 {
  display: none;
}

.cv-skills-accordion .faq-item {
  border-bottom: 1px solid #dadce0;
}

.cv-skills-accordion .faq-question {
  padding: 12px 0;
}

.cv-skills-accordion .faq-comments {
  display: none;
}

/* === FOOTER === */
.footer {
  bottom: 0;
  width: 100%;
  font-size: 14px;
  background: #f2f2f2;
  color: #70757a;
  position: relative;
}

.footer-top {
  padding: 15px 30px;
  border-bottom: 1px solid #dadce0;
  font-size: 15px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  flex-wrap: wrap;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  padding: 15px 0;
}

.footer-left a,
.footer-right a {
  padding: 15px;
  color: #70757a;
  text-decoration: none;
  white-space: nowrap;
}

.footer-left a:hover,
.footer-right a:hover {
  text-decoration: underline;
}

.footer-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  white-space: nowrap;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
  .footer-bottom {
    justify-content: space-evenly;
  }
  
  .footer-center {
    order: 1;
    width: 100%;
    padding: 10px 0;
  }
  
  .footer-left {
    order: 2;
  }
  
  .footer-right {
    order: 3;
  }
}

@media (max-width: 1024px) {
  .grid-wrapper {
    display: block;
  }
  
  .search-results-column,
  .profile-card {
    grid-column: auto;
    width: 100%;
  }
  
  .profile-card {
    margin-top: 2rem;
    border-left: none;
    border-top: 1px solid #dadce0;
    padding-top: 1.5rem;
    margin-left: 0;
    padding-left: 1rem;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .search-header {
    padding: 8px 10px;
    height: auto;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
  }
  
  .logo-header {
    height: 20px;
  }
  
  .search-center {
    order: 3;
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    max-width: none;
    padding: 0;
  }
  
  .search-wrapper {
    width: 100%; /* Prendre toute la largeur */
    max-width: 100%; /* Désactiver la limite de largeur */
    margin: 0 auto;
  }

  .search-bar {
    width: 100%;
    padding-right: 70px; /* Espace pour les icônes */
    box-sizing: border-box;
    font-size: 14px; /* Police plus petite sur mobile */
  }
  
  .search-tabs {
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .search-meta {
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .grid-wrapper {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
  
  .search-results-column {
    padding: 1rem 12px;
  }
  
  .photo-map {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .photo-map img {
    width: 100%;
    height: auto;
    max-height: 120px;
  }
  
  .certification-badges {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .certification-badge {
    width: auto;
    flex: 0 0 40%;
  }
  
  .competence-category-item {
    padding-left: 40px;
  }
  
  .faq-question {
    padding: 14px 12px;
    font-size: 15px;
  }
  
  .faq-answer {
    font-size: 14px;
  }
  
  .faq-answer ul {
    padding-left: 20px;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-left,
  .footer-right {
    justify-content: center;
    padding: 10px 0;
  }
  
  .footer-center {
    padding: 10px 0;
    text-align: center;
    width: 100%;
  }
  
  .footer-top {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .search-item {
    grid-template-columns: 32px 1fr;
    column-gap: 10px;
  }
  
  .search-header {
    padding: 5px 8px;
  }
  .search-left {
    flex: 0 0 auto;
  }.search-right {
    flex: 0 0 auto;
    margin-left: 10px; /* Espace réduit à droite */
  }  .search-center {
    margin-top: 5px;
  }

  .search-bar {
    height: 36px; /* Barre plus petite */
    font-size: 13px;
    padding: 0 60px 0 15px; /* Padding réduit */
  }
  
  .search-icons {
    right: 8px;
    gap: 8px;
  }
  .search-icons img {
    width: 16px;
    height: 16px;
  }

  * {
    box-sizing: border-box;
  }


  .item-image {
    width: 32px;
    height: 32px;
  }
  
  .item-link {
    font-size: 16px;
  }
  
  .item-description {
    font-size: 13px;
    line-height: 1.4;
  }
  
  .certification-badge span {
    font-size: 11px;
  }
  
  .certification-badge img {
    width: 40px;
    height: 40px;
  }
  
  .qr-code {
    width: 120px;
    height: 120px;
  }
  
  .footer-center {
    font-size: 13px;
  }
  
  .footer-bottom {
    padding: 0 10px;
  }
  
  .footer-left a,
  .footer-right a {
    padding: 10px;
    font-size: 13px;
  }
}

/* === OPTIMISATIONS DE PERFORMANCE === */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === OPTIMISATIONS POUR LES ÉCRANS À HAUTE DENSITÉ === */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .search-bar {
    border-width: 0.5px;
  }
  
  .item-image, 
  .certification-badge img,
  .qr-code {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}