@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Cairo:wght@300;400;500;600;700;800&display=swap");

:root {
  --blue: #009ee0;
  --orange: #e85412;
  --blue-color: #009ee0;
  --orange-color: #e85412;
  --ink: #1a171b;
  --muted: #3f4955;
  --line: #e8eaee;
  --soft-blue: #f6fcff;
  --soft-orange: #fffbf9;
  --soft-orange-line: #fad9ca;
  --white: #fff;
  --color-blanc: #fff;
  --color-black: #1a171b;
  --radius: 6px;
  --border-radius: 6px;
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  background: var(--white);
}
body.rtl { font-family: "Cairo", Arial, sans-serif; }
body.rtl * { font-family: "Cairo", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
p { color: var(--muted); font-size: 18px; font-weight: 300; line-height: 1.55; }
h1, h2, h3, h4 { margin: 0 0 18px; line-height: 1.1; }
h1 { font-size: clamp(42px, 6vw, 64px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 34px); font-weight: 800; }
h3 { font-size: 24px; font-weight: 700; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -12px;
}
.row > * {
  min-width: 0;
  padding-inline: 12px;
}
.g-0 { margin-inline: 0; }
.g-0 > * { padding-inline: 0; }
.gx-4 { margin-inline: -12px; }
.gx-4 > * { padding-inline: 12px; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.text-center { text-align: center; }
.text-end { text-align: end; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 1rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.col-12, .col-md-12, .col-lg-12 { width: 100%; }
.col-sm-2 { width: 16.666%; }
.col-sm-8 { width: 66.666%; }
.col-md-2 { width: 16.666%; }
.col-md-3 { width: 25%; }
.col-md-4 { width: 33.333%; }
.col-md-6 { width: 50%; }
.col-md-8 { width: 66.666%; }
.col-lg-6 { width: 50%; }
.ms-auto { margin-left: auto; }
.rtl .ms-auto { margin-left: 0; margin-right: auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-grid {
  min-height: 76px;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand img { width: 117px; display: block; }
.main-menu {
  display: flex;
  justify-content: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 700;
}
.main-menu a.active,
.main-menu a:hover,
.language-menu a.active,
.language-menu a:hover { color: var(--blue); }
.language-menu {
  position: relative;
  display: flex;
  justify-content: flex-end;
  font-size: 13px;
  font-weight: 700;
}
.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 58px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.language-trigger span {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.language-menu.open .language-trigger span,
.language-menu:hover .language-trigger span { transform: rotate(225deg) translateY(-1px); }
.language-dropdown {
  position: absolute;
  inset: calc(100% + 12px) 0 auto auto;
  z-index: 70;
  min-width: 86px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(26,23,27,.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.language-menu.open .language-dropdown,
.language-menu:hover .language-dropdown,
.language-menu:focus-within .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.language-dropdown a {
  display: block;
  border-radius: 6px;
  padding: 9px 10px;
  text-align: center;
}
.language-dropdown a.active { background: var(--soft-blue); }
.mobile-language-menu { display: none; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  justify-self: end;
}
.menu-toggle span {
  display: block;
  width: 32px;
  height: 4px;
  margin: 5px auto;
  border-radius: 20px;
  background: var(--ink);
}

.page-shell { padding-top: 76px; }
.page-shell section { overflow: hidden; }
.text-orange { color: var(--orange); }
.text-blue { color: var(--blue); }
.cih-btn,
.cih_btn_large,
.cih_btn_medium,
.cih_btn_small,
.cih_btn_blue_large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(to left, var(--blue) 50%, #32bcf5 50%);
  background-size: 200% 100%;
  background-position: right;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-position .25s ease, transform .25s ease;
}
.cih_btn_medium,
.cih_btn_small { background-image: linear-gradient(to left, var(--orange) 50%, #eb672c 50%); }
.cih_btn_blue_large {
  min-width: 180px;
  color: var(--blue);
  background: var(--soft-blue);
  font-weight: 500;
}
.cih_btn_medium img,
.cih_btn_large img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.cih-btn:hover,
.cih_btn_large:hover,
.cih_btn_medium:hover,
.cih_btn_small:hover { background-position: left; color: var(--white); }
.cih_btn_blue_large:hover {
  color: var(--blue);
  background: #ecf9ff;
}
.cih-btn.large { width: auto; }

.hero-section {
  min-height: 580px;
  margin-top: 40px;
  background: url("../images/2025/04/CIH-BANK-CODE-Sakane-Hero-CODE-Sakane-LTR-min.png") right center / contain no-repeat;
  display: flex;
  align-items: center;
}
.rtl .hero-section {
  background-image: url("../images/2025/04/CIH-BANK-CODE-Sakane-Hero-CODE-Sakane-RTL-min.png");
  background-position: left center;
}
.hero-section .container,
.hero-section > div {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}
.hero-section p { max-width: 540px; font-size: 20px; }
.rtl .hero-section p { margin-inline-start: auto; }

.partenaires .logo-carousel {
  overflow: hidden;
  background: #f8f9fa;
  min-height: 136px;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partenaires .logo-track {
  display: flex;
  width: max-content;
  min-width: max-content;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(28px, 5vw, 70px);
  will-change: transform;
  animation: logoScroll 28s linear infinite;
}
.partenaires .logo-track > a {
  flex: 0 0 118px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partenaires .logo-carousel:hover .logo-track { animation-play-state: paused; }
.partenaires .logo-carousel img {
  width: 98px;
  max-height: 60px;
  margin: 0;
  filter: grayscale(1);
  opacity: .72;
  transition: .25s ease;
}
.partenaires .logo-carousel img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05);
}
@keyframes logoScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - clamp(14px, 2.5vw, 35px))); }
}

.code-sakane-section,
.caracteristiques-section,
.trouver-le-bien-ideal,
.videos-explicatives {
  padding: 100px 20px;
}
.avantages-section {
  padding: 48px 20px;
  background: var(--soft-blue);
  text-align: center;
}
.code-sakane-right {
  background: var(--soft-blue);
  padding: 30px;
}
.card-avantage {
  height: 100%;
  padding: 30px;
  text-align: start;
  border: 1px solid #d1f1ff;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 4px 10px rgba(0,0,0,.03);
  transition: transform .25s ease;
}
.card-avantage:hover { transform: translateY(-5px); }
.card-avantage img { width: 48px; height: 48px; margin-bottom: 15px; }
.card-avantage h3 { color: var(--blue); font-size: 20px; }
.caracteristiques-list {
  list-style: none;
  padding: 0;
}
.caracteristiques-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 18px;
}
.caracteristiques-list img { width: 22px; margin-top: 4px; }
.rtl .caracteristiques-list li { flex-direction: row-reverse; }
.cta-buttons {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 40px;
}
.cta-buttons a {
  min-width: 170px;
  min-height: 58px;
  text-align: center;
}

.hero_guide_code_sakane,
.le-guide-du-1er-achat-immobilier {
  padding: 100px 20px;
  background: url("../images/2025/04/Hero-Background.png") center / cover no-repeat;
}
.preparer-l-acquisition {
  padding: 60px 20px;
  background: var(--soft-orange);
}
.finaliser-l-achat { padding: 100px 20px 50px; }
.dernieres-etapes-et-demenagement { padding: 50px 20px; }
.identifier-vos-criteres-essentiels-row,
.preparer-l-acquisition-row,
.finaliser-l-achat-row,
.dernieres-etapes-et-demenagement-row,
.videos-explicatives-row { margin-top: 60px; }
.identifier-vos-criteres-essentiels-img img,
.finaliser-l-achat-img img,
.dernieres-etapes-et-demenagement-img img,
.img-vide-popup {
  border-radius: 12px;
}
.video-thumbnail { position: relative; display: inline-block; }
.hover-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 12px;
  background: rgba(0,0,0,.4);
  opacity: 0;
  transition: opacity .25s ease;
}
.play-btn-codesakane {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 3;
  width: 50px;
  transform: translate(-50%, -50%);
}
.popup-youtube:hover .hover-overlay { opacity: 1; }
.popup-youtube,
.popup-vimeo {
  cursor: pointer;
}
.video-modal[hidden] { display: none; }
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 12, 24, .82);
}
.video-modal__dialog {
  width: min(980px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
.video-modal__dialog iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-modal__close {
  position: fixed;
  top: 22px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255,255,255,.12);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.video-modal-open { overflow: hidden; }

.block-contact-form {
  min-height: 650px;
  padding: 72px 20px 0;
}
.block-contact-form .row { align-items: stretch; }
.contenu-contact-form,
.contact-form-content {
  display: flex;
  align-items: flex-start;
  padding-top: 56px;
}
.contenu-text-contact,
.contact-text-content { max-width: 540px; }
.contenu-text-contact h1,
.contact-text-content h1 {
  margin-bottom: 26px;
  font-size: clamp(52px, 6.5vw, 82px);
  line-height: 1.08;
  font-weight: 800;
}
.contenu-text-contact p,
.contact-text-content p {
  margin: 0;
  max-width: 520px;
  color: #55606d;
  font-size: 20px;
  line-height: 1.45;
}
.image-contact-form,
.contact-form-image {
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #82c7ee;
}
.image-contact-form img,
.contact-form-image img {
  width: 100%;
  min-height: 650px;
  object-fit: cover;
  object-position: center;
}
.native-contact-form {
  margin-top: -330px;
  padding: 0 20px 90px;
}
.native-contact-form form {
  max-width: 720px;
  margin: 0 auto;
}
.page-contact .native-contact-form form {
  max-width: 540px;
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}
.form-grid label { display: grid; gap: 8px; color: var(--muted); font-size: 18px; font-weight: 700; }
.form-grid .span-2 { grid-column: 1 / -1; }
input, textarea, select {
  width: 100%;
  border: 1px solid #d8dee8;
  border-radius: var(--radius);
  padding: 16px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}
::placeholder { color: #c8ced6; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }
.native-contact-form button { width: 100%; margin-top: 22px; }
.flash {
  position: fixed;
  top: 86px;
  left: 50%;
  z-index: 80;
  transform: translateX(-50%);
  max-width: min(680px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.flash.error { background: #fff2f0; }

.site-footer {
  padding: 18px 0;
  box-shadow: 0 -4px 8px -6px rgba(51,51,51,.45);
}
.footer-grid {
  display: grid;
  grid-template-columns: 170px 1fr 170px;
  gap: 24px;
  align-items: center;
}
.footer-copy { text-align: center; }
.footer-copy p { margin: 0 0 4px; font-size: 10px; }
.footer-copy a { color: #005b8a; text-decoration: underline; font-weight: 700; }
.social-links {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  flex-wrap: wrap;
}
.social-links img { width: 20px; }

.not-found-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding-top: 120px;
  text-align: center;
}

@media (max-width: 1024px) {
  .header-grid { grid-template-columns: 150px 1fr auto; }
  .menu-toggle { display: block; order: 3; }
  .language-menu { display: none; }
  .main-menu {
    position: fixed;
    inset: 76px -110% 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    padding: 36px 22px;
    background: var(--white);
    text-align: center;
    overflow-y: auto;
    transition: right .25s ease;
  }
  .main-menu.open { right: 0; }
  .main-menu a {
    padding: 18px;
    border-radius: 8px;
    background: #f9fafb;
    text-transform: uppercase;
  }
  .mobile-language-menu {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
  }
  .mobile-language-menu a {
    min-width: 58px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f9fafb;
    color: var(--ink);
    font-weight: 800;
  }
  .mobile-language-menu a.active {
    color: var(--white);
    background: var(--blue);
  }
}

@media (max-width: 768px) {
  .container { width: min(100% - 32px, var(--container)); }
  .row { gap: 24px 0; }
  .col-sm-2,
  .col-sm-8,
  .col-md-2,
  .col-md-3,
  .col-md-4,
  .col-md-6,
  .col-md-8,
  .col-lg-6 { width: 100%; }
  .hero-section {
    min-height: 820px;
    align-items: flex-end;
    padding: 280px 0 48px;
    background-position: top center;
  }
  .rtl .hero-section { background-position: top center; }
  .hero-section .container,
  .hero-section > div { text-align: center; }
  .partenaires .logo-carousel {
    justify-content: flex-start;
    min-height: 150px;
    padding: 24px 0;
    overflow-x: hidden;
    overflow-y: hidden;
  }
  .partenaires .logo-track {
    width: max-content;
    min-width: max-content;
    justify-content: flex-start;
    gap: 0;
    animation-duration: 24s;
  }
  .partenaires .logo-track > a {
    flex: 0 0 50vw;
    scroll-snap-align: center;
  }
  .partenaires .logo-carousel img {
    width: 112px;
    max-height: 66px;
  }
  .code-sakane-section,
  .caracteristiques-section,
  .trouver-le-bien-ideal,
  .videos-explicatives,
  .hero_guide_code_sakane { padding: 60px 20px; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .block-contact-form {
    min-height: auto;
    padding: 44px 20px 0;
    text-align: center;
  }
  .contenu-contact-form,
  .contact-form-content { padding-top: 0; }
  .contenu-text-contact,
  .contact-text-content { max-width: none; }
  .image-contact-form img,
  .contact-form-image img { min-height: 360px; }
  .native-contact-form { margin-top: 30px; }
  .page-contact .native-contact-form form { max-width: 720px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .social-links { justify-content: center; }
}
