:root {
  --bg: #f7f7f5;
  --panel: #ffffff;
  --panel-soft: #eef3fb;
  --line: rgba(28, 28, 28, 0.1);
  --text: #141414;
  --muted: #727272;
  --accent: #101010;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.layout {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.hero {
  display: grid;
  gap: 28px;
  justify-items: center;
}

.hero-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  width: min(860px, 100%);
  justify-items: center;
  text-align: center;
}

.avatar-block {
  display: flex;
  justify-content: center;
}

.avatar-ring {
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f3f6fb, #ebe6df);
  border: 1px solid var(--line);
}

.avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
}

.avatar-image {
  object-fit: cover;
  background: #d8e2f1;
}

.avatar-fallback {
  background: #d8e2f1;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.6rem;
}

.hero-copy {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.eyebrow,
.section-label,
.section-meta {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(3.2rem, 7vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.title {
  margin-bottom: 0;
  color: #5f6770;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.lead {
  max-width: 48rem;
  margin-bottom: 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  line-height: 1.08;
  color: #323232;
  text-align: center;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.contact-link,
.contact-text {
  margin: 0;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
}

.contact-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-separator {
  width: 1px;
  height: 24px;
  background: var(--line);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #efefed;
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.pill-link:hover {
  transform: translateY(-2px);
  background: #e7e7e3;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.social-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.divider {
  margin: 48px 0;
  border-top: 1px solid var(--line);
}

.section {
  width: min(940px, 100%);
  margin: 0 auto 42px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.about-text {
  max-width: 48rem;
  margin: 0 auto;
  color: #4e5358;
  font-size: 1.12rem;
  line-height: 1.9;
  text-align: center;
}

.experience-list,
.degree-list,
.certification-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.experience-list {
  display: grid;
  gap: 18px;
}

.experience-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 18px 24px;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(169, 185, 213, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.experience-item[data-tone="blue"] {
  background: #eaf1ff;
}

.experience-item[data-tone="green"] {
  background: #edf9f2;
}

.experience-item[data-tone="purple"] {
  background: #f1eefc;
}

.experience-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(73, 86, 105, 0.08);
  border-color: rgba(126, 146, 179, 0.45);
}

.experience-logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  font-size: 0.86rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.experience-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.experience-summary-list {
    margin: 10px 0;
    padding-left: 1.5rem; /* Espace pour les puces */
    list-style-type: disc; /* Type de puce (rond) */
}

.experience-summary-list li {
    margin-bottom: 5px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #4a5568; /* Ajuste selon ton thème */
}

.experience-item:hover .experience-logo {
  transform: scale(1.04);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.experience-main {
  display: grid;
  gap: 12px;
}

.experience-role {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 700;
}

.experience-company {
  margin: -4px 0 0;
  color: #6d7a86;
  font-size: 0.98rem;
}

.experience-summary {
  margin-bottom: 0;
  color: #535d69;
  line-height: 1.8;
}

.experience-period {
  margin: 0;
  color: #94a0ad;
  white-space: nowrap;
  font-size: 0.95rem;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.experience-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #616b75;
  font-size: 0.9rem;
  transition: transform 180ms ease, background 180ms ease;
}

.experience-tag:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
}

.skills-section {
  margin-bottom: 52px;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.skill-group-card {
  display: grid;
  gap: 16px;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.skill-group-card[data-group="cloud"] {
  background: #FFFFFF;
}

.skill-group-card[data-group="containers"] {
  background: #FFFFFF;
}

.skill-group-card[data-group="ci/cd"] {
  background: #FFFFFF;
}

.skill-group-card[data-group="backend"] {
  background: #FFFFFF;
}

.skill-group-card[data-group="observabilite"] {
  background: #FFFFFF;
}

.skill-group-card[data-group="security"] {
  background: #FFFFFF;
}

.skill-group-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06);
  border-color: rgba(110, 122, 138, 0.18);
}

.skill-group-icon {
  margin-bottom: 0;
  color: #a2a2a2;
  font-size: 1.5rem;
  transition: transform 180ms ease, color 180ms ease;
}

.skill-group-card:hover .skill-group-icon {
  transform: scale(1.06);
  color: #6a7480;
}

.skill-group-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.skill-group-items {
  margin-bottom: 0;
  color: #66707a;
  line-height: 1.75;
  font-size: 0.98rem;
}

.dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

.certification-list {
  display: grid;
  gap: 16px;
}

.certification-item {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.55)),
    linear-gradient(135deg, #edf4ff, #f9fbff);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.certification-item[data-tone="sky"] {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.58)),
    linear-gradient(135deg, #edf4ff, #f4f8ff);
}

.certification-item[data-tone="sand"] {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.58)),
    linear-gradient(135deg, #fff6ea, #fffbf4);
}

.certification-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(73, 86, 105, 0.08);
  border-color: rgba(110, 122, 138, 0.18);
}

.certification-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #67707a;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.certification-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.certification-issuer,
.certification-meta {
  margin-bottom: 0;
  color: #616b75;
}

.certification-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  background: rgba(255, 255, 255, 0.86);
  color: #20242a;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.certification-link:hover {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(73, 86, 105, 0.08);
}

.certification-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  margin-top: 6px;
}

.certification-logo-image {
  width: 72px;
  height: 72px;
  margin-left: auto;
  object-fit: contain;
  object-position: right center;
}

.degree-list {
  display: grid;
  gap: 16px;
}

.degree-item {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.55)),
    linear-gradient(135deg, #edf4ff, #f9fbff);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.degree-item[data-tone="sky"] {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.58)),
    linear-gradient(135deg, #edf4ff, #f4f8ff);
}

.degree-item[data-tone="sand"] {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.58)),
    linear-gradient(135deg, #fff6ea, #fffbf4);
}

.degree-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(73, 86, 105, 0.08);
  border-color: rgba(110, 122, 138, 0.18);
}

.degree-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #67707a;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.degree-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.degree-school,
.degree-period {
  margin-bottom: 0;
  color: #67707a;
}

.degree-school {
  color: #5d6874;
  line-height: 1.75;
  font-size: 0.98rem;
}

.degree-period {
  color: #8a929b;
}

.degree-topics {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #5d6874;
}

.degree-topics li {
  line-height: 1.55;
}

.degree-footer {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 56px;
  margin-top: 6px;
}

.degree-logo-image {
  width: 72px;
  height: 72px;
  object-fit: contain;
  object-position: right center;
  margin-left: auto;
}

.contact-form-section {
  margin-top: 52px;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  color: #5d6874;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(28, 28, 28, 0.14);
  border-radius: 16px;
  background: #fbfbfa;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-field input {
  min-height: 48px;
  padding: 12px 14px;
}

.form-field textarea {
  min-height: 148px;
  padding: 14px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(20, 20, 20, 0.34);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(16, 16, 16, 0.06);
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 132px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.form-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.form-status {
  flex: 1 1 260px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-status[data-tone="success"] {
  color: #226b43;
}

.form-status[data-tone="error"] {
  color: #a13a3a;
}

.footer-note {
  width: min(940px, 100%);
  margin: 0 auto;
  padding-top: 8px;
  text-align: center;
  color: var(--muted);
}

.footer-note p {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .skill-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .hero-top,
  .dual-grid,
  .form-grid,
  .experience-item {
    grid-template-columns: 1fr;
  }

  .section-head {
    gap: 8px;
    align-items: flex-start;
    flex-direction: column;
  }

  .avatar-block {
    justify-content: center;
  }

  .contact-row {
    gap: 12px;
    align-items: center;
    flex-direction: column;
  }

  .contact-separator {
    display: none;
  }

  .experience-period {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .layout {
    width: min(100% - 20px, 1040px);
    padding: 28px 0 48px;
  }

  h1 {
    font-size: clamp(2.6rem, 15vw, 4rem);
  }

  .lead {
    font-size: clamp(1.7rem, 8vw, 2.45rem);
  }

  .skill-groups {
    grid-template-columns: 1fr;
  }

  .experience-item,
  .card,
  .contact-form,
  .skill-group-card {
    padding: 20px;
  }
}
