:root {
  --teal: #328193;
  --green: #00665e;
  --line: #00665e66;
  --text: #333;
  --font: "Roboto", Arial, "Helvetica Neue", Helvetica, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html {
  color-scheme: light;
  background-color: #fff;
}

body {
  margin: 0;
  color: var(--text);
  background-color: #fdfefe;
  font-family: var(--font);
  font-size: 14px;
  line-height: 20px;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
}

h1, h2, h3, p, ul {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container--wide {
  max-width: none;
  width: 90%;
}

/* Bouton */
.button {
  display: inline-block;
  margin-top: 2rem;
  padding: 9px 40px;
  border-radius: 5px;
  background-color: var(--teal);
  color: #fff;
  font-weight: 500;
  letter-spacing: 1px;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease;
}

.button:hover {
  background-color: var(--green);
}

/* Accueil */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 5rem;
  background: url("../assets/bg-hero.svg") 50% 100% / cover no-repeat;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  display: block;
  margin: 1rem 0;
}

.hero__title {
  margin: 20px 0 10px;
  padding: 0 1rem;
  color: var(--teal);
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: 1px;
  text-align: center;
}

/* Sections */
.section {
  margin-top: -1px;
  padding: 5rem 0;
  background-position: 50% 100%;
  background-size: cover;
  background-repeat: no-repeat;
}

.section__title {
  margin: 2rem 0 20px;
  color: var(--teal);
  font-size: 35px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 1px;
}

/* Présentation */
.section--about {
  display: flex;
  align-items: center;
  min-height: 100vh;
  background-image: url("../assets/bg-avocat.svg");
}

.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.about__text {
  flex: 1;
}

.text {
  font-size: 16px;
  line-height: 28px;
}

.text p + p {
  margin-top: 28px;
}

.about__cta {
  display: flex;
  flex-basis: 100%;
  justify-content: center;
}

.about__photo {
  flex: 0 0 auto;
  min-width: 340px;
  padding: 1rem;
  text-align: center;
}

/* Domaines d'intervention */
.section--skills {
  min-height: 100vh;
  background-image: url("../assets/bg-intervention.svg");
}

.domains__header {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.domains__header .section__title {
  margin-bottom: 12px;
}

.domains__lead {
  color: #5b6b70;
  font-size: 17px;
  line-height: 26px;
}

.domains {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 1.5rem;
  max-width: 1280px;
  margin: 3rem auto 0;
}

.domain-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border: 1px solid #e2eaec;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(16, 42, 50, .04), 0 8px 24px rgba(16, 42, 50, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.domain-card:hover {
  transform: translateY(-4px);
  border-color: #b9d3d9;
  box-shadow: 0 2px 4px rgba(16, 42, 50, .05), 0 18px 40px rgba(16, 42, 50, .12);
}

.domain-card__head {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.domain-card__count {
  padding: 4px 10px;
  border-radius: 100px;
  background-color: #eaf3f5;
  color: var(--teal);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .3px;
}

.domain-card__title {
  color: #1f3d45;
  font-size: 21px;
  font-weight: 700;
  line-height: 27px;
}

.domain-card__subtitle {
  min-height: 44px;
  margin-top: 6px;
  color: #6b7b80;
  font-size: 14px;
  line-height: 22px;
}

.domain-card__list {
  flex: 1;
  margin-top: 20px;
  padding: 20px 0 0;
  border-top: 1px solid #e2eaec;
  list-style: none;
}

.domain-card__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 14.5px;
  line-height: 21px;
}

.domain-card__list li::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eaf3f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.5 9.2l2.3 2.3 4.7-5' fill='none' stroke='%23328193' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.domain-card__cta {
  display: block;
  margin-top: 16px;
  border: 1px solid var(--teal);
  background-color: transparent;
  color: var(--teal);
}

.domain-card__cta:hover {
  border-color: var(--teal);
  background-color: var(--teal);
  color: #fff;
}

.skill__title {
  padding-bottom: 8px;
  color: var(--teal);
  font-size: 24px;
  line-height: 30px;
  letter-spacing: .5px;
}

.skill__list {
  padding: 0;
  list-style: none;
}

.skill__list li {
  padding: 3px 0 13px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 22px;
  letter-spacing: .1px;
}

.skill__list li:last-child {
  border-bottom: 0;
}

.skill__list a {
  text-decoration: none;
}

.skill__list a.mail,
.skill__list a:hover {
  text-decoration: underline;
}

/* Contact */
.section--contact {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 75vh;
  padding-bottom: 2rem;
  background-color: #dde7e666;
  background-image: url("../assets/bg-footer.png");
}

.contact {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.contact__block {
  flex: 1;
  min-width: 0;
}

.contact__map {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 260px;
  max-width: 100%;
  border: 1px solid #d3e0e3;
  border-radius: 5px;
  background-color: #eaf3f5;
  box-shadow: 0 8px 24px rgba(16, 42, 50, .08);
}

/* Iframe plus grande que le cadre : les boutons de zoom et les crédits
   intégrés sortent de la zone visible, le marqueur reste centré */
.contact__map iframe {
  position: absolute;
  top: -50px;
  left: -60px;
  display: block;
  width: calc(100% + 120px);
  height: calc(100% + 100px);
  border: 0;
  filter: grayscale(1) contrast(1.05);
}

/* Teinte verte posée sur la carte, sans bloquer les clics */
.contact__map::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #d0dedd;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.contact__map-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 12px;
}

.contact__map-credit {
  color: #5b6b70;
  font-size: 11px;
}

.contact__map-credit a {
  text-decoration: none;
}

.contact__map-credit a:hover {
  text-decoration: underline;
}

.contact__map-link {
  display: inline-block;
  color: var(--teal);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.contact__map-link::after {
  content: " →";
}

.contact__map-link:hover {
  text-decoration: underline;
}

.contact .skill__title {
  min-height: 0;
  margin-bottom: 1.5rem;
}

.contact .skill__list li:last-child {
  border-bottom: 1px solid var(--line);
}

.contact__linkedin {
  display: inline-block;
}

.footer {
  margin-top: 5rem;
  padding: 0 1rem;
  color: #3f5358;
  font-size: 13px;
  text-align: center;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Page mentions légales */
.legal-header {
  padding-block: 1.5rem;
  border-bottom: 1px solid #e2eaec;
  background-color: #fff;
}

.legal-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.legal-header__logo {
  color: var(--teal);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
}

.legal-header__back {
  color: var(--teal);
  font-weight: 500;
  text-decoration: none;
}

.legal-header__back:hover {
  text-decoration: underline;
}

.legal {
  max-width: 760px;
  padding-block: 3rem 5rem;
  font-size: 15px;
  line-height: 24px;
}

.legal h1 {
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 35px;
  font-weight: 900;
  line-height: 1.2;
}

.legal__updated {
  margin-bottom: 2.5rem;
  color: #6b7b80;
  font-size: 13px;
}

.legal h2 {
  margin: 2.5rem 0 12px;
  color: #1f3d45;
  font-size: 20px;
  font-weight: 700;
}

.legal p + p {
  margin-top: 10px;
}

.legal dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 0;
}

.legal dt {
  color: #6b7b80;
}

.legal dd {
  margin: 0;
}

.legal a {
  color: var(--teal);
}

.legal-footer {
  padding-block: 2rem;
  border-top: 1px solid #e2eaec;
  margin-top: 0;
}

@media (max-width: 767px) {
  .legal dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .legal dd {
    margin-bottom: 10px;
  }
}

@media (max-width: 1199px) {
  .domains {
    grid-template-columns: repeat(2, 1fr);
    max-width: 820px;
  }
}

@media (max-width: 991px) {
  .about {
    flex-direction: column;
  }

  .about__photo {
    min-width: 0;
  }

  .contact {
    flex-wrap: wrap;
  }

  .contact__block:last-child {
    flex-basis: 100%;
  }

  .contact__map {
    aspect-ratio: auto;
    height: 300px;
  }

  .footer {
    font-weight: 700;
  }
}

@media (max-width: 767px) {
  .domains {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .domain-card__subtitle {
    min-height: 0;
  }

  .contact {
    flex-direction: column;
  }

  .section__title {
    font-size: 30px;
  }

  .hero__title {
    font-size: 24px;
    line-height: 30px;
  }
}
