/* =========================================================
FOOTER STYLESHEET (GLS Sprachenzentrum)
========================================================= */

.site-footer {
background-color: #211e1d;
color: #fff;
border-top-left-radius: 50px;
border-top-right-radius: 50px;
overflow: hidden;
position: relative;
z-index: 10;
font-family: "Now", sans-serif;
}

/* =========================================================
FOOTER INTRO SECTION
========================================================= */
.footer-intro {
  width: 100%;
}

.footer-intro-text,
.footer-intro-logo {
  padding-left: 25px;
  padding-right: 25px;
}

.footer-intro-text p {
  color: var(--color-surface);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  max-width: 520px;
}

.footer-intro-logo img {
  height: 110px;
  width: auto;
  max-width: 100%;
}

/* =========================================================
FOOTER TITLES
========================================================= */
.footer-title {
font-weight: 700;
color: var(--color-surface); /* UPDATED */
margin-bottom: 1.5rem;
font-size: 1.1rem;
letter-spacing: 0.3px;
}

/* =========================================================
FOOTER LINKS
========================================================= */
.footer-links li {
margin-bottom: 10px;
}
.mt-md-0{
font-weight: 400;
font-size: 12px !important;
color: var(--dark--off-white);
}
.footer-links a,
.footer-small-link {
color: var(--dark--off-white); /* UPDATED */
font-size: 14px;
/* line-height: 1.2; */
text-decoration: none;
display: block;
text-wrap: balance;
transition: color .2s ease;
}

.footer-links a:hover,
.footer-small-link:hover {
color: var(--dark--yellow); /* UPDATED (#bc9600) */
}

/* If using big-link class */
.footer-big-link {
font-weight: 700;
line-height: 1.1;
display: block;
text-decoration: none;
font-size: 1.05rem;
margin-bottom: 1.2rem;
color: var(--color-surface);
}

/* indentation */
.footer-indent {
padding-left: 1rem;
}

/* =========================================================
FOOTER COLUMNS
========================================================= */
.footer-columns {
margin-top: 2.5rem !important;
padding-top: 2.5rem !important;
border-color: #2a2725 !important;
}

.footer-columns .col-md-3 {
padding-left: 25px;
padding-right: 25px;
}

/* =========================================================
FOOTER BOTTOM
========================================================= */
.footer-bottom {
background-color: #181615;
color: #ccc;
margin-top: 2rem;
}

.footer-bottom a {
color: var(--dark--off-white);
font-weight: 500;
font-size: 12px !important;
text-decoration: none;
transition: color .2s ease;
}

.footer-bottom a:hover {
color: white;
}

.footer-legal {
display: flex;
gap: 2rem;
flex-wrap: wrap;
}

/* =========================================================
RESPONSIVE
========================================================= */
@media (max-width: 768px) {

.footer-intro {
  text-align: center;
}

.footer-intro-text,
.footer-intro-logo {
  padding-left: 0;
  padding-right: 0;
}

.footer-intro-text p {
  margin: 0 auto;
  max-width: 100%;
  text-align: center;
}

.footer-intro-logo {
  margin-bottom: 0.5rem;
}

.footer-intro-logo img {
  height: 80px;
}

.footer-legal {
justify-content: center;
text-align: center;
gap: 1rem;
}

.footer-columns .col-6 {
margin-bottom: 2.5rem;
}
}
/* =========================================================
NEWSLETTER (Footer)
========================================================= */
#newsletterForm {
align-items: center;
}

/* RTL: inverser l'ordre input/bouton */
.site-footer.rtl #newsletterForm {
flex-direction: row-reverse;
}

#newsletterEmail.form-control {
max-width: 380px;
width: 100%;
background: #181615; /* match footer-bottom */
border: 1px solid #2a2725; /* même tone que footer columns border */
color: var(--color-surface);
border-radius: 12px;
padding: 12px 14px;
box-shadow: none;
}

/* Placeholder */
#newsletterEmail.form-control::placeholder {
color: rgba(255, 255, 255, 0.55);
}

/* Focus clean */
#newsletterEmail.form-control:focus {
border-color: var(--color-surface);
box-shadow: 0 0 0 3px rgba(188, 150, 0, 0.15);
outline: none;
}

/* Bouton "S'inscrire" style propre */
#newsletterBtn.btn {
background: transparent;
border: 1px solid var(--color-surface);
color: var(--color-surface);
border-radius: 12px;
padding: 12px 16px;
font-weight: 700;
letter-spacing: 0.2px;
white-space: nowrap;
transition: background .2s ease, color .2s ease, transform .2s ease;
}

#newsletterBtn.btn:disabled {
opacity: .65;
/* transform: none; */
}

/* Message spacing */
#newsletterMsg {
min-height: 18px;
}

/* Mobile: input full width */
@media (max-width: 768px) {
#newsletterEmail.form-control {
max-width: 100%;
}

#newsletterForm {
flex-wrap: wrap;
}

#newsletterBtn.btn {
width: 100%;
}
}


/* =========================================================
BACK TO TOP BUTTON
========================================================= */
#backToTop {
position: fixed;
bottom: 24px;
right: 24px;
width: 52px;
height: 52px;
border-radius: 50%;
background: var(--dark--off-black); /* bleu comme l'image */
color: #fff;
border: none;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
opacity: 0;
visibility: hidden;
transform: translateY(10px);
transition: opacity .25s ease, transform .25s ease, visibility .25s;
z-index: 2147483647;
}

/* RTL support */
.site-footer.rtl #backToTop {
right: auto;
left: 24px;
}

/* Visible */
#backToTop.show {
opacity: 1;
visibility: visible;
transform: translateY(0);
}

/* Hover */
#backToTop:hover {
background: var(--dark--off-black);
transform: translateY(-2px);
}

/* Focus accessibility */
#backToTop:focus {
outline: none;
box-shadow: 0 0 0 4px rgba(255, 254, 232, 0.35);

}

/* SVG smooth */
#backToTop svg {
pointer-events: none;
}
.mb-0 {
color: var(--dark--off-white);
}
@media (max-width: 767px) {
#newsletterBtn{
width: auto; /* pas full width */
min-width: 160px; /* taille minimale propre */
padding: 10px 18px; /* bouton plus compact */
display: inline-flex;
align-items: center;
justify-content: center;
margin: 0 auto;
font-size: 0.95rem;
border-radius: 14px;
}
}
.visually-hidden{
position:absolute !important;
width:1px !important;
height:1px !important;
padding:0 !important;
margin:-1px !important;
overflow:hidden !important;
clip:rect(0,0,0,0) !important;
white-space:nowrap !important;
border:0 !important;
}

/* =========================================================
   Compact Newsletter (between footer-columns and footer-bottom)
   ========================================================= */
.site-footer .footer-newsletter {
  padding-bottom: 1rem;
  margin-bottom: 0;
}

.site-footer .footer-bottom {
  padding-top: 0;
}

.site-footer .footer-bottom > .container {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.site-footer .footer-newsletter .footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--off-white, #fff);
  margin: 0;
  line-height: 1.2;
}

.site-footer .footer-newsletter .text-muted-light {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, .55);
  line-height: 1.35;
}

.site-footer .footer-newsletter-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.site-footer .footer-newsletter-form {
  flex: 0 1 auto;
  width: 100%;
  max-width: 460px;
}

.site-footer .footer-newsletter-form .form-control {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  height: auto;
  min-width: 0;
  flex: 1 1 auto;
}

.site-footer .footer-newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, .45);
}

.site-footer .footer-newsletter-form .form-control:focus {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .25);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .08);
  color: #fff;
  outline: none;
}

.site-footer .footer-newsletter-form .btn {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  white-space: nowrap;
  line-height: 1.3;
}

.site-footer .footer-newsletter.rtl .footer-newsletter-form {
  margin-left: 0;
  margin-right: auto;
}

/* RTL (Arabic): title block must sit flush to the right edge (reading
   start) and form flush to the left edge. The flex row's natural order
   in dir="rtl" leaves a gap in the middle, so explicitly reorder via
   flex `order` and right-align the text inside the copy block. */
.site-footer .footer-newsletter.rtl .footer-newsletter-copy {
  text-align: right;
  order: 2;
}

.site-footer .footer-newsletter.rtl .footer-newsletter-form {
  order: 1;
}

.site-footer .footer-newsletter.rtl .footer-newsletter-copy .footer-title,
.site-footer .footer-newsletter.rtl .footer-newsletter-copy p {
  text-align: right;
}

@media (max-width: 768px) {
  .site-footer .footer-newsletter-form {
    max-width: 100%;
  }
}
