/* Narimen brand fonts, loaded last on public pages (layouts/app + layouts/appauth). */

/* Titles: Abigant Serif Extra Expanded, then Novalux Light Expanded.
   Only installed copies are used until the font files are added to public/fonts/brand/. */
@font-face {
  font-family: "Narimen Title";
  src: local("Abigant Serif Extra Expanded"), local("AbigantSerif-ExtraExpanded");
  font-display: swap;
}
@font-face {
  font-family: "Narimen Title Alt";
  src: local("Novalux Light Expanded"), local("Novalux-LightExpanded");
  font-display: swap;
}

:root {
  --font_title: "Narimen Title", "Narimen Title Alt", serif;
  --font_text: "Quicksand", sans-serif;

  /* Point every theme font at Quicksand so subtitles and body text follow the brand. */
  --font_primary: var(--font_text);
  --font_kanit: var(--font_text);
  --font_recoleta: var(--font_text);
  --font_teko: var(--font_text);
  --font_dmsans: var(--font_text);
  --font_plusjakartasans: var(--font_text);
  --font_beatricetrial: var(--font_text);
  --font_khand: var(--font_text);
  --font_getaway: var(--font_text);
  --font_instrumentsans: var(--font_text);
  --font_spacegrotesk: var(--font_text);
  --font_canelatrial: var(--font_text);
  --font_bonvivant: var(--font_text);
}

/* Keeps the hero photo's proportions now that it has width/height attributes. */
.hero-image {
  height: auto;
}

body,
h3, h4, h5, h6 {
  font-family: var(--font_text);
}

/* !important is needed: most titles carry an inline font-family. Icons are left alone. */
h1,
.section-title,
.intro-title,
.highlight-text,
.header-content,
.grand-title,
.clinical-case-title,
.videomonthtitle,
.font-title,
:is(h1, .section-title, .intro-title, .highlight-text, .header-content, .grand-title, .font-title)
  :not(i, [class*="fa-"], [class*="bx"], svg, svg *) {
  font-family: var(--font_title) !important;
}

/* "Suivez-nous" sidebar (layouts/social.blade.php).
   White + mix-blend-mode: difference inverts against whatever is behind it,
   pixel by pixel, so it reads on dark, light and photo sections alike. */
#fixed-social {
  position: fixed;
  top: 341px;
  z-index: 6;
  margin-left: 30px;
  font-size: 20px;
  color: #fff;
  mix-blend-mode: difference;
}
#fixed-social .title-social {
  display: block;
  margin: 0 0 10px 12px;
  transform: rotate(-90deg);
  transform-origin: left top;
  font-family: var(--font_text);
  font-size: 18px;
  font-weight: normal;
  color: inherit;
}
#fixed-social hr {
  width: 0;
  height: 100px;
  margin: 10px 0 10px 20px;
  border: none;
  border-left: 2px solid currentColor;
  opacity: 1;
}
#fixed-social a {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 1px;
  line-height: 40px;
  text-align: center;
  color: inherit;
}
#fixed-social a span {
  position: absolute;
  left: 30px;
  width: 60px;
  line-height: 40px;
  text-align: center;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, left 0.3s, visibility 0.3s;
}
#fixed-social a:is(:hover, :focus-visible) span {
  left: 41px;
  opacity: 1;
  visibility: visible;
}
#fixed-social a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 50%;
}

/* Login, register, password pages (layouts/appauth adds .auth-brand):
   brand beige instead of the admin theme's yellow/blue. */
.auth-brand .btn-primary {
  border: 1px solid #e8dbcf;
  border-radius: 100px;
  background: #e8dbcf;
  color: #1e1e1e;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 12px 24px;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.auth-brand .btn-primary label { cursor: pointer; margin: 0; color: inherit; }
.auth-brand .btn-primary:hover,
.auth-brand .btn-primary:focus-visible,
.auth-brand .btn-primary:active {
  border-color: #ffffff;
  background: #ffffff;
  color: #1e1e1e;
}
.auth-brand .btn-primary:focus-visible { outline: 2px solid #e8dbcf; outline-offset: 3px; }
.auth-brand a:not(.btn) { color: #e8dbcf; text-decoration: underline; text-underline-offset: 3px; }
.auth-brand a:not(.btn):hover { color: #ffffff; }
.auth-brand .form-control:focus {
  border-color: #e8dbcf;
  box-shadow: 0 0 0 0.2rem rgba(232, 219, 207, 0.35);
}
.auth-brand .form-check-input:checked { background-color: #e8dbcf; border-color: #e8dbcf; }
.auth-brand .form-check-input:focus { border-color: #e8dbcf; box-shadow: 0 0 0 0.2rem rgba(232, 219, 207, 0.35); }
.auth-brand .input-group-text { background: #ffffff; }

/* Home "Moments clés" video: original play button, with the whole circle
   tinted in brand beige at a soft opacity so the photo still shows through. */
.about-area-1 .about-thumb .wc-btn-circle.video-popup {
  background-color: rgba(232, 219, 207, 0.45);
  transition: background-color 0.3s ease;
}
.about-area-1 .about-thumb .wc-btn-circle.video-popup:hover,
.about-area-1 .about-thumb .wc-btn-circle.video-popup:focus-visible {
  background-color: rgba(232, 219, 207, 0.7);
}

/* Empty list message (components/empty-state.blade.php) */
.empty-state {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
  background: rgba(232, 219, 207, 0.35);
  border: 1px solid #e8dbcf;
  border-radius: 30px;
}
.empty-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #e8dbcf;
  color: #1e1e1e;
  font-size: 26px;
}
.empty-state__text {
  margin: 0;
  font-family: var(--font_text);
  font-size: 18px;
  line-height: 1.5;
  color: #1e1e1e;
}

/* ---------- Responsive fixes ----------
   The layout sets title sizes and footer offsets inline or in per-pixel media
   queries, so these overrides need !important or a more specific selector. */

/* Big titles: shrink on tablets and phones so words never break mid-word. */
@media (max-width: 991px) {
  :is(h1, .section-title, .intro-title, .highlight-text, .header-content, .grand-title,
      .clinical-case-title, .videomonthtitle, .tem-text, .font-title) {
    font-size: clamp(28px, 7vw, 60px) !important;
    line-height: 1.1 !important;
    word-break: normal !important;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  :is(h1, .section-title, .intro-title, .highlight-text, .header-content, .grand-title, .font-title)
    :is(label, span):not([class*="fa-"], .section-title-slim, .section-title-slim *) {
    font-size: inherit !important;
  }
  .section-title-slim {
    font-size: clamp(18px, 5vw, 32px) !important;
  }
}
@media (max-width: 575px) {
  :is(h1, .section-title, .intro-title, .highlight-text, .header-content, .grand-title,
      .clinical-case-title, .videomonthtitle, .tem-text, .font-title) {
    font-size: clamp(26px, 9vw, 40px) !important;
  }
}

/* Hero "Dr Narimen DJERBI" pill: some phone breakpoints set it to 52px. */
@media (max-width: 991px) {
  .hero-area-1 .custom-button {
    font-size: 28px !important;
    max-width: 100%;
    white-space: normal;
  }
}
@media (max-width: 575px) {
  .hero-area-1 .custom-button {
    font-size: 20px !important;
    padding: 10px 26px !important;
  }
}

/* Footer: the layout gives its columns fixed widths and negative margins
   tuned for desktop; on smaller screens let the theme grid place them. */
footer.footer-area .custom-contact-info {
  max-width: 100%;
}
@media (max-width: 991px) {
  footer.footer-area .footer-area-inner > *,
  footer.footer-area .footer-img,
  footer.footer-area .footer-logo,
  footer.footer-area .whatsapp-button,
  footer.footer-area .contact-hour {
    width: auto !important;
    max-width: 100%;
    min-width: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  footer.footer-area .icons-footer {
    width: auto !important;
    max-width: 280px;
    gap: 16px;
  }
  footer.footer-area .footer-nav-list,
  footer.footer-area p {
    overflow-wrap: anywhere;
  }
}
@media (max-width: 575px) {
  footer.footer-area .footer-area-inner {
    text-align: center;
    justify-items: center;
  }
  footer.footer-area .icons-footer,
  footer.footer-area .contact-hour .d-flex,
  footer.footer-area .contact-hour span {
    justify-content: center;
  }
}

/* ---------- Home page (front/home/home.blade.php), phones and tablets only ----------
   Desktop (992px and up) keeps the layout's own rules untouched.
   Hero follows the "A, Centred" mockup: no photo, everything on the centre line,
   a thin beige rule, a scroll cue. "body" in front lifts these over the layout's
   later per-width rules; !important beats the generic title sizes above and
   inline styles. The title tops out near 14vw so "PERFECTLY" fits on 320px. */
@media (max-width: 991px) {
  body .hero-area-1 {
    display: flex;
    align-items: center;
    height: auto;
    min-height: 100svh;
  }
  body .hero-area-1::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 70% at 50% 50%, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.7));
  }
  body .hero-area-1::after {
    content: "";
    position: absolute;
    bottom: 34px;
    left: 50%;
    width: 1px;
    height: 54px;
    background: linear-gradient(rgba(255, 255, 255, 0.8), transparent);
  }
  body .hero-area-1 > .container {
    width: 100%;
  }
  body .hero-area-1-inner {
    width: 100%;
    margin: 0;
    padding: 120px 0 110px;
  }
  body .hero-area-1 .hero-image {
    display: none;
  }
  /* Drop the layout's per-width margins and its two-column grid. */
  body .hero-area-1 .section-content {
    display: block;
  }
  body .hero-area-1 .section-content .content-first,
  body .hero-area-1 .header-content,
  body .hero-area-1 .grand-title,
  body .hero-area-1 .section-title-slim,
  body .hero-area-1 .custom-button {
    width: auto;
    margin-left: 0;
    margin-top: 0;
  }
  body .hero-area-1 .header-content {
    text-align: center;
  }
  body .hero-area-1 .section-title {
    font-size: clamp(40px, 14vw, 84px) !important;
    letter-spacing: -0.01em;
  }
  body .hero-area-1 .grand-title {
    font-size: 1em;
  }
  /* Two fixed lines: "CLINIC" stays still, the typed word grows from the
     centre below it. The text animation drops the <br>, so add it back. */
  body .hero-area-1 .section-title-slim {
    display: block;
    min-height: 2.4em;
    margin: 0 0 1.2em;
    font-size: clamp(26px, 8.5vw, 48px) !important;
    line-height: 1.2 !important;
  }
  body .hero-area-1 #typed-text::before {
    content: "\A";
    white-space: pre;
  }
  body .hero-area-1 .section-title-slim br {
    display: none;
  }
  /* The text animation (SplitText) wraps each line in a div and freezes the
     alignment it had on load. Opened on desktop and then narrowed, the lines
     stayed left-aligned and "CLINIC" got its own div plus our break. */
  body .hero-area-1 .header-content div {
    text-align: center !important;
  }
  body .hero-area-1 .section-title-slim div {
    display: contents !important;
  }
  body .hero-area-1 .section-title-slim::before {
    content: "";
    display: block;
    width: 56px;
    height: 1px;
    margin: 0.7em auto 1em;
    background: #e8dbcf;
  }
  /* The theme gives the button wrapper a 6px left margin and the button a
     48px bottom margin (mb-5): one pushes it off centre, the other lifts the
     whole block. */
  body .hero-area-1 .btn-narimen {
    margin: 0;
    padding: 0;
  }
  body .hero-area-1 .custom-button {
    margin-bottom: 0 !important;
    font-size: clamp(22px, 6.8vw, 34px) !important;
    padding: 18px 40px !important;
  }
  body .hero-area-1 .custom-button .orth {
    font-size: inherit;
  }

  /* Care card 03 sits in a .text-center wrapper; align it like cards 01 and 02. */
  body .service-area .text-center .service-box {
    text-align: start;
  }
}
@media (max-width: 767px) {
  body .service-area .service-box .text {
    text-align: start !important;
  }
}
