@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;600&display=swap');

:root {
    --bs-body-font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
	--bs-body-bg: #212529;

    /* Palette originale — Cyan tech */
    --color-brand-cyan:        #4dbdd1;
    --color-brand-cyan-dark:   #1D809F;
    --color-brand-cyan-deeper: #155d74;
    --color-brand-cyan-bg:     #0E7490;

    /* Palette institutionnelle — Bleu profond + Teal légal */
    --color-inst-blue:         #185FA5;
    --color-inst-blue-dark:    #18345A;
    --color-inst-teal:         #1D9E75;
    --color-inst-teal-light:   #5DCAA5;
    --color-inst-teal-pale:    #9FE1CB;

    /* Palette clinique — Ardoise + Teal apaisant */
    --color-clin-slate:        #2A3441;
    --color-clin-slate-light:  #6B7FA8;
    --color-clin-teal:         #4dbdd1;
    --color-clin-teal-light:   #9FE1CB;
}

/* Scrollbar fine et dark */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #1D809F;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #155d74;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #1D809F #1a1a2e;
}

body,
html {
  width: 100%;
  height: 100%;
}

.content-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.content-section-heading h2, .content-section-heading .h2 {
  font-size: 3rem;
}
.content-section-heading h3, .content-section-heading .h3 {
  font-size: 1rem;
  text-transform: uppercase;
}


/* Vidéo en background */
#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Main content */
#content-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
	z-index: 2;
}

/* Overlay texte centré */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0 0 3rem 3rem;
    background: linear-gradient(
        to bottom,
        rgba(5, 15, 30, 0.0) 0%,
        rgba(5, 15, 30, 0.2) 50%,
        rgba(5, 15, 30, 0.85) 100%
    );
}

/* Titres responsives */
.header-overlay h1 {
    font-size: clamp(2rem, 7.2vw, 4.5rem);
    margin: 0;
    letter-spacing: 12px;
    color: #fff;
    font-weight: 300;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-overlay h5 {
    font-size: clamp(0.8rem, 2.4vw, 1.2rem);
    margin: 0;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 300;
}

/* Couleur des mots en surbrillance */
.header-overlay .banniere {
    color: #7197AD;
}


/*================================================================
  OVERLAY BOX / DECORATIONS
================================================================*/

/*----------------------------------------------------------------
  Conteneur principal de l'overlay
----------------------------------------------------------------*/
.overlay-box {
    position: relative;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(4px);	
    padding: 20px;
    border-radius: 0;
    overflow: hidden;
}

.overlay-box .container {
    text-align: left;
}

/*----------------------------------------------------------------
  Décorations terminal (coins / bordures angulaires)
----------------------------------------------------------------*/
.overlay-box .background {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.9) 3em,
        transparent 3em,
        transparent calc(100% - 3em),
        rgba(255, 255, 255, 0.9) calc(100% - 3em)
    );
    clip-path: polygon(
        evenodd,
        3em 0,
        3em 0.2em,
        0.2em 0.2em,
        0.2em 3em,
        0 3em,
        0 calc(100% - 3em),
        0.2em calc(100% - 3em),
        0.2em calc(100% - 0.2em),
        3em calc(100% - 0.2em),
        3em 100%,
        calc(100% - 3em) 100%,
        calc(100% - 3em) calc(100% - 0.2em),
        calc(100% - 0.2em) calc(100% - 0.2em),
        calc(100% - 0.2em) calc(100% - 3em),
        100% calc(100% - 3em),
        100% 3em,
        calc(100% - 0.2em) 3em,
        calc(100% - 0.2em) 0.2em,
        calc(100% - 3em) 0.2em,
        calc(100% - 3em) 0,
        0 0,
        0 100%,
        100% 100%,
        100% 0
    );
    pointer-events: none;
}


/*----------------------------------------------------------------
  Label
----------------------------------------------------------------*/
.tag-label {
    font-size: 11px;
    letter-spacing: 2px;
	word-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.doubledot-label {
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.hero-line {
    width: 40px;
    height: 1.5px;
    background: var(--color-brand-cyan-bg);
    margin: 0.8rem 0;
    opacity: 0.8;
}

/* Variantes hero-line selon palette */
.hero-line-inst { background: var(--color-inst-teal); }
.hero-line-clin { background: var(--color-clin-teal); }

/*----------------------------------------------------------------
  Typographie du titre principal (h1)
----------------------------------------------------------------*/
.overlay-box h1 {
	text-shadow: 0 2px 6px rgba(0,0,0,0.12);
    letter-spacing: clamp(2px, 1vw, 8px);
	font-weight: 400;
	color: #4a4a4a;
	margin: 0;
}
 
/*----------------------------------------------------------------
  Sous-titre (h5)
----------------------------------------------------------------*/
.overlay-box h5 {
    font-style: normal;         /* Force l'annulation de l'italique */
    font-weight: 300;           /* Utilise la variante légère de 'Source Sans 3' */
    font-size: 1.1rem;          /* Taille équilibrée */
    letter-spacing: 0.5px;      /* Un peu d'air entre les lettres */
    color: rgba(255, 255, 255, 0.7); /* Blanc adouci pour ne pas fatiguer l'oeil */
    margin-top: 5px;
}
 
/*----------------------------------------------------------------
  Overlay général de la section hero
----------------------------------------------------------------*/
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
}

/*----------------------------------------------------------------
  Couleur brand — bleu Portail Santé
  Variantes disponibles via classes utilitaires
----------------------------------------------------------------*/
.text-brand {
    color: var(--color-brand-cyan);
    text-shadow: none;
}

/* Variante institutionnelle (bleu profond + teal légal) */
.text-brand-inst {
    color: var(--color-inst-teal-light);
    text-shadow: none;
}

/* Variante clinique (ardoise + teal apaisant) */
.text-brand-clin {
    color: var(--color-clin-teal);
    text-shadow: none;
}


/*================================================================
  SIDEBAR / NAV — BASE
================================================================*/
#sidebar-wrapper {
  position: fixed;
  z-index: 998;
  right: 0;
  width: 220px;
  height: 100%;
  transform: translateX(250px);
  background: rgba(29, 128, 159, 0.9);
  border-left: 0px solid rgba(0, 0, 0, 0.7);
  box-shadow: -8px 0px 16px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s ease;
}

#sidebar-wrapper.active {
  transform: translateX(0);
  transition: transform 0.4s ease;
}

#sidebar-wrapper .sidebar-nav a {
    display: flex;
    align-items: center;
}

#sidebar-wrapper .sidebar-nav i {
    width: 30px;
    text-align: center;
}

.sidebar-nav {
  position: absolute;
  top: 0;
  width: 250px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Liens : flex pour aligner icône + texte */
.sidebar-nav li.sidebar-nav-item a {
  display: flex;
  align-items: center;
  gap: 0px;
  text-decoration: none;
  color: #fff;
  padding: 10px;
  border-left: 2px solid transparent;
}

.sidebar-nav li a:is(:hover, :focus),
.sidebar-nav li.active a {
    color: #fff !important;
    background: rgba(255,255,255,0.2);
    text-decoration: none;
}

/* Icône */
.sidebar-nav li.sidebar-nav-item a i {
  display: inline-block;
  width: 30px;
  min-width: 30px;
  text-align: center;
  margin-right: 10px;
}

/* Brand */
.sidebar-nav > .sidebar-brand {
  font-size: 1.2rem;
  background: rgba(52, 58, 64, 0.9);
  height: 80px !important;
  line-height: 50px;
  padding: 15px;
}

.sidebar-nav > .sidebar-brand a {
  color: #fff;
  text-decoration: none;
}

.sidebar-nav > .sidebar-brand a:hover {
  color: #fff;
  background: none;
}

.sidebar-nav-hr {
    border: 1px solid #ccc;
    margin: 5px 0;
}


/*================================================================
  THÈME GLOBAL — DARK
  Appliqué via <body class="theme-dark">
  Cyan tech #4dbdd1 sur fond sombre #0a1426
================================================================*/

/* Scrollbar */
body.theme-dark ::-webkit-scrollbar-track {
    background: #080f1e;
}
body.theme-dark ::-webkit-scrollbar-thumb {
    background: #1D809F;
}
body.theme-dark ::-webkit-scrollbar-thumb:hover {
    background: #4dbdd1;
}
body.theme-dark {
    scrollbar-color: #1D809F #080f1e;
}

/* Fond body */
body.theme-dark {
    --bs-body-bg: #0a1426;
}

/* Overlay dégradé bannière */
body.theme-dark .header-overlay {
    background: linear-gradient(
        to bottom,
        rgba(5, 10, 20, 0.0) 0%,
        rgba(5, 10, 20, 0.2) 50%,
        rgba(5, 10, 20, 0.88) 100%
    );
}

/* Mot en surbrillance bannière */
body.theme-dark .header-overlay .banniere {
    color: #4dbdd1;
}

/* Ligne décorative hero */
body.theme-dark .hero-line {
    background: var(--color-brand-cyan-bg);
}

/* Couleur brand texte */
body.theme-dark .text-brand {
    color: var(--color-brand-cyan);
}

/* Bouton menu hamburger */
body.theme-dark .menu-toggle {
    background: rgba(29, 128, 159, 0.85);
}
body.theme-dark .menu-toggle:hover {
    background: rgba(29, 128, 159, 0.55);
}

/* Bouton scroll-to-top */
body.theme-dark .scroll-to-top {
    background: rgba(8, 20, 38, 0.6);
}
body.theme-dark .scroll-to-top:hover {
    background: #0a1426;
}

/* Portfolio hover */
body.theme-dark .portfolio-item:hover .caption {
    background-color: rgba(29, 128, 159, 0.90) !important;
}

/* Icônes de service */
body.theme-dark .service-icon {
    color: var(--color-brand-cyan-bg);
}

/* Footer liens sociaux */
body.theme-dark footer.footer .social-link {
    background-color: var(--color-brand-cyan-dark);
}
body.theme-dark footer.footer .social-link:hover {
    background-color: var(--color-brand-cyan-bg);
}

/* Overlay box — décorations coins */
body.theme-dark .overlay-box .background {
    background: linear-gradient(
        0deg,
        rgba(77, 189, 209, 0.08) 3em,
        transparent 3em,
        transparent calc(100% - 3em),
        rgba(77, 189, 209, 0.08) calc(100% - 3em)
    );
}

/* Sidebar */
body.theme-dark #sidebar-wrapper {
    background: rgba(8, 20, 38, 0.60);
    box-shadow: -8px 0px 24px rgba(0, 0, 0, 0.7);
}

body.theme-dark #sidebar-wrapper .sidebar-brand {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
    height: auto;
    line-height: normal;
    padding: 1rem 1.2rem;
}

body.theme-dark #sidebar-wrapper .sidebar-brand a {
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    font-weight: 400;
}

body.theme-dark #sidebar-wrapper .sidebar-nav li.sidebar-nav-item a {
    color: rgba(255, 255, 255, 0.55);
    border-left: 2px solid transparent;
    font-size: 13.5px;
}

body.theme-dark #sidebar-wrapper .sidebar-nav li a:is(:hover, :focus),
body.theme-dark #sidebar-wrapper .sidebar-nav li.active a {
    color: #fff !important;
    background: rgba(77, 189, 209, 0.08);
    border-left-color: #4dbdd1;
}

body.theme-dark #sidebar-wrapper .sidebar-nav li.sidebar-nav-item a i {
    color: #4dbdd1;
}

body.theme-dark #sidebar-wrapper .sidebar-nav-hr {
    border-color: rgba(255, 255, 255, 0.06);
}


/*================================================================
  THÈME GLOBAL — LIGHT
  Appliqué via <body class="theme-light">
  Cyan tech #0E7490 sur fond clair #f5f7fa
================================================================*/

/* Scrollbar */
body.theme-light ::-webkit-scrollbar-track {
    background: #e5e7eb;
}
body.theme-light ::-webkit-scrollbar-thumb {
    background: #0E7490;
}
body.theme-light ::-webkit-scrollbar-thumb:hover {
    background: #155d74;
}
body.theme-light {
    scrollbar-color: #0E7490 #e5e7eb;
}

/* Fond body */
body.theme-light {
    --bs-body-bg: #f5f7fa;
}

/* Overlay dégradé bannière */
body.theme-light .header-overlay {
    background: linear-gradient(
        to bottom,
        rgba(240, 245, 250, 0.0) 0%,
        rgba(240, 245, 250, 0.15) 50%,
        rgba(240, 245, 250, 0.80) 100%
    );
}

/* Mot en surbrillance bannière */
body.theme-light .header-overlay .banniere {
    color: #0E7490;
}

/* Ligne décorative hero */
body.theme-light .hero-line {
    background: var(--color-brand-cyan-bg);
}

/* Couleur brand texte */
body.theme-light .text-brand {
    color: var(--color-brand-cyan-bg);
}

/* Bouton menu hamburger */
body.theme-light .menu-toggle {
    background: rgba(14, 116, 144, 0.90);
}
body.theme-light .menu-toggle:hover {
    background: rgba(14, 116, 144, 0.65);
}

/* Bouton scroll-to-top */
body.theme-light .scroll-to-top {
    background: rgba(200, 210, 220, 0.75);
}
body.theme-light .scroll-to-top:hover {
    background: #cbd5e1;
}

/* Portfolio hover */
body.theme-light .portfolio-item:hover .caption {
    background-color: rgba(14, 116, 144, 0.85) !important;
}

/* Icônes de service */
body.theme-light .service-icon {
    color: var(--color-brand-cyan-bg);
}

/* Footer liens sociaux */
body.theme-light footer.footer .social-link {
    background-color: var(--color-brand-cyan-bg);
}
body.theme-light footer.footer .social-link:hover {
    background-color: var(--color-brand-cyan-dark);
}

/* Overlay box — décorations coins */
body.theme-light .overlay-box .background {
    background: linear-gradient(
        0deg,
        rgba(14, 116, 144, 0.08) 3em,
        transparent 3em,
        transparent calc(100% - 3em),
        rgba(14, 116, 144, 0.08) calc(100% - 3em)
    );
}

/* Sidebar */
body.theme-light #sidebar-wrapper {
    background: rgba(255, 255, 255, 0.60);
    box-shadow: -4px 0px 20px rgba(0, 0, 0, 0.12);
}

body.theme-light #sidebar-wrapper .sidebar-brand {
    background: #f9fafb;
    border-bottom: 0.5px solid #e5e7eb;
    height: auto;
    line-height: normal;
    padding: 1rem 1.2rem;
}

body.theme-light #sidebar-wrapper .sidebar-brand a {
    font-size: 10px;
    letter-spacing: 3px;
    color: #9ca3af;
    text-transform: uppercase;
    font-weight: 400;
}

body.theme-light #sidebar-wrapper .sidebar-nav li.sidebar-nav-item a {
    color: #4b5563;
    border-left: 2px solid transparent;
    font-size: 13.5px;
}

body.theme-light #sidebar-wrapper .sidebar-nav li a:is(:hover, :focus),
body.theme-light #sidebar-wrapper .sidebar-nav li.active a {
    color: #0E7490 !important;
    background: #f0f9ff;
    border-left-color: #0E7490;
}

body.theme-light #sidebar-wrapper .sidebar-nav li.sidebar-nav-item a i {
    color: #0E7490;
}

body.theme-light #sidebar-wrapper .sidebar-nav-hr {
    border-color: #f3f4f6;
}


/*================================================================
  THÈME GLOBAL — ACCENT
  Appliqué via <body class="theme-accent">
  Cyan tech saturé #0E7490 — Vibrant & moderne
================================================================*/

/* Scrollbar */
body.theme-accent ::-webkit-scrollbar-track {
    background: #073344;
}
body.theme-accent ::-webkit-scrollbar-thumb {
    background: #4dbdd1;
}
body.theme-accent ::-webkit-scrollbar-thumb:hover {
    background: #fff;
}
body.theme-accent {
    scrollbar-color: #4dbdd1 #073344;
}

/* Fond body */
body.theme-accent {
    --bs-body-bg: #073344;
}

/* Overlay dégradé bannière */
body.theme-accent .header-overlay {
    background: linear-gradient(
        to bottom,
        rgba(7, 51, 68, 0.0) 0%,
        rgba(7, 51, 68, 0.20) 50%,
        rgba(7, 51, 68, 0.88) 100%
    );
}

/* Mot en surbrillance bannière */
body.theme-accent .header-overlay .banniere {
    color: #4dbdd1;
}

/* Ligne décorative hero */
body.theme-accent .hero-line {
    background: var(--color-brand-cyan);
}

/* Couleur brand texte */
body.theme-accent .text-brand {
    color: var(--color-brand-cyan);
}

/* Bouton menu hamburger */
body.theme-accent .menu-toggle {
    background: rgba(14, 116, 144, 0.85);
}
body.theme-accent .menu-toggle:hover {
    background: rgba(14, 116, 144, 0.55);
}

/* Bouton scroll-to-top */
body.theme-accent .scroll-to-top {
    background: rgba(7, 51, 68, 0.65);
}
body.theme-accent .scroll-to-top:hover {
    background: #073344;
}

/* Portfolio hover */
body.theme-accent .portfolio-item:hover .caption {
    background-color: rgba(14, 116, 144, 0.90) !important;
}

/* Icônes de service */
body.theme-accent .service-icon {
    color: var(--color-brand-cyan-bg);
}

/* Footer liens sociaux */
body.theme-accent footer.footer .social-link {
    background-color: var(--color-brand-cyan-bg);
}
body.theme-accent footer.footer .social-link:hover {
    background-color: var(--color-brand-cyan);
}

/* Overlay box — décorations coins */
body.theme-accent .overlay-box .background {
    background: linear-gradient(
        0deg,
        rgba(77, 189, 209, 0.12) 3em,
        transparent 3em,
        transparent calc(100% - 3em),
        rgba(77, 189, 209, 0.12) calc(100% - 3em)
    );
}

/* Sidebar */
body.theme-accent #sidebar-wrapper {
    background: rgba(14, 116, 144, 0.60);
    box-shadow: -8px 0px 24px rgba(0, 0, 0, 0.4);
}

body.theme-accent #sidebar-wrapper .sidebar-brand {
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.15);
    height: auto;
    line-height: normal;
    padding: 1rem 1.2rem;
}

body.theme-accent #sidebar-wrapper .sidebar-brand a {
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    font-weight: 400;
}

body.theme-accent #sidebar-wrapper .sidebar-nav li.sidebar-nav-item a {
    color: rgba(255, 255, 255, 0.7);
    border-left: 2px solid transparent;
    font-size: 13.5px;
}

body.theme-accent #sidebar-wrapper .sidebar-nav li a:is(:hover, :focus),
body.theme-accent #sidebar-wrapper .sidebar-nav li.active a {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15);
    border-left-color: #fff;
}

body.theme-accent #sidebar-wrapper .sidebar-nav li.sidebar-nav-item a i {
    color: rgba(255, 255, 255, 0.75);
}

body.theme-accent #sidebar-wrapper .sidebar-nav-hr {
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark #sidebar-wrapper,
body.theme-light #sidebar-wrapper,
body.theme-accent #sidebar-wrapper,
body.theme-institutionnel #sidebar-wrapper,
body.theme-clinique #sidebar-wrapper {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/*================================================================
  MENU PRINCIPAL (bouton hamburger)
================================================================*/
.menu-toggle {
	position: fixed;
	right: 15px;
	top: 15px;
	width: 50px;
	height: 50px;
	text-align: center;
	color: #fff;
	background: rgba(29, 128, 159, 0.8);
	line-height: 50px;
	z-index: 999;
    border: none;
    cursor: pointer;
    text-decoration: none;  
}

.menu-toggle:focus, .menu-toggle:hover {
	color: #fff;
}
.menu-toggle:hover {
	background: rgba(29, 128, 159, 0.5);
}

/* Classes pour gérer la visibilité sans style inline */
.menu-hidden {
    display: none !important;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.menu-visible {
    display: block !important;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* content-layer soit flex */
.menu-flex {
    display: flex !important;
}



/*================================================================
  GENERAL STYLES
================================================================*/
hr {
    border: 1px solid #ccc;
    margin: 5px 0;
}

.leaflet-control-attribution {
    display: none !important;
}

.text-faded {
  color: rgba(255, 255, 255, 0.7);
}

.scroll-to-top {
	position: fixed;
	right: 15px;
	bottom: 15px;
	display: none;
	width: 50px;
	height: 50px;
	text-align: center;
	color: #fff;
	background: rgba(52, 58, 64, 0.5);
	line-height: 45px;
}
.scroll-to-top:focus, .scroll-to-top:hover {
	color: #fff;
}
.scroll-to-top:hover {
	background: #343a40;
}
.scroll-to-top i {
	font-weight: 800;
}

.btn-xl {
	padding: 1.25rem 2.5rem;
}

.callout {
	padding: 15rem 0;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%), url("../assets/img/bg-callout.jpg");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}
.callout h2, .callout .h2 {
	font-size: 3.5rem;
	font-weight: 700;
	display: block;
	max-width: 30rem;
}

footer.footer {
	padding-top: 5rem;
	padding-bottom: 5rem;
}
footer.footer .social-link {
	display: block;
	text-decoration: none;
	height: 4rem;
	width: 4rem;
	line-height: 4.3rem;
	font-size: 1.5rem;
	background-color: #1D809F;
	transition: background-color 0.15s ease-in-out;
	box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.1);
}
footer.footer .social-link:hover {
	background-color: #155d74;
	text-decoration: none;
}

.masthead {
	min-height: 30rem;
	position: relative;
	display: table;
	width: 100%;
	height: auto;
	padding-top: 8rem;
	padding-bottom: 8rem;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	color: rgba(0, 0, 0, 0.55);
	text-shadow: 2px 2px 1px rgba(255,255,255,0.1); 
}
.masthead h1, .masthead .h1 {
	font-size: 4rem;
	margin: 0;
	padding: 0;
}
.masthead h5, .masthead .h5 {
	letter-spacing: 1px;
}
.text {
	text-transform: uppercase;
	background: linear-gradient(to right, #30CFD0 0%, #330867 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	font: {
		size: 20vw;
		family: $font;
	};
}

@media (min-width: 992px) {
  .masthead {
    height: 100vh;
  }
  .masthead h1, .masthead .h1 {
    font-size: 5.5rem;
  }
}

.portfolio-item {
  display: block;
  position: relative !important;
  overflow: hidden;
  max-width: 530px;
  margin: auto auto 1rem;
}
.portfolio-item .caption {
  display: flex;
  height: 100%;
  width: 100%;
  background-color: rgba(33, 37, 41, 0.2);
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
}
.portfolio-item .caption .caption-content {
  color: #fff;
  margin: auto 2rem 2rem;
}
.portfolio-item .caption .caption-content h2, .portfolio-item .caption .caption-content .h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
}
.portfolio-item .caption .caption-content p {
  font-weight: 300;
  font-size: 1.2rem;
}
@media (min-width: 992px) {
  .portfolio-item {
    max-width: none;
    margin: 0;
  }
  .portfolio-item .caption {
    transition: background-color 0.7s, -webkit-clip-path 0.25s ease-out !important;
    transition: clip-path 0.25s ease-out, background-color 0.7s;
    transition: clip-path 0.25s ease-out, background-color 0.7s, -webkit-clip-path 0.25s ease-out;
    -webkit-clip-path: inset(0px);
            clip-path: inset(0px) !important;
  }
  .portfolio-item .caption .caption-content {
    transition: opacity 0.25s;
    margin-left: 5rem;
    margin-right: 5rem;
    margin-bottom: 5rem;
  }
  .portfolio-item img {
    transition: -webkit-clip-path 0.25s ease-out;
    transition: clip-path 0.25s ease-out !important;
    transition: clip-path 0.25s ease-out, -webkit-clip-path 0.25s ease-out;
    -webkit-clip-path: inset(-1px);
            clip-path: inset(-1px) !important;
  }
  .portfolio-item:hover img {
    -webkit-clip-path: inset(2rem);
            clip-path: inset(2rem) !important;
  }
  .portfolio-item:hover .caption {
    background-color: rgba(29, 128, 159, 0.9) !important;
    -webkit-clip-path: inset(2rem);
            clip-path: inset(2rem) !important;
  }
}

.service-icon {
  background-color: #fff;
  color: #1D809F;
  height: 7rem;
  width: 7rem;
  display: block;
  line-height: 7.5rem;
  font-size: 2.25rem;
  box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.1);
}


/*================================================================
  THÈME GLOBAL — INSTITUTIONNEL
  Appliqué via <body class="theme-institutionnel">
  Bleu profond #18345A + Teal légal #1D9E75
================================================================*/

/* Scrollbar */
body.theme-institutionnel ::-webkit-scrollbar-track {
    background: #0f1f38;
}
body.theme-institutionnel ::-webkit-scrollbar-thumb {
    background: #185FA5;
}
body.theme-institutionnel ::-webkit-scrollbar-thumb:hover {
    background: #1D9E75;
}
body.theme-institutionnel {
    scrollbar-color: #185FA5 #0f1f38;
}

/* Fond body */
body.theme-institutionnel {
    --bs-body-bg: #0f1f38;
}

/* Overlay dégradé bannière — plus sombre, sobre */
body.theme-institutionnel .header-overlay {
    background: linear-gradient(
        to bottom,
        rgba(10, 20, 45, 0.0) 0%,
        rgba(10, 20, 45, 0.25) 50%,
        rgba(10, 20, 45, 0.90) 100%
    );
}

/* Mot en surbrillance bannière */
body.theme-institutionnel .header-overlay .banniere {
    color: #5DCAA5;
}

/* Ligne décorative hero */
body.theme-institutionnel .hero-line {
    background: var(--color-inst-teal);
}

/* Couleur brand texte */
body.theme-institutionnel .text-brand {
    color: var(--color-inst-teal-light);
}

/* Bouton menu hamburger */
body.theme-institutionnel .menu-toggle {
    background: rgba(24, 95, 165, 0.85);
}
body.theme-institutionnel .menu-toggle:hover {
    background: rgba(24, 95, 165, 0.55);
}

/* Bouton scroll-to-top */
body.theme-institutionnel .scroll-to-top {
    background: rgba(24, 52, 90, 0.6);
}
body.theme-institutionnel .scroll-to-top:hover {
    background: #18345A;
}

/* Portfolio hover */
body.theme-institutionnel .portfolio-item:hover .caption {
    background-color: rgba(24, 95, 165, 0.88) !important;
}

/* Icônes de service */
body.theme-institutionnel .service-icon {
    color: var(--color-inst-blue);
}

/* Footer liens sociaux */
body.theme-institutionnel footer.footer .social-link {
    background-color: var(--color-inst-blue);
}
body.theme-institutionnel footer.footer .social-link:hover {
    background-color: var(--color-inst-teal);
}

/* Overlay box — décorations coins */
body.theme-institutionnel .overlay-box .background {
    background: linear-gradient(
        0deg,
        rgba(29, 158, 117, 0.12) 3em,
        transparent 3em,
        transparent calc(100% - 3em),
        rgba(29, 158, 117, 0.12) calc(100% - 3em)
    );
}

/* Sidebar */
body.theme-institutionnel #sidebar-wrapper {
    background: rgba(24, 52, 90, 0.85);
    box-shadow: -8px 0px 24px rgba(0, 0, 0, 0.5);
}

body.theme-institutionnel #sidebar-wrapper .sidebar-brand {
    background: rgba(0, 0, 0, 0.20);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.12);
    height: auto;
    line-height: normal;
    padding: 1rem 1.2rem;
}

body.theme-institutionnel #sidebar-wrapper .sidebar-brand a {
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    font-weight: 400;
}

body.theme-institutionnel #sidebar-wrapper .sidebar-nav li.sidebar-nav-item a {
    color: rgba(255, 255, 255, 0.65);
    border-left: 2px solid transparent;
    font-size: 13.5px;
}

body.theme-institutionnel #sidebar-wrapper .sidebar-nav li a:is(:hover, :focus),
body.theme-institutionnel #sidebar-wrapper .sidebar-nav li.active a {
    color: #fff !important;
    background: rgba(29, 158, 117, 0.20);
    border-left-color: #1D9E75;
}

body.theme-institutionnel #sidebar-wrapper .sidebar-nav li.sidebar-nav-item a i {
    color: #5DCAA5;
}

body.theme-institutionnel #sidebar-wrapper .sidebar-nav-hr {
    border-color: rgba(255, 255, 255, 0.08);
}


/*================================================================
  THÈME GLOBAL — CLINIQUE
  Appliqué via <body class="theme-clinique">
  Ardoise #2A3441 + Teal apaisant #5DCAA5
================================================================*/

/* Scrollbar */
body.theme-clinique ::-webkit-scrollbar-track {
    background: #1c2530;
}
body.theme-clinique ::-webkit-scrollbar-thumb {
    background: #5DCAA5;
}
body.theme-clinique ::-webkit-scrollbar-thumb:hover {
    background: #1D9E75;
}
body.theme-clinique {
    scrollbar-color: #5DCAA5 #1c2530;
}

/* Fond body */
body.theme-clinique {
    --bs-body-bg: #1c2530;
}

/* Overlay dégradé bannière — plus doux, ardoise */
body.theme-clinique .header-overlay {
    background: linear-gradient(
        to bottom,
        rgba(28, 37, 48, 0.0) 0%,
        rgba(28, 37, 48, 0.20) 50%,
        rgba(28, 37, 48, 0.88) 100%
    );
}

/* Mot en surbrillance bannière */
body.theme-clinique .header-overlay .banniere {
    color: #9FE1CB;
}

/* Ligne décorative hero */
body.theme-clinique .hero-line {
    background: var(--color-clin-teal);
}

/* Couleur brand texte */
body.theme-clinique .text-brand {
    color: var(--color-clin-teal);
}

/* Bouton menu hamburger / × */
body.theme-clinique .menu-toggle {
    background: rgba(93, 202, 165, 0.18);
    border: 1px solid rgba(93, 202, 165, 0.45);
    color: #9FE1CB;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
body.theme-clinique .menu-toggle:hover {
    background: rgba(93, 202, 165, 0.32);
    border-color: rgba(93, 202, 165, 0.75);
    color: #fff;
}

/* Bouton scroll-to-top */
body.theme-clinique .scroll-to-top {
    background: rgba(42, 52, 65, 0.65);
}
body.theme-clinique .scroll-to-top:hover {
    background: #2A3441;
}

/* Portfolio hover */
body.theme-clinique .portfolio-item:hover .caption {
    background-color: rgba(29, 158, 117, 0.82) !important;
}

/* Icônes de service */
body.theme-clinique .service-icon {
    color: var(--color-clin-teal);
}

/* Footer liens sociaux */
body.theme-clinique footer.footer .social-link {
    background-color: #1D9E75;
}
body.theme-clinique footer.footer .social-link:hover {
    background-color: #5DCAA5;
}

/* Overlay box — décorations coins */
body.theme-clinique .overlay-box .background {
    background: linear-gradient(
        0deg,
        rgba(93, 202, 165, 0.10) 3em,
        transparent 3em,
        transparent calc(100% - 3em),
        rgba(93, 202, 165, 0.10) calc(100% - 3em)
    );
}

/* Sidebar */
body.theme-clinique #sidebar-wrapper {
    background: rgba(42, 52, 65, 0.45);
    box-shadow: -8px 0px 24px rgba(0, 0, 0, 0.45);
}

body.theme-clinique #sidebar-wrapper .sidebar-brand {
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.10);
    height: auto;
    line-height: normal;
    padding: 1rem 1.2rem;
}

body.theme-clinique #sidebar-wrapper .sidebar-brand a {
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.40);
    text-transform: uppercase;
    font-weight: 400;
}

body.theme-clinique #sidebar-wrapper .sidebar-nav li.sidebar-nav-item a {
    color: rgba(255, 255, 255, 0.60);
    border-left: 2px solid transparent;
    font-size: 13.5px;
}

body.theme-clinique #sidebar-wrapper .sidebar-nav li a:is(:hover, :focus),
body.theme-clinique #sidebar-wrapper .sidebar-nav li.active a {
    color: #fff !important;
    background: rgba(93, 202, 165, 0.15);
    border-left-color: #5DCAA5;
}

body.theme-clinique #sidebar-wrapper .sidebar-nav li.sidebar-nav-item a i {
    color: #4dbdd1;
}

body.theme-clinique #sidebar-wrapper .sidebar-nav-hr {
    border-color: rgba(255, 255, 255, 0.07);
}