@charset "UTF-8";

/* ============================================================================
   CABINET DENTAIRE DE RIDDES
   Clean responsive stylesheet

   Breakpoints used in this file:
   - Mobile: 0–767px
   - Tablet / landscape: 768–1199px
   - Desktop: 1200px+
   - Large desktop refinements: 1280px+

   Layout intent:
   - Mobile: stacked, narrow, safe
   - Tablet: hero buttons 3 columns, team 3 columns, treatments 2 columns, info 2 columns
   - Desktop: original desktop composition restored
   ============================================================================ */


/* ============================================================================
   01. DESIGN TOKENS
   ============================================================================ */

:root {
  --color-aqua: #dffafa;
  --color-aqua-dark: #00aeb8;
  --color-white: #ffffff;
  --color-text: #0f172a;
  --color-text-soft: rgba(15, 23, 42, 0.78);
  --color-purple: rgba(84, 43, 169, 1);
  --color-red: #d62828;

  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.12);
  --shadow-modal: 0 20px 60px rgba(15, 23, 42, 0.2);

  --radius-l: 30px;
  --radius-modal: 24px;
  --radius-pill: 999px;

  --container: 1280px;
  --container-padding-mobile: 1.5rem;
  --container-padding: 2rem;

  --section-pad-y: clamp(4.5rem, 8vw, 7rem);
  --section-pad-y-compact: clamp(3.5rem, 6vw, 5rem);

  --gap-xs: 0.75rem;
  --gap-s: 0.9rem;
  --gap-m: 1rem;
  --gap-l: 1.6rem;
}


/* ============================================================================
   02. RESET + BASE
   ============================================================================ */

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

html {
  max-width: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
  font-family: "interstate", sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.5;
}

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

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

ul {
  margin: 0;
  padding: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}


/* ============================================================================
   03. SHARED LAYOUT
   ============================================================================ */

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

.section {
  position: relative;
  scroll-margin-top: 20px;
}

.section--light,
.section--aqua {
  background: var(--color-white);
}

.site-header {
  display: none;
}


/* ============================================================================
   04. SHARED TYPOGRAPHY
   ============================================================================ */

.section-heading {
  margin-bottom: 2rem;
}

.section-heading--center {
  text-align: center;
}

.section-heading__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--color-purple);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-heading__title {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading__intro {
  max-width: 60ch;
  margin: 1rem auto 0;
  color: var(--color-text-soft);
  font-size: 1.05rem;
}

.section-heading--on-image .section-heading__eyebrow,
.section-heading--on-image .section-heading__title,
.section-heading--on-image .section-heading__intro {
  color: var(--color-white);
}

.section-heading--on-color .section-heading__eyebrow,
.section-heading--on-color .section-heading__title {
  color: var(--color-purple);
}

.section-heading--on-color .section-heading__intro {
  color: var(--color-text-soft);
}


/* ============================================================================
   05. BUTTONS
   ============================================================================ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.9rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.button:hover,
.button:focus-visible,
.link-card:hover,
.link-card:focus-visible,
.site-footer__back-to-top:hover,
.site-footer__back-to-top:focus-visible {
  transform: translateY(-2px);
}

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

.button--outline {
  border: 2px solid var(--color-white);
  background: transparent;
  color: var(--color-white);
}

.button--red {
  border: 2px solid var(--color-red);
  background: var(--color-red);
  color: var(--color-white);
}

.button--red:hover,
.button--red:focus-visible {
  border-color: var(--color-red);
  background: var(--color-red);
  color: var(--color-white);
}


/* ============================================================================
   06. HERO
   ============================================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

.hero__slider,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__slider {
  z-index: 0;
}

.hero__track {
  display: flex;
  width: 300%;
  height: 100%;
  animation: heroSlide 24s infinite;
}

.hero__slide {
  flex: 0 0 33.3333%;
  height: 100%;
}

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

.hero__overlay {
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.2)
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0 3rem;
  text-align: center;
}

.hero__logo {
  width: 96px;
}

.hero__title {
  margin: 0.8rem 0 0;
  color: var(--color-white);
  font-size: clamp(1.8rem, 3.3vw, 3.2rem);
  line-height: 0.95;
  font-weight: 800;
  text-transform: uppercase;
}

.hero__subtitle {
  margin: 1.5rem 0 0;
  color: var(--color-white);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 500;
  text-transform: uppercase;
}

.hero__actions {
  display: flex;
  width: 100%;
  max-width: 420px;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-s);
  margin-top: clamp(3rem, 12vh, 6rem);
}

.hero__actions .button {
  width: 100%;
}

@keyframes heroSlide {
  0%,
  27% {
    transform: translateX(0);
  }

  33%,
  60% {
    transform: translateX(-33.3333%);
  }

  66%,
  93% {
    transform: translateX(-66.6666%);
  }

  100% {
    transform: translateX(0);
  }
}


/* ============================================================================
   07. TEAM
   ============================================================================ */

#equipe {
  padding: 4rem 0;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-m);
}

.team-card {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border-radius: var(--radius-l);
  background-size: cover;
  background-position: center 10%;
  box-shadow: var(--shadow-soft);
}

.team-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 52%);
}

.team-card__content {
  position: absolute;
  inset: auto 1.25rem 1.25rem;
  z-index: 1;
  color: var(--color-white);
}

.team-card__content h3,
.team-card__content p {
  margin: 0;
}

.team-card__content h3 {
  font-size: 1.45rem;
  line-height: 1.05;
  font-weight: 800;
  text-transform: uppercase;
}

.team-card__content p {
  margin-top: 0.35rem;
  font-size: 1rem;
  font-weight: 300;
}


/* ============================================================================
   08. TREATMENTS
   ============================================================================ */

.treatment-section {
  min-height: auto;
  padding: 4rem 0;
  background: var(--color-aqua);
}

#traitements .section-heading {
  margin: 0;
}

#traitements .section-heading__title {
  margin-bottom: 1.2rem;
}

#traitements .section-heading__intro {
  margin: 2rem auto;
}

.treatment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-m);
  width: 100%;
  max-width: 420px;
  margin: 3rem auto 0;
  align-items: center;
  justify-items: center;
}

.treatment-pill {
  appearance: none;
  width: 100%;
  min-height: 50px;
  padding: 0.55rem 0.9rem;
  border: 2px solid var(--color-text);
  border-radius: var(--radius-pill);
  background: var(--color-text);
  color: var(--color-white);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.treatment-pill:hover,
.treatment-pill:focus-visible {
  transform: translateY(-1px);
  border-color: var(--color-text);
  background: transparent;
  color: var(--color-text);
}


/* ============================================================================
   09. FULL-IMAGE TARIFS / LINKS SECTION
   ============================================================================ */

.tarifs-image-section {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

.tarifs-image-section img {
  width: 100%;
  height: 100svh;
  object-fit: cover;
  object-position: center;
}

.tarifs-image-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08),
    rgba(0, 0, 0, 0.18)
  );
  pointer-events: none;
}

.tarifs-image-section__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transform: translateY(-1%);
}

.image-action-buttons {
  display: flex;
  width: min(100%, 420px);
  flex-direction: column;
  gap: var(--gap-s);
}

.image-action-pill {
  appearance: none;
  flex: 0 0 auto;
  width: 100%;
  min-height: 54px;
  padding: 0.9rem 1.35rem;
  border: 2px solid var(--color-white);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-text);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.image-action-pill--filled {
  background: transparent;
  color: var(--color-white);
}

.image-action-pill:hover,
.image-action-pill:focus-visible {
  transform: translateY(-2px);
}


/* ============================================================================
   10. CONTACT
   ============================================================================ */

#contact {
  display: flex;
  min-height: auto;
  align-items: flex-start;
  padding: 4rem 0;
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-s);
  width: min(100%, 420px);
  margin: 2.5rem auto 0;
  justify-content: center;
}

.contact-actions .button {
  width: 100%;
  min-width: 0;
  background: var(--color-text);
  color: var(--color-white);
  border: 2px solid var(--color-text);
}

.contact-actions .button:not(.contact-button--inverted):hover,
.contact-actions .button:not(.contact-button--inverted):focus-visible {
  background: var(--color-text);
  color: var(--color-white);
  border-color: var(--color-text);
}

.contact-actions .contact-button--inverted {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

.contact-actions .contact-button--inverted:hover,
.contact-actions .contact-button--inverted:focus-visible {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-m);
  max-width: 920px;
  margin: 3rem auto 0;
}

.contact-info-card {
  display: flex;
  min-height: auto;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  border: 1px solid #e5edf1;
  border-radius: var(--radius-l);
  background: #f6f8fa;
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.contact-info-card h3,
.contact-info-card p {
  margin: 0;
}

.contact-info-card h3 {
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.contact-info-card h3 + p {
  margin-top: 0.8rem;
}

.contact-info-card p + h3 {
  margin-top: 2rem;
}

.contact-info-card p {
  color: var(--color-text-soft);
  font-size: 1rem;
  line-height: 1.45;
  text-transform: none;
  overflow-wrap: anywhere;
}

.contact-info-card a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-info__note {
  margin: 1.5rem 0 0;
  color: var(--color-text-soft);
  font-size: 1rem;
  line-height: 1.5;
  text-transform: uppercase;
}


/* ============================================================================
   11. MODALS — SHARED
   ============================================================================ */

body.modal-open {
  overflow: hidden;
}

.urgence-modal,
.treatment-modal,
.tarifs-modal,
.liens-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
}

.urgence-modal.is-open,
.treatment-modal.is-open,
.tarifs-modal.is-open,
.liens-modal.is-open {
  display: block;
}

.urgence-modal__backdrop,
.treatment-modal__backdrop,
.tarifs-modal__backdrop,
.liens-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.urgence-modal__close,
.treatment-modal__close,
.tarifs-modal__close,
.liens-modal__close {
  appearance: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}


/* ============================================================================
   12. URGENCE MODAL
   ============================================================================ */

.urgence-modal__box {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: min(calc(100% - 2rem), 760px);
	min-height: 520px;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-l);
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: var(--shadow-modal);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.urgence-modal__close {
  color: var(--color-white);
}

.urgence-modal__body {
  text-align: center;
  transform: translateY(-8%);
}

.urgence-modal__body h3 {
  margin: 0 2.5rem 1.5rem;
  color: var(--color-white);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.urgence-modal__body p {
  max-width: 42ch;
  margin: 0 auto;
  color: var(--color-white);
  font-size: 1.05rem;
  line-height: 1.5;
}

.urgence-modal__actions {
  display: flex;
  flex-direction: column;
  gap: var(--gap-s);
  margin-top: 5rem;
}

.urgence-modal__phone {
  display: inline-flex;
  min-height: 84px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-red);
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  transition: transform 0.2s ease;
}

.urgence-modal__phone:hover,
.urgence-modal__phone:focus-visible {
  transform: translateY(-2px);
}

.urgence-modal__phone small {
  margin-top: 0.35rem;
  font-size: .95rem;
  line-height: 1.2;
  font-weight: 500;
  text-transform: none;
}

.urgence-modal__phone span {
  font-size: 1.15rem;
  line-height: 1;
}


/* ============================================================================
   13. TREATMENT MODAL
   ============================================================================ */

.treatment-modal__box {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  width: min(calc(100% - 2rem), 70vh);
  height: min(78svh, 680px);
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.75rem;
  border-radius: var(--radius-modal);
  background: var(--color-white);
  box-shadow: var(--shadow-modal);
  transform: translate(-50%, -50%);
}

.treatment-modal__close {
  color: var(--color-text);
}

.treatment-modal__body {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.treatment-modal__body h3 {
  flex: 0 0 auto;
  margin: 0 2.5rem 1rem 0;
  color: var(--color-text);
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.05;
  font-weight: 800;
  text-transform: uppercase;
}

.treatment-modal__content {
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 0.25rem;
  overflow-y: auto;
}

.treatment-modal__content p,
.treatment-modal__content ul {
  max-width: 65ch;
  margin: 0;
  color: var(--color-text);
  line-height: 1.6;
}

.treatment-modal__content p + p,
.treatment-modal__content p + ul,
.treatment-modal__content ul + p,
.treatment-modal__content ul + ul {
  margin-top: 0.85rem;
}

.treatment-modal__content ul {
  padding-left: 1.1rem;
}

.treatment-modal__nav {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  gap: var(--gap-xs);
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e5edf1;
}

.treatment-modal__prev,
.treatment-modal__next {
  appearance: none;
  width: 44px;
  height: 44px;
  border: 1px solid #dbe5ea;
  border-radius: var(--radius-pill);
  background: #f6f8fa;
  color: var(--color-text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.treatment-modal__prev:hover,
.treatment-modal__prev:focus-visible,
.treatment-modal__next:hover,
.treatment-modal__next:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 255, 255, 0.35);
  background: #eef7f8;
}


/* ============================================================================
   14. TARIFS + LIENS MODALS
   ============================================================================ */

.tarifs-modal__box,
.liens-modal__box {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: min(calc(100% - 2rem), 720px);
  max-height: min(78svh, 680px);
  padding: 1.5rem 1.5rem 1.75rem;
  overflow: hidden;
  border-radius: var(--radius-modal);
  background: var(--color-white);
  box-shadow: var(--shadow-modal);
  transform: translate(-50%, -50%);
}

.tarifs-modal__close,
.liens-modal__close {
  color: var(--color-text);
}

.tarifs-modal__body h3,
.liens-modal__body h3 {
  margin: 0 2.5rem 1.25rem 0;
  color: var(--color-text);
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.05;
  font-weight: 800;
  text-transform: uppercase;
}

.tarifs-modal__content,
.liens-modal__content {
  max-height: calc(min(78svh, 680px) - 6rem);
  padding-right: 0.25rem;
  overflow-y: auto;
}

.tarifs-modal__content p,
.liens-modal__content p {
  margin: 0;
  color: var(--color-text);
  line-height: 1.6;
}

.tarifs-modal__content p + p,
.liens-modal__content p + p {
  margin-top: 1rem;
}

.liens-modal__actions {
  display: flex;
  flex-direction: column;
  gap: var(--gap-s);
  margin-top: 2rem;
}

.liens-modal__actions .button {
  width: 100%;
  border: 2px solid var(--color-text);
  background: var(--color-text);
  color: var(--color-white);
}


/* ============================================================================
   15. FOOTER
   ============================================================================ */

.site-footer {
  padding: 1.5rem 0 2rem;
  background: var(--color-aqua);
}

.site-footer__inner {
  display: flex;
  justify-content: center;
}

.site-footer__back-to-top {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.3rem;
  border: 2px solid var(--color-text);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font-weight: 800;
  text-transform: uppercase;
}


/* ============================================================================
   16. TABLET / LANDSCAPE — 768px to 1199px
   ============================================================================ */

@media (min-width: 768px) and (max-width: 1199px) {
  .container {
    width: min(calc(100% - var(--container-padding)), var(--container));
  }

  /* Hero buttons: three columns, Urgence remains in the third column. */
 .hero__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  grid-auto-rows: 72px;
  width: min(100%, 640px);
  max-width: none;
  align-items: stretch;
  justify-content: center;
  gap: var(--gap-s) 1.2rem;
}

.hero__actions .button {
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: none;
  min-height: 0;
}

.hero__actions .button--red {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 300px);
}

  /* Team: three columns, taller portraits, image lifted upward. */
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-card {
    min-height: 480px;
    max-height: none;
    background-position: center 10%;
  }

  /* Treatments: two columns with no empty forced last row. */
  .treatment-grid {
    grid-template-columns: repeat(2, 240px);
    max-width: 520px;
    gap: var(--gap-l);
    justify-content: center;
  }

  .treatment-pill {
    width: 240px;
    max-width: none;
  }

  .treatment-grid .treatment-pill:last-child {
    grid-column: auto;
    justify-self: stretch;
    width: 240px;
  }

  /* Tarifs image section buttons. */
  .image-action-buttons {
    width: auto;
    flex-direction: row;
    justify-content: center;
  }

  .image-action-pill {
    width: 260px;
    max-width: 260px;
    flex: 0 0 260px;
  }

  /* Contact buttons: two on top, Google Maps centered below. */
  .contact-actions {
    grid-template-columns: repeat(2, minmax(0, 300px));
    width: min(100%, 640px);
    margin-top: 4rem;
    gap: var(--gap-s) 1.2rem;
  }



  /* Contact information cards. */
  .contact-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    margin-top: 4rem;
  }

  .contact-info-card {
    min-height: 320px;
    padding: 2rem;
  }

  /* Modal action rows. */
  .urgence-modal__actions,
  .liens-modal__actions {
    flex-direction: row;
    justify-content: center;
  }

  .urgence-modal__phone,
  .liens-modal__actions .button {
    min-width: 240px;
  }

  .liens-modal__actions .button {
    width: auto;
  }
}


/* ============================================================================
   17. MOBILE — 767 and down
   ============================================================================ */


@media (max-width: 767px) {
  .treatment-grid {
    gap: 1.1rem;
  }

  .treatment-pill {
    min-height: 58px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .hero__actions,
  .contact-actions,
  .image-action-buttons,
  .treatment-grid {
    width: min(100%, 340px);
  }

  .button,
  .image-action-pill,
  .treatment-pill {
    width: 100%;
    padding: 1rem 1.25rem;
  }

  .treatment-pill {
    min-height: 58px;
  }
}

@media (max-width: 767px) {
  .tarifs-image-section {
    min-height: 90svh;
  }

  .tarifs-image-section img {
    height: 90svh;
  }
}

@media (max-width: 767px) {
  .urgence-modal__body {
    transform: none;
  }

  .urgence-modal__actions {
    margin-top: 2rem;
  }
}

/* ============================================================================
   17. DESKTOP — 1200px and up
   ============================================================================ */

@media (min-width: 1200px) {
  .container {
    width: min(calc(100% - var(--container-padding)), var(--container));
  }

  .hero__content {
    padding: 3rem 0 4rem;
  }

  .hero__logo {
    width: 120px;
  }

  /* Desktop hero restored to original stacked button layout. */
 .hero__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 260px));
  width: min(100%, 840px);
  max-width: none;
  justify-content: center;
  align-items: stretch;
  gap: var(--gap-s) 1.2rem;
  margin-top: 8rem;
}

  .hero__actions .button {
    width: 100%;
    min-width: 0;
    max-width: none;
	height: 100%;
  min-height: 54px;
  }

  /* Desktop team: original three-column composition. */
  #equipe {
    padding: 5rem 0 5.5rem;
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-card {
    min-height: 520px;
    max-height: none;
    background-position: center 20%;
  }

  /* Desktop treatments: original three-column layout with last pill centered. */
  .treatment-section {
    padding: 7rem 0;
  }

  .treatment-grid {
    grid-template-columns: repeat(3, 240px);
    max-width: 820px;
    gap: var(--gap-l);
    margin-top: 6rem;
    justify-content: center;
  }

  .treatment-pill {
    width: 240px;
    max-width: none;
    padding: 0.75rem 1.1rem;
  }

  .treatment-grid .treatment-pill:last-child {
    grid-column: 2;
    justify-self: center;
    width: 240px;
  }

  /* Desktop tarifs image buttons. */
  .image-action-buttons {
    width: auto;
    flex-direction: row;
    justify-content: center;
  }

  .image-action-pill {
    width: 260px;
    max-width: 260px;
    flex: 0 0 260px;
  }

  /* Desktop contact restored to original row layout. */
  #contact {
    min-height: 100svh;
    align-items: center;
    padding: var(--section-pad-y) 0 5rem;
  }

  .contact-actions {
    display: flex;
    width: auto;
    flex-direction: row;
    justify-content: center;
    gap: var(--gap-s);
    margin-top: 4rem;
  }

  .contact-actions .button {
    width: auto;
    min-width: 260px;
    max-width: none;
  }

  .contact-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    margin-top: 4rem;
  }

  .contact-info-card {
    min-height: 320px;
    padding: 2rem;
  }

  /* Modal desktop padding. */
  .treatment-modal__box,
  .tarifs-modal__box,
  .liens-modal__box {
    padding: 2rem 2rem 2.25rem;
  }

  .urgence-modal__actions,
  .liens-modal__actions {
    flex-direction: row;
    justify-content: center;
  }

  .urgence-modal__phone,
  .liens-modal__actions .button {
    min-width: 240px;
  }

  .liens-modal__actions .button {
    width: auto;
  }
}


/* ============================================================================
   18. LARGE DESKTOP — 1280px and up
   ============================================================================ */

@media (min-width: 1280px) {
  .hero__logo {
    width: 140px;
  }

  .pricing-section__content p,
  .contact-info__block p {
    font-size: 1.12rem;
  }
}






/* ============================================================================
   MOBILE FINAL ADJUSTMENTS
   ============================================================================ */

@media (max-width: 767px) {
  /* Hero: "Nous contacter" button with 85% opacity white background */
  .hero__actions .button--light {
    background: rgba(255, 255, 255, 0.85);
  }

  /* Treatments: double space before next section */
  .treatment-section {
    padding-bottom: 8rem;
  }

  /* Tarifs image section: move both buttons 3% lower */
  .tarifs-image-section__content {
    transform: translateY(3%);
  }

  /* Contact: double space between Google Maps button and info cards */
  .contact-info {
    margin-top: 6rem;
  }
	
	.team-card {
    min-height: 400px; /* was 600px, now 2/3 */
  }
}

/* MOBILE — treatments in 2 half-width columns */

@media (max-width: 767px) {
  .treatment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 340px);
    max-width: 340px;
    gap: 0.85rem;
    justify-content: center;
  }

  .treatment-pill {
    width: 100%;
    min-height: 54px;
    padding: 0.7rem 0.55rem;
 
  }

  .treatment-grid .treatment-pill:last-child {
    grid-column: auto;
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 767px) {
  .image-action-pill:not(.image-action-pill--filled) {
    background: rgba(255, 255, 255, 0.85);
  }
}

/* TEAM PORTRAITS — 500px height between 500px and 767px */

@media (min-width: 500px) and (max-width: 767px) {
  .team-card {
    min-height: 500px;
  }
}

/* ============================================================================
   MOBILE — taller modals
   ============================================================================ */

@media (max-width: 767px) {
  /* Treatment modal: taller + 5% higher */
  .treatment-modal__box {
    height: 80svh;
    max-height: 80svh;
  }

  /* Treatment modal content adapts to taller box */
  .treatment-modal__content {
    max-height: none;
  }

  /* Tarifs modal: taller */
  .tarifs-modal__box {
    height: 76svh;
    max-height: 76svh;
  }

}

/* ============================================================================
   MOBILE — modal treament bigger arrows
   ============================================================================ */

@media (max-width: 767px) {

  /* Treatment modal: bigger arrow bubbles */
  .treatment-modal__prev,
  .treatment-modal__next {
    width: 54px;
    height: 54px;
    font-size: 1.45rem;
    font-weight: 1200;
  }

}

/* ============================================================================
   MOBILE — responsive return to the line for link's buttons
   ============================================================================ */

.mobile-break {
  display: none;
}

@media (max-width: 767px) {
  .mobile-break {
    display: inline;
  }

  .image-action-buttons {
    width: min(100%, 260px);
    gap: 1.2rem;
  }

  .image-action-pill {
    min-height: 78px;
    padding: 1.15rem 1.25rem;
    line-height: 1.15;
  }
}

@media (max-width: 767px) {
  .tarifs-image-section__content {
    transform: translateY(7%);
  }
}