/* ==========================================================
   1. RÉGLAGES PRINCIPAUX
   Modifiez d'abord ces variables pour personnaliser le site.
   ========================================================== */

:root {
  /* Couleurs */
  --color-blue: #536880;
  --color-dark: #34485d;
  --color-green: #79bd43;
  --color-text: #6f7e8d;
  --color-muted: #8b98a4;
  --color-white: #ffffff;
  --color-line: rgba(83, 104, 128, 0.15);

  /* Dimensions générales */
  --page-max-width: 1360px;
  --page-side-space: clamp(28px, 5vw, 76px);
  --header-height: 88px;
  --footer-height: 46px;

  /* Carte LinkedIn */
  --card-shadow: 0 25px 65px rgba(44, 60, 76, 0.13);

  /* Polices */
  --font-main: Arial, Helvetica, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

/* ==========================================================
   2. BASE DU DOCUMENT
   ========================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  color: var(--color-dark);
  background: var(--color-white);
  font-family: var(--font-main);
}

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

/* ==========================================================
   3. STRUCTURE DE LA PAGE
   La page tient sur un écran sur ordinateur.
   ========================================================== */

.page-shell {
  position: relative;
  display: grid;
  grid-template-rows: var(--header-height) 1fr var(--footer-height);
  height: 100svh;
  min-height: 650px;
  overflow: hidden;
  background: linear-gradient(120deg, #ffffff 0%, #fbfcf8 65%, #edf5e7 100%);
}

/* Cercles décoratifs en haut à droite */
.page-shell::after {
  content: "";
  position: absolute;
  top: -170px;
  right: -220px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(121, 189, 67, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(121, 189, 67, 0.025),
    0 0 0 160px rgba(83, 104, 128, 0.02);
  pointer-events: none;
}

/* ==========================================================
   4. EN-TÊTE
   ========================================================== */

header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-side-space);
  border-bottom: 1px solid var(--color-line);
}

header img {
  width: 180px;
  height: auto;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status i {
  width: 8px;
  height: 8px;
  background: var(--color-green);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(121, 189, 67, 0.13);
}

/* ==========================================================
   5. CONTENU PRINCIPAL
   ========================================================== */

.one-screen {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(570px, 1.1fr);
  align-items: center;
  gap: clamp(45px, 7vw, 110px);
  width: min(var(--page-max-width), 90vw);
  min-height: 0;
  margin: auto;
  padding: 24px 0;
}

.eyebrow {
  color: var(--color-green);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 22px 0 24px;
  color: var(--color-dark);
  font-size: clamp(54px, 6.1vw, 94px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.065em;
}

h1 em {
  color: var(--color-green);
  font-family: var(--font-serif);
  font-weight: 400;
}

.lead {
  max-width: 560px;
  margin: 0;
  color: var(--color-text);
  font-size: clamp(14px, 1.15vw, 14px);
  line-height: 1.65;
  font-family: var(--font-serif);
}

/* ==========================================================
   6. BLOC DE CONTACT
   ========================================================== */

.contact {
  max-width: 480px;
  margin-top: clamp(24px, 4vh, 45px);
  padding: 19px 21px 17px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--color-line);
  box-shadow: 0 14px 35px rgba(52, 72, 93, 0.07);
  backdrop-filter: blur(8px);
}

.contact-title {
  margin: 0 0 15px;
  color: var(--color-green);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.address-row {
  display: grid;
  gap: 14px;
  padding-bottom: 15px;
  font-family: var(--font-serif);
}

.contact-label {
  display: block;
  color: var(--color-muted);
  font-family: var(--font-main);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.contact .email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--color-line);
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.5vw, 14px);
}

.contact .email small {
  margin-bottom: 4px;
}

.contact b {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--color-white);
  background: var(--color-dark);
  border-radius: 50%;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 400;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.contact .email:hover b,
.contact .email:focus-visible b {
  background: var(--color-green);
  transform: translate(2px, -2px);
}

.contact address {
  margin: 0;
  color: var(--color-text);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.contact address strong {
  display: block;
  margin-bottom: 3px;
  color: var(--color-dark);
  font-size: 13px;
}

.contact address span {
  display: block;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-line);
}

.social-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-menu a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px 6px 6px;
  color: var(--color-blue);
  background: rgba(83, 104, 128, 0.06);
  border: 1px solid rgba(83, 104, 128, 0.1);
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 9px;
  font-weight: 700;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.social-menu i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--color-white);
  background: var(--color-blue);
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.social-menu a:hover,
.social-menu a:focus-visible {
  color: var(--color-dark);
  background: rgba(121, 189, 67, 0.11);
  border-color: rgba(121, 189, 67, 0.32);
  transform: translateY(-1px);
}

.social-menu a:hover i,
.social-menu a:focus-visible i {
  background: var(--color-green);
}

/* ==========================================================
   7. POST LINKEDIN DU CONGRÈS
   ========================================================== */

.linkedin-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(504px, 100%);
  height: min(670px, calc(100svh - 174px));
  min-height: 0;
  justify-self: center;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--card-shadow);
}

.linkedin-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex: 0 0 66px;
  padding: 0 22px;
  border-bottom: 1px solid var(--color-line);
}

.linkedin-heading span {
  color: var(--color-green);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.linkedin-heading strong {
  color: var(--color-dark);
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
}

.linkedin-card iframe {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: 0;
}

/* ==========================================================
   8. PIED DE PAGE
   ========================================================== */

footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-side-space);
  color: #8794a0;
  border-top: 1px solid var(--color-line);
  font-size: 8px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* ==========================================================
   9. TABLETTES ET PETITS ORDINATEURS
   ========================================================== */

@media (max-width: 1050px) {
  .one-screen {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 38px;
  }

  .linkedin-card {
    height: calc(100svh - 160px);
  }
}

/* ==========================================================
   10. MOBILES
   Le défilement est réactivé pour conserver une bonne lisibilité.
   ========================================================== */

@media (max-width: 760px) {
  .page-shell {
    display: block;
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .page-shell::after {
    display: none;
  }

  header {
    height: 82px;
    padding: 0 22px;
  }

  header img {
    width: 155px;
  }

  .one-screen {
    display: block;
    width: calc(100% - 44px);
    padding: 58px 0 70px;
  }

  .intro {
    margin-bottom: 52px;
  }

  h1 {
    font-size: clamp(54px, 17vw, 76px);
  }

  .lead {
    font-size: 13px;
  }

  .linkedin-card {
    width: 100%;
    height: 670px;
    max-height: none;
  }

  .linkedin-heading {
    flex-basis: 70px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    min-height: 80px;
    padding: 20px 22px;
  }
}

/* ==========================================================
   11. ÉCRANS PEU HAUTS
   ========================================================== */

@media (max-height: 720px) and (min-width: 761px) {
  .page-shell {
    grid-template-rows: 72px 1fr 38px;
  }

  .one-screen {
    padding: 14px 0;
  }

  header img {
    width: 160px;
  }

  h1 {
    margin: 15px 0 17px;
    font-size: clamp(48px, 5.5vw, 78px);
  }

  .lead {
    line-height: 1.5;
  }

  .contact {
    margin-top: 20px;
    padding: 13px 17px 12px;
  }

  .contact-title {
    margin-bottom: 10px;
  }

  .address-row {
    padding-bottom: 10px;
  }

  .contact .email {
    padding-top: 10px;
  }

  .social-row {
    margin-top: 10px;
    padding-top: 10px;
  }

  .linkedin-card {
    height: calc(100svh - 132px);
  }
}
