@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap');

:root {
  --navy: #17384c;
  --navy-deep: #102a3a;
  --navy-soft: #eaf0f3;
  --accent: #17384c;
  --accent-dark: #102a3a;
  --accent-soft: #eaf0f3;
  --current-green: #2f5d45;
  --current-green-soft: #e7f0ea;
  --background: #ffffff;
  --surface: #ffffff;
  --surface-soft: #ffffff;
  --text: #1d2c35;
  --text-muted: #5d6b73;
  --border: #dbe2e5;
  --shadow: 0 14px 36px rgba(16, 42, 58, 0.08);
  --shadow-hover: 0 18px 44px rgba(16, 42, 58, 0.13);
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

h1,
h2,
h3 {
  color: var(--navy-deep);
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.24;
}

a {
  color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 62px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.hero::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -210px;
  bottom: -210px;
  border: 45px solid rgba(23, 56, 76, 0.05);
  border-radius: 50%;
  pointer-events: none;
  display:none;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 64px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 18px;
  border: 1px solid #c8d5db;
  border-radius: 0px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.availability > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  letter-spacing: -0.03em;
}

.hero h1 > span {
  display: block;
  max-width: 760px;
  margin-top: 7px;
  color: var(--accent);
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  letter-spacing: 0.02em;
}

.hero-desc {
  max-width: 760px;
  color: var(--text-muted);
  padding-bottom: 24px;
}

.hero-actions {
  display: flex;
    flex-wrap: wrap;
    /* justify-content: center; */
	margin-top: 15px;
    gap: 10px 20px;
    padding-bottom: 26px;
    /* border-bottom: 1px solid var(--border); */
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 400;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: 0px;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(23, 56, 76, 0.22);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  border-color: var(--navy);
  background: transparent;
  color: var(--navy);
}

.button-secondary:hover {
  background: var(--navy);
  color: #ffffff;
}

.button-link {
  min-height: auto;
  padding-inline: 10px;
  color: var(--navy);
}

.profile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.profile-facts span {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 0px;
  background: rgba(255, 255, 255, 0.72);
  color: #41535d;
  font-size: 0.82rem;
  font-weight: 600;
}

.portrait {
  width: 300px;
  height: 300px;
  overflow: hidden;
  border: 8px solid #ffffff;
  border: 8px solid #ffffff;
    border-radius: 50%;
    background: #fdfdfd;
    box-shadow: 0px 0px 9px rgba(16, 42, 58, 0.15);
}

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

.section {
  padding: 70px 0;
}

.section-soft {
  background: var(--surface-soft);
}

.section-heading {
    max-width: 800px;
    margin: 0 0 038px;
 /* text-align: center; */
}

.eyebrow,
.card-label {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 700;
}

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.card-label {
  letter-spacing: 0.14em;
}

.section-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.section-heading p {
  margin-top: 10px;
  color: var(--text-muted);
}

.experience-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.badge-current {
  display: flex;
    margin-left: auto;
    width: fit-content;
    padding: 3px 10px;
    border: 1px solid var(--current-green);
    border-radius: 0px;
    background: #ffffff;
    color: var(--current-green);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
    flex-direction: row;
    align-content: space-between;
    justify-content: space-around;
}

/* ---- timeline (expérience, hors poste actuel) ---- */
.timeline {
  position: relative;
  margin-top: 30px;
  padding-top: 6px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  transform: translateX(-0.5px);
}

.tl-row {
  position: relative;
  width: 50%;
  padding: 0 32px 26px;
  box-sizing: border-box;
}

.tl-row.left {
  left: 0;
  text-align: right;
}

.tl-row.right {
  left: 50%;
  text-align: left;
}

.tl-dot {
  position: absolute;
  top: 26px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--accent);
  z-index: 2;
}

.tl-row.left .tl-dot {
  right: -6px;
}

.tl-row.right .tl-dot {
  left: -6px;
}

.tl-row .experience-card {
  display: inline-block;
  width: 100%;
  max-width: 440px;
  text-align: left;
}

.experience-card,
.simple-card,
.skill-card,
.contact-card {
  overflow: hidden;
    border: 1px solid var(--border);
    /* border-radius: var(--radius); */
    background: var(--surface);
    /* box-shadow: 0px 0px 0px 0px rgba(16, 42, 58, 0.08); */
}

.experience-card {
  display: grid;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.experience-card:hover,
.simple-card:hover,
.skill-card:hover {
  border-color: #c1ced4;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.experience-current {
  grid-column: 1 / -1;
}

.experience-current.experience-with-image {
  grid-template-columns: 32% minmax(0, 1fr);
}

.experience-image {
  min-height: 190px;
  background: var(--navy-soft);
}

.experience-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-card:not(.experience-current).experience-with-image .experience-image {
  height: 160px;
}

.experience-content {
  padding: 24px;
}

.experience-date {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.experience-content h3,
.simple-card h3,
.skill-card h3 {
  margin-bottom: 4px;
  font-size: 1.14rem;
}

.company {
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.experience-content ul,
.check-list {
  padding-left: 19px;
}

.experience-content li,
.check-list li {
  margin-top: 7px;
  color: #465860;
}

.experience-content li::marker,
.check-list li::marker {
  color: var(--accent);
}

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

.simple-card,
.skill-card {
  padding: 27px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.simple-card > p:not(.company),
.skill-card > p {
  color: var(--text-muted);
}

.certification-grid .simple-card {
 /* border-top: 4px solid var(--navy); */
}

.card-label {
  margin-bottom: 10px;
  font-size: 0.75rem;
}

.check-list {
  margin-top: 14px;
}

.check-list li + li {
  margin-top: 13px;
}

.skills-grid {
  align-items: stretch;
}

.skill-card {
  /* border-top: 4px solid var(--navy); */
}

.capsules {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 15px 0;
}

.capsules span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(23, 56, 76, 0.3);
  border-radius: 0px;
  background: #ffffff;
  color: var(--navy-deep);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.contact-card {
  max-width: 820px;
  margin-inline: auto;
  padding: 34px;
}

.contact-intro {
  max-width: 700px;
  margin: 0 auto 12px;
  color: var(--text-muted);
  text-align: center;
}

.contact-email {
  display: block;
  margin-bottom: 18px;
  color: var(--navy);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 700;
  text-align: center;
  margin: 0 auto 24px;
  width: fit-content;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.contact-actions a:hover,
.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

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

.contact-form label {
  display: grid;
  gap: 5px;
  color: var(--navy-deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5da;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(23, 56, 76, 0.12);
  border-color: var(--navy);
}

.contact-form .button {
  width: 100%;
  border: 0;
}

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

.form-message {
  padding: 11px 14px;
  margin-bottom: 18px;
  border-radius: 8px;
  font-weight: 700;
}

.form-success {
  border: 1px solid #a7d8c0;
  background: #edf8f2;
  color: #236444;
}

.form-error {
  border: 1px solid #e1b9bc;
  background: #fbeeef;
  color: #9b484d;
}

.footer {
  padding: 27px 0;
  background: var(--navy-deep);
  color: #d5dfe3;
  font-size: 0.88rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-content > div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-link{ 
  color:#ffffff;
  border-bottom: 1px solid;
  }

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 36px;
  }

  .portrait {
    width: 240px;
    height: 240px;
  }

  .experience-current.experience-with-image {
    grid-template-columns: 38% minmax(0, 1fr);
  }
}

@media (max-width: 740px) {
  .hero {
    padding: 48px 0;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .portrait {
    grid-row: 1;
    width: 220px;
    height: 220px;
    margin-inline: auto;
  }

  .hero-desc {
    text-align: left;
  }

  .hero-actions,
  .profile-facts {
    justify-content: center;
  }

  .experience-grid,
  .two-column-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .experience-current {
    grid-column: auto;
  }

  .timeline::before {
    left: 9px;
  }

  .tl-row,
  .tl-row.left,
  .tl-row.right {
    width: 100%;
    left: 0;
    text-align: left;
    padding-left: 28px;
    padding-right: 0;
  }

  .tl-row .tl-dot {
    left: 4px !important;
    right: auto !important;
  }

  .tl-row .experience-card {
    max-width: 100%;
  }

  .experience-current.experience-with-image {
    grid-template-columns: 1fr;
  }

  .experience-image,
  .experience-card:not(.experience-current).experience-with-image .experience-image {
    height: 190px;
    min-height: 0;
  }

  .section {
    padding: 56px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .profile-facts {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-facts span {
    text-align: center;
  }

  .experience-content,
  .simple-card,
  .skill-card,
  .contact-card {
    padding: 21px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(16, 42, 58, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    color: #17384c;
    background: #ffffff;
    border: 1px solid;
    border-color: #ffffff;
}

.back-to-top:hover {
  background: #cfcfcf;
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}
