/* ============================================
   COMPAGN'O — Design System (Mobile-First)
   ============================================ */

/* ---------- Google Fonts ---------- */
/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand colours */
  --blue-royal: #0033CC;
  --blue-royal-dark: #002299;
  --green-grass: #4CAF50;
  --green-grass-dark: #388E3C;
  --blue-sky: #64B5F6;
  --blue-sky-light: #E3F2FD;
  --blue-sky-pale: #F0F7FF;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-500: #64748B;
  --gray-700: #334155;
  --text-dark: #1A1A2E;
  --text-muted: #555770;

  /* Typography */
  --font-heading: 'Montserrat', Arial, sans-serif;
  --font-body: 'Lato', Arial, sans-serif;

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-base: 0.35s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);

  /* Layout */
  --header-height: 70px;
  --max-width: 1280px;
}

/* ---------- CSS Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-royal);
}

h1 {
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero__title {
  font-size: clamp(2.4rem, 8vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  color: var(--blue-royal);
}

.hero__title span {
  display: block;
}

@media (max-width: 767px) {
  .hero {
    padding-top: calc(var(--header-height) + var(--space-md));
    padding-bottom: var(--space-2xl);
  }

  .hero .container {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .hero__content {
    display: contents;
    /* Allows children to be siblings with hero__visual in the container flex */
  }

  .hero__title {
    order: 1;
    font-size: clamp(2.2rem, 9vw, 2.8rem);
    margin-bottom: var(--space-md);
    line-height: 1.15;
  }

  .hero__title span {
    display: inline;
  }

  .hero__subtitle {
    order: 2;
    margin-bottom: var(--space-xl);
    padding: 0 var(--space-sm);
  }

  .hero__actions {
    order: 3;
    margin-bottom: var(--space-2xl);
  }

  .hero__visual {
    display: block !important;
    order: 4;
    position: relative;
    margin: 0 0 var(--space-xl);
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }

  /* Overlay (voile) on the image */
  .hero__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 51, 204, 0.05), rgba(0, 0, 0, 0.15));
    pointer-events: none;
    z-index: 1;
  }

  .hero__image {
    aspect-ratio: 21/9;
    object-fit: cover;
    width: 100%;
  }

  .hero__stats {
    order: 5;
    margin-top: 0;
  }
}

.hero__title .highlight,
h1 .highlight {
  color: var(--green-grass);
}

h3 {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-muted);
}

.lead {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.8;
  color: var(--gray-700);
}

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--alt {
  background: var(--off-white);
}

.section--blue {
  background: linear-gradient(135deg, var(--blue-royal) 0%, #1a4fd6 100%);
  color: var(--white);
}

.section--blue h2,
.section--blue h3,
.section--blue p {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

.section-header p {
  margin-top: var(--space-sm);
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green-grass);
  margin-bottom: var(--space-sm);
}

.section--blue .section-label {
  color: var(--blue-sky);
}

/* ---------- Grid System ---------- */
.grid {
  display: grid;
  gap: var(--space-md);
  /* Default to medium gap */
}

@media (min-width: 768px) {
  .grid {
    gap: var(--space-lg);
  }
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  text-align: center;
  white-space: normal;
  /* Allow wrapping by default */
}

.btn--nowrap {
  white-space: nowrap;
}

.btn--sm {
  padding: 10px 18px;
  /* Slightly tighter padding on mobile */
  font-size: 0.8rem;
  /* Slightly smaller font on mobile */
}

@media (min-width: 480px) {
  .btn--sm {
    padding: 10px 22px;
    font-size: 0.85rem;
  }
}

.btn--primary {
  background: linear-gradient(135deg, var(--green-grass) 0%, #66BB6A 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(76, 175, 80, 0.45);
  background: linear-gradient(135deg, var(--green-grass-dark) 0%, var(--green-grass) 100%);
}

.btn--secondary {
  background: var(--white);
  color: var(--blue-royal);
  border: 2px solid var(--blue-sky);
}

.btn--secondary:hover {
  background: var(--blue-sky-light);
  border-color: var(--blue-royal);
  transform: translateY(-2px);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--outline-white:hover {
  background: var(--white);
  color: var(--blue-royal);
  border-color: var(--white);
}

.btn--phone {
  background: linear-gradient(135deg, var(--blue-royal) 0%, #1a4fd6 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 51, 204, 0.35);
}

.btn--phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 51, 204, 0.45);
}

.btn--lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

.btn--sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.btn--outline-primary {
  background: transparent;
  color: var(--blue-royal);
  border: 2px solid var(--blue-sky);
}

.btn--outline-primary:hover {
  background: var(--blue-sky-light);
  border-color: var(--blue-royal);
  transform: translateY(-2px);
}

/* Button Group Utility */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.97);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.header__logo img {
  height: 60px;
  width: auto;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green-grass) 0%, #66BB6A 100%);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  gap: var(--space-xs);
  transition: all var(--transition-base);
  box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.header__phone-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.header__phone-btn svg {
  width: 18px;
  height: 18px;
}

.header__phone-text {
  display: none;
}

/* Burger Menu Button */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Center lines horizontally */
  gap: 6px;
  /* Integer gap for symmetry */
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.burger__line {
  display: block;
  width: 24px;
  /* Fixed width for better control */
  height: 2px;
  /* Integer height to avoid subpixel blur */
  background: var(--blue-royal);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.burger.active .burger__line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active .burger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger.active .burger__line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  padding: var(--space-2xl) var(--space-lg);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-nav__link:hover,
.mobile-nav__link.active {
  background: var(--blue-sky-light);
  color: var(--blue-royal);
}

.mobile-nav__link svg {
  width: 22px;
  height: 22px;
  color: var(--blue-sky);
  flex-shrink: 0;
}

.mobile-nav__cta {
  margin-top: auto;
  /* Push to bottom */
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-nav__cta .btn {
  width: 100%;
  text-align: center;
}

/* Desktop Nav */
.desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  .burger {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
  }

  .desktop-nav__link {
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-700);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
  }

  .desktop-nav__link:hover,
  .desktop-nav__link.active {
    color: var(--blue-royal);
    background: var(--blue-sky-pale);
  }

  .desktop-nav__cta {
    margin-left: var(--space-sm);
  }

  .header__phone-text {
    display: inline;
  }
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-3xl);
  overflow: hidden;
  background: linear-gradient(165deg, var(--blue-sky-light) 0%, var(--white) 60%, rgba(76, 175, 80, 0.05) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80vw;
  height: 80vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 181, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-grass);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.hero__badge svg {
  width: 18px;
  height: 18px;
}

.hero__title {
  margin-bottom: var(--space-lg);
}

.hero__title .highlight,
h1 .highlight {
  color: var(--green-grass);
  position: relative;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: var(--space-xl);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .hero__actions {
    justify-content: center;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    /* Stack buttons full width on small screens */
  }

  .hero__stats {
    justify-content: center;
  }
}

.hero__stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--gray-200);
}

.hero__stats>div {
  text-align: center;
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--blue-royal);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* Hero image column (desktop) */
.hero__visual {
  display: none;
}

@media (min-width: 768px) {
  .hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
  }

  .hero__visual {
    display: block;
    position: relative;
  }

  .hero__image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
  }

  .hero__float-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    animation: float 4s ease-in-out infinite;
  }

  .hero__float-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--green-grass), #66BB6A);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
  }

  .hero__float-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-dark);
  }

  .hero__float-text span {
    font-size: 0.8rem;
    color: var(--gray-500);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ---------- CREDIT D'IMPÔT BANNER ---------- */
.tax-banner {
  background: linear-gradient(135deg, var(--green-grass) 0%, #2E7D32 100%);
  color: var(--white);
  padding: var(--space-lg) 0;
  text-align: center;
}

.tax-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.tax-banner__icon {
  font-size: 2rem;
}

.tax-banner__text {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  color: var(--white);
  margin: 0;
}

.tax-banner__text strong {
  font-size: 1.3em;
}

.tax-banner a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

.tax-banner a:hover {
  opacity: 0.85;
}

@media (min-width: 576px) {
  .tax-banner__inner {
    flex-direction: row;
    justify-content: center;
  }
}

/* ---------- SERVICE CARDS ---------- */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-royal), var(--green-grass));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-sky);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: var(--space-lg);
  transition: transform var(--transition-base);
}

.service-card:hover .service-card__icon {
  transform: scale(1.1);
}

.service-card__icon--blue {
  background: var(--blue-sky-light);
  color: var(--blue-royal);
}

.service-card__icon--green {
  background: #E8F5E9;
  color: var(--green-grass);
}

.service-card__title {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  color: var(--text-dark);
}

.service-card__desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.service-card__link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-royal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.service-card__link:hover {
  gap: 10px;
  color: var(--green-grass);
}

/* Service card with illustration image */
.service-card__illustration {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  transition: transform var(--transition-base);
}

.service-card:hover .service-card__illustration {
  transform: scale(1.03);
}

/* Service detail illustration */
.service-detail__illustration {
  width: 100%;
  max-width: 220px;
  /* Reduced from 280px on mobile */
  margin: 0 auto var(--space-md);
  /* Centered on mobile */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}

@media (min-width: 768px) {
  .service-detail__illustration {
    max-width: 320px;
    margin: 0;
  }
}

/* ---------- ABOUT / TRUST SECTION ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: flex-start;
}

.contact__form {
  order: 1;
}

.contact__info {
  order: 2;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
  }

  .contact__form {
    order: 2;
  }

  .contact__info {
    order: 1;
  }
}

.about__image-wrap {
  position: relative;
}

.about__image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}

.about__accent {
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 80px;
  height: 80px;
  opacity: 0.15;
}

.trust-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.trust-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--off-white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--blue-royal);
  transition: all var(--transition-fast);
}

.trust-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.trust-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--blue-sky-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.trust-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.trust-card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  text-align: center;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--gray-200);
  text-align: left;
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testimonial-card__stars {
  color: #FFC107;
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  letter-spacing: 2px;
}

.testimonial-card__text {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: var(--space-lg);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--blue-sky-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--blue-royal);
  font-size: 1rem;
}

.testimonial-card__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ---------- FAQ ACCORDION ---------- */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

@media (min-width: 992px) {
  .faq-grid {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow var(--transition-base), border-color var(--transition-base),
    transform var(--transition-base), background-color var(--transition-base);
}

@media (min-width: 992px) {
  .faq-item {
    flex: 1 1 calc(50% - var(--space-md));
  }

  .faq-item.open {
    flex: 1 1 100%;
  }
}

.faq-item::before {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-royal), var(--green-grass));
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.faq-item.open {
  border-color: var(--blue-sky);
  box-shadow: 0 10px 30px rgba(15, 76, 129, 0.12);
  transform: translateY(-2px);
  background: #f5f8ff;
}

.faq-item.open::before {
  opacity: 1;
  transform: translateY(0);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  background: transparent;
  transition: background-color var(--transition-fast);
}

.faq-question:hover {
  background: var(--blue-sky-pale);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--blue-sky-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
  color: var(--blue-royal);
  font-size: 1.1rem;
}

.faq-item.open .faq-icon {
  background: var(--blue-royal);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer__inner {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray-700);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.faq-item.open .faq-answer__inner {
  opacity: 1;
  transform: translateY(0);
}

.faq-link {
  color: var(--blue-royal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-link:hover {
  color: var(--green-grass);
}

.faq-link-inline {
  color: var(--blue-royal);
  font-weight: 600;
}

.faq-link-inline:hover {
  text-decoration: underline;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--blue-royal) 0%, #1a4fd6 60%, #0d3b8f 100%);
  color: var(--white);
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.cta-section .btn+.btn {
  margin-left: var(--space-md);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

@media (min-width: 480px) {
  .cta-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-2xl) 0 var(--space-lg);
  /* Tightened top padding */
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg) var(--space-md);
  /* Reduced vertical gap */
  margin-bottom: var(--space-lg);
  /* Reduced margin */
}

.footer__brand,
.footer__grid>div:last-child {
  grid-column: 1 / -1;
  text-align: center;
}

@media (min-width: 576px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .footer {
    padding: var(--space-2xl) 0 var(--space-lg);
    /* Reduced from 3xl */
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    text-align: left;
    margin-bottom: var(--space-2xl);
  }

  .footer__brand,
  .footer__grid>div:last-child {
    grid-column: auto;
    text-align: left;
  }
}

.footer__brand img {
  height: 50px;
  width: auto;
  margin: 0 auto var(--space-md);
}

.footer__brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer__links li+li {
  margin-top: var(--space-xs);
  /* Tighter link list */
}

.footer__links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer__links a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer__contact-item+.footer__contact-item {
  margin-top: var(--space-sm);
  /* Tighter contact list */
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--blue-sky);
}

.footer__contact-item a {
  color: rgba(255, 255, 255, 0.8);
}

.footer__contact-item a:hover {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
  font-size: 0.82rem;
}

@media (min-width: 576px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---------- ZONES D'INTERVENTION ---------- */
.zones-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.zone-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all var(--transition-fast);
}

.zone-tag:hover {
  background: var(--blue-sky-light);
  border-color: var(--blue-sky);
  color: var(--blue-royal);
  transform: translateY(-2px);
}

.zone-tag svg {
  width: 14px;
  height: 14px;
  color: var(--green-grass);
}

/* ---------- FORMS ---------- */
.form-group {
  margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
  .form-group {
    margin-bottom: var(--space-lg);
  }
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

@media (min-width: 768px) {
  .form-label {
    margin-bottom: var(--space-sm);
  }
}

.form-label .required {
  color: #E53935;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  transition: all var(--transition-fast);
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--blue-royal);
  box-shadow: 0 0 0 4px rgba(0, 51, 204, 0.1);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .form-checkbox {
    gap: var(--space-md);
  }
}

.form-checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue-royal);
}

/* Custom Select - Premium Dropdown */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select .form-select {
  display: none;
}

.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1rem;
  color: var(--text-dark);
}

.select-trigger:hover {
  border-color: var(--blue-sky);
  background: var(--off-white);
}

.custom-select.active .select-trigger {
  border-color: var(--blue-royal);
  box-shadow: 0 0 0 4px rgba(0, 51, 204, 0.1);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.select-trigger__icon {
  width: 20px;
  height: 20px;
  color: var(--blue-royal);
  transition: transform var(--transition-base);
}

.custom-select.active .select-trigger__icon {
  transform: rotate(180deg);
}

.select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 2px solid var(--blue-royal);
  border-top: none;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

/* Contact Form Card */
.contact-card {
  background: var(--off-white);
  padding: 1.25rem var(--space-md);
  /* Slightly more air on top/bottom, safe sides */
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  max-width: 100%;
  overflow: hidden;
}

@media (min-width: 576px) {
  .contact-card {
    padding: var(--space-xl);
  }
}

.custom-select.active .select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.select-option {
  padding: 12px 18px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.95rem;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.select-option:hover {
  background: var(--blue-sky-pale);
  color: var(--blue-royal);
  padding-left: 24px;
}

.select-option.selected {
  background: var(--blue-sky-light);
  color: var(--blue-royal);
  font-weight: 700;
}

.select-option.selected::before {
  content: '✓';
  color: var(--green-grass);
  font-weight: 700;
}

/* Custom scrollbar for dropdown */
.select-options::-webkit-scrollbar {
  width: 6px;
}

.select-options::-webkit-scrollbar-track {
  background: var(--gray-100);
}

.select-options::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 10px;
}

.select-options::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* Autocomplete Suggestions */
.autocomplete-container {
  position: relative;
  width: 100%;
}

.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: none;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 101;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.autocomplete-suggestion {
  padding: 10px 18px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background var(--transition-fast);
  color: var(--text-dark);
}

.autocomplete-suggestion:hover {
  background: var(--blue-sky-pale);
  color: var(--blue-royal);
}

.autocomplete-suggestion strong {
  color: var(--blue-royal);
}

/* ---------- PAGE HEADER ---------- */
.page-header {
  background: linear-gradient(170deg, var(--blue-sky-light) 0%, var(--blue-sky-pale) 100%);
  padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-xl);
  text-align: center;
  border-bottom: 1px solid var(--blue-sky-light);
}

@media (min-width: 768px) {
  .page-header {
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
  }
}

.page-header h1 {
  margin-bottom: var(--space-md);
}

.page-header .lead {
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: var(--space-lg);
}

.breadcrumb a {
  color: var(--blue-royal);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ---------- SERVICE DETAIL ---------- */
.service-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
  /* Slightly more gap between elements */
  padding: var(--space-2xl) 0;
  /* More air around cards */
  position: relative;
}

.service-detail:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(to right,
      transparent 0%,
      var(--blue-sky) 15%,
      var(--blue-royal) 50%,
      var(--blue-sky) 85%,
      transparent 100%);
  opacity: 0.7;
}

@media (min-width: 768px) {
  .service-detail {
    display: grid;
    grid-template-columns: auto 1fr;
    text-align: left;
    align-items: flex-start;
    gap: var(--space-2xl);
    padding: var(--space-2xl) 0;
    border-bottom: 1px solid var(--gray-200);
  }

  .service-detail::after {
    display: none;
  }
}

/* Liste de services (page Nos Services) */
.services-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

@media (min-width: 992px) {
  .services-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--space-lg);
    row-gap: var(--space-xl);
  }

  .services-grid .service-detail {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    background: var(--white);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    border-bottom: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: var(--space-md);
    align-items: flex-start;
  }

  .services-grid .service-detail__illustration {
    max-width: 150px;
    height: auto;
  }
}

.service-detail__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.service-detail__content h2 {
  margin-bottom: var(--space-md);
}

.service-detail__content p {
  margin-bottom: var(--space-md);
  font-size: 0.96rem;
}

.service-detail__list {
  list-style: none;
  margin: var(--space-sm) 0;
  text-align: left;
  display: inline-block;
}

.service-detail__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  font-size: 0.92rem;
  color: var(--gray-700);
}

.service-detail__list li::before {
  content: '✓';
  color: var(--green-grass);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- MAP EMBED ---------- */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--gray-200);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
  display: block;
}

@media (min-width: 768px) {
  .map-container iframe {
    height: 450px;
  }
}

/* ---------- AGRÉMENTS SECTION ---------- */
.agrements {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-lg) 0;
}

.agrement-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.agrement-item__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--blue-sky-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--blue-royal);
}

.agrement-item__text {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-700);
  max-width: 120px;
  line-height: 1.4;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ---------- SKIP TO CONTENT (Accessibility) ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-royal);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 9999;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* ---------- MISC ---------- */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mt-2xl {
  margin-top: var(--space-2xl);
}

/* Phone floating button (mobile) */
.phone-float {
  display: flex;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--green-grass), #66BB6A);
  color: var(--white);
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
  z-index: 900;
  transition: all var(--transition-base);
  animation: pulse-ring 2s ease-out infinite;
}

/* Desktop enhancements */
@media (min-width: 992px) {
  .btn--phone {
    padding: 18px 46px;
    font-size: 1.1rem;
  }

  .header__phone-btn {
    height: 44px;
    padding: 0 22px;
    font-size: 1rem;
    box-shadow: 0 4px 18px rgba(76, 175, 80, 0.45);
  }
}

.phone-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(76, 175, 80, 0.5);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4), 0 0 0 0 rgba(76, 175, 80, 0.3);
  }

  70% {
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4), 0 0 0 15px rgba(76, 175, 80, 0);
  }

  100% {
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4), 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

@media (min-width: 768px) {
  .phone-float {
    display: none;
  }
}

/* Aid card for financial page */
.aid-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.aid-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.aid-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.aid-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.aid-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.aid-card__desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
}