/* =========================================================
   COMMERZFINANZ - STYLE.CSS
   Styles globaux : variables, base, header, footer, bouton haut
========================================================= */

/* ================================
   VARIABLES GLOBALES
================================ */

:root {
  /* Couleurs principales du logo */
  --cf-primary: #0057a0;
  --cf-primary-dark: #003f73;
  --cf-secondary: #febb00;
  --cf-secondary-dark: #e6a800;

  /* Couleurs générales */
  --cf-dark: #0b1727;
  --cf-text: #1f2937;
  --cf-muted: #6b7280;
  --cf-white: #ffffff;
  --cf-light: #f5f7fb;
  --cf-border: #e5e7eb;

  /* Ombres globales */
  --cf-shadow-header: 0 4px 18px rgba(0, 0, 0, 0.06);
  --cf-shadow-dropdown: 0 18px 40px rgba(7, 21, 39, 0.14);
}

/* Reset global */
* {
  box-sizing: border-box;
}

/* Scroll fluide */
html {
  scroll-behavior: smooth;
}

/* Style général du site */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--cf-text);
  background: var(--cf-white);
}

/* Blocage du scroll quand le menu mobile est ouvert */
body.cf-menu-open {
  overflow: hidden;
}

/* Médias fluides */
img {
  max-width: 100%;
  height: auto;
}

/* Liens globaux */
a {
  text-decoration: none;
  color: inherit;
}

/* Conteneur central du site */
.cf-container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

/* =========================================================
   HEADER GLOBAL
========================================================= */

.cf-header {
  width: 100%;
  background: var(--cf-white);
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: var(--cf-shadow-header);
}

/* Barre supérieure */
.cf-topbar {
  background: var(--cf-primary);
  color: var(--cf-white);
  font-size: 14px;
}

/* Contenu de la barre supérieure */
.cf-topbar-inner {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Informations gauche et réseaux sociaux */
.cf-topbar-left,
.cf-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Liens de la topbar */
.cf-topbar a {
  color: var(--cf-white);
  opacity: 0.95;
}

/* Survol liens topbar */
.cf-topbar a:hover {
  opacity: 1;
  color: var(--cf-secondary);
}

/* Barre principale */
.cf-navbar {
  background: var(--cf-white);
}

/* Contenu principal du header */
.cf-navbar-inner {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.cf-logo img {
  height: 56px;
  width: auto;
  display: block;
}

/* Navigation principale */
.cf-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

/* Liens du menu */
.cf-nav > a,
.cf-menu-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--cf-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 32px 0;
  font-family: inherit;
}

/* État actif et survol */
.cf-nav > a.active,
.cf-nav > a:hover,
.cf-menu-link:hover,
.cf-menu-link.active,
.cf-menu-item.active-parent > .cf-menu-link {
  color: var(--cf-primary);
}

/* Élément parent du sous-menu */
.cf-menu-item {
  position: relative;
}

/* Bouton Services */
.cf-menu-link {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Sous-menu Services */
.cf-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 270px;
  background: var(--cf-white);
  border: 1px solid var(--cf-border);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--cf-shadow-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
}

/* Affichage du sous-menu au survol desktop */
.cf-menu-item:hover .cf-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Liens du sous-menu */
.cf-submenu a {
  display: block;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cf-text);
  border-radius: 10px;
}

/* Survol et actif sous-menu */
.cf-submenu a:hover,
.cf-submenu a.active {
  background: var(--cf-light);
  color: var(--cf-primary);
}

/* Zone bouton + langue + burger */
.cf-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Bouton principal */
.cf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  background: var(--cf-primary);
  color: var(--cf-white);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.25s ease;
}

/* Survol bouton principal */
.cf-btn:hover,
.cf-btn.active {
  background: var(--cf-primary-dark);
  color: var(--cf-white);
  transform: translateY(-1px);
}

/* Sélecteur de langue */
.nav-flag-dropdown {
  min-width: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bouton burger mobile */
.cf-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--cf-border);
  background: var(--cf-white);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
}

/* Barres du burger */
.cf-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cf-dark);
  margin: 5px 0;
  transition: 0.25s ease;
}

/* Animation burger actif */
.cf-burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.cf-burger.active span:nth-child(2) {
  opacity: 0;
}

.cf-burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   FOOTER GLOBAL
========================================================= */

.cf-footer {
  background: #01182b;
  color: var(--cf-white);
  margin-top: 80px;
}

/* Section principale du footer */
.cf-footer-main {
  padding: 70px 0 50px;
}

/* Grille footer */
.cf-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr 0.9fr 1fr;
  gap: 38px;
}

/* Logo footer */
.cf-footer-logo img {
  height: 58px;
  width: auto;
  display: block;
  margin-bottom: 22px;
}

/* Description footer */
.cf-footer-brand p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 22px;
}

/* Informations légales footer */
.cf-footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
}

/* Colonnes footer */
.cf-footer-col {
  display: flex;
  flex-direction: column;
}

/* Titres footer */
.cf-footer-col h4 {
  font-size: 17px;
  margin: 0 0 22px;
  color: var(--cf-white);
}

/* Liens footer */
.cf-footer-col a,
.cf-footer-col span {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 12px;
  transition: 0.25s ease;
}

/* Survol liens footer */
.cf-footer-col a:hover {
  color: var(--cf-white);
  transform: translateX(4px);
}

/* Contact footer */
.cf-footer-contact a,
.cf-footer-contact span {
  word-break: break-word;
}

/* Bouton footer */
.cf-footer-btn {
  margin-top: 10px;
  width: fit-content;
  padding: 13px 18px;
  background: var(--cf-secondary);
  color: var(--cf-dark) !important;
  border-radius: 999px;
  font-weight: 700;
}

/* Survol bouton footer */
.cf-footer-btn:hover {
  background: var(--cf-secondary-dark);
  color: var(--cf-dark) !important;
  transform: translateY(-2px) !important;
}

/* Barre basse footer */
.cf-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
}

/* Contenu barre basse */
.cf-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Copyright */
.cf-footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

/* Liens légaux bas */
.cf-footer-bottom div {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Liens bas footer */
.cf-footer-bottom a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* Survol liens bas footer */
.cf-footer-bottom a:hover {
  color: var(--cf-white);
}

/* =========================================================
   BOUTON RETOUR EN HAUT
========================================================= */

.cf-back-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--cf-primary);
  color: var(--cf-white);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all .3s ease;
  z-index: 999;
  box-shadow: 0 10px 25px rgba(0, 87, 160, .25);
}

/* Affichage lorsque l'utilisateur descend */
.cf-back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Survol bouton retour haut */
.cf-back-top:hover {
  background: var(--cf-primary-dark);
  transform: translateY(-3px);
}

/* =========================================================
   GTRANSLATE - SÉLECTEUR DE LANGUES
   Version ciblée pour éviter de casser le HTML global
========================================================= */

/* Conteneur du sélecteur dans le header */
.nav-flag-dropdown {
  min-width: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bouton principal GTranslate */
.nav-flag-dropdown .gt_switcher {
  border-radius: 999px !important;
  overflow: visible !important;
}

/* Popup principal GTranslate */
.gt_switcher-popup {
  width: 320px !important;
  max-width: 320px !important;
  min-width: 320px !important;
}

/* Liste des langues uniquement */
.gt_switcher-popup .gt_languages {
  width: 300px !important;
  max-width: 300px !important;
  min-width: 300px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  margin: 0 auto !important;
  padding: 8px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: var(--cf-white) !important;
  box-sizing: border-box !important;
}

/* Chaque langue sur une seule ligne */
.gt_switcher-popup .gt_languages a {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  margin: 0 !important;
  border-bottom: 1px solid #eeeeee !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-align: left !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  transition: all .25s ease !important;
}

/* Dernière langue sans bordure */
.gt_switcher-popup .gt_languages a:last-child {
  border-bottom: none !important;
}

/* Drapeaux */
.gt_switcher-popup .gt_languages img {
  width: 24px !important;
  min-width: 24px !important;
  height: auto !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

/* Survol */
.gt_switcher-popup .gt_languages a:hover {
  background: var(--cf-light) !important;
  color: var(--cf-primary) !important;
}

/* Mobile */
@media (max-width: 480px) {
  .gt_switcher-popup {
    width: 290px !important;
    max-width: 290px !important;
    min-width: 290px !important;
  }

  .gt_switcher-popup .gt_languages {
    width: 270px !important;
    max-width: 270px !important;
    min-width: 270px !important;
  }
}

/* =========================================================
   PAGE ACCUEIL - STYLES COMPLETS
========================================================= */

/* Structure générale accueil */
.cf-home {
  width: 100%;
  overflow: hidden;
}

/* =========================================================
   HERO SLIDER
========================================================= */

.cf-hero-slider {
  position: relative;
  width: 100%;
  height: 640px;
  overflow: hidden;
  background: var(--cf-light);
}

/* Slide individuel */
.cf-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* Slide actif */
.cf-hero-slide.active {
  opacity: 1;
  visibility: visible;
}

/* Overlay de lisibilité */
.cf-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.78) 45%,
    rgba(255, 255, 255, 0.25) 100%
  );
}

/* Contenu du hero */
.cf-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

/* Titre hero */
.cf-hero-content h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: 58px;
  line-height: 1.12;
  font-weight: 800;
  color: var(--cf-primary-dark);
}

/* Texte hero */
.cf-hero-content p {
  max-width: 650px;
  margin: 0 0 30px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--cf-text);
}

/* Bouton hero */
.cf-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  background: var(--cf-secondary);
  color: var(--cf-dark);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  transition: all 0.25s ease;
}

/* Hover bouton hero */
.cf-hero-btn:hover {
  background: var(--cf-primary);
  color: var(--cf-white);
  transform: translateY(-2px);
}

/* Points du slider */
.cf-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Point individuel */
.cf-hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: var(--cf-primary);
  cursor: pointer;
  opacity: 0.35;
  transition: all 0.25s ease;
}

/* Point actif */
.cf-hero-dots button.active {
  width: 34px;
  opacity: 1;
  background: var(--cf-secondary);
}

/* =========================================================
   SECTIONS COMMUNES
========================================================= */

.cf-section {
  padding: 30px 0;
}

/* Fond clair alterné */
.cf-about-section,
.cf-projects-section {
  background: var(--cf-light);
}

/* Petit label de section */
.cf-section-label {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--cf-primary);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* En-tête des sections */
.cf-section-heading {
  max-width: 760px;
  margin-bottom: 45px;
}

/* Titres des sections */
.cf-section-heading h2,
.cf-about-content h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.5;
  color: var(--cf-dark);
}

/* Accent dans les titres */
.cf-section-heading h2 span,
.cf-about-content h2 span {
  color: var(--cf-primary);
}

/* Texte intro */
.cf-section-heading p,
.cf-section-intro {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--cf-muted);
}

/* =========================================================
   SECTION ÜBER UNS
========================================================= */

.cf-about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 55px;
  align-items: center;
}

/* Texte principal */
.cf-about-content > p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--cf-muted);
}

/* Grille avantages */
.cf-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 35px 0;
}

/* Carte avantage */
.cf-feature-card {
  background: var(--cf-white);
  border: 1px solid var(--cf-border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(7, 21, 39, 0.05);
  transition: all 0.25s ease;
}

/* Hover carte avantage */
.cf-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 87, 160, 0.25);
}

/* Icône avantage */
.cf-feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(254, 187, 0, 0.15);
  border-radius: 14px;
  font-size: 24px;
}

/* Titre avantage */
.cf-feature-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--cf-dark);
}

/* Texte avantage */
.cf-feature-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cf-muted);
}

/* Bloc images about */
.cf-about-images {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* Images about */
.cf-about-images img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 18px 35px rgba(7, 21, 39, 0.12);
}

/* Dernière image large */
.cf-about-images img:nth-child(3) {
  grid-column: span 2;
  height: 260px;
}

/* Badge années */
.cf-years-badge {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 130px;
  height: 130px;
  background: var(--cf-primary);
  color: var(--cf-white);
  border: 6px solid var(--cf-white);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 35px rgba(0, 87, 160, 0.25);
}

/* Chiffre années */
.cf-years-badge strong {
  font-size: 34px;
  line-height: 1;
}

/* Texte années */
.cf-years-badge span {
  font-size: 15px;
  font-weight: 700;
}

/* =========================================================
   SERVICES
========================================================= */

.cf-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* Carte service */
.cf-service-card {
  background: var(--cf-white);
  border: 1px solid var(--cf-border);
  border-radius: 20px;
  padding: 34px 28px;
  box-shadow: 0 14px 35px rgba(7, 21, 39, 0.06);
  transition: all 0.25s ease;
}

/* Hover carte service */
.cf-service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 87, 160, 0.3);
}

/* Icône service */
.cf-service-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 87, 160, 0.08);
  border-radius: 16px;
  font-size: 28px;
}

/* Titre service */
.cf-service-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
  color: var(--cf-dark);
}

/* Texte service */
.cf-service-card p {
  min-height: 92px;
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--cf-muted);
}

/* Lien service */
.cf-service-card a {
  color: var(--cf-primary);
  font-size: 14px;
  font-weight: 800;
}

/* Hover lien service */
.cf-service-card a:hover {
  color: var(--cf-secondary-dark);
}

/* =========================================================
   CONDITIONS / WORK
========================================================= */

.cf-work-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 45px;
  align-items: center;
}

/* Image conditions */
.cf-work-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(7, 21, 39, 0.12);
}

/* Liste conditions */
.cf-work-list {
  display: grid;
  gap: 18px;
}

/* Élément condition */
.cf-work-item {
  background: var(--cf-white);
  border: 1px solid var(--cf-border);
  border-left: 5px solid var(--cf-primary);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(7, 21, 39, 0.05);
}

/* Titre condition */
.cf-work-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
  color: var(--cf-dark);
}

/* Texte condition */
.cf-work-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--cf-muted);
}

/* =========================================================
   PROJETS
========================================================= */

.cf-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* Carte projet */
.cf-project-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--cf-dark);
  min-height: 280px;
  box-shadow: 0 16px 35px rgba(7, 21, 39, 0.12);
}

/* Image projet */
.cf-project-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 0.35s ease;
  opacity: 0.78;
}

/* Overlay projet */
.cf-project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 21, 39, 0.05) 0%,
    rgba(7, 21, 39, 0.88) 100%
  );
}

/* Contenu projet */
.cf-project-card div {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
}

/* Titre projet */
.cf-project-card h3 {
  margin: 0 0 8px;
  color: var(--cf-white);
  font-size: 21px;
}

/* Catégorie projet */
.cf-project-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

/* Hover image projet */
.cf-project-card:hover img {
  transform: scale(1.06);
}

/* =========================================================
   TÉMOIGNAGES
========================================================= */

.cf-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* Carte témoignage */
.cf-testimonial-card {
  position: relative;
  background: var(--cf-white);
  border: 1px solid var(--cf-border);
  border-radius: 22px;
  padding: 34px 28px;
  box-shadow: 0 14px 35px rgba(7, 21, 39, 0.06);
}

/* Guillemets */
.cf-quote {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 64px;
  line-height: 1;
  color: rgba(0, 87, 160, 0.12);
  font-weight: 900;
}

/* Texte témoignage */
.cf-testimonial-card p {
  min-height: 105px;
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--cf-muted);
}

/* Photo témoignage */
.cf-testimonial-card img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
}

/* Nom client */
.cf-testimonial-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--cf-dark);
}

/* Étoiles */
.cf-testimonial-card span {
  color: var(--cf-secondary);
  letter-spacing: 2px;
  font-size: 15px;
}

/* =========================================================
   PAGE ÜBER UNS
========================================================= */

/* Hero interne des pages */
.cf-page-hero {
  padding: 95px 0;
  background: linear-gradient(
    135deg,
    rgba(0, 87, 160, 0.10),
    rgba(254, 187, 0, 0.12)
  );
}

/* Titre hero interne */
.cf-page-hero h1 {
  max-width: 850px;
  margin: 0 0 22px;
  font-size: 48px;
  line-height: 1.15;
  color: var(--cf-dark);
}

/* Texte hero interne */
.cf-page-hero p {
  max-width: 720px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--cf-muted);
}

/* Grille intro page à propos */
.cf-about-page-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 55px;
  align-items: center;
}

/* Titre intro */
.cf-about-page-content h2 {
  margin: 0 0 20px;
  font-size: 38px;
  line-height: 1.22;
  color: var(--cf-dark);
}

/* Texte intro */
.cf-about-page-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--cf-muted);
}

/* Image intro */
.cf-about-page-image {
  position: relative;
}

/* Image principale */
.cf-about-page-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(7, 21, 39, 0.12);
}

/* Badge expérience */
.cf-about-page-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 150px;
  height: 150px;
  background: var(--cf-primary);
  color: var(--cf-white);
  border: 6px solid var(--cf-white);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Chiffre badge */
.cf-about-page-badge strong {
  font-size: 38px;
  line-height: 1;
}

/* Texte badge */
.cf-about-page-badge span {
  max-width: 95px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

/* Section statistiques */
.cf-about-stats-section {
  background: var(--cf-primary-dark);
  padding: 70px 0;
}

/* Grille statistiques */
.cf-about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Carte statistique */
.cf-stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
}

/* Chiffre statistique */
.cf-stat-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--cf-secondary);
  font-size: 42px;
  line-height: 1;
}

/* Texte statistique */
.cf-stat-card span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

/* Section mission / vision */
.cf-about-mission-section {
  background: var(--cf-light);
}

/* Grille mission */
.cf-about-mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

/* Carte mission */
.cf-about-mission-card {
  background: var(--cf-white);
  border: 1px solid var(--cf-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 14px 35px rgba(7, 21, 39, 0.06);
}

/* Titre mission */
.cf-about-mission-card h2 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.25;
  color: var(--cf-dark);
}

/* Texte mission */
.cf-about-mission-card p {
  margin: 0;
  color: var(--cf-muted);
  font-size: 16px;
  line-height: 1.8;
}

/* CTA final */
.cf-about-cta {
  padding: 85px 0;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--cf-primary),
    var(--cf-primary-dark)
  );
  color: var(--cf-white);
}

/* Titre CTA */
.cf-about-cta h2 {
  margin: 0 0 16px;
  font-size: 38px;
}

/* Texte CTA */
.cf-about-cta p {
  max-width: 620px;
  margin: 0 auto 30px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

/* =========================================================
   PAGE SERVICES
========================================================= */

/* Grille introduction services */
.cf-services-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 45px;
  align-items: center;
}

/* Contenu intro services */
.cf-services-intro-content h2 {
  margin: 0 0 20px;
  font-size: 38px;
  line-height: 1.22;
  color: var(--cf-dark);
}

/* Paragraphes intro */
.cf-services-intro-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--cf-muted);
}

/* Carte intro droite */
.cf-services-intro-card {
  background: var(--cf-primary-dark);
  color: var(--cf-white);
  border-radius: 24px;
  padding: 38px;
  box-shadow: 0 18px 40px rgba(7, 21, 39, 0.12);
}

/* Titre carte intro */
.cf-services-intro-card h3 {
  margin: 0 0 20px;
  font-size: 25px;
}

/* Liste carte intro */
.cf-services-intro-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Élément liste intro */
.cf-services-intro-card li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

/* Icône check liste */
.cf-services-intro-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cf-secondary);
  font-weight: 900;
}

/* Carte service plus haute pour la page services */
.cf-service-card-large p {
  min-height: 130px;
}

/* Section processus */
.cf-services-process-section {
  background: var(--cf-light);
}

/* Grille processus */
.cf-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* Carte processus */
.cf-process-card {
  position: relative;
  background: var(--cf-white);
  border: 1px solid var(--cf-border);
  border-radius: 22px;
  padding: 34px 26px;
  box-shadow: 0 14px 35px rgba(7, 21, 39, 0.06);
}

/* Numéro processus */
.cf-process-card span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--cf-secondary);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

/* Titre processus */
.cf-process-card h3 {
  margin: 0 0 12px;
  color: var(--cf-dark);
  font-size: 20px;
}

/* Texte processus */
.cf-process-card p {
  margin: 0;
  color: var(--cf-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* =========================================================
   PAGES CRÉDITS - STYLE COMMUN
   Utilisé par :
   privatkredit.php, projektkredit.php, immobilienkredit.php,
   autokredit.php, studienkredit.php, landwirtschaftskredit.php
========================================================= */

/* Fond clair réutilisable */
.cf-light-section {
  background: var(--cf-light);
}

/* Grille principale des pages crédit */
.cf-loan-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 55px;
  align-items: center;
}

/* Titres des sections crédit */
.cf-loan-grid h2 {
  margin: 0 0 20px;
  font-size: 38px;
  line-height: 1.22;
  color: var(--cf-dark);
}

/* Paragraphes des pages crédit */
.cf-loan-grid p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--cf-muted);
}

/* Image principale crédit */
.cf-loan-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(7, 21, 39, 0.12);
}

/* Grille FAQ */
.cf-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* Carte FAQ */
.cf-faq-item {
  background: var(--cf-white);
  border: 1px solid var(--cf-border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 14px 35px rgba(7, 21, 39, 0.06);
}

/* Titre FAQ */
.cf-faq-item h3 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.35;
  color: var(--cf-dark);
}

/* Texte FAQ */
.cf-faq-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--cf-muted);
}

/* =========================================================
   PAGES LÉGALES
========================================================= */

.cf-legal-page {
  background: var(--cf-white);
}

.cf-legal-card {
  max-width: 950px;
  margin: 0 auto;
  background: var(--cf-white);
  border: 1px solid var(--cf-border);
  border-radius: 24px;
  padding: 45px;
  box-shadow: 0 14px 35px rgba(7, 21, 39, 0.06);
}

.cf-legal-card h2 {
  margin: 0 0 24px;
  font-size: 34px;
  color: var(--cf-dark);
}

.cf-legal-card h3 {
  margin: 32px 0 12px;
  font-size: 21px;
  color: var(--cf-primary);
}

.cf-legal-card p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--cf-muted);
}

.cf-legal-card strong {
  color: var(--cf-dark);
}

.cf-legal-card a {
  color: var(--cf-primary);
  font-weight: 700;
}

.cf-legal-card a:hover {
  color: var(--cf-primary-dark);
}

/* Listes dans les pages légales */
.cf-legal-card ul {
  margin: 0 0 18px 20px;
  padding: 0;
  color: var(--cf-muted);
}

.cf-legal-card li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.7;
}

/* =========================================================
   FAQ PAGE
========================================================= */

/* Liste FAQ */

.cf-faq-list {
  max-width: 900px;
  margin: 0 auto;
}

/* Bloc FAQ */

.cf-faq-item {
  border: 1px solid var(--cf-border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--cf-white);
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(7, 21, 39, 0.05);
}

/* Question */

.cf-faq-question {
  width: 100%;
  border: none;
  background: var(--cf-white);
  padding: 24px 30px;
  text-align: left;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: var(--cf-dark);
  position: relative;
}

/* Icône */

.cf-faq-question::after {
  content: "+";
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: var(--cf-primary);
}

/* Etat ouvert */

.cf-faq-item.active .cf-faq-question::after {
  content: "−";
}

/* Réponse */

.cf-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

/* Contenu réponse */

.cf-faq-answer p {
  margin: 0;
  padding: 0 30px 25px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--cf-muted);
}

/* =========================================================
   TESTIMONIALS PAGE
========================================================= */

.cf-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cf-stat-card {
    background: #fff;
    border: 1px solid var(--cf-border);
    border-radius: 20px;
    padding: 35px 20px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,.05);
}

.cf-stat-card strong {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: var(--cf-primary);
    margin-bottom: 10px;
}

.cf-stat-card span {
    font-size: 15px;
    color: var(--cf-muted);
}

@media (max-width: 991px) {

    .cf-stats-grid {
        grid-template-columns: repeat(2,1fr);
    }

}

@media (max-width: 640px) {

    .cf-stats-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   CONTACT PAGE
========================================================= */

/* Grille principale contact */
.cf-contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: start;
}

/* Carte formulaire */
.cf-contact-form-card,
.cf-contact-info-card {
  background: var(--cf-white);
  border: 1px solid var(--cf-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 14px 35px rgba(7, 21, 39, 0.06);
}

/* Titre formulaire et infos */
.cf-contact-form-card h2,
.cf-contact-info-card h2 {
  margin: 0 0 14px;
  color: var(--cf-dark);
  font-size: 32px;
  line-height: 1.2;
}

/* Texte formulaire */
.cf-contact-form-card p {
  margin: 0 0 26px;
  color: var(--cf-muted);
  font-size: 16px;
  line-height: 1.7;
}

/* Formulaire */
.cf-contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Groupe champ */
.cf-form-group {
  display: flex;
  flex-direction: column;
}

/* Champ pleine largeur */
.cf-form-group-full {
  grid-column: span 2;
}

/* Label */
.cf-form-group label {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cf-dark);
}

/* Inputs et textarea */
.cf-form-group input,
.cf-form-group textarea {
  width: 100%;
  border: 1px solid var(--cf-border);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: var(--cf-text);
  outline: none;
  background: var(--cf-white);
  transition: 0.25s ease;
}

/* Focus champs */
.cf-form-group input:focus,
.cf-form-group textarea:focus {
  border-color: var(--cf-primary);
  box-shadow: 0 0 0 4px rgba(0, 87, 160, 0.08);
}

/* Textarea */
.cf-form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* Bouton formulaire */
.cf-contact-form .cf-btn {
  width: fit-content;
  border: none;
}

/* Liste infos */
.cf-contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 28px;
}

/* Élément info */
.cf-contact-info-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
}

/* Icône contact */
.cf-contact-icon {
  width: 52px;
  height: 52px;
  background: rgba(254, 187, 0, 0.16);
  color: var(--cf-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* Titre info */
.cf-contact-info-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--cf-dark);
}

/* Texte info */
.cf-contact-info-item p {
  margin: 0;
  color: var(--cf-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Liens infos */
.cf-contact-info-item a {
  color: var(--cf-primary);
  font-weight: 700;
}

/* Bouton CTA contact */
.cf-contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  min-height: 48px;
  padding: 0 24px;
  background: var(--cf-secondary);
  color: var(--cf-dark);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: 0.25s ease;
}

/* Hover CTA contact */
.cf-contact-cta:hover {
  background: var(--cf-secondary-dark);
  transform: translateY(-2px);
}

/* Section carte */
.cf-contact-map-section {
  padding: 0 0 90px;
}

/* Carte Google Maps */
.cf-contact-map-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--cf-border);
  box-shadow: 0 14px 35px rgba(7, 21, 39, 0.06);
}

/* Iframe Maps */
.cf-contact-map-card iframe {
  display: block;
  width: 100%;
  height: 430px;
  border: 0;
}

/* =========================================================
   PAGE CONFIRMATION FORMULAIRE
========================================================= */

/* Page confirmation */
.cf-confirmation-page {
  background: var(--cf-light);
}

/* Carte centrale */
.cf-confirmation-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 55px 45px;
  background: var(--cf-white);
  border: 1px solid var(--cf-border);
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 18px 45px rgba(7, 21, 39, 0.08);
}

/* Icône confirmation */
.cf-confirmation-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cf-primary);
  color: var(--cf-white);
  border-radius: 50%;
  font-size: 42px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(0, 87, 160, 0.25);
}

/* Titre confirmation */
.cf-confirmation-card h1 {
  margin: 0 0 18px;
  color: var(--cf-dark);
  font-size: 25px;
  line-height: 1.2;
}

/* Texte confirmation */
.cf-confirmation-card p {
  max-width: 620px;
  margin: 0 auto 30px;
  color: var(--cf-muted);
  font-size: 16px;
  line-height: 1.8;
}

/* Actions */
.cf-confirmation-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Lien secondaire */
.cf-confirmation-link {
  color: var(--cf-primary);
  font-size: 15px;
  font-weight: 800;
}

/* Hover lien secondaire */
.cf-confirmation-link:hover {
  color: var(--cf-primary-dark);
}

/* =========================================================
   PAGE KREDITANFRAGE
========================================================= */

/* =========================================================
   CARTE FORMULAIRE KREDITANFRAGE
========================================================= */

.cf-loan-request-card {
  max-width: 900px;
  margin: 0 auto;

  background: var(--cf-white);
  border: 1px solid var(--cf-border);

  border-radius: 28px;

  padding: 45px;

  box-shadow: 0 18px 45px rgba(7, 21, 39, 0.08);
}

.cf-loan-request-form {
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.cf-form-section {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--cf-border);
}

.cf-form-section h2 {
  margin: 0 0 24px;
  font-size: 26px;
  color: var(--cf-dark);
}

.cf-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cf-form-group {
  display: flex;
  flex-direction: column;
}

.cf-form-group-full {
  grid-column: span 2;
}

.cf-form-group label {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cf-dark);
}

.cf-form-group input,
.cf-form-group select,
.cf-form-group textarea {
  width: 100%;
  border: 1px solid var(--cf-border);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: var(--cf-text);
  background: var(--cf-white);
  outline: none;
  transition: 0.25s ease;
}

.cf-form-group input:focus,
.cf-form-group select:focus,
.cf-form-group textarea:focus {
  border-color: var(--cf-primary);
  box-shadow: 0 0 0 4px rgba(0, 87, 160, 0.08);
}

.cf-form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.cf-form-consent {
  font-size: 14px;
  line-height: 1.7;
  color: var(--cf-muted);
}

.cf-form-consent label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.cf-form-consent input {
  margin-top: 5px;
}

.cf-form-consent a {
  color: var(--cf-primary);
  font-weight: 700;
}