/* Tiffany Ginet — identité visuelle
   Palette : vert sauge, crème et beige
*/

:root {
  --sage-900: #34483a;
  --sage-800: #435b49;
  --sage-700: #536d58;
  --sage-600: #667b68;
  --sage-200: #dce4d8;
  --sage-100: #edf1e9;
  --cream: #f8f6ef;
  --paper: #fffefa;
  --beige: #e9e1d2;
  --beige-dark: #d8cbb6;
  --ink: #29332c;
  --muted: #68736a;
  --line: #e7e5dc;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(48, 65, 51, .09);
  --radius: 18px;
  --radius-large: 28px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

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

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

.narrow {
  max-width: 850px;
}

.skip-link {
  position: absolute;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--sage-900);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* En-tête et navigation */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 254, 250, .94);
  border-bottom: 1px solid rgba(231, 229, 220, .8);
  backdrop-filter: blur(14px);
}

.header-inner,
.brand,
.main-nav,
.hero-actions,
.hero-facts,
.section-heading,
.footer-inner {
  display: flex;
  align-items: center;
}

.header-inner {
  min-height: 82px;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--sage-700);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 15px;
  letter-spacing: .04em;
}

.brand-name {
  color: var(--sage-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
}

.main-nav {
  gap: clamp(16px, 2.4vw, 32px);
  font-size: 13px;
  font-weight: 600;
}

.main-nav a:not(.nav-contact),
.mobile-nav a {
  transition: color .2s ease;
}

.main-nav a:not(.nav-contact):hover,
.mobile-nav a:hover {
  color: var(--sage-600);
}

.nav-contact {
  padding: 10px 17px;
  color: var(--white);
  background: var(--sage-700);
  border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
}

.nav-contact:hover {
  background: var(--sage-900);
  transform: translateY(-1px);
}

.menu-toggle,
.mobile-nav {
  display: none;
}

/* Éléments communs */
.eyebrow {
  margin: 0 0 14px;
  color: var(--sage-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
  line-height: 1.4;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: var(--sage-900);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(42px, 5.5vw, 68px);
  letter-spacing: -.045em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 4vw, 46px);
  letter-spacing: -.035em;
}

h3 {
  margin-bottom: 9px;
  font-size: 23px;
}

p {
  color: var(--muted);
}

.section {
  position: relative;
  padding: 104px 0;
}

.section-light {
  background: var(--cream);
}

.section-intro {
  max-width: 760px;
  margin-bottom: 42px;
  font-size: 18px;
  line-height: 1.85;
}

.section-heading {
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 52px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-aside {
  max-width: 360px;
  margin: 8px 0 0;
  font-size: 14px;
}

/* Boutons */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--sage-700);
}

.button-primary:hover {
  background: var(--sage-900);
}

.button-secondary {
  color: var(--sage-800);
  background: transparent;
  border-color: var(--sage-200);
}

.button-secondary:hover {
  background: var(--white);
  border-color: var(--sage-600);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 78px;
  background: var(--cream);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
}

.hero-copy {
  padding: 14px 0;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 30px;
  font-size: 17px;
  line-height: 1.85;
}

.hero-lead strong {
  color: var(--sage-900);
  font-weight: 700;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-facts {
  align-items: stretch;
  gap: 0;
}

.hero-facts > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  padding: 0 20px;
  border-left: 1px solid var(--beige-dark);
}

.hero-facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-facts strong {
  color: var(--sage-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 600;
}

.hero-facts span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.hero-visual {
  width: 100%;
  max-width: 360px;
  justify-self: end;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  padding: 12px;
  background: var(--white);
  border: 1px solid rgba(216, 203, 182, .8);
  border-radius: 48% 48% 22px 22px;
  box-shadow: var(--shadow);
}

.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 48% 48% 14px 14px;
}

.portrait-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--sage-700);
  background: linear-gradient(145deg, var(--sage-100), var(--beige));
  border-radius: 48% 48% 14px 14px;
}

.portrait-placeholder span {
  font-family: Georgia, serif;
  font-size: 70px;
}

.portrait-placeholder small {
  color: var(--sage-800);
  font-size: 12px;
}

.portrait-caption {
  max-width: 280px;
  margin: 18px auto 0;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 14px;
  font-style: italic;
  text-align: center;
}

.hero-decoration {
  position: absolute;
  right: -160px;
  bottom: -270px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(102, 123, 104, .13);
  border-radius: 50%;
}

.hero-decoration::before,
.hero-decoration::after {
  position: absolute;
  inset: 35px;
  border: 1px solid rgba(102, 123, 104, .1);
  border-radius: 50%;
  content: "";
}

.hero-decoration::after {
  inset: 75px;
}

/* Cartes qualités */
.qualities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quality-card {
  padding: 28px 25px 25px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease;
}

.quality-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.quality-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 21px;
  place-items: center;
  color: var(--sage-700);
  background: var(--sage-100);
  border-radius: 50%;
  font-size: 20px;
}

.quality-card h3 {
  font-size: 21px;
}

.quality-card p {
  margin-bottom: 0;
  font-size: 13px;
}

/* Parcours */
.timeline {
  position: relative;
  max-width: 900px;
  margin-left: 8px;
}

.timeline::before {
  position: absolute;
  top: 7px;
  bottom: 14px;
  left: 7px;
  width: 1px;
  background: var(--sage-200);
  content: "";
}

.timeline-item {
  position: relative;
  padding: 0 0 42px 42px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  top: 6px;
  left: 0;
  width: 15px;
  height: 15px;
  background: var(--cream);
  border: 3px solid var(--sage-600);
  border-radius: 50%;
}

.timeline-featured .timeline-marker {
  background: var(--sage-600);
  box-shadow: 0 0 0 5px var(--sage-100);
}

.timeline-content {
  padding: 0 0 4px;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 9px;
  color: var(--sage-700);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.timeline-meta span + span::before {
  margin-right: 18px;
  color: var(--beige-dark);
  content: "•";
}

.timeline-content h3 {
  margin-bottom: 5px;
}

.job-subtitle {
  margin-bottom: 14px;
  color: var(--sage-600);
  font-size: 13px;
  font-weight: 600;
}

.timeline-content ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
  font-size: 14px;
}

.timeline-content li::marker {
  color: var(--sage-600);
}

/* Projet */
.section-sage {
  background: var(--sage-100);
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  align-items: center;
  gap: clamp(42px, 8vw, 100px);
}

.project-grid > div > p:not(.eyebrow) {
  max-width: 660px;
  font-size: 15px;
}

.project-card {
  padding: 30px;
  background: var(--paper);
  border: 1px solid rgba(216, 203, 182, .75);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}

.project-card-label {
  display: block;
  margin-bottom: 23px;
  color: var(--sage-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.project-detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.project-detail span {
  color: var(--muted);
  font-size: 12px;
}

.project-detail strong {
  color: var(--sage-900);
  font-size: 14px;
}

/* Formation */
.formation-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
}

.qualification-list {
  border-top: 1px solid var(--line);
}

.qualification {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 22px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.qualification-year {
  padding-top: 4px;
  color: var(--sage-700);
  font-size: 12px;
  font-weight: 800;
}

.qualification h3 {
  margin-bottom: 7px;
  font-size: 21px;
}

.qualification p {
  margin-bottom: 0;
  font-size: 13px;
}

/* Documents */
.documents-section {
  max-width: 980px;
}

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

.document-card {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 17px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.document-card:hover {
  transform: translateY(-3px);
  border-color: var(--sage-200);
  box-shadow: var(--shadow);
}

.document-icon {
  display: grid;
  width: 48px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--sage-700);
  background: var(--sage-100);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
}

.document-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.document-text strong {
  color: var(--sage-900);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 600;
}

.document-text small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.document-arrow {
  color: var(--sage-600);
  font-size: 20px;
}

.documents-note {
  margin: 17px 0 0;
  font-size: 11px;
}

/* Contact et pied de page */
.contact-section {
  padding: 76px 0;
  background: var(--sage-800);
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.contact-section .eyebrow {
  color: #d7e2d3;
}

.contact-section h2 {
  max-width: 560px;
  margin-bottom: 13px;
  color: var(--white);
}

.contact-section p:not(.eyebrow) {
  max-width: 600px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 14px;
}

.contact-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.button-light {
  color: var(--sage-900);
  background: var(--cream);
}

.button-light:hover {
  background: var(--white);
}

.contact-phone {
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
}

.site-footer {
  padding: 22px 0;
  background: var(--sage-900);
}

.footer-inner {
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, .65);
  font-size: 11px;
}

.footer-inner a {
  color: rgba(255, 255, 255, .85);
}

.footer-inner a:hover {
  color: var(--white);
}

/* Accessibilité et adaptation */
:focus-visible {
  outline: 3px solid #b2c6a9;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .main-nav {
    gap: 15px;
    font-size: 12px;
  }

  .hero-grid {
    gap: 42px;
  }

  .hero-facts > div {
    padding-inline: 12px;
  }

  .section {
    padding: 82px 0;
  }

  .project-grid {
    gap: 42px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 36px, var(--container));
  }

  .header-inner {
    min-height: 70px;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 17px;
    height: 2px;
    background: var(--sage-800);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-nav:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 18px 18px;
    background: var(--paper);
    border-top: 1px solid var(--line);
  }

  .mobile-nav a {
    padding: 12px 4px;
    color: var(--sage-900);
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    font-weight: 600;
  }

  .mobile-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    padding: 65px 0 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-visual {
    width: min(78%, 330px);
    justify-self: center;
  }

  .hero-facts {
    gap: 10px;
  }

  .hero-facts > div {
    padding-inline: 10px;
  }

  .hero-facts strong {
    font-size: 18px;
  }

  .hero-facts span {
    font-size: 10px;
  }

  .section {
    padding: 70px 0;
  }

  .section-heading {
    display: block;
    margin-bottom: 34px;
  }

  .section-aside {
    max-width: 560px;
    margin-top: 17px;
  }

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

  .quality-card {
    padding: 23px;
  }

  .quality-icon {
    margin-bottom: 14px;
  }

  .project-grid,
  .formation-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .project-card {
    padding: 25px;
  }

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

  .contact-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }

  .contact-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: 41px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .hero-facts {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .hero-facts > div,
  .hero-facts > div:first-child {
    padding: 0 0 0 13px;
    border-left: 2px solid var(--sage-200);
  }

  .timeline-item {
    padding-left: 32px;
  }

  .timeline-meta {
    flex-direction: column;
    gap: 3px;
  }

  .timeline-meta span + span::before {
    content: none;
  }

  .qualification {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 21px 0;
  }

  .document-card {
    gap: 12px;
    padding: 17px;
  }

  .document-text strong {
    font-size: 16px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
