:root {
  --navy: #061524;
  --navy-2: #0a1e32;
  --turquoise: #13c7c9;
  --turquoise-soft: #65e4df;
  --gold: #dfc18a;
  --ivory: #f4ead5;
  --text: #eaf2f5;
  --muted: #a9bcc7;
  --panel: rgba(9, 27, 43, 0.88);
  --border: rgba(223, 193, 138, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 72% -10%, rgba(19,199,201,.12), transparent 34rem),
    var(--navy);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 18, 31, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223,193,138,.16);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  letter-spacing: .07em;
  color: var(--ivory);
  font-weight: 700;
}

.brand-dot { color: var(--turquoise); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: #e3eaee;
  text-decoration: none;
  font-size: .98rem;
  transition: color .2s ease;
}

.nav-links a:hover { color: var(--turquoise-soft); }

.nav-cta {
  padding: 10px 17px;
  border: 1px solid rgba(19,199,201,.5);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(19,199,201,.28), rgba(19,199,201,.12));
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(223,193,138,.16);
  background-image:
    linear-gradient(90deg,
      rgba(5,18,31,.99) 0%,
      rgba(5,18,31,.96) 30%,
      rgba(5,18,31,.66) 52%,
      rgba(5,18,31,.16) 78%,
      rgba(5,18,31,.06) 100%),
    url("rainui-hero.jpg");
  background-size: cover;
  background-position: center right;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.02), rgba(5,18,31,.35)),
    radial-gradient(circle at 75% 58%, rgba(223,193,138,.13), transparent 24rem);
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 610px;
  margin: auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(650px, 62%);
  padding: 72px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--turquoise-soft);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .17em;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--turquoise);
}

.hero h1 {
  margin: 0;
  max-width: 620px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 7vw, 6.4rem);
  line-height: .92;
  letter-spacing: -.03em;
  color: var(--ivory);
  text-shadow: 0 5px 28px rgba(0,0,0,.35);
}

.hero h1 span { color: var(--gold); }

.hero-lead {
  max-width: 610px;
  margin: 25px 0 0;
  color: #d7e4e8;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-motto {
  margin: 18px 0 0;
  color: var(--turquoise-soft);
  font-weight: 700;
  letter-spacing: .08em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}

.button-primary {
  color: #041a20;
  background: linear-gradient(135deg, #5ce0da, #16bfc2);
  box-shadow: 0 10px 28px rgba(19,199,201,.2);
}

.button-secondary {
  color: var(--ivory);
  background: rgba(7,22,36,.65);
  border-color: rgba(223,193,138,.34);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  padding: 76px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-heading small {
  color: var(--turquoise);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 700;
}

.section-heading h2 {
  margin: 7px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ivory);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 210px;
  padding: 25px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(150deg, rgba(255,255,255,.035), rgba(255,255,255,.01)),
    var(--panel);
  box-shadow: 0 14px 36px rgba(0,0,0,.15);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -50px;
  bottom: -55px;
  border: 1px solid rgba(19,199,201,.20);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(19,199,201,.035), 0 0 0 42px rgba(223,193,138,.025);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(19,199,201,.55);
  box-shadow: 0 20px 42px rgba(0,0,0,.25);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 23px;
  border-radius: 14px;
  color: var(--turquoise-soft);
  background: rgba(19,199,201,.10);
  border: 1px solid rgba(19,199,201,.18);
  font-size: 1.65rem;
}

.service-card h3 {
  margin: 0 0 8px;
  color: var(--ivory);
  font-size: 1.22rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.identity {
  border-top: 1px solid rgba(223,193,138,.14);
  border-bottom: 1px solid rgba(223,193,138,.14);
  background:
    radial-gradient(circle at 100% 20%, rgba(19,199,201,.10), transparent 30rem),
    #081a2b;
}

.identity-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 42px;
  align-items: center;
}

.identity-mark {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  isolation: isolate;
  padding: 10px 0 16px;
}

/* Halo très léger : l'illustration reste libre, sans cadre ni médaillon */
.identity-mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 92%;
  height: 72%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse,
      rgba(19,199,201,.11) 0%,
      rgba(19,199,201,.045) 45%,
      transparent 72%);
  filter: blur(24px);
}

/* Illustration indépendante : aucun fond, aucune bordure, aucun bouton */
.identity-mark img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(520px, 94vw);
  height: auto;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter:
    drop-shadow(0 24px 28px rgba(0,0,0,.34))
    drop-shadow(0 0 12px rgba(19,199,201,.08));
  transform: none;
}

.identity-copy h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--ivory);
}

.identity-copy p {
  color: var(--muted);
  max-width: 680px;
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.values span {
  padding: 8px 12px;
  color: var(--gold);
  background: rgba(223,193,138,.06);
  border: 1px solid rgba(223,193,138,.24);
  border-radius: 999px;
  font-size: .92rem;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  padding: 34px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #839aa7;
  font-size: .9rem;
}

.footer strong { color: var(--gold); }

@media (max-width: 900px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero {
    min-height: 630px;
    background-position: 63% center;
  }
  .hero-inner { min-height: 630px; }
  .hero-copy { width: 78%; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .identity-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .nav { height: 70px; }
  .brand img { width: 44px; height: 44px; border-radius: 11px; }
  .brand-name { font-size: 1.48rem; }
  .nav-cta { padding: 9px 12px; }

  .hero {
    min-height: 660px;
    background-image:
      linear-gradient(180deg, rgba(5,18,31,.78), rgba(5,18,31,.98) 78%),
      url("rainui-hero.jpg");
    background-position: 69% center;
  }

  .hero-inner {
    min-height: 660px;
    align-items: flex-end;
  }

  .hero-copy {
    width: 100%;
    padding: 60px 0 54px;
  }

  .hero h1 { font-size: clamp(3rem, 17vw, 4.8rem); }
  .service-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .footer { flex-direction: column; }
}
