/* ======================================================
   Variables de configuration
====================================================== */
:root {
  /* Polices */
  --font-body: 'Avenir', sans-serif;
  --font-nav: Arial, sans-serif;

  /* Couleurs */
  --color-white: #fff;
  --color-black: #000;
  --color-dark: #333;
  --color-gold: gold;
  --color-aliceblue: aliceblue;
  --color-ccc: #ccc;

  /* Arrière-plans */
  --bg-primary: linear-gradient(350deg, rgba(30,80,175,1) 2%, rgba(10,45,120,1) 51%, rgba(0,80,255,1) 100%);
  --bg-nav: rgba(0, 0, 0, 0.8);
  --bg-nav-sticky: rgba(0, 0, 0, 0.9);
  --bg-section: rgba(255, 255, 255, 0.1);
  --bg-card: #fff;

  /* Dimensions et espacements */
  --padding-small: 5px 10px;
  --padding-base: 10px;
  --padding-large: 20px;
  --logo-max-width: 300px;
  --nav-zindex: 1000;

  /* Bordures et ombres */
  --radius-default: 4px;
  --radius-section: 8px;
  --box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 0.3s;
}

/* ======================================================
   Réinitialisation et styles globaux
====================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--color-white);
  line-height: 1.6;
}

/* ======================================================
   Navigation Principale
====================================================== */
.main-nav {
  background: var(--bg-nav);
  font-family: var(--font-nav);
  padding: var(--padding-base) 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: var(--nav-zindex);
}

.main-nav ul.menu {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav ul.menu > li {
  position: relative;
  margin: 0 15px;
}

.main-nav ul.menu > li > a {
  text-decoration: none;
  padding: var(--padding-small);
  color: var(--color-gold);
  font-weight: bold;
  transition: color var(--transition-fast);
}

.main-nav ul.menu > li > a:hover {
  color: var(--color-aliceblue);
}

/* Sous-menus (dropdowns) */
.main-nav ul.menu li .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-nav-sticky);
  padding: var(--padding-base) 0;
  list-style: none;
  min-width: 180px;
  border-radius: var(--radius-default);
}

.main-nav ul.menu li:hover > .submenu {
  display: block;
}

.main-nav ul.menu li .submenu li {
  padding: 5px 15px;
}

.main-nav ul.menu li .submenu li a {
  text-decoration: none;
  color: var(--color-gold);
  font-size: 0.9em;
  display: block;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.main-nav ul.menu li .submenu li a:hover {
  color: var(--color-aliceblue);
}

/* Sous-menus imbriqués (dropdown-sub) */
.main-nav ul.menu li .submenu li.dropdown-sub {
  position: relative;
}

.main-nav ul.menu li .submenu li.dropdown-sub .submenu {
  top: 0;
  left: 100%;
  margin-left: 1px;
}

/* Liens réseaux sociaux */
.social-link img {
  width: 30px;
  height: 30px;
}

/* ======================================================
   Header et docks
====================================================== */
.site-header {
  margin-top: 60px; /* Laisser la place au menu fixe */
  text-align: center;
  padding: var(--padding-large) 0;
  transition: background var(--transition-fast);
}

.site-header.sticky {
  background: var(--bg-nav-sticky);
}

.header-logo img {
  max-width: var(--logo-max-width);
  width: 100%;
}

.header-docks {
  margin-top: var(--padding-large);
}

.dock {
  margin: 20px 0;
}

.dock h1 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.dock-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.dock-item {
  text-align: center;
  width: 100px;
}

.dock-button img {
  width: 50px;
  height: 50px;
  transition: transform var(--transition-fast);
}

.dock-button:hover img {
  transform: scale(1.1);
}

.dock-notice {
  display: block;
  font-size: 0.75em;
  margin-top: 5px;
  color: var(--color-ccc);
}

/* ======================================================
   Mise en page principale
====================================================== */
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: var(--padding-large);
  margin-top: 20px;
}

@media (min-width: 980px) {
  .content-wrapper {
    min-height: 80vh;
  }
}

main {
  flex: 3;
  padding: var(--padding-large);
  max-width: 1200px;
}

/* ======================================================
   Dashboard Overview
====================================================== */
.dashboard {
  background: var(--bg-section);
  padding: var(--padding-large);
  border-radius: var(--radius-section);
  margin-bottom: 20px;
}

.dashboard h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--color-white);
}

.dashboard-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.card {
  background: var(--bg-card);
  color: var(--color-dark);
  padding: 15px;
  border-radius: var(--radius-default);
  flex: 1 1 calc(33% - 20px);
  box-shadow: var(--box-shadow);
}

.card h3 {
  text-align: center;
  margin-bottom: 10px;
}

.card ul {
  list-style: none;
  padding: 0;
}

.card ul li {
  margin-bottom: 8px;
}

.card a {
  text-decoration: none;
  color: #2980b9;
}

.card a:hover {
  text-decoration: underline;
}

/* ======================================================
   Nos Services
====================================================== */
.services {
  background: var(--bg-section);
  padding: var(--padding-large);
  border-radius: var(--radius-section);
  margin-bottom: 20px;
}

.services h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--color-white);
}

.services-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
}

.service-item {
  background: var(--bg-card);
  color: var(--color-dark);
  padding: 15px;
  border-radius: var(--radius-default);
  flex: 1 1 calc(33% - 20px);
  text-align: center;
  box-shadow: var(--box-shadow);
}

.service-item img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}

/* ======================================================
   Portfolio / Réalisations
====================================================== */
.portfolio {
  background: var(--bg-section);
  padding: var(--padding-large);
  border-radius: var(--radius-section);
  margin-bottom: 20px;
}

.portfolio h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--color-white);
}

.portfolio-filter {
  text-align: center;
  margin-bottom: 20px;
}

.filter-btn {
  background: var(--color-gold);
  border: none;
  padding: 8px 15px;
  margin: 0 5px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-aliceblue);
  color: var(--color-dark);
}

.portfolio-items {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.portfolio-item {
  background: var(--bg-card);
  color: var(--color-dark);
  border-radius: var(--radius-default);
  overflow: hidden;
  flex: 1 1 calc(33% - 20px);
  box-shadow: var(--box-shadow);
}

.portfolio-item img {
  width: 100%;
  height: auto;
}

.portfolio-desc {
  padding: 10px;
  text-align: center;
}

/* ======================================================
   Témoignages (Carrousel Swiper)
====================================================== */
.testimonials {
  background: var(--bg-section);
  padding: var(--padding-large);
  border-radius: var(--radius-section);
  margin-bottom: 20px;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--color-white);
}

.swiper-container {
  width: 100%;
  padding: var(--padding-large) 0;
}

.swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial {
  background: var(--bg-card);
  color: var(--color-dark);
  padding: 15px;
  border-radius: var(--radius-default);
  font-style: italic;
  box-shadow: var(--box-shadow);
}

.testimonial cite {
  display: block;
  text-align: right;
  margin-top: 10px;
  font-style: normal;
  font-weight: bold;
}

/* ======================================================
   FAQ
====================================================== */
.faq {
  background: var(--bg-section);
  padding: var(--padding-large);
  border-radius: var(--radius-section);
  margin-bottom: 20px;
}

.faq h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--color-white);
}

.faq-item details {
  background: var(--bg-card);
  color: var(--color-dark);
  padding: 15px;
  border-radius: var(--radius-default);
  margin-bottom: 10px;
  cursor: pointer;
  box-shadow: var(--box-shadow);
}

.faq-item summary {
  font-weight: bold;
  outline: none;
}

.faq-item p {
  margin-top: 10px;
}

/* ======================================================
   Article Principal
====================================================== */
.article-section {
  background: var(--bg-section);
  padding: var(--padding-large);
  border-radius: var(--radius-section);
  margin-bottom: 20px;
}

.article-section h2 {
  margin-bottom: 15px;
  color: var(--color-white);
}

.article-section ol {
  margin-left: 20px;
}

.article-section li {
  margin-bottom: 10px;
}

/* ======================================================
   Aside / Barre latérale
====================================================== */
.sidebar {
  flex: 1;
  max-width: 300px;
  padding: var(--padding-large);
  background: var(--bg-section);
  border-radius: var(--radius-section);
  margin: 20px;
}

.sidebar h2 {
  text-align: center;
  margin-bottom: 15px;
}

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

.sidebar ul li {
  margin-bottom: 10px;
}

.sidebar ul li a {
  text-decoration: none;
  color: var(--color-gold);
  font-weight: bold;
}

.sidebar ul li a:hover {
  color: var(--color-aliceblue);
}

/* ======================================================
   Footer
====================================================== */
footer {
  text-align: center;
  padding: var(--padding-large);
  background: var(--bg-nav);
  color: var(--color-white);
  margin-top: 20px;
}

/* ======================================================
   Responsive
====================================================== */
@media (max-width: 980px) {
  .dashboard-cards,
  .services-cards,
  .portfolio-items {
    flex-direction: column;
    align-items: center;
  }
  .card,
  .service-item,
  .portfolio-item,
  .dock-item {
    flex: 1 1 100%;
  }
  .content-wrapper {
    flex-direction: column;
    padding: 10px;
  }
  main, .sidebar {
    max-width: 100%;
    margin: 10px 0;
  }
}

/* ======================================================
   Section Produit à Vendre
====================================================== */
.product-sale {
  background: var(--bg-section);
  padding: var(--padding-large);
  border-radius: var(--radius-section);
  margin-bottom: 20px;
  text-align: center;
}

.product-sale h2 {
  color: var(--color-white);
  margin-bottom: 20px;
}

.product-card {
  background: var(--bg-card);
  color: var(--color-dark);
  border-radius: var(--radius-section);
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  box-shadow: var(--box-shadow);
  max-width: 600px;
  margin: 0 auto;
}

.product-card img {
  width: 100%;
  max-width: 300px;
  object-fit: cover;
}

.product-info {
  padding: var(--padding-large);
  text-align: left;
  flex: 1;
}

.product-info h3 {
  margin-bottom: 10px;
}

.product-info p {
  margin-bottom: 10px;
}

.price {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 15px;
}

.buy-button {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-dark);
  padding: var(--padding-small);
  text-decoration: none;
  font-weight: bold;
  border-radius: var(--radius-default);
  transition: background var(--transition-fast);
}

.buy-button:hover {
  background: var(--color-aliceblue);
}
