html, body {
  overflow-x: hidden;
}

/**
 * Enable smooth scrolling on the whole document
 */
html {
  scroll-behavior: smooth;
}

/**
 * Disable smooth scrolling when users have prefers-reduced-motion enabled
 */
@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/**
 * Add .section to every anchored element for scroll margin
 */
.section {
  scroll-margin-top: 2rem;
}

/* Header */
.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 3rem;
  text-decoration: none;
}

@media (min-width: 48em) {
  .site-title {
    float: left;
  }
}

.nav-link {
  font-weight: 700;
  color: rgba(0, 0, 0, 0.8) !important;
}

.social-nav .nav-link {
  padding: 0 0.5rem;
  font-size: 1.1rem;
  line-height: 2.5rem;
}

.nav-link:hover,
.nav-link:focus,
.active .nav-link {
  color: rgba(0, 0, 0, 0.6) !important;
}

/* Hero (intro) section */
.intro-title {
  font-weight: 800;
}

@-webkit-keyframes animateWave {
  0% {
    transform: scale(1, 0);
  }
  100% {
    transform: scale(1, 1);
  }
}

@keyframes animateWave {
  0% {
    transform: scale(1, 0);
  }
  100% {
    transform: scale(1, 1);
  }
}

.wave-bg {
  display: block;
  height: 220px;
  width: 100%;
  min-width: 600px;
  transform-origin: top;
  -webkit-animation: animateWave 2000ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
          animation: animateWave 2000ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
  background-image: url("https://cdn.luuc.fr/images/wave-bg.svg");
  background-position: center;
  background-repeat: no-repeat;
}

img.avatar {
  border-radius: 30px;
}

/* Masonary grid for portfolio */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

/* Grid Item */
.grid-sizer,
.grid-item {
  width: 100%;
}

.grid-item {
  padding-bottom: 12px;
}

@media (min-width: 48em) {
  .grid-sizer,
  .grid-item {
    width: 25%;
  }
  .grid-item {
    float: left;
    padding: 6px;
  }
}

.grid-item img {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* Portfolio */
.portolio-section .container {
  padding: 0;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  text-align: center;
  margin: 0;
}

.portfolio-item figcaption {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.75);
  transition: transform 0.35s;
  transform: translate3d(0, 100%, 0);
}

.portfolio-item figcaption h4 {
  color: #222;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 3px;
}

.portfolio-item figcaption p {
  color: #444;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0;
}

.portfolio-item:hover figcaption {
  transform: translate3d(0, 0, 0);
}

/* Portolio Caption */
#bp_container .bp-xc {
  background: #F6E05E !important;
}

#bp_caption a {
  text-decoration: none;
}

/* Footer section */
footer a:not(.nav-link) {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

/* Scroll Top */
#scrolltop {
  display: block;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.5s ease-in;
  position: fixed;
  bottom: 20px;
  right: 20px;
}

#scrolltop .btn {
  padding: 3px 11px;
  border-radius: 50%;
}

/* Additional utility styles */
.container-narrow {
  max-width: 1024px;
  margin: 0 auto;
}

.text-small {
  font-size: 0.875rem;
}

.text-uppercase {
  letter-spacing: 0.05em;
}

.hover-effect {
  transition: transform .18s ease-in-out;
}

.hover-effect:hover {
  transform: translateY(-2px);
}

.marker {
  position: relative;
  display: inline;
  width: auto;
}

.marker-center {
  padding-right: 0;
}

.marker:after {
  content: "";
  width: 125px;
  height: 30px;
  position: absolute;
  bottom: -25px;
  right: -30px;
  background-image: url("https://cdn.luuc.fr/images/marker.svg");
  background-repeat: no-repeat;
}

.marker-center:after {
  bottom: -30px;
  left: 50%;
  margin-left: -60px;
}

@media (max-width: 575.98px) {
  .marker {
    padding-right: 0;
  }
  .marker:after {
    bottom: -30px;
    left: 50%;
    margin-left: -60px;
  }
}

.entry-title a {
  text-decoration: none;
}

/* =====================
   PRINT / PDF EXPORT
   ===================== */

/* Cacher le print-view à l'écran */
#cv-print {
  display: none;
}

@media print {
  @page {
    size: A4;
    margin: 14mm 16mm;
  }

  /* Cacher tout le site */
  body > *:not(#cv-print) {
    display: none !important;
  }

  /* Afficher uniquement le cv-print */
  #cv-print {
    display: block !important;
    font-family: 'Nunito Sans', Arial, sans-serif;
    font-size: 9pt;
    color: #111;
    background: #fff;
    line-height: 1.5;
  }

  /* Header */
  .cvp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2.5px solid #111;
    padding-bottom: 6pt;
    margin-bottom: 10pt;
  }

  .cvp-name {
    font-size: 20pt;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: #000;
  }

  .cvp-title {
    font-size: 10pt;
    font-weight: 400;
    color: #444;
    margin-top: 2pt;
  }

  .cvp-header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2pt;
    font-size: 8pt;
    color: #555;
  }

  /* Sections */
  .cvp-section {
    margin-bottom: 10pt;
  }

  .cvp-section-title {
    font-size: 7.5pt;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #000;
    border-bottom: 1px solid #ccc;
    padding-bottom: 2pt;
    margin-bottom: 6pt;
  }

  .cvp-intro {
    margin: 0;
    color: #333;
  }

  /* Skills grid 2 colonnes */
  .cvp-skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3pt 16pt;
  }

  .cvp-skill-item {
    display: flex;
    gap: 4pt;
  }

  .cvp-skill-name {
    font-weight: 700;
    min-width: 90pt;
    flex-shrink: 0;
  }

  .cvp-skill-detail {
    color: #444;
  }

  /* Experience */
  .cvp-xp {
    break-inside: avoid;
  }

  .cvp-xp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2pt;
  }

  .cvp-xp-company {
    font-weight: 800;
    font-size: 10pt;
  }

  .cvp-xp-role {
    font-weight: 400;
    color: #444;
    margin-left: 6pt;
  }

  .cvp-xp-period {
    font-size: 8pt;
    color: #555;
    white-space: nowrap;
  }

  .cvp-xp-context {
    font-size: 7.5pt;
    color: #666;
    font-style: italic;
    margin-bottom: 4pt;
  }

  .cvp-xp-list {
    margin: 0;
    padding-left: 12pt;
  }

  .cvp-xp-list li {
    margin-bottom: 2pt;
  }

  /* Diplômes */
  .cvp-diplomas {
    display: flex;
    flex-direction: column;
    gap: 6pt;
  }

  .cvp-diploma {
    break-inside: avoid;
  }

  .cvp-diploma-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }

  .cvp-diploma-name {
    font-weight: 700;
  }

  .cvp-diploma-name abbr {
    font-weight: 400;
    text-decoration: none;
    color: #555;
  }

  .cvp-diploma-meta {
    font-size: 8pt;
    color: #555;
    white-space: nowrap;
  }

  .cvp-diploma-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 3pt;
    margin-top: 3pt;
  }

  .cvp-block {
    font-size: 7.5pt;
    background: #f3f3f3;
    border: 1px solid #ddd;
    border-radius: 3pt;
    padding: 1pt 5pt;
    color: #333;
  }

  /* Footer */
  .cvp-footer {
    margin-top: 12pt;
    border-top: 1px solid #ddd;
    padding-top: 5pt;
    font-size: 7.5pt;
    color: #888;
    text-align: center;
  }

  a {
    color: inherit !important;
    text-decoration: none !important;
  }
}

/* Hero eyebrow */
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: #9ca3af;
}

/* Stat counters — About section */
.stat-counter-card {
  padding: 1rem 0.5rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e9eef5;
  box-shadow: 0 4px 14px rgba(15, 36, 84, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-counter-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 36, 84, 0.09);
}

.stat-icon {
  font-size: 1.4rem;
  color: #f6e05e;
  margin-bottom: 0.35rem;
  line-height: 1;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #212529;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

/* Diploma cards */
.diploma-card {
  background: #ffffff;
  border: 1px solid #e9eef5;
  border-top: 3px solid #f6e05e;
  border-radius: 12px;
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 6px 18px rgba(15, 36, 84, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.diploma-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 36, 84, 0.09);
}

.diploma-icon {
  font-size: 1.6rem;
  color: #f6e05e;
  line-height: 1;
}

.diploma-level {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 0.2rem;
}

.diploma-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a2b4a;
  margin: 0 0 0.2rem;
  line-height: 1.35;
}

.diploma-abbr {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  background: #f3f7ff;
  color: #244178;
  border: 1px solid #d8e3f8;
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
}

.diploma-body {
  flex: 1;
}

.diploma-skills {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.diploma-skills li {
  font-size: 0.78rem;
  color: #4b5563;
  line-height: 1.4;
  padding-left: 1rem;
  position: relative;
}

.diploma-skills li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #4a89dc;
  font-weight: 700;
}

.diploma-blocks {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.diploma-block-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #244178;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.diploma-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: #37bc9b;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  width: fit-content;
}

/* Experience card header */
.xp-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.xp-title-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.xp-icon {
  color: #4a89dc;
  font-size: 1rem;
  flex-shrink: 0;
}

.xp-company {
  font-size: 1rem;
  color: #1a2b4a;
}

.xp-role {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 600;
}

.xp-period {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b7280;
  white-space: nowrap;
  padding-top: 0.1rem;
}

/* SNS Solutions key figures */
.sns-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0.85rem 0 0;
  border: 1px solid #e9eef5;
  border-radius: 10px;
  overflow: hidden;
}

.sns-stat {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.65rem 0.5rem;
  background: #f8faff;
  border-right: 1px solid #e9eef5;
  text-align: center;
}

.sns-stat:last-child {
  border-right: none;
}

.sns-stat-number {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a2b4a;
  line-height: 1.1;
}

.sns-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
  line-height: 1.3;
}

/* Experience list */
.xp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.xp-list li {
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid #f0f4fb;
  line-height: 1.6;
  font-size: 0.92rem;
  color: #374151;
}

.xp-list li:last-child {
  border-bottom: none;
}

.xp-li-icon {
  color: #4a89dc;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  width: 1rem;
  text-align: center;
}
