/* ==========================================================================
   kyre.ch — feuille de style
   Reproduction du site WordPress/Divi d'origine, en CSS autonome.
   ========================================================================== */

:root {
  --blue: #11558A;         /* bleu kyre */
  --grey: #636266;         /* gris du point du logo */
  --text: #666666;
  --brand-light: #0c71c3;
  --line: #d7d7d7;
  --font: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --container: 1080px;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}

h1, h2, h3 { margin: 0; color: var(--blue); font-weight: 400; }
p { margin: 0; padding-bottom: 1em; }
p:last-of-type { padding-bottom: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { opacity: .75; }
strong, b { font-weight: 700; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 80%;
  max-width: var(--container);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   En-tête (fixe, se réduit au défilement)
   -------------------------------------------------------------------------- */
#main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
  transition: box-shadow .4s ease;
}
#main-header.scrolled { box-shadow: 0 0 7px rgba(0, 0, 0, .1); }

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-h);
  transition: height .4s ease;
}
#main-header.scrolled .header-inner { height: 54px; }

.logo { display: inline-flex; align-items: center; height: 100%; margin-right: auto; }
.logo img { max-height: 43px; width: auto; transition: max-height .4s ease; }
#main-header.scrolled .logo img { max-height: 32px; }
.logo-text { font-size: 24px; color: var(--blue); letter-spacing: -.02em; line-height: 1; }
.logo-text .dot { color: var(--grey); }

#top-menu { display: flex; list-style: none; margin: 0; padding: 0; }
#top-menu li { padding-right: 22px; }
#top-menu a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: rgba(0, 0, 0, .6);
  transition: opacity .4s ease, color .4s ease;
}
#top-menu a:hover { opacity: .7; }
#top-menu a.current { color: var(--blue); }

.search-toggle, .menu-toggle, .search-close {
  background: none; border: 0; padding: 0; cursor: pointer; color: rgba(0, 0, 0, .7);
}
.search-toggle { display: inline-flex; margin-left: 0; }
.search-toggle:hover { color: var(--blue); }

.menu-toggle { display: none; width: 26px; height: 20px; position: relative; margin-left: 50px; }
.menu-toggle span {
  position: absolute; left: 0; right: 0; height: 2.5px; background: #333; border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.menu-toggle span:nth-child(1) { top: 2px; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 16px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-search {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  background: #fff;
}
.header-search[hidden] { display: none; }
.header-search input {
  flex: 1;
  border: 0; outline: 0;
  font: inherit; font-size: 20px; color: #333;
  background: transparent;
}
.search-close { font-size: 32px; line-height: 1; padding: 0 0 0 20px; }

.mobile-menu {
  border-top: 3px solid var(--blue);
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
  width: 80%;
  margin: 0 auto;
  padding: 5%;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu a {
  display: block;
  padding: 10px 5%;
  border-bottom: 1px solid rgba(0, 0, 0, .03);
  color: rgba(0, 0, 0, .6);
  font-weight: 600;
}
.mobile-menu a.current { color: var(--blue); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { position: relative; background-color: #fff; }

/* fond texturé (03.png en lumière douce) */
.section-texture {
  background-image: url("../img/03.png");
  background-size: cover;
  background-position: center;
  background-blend-mode: soft-light;
}

.title-xl { font-size: 50px; line-height: 1; padding-bottom: 10px; }
.title-md { font-size: 25px; line-height: 1; padding-bottom: 10px; }
.center { text-align: center; }

/* ---------- Accueil : hero ---------- */
.hero-row { display: flex; }
.hero-left, .hero-right { width: 50%; }

.hero-left { padding: 50px 50px 0 10vw; }
@media (min-width: 1425px) { .hero-left { padding-left: 142px; } }

.letters { display: flex; margin-right: -50px; }
.letter { flex: 1 1 0; }
.letter-char {
  font-size: 80px;
  line-height: 1;
  padding-bottom: 10px;
  color: var(--blue);
}
.letter-k { font-weight: 500; }
.letter-dot { margin-left: .45em; }
.letter-word { border-top: 1px solid var(--text); }
.letter-word p { padding: 0; }

.hero-text { margin-top: 80px; padding-bottom: 50px; }
.hero-text strong { color: var(--blue); }

.hero-image { border-bottom: 5px solid var(--blue); overflow: hidden; }
.hero-image img { width: 100%; }
.hero-right { min-height: 1px; }

/* ---------- Accueil : univers ---------- */
.section-universes { padding: 100px 0 0; }
.narrow-title { max-width: 551px; padding: 0 50px; margin-bottom: 60px; }

.universe-row { display: flex; align-items: center; margin-bottom: 60px; }
.universe-row:last-child { margin-bottom: 0; padding-bottom: 100px; }
.universe-name, .universe-desc { width: 50%; }
.universe-name { padding-left: 100px; }
.universe-name p { padding: 0; line-height: 1.7; }
.universe-word {
  color: var(--blue);
  font-size: 60px;
  line-height: 1;
  font-weight: 700;
}
.universe-desc {
  border-left: 1px solid var(--line);
  padding: 20px 0 20px 20px;
}
.universe-soon .universe-word { color: #ddd; }
.universe-link { color: var(--text); transition: opacity .3s ease; }
.universe-link:hover { opacity: .7; }
.universe-link:hover .universe-word { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.text-rotator a.tr-item { color: var(--grey); }
.text-rotator a.tr-item:not(.is-active) { pointer-events: none; }

/* ---------- Pages intérieures ---------- */
.section-page { padding: 100px 0 0; }
.page-content { padding: 0 50px 50px; }
.page-content > * + * { margin-top: 30px; }
.page-content .text p { line-height: 1.5; }
.brand { color: var(--brand-light); }
.search-result + .search-result { margin-top: 20px; }

/* ---------- Bandeau « know your real estate » ---------- */
.section-promise {
  background-color: rgba(255, 255, 255, .8);
  background-image: url("../img/construction.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  min-height: 590px;
  overflow: hidden;
}
.promise-divider {
  position: absolute; top: 0; left: 0; right: 0; height: 100px; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg preserveAspectRatio='none' width='100%25' height='140px' viewBox='0 0 1280 140' xmlns='http://www.w3.org/2000/svg'><g fill='%23ffffff'><path d='M1280 140V0H0l1280 140z' fill-opacity='.5' /><path d='M1280 98V0H0l1280 98z' /></g></svg>");
  background-size: 100% 100px;
  background-repeat: no-repeat;
}
.promise-col { position: relative; z-index: 2; width: 50%; }
.promise-title {
  margin: 100px 0 0 50px;
  padding-left: 50px;
  border-left: 5px solid var(--blue);
}
.promise-title p { padding: 0; }
.promise-title strong {
  font-size: 60px;
  line-height: 90px;
  font-weight: 700;
  color: var(--blue);
}
.promise-text { margin: 30px 0 100px 50px; padding-left: 50px; }
.promise-text p {
  font-size: 40px;
  line-height: 60px;
  font-weight: 300;
  color: var(--blue);
  padding: 0;
}

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
#main-footer {
  border-top: 1px solid var(--blue);
  padding: 54px 0;
  background: #fff;
}
.footer-row { display: flex; }
.footer-col { width: 33.333%; }
.footer-text { margin-top: 30px; padding-bottom: 24px; }
.footer-copy { margin-top: 60px; text-align: center; font-weight: 300; }

/* Texte animé « kyre. invest / luxury / … » */
.tr-wrap {
  display: flex;
  justify-content: flex-start;
  gap: .4em;
  flex-wrap: wrap;
  font-size: 25px;
  line-height: 23.8px;
  color: var(--blue);
}
.tr-fixed { white-space: nowrap; }
.text-rotator {
  display: grid;
  overflow: hidden;
  text-align: left;
  font-size: 25px;
  color: var(--grey);
}
.tr-item { grid-area: 1 / 1; transform: translateY(-100%); opacity: 0; }
.tr-item.is-active { animation: trIn var(--anim, 500ms) ease-out forwards; }
.tr-item.is-leaving { animation: trOut var(--anim, 500ms) ease-in forwards; }
@keyframes trIn { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes trOut { from { transform: translateY(0); opacity: 1; } to { transform: translateY(100%); opacity: 0; } }

/* --------------------------------------------------------------------------
   Formulaire de contact
   -------------------------------------------------------------------------- */
.contact-form { max-width: 760px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { padding: 0 0 16px; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; color: var(--blue); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field select, .field textarea {
  width: 100%;
  font: inherit;
  color: #4e4e4e;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); }
.field-check label { color: var(--text); display: block; }
.field-check input { margin: 0 8px 0 0; vertical-align: -1px; accent-color: var(--blue); }
.btn {
  font: inherit; font-weight: 600; font-size: 16px;
  color: #fff; background: var(--blue);
  border: 2px solid var(--blue);
  padding: 10px 28px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: #fff; color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 20px; border-left: 5px solid var(--blue); background: rgba(17, 85, 138, .06); max-width: 760px; }
.notice ul { margin: 0; padding-left: 18px; }
.notice-error { border-left-color: #b3261e; background: rgba(179, 38, 30, .06); color: #8c1d18; }

/* --------------------------------------------------------------------------
   Responsive (même point de rupture que Divi : 980px)
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  #top-menu-nav { display: none; }
  .menu-toggle { display: inline-block; }
  .search-toggle { margin-left: auto; }
  #main-header.scrolled .header-inner { height: var(--header-h); }

  .hero-row { flex-direction: column; }
  .hero-left, .hero-right { width: 100%; }
  .hero-left { padding: 50px 0 0 10%; }
  .letters { flex-direction: column; margin-right: 0; }
  .letter { margin-bottom: 30px; }
  .letter-char { font-size: 100px; }
  .hero-text { margin-top: 50px; padding-right: 10%; }

  .narrow-title { width: 80%; padding: 0; }
  .universe-row { flex-direction: column; align-items: stretch; }
  .universe-name, .universe-desc { width: 100%; }
  .universe-name { padding-left: 0; margin-bottom: 20px; }

  .promise-col { width: 100%; }

  .footer-row { flex-direction: column; }
  .footer-col { width: 100%; margin-bottom: 30px; }
  .footer-copy { margin-top: 20px; }
}

@media (max-width: 767px) {
  .title-xl { font-size: 38px; }
  .universe-word { font-size: 44px; }
  .promise-title { margin-left: 25px; padding-left: 25px; }
  .promise-title strong { font-size: 42px; line-height: 62px; }
  .promise-text { margin-left: 25px; padding-left: 30px; }
  .promise-text p { font-size: 28px; line-height: 42px; }
  .page-content { padding: 0 0 50px; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .tr-item.is-active, .tr-item.is-leaving { animation: none; transform: none; }
  .tr-item.is-leaving { opacity: 0; }
}
.service-link { color: var(--text); }
.service-link:hover { opacity: 1; text-decoration: underline; }
