/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 GLOBAL
2.0 HEADER
3.0 FOOTER
4.0 HOME
5.0 PRESTATIONS
  5.1 PAGE ARCHIVE PRESTATIONS
  5.2 SINGLE PRESTATIONS
6.0 PAGE
  6.1 HERO SECTION
  6.2 CONTACT
  6.3 SINGLE
7.0 Design
8.0 Login
9.0 404
*/

/*--------------------------------------------------------------
1.0 GLOBAL
--------------------------------------------------------------*/
body {
  font-family: var(--bs-body-font-family, sans-serif);
}

/* HEADER STRUCTURE */
header {
  position: fixed;
  width: 100%;
  z-index: 999;
}

/* MAIN OFFSET */
#main {
  padding-top: 85px;
}

/*--------------------------------------------------------------
2.0 HEADER
--------------------------------------------------------------*/
/* HEADER */

.site-header .navbar {
  padding: 0.8rem 0;
}

.navbar-brand img {
  height: 50px;
  width: auto;
}

/* MENU */
.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--bs-body-color);
}

.navbar-nav .nav-link:hover {
  color: var(--bs-primary);
}

/* ACTIVE */
.navbar-nav .current-menu-item > a {
  color: var(--bs-primary);
}

/* MOBILE MENU */
.offcanvas {
  border: none;
}

/* NAVBAR */

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--bs-body-color);
  padding: 0.5rem 0.8rem;
}

.navbar-nav .nav-link:hover {
  color: var(--bs-primary);
}

/* ACTIVE */
.navbar-nav .nav-link.active {
  color: var(--bs-primary);
}

/* DROPDOWN */
.dropdown-menu {
  border-radius: var(--bs-border-radius);
  box-shadow: var(--bs-box-shadow);
}

.dropdown-item:hover {
  background: rgba(var(--bs-primary-rgb), 0.08);
}

/* ========================================
   OFFCANVAS MOBILE MENU NAVAREZAN
======================================== */

/* CONTAINER */
.offcanvas {
  background: #fff;
}

/* HEADER */
.offcanvas-header {
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 1rem 1.2rem;
}

.offcanvas-title {
  font-weight: 600;
  color: var(--bs-primary);
}

/* BODY */
.offcanvas-body {
  padding: 1rem 0;
}

/* ========================================
   MENU PRINCIPAL
======================================== */

.offcanvas .navbar-nav {
  gap: 0 !important;
}

.offcanvas .navbar-nav .menu-item {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.offcanvas .navbar-nav .menu-item:last-child {
  border-bottom: none;
}

/* LINKS */
.offcanvas .navbar-nav a {
  display: block;
  padding: 0.9rem 1.2rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--bs-body-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

/* HOVER / ACTIVE */
.offcanvas .navbar-nav a:hover {
  background: rgba(var(--bs-primary-rgb), 0.05);
  color: var(--bs-primary);
}

.offcanvas .navbar-nav .current-menu-item > a {
  color: var(--bs-primary);
  font-weight: 600;
}

/* HOME ICON */
.offcanvas .navbar-nav .fa-house {
  font-size: 1.2rem;
}

/* ========================================
   SUBMENU
======================================== */

.offcanvas .navbar-nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  background: rgba(var(--bs-primary-rgb), 0.03);
}

/* ITEMS SUBMENU */
.offcanvas .navbar-nav .sub-menu li a {
  padding: 0.7rem 1.8rem;
  font-size: 0.95rem;
  color: #555;
}

.offcanvas .navbar-nav .sub-menu li a:hover {
  color: var(--bs-primary);
}

/* ========================================
   ARROW (accordion)
======================================== */

.offcanvas .menu-item-has-children > a {
  position: relative;
}

.offcanvas .menu-item-has-children > a::after {
  content: "▾";
  position: absolute;
  right: 1.2rem;
  transition: transform 0.25s ease;
  font-size: 0.8rem;
}

.offcanvas .menu-item-has-children.open > a::after {
  transform: rotate(180deg);
}

/* ========================================
   CTA BOUTONS
======================================== */

.offcanvas .btn {
  border-radius: var(--bs-border-radius);
  font-weight: 500;
}

/* téléphone */
.offcanvas .btn-outline-primary {
  border-width: 1.5px;
}

/* espace membre */
.offcanvas .btn-primary {
  box-shadow: 0 6px 15px rgba(var(--bs-success-rgb), 0.25);
}

/* ========================================
   SPACING CTA
======================================== */

.offcanvas-body > .mt-4 {
  padding: 0 1.2rem;
}

/* ========================================
   MICRO UX
======================================== */

/* animation douce */
.offcanvas.show .navbar-nav a {
  animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*--------------------------------------------------------------
3.0 FOOTER
--------------------------------------------------------------*/

#footer {
  background: #1f2221;
  color: rgba(255,255,255,0.8);
}

/* TITRES WIDGET */
#footer .widget-title {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* TEXTES */
#footer p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* LIENS */
#footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: 0.2s;
}

#footer a:hover {
  color: var(--bs-success);
}

/* LISTES */
#footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer ul li {
  margin-bottom: 0.5rem;
}

/* SOCIAL */
.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: all 0.25s ease;
}

.footer-social a:hover {
  background: var(--bs-success);
  color: #fff;
  transform: translateY(-2px);
}
.footer-social a:hover i {
  color: #fff;
}

/* BOTTOM */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom a {
  color: #fff;
}

.footer-bottom a:hover {
  color: var(--bs-success);
}

/*--------------------------------------------------------------
4.0 HOME
--------------------------------------------------------------*/
.hero-home {
  min-height: 90vh;
  position: relative;
  background-image: url("<?php echo get_the_post_thumbnail_url(); ?>");
  background-size: cover;
  background-position: center;
  padding: 120px 0;
}

/* fallback si pas d'image */
.hero-home {
  background-color: #111;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.4),
    rgba(0,0,0,0.7)
  );
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

.hero-scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 2rem;
  opacity: 0.7;
  transition: 0.2s;
}

.hero-scroll:hover {
  opacity: 1;
}

.intro-section {
  background: #fff;
}

/* TITRE SECTION GLOBAL */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bs-primary);
}

/* TEXTE */
.intro-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--bs-body-color);
}

/* IMAGE PLACEHOLDER */
.intro-placeholder {
  width: 100%;
  height: 350px;
  background: linear-gradient(
    135deg,
    rgba(var(--bs-primary-rgb), 0.1),
    rgba(var(--bs-secondary-rgb), 0.1)
  );
}


/* SECTION */
.services-section {
  background: #f8f9fa;
}

/* CARD */
.service-card {
  display: block;
  position: relative;
  border-radius: var(--bs-border-radius-lg);
  overflow: hidden;
  box-shadow: var(--bs-box-shadow-sm);
  transition: all 0.25s ease;
  background: #fff;
  text-decoration: none;
}

/* HOVER EFFECT */
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--bs-box-shadow);
}

/* IMAGE */
.service-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* BODY */
.service-body {
  padding: 1.2rem;
  text-align: center;
}

/* TITLE */
.service-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bs-primary);
  margin: 0;
}

/* HOVER TITLE */
.service-card:hover .service-title {
  color: var(--bs-secondary);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0),
    rgba(0,0,0,0.2)
  );
  opacity: 0;
  transition: 0.25s;
}

.service-card:hover::after {
  opacity: 1;
}

/* ==========================================================
   📰 ACTU BLOG (VITRINE)
========================================================== */

#actu-x2 h2 {
  font-weight: 700;
  color: var(--bs-primary);
  line-height: 1.1;
}

#actu-x2 p {
  color: var(--bs-body-color);
  opacity: .75;
}

/* CARD */
.blog-card {
  border: none;
  border-radius: var(--bs-border-radius-lg);
  overflow: hidden;
  box-shadow: var(--bs-box-shadow-sm);
  transition: all 0.25s ease;
  background: #fff;
}

/* HOVER UX */
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--bs-box-shadow);
}

/* IMAGE */
.blog-card-img {
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #f5f5f5;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.blog-card:hover img {
  transform: scale(1.05);
}

/* TITRE */
.blog-card .card-title {
  color: var(--bs-primary);
  font-weight: 600;
  margin-bottom: .5rem;
}

/* TEXTE */
.blog-card .card-text {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
5.0 PRESTATIONS
--------------------------------------------------------------*/

/*--------------------------------------------------------------
5.1 PAGE ARCHIVE PRESTATIONS
--------------------------------------------------------------*/
/* CTA SECTION */
.cta-section {
  background: linear-gradient(
    135deg,
    rgba(var(--bs-primary-rgb), 0.05),
    rgba(var(--bs-success-rgb), 0.05)
  );
}
/*--------------------------------------------------------------
5.2 SINGLE PRESTATIONS
--------------------------------------------------------------*/
.single-prestation img {
  transition: 0.3s;
}

.single-prestation img:hover {
  transform: scale(1.02);
}
/*--------------------------------------------------------------
6.0 PAGE
--------------------------------------------------------------*/

/*--------------------------------------------------------------
6.1 HERO SECTION
--------------------------------------------------------------*/
.hero-section {
  position: relative;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  padding: 100px 0;
}

/* OVERLAY */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.4),
    rgba(0,0,0,0.6)
  );
}

/* CONTENT */
.hero-section .container {
  z-index: 2;
}

/* TITLE */
.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
}

/* SUBTITLE */
.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* RESPONSIVE */
@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

/*--------------------------------------------------------------
6.2 CONTACT
--------------------------------------------------------------*/
#page-contact .form-control {
  border-radius: var(--bs-border-radius);
  padding: 0.8rem 1rem;
}

#page-contact .wpcf7-submit {
  width: auto;
  padding: 0.8rem 2rem;
}

.sidebar-contact {
  background: #fff;
  border-radius: var(--bs-border-radius-lg);
}


/*--------------------------------------------------------------
6.3 SINGLE
--------------------------------------------------------------*/

.blog-single h1 {
  font-weight: 700;
  color: var(--bs-primary);
}

.blog-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.blog-content p {
  margin-bottom: 1.2rem;
}

.blog-content h2,
.blog-content h3 {
  margin-top: 2rem;
  color: var(--bs-primary);
}

/* SIDEBAR */
.blog-sidebar {
  position: sticky;
  top: 100px;
}

.blog-sidebar a {
  color: var(--bs-body-color);
  transition: 0.2s;
}

.blog-sidebar a:hover {
  color: var(--bs-primary);
}

/* NAVIGATION */
.blog-navigation a {
  white-space: nowrap;
}

/*--------------------------------------------------------------
7.0 DESIGN
--------------------------------------------------------------*/
/* =========================
    DESIGN SYSTEM - SECTIONS
========================= */

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-lg {
  padding: 7rem 0;
}

.section-light {
  background: #f8f9fa;
}

.section-dark {
  background: var(--bs-primary);
  color: #fff;
}

/* =========================
 TITLES SYSTEM
========================= */

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bs-primary);
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 3rem;
}
.btn {
  border-radius: var(--bs-border-radius);
  font-weight: 500;
  padding: 0.7rem 1.4rem;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--bs-success);
  border-color: var(--bs-success);
}

.btn-primary:hover {
  background: var(--bs-success-hover);
  border-color: var(--bs-success-hover);
  transform: translateY(-2px);
}

.card-ui {
  border: none;
  border-radius: var(--bs-border-radius-lg);
  box-shadow: var(--bs-box-shadow-sm);
  transition: 0.25s;
  overflow: hidden;
  background: #fff;
}

.card-ui:hover {
  transform: translateY(-6px);
  box-shadow: var(--bs-box-shadow);
}

.gap-section {
  row-gap: 2rem;
}

.container-narrow {
  max-width: 900px;
}

/* body {
  font-family: var(--font-theme);
  color: var(--bs-body-color);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-title);
} */

p {
  margin-bottom: 1rem;
}


/*--------------------------------------------------------------
8.0 Login
--------------------------------------------------------------*/
/* PAGE */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #554d9d, #b77057);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CARD */
.login-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  background: #fff;
}

/* IMAGE */
.login-visual {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

/* overlay subtil */
.login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(85,77,157,0.3), rgba(0,0,0,0.4));
}

/* CONTENT */
.login-content {
  padding: 3rem;
}

/* TITRES */
.login-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #554d9d;
}

.login-subtitle {
  color: #6c757d;
  font-size: 0.95rem;
}

/* FORM */
#login-form p {
  margin-bottom: 1.2rem;
}

/* INPUTS */
#login-form input[type="text"],
#login-form input[type="password"] {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

#login-form input:focus {
  border-color: #e8957a;
  box-shadow: 0 0 0 2px rgba(232,149,122,0.2);
  outline: none;
}

/* CHECKBOX ALIGNMENT FIX */
#login-form .login-remember label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

#login-form .login-remember input[type="checkbox"] {
  width: auto;
  height: auto;
  margin: 0;
}

/* BUTTON */
#wp-submit {
  width: 100%;
  border-radius: 12px;
  padding: 0.85rem;
  font-weight: 600;
  background: #554d9d;
  border: none;
  color: #fff;
  transition: all 0.2s ease;
}

#wp-submit:hover {
  background: #e8957a;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(232,149,122,0.4);
}

/* FOOTER */
.login-footer {
  margin-top: 1rem;
}

.login-footer a {
  font-size: 0.85rem;
  color: #b77057;
  text-decoration: none;
}

.login-footer a:hover {
  color: #554d9d;
  text-decoration: underline;
}

/*--------------------------------------------------------------
9.0 404
--------------------------------------------------------------*/

.error-404 {
  min-height: 100vh;
  background: linear-gradient(135deg, #554d9d, #b77057);
  color: #fff;
}

.error-content {
  max-width: 600px;
}

.error-icon {
  font-size: 3rem;
  opacity: 0.8;
}

.error-title {
  font-size: 6rem;
  font-weight: 800;
  color: #e8957a;
  margin-bottom: 10px;
}

.error-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
}

.error-text {
  font-size: 1rem;
  opacity: 0.9;
}

/* Boutons custom */
.btn-primary-custom {
  background: #e8957a;
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  transition: 0.2s;
}

.btn-primary-custom:hover {
  background: #d07d62;
  color: #fff;
}

.btn-secondary-custom {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  transition: 0.2s;
}

.btn-secondary-custom:hover {
  background: #fff;
  color: #554d9d;
}
