:root {
  --primary-dark: #1f2937;
  --primary-light: #f8fafc;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --text-dark: #1e293b;
  --text-light: #f1f5f9;
  --text-muted: #64748b;
  --background: #f5f7fa;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --shadow: rgba(0, 0, 0, 0.05);
}

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

main {
  flex: 1;
  padding: 40px 40px 40px 80px;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  background-color: var(--background);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.hamburger {
  width: 30px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
  position: fixed;
  top: 20px;
  left: 20px;
  transition: all 0.3s ease;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #1f2937;
  border-radius: 2px;
  transition: all 0.4s ease-in-out;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
  background-color: #fff;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
  background-color: #fff;
}

.hamburger:hover span {
  background-color: #9db6cf;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -220px;
  width: 220px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-dark), #111827);
  padding-top: 70px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  opacity: 0;
}

.sidebar.active {
  left: 0;
  opacity: 1;
}

.sidebar ul {
  list-style: none;
  text-align: center;
  padding: 0;
}

.sidebar ul li {
  padding: 8px 15px;
  margin: 8px 0;
}

.sidebar ul li a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
  transition: all 0.3s ease;
  padding: 10px 15px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin: 0 5px;
}

.sidebar ul li a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 4px;
  height: 0;
  background-color: var(--accent);
  transition: height 0.3s ease;
}

.sidebar ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateX(5px);
}

.sidebar ul li a:hover::before {
  height: 100%;
}

.page-content {
  padding: 40px;
  margin-left: 0;
  transition: margin-left 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.page-content::before {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0) 70%);
  z-index: -1;
}

.page-content::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0) 70%);
  z-index: -1;
}

.sidebar.active ~ .page-content {
  margin-left: 220px;
}

header {
  background: linear-gradient(135deg, var(--primary-dark), #111827);
  color: var(--text-light);
  padding: 25px 30px;
  border-radius: 0 0 16px 16px;
  margin-top: 20px;
  margin-bottom: 25px;
  position: relative;
  min-height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-left {
  display: flex;
  align-items: center;
  width: 65%;
}

footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  text-align: center;
  font-size: 0.9rem;
  position: relative;
  bottom: 0;
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  margin-top: 50px;
}

.expertise-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.expertise-list li {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
  overflow: hidden;
}

.expertise-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.expertise-list h3 {
  font-size: 1.3rem;
  margin: 0 0 8px;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 5px;
}


.expertise-list h3::after {
  display: none;
}

.underline {
  height: 2px;
  background-color: var(--accent);
  width: 60px;
  margin-top: -5px;
  margin-bottom: 8px;
}

.expertise-list p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.4;
}

.contact-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 60px;
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 10px 30px var(--shadow);
  width: 100%;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-container:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.contact-container h2 {
  margin-bottom: 20px;
  color: #1e3a8a;
  width: 100%;
  text-align: left;
}

.contact-info p {
  margin: 10px 0;
  font-size: 1.1rem;
  width: 100%;
  text-align: left;
}

.contact-info a {
  color: #1a237e;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
}

.contact-info a:hover {
  color: #0d47a1;
  text-decoration: underline;
}

iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 8px;
  margin-top: 20px;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 5px;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

header p {
  font-size: 1.1rem;
  margin: 0 0 10px;
  font-style: italic;
  color: var(--text-light);
  display: block;
  opacity: 0.9;
}

main.content {
  padding: 20px;
}

.honoraires-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}

.honoraires-item {
  background-color: var(--card-bg);
  padding: 20px 25px;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.honoraires-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.honoraires-item h4 {
  margin: 0;
  font-size: 1.2rem;
  color: #1f2937;
}

.honoraires-item p {
  margin-top: 5px;
  font-size: 0.95rem;
  color: #444;
}

h2 {
  font-size: 2rem;
  margin: 2rem 0 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
  color: var(--text-dark);
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

section {
  margin-bottom: 3rem;
}

section h3 {
  color: var(--text-dark);
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

p {
  margin-bottom: 1.2rem;
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 400px;
  margin: 30px 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

form {
  max-width: 600px;
  width: 100%;
  margin: 50px auto;
  padding: 40px;
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 10px 30px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 30px;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

form input,
form textarea {
  width: 100%;
  padding: 12px 0;
  font-size: 16px;
  color: var(--text-dark);
  border: none;
  border-bottom: 2px solid var(--border);
  background: transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

form input::placeholder,
form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(59, 130, 246, 0.03);
}

form textarea {
  min-height: 140px;
  resize: vertical;
}

form button {
  background-color: var(--accent);
  color: white;
  padding: 14px 28px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  font-weight: 600;
  align-self: flex-start;
}

form button:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

#form-message {
  margin-top: 20px;
  color: #10b981;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateY(10px);
}

#form-message:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  opacity: 0;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


a, button, .hamburger, .logo img {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.logo {
  width: 33%;
  text-align: right;
}

.logo img {
  height: auto;
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.texte-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
}


@media screen and (min-width: 481px) and (max-width: 768px) {
  .expertise-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  main {
    padding: 30px 25px 30px 30px;
  }
  
  .contact-container {
    padding: 40px 30px;
  }
}


@media screen and (max-width: 480px) {

  main, .page-content {
    padding: 0;
    width: 100%;
  }
  
  main {
    padding: 25px 20px;
  }
  
  p, h1, h2, h3, h4, section {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  

  html {
    scroll-behavior: smooth;
  }
  
  body {
    -webkit-overflow-scrolling: touch;
  }
  

  .sidebar {
    width: 100%;
    left: -100%;
    padding-top: 60px;
  }
  
  .sidebar.active {
    left: 0;
    width: 100%;
  }
  
  .sidebar ul {
    padding: 0;
  }
  
  .sidebar ul li {
    margin: 12px 0;
  }
  
  .sidebar ul li a {
    font-size: 1.2rem;
    padding: 12px 15px;
    margin: 0 10px;
    border-radius: 8px;
  }
  
  .sidebar.active ~ .page-content {
    margin-left: 0;
  }
  
  
  .hamburger {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1002;
  }
  
  .hamburger span {
    background-color: var(--text-light);
  }
  
  .hamburger:hover span {
    background-color: #ffffff;
  }

  header {
    padding: 15px;
    padding-top: 45px;
    border-radius: 0 0 20px 20px;
    margin-top: 0;
    margin-bottom: 15px;
    min-height: 130px;
    flex-direction: column;
    background: linear-gradient(135deg, var(--primary-dark), #111827);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  }
  
  .header-left {
    width: 100%;
    text-align: center;
  }
  
  .texte-header {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
  }
  
  header h1 {
    font-size: 1.5rem;
    margin: 0 0 5px;
    line-height: 1.2;
    white-space: normal;
  }
  
  header p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.3;
    display: block;
  }
  

  .contact-container {
    padding: 25px 20px;
    margin: 25px auto;
    border-radius: 12px;
  }
  
  form {
    padding: 25px 20px;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  }
  
  form input,
  form textarea {
    font-size: 16px;
    padding: 12px 0 8px;
  }
  
  form button {
    width: 100%;
    margin-top: 15px;
    padding: 15px;
    font-size: 16px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
  }
  
  .slideshow-container {
    height: 250px;
    margin: 15px 0;
    border-radius: 12px;
  }
  

  .logo {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }
  
  .logo img {
    height: auto;
    width: 70%;
    max-height: 100px;
    object-fit: contain;
  }
  

  .expertise-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 25px 0;
  }
  
  .expertise-list li, .honoraires-item {
    padding: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  

  .expertise-list li:active, .honoraires-item:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .expertise-list li:hover, .honoraires-item:hover {
    transform: translateY(-3px);
  }
  
  .honoraires-list {
    gap: 15px;
  }
  

  .expertise-list li:not(:last-child), .honoraires-item:not(:last-child) {
    border-bottom: 1px solid var(--border);
  }
  

  h2 {
    font-size: 1.7rem;
    margin: 1.5rem 0 1.2rem;
  }
  
  h2::after {
    width: 50px;
  }
  
  section h3 {
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 12px;
  }
}


@media screen and (max-width: 360px) {
  header h1 {
    font-size: 1.3rem;
  }
  
  main {
    padding: 20px 15px;
  }
  
  .expertise-list li, .honoraires-item {
    padding: 18px 15px;
  }
  
  .contact-container {
    padding: 20px 15px;
  }
  
  form {
    padding: 20px 15px;
  }
  
  .logo img {
    width: 80%;
  }
  

  .sidebar ul li a {
    padding: 14px 15px;
    margin-bottom: 5px;
  }
  
  form button {
    padding: 16px 20px;
  }
}

@media screen and (max-width: 767px) and (orientation: landscape) {
  header {
    margin-top: 0;
    padding-top: 40px;
    min-height: auto;
  }
  
  .hamburger {
    position: fixed;
    top: 10px;
    left: 10px;
  }
  
  .logo img {
    max-height: 80px;
  }
  
  .slideshow-container {
    height: 200px;
  }
}


.home-slideshow-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  border-radius: 0;
}

.home-slideshow-container .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.home-slideshow-container .slide.active {
  opacity: 1;
  z-index: 2;
}

.home-slideshow-container .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(31, 41, 55, 0.7) 0%,
    rgba(31, 41, 55, 0.5) 30%,
    rgba(31, 41, 55, 0.3) 70%,
    rgba(31, 41, 55, 0.6) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.home-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 40px;
  animation: fadeInUp 1.5s ease-out;
}

.home-logo {
  margin-bottom: 30px;
}

.home-logo img {
  height: auto;
  width: 300px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.home-logo img:hover {
  transform: scale(1.05);
}

.home-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 15px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.home-text p {
  font-size: 1.4rem;
  margin: 0;
  font-style: italic;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


body.home-page header {
  display: none;
}


body.home-page .page-content {
  padding: 0;
  margin: 0;
}


body.home-page .hamburger {
  z-index: 1002;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 8px;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  width: 46px;
  height: 40px;
}

body.home-page .hamburger span {
  background-color: #1f2937;
}

body.home-page .hamburger:hover {
  background: rgba(255, 255, 255, 1);
}

body.home-page .hamburger:hover span {
  background-color: #3b82f6;
}


.home-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(31, 41, 55, 0.8);
  color: white;
  text-align: center;
  padding: 15px;
  backdrop-filter: blur(10px);
  border-radius: 0;
  margin: 0;
}

.home-footer p {
  margin: 0;
  font-size: 0.9rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}


@media screen and (max-width: 768px) {
  .home-content {
    padding: 20px;
  }
  
  .home-logo img {
    width: 220px;
  }
  
  .home-text h1 {
    font-size: 2.5rem;
  }
  
  .home-text p {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 480px) {
  .home-content {
    padding: 15px;
  }
  
  .home-logo {
    margin-bottom: 20px;
  }
  
  .home-logo img {
    width: 180px;
  }
  
  .home-text h1 {
    font-size: 2rem;
  }
  
  .home-text p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 767px) and (orientation: landscape) {
  .home-slideshow-container {
    height: 100vh;
  }
  
  .home-content {
    padding: 10px;
  }
  
  .home-logo img {
    width: 140px;
  }
  
  .home-text h1 {
    font-size: 1.8rem;
  }
  
  .home-text p {
    font-size: 0.9rem;
  }
}