/* Site-specific additions on top of the MyResume template (main.css) */

/* Hero: the name is the page's h1 (the template styles an h2) */
.hero h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  color: var(--heading-color);
}

.hero .hero-avatar {
  position: static;
  display: block;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--surface-color);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  margin-bottom: 24px;
}

.hero p.hero-tagline {
  margin-top: 12px;
  font-size: 18px;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero p.hero-tagline {
    font-size: 16px;
  }
}

/* About: profile photo and heading */
.about .about-photo {
  border-radius: 8px;
}

.about .content h3 {
  font-weight: 700;
  font-size: 24px;
}

/* Skills: level words instead of percentages; keep long names readable */
.skills .progress {
  height: auto;
  margin-bottom: 22px;
}

.skills .progress .skill {
  text-transform: none;
}

.skills .progress .skill .val {
  font-size: 14px;
  color: var(--accent-color);
}

/* Technology tags */
.skills .tech-title {
  font-size: 20px;
  font-weight: 700;
  margin: 30px 0 16px;
}

.skills .tech-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skills .tech-tags li {
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 14px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--heading-color);
}

/* Services are not links here: keep the hover colour on the card only */
.services .service-item h3 {
  font-weight: 700;
  margin: 10px 0 15px 0;
  font-size: 22px;
}

/* Contact: LinkedIn link inherits the info-item text style */
.contact .info-item a {
  color: inherit;
}

.contact .info-item a:hover {
  color: var(--accent-color);
}

/* Hero: link to the tools view */
.hero .hero-tools-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  color: var(--contrast-color);
  background: var(--accent-color);
  transition: transform .2s, box-shadow .2s;
}

.hero .hero-tools-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent-color), transparent 60%);
}

/* Mechtaly Tools view (assets/js/views.js): the tools page fills the screen next to the menu */
.tools-view {
  position: fixed;
  inset: 0;
  padding: 0; /* the template pads every <section> */
  margin: 0;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.tools-view[hidden] {
  display: none;
}

.tools-view iframe {
  flex: 1;
  width: 100%;
  border: 0;
  display: block;
}

body.tools-mode {
  overflow: hidden;
}

/* Desktop: leave room for the floating menu on the left */
@media (min-width: 1200px) {
  .tools-view {
    left: 96px;
  }
}


/* Hero: "Mes outils en ligne" and "Mon blog" side by side (they wrap on narrow screens) */
.hero .hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 18px;
}

.hero .hero-links .hero-tools-link {
  margin-top: 0;
}

.hero .hero-blog-link {
  color: var(--accent-color);
  background: transparent;
  border: 2px solid var(--accent-color);
  padding: 8px 18px;
}

.hero .hero-blog-link:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
}

/* Mobile menu: transparent panel, the page stays visible behind the buttons */
@media (max-width: 1199px) {
  .header {
    background-color: transparent;
    border-right: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    background: #eef1f4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus,
  .navmenu li:hover>a {
    background: var(--nav-hover-color);
  }
}

/* Side menu: each label on a single line, never cut ("Compétences", "Outils en ligne") */
.navmenu ul {
  width: max-content;
  min-width: 140px;
}

.navmenu a,
.navmenu a:focus {
  white-space: nowrap;
}

@media (min-width: 992px) {
  /* desktop: buttons stay folded to their icon and unfold to the full label on hover */
  .navmenu ul {
    width: 210px;
  }
}

/* Widget d'avis VoteCove (en bas à droite) : icône et texte « Votre avis » ;
   le bouton « haut de page » remonte au-dessus du widget pour ne pas le chevaucher. */
.scroll-top.active { bottom: 112px; }

/* Bouton « Prendre rendez-vous » (assets/js/rdv.js), en haut à droite, et sa fenêtre Calendly.
   Sous 1200px, il se place à gauche du bouton du menu (rond bleu de 40px en haut à droite). */
#rdv-btn { position: fixed; top: 18px; right: 22px; z-index: 9990; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 0; border-radius: 999px; background: #0563bb; color: #fff; font: 600 15px/1.2 "Raleway", sans-serif;
  box-shadow: 0 4px 14px rgba(5, 99, 187, .3); cursor: pointer; white-space: nowrap; }
#rdv-btn:hover { background: #0670d4; }
#rdv-btn:focus-visible { outline: 3px solid #9cc7f0; outline-offset: 2px; }
#rdv-btn .rdv-short { display: none; }
@media (max-width: 1199px) { #rdv-btn { top: 15px; right: 66px; height: 40px; padding: 0 14px; } }
@media (max-width: 575px) { #rdv-btn { font-size: 14px; padding: 0 12px; gap: 6px; } #rdv-btn .rdv-long { display: none; } #rdv-btn .rdv-short { display: inline; } }
.rdv-open #rdv-btn { visibility: hidden; }
#rdv-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(15, 30, 50, .55); display: flex; align-items: center; justify-content: center; padding: 12px; }
#rdv-modal[hidden] { display: none; }
/* Calendly passe en deux colonnes (présentation + calendrier) quand son cadre fait au moins ~1100px de large
   (vérifié dans le navigateur : 1080px = une seule colonne, 1160px = deux colonnes) : la fenêtre fait donc 1160 × 900 au plus, avec un en-tête réduit pour laisser la place à l'agenda. */
#rdv-modal .rdv-dialog { background: #fafafa; color: #272829; border-radius: 14px; width: 100%; max-width: 1160px; height: min(900px, calc(100vh - 24px));
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
#rdv-modal .rdv-head { display: flex; align-items: center; gap: 14px; padding: 6px 8px 6px 18px; background: #fff; border-bottom: 1px solid #e6ecf2; }
#rdv-modal h2 { display: flex; align-items: center; gap: 8px; margin: 0 auto 0 0; font-size: 16px; color: #0563bb; }
#rdv-modal .rdv-tab { font-size: 13px; color: #0563bb; white-space: nowrap; }
#rdv-modal .rdv-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #eef3f8; color: #45505b; font-size: 24px; line-height: 1; cursor: pointer; flex: none; }
#rdv-modal .rdv-close:hover { background: #dde7f1; }
#rdv-modal .rdv-body { position: relative; flex: 1; min-height: 0; }
#rdv-modal .rdv-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; color: #6c7781; }
#rdv-modal iframe { position: relative; width: 100%; height: 100%; border: 0; display: block; }
.rdv-open, .rdv-open body { overflow: hidden; }
@media (max-width: 575px) { #rdv-modal { padding: 0; } #rdv-modal .rdv-dialog { height: 100%; border-radius: 0; } #rdv-modal .rdv-tab { display: none; } }
