/* ============================================================================
   modern.css — additive modernization layer (loaded AFTER maitre-ka.webflow.css)

   Purpose: make the ported Webflow site feel current without touching the
   verbatim Webflow stylesheet, the copy, or the colour palette. Everything here
   only changes shape, spacing, elevation and interaction (hover/focus/motion).

   Palette is reused as-is via the existing Webflow variables:
     --main     #23286b  (navy)      --second  #bc8c16 (gold)
     --mainlink #151946  (deep navy)
   No new brand hues are introduced; shadows/surfaces are neutral navy/white
   tints used purely for elevation.

   Three areas (see the three blocks below):
     1. Unified button system
     2. Form fields + consent checkbox
     3. Real card surfaces on the dark bands
   ========================================================================== */


/* ── 1. Unified button system ─────────────────────────────────────────────
   The site shipped four different button looks (gold square `.primary-button`
   /`.boutonformule`/`.submit-button-2` with no hover, vs. rounded `.brix---btn-
   primary` with a lift). Normalise radius, padding rhythm and motion across all
   of them while keeping each button's own colour. */

.primary-button,
.boutonformule,
.submit-button-2,
.brix---btn-primary,
.nav-bar-promoted {
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease, color .2s ease;
}

/* Comfortable, consistent hit area (was 9–26px of vertical padding depending
   on the button). The gold CTAs keep their uppercase tracking from Webflow. */
.primary-button,
.boutonformule,
.submit-button-2 {
  padding: 14px 32px;
}
.brix---btn-primary {
  padding: 14px 32px;
}
.nav-bar-promoted {
  padding: 10px 18px;
}
/* On the promoted link's own page Webflow adds `.w--current { border-radius: 0 }`
   (higher specificity), which would square just that one button — keep it rounded. */
.nav-bar-promoted.w--current {
  border-radius: 10px;
}

/* One shared, subtle hover lift + elevation for every solid CTA. Existing
   colour-on-hover rules (e.g. .primary-button → darker gold) are preserved
   because we don't set background-color here. */
.primary-button:hover,
.boutonformule:hover,
.submit-button-2:hover,
.brix---btn-primary:hover,
.nav-bar-promoted:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(21, 25, 70, .22);
}
.primary-button:active,
.boutonformule:active,
.submit-button-2:active,
.brix---btn-primary:active,
.nav-bar-promoted:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(21, 25, 70, .18);
}

/* Keyboard focus ring, on-palette and visible on each background:
   navy ring on the gold buttons, gold ring on the navy buttons. */
.primary-button:focus-visible,
.boutonformule:focus-visible,
.submit-button-2:focus-visible {
  outline: 3px solid var(--main);
  outline-offset: 2px;
}
.brix---btn-primary:focus-visible,
.nav-bar-promoted:focus-visible {
  outline: 3px solid var(--second);
  outline-offset: 2px;
}


/* ── 2. Form fields + consent checkbox ────────────────────────────────────
   The Webflow defaults were 38px-tall square boxes with a 1px #ccc border,
   14px text and no real focus state. Give them room, a soft radius, a clear
   focus ring and 16px text (so iOS doesn't zoom on focus). */

.w-input,
.w-select,
textarea.w-input,
.text-field-2,
.text-field-3,
.text-field-4,
.text-field-5 {
  height: auto;
  min-height: 48px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--main);
  background-color: #fff;
  border: 1.5px solid #d3d6e6;
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

textarea.w-input,
.textarea {
  min-height: 132px;
  resize: vertical;
}

.w-input::placeholder,
textarea.w-input::placeholder {
  color: #9aa0b5;
}

.w-input:focus,
.w-select:focus,
textarea.w-input:focus {
  border-color: var(--main);
  box-shadow: 0 0 0 3px rgba(35, 40, 107, .15);
  outline: none;
}

/* Field labels: one consistent weight/spacing instead of the mix of plain and
   <strong> labels. */
.field-label,
.field-label-2,
.field-label-3,
.field-label-4,
.field-label-5,
.field-label-6,
.field-label-7,
.field-label-8,
.field-label-9 {
  display: block;
  margin-bottom: 6px;
  color: var(--main);
  font-size: 15px;
  font-weight: 600;
}

/* Consent checkbox: the default checkbox was floated hard against the CGV text.
   Lay it out as a flex row with a gap and a palette-tinted control. */
.w-checkbox.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-left: 0;
  margin-bottom: 18px;
}
.checkbox-field .w-checkbox-input {
  float: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--main);
  cursor: pointer;
}
.checkbox-field .w-form-label {
  margin: 0;
  color: var(--main);
  line-height: 1.45;
  cursor: pointer;
}

/* Sub-note under a paid form's heading (e.g. duration): smaller, lighter type.
   Tighten the heading's bottom gap only when this note follows it. */
.heading-6:has(+ .form-subtitle) {
  margin-bottom: 8px;
}
.form-subtitle {
  margin-top: 0;
  margin-bottom: 30px;
  color: var(--main);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
}


/* ── 3. Real card surfaces (dark bands) ───────────────────────────────────
   `.card` (the "Pourquoi choisir…", payment/honoraires/horaires, and télécon-
   sultation blocks) was bare text on navy. All nine instances sit inside a
   `.bg-dark` section, so give them an actual elevated surface — kept within the
   palette via translucent white over the navy. */

.bg-dark .grid-3-columns {
  align-items: stretch;
}

.bg-dark .card {
  height: 100%;
  padding: 30px 28px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.bg-dark .card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .28);
}


/* ── 4. Header & navigation ───────────────────────────────────────────────
   The header stacked two full bars (the menu row + a bulky ~70px navy "Prendre
   rendez-vous" band), the "Compétences" dropdown had no caret and opened a bare
   grey box, and the mobile menu was a flat text list. Tighten the two rows into
   one cohesive sticky header, make the dropdown a real menu, and give the mobile
   menu proper tap targets — all within the existing palette.
   Webflow collapses this navbar to the hamburger at 991px (data-collapse=medium),
   so desktop-only rules are gated at min-width:992px and mobile at max-width:991px. */

/* One shared shadow so the menu row + utility bar read as a single surface. */
.navbar {
  box-shadow: 0 2px 14px rgba(21, 25, 70, .08);
}

/* Slim the navy "Prendre rendez-vous en ligne" band from a tall block into a
   tight top utility bar, and wake up its previously inert link (transition:none). */
.navbar .brix---top-bar-small-padding {
  padding-top: 9px;
  padding-bottom: 9px;
}
.navbar .brix---top-bar-wrapper-2 {
  font-size: 15px;
  line-height: 1.4;
}
.brix---link-wrapper-white {
  transition: opacity .2s ease;
}
.brix---link-wrapper-white:hover {
  opacity: .85;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.brix---link-wrapper-white .brix---link-icon-right {
  transition: transform .2s ease;
}
.brix---link-wrapper-white:hover .brix---link-icon-right {
  transform: translateX(3px);
}

/* "Compétences" dropdown: add the missing caret affordance (the toggle already
   reserves room on its right), and rotate it when the menu is open. */
.navbar .menudropdown.w-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-right: 18px;
  cursor: pointer;
}
.navbar .menudropdown.w-dropdown-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform .2s ease;
}
.navbar .menudropdown.w-dropdown-toggle.w--open::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}

/* Desktop: turn the bare grey dropdown box into a floating menu card. */
@media (min-width: 992px) {
  .navbar .w-dropdown-list {
    margin-top: 8px;
    padding: 8px;
    min-width: 230px;
    background-color: var(--menu);
    border: 1px solid rgba(35, 40, 107, .1);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(21, 25, 70, .16);
  }
  /* Bridge the 8px visual gap above the card with a transparent, hoverable
     strip. Webflow's hover dropdown (data-delay="0") closes on mouseleave of
     .w-dropdown, so without this the cursor crossing the gap toggle→menu would
     leave the element and snap the menu shut. The strip is a child of the list
     (itself inside .w-dropdown), so travelling over it never fires mouseleave. */
  .navbar .w-dropdown-list::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -8px;
    height: 8px;
  }
  .navbar .w-dropdown-list .w-dropdown-link {
    padding: 11px 14px;
    border-radius: 8px;
    transition: background-color .15s ease, color .15s ease;
  }
  .navbar .w-dropdown-list .w-dropdown-link:hover {
    background-color: var(--lightblue);
  }
}

/* Mobile (collapsed): full-width rows, clear separators, generous tap targets,
   and keep the promoted "Téléconsultation" looking like a button. */
@media (max-width: 991px) {
  .navbar .nav-menu {
    background-color: var(--menu);
    padding: 6px 0 14px;
    box-shadow: 0 14px 30px rgba(21, 25, 70, .12);
  }
  .navbar .nav-menu .nav-link,
  .navbar .nav-menu .menudropdown {
    width: 100%;
    padding: 15px 24px;
    border-bottom: 1px solid rgba(35, 40, 107, .08);
    font-size: 18px;
  }
  .navbar .nav-menu .w-dropdown {
    width: 100%;
  }
  .navbar .w-dropdown-list .w-dropdown-link {
    padding: 13px 24px 13px 38px;
    font-size: 17px;
  }
  .navbar .nav-bar-promoted.w-nav-link {
    display: block;
    width: auto;
    margin: 16px 24px 4px;
    text-align: center;
  }
}


/* ── Reduced motion ───────────────────────────────────────────────────────
   Honour `prefers-reduced-motion` (as anchor-offset.js already does): keep the
   colour/elevation hover feedback, but drop the translate movement + its easing. */
@media (prefers-reduced-motion: reduce) {
  .primary-button,
  .boutonformule,
  .submit-button-2,
  .brix---btn-primary,
  .nav-bar-promoted,
  .bg-dark .card,
  .brix---link-wrapper-white .brix---link-icon-right {
    transition: none;
  }
  .primary-button:hover,
  .boutonformule:hover,
  .submit-button-2:hover,
  .brix---btn-primary:hover,
  .nav-bar-promoted:hover,
  .bg-dark .card:hover,
  .brix---link-wrapper-white:hover .brix---link-icon-right {
    transform: none;
  }
}
