/* =========================================================
   Mosaïque B'Art — feuille de style
   Recréation fidèle de l'identité visuelle du site Joomla
   (couleurs, police, largeur de page, bandeau, menu, pied de page)
   ========================================================= */

* { box-sizing: border-box; }

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

body {
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #40401C;
  background-color: #1C1D0C;
  background-image:
    linear-gradient(to bottom, #47471F 0, #47471F 420px, #1C1D0C 1050px);
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100%;
}

a { color: #7F8137; text-decoration: none; }
a:hover { color: #7F5B39; text-decoration: underline; }

h1, h2, h3, h4, h5, h6, p, ul, ol, li { margin: 0; padding: 0; }

img { max-width: 100%; display: block; }

/* ---------- conteneur général de la page ---------- */

#art-main {
  width: 100%;
}

.art-sheet {
  background: #E6E7C6;
  border-radius: 0 0 10px 10px;
  box-shadow: 1px 1px 3px 2px rgba(0, 0, 0, 0.4);
  margin: 0 auto;
  position: relative;
  width: 1000px;
  max-width: 100%;
  overflow: hidden;
}

/* ---------- bandeau d'accueil (header) ---------- */

.art-header {
  height: 250px;
  background-image: url('../images/header/header.jpg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  position: relative;
}

/* ---------- menu de navigation ---------- */

.art-nav {
  background: #9FA145;
  border-bottom: 1px dotted #DCCDA7;
  position: relative;
  text-align: center;
}

.nav-toggle {
  display: none;
  width: 100%;
  background: none;
  border: none;
  color: #2C2C10;
  font-size: 20px;
  padding: 8px 0;
  cursor: pointer;
}

ul.art-hmenu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.art-hmenu > li {
  position: relative;
}

.submenu-toggle {
  display: none;
  position: absolute;
  right: 2px;
  top: 0;
  height: 35px;
  width: 28px;
  background: none;
  border: none;
  color: #2C2C10;
  font-size: 12px;
  cursor: pointer;
}

ul.art-hmenu > li > a {
  display: block;
  height: 35px;
  line-height: 35px;
  padding: 0 17px;
  color: #2C2C10;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  white-space: nowrap;
}

ul.art-hmenu > li > a:hover,
ul.art-hmenu > li > a.active {
  background: rgba(255, 255, 255, 0.25);
  color: #F4EDE6;
  text-decoration: none;
}

/* sous-menu (Comment venir à Castelmus ?) */
ul.art-hmenu li ul {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 50;
  min-width: 220px;
  background: #F2ECDE;
  border: 1px dotted rgba(187, 157, 84, 0.9);
  border-radius: 3px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  text-align: left;
}

ul.art-hmenu li:hover > ul { display: block; }

ul.art-hmenu li ul a {
  display: block;
  padding: 6px 14px;
  color: #4D401F;
  font-size: 13px;
  font-weight: normal;
  text-transform: none;
  white-space: nowrap;
}

ul.art-hmenu li ul a:hover {
  background: rgba(187, 157, 84, 0.25);
  color: #515223;
  text-decoration: none;
}

/* ---------- contenu ---------- */

.art-layout-wrapper {
  padding: 25px 30px 10px;
}

.art-postheader {
  margin: 0 0 18px;
  font-size: 26px;
  font-weight: normal;
  color: #6E6F2F;
}

.art-postheader a { color: #6E6F2F; }
.art-postheader a:hover { color: #7F5B39; }

.art-article { line-height: 1.6; }
.art-article p { margin-bottom: 14px; }

/* ---------- pied de page ---------- */

.art-footer {
  background: linear-gradient(to bottom,
              rgba(241, 232, 224, 0.55) 0,
              rgba(175, 128, 80, 0.55) 63%,
              rgba(91, 66, 42, 0.55) 100%);
  border-radius: 10px;
  margin: 14px auto 0;
  padding: 18px 20px;
  color: #241E0F;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.art-footer a { color: #585926; }
.art-footer a:hover { color: #272711; text-decoration: underline; }

.art-page-footer {
  text-align: center;
  color: #C9CBA0;
  font-size: 12px;
  padding: 10px 0 20px;
}
.art-page-footer a { color: #DCCDA7; }

/* =========================================================
   Bloc d'introduction (page d'accueil)
   ========================================================= */

.intro-text {
  max-width: 760px;
  margin: 0 auto 30px;
  font-size: 15px;
  line-height: 1.7;
}
.intro-text .signature {
  text-align: right;
  font-style: italic;
  margin-top: 6px;
}

/* ---------- cartes (accueil : Décoration / Fresques / Créations) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border-bottom: 3px solid #9FA145;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.card-thumb {
  aspect-ratio: 312 / 482;
  overflow: hidden;
  background: #fff;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .4s ease;
}
.card:hover .card-thumb img { transform: scale(1.06); }

.card-body { padding: 18px 16px 22px; flex: 1; display: flex; flex-direction: column; }

.card-icon { color: #9FA145; margin-bottom: 6px; }
.card-icon svg { width: 26px; height: 26px; fill: #9FA145; }

.card h4 {
  font-size: 18px;
  color: #5B4C24;
  margin-bottom: 10px;
}
.card p {
  flex: 1;
  font-size: 13.5px;
  color: #555;
  line-height: 1.55;
  margin-bottom: 16px;
}

.card-btn {
  display: inline-block;
  align-self: center;
  background: #9FA145;
  color: #fff !important;
  padding: 8px 22px;
  border-radius: 3px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-decoration: none !important;
  transition: background .25s ease;
}
.card-btn:hover { background: #7F8137; }

/* =========================================================
   Galeries "image + titre" (Décoration / Fresques)
   ========================================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 10px;
}
.gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.gallery-item { text-align: center; }
.gallery-item img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  margin-bottom: 12px;
  transition: transform .3s ease;
}
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item .caption {
  font-size: 14px;
  color: #5B4C24;
  font-weight: bold;
}

/* =========================================================
   Page "Qui suis-je ?"
   ========================================================= */

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.bio-photo {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
  min-height: 320px;
}
.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease;
}
.bio-photo:hover img { opacity: .55; }

.bio-photo .overlay {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  text-align: center;
  color: #fff;
}
.bio-photo .overlay .name {
  font-size: 32px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.bio-photo .overlay .line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: #fff;
  margin: 10px 0;
  transition: width 1s ease;
}
.bio-photo:hover .overlay .line { width: 100px; }
.bio-photo .overlay .role {
  font-size: 17px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.bio-box {
  background: #f4f4f4;
  border-radius: 4px;
  overflow: hidden;
}
.bio-box .image {
  height: 220px;
  background-position: center;
  background-size: cover;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 70%);
}
.bio-box .content { padding: 30px; position: relative; }
.bio-box .subtitle {
  display: inline-block;
  background: #9FA145;
  color: #fff;
  text-align: center;
  padding: 14px 14px 10px;
  position: relative;
  top: -55px;
  margin-bottom: -30px;
  font-weight: bold;
}
.bio-box .title { font-size: 22px; color: #40401C; margin-bottom: 10px; }
.bio-box .text { color: gray; line-height: 1.55; }

/* =========================================================
   Page "Créations originales"
   ========================================================= */

.creations-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 35px;
}
.creations-intro img { border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.creations-intro img.flush { border-radius: 0; box-shadow: none; }
.creations-intro .text { font-size: 15px; line-height: 1.65; }

.creations-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 35px;
}
.creations-row img {
  border-radius: 2px;
  transition: transform .3s ease;
}
.creations-row a:hover img { transform: scale(1.04); }

.creations-banner {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 35px;
}
.creations-banner img { width: 100%; }
.creations-banner .quote {
  position: absolute;
  top: 16px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #6E6F2F;
  font-size: 22px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(255,255,255,0.9);
}

.creations-title {
  text-align: center;
  font-size: 26px;
  color: #6E6F2F;
  margin-bottom: 22px;
}

/* ---------- diaporama (slideshow) ---------- */

.diaporama {
  max-width: 780px;
  margin: 0 auto;
}

.diaporama-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #111;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.diaporama-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
}
.diaporama-slide.is-active { opacity: 1; z-index: 2; }
.diaporama-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
}

.diaporama-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
  color: #fff;
  text-align: left;
  box-sizing: border-box;
}
.diaporama-caption .title { font-size: 19px; font-weight: bold; }
.diaporama-caption .desc { font-size: 13px; margin-top: 3px; opacity: .9; }

.diaporama-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 3;
}
.diaporama-nav:hover { background: rgba(0,0,0,0.6); }
.diaporama-nav.prev { left: 10px; }
.diaporama-nav.next { right: 10px; }

.diaporama-playpause {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
}
.diaporama-playpause:hover { background: rgba(0,0,0,0.6); }

.diaporama-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.diaporama-thumbs img {
  height: 56px;
  width: 75px;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
  opacity: .6;
  flex-shrink: 0;
  transition: opacity .2s ease, outline .2s ease;
}
.diaporama-thumbs img.is-active {
  opacity: 1;
  outline: 2px solid #9FA145;
}

/* =========================================================
   Page Contact
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
}

.contact-info h2 { font-size: 20px; color: #6E6F2F; margin-bottom: 10px; }
.contact-info p { margin-bottom: 10px; line-height: 1.6; }
.contact-note { font-style: italic; color: #5B4C24; }

.contact-form .field { margin-bottom: 16px; }
.contact-form label {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
  color: #40401C;
  font-size: 13px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #C9C2A4;
  border-radius: 3px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}
.contact-form textarea { resize: vertical; }

.contact-form button {
  background: #9FA145;
  color: #fff;
  border: none;
  padding: 11px 28px;
  border-radius: 3px;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s ease;
}
.contact-form button:hover { background: #7F8137; }

.map-wrap {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  margin-top: 16px;
}
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1020px) {
  .art-sheet { width: 100%; border-radius: 0; }
}

@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .bio-grid { grid-template-columns: 1fr; }
  .creations-intro { grid-template-columns: 1fr; }
  .creations-row { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .art-header { height: 150px; }
  .art-layout-wrapper { padding: 18px 16px 6px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid.cols-2 { grid-template-columns: 1fr; }
  .creations-row { grid-template-columns: repeat(2, 1fr); }
  .art-postheader { font-size: 21px; }

  .nav-toggle { display: block; }

  ul.art-hmenu {
    display: none;
    flex-direction: column;
  }
  .art-nav.is-open ul.art-hmenu { display: flex; }

  ul.art-hmenu > li > a {
    height: auto;
    line-height: normal;
    padding: 11px 40px 11px 16px;
    text-align: left;
    border-radius: 0;
  }

  .submenu-toggle { display: block; }

  ul.art-hmenu li ul {
    display: none;
    position: static;
    width: 100%;
    border: none;
    border-radius: 0;
    background: rgba(255,255,255,0.18);
  }
  ul.art-hmenu li.submenu-open > ul { display: block; }
  ul.art-hmenu li ul a { color: #2C2C10; padding: 9px 16px 9px 28px; }
}
