:root {
  --color-cream: #FFF7ED;
  --color-sand: #F3E4D0;
  --color-white: #FFFCFA;
  --color-gold: #C9963A;
  --color-gold-light: #E8C57A;
  --color-gold-deep: #A67A28;
  --color-teal: #1B6B66;
  --color-teal-deep: #0F4440;
  --color-teal-soft: #DCEEEC;
  --color-terra: #D2653A;
  --color-terra-soft: #F8E0D4;
  --color-light: #FFF7ED;
  --color-light-soft: #FFFCFA;
  --color-dark: #1F1814;
  --color-dark-mid: #5A4C40;
  --gradient-canva: linear-gradient(145deg, #0C3B38 0%, #1B6B66 58%, #24807A 100%);
  --gradient-gold: linear-gradient(160deg, #E8C57A 0%, #C9963A 55%, #D2653A 100%);
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-width: 1120px;
  --radius: 10px;
  --shadow: 0 12px 32px rgba(15, 68, 64, 0.12);
  --header-h: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-sans);
  color: var(--color-dark);
  background: var(--color-light);
  line-height: 1.65;
}

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--color-terra);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 252, 250, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--color-teal);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 52px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem 1.1rem;
}

nav a {
  color: var(--color-dark);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  position: relative;
  white-space: nowrap;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-teal);
  transition: width 0.3s ease;
}

nav a:hover,
nav a.is-active {
  color: var(--color-teal);
}

nav a:hover::after,
nav a.is-active::after {
  width: 100%;
}

.nav-cta {
  margin-left: 0.35rem;
  padding: 0.5rem 1rem !important;
  background: var(--color-teal);
  color: #fff !important;
  text-transform: uppercase;
  font-size: 0.78rem !important;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--color-gold);
  color: var(--color-dark) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-dark);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  background: var(--gradient-canva);
  color: var(--color-cream);
  padding: 4.5rem 1.5rem 5.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 12% 85%, rgba(210, 101, 58, 0.28), transparent 60%),
    radial-gradient(ellipse 55% 45% at 92% 8%, rgba(232, 197, 122, 0.35), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.logo-brand--hero {
  display: flex;
  justify-content: center;
  min-height: 25vh;
  margin: 0 auto 2rem;
  align-items: center;
  animation: fadeUp 0.8s ease both;
}

.logo-img {
  height: auto;
  max-height: 18vh;
  max-width: min(85vw, 480px);
  width: auto;
  background: #FFFCFA;
  padding: 0.85rem 1.35rem;
  border-radius: 12px;
}

.hero h1 {
  font-size: clamp(1.45rem, 3.6vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.15rem;
  color: #FFF7ED;
  max-width: 18em;
  margin-left: auto;
  margin-right: auto;
  animation: fadeUp 0.8s ease 0.12s both;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 247, 237, 0.9);
  max-width: 560px;
  margin: 0 auto 2rem;
  animation: fadeUp 0.8s ease 0.22s both;
}

.btn {
  display: inline-block;
  position: relative;
  z-index: 1;
  padding: 0.85rem 2rem;
  background: #fff;
  color: var(--color-teal-deep);
  font-weight: 600;
  border: 2px solid var(--color-teal);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hero .btn {
  animation: fadeUp 0.8s ease 0.32s both;
  border-color: #fff;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--color-teal);
  border-color: var(--color-teal);
  box-shadow: 0 8px 22px rgba(15, 68, 64, 0.28);
  color: #fff;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  padding: 4.5rem 1.5rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-inner--narrow {
  max-width: 720px;
}

.section-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.65rem;
}

section h2,
.pole-content h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  color: var(--color-dark);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.accent-line {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-gold), var(--color-terra));
  margin-bottom: 1.75rem;
  border-radius: 2px;
}

.accent-line--center {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  color: var(--color-dark-mid);
  margin-bottom: 2.5rem;
  max-width: 720px;
}

.section-subtitle--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.entreprise {
  background: var(--color-white);
}

.entreprise-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.entreprise-text p {
  color: var(--color-dark-mid);
  margin-bottom: 1.1rem;
  max-width: 760px;
}

.entreprise-text strong {
  color: var(--color-dark);
  font-weight: 600;
}

.societe-poles {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 760px;
  margin-top: 0.35rem;
}

.societe-poles li {
  color: var(--color-dark-mid);
  padding-left: 1.15rem;
  position: relative;
}

.societe-poles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--color-terra);
  border-radius: 50%;
}

.societe-poles strong {
  color: var(--color-dark);
}

.dirigeante-cta {
  margin-top: 2rem;
}

.entreprise-aside {
  background: var(--color-teal-soft);
  padding: 2rem 1.75rem;
  border-left: 5px solid var(--color-teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

.entreprise-aside h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.entreprise-aside ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.entreprise-aside li {
  color: var(--color-dark-mid);
  font-size: 0.95rem;
  padding-left: 1.15rem;
  position: relative;
}

.entreprise-aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--color-terra);
  border-radius: 50%;
}

#expertises {
  background: var(--color-cream);
}

.expertises-intro {
  text-align: center;
  margin-bottom: 0.5rem;
}

.poles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pole-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 5px solid var(--color-gold);
}

.pole-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(15, 68, 64, 0.16);
  color: inherit;
}

.pole-card--teal { border-top-color: var(--color-teal); }
.pole-card--gold { border-top-color: var(--color-gold); }
.pole-card--terra { border-top-color: var(--color-terra); }

.pole-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.pole-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.pole-card h3 {
  font-size: 1.08rem;
  color: var(--color-dark);
  line-height: 1.35;
}

.pole-card-body span {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-teal);
}

.actu {
  background: var(--color-sand);
}

.actu-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.actu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.actu-item {
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.actu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(15, 68, 64, 0.16);
}

.actu-visual {
  height: 140px;
  background: var(--gradient-canva);
}

.actu-visual--alt {
  background: var(--gradient-gold);
}

.actu-visual--soft {
  background: linear-gradient(160deg, #1B6B66 0%, #7ecfc8 100%);
}

.actu-body {
  padding: 1.5rem 1.35rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.actu-date {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-terra);
  margin-bottom: 0.55rem;
}

.actu-item h3 {
  font-size: 1.08rem;
  color: var(--color-dark);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.actu-item p {
  color: var(--color-dark-mid);
  font-size: 0.93rem;
  flex: 1;
}

.contact {
  background: var(--color-teal);
  color: var(--color-cream);
  text-align: center;
}

.contact h2 {
  color: var(--color-cream);
}

.contact .accent-line {
  background: linear-gradient(90deg, var(--color-gold-light), var(--color-terra));
}

.contact .section-subtitle {
  color: rgba(255, 247, 237, 0.88);
}

.contact .btn {
  background: #fff;
  color: var(--color-teal-deep);
  border-color: #fff;
}

.contact .btn:hover {
  background: var(--color-teal-deep);
  border-color: var(--color-teal-deep);
  color: #fff;
}

footer {
  background: var(--color-teal-deep);
  color: var(--color-gold-light);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  border-top: 3px solid var(--color-gold);
}

.page-hero {
  background: var(--gradient-canva);
  padding: 3.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 12% 85%, rgba(210, 101, 58, 0.28), transparent 60%),
    radial-gradient(ellipse 55% 45% at 92% 8%, rgba(232, 197, 122, 0.35), transparent 55%);
  pointer-events: none;
}

.page-hero h1 {
  position: relative;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #FFF7ED;
  z-index: 1;
}

.coords {
  background: var(--color-teal-soft);
  padding: 2rem;
  border-left: 5px solid var(--color-teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.coords h2 {
  font-size: 1.35rem;
  color: var(--color-dark);
  margin-bottom: 1.25rem;
}

.coords-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--color-dark-mid);
}

.coords-list strong {
  color: var(--color-dark);
}

.coords-list a {
  color: var(--color-teal);
  font-weight: 600;
}

.form-box {
  background: var(--color-white);
  padding: 2rem;
  border-top: 5px solid var(--color-gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-box h2 {
  font-size: 1.35rem;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group--full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

input, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #D7C4A8;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-dark);
  background: var(--color-cream);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(27, 107, 102, 0.18);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-actions {
  text-align: center;
  margin-top: 0.5rem;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 500;
}

.alert--success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.alert--error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.coming-soon {
  background: var(--color-white);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 5px solid var(--color-gold);
}

.coming-soon p {
  color: var(--color-dark-mid);
  margin: 0 auto 1.75rem;
  max-width: 480px;
}

.pole-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-teal-deep);
}

.pole-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pole-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 59, 56, 0.18) 0%, rgba(12, 59, 56, 0.78) 100%);
}

.pole-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  width: 100%;
}

.pole-hero-content .section-label {
  color: var(--color-gold-light);
}

.pole-hero-content h1 {
  color: #FFF7ED;
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  line-height: 1.2;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--color-dark-mid);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  font-weight: 600;
}

.pole-content {
  background: var(--color-white);
}

.pole-lead {
  font-size: 1.08rem;
  color: var(--color-dark-mid);
  margin-bottom: 2rem;
}

.pole-phases {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.pole-phase {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  background: var(--color-cream);
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  border-left: 5px solid var(--color-teal);
}

.pole-phase--2 { border-left-color: var(--color-gold); }
.pole-phase--3 { border-left-color: var(--color-terra); }
.pole-phase--4 { border-left-color: #2A8A82; }

.pole-phase-num {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--color-teal);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pole-phase--2 .pole-phase-num { background: var(--color-gold-deep); }
.pole-phase--3 .pole-phase-num { background: var(--color-terra); }
.pole-phase--4 .pole-phase-num { background: #2A8A82; }

.pole-phase h2 {
  font-size: 1.12rem;
  margin-bottom: 0.4rem;
}

.pole-phase p {
  color: var(--color-dark-mid);
  font-size: 0.98rem;
}

.other-poles {
  margin-top: 1rem;
}

.other-poles h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.other-poles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.other-poles-list a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: var(--color-teal-soft);
  color: var(--color-teal-deep);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.other-poles-list a:hover {
  background: var(--color-teal);
  color: #fff;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 3px solid var(--color-teal);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  header.is-open nav {
    max-height: 480px;
  }

  nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.5rem 1.25rem;
    gap: 0;
  }

  nav a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(27, 107, 102, 0.15);
    white-space: normal;
  }

  .nav-cta {
    margin: 0.75rem 0 0 !important;
    text-align: center;
    border-bottom: none !important;
  }

  header.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  header.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  header.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 900px) {
  .entreprise-grid,
  .poles-grid,
  .actu-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .logo-brand--hero {
    min-height: 22vh;
    margin-bottom: 1.5rem;
  }

  .logo-img {
    max-height: 16vh;
  }

  .hero {
    padding: 3rem 1.5rem 4rem;
  }

  section {
    padding: 3.25rem 1.5rem;
  }

  .entreprise-grid,
  .poles-grid,
  .actu-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group--full {
    grid-column: auto;
  }

  .pole-phase {
    grid-template-columns: 1fr;
  }

  .pole-hero {
    min-height: 34vh;
  }
}
