/* ========================= */
/*        RESET & BASE       */
/* ========================= */

/* Reset simple */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Mont", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #F2F0EF;          /* fond blanc cassé */
  color: #333333;               /* gris anthracite */
  line-height: 1.6;
  font-size: 18px;
}

/* ========================= */
/*           HEADER          */
/* ========================= */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid #DDDDDD;
  gap: 20px;
  background: #333;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}

header h1 {
  font-size: 30px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #333333;
}

/* Navigation principale */
.site-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: #F2F0EF;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  display: inline-block;
  font-size: 15px;
  background: transparent;
  border: 1px solid transparent;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.1s ease,
    border-color 0.15s ease;
}

.site-nav a:hover {
  background: #E6E2DC;
  border-color: #CCCCCC;
  color: #111111;
  transform: translateY(-1px);
}

.site-nav a.is-active {
  background: #333333;
  border-color: #333333;
  color: #FFFFFF;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo-img {
  height: 60px;        /* taille du logo dans le header */
  width: auto;
  display: block;
  object-fit: contain;
}

/* ========================= */
/*            MAIN           */
/* ========================= */

main {
  max-width: 1200px;
  margin: 0 auto 120px;
  padding: 0 32px 0;
}

main h2 {
  font-size: 28px;
  margin-bottom: 16px;
  text-align: center;
  color: #333333;
}

main p {
  font-size: 16px;
  margin-bottom: 10px;
  text-align: center;
  color: #333333;
}

/* Liens dans le contenu */
main a {
  color: #333333;
  text-decoration: underline;
}

main a:hover {
  text-decoration: none;
}

/* ========================= */
/*           FOOTER          */
/* ========================= */

footer {
  border-top: 1px solid #DDDDDD;
  padding: 20px 0 28px;
  text-align: center;
  font-size: 14px;
  color: #666666;
  background: #F2F0EF;
}

/* ========================= */
/*          BOUTONS          */
/* ========================= */

button,
.btn,
.btn-primary {
  display: inline-flex;
  margin-top: 30px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid #333333;
  background: #333333;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  gap: 8px;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease,
    box-shadow 0.15s ease;
}

button:hover,
.btn:hover,
.btn-primary:hover {
  background: #555555;
  border-color: #555555;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

button:active,
.btn:active,
.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ========================= */
/*           HERO            */
/* ========================= */

/* bloc général hero */
.hero {
  position: relative;
  z-index: 0;
  margin-bottom: 80px;
  overflow: hidden;
  border-radius: 32px;
  padding: 72px 32px 80px;
  background: radial-gradient(circle at top, #FFFFFF 0%, #F2F0EF 55%, #F2F0EF 100%);
}

/* conteneur interne */
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hero-tagline {
  font-size: 1.05rem;
  margin-bottom: 22px;
  color: #333333;
}

.hero-text,
.hero-right p {
  font-size: 0.98rem;
  line-height: 1.9;
  color: #333333;
}

/* logo dans le hero */
.hero-logo {
  height: 56px;
  margin-bottom: 16px;
}

/* layout V1 & V2 : deux colonnes */
.hero-v1 .hero-inner,
.hero-v2 .hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

/* colonne gauche des versions 1 & 2 */
.hero-left {
  text-align: center;          /* centre logo, DOLI, accroche, bouton */
}

/* logo centré dans la colonne */
.hero-left .hero-logo {
  display: block;
  margin: 0 auto 16px;
}

/* petit texte "DOLI" au-dessus de l'accroche */
.hero-brand {
  text-transform: uppercase;
  letter-spacing: 0.20em;
  margin-bottom: 8px;
  color: #333333;
}

/* accroche principale */
.hero-title {
  font-size: 2.0rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-v1 .hero-left,
.hero-v1 .hero-right,
.hero-v2 .hero-left,
.hero-v2 .hero-right {
  flex: 1;
}

/* layout V3 & V4 : contenu centré */
.hero-inner-centered {
  text-align: center;
}

.hero-inner-centered .hero-title,
.hero-inner-centered .hero-tagline,
.hero-inner-centered .hero-text {
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}

.hero-logo-center {
  margin-left: auto;
  margin-right: auto;
}

/* bouton dans le hero */
.hero .btn-primary {
  margin-top: 28px;
}

/* hero responsive */
@media (max-width: 1024px) {
  .hero {
    padding: 56px 24px 64px;
    margin-bottom: 64px;
  }

  .hero-v1 .hero-inner,
  .hero-v2 .hero-inner {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 18px 52px;
    border-radius: 24px;
  }

  .hero-v1 .hero-inner,
  .hero-v2 .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-title {
    font-size: 1.8rem;
    letter-spacing: 0.14em;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-text,
  .hero-right p {
    font-size: 0.98rem;
  }

  .hero-logo {
    height: 50px;
  }
}

/* ========================= */
/*          SECTIONS         */
/* ========================= */

/* Sections génériques (bloc arrondi) */
section {
  position: relative;
  z-index: 0;
  margin-bottom: 80px;
  overflow: hidden;
  border-radius: 32px;
}

section:not(.hero) {
  padding: 40px 32px 48px;
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  margin-top: 30vh;
}

/* Titres de section */
section h3 {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 14px;
  color: #333333;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 32px;
  opacity: 0.8;
  color: #555555;
}

/* Ancrage avec header sticky */
#services,
.carouselle,
.contact {
  scroll-margin-top: 110px;
}

/* ========================= */
/*          SERVICES         */
/* ========================= */

/* Ancienne section services (cartes classiques) – toujours utile pour l'admin */
.services {
  text-align: left;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  justify-content: center;
}

/* Carte de service */
.service-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid #E0E0E0;
  color: #333333;
}

/* 2 colonnes */
.services-grid-2 .service-card {
  flex: 0 1 calc(50% - 24px);
  max-width: calc(50% - 24px);
}

/* 3 colonnes */
.services-grid-3 .service-card {
  flex: 0 1 calc(33.333% - 24px);
  max-width: calc(33.333% - 24px);
}

.services-grid--center {
  justify-content: center;
}

/* ========================= */
/*  SERVICES CARROUSEL FULL  */
/* ========================= */

/* section plein écran */
.services-full {
  width: 100%;
  min-height: 100vh;
  transform: translateX(-50%);
  padding: 0;
  margin-top: 80px;      /* espace sous le hero */
  margin-bottom: 80px;
  border: none;
  border-radius: 0;
  background: #111111;
}

/* conteneur slick */
.services-carousel-inner {
  width: 100%;
  height: 100%;
}

/* chaque slide */
.services-slide {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex !important; /* slick ajoute display:block */
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #FFFFFF;
}

/* overlay sombre pour lisibilité */
.services-slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* contenu texte */
.services-slide-content {
  position: relative;
  max-width: 720px;
  padding: 32px 40px;
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(5px);
  color: #FFFFFF;
  text-align: left;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.services-slide-title {
  font-size: 2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.services-slide-text {
  font-size: 1rem;
  line-height: 1.9;
  opacity: 0.96;
}

/* slide vide (cas aucun service actif) */
.services-slide-empty {
  background: #222;
}

/* ========================= */
/*         CARROUSEL         */
/* ========================= */

.carouselle {
  text-align: left;
}

.carouselle h3 {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 12px;
  color: #333333;
}

.carouselle .section-subtitle {
  text-align: center;
  margin-bottom: 32px;
  opacity: 0.8;
  color: #555555;
}

.carousel {
  margin-top: 20px;
}

/* Alignement slick pour le carrousel de logos */
.carousel .slick-track {
  display: flex !important;
  align-items: stretch;
  justify-content: center;
}

/* Slide logo */
.carouselle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #E0E0E0;
  height: 170px;
  color: #333333;
}

.carouselle-logo {
  height: 95px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  background: #F7F7F7;
  border-radius: 12px;
  padding: 8px;
}

.carouselle-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* slick générique */
.slick-slide {
  outline: none;
}

.slick-prev,
.slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #D0D0D0;
  background: #F2F0EF;          /* rond clair */
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icônes des flèches */
.slick-prev:before,
.slick-next:before {
  color: #333333;
  font-size: 20px;
  line-height: 1;
  opacity: 1;                   /* toujours visibles */
}

/* Hover */
.slick-prev:hover,
.slick-next:hover {
  background: #333333;
  border-color: #333333;
}

.slick-prev:hover:before,
.slick-next:hover:before {
  color: #FFFFFF;
}

/* Dots slick (pour les deux carrousels) */
.slick-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
}

.slick-dots li button:before {
  font-size: 10px;
  color: #FFFFFF;
  opacity: 0.6;
}

.slick-dots li.slick-active button:before {
  opacity: 1;
}

/* ========================= */
/*          CONTACT          */
/* ========================= */

.contact {
  text-align: left;
}

.contact-form {
  max-width: 720px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.contact-form label {
  font-size: 14px;
  color: #333333;
}

.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #D0D0D0;
  background: #FFFFFF;
  color: #333333;
  font-size: 14px;
}

.contact-form textarea {
  resize: vertical;
}

/* ========================= */
/*   EFFET APPARITION SCROLL */
/* ========================= */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================= */
/*      CERCLES LUMINEUX     */
/* ========================= */

@keyframes floatCircle {
  0% {
    transform: translate3d(-10%, -10%, 0) scale(1);
  }
  100% {
    transform: translate3d(10%, 10%, 0) scale(1.15);
  }
}

/* Cercles très doux en fond */
.hero::before,
.services-full::before,
.carouselle::before,
.contact::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
  animation: floatCircle 22s ease-in-out infinite alternate;
  background: radial-gradient(circle, rgba(0,0,0,0.06), transparent 60%);
}

.hero::before {
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
}

.services-full::before {
  top: -15%;
  left: -10%;
}

.carouselle::before {
  top: -20%;
  right: -15%;
}

.contact::before {
  bottom: -25%;
  left: 20%;
}

/* ========================= */
/*        MEDIA QUERIES      */
/* ========================= */

/* Tablettes (<= 1024px) */
@media (max-width: 1024px) {
  header {
    padding: 16px 24px;
  }

  main {
    max-width: 100%;
    margin: 0 auto 60px;
    padding: 0 20px;
  }

  section:not(.hero) {
    padding: 32px 24px 40px;
  }

  .services-grid {
    gap: 18px;
  }

  .services-full {
    margin-top: 60px;
    margin-bottom: 60px;
  }

  .services-slide-content {
    max-width: 640px;
    padding: 28px 32px;
  }

  .services-slide-title {
    font-size: 1.9rem;
  }
}

/* Téléphones (<= 768px) */
@media (max-width: 768px) {
  body {
    font-size: 18px;
  }

  header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
  }

  header h1 {
    font-size: 24px;
    letter-spacing: 0.18em;
    text-align: center;
    width: 100%;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
  }

  .site-nav a {
    font-size: 16px;
    padding: 8px 14px;
  }

  main {
    padding: 0 16px;
    margin: 0 auto 48px;
  }

  section {
    margin-bottom: 56px;
  }

  button,
  .btn,
  .btn-primary {
    width: 100%;
    font-size: 17px;
    padding: 13px 22px;
  }

  .services-grid {
    gap: 18px;
  }

  .services-grid .service-card {
    flex: 0 1 100%;
    max-width: 100%;
  }

  .carouselle-item {
    height: auto;
    padding: 14px;
  }

  .carouselle-logo {
    height: 80px;
  }

  .slick-prev,
  .slick-next {
    width: 44px;
    height: 44px;
  }

  .slick-prev:before,
  .slick-next:before {
    font-size: 34px;
    line-height: 44px;
  }

  .contact-form {
    max-width: 100%;
  }

  .contact-form label {
    font-size: 15px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
    padding: 12px 14px;
  }

  .services-slide-content {
    max-width: 90%;
    padding: 24px 18px;
    text-align: center;
  }

  .services-slide-title {
    font-size: 1.7rem;
    letter-spacing: 0.12em;
  }
}

/* ========================= */
/*         MENU ADMIN        */
/* ========================= */

.admin-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 10px 24px 18px;
  margin: 0 auto 24px;
  max-width: 1200px;
  border-bottom: 1px solid #DDDDDD;
  background: #F2F0EF;
  border-radius: 0 0 18px 18px;
}

.admin-menu a {
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  background: #FFFFFF;
  border: 1px solid #DDDDDD;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease,
    box-shadow 0.15s ease;
}

.admin-menu a:hover {
  background: #333333;
  border-color: #333333;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.admin-menu a.active {
  background: #555555;
  border-color: #555555;
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .admin-menu {
    padding: 10px 12px 18px;
    border-radius: 0 0 14px 14px;
    gap: 8px;
  }

  .admin-menu a {
    font-size: 13px;
    padding: 7px 12px;
  }
}

/* ========================= */
/*   GRILLE SERVICES (admin) */
/* ========================= */

.services-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.services-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-grid--1item {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}

.services-grid--2items-center {
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
}

@media (max-width: 768px) {
  .services-grid-2,
  .services-grid-3,
  .services-grid--1item,
  .services-grid--2items-center {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
}

/* ========================= */
/*        ADMIN PAGES        */
/* ========================= */

.admin-page {
  margin-top: 24px;
  margin-bottom: 40px;
  padding: 24px 28px 32px;
  border-radius: 24px;
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.admin-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.admin-header h2 {
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #333333;
}

.admin-header p {
  font-size: 14px;
  opacity: 0.7;
  color: #555555;
}

.admin-actions {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #F9F7F4;
  border: 1px solid #E0E0E0;
}

.admin-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: flex-end;
}

.admin-form .field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
  flex: 1 1 220px;
}

.admin-form label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  color: #333333;
}

.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="file"],
.admin-form textarea,
.admin-form select {
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid #D0D0D0;
  background: #FFFFFF;
  color: #333333;
  font-size: 14px;
}

.admin-form textarea {
  min-height: 80px;
  resize: vertical;
}

.admin-form .btn-primary {
  margin-top: 0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 14px;
}

.admin-table thead {
  background: #F9F7F4;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #E0E0E0;
  text-align: left;
  color: #333333;
}

.admin-table th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  opacity: 0.8;
}

.admin-table tr:hover {
  background: #F5F2EE;
}

.admin-table .admin-actions-cell {
  white-space: nowrap;
}

.admin-table .btn-link {
  border: none;
  background: none;
  color: #333333;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.admin-table .btn-link:hover {
  color: #000000;
}

.admin-thumb {
  width: 120px;
  height: 70px;
  border-radius: 10px;
  border: 1px solid #E0E0E0;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.admin-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #CCCCCC;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  color: #555555;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .admin-page {
    padding: 20px 16px 24px;
    border-radius: 18px;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-form {
    flex-direction: column;
    align-items: stretch;
  }
}
