/* ==========================================================
   elagy.me — ajustements propres au site (au-dessus du template Glitche)
   ========================================================== */

/* Logo {YE} dans "À propos" : fond clair pour rester lisible en thème sombre */
.section.about .image img.logo-avatar {
  background: #f0f0f0;
  padding: 12px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* Boutons côte à côte dans "À propos" */
.section.about .bts .btn {
  margin: 0 10px 10px 0;
}

/* Listes à puces dans les blocs d'expérience */
.resume-items .resume-item ul.points {
  margin: 10px 0 0 0;
}

.resume-items .resume-item ul.points li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.resume-items .resume-item ul.points li:before {
  content: "\203A";
  position: absolute;
  left: 0;
  top: 0;
  color: #e8676b;
  font-weight: 500;
}

.resume-items .resume-item .name a {
  color: inherit;
  border-bottom: 1px dotted #e8676b;
}

.resume-items .resume-item .name a:hover {
  color: #e8676b;
}

.resume-items .resume-item .company {
  font-weight: 300;
  opacity: 0.8;
}

/* Lien dans le titre d'un service */
.service-items .service-item .name a {
  color: inherit;
}

.service-items .service-item .name a:hover {
  color: #e8676b;
}

/* Stack : groupes de compétences sous forme d'étiquettes */
.stack-groups {
  margin: 0 -15px;
  font-size: 0;
}

.stack-groups .stack-group {
  display: inline-block;
  vertical-align: top;
  width: 50%;
  padding: 0 15px 35px 15px;
  font-size: 13px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

@media (max-width: 580px) {
  .stack-groups .stack-group {
    width: 100%;
  }
}

.stack-groups .stack-group .name {
  font-weight: 500;
  color: #f0f0f0;
  margin-bottom: 12px;
}

.stack-groups .stack-group .name .ion {
  color: #e8676b;
  margin-right: 8px;
  font-size: 16px;
  vertical-align: -1px;
}

.stack-groups .tags {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-groups .tags li {
  display: inline-block;
  margin: 0 6px 8px 0;
  padding: 4px 10px;
  font-size: 13px;
  border: 1px solid rgba(240, 240, 240, 0.25);
  line-height: 18px;
  -webkit-transition: border-color 0.2s, color 0.2s;
  transition: border-color 0.2s, color 0.2s;
}

.stack-groups .tags li:hover {
  border-color: #e8676b;
  color: #e8676b;
}

/* ==========================================================
   Contact form: captcha, honeypot, error message
   ========================================================== */

/* Honeypot field: off-screen for humans, visible to naive bots */
.hp-field {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.captcha-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
  margin-bottom: 30px;
}

.captcha-row .captcha-box {
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  height: 60px;
  margin-right: 25px;
  border-bottom: 1px solid #666666;
}

.captcha-row .captcha-img {
  display: block;
  width: 170px;
  height: 60px;
  -webkit-user-select: none;
  user-select: none;
}

.captcha-row .captcha-refresh {
  display: block;
  padding: 0 4px 0 10px;
  font-size: 20px;
  line-height: 60px;
  color: #a2a2a6;
}

.captcha-row .captcha-refresh:hover {
  color: #e8676b;
}

.captcha-row .captcha-refresh .ion {
  display: inline-block;
}

.captcha-row .captcha-refresh .ion.spin {
  -webkit-transition: -webkit-transform 0.5s ease;
  transition: transform 0.5s ease;
  -webkit-transform: rotate(360deg);
  transform: rotate(360deg);
}

.captcha-row input {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.captcha-row input::-webkit-input-placeholder { letter-spacing: 0; text-transform: none; }
.captcha-row input::-moz-placeholder { letter-spacing: 0; text-transform: none; }
.captcha-row input:-ms-input-placeholder { letter-spacing: 0; text-transform: none; }

@media (max-width: 480px) {
  .captcha-row {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }

  .captcha-row .captcha-box {
    margin-right: 0;
  }

  .captcha-row input {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
  }
}

.section.contacts .alert-error {
  display: none;
}

.section.contacts .alert-error p {
  margin: 20px 0 0 0;
  color: #e8676b;
}

/* ------------------------------------------------------------------
   Real headings (h1 / h2) keep the template look
   ------------------------------------------------------------------ */
h2.title_inner {
    margin: 0;
    font-weight: 400;
}

/* Home: short intro + calls to action */
.section.started .started-content .h-intro {
    max-width: 560px;
    margin: 26px auto 0;
    padding: 0 20px;
    font-size: 13px;
    line-height: 23px;
    color: #a2a2a6;
}
.section.started .started-content .h-actions {
    margin-top: 26px;
    padding: 0 20px;
}
.section.started .started-content .h-actions .btn {
    margin: 0 6px 12px;
}

/* ==========================================================
   Dark / light theme switch
   The dark look (template-dark/dark.css + the colours above) is the
   default; html[data-theme="light"] disables dark.css (see <head>)
   and the rules below adapt the site's own colours.
   ========================================================== */
header .head-top .top-menu ul li .theme-toggle {
  display: inline-block;
  vertical-align: top;
  width: auto;
  height: auto;
  margin: 10px 0 0 0;
  padding: 0 2px;
  border: 0;
  background: none;
  font-size: 24px;
  line-height: 22px;
  color: #f0f0f0;
  cursor: pointer;
}

header .head-top .top-menu ul li .theme-toggle:hover,
header .head-top .top-menu ul li .theme-toggle:focus-visible {
  color: #e8676b;
}

/* Dark: sun icon (go light) — light: moon icon (go dark) */
.theme-toggle .ion-ios-moon-outline,
html[data-theme="light"] .theme-toggle .ion-ios-sunny-outline {
  display: none;
}

html[data-theme="light"] .theme-toggle .ion-ios-moon-outline {
  display: inline;
}

html[data-theme="light"] header .head-top .top-menu ul li .theme-toggle {
  color: #363636;
}

html[data-theme="light"] header .head-top .top-menu ul li .theme-toggle:hover {
  color: #e8676b;
}

/* Light theme: the site's own colours */
html[data-theme="light"] .stack-groups .stack-group .name {
  color: #141414;
}

html[data-theme="light"] .stack-groups .tags li {
  border-color: rgba(20, 20, 20, 0.18);
}

html[data-theme="light"] .stack-groups .tags li:hover {
  border-color: #e8676b;
}

html[data-theme="light"] .section.started .started-content .h-intro,
html[data-theme="light"] .captcha-row .captcha-refresh {
  color: #6b6b70;
}

html[data-theme="light"] .captcha-row .captcha-refresh:hover {
  color: #e8676b;
}

html[data-theme="light"] .captcha-row .captcha-box {
  border-bottom-color: #dddddd;
}

/* The captcha is drawn light-on-transparent for the dark theme:
   invert + hue-rotate gives dark text and keeps the red offset red */
html[data-theme="light"] .captcha-row .captcha-img {
  -webkit-filter: invert(1) hue-rotate(180deg);
  filter: invert(1) hue-rotate(180deg);
}
