/* IB Solutions WordPress Theme - Main Stylesheet */

:root {
  --navy: #1B2B4B;
  --navy-dark: #0E1C35;
  --gold: #C4882A;
  --gold-light: #D4A052;
  --cream: #F0EDE6;
  --cream-light: #F5F1EA;
  --cream-pale: #EDE9E1;
  --white: #ffffff;
  --muted: #6B7280;
  --border: rgba(196,136,42,.18);
  --font-size-multiplier: 1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--navy);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  font-size: calc(16px * var(--font-size-multiplier));
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
}

.hero-title {
  font-size: calc(3.5rem * var(--font-size-multiplier));
}

.section-title {
  font-size: calc(2.5rem * var(--font-size-multiplier));
}

.srv-title {
  font-size: calc(1.3rem * var(--font-size-multiplier));
}

.hero-desc, p {
  font-size: calc(1rem * var(--font-size-multiplier));
}

.srv-text {
  font-size: calc(0.95rem * var(--font-size-multiplier));
}

.srv-list li {
  font-size: calc(0.9rem * var(--font-size-multiplier));
}

/* ══════════════════════════════
   NAVIGATION
══════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 4rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(196,136,42,.25);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: padding .3s;
}

.site-header.scrolled {
  padding: 0.4rem 4rem;
}

.site-logo img {
  height: 80px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}

.site-nav a {
  color: rgba(27,43,75,.8);
  text-decoration: none;
  font-size: .73rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color .2s;
  position: relative;
  padding-bottom: 4px;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-light);
  transition: width .25s;
}

.site-nav a:hover {
  color: var(--gold-light);
}

.site-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--gold);
  color: var(--navy-dark);
  padding: .55rem 1.6rem;
  font-family: 'Jost', sans-serif;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .25s;
  display: inline-block;
}

.nav-cta:hover {
  background: var(--gold-light);
}

.nav-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-mobile-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(27,43,75,.8);
  transition: all .3s;
}

#mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(14,28,53,.98);
  z-index: 199;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

/* ══════════════════════════════
   HERO SECTION
══════════════════════════════ */
#hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--navy-dark);
  margin-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .28;
  transform: scale(1.05);
  animation: zoomOut 12s ease forwards;
}

@keyframes zoomOut {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(14,28,53,.92) 0%, rgba(14,28,53,.6) 55%, rgba(14,28,53,.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 9rem 4rem 6rem;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .66rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp .7s ease .3s forwards;
}

.hero-eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.08;
  max-width: 700px;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp .7s ease .45s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-title strong {
  font-weight: 600;
}

.hero-sub {
  font-size: .82rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 2.2rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .7s ease .58s forwards;
}

.hero-sub .dot {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}

.hero-desc {
  color: rgba(255,255,255,.62);
  font-size: .97rem;
  line-height: 1.9;
  max-width: 480px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp .7s ease .68s forwards;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .7s ease .78s forwards;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  padding: .9rem 2.4rem;
  font-family: 'Jost', sans-serif;
  font-size: .73rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: all .25s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--gold-light);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.75);
  padding: .85rem 2rem;
  font-family: 'Jost', sans-serif;
  font-size: .73rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: all .25s;
  background: none;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.35);
  font-size: .6rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp .7s ease 1.1s forwards;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(196,136,42,.5);
  animation: scrollLine 2s ease-in-out 1.5s infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ══════════════════════════════
   SERVICES BAR
══════════════════════════════ */
#services-bar {
  background: var(--navy);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  z-index: 10;
  gap: 0;
}

.sbar-item {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.06);
  position: relative;
  transition: all .3s ease;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: inherit;
  background: var(--navy);
}

.sbar-item:last-child {
  border-right: none;
}

.sbar-item:hover {
  background: rgba(196,136,42,.15);
  transform: translateY(-2px);
  box-shadow: inset 0 -3px 0 var(--gold);
}

.sbar-icon {
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--gold-light);
  transition: all .3s ease;
  min-height: 60px;
  min-width: 60px;
}

.sbar-item:hover .sbar-icon {
  font-size: 3rem;
  color: var(--gold);
}

.sbar-icon i {
  font-size: 2.5rem;
  transition: all .3s ease;
}

.sbar-item:hover .sbar-icon i {
  font-size: 3rem;
  transform: scale(1.15);
}

.sbar-name {
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  display: block;
  transition: color .3s ease;
}

.sbar-item:hover .sbar-name {
  color: var(--gold-light);
}

/* ══════════════════════════════
   GENERIC SECTION STYLES
══════════════════════════════ */
.section {
  padding: 7rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.label {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .63rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.label::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.15;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

/* ══════════════════════════════
   SERVICES SECTION
══════════════════════════════ */
#services {
  background: var(--cream);
}

.services-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: end;
}

.services-intro p {
  color: #4A5568;
  font-size: .93rem;
  line-height: 1.9;
}

.services-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2px !important;
  background: rgba(196,136,42,.1);
  width: 100%;
  box-sizing: border-box;
}

.srv-card {
  background: #F5F1EA;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background .35s;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-sizing: border-box;
}

/* MOBILE FIRST - Force 1 colonne sur petits écrans */
@media screen and (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 1px !important;
  }
  
  .srv-card {
    padding: 2rem 1.5rem !important;
  }
}

@media screen and (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 1px !important;
  }
  
  .srv-card {
    padding: 1.5rem 1rem !important;
  }
}

.srv-card:hover {
  background: var(--navy-dark);
}

.srv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--gold);
  transition: height .35s;
}

.srv-card:hover::before {
  height: 100%;
}

.srv-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: .7rem;
  color: var(--gold);
  letter-spacing: .22em;
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: block;
  transition: color .35s;
}

.srv-icon-wrap {
  width: 54px;
  height: 54px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all .35s;
  color: var(--navy);
}

.srv-icon-wrap i,
.srv-icon-wrap svg {
  color: inherit;
  transition: all .35s;
}

.srv-card:hover .srv-icon-wrap {
  background: rgba(196,136,42,.15);
  color: #ffffff !important;
}

.srv-card:hover .srv-icon-wrap i,
.srv-card:hover .srv-icon-wrap svg {
  color: #ffffff !important;
}

.srv-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 1rem;
  transition: color .35s;
}

.srv-card:hover .srv-title,
.srv-card:hover .srv-num {
  color: rgba(255,255,255,.9);
}

.srv-text {
  color: #6B7280;
  font-size: .87rem;
  line-height: 1.85;
  transition: color .35s;
}

.srv-card:hover .srv-text {
  color: rgba(255,255,255,.5);
}

.srv-list {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.srv-list li {
  font-size: .78rem;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: .6rem;
  transition: color .35s;
}

.srv-card:hover .srv-list li {
  color: rgba(255,255,255,.45);
}

.srv-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.srv-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 2rem;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: gap .2s;
}

.srv-link:hover {
  gap: .8rem;
}

/* ══════════════════════════════
   CONTACT SECTION
══════════════════════════════ */
#contact {
  background: #EDE9E1;
  padding: 7rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.contact-left .section-title {
  margin-bottom: 1.5rem;
}

.contact-left p {
  color: #4A5568;
  font-size: .92rem;
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cd-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cd-icon {
  width: 40px;
  height: 40px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
  color: #fff;
}

.cd-text {
  font-size: .85rem;
  color: #4A5568;
  line-height: 1.65;
}

.cd-text strong {
  color: var(--navy);
  font-weight: 500;
  display: block;
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .15rem;
}

.contact-form {
  background: #E5E0D6;
  padding: 3rem;
  border-top: 3px solid var(--gold);
}

.form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.fg {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1.15rem;
}

.fg label {
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.fg input,
.fg select,
.fg textarea {
  border: 1px solid rgba(0,0,0,.1);
  padding: .75rem 1rem;
  font-family: 'Jost', sans-serif;
  font-size: .88rem;
  font-weight: 300;
  color: var(--navy);
  background: #F0EDE6;
  outline: none;
  transition: border-color .2s;
  resize: none;
  width: 100%;
  appearance: none;
}

.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: var(--gold);
}

.fg textarea {
  height: 115px;
}

.form-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 1rem;
  width: 100%;
  font-family: 'Jost', sans-serif;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s;
  margin-top: .5rem;
}

.form-btn:hover {
  background: var(--gold);
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.site-footer {
  background: #ffffff;
  padding: 5rem 0 2.5rem;
  color: var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(196,136,42,.15);
  margin-bottom: 2rem;
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 1.25rem;
  display: block;
}

.footer-brand p {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.85;
}

.footer-socials {
  display: flex;
  gap: .75rem;
  margin-top: 1.5rem;
}

.footer-socials a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(196,136,42,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: .75rem;
  text-decoration: none;
  transition: all .2s;
}

.footer-socials a:hover {
  border-color: var(--gold);
  background: rgba(196,136,42,.1);
  color: var(--navy);
}

.footer-col h5 {
  font-size: .6rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.footer-col ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: .82rem;
  transition: color .2s;
}

.footer-col ul a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: .7rem;
  color: var(--muted);
}

.footer-pillars {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: .6rem;
  color: var(--muted);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.footer-pillars .dot {
  color: var(--gold);
  margin: 0 .1rem;
}

/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 980px) {
  .site-header {
    padding: .9rem 1.5rem;
  }
  
  .site-nav {
    display: none;
  }
  
  .nav-mobile-btn {
    display: flex;
  }
  
  #hero .hero-content {
    padding: 8rem 1.5rem 5rem;
  }
  
  #services-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: .6rem 1rem;
  }
  
  .site-logo img {
    height: 60px;
  }
  
  .hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }
  
  .section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* WordPress Core Styles Override */
body {
  background-color: var(--cream);
}

.wp-block-button__link {
  background-color: var(--gold);
  color: var(--navy-dark);
}

.wp-block-button__link:hover {
  background-color: var(--gold-light);
}

img {
  max-width: 100%;
  height: auto;
}

.aligncenter {
  text-align: center;
}

.alignright {
  float: right;
  margin-left: 1rem;
}

.alignleft {
  float: left;
  margin-right: 1rem;
}
