/* 16Th Avenue — coiffeur à Besançon
   Feuille de style légère reproduisant le thème d'origine (Joomla theme3204, color_scheme_1). */

:root {
  --primary: #572d77;
  --secondary: #0085a0;
  --dark: #111111;
  --darker: #040404;
  --text: #777777;
  --heading: #333333;
  --border: #dddddd;
  --light: #f5f5f5;
  --white: #ffffff;
  --font: 'Open Sans', Arial, Helvetica, sans-serif;
  --font-cond: 'Open Sans Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --container: 1170px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 30px;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: var(--primary); text-decoration: none; transition: color .3s, background-color .3s, opacity .3s; }
a:hover, a:focus { color: var(--secondary); }
p { margin: 0 0 20px; }
ul, ol { padding-left: 20px; }
figure { margin: 0; }
b, strong { color: var(--primary); }
table { border-collapse: collapse; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 20px;
  font-family: var(--font-cond);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.25;
}
h1 { font-size: 40px; }
h2 { font-size: 34px; }
h3 { font-size: 30px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; font-weight: 700; }
h6 { font-size: 16px; font-weight: 700; }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: inherit; }
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover { color: var(--primary); }

.element-invisible {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.clearfix::after, .clr { content: ""; display: table; clear: both; }
.hide, .gap { display: none !important; }

/* ---------- Grille (Bootstrap 2 « span ») ---------- */
.row-container { width: 100%; }
.container-fluid { max-width: var(--container); margin: 0 auto; padding: 0 15px; }
.row-fluid { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.row-fluid > [class*="span"] { padding: 0 15px; width: 100%; min-width: 0; }
.row-fluid > .span1 { width: 8.333%; }
.row-fluid > .span2 { width: 16.666%; }
.row-fluid > .span3 { width: 25%; }
.row-fluid > .span4 { width: 33.333%; }
.row-fluid > .span6 { width: 50%; }
.row-fluid > .span8 { width: 66.666%; }
.row-fluid > .span9 { width: 75%; }
.row-fluid > .span12 { width: 100%; }
.row-fluid > .clearfix { display: none; }
.content-inner { margin: 0; }
.content-inner > [class*="span"] { padding: 0; }

/* ---------- En-tête & menu ---------- */
.headerContent { position: relative; }
#top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(17, 17, 17, .85);
}
body:not(.body__home) #top { position: relative; background: var(--dark); }
#top .row-fluid { align-items: center; flex-wrap: nowrap; }
#top #logo { width: auto; flex: 0 0 auto; }
#logo a { display: block; background: var(--white); padding: 4px; line-height: 0; }
#logo img { width: 64px; height: auto; }
#logo h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
#top nav.home_menu { flex: 1 1 auto; width: auto; }

#icemegamenu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
#icemegamenu li { list-style: none; }
#icemegamenu > li { position: relative; }
#icemegamenu > li > a {
  display: block; padding: 22px 18px;
  font-family: var(--font-cond); font-weight: 700; font-size: 15px;
  letter-spacing: 1px; color: var(--white); text-transform: none;
}
#icemegamenu > li > a::after {
  content: ""; display: block; height: 2px; margin-top: 2px;
  background: currentColor; transform: scaleX(0); transition: transform .3s;
}
#icemegamenu > li.active > a::after,
#icemegamenu > li:hover > a::after,
#icemegamenu > li > a:focus::after { transform: scaleX(1); }
#icemegamenu > li.parent > a .icemega_title::after { content: "\f107"; font-family: FontAwesome; margin-left: 6px; }
#icemegamenu a.no-link { cursor: default; }
#icemegamenu #iceMenu_549 > a { background: var(--primary); }
#icemegamenu #iceMenu_549 > a:hover { background: var(--secondary); }

#icemegamenu .icesubMenu {
  position: absolute; top: 100%; left: 0; z-index: 60;
  list-style: none; margin: 0; padding: 10px 0;
  background: var(--dark); opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s;
}
#icemegamenu li:hover > .icesubMenu,
#icemegamenu li:focus-within > .icesubMenu,
#icemegamenu li.open > .icesubMenu { opacity: 1; visibility: visible; transform: none; }
#icemegamenu .iceCols { float: none !important; }
#icemegamenu .iceCols ul { margin: 0; padding: 0; }
#icemegamenu .iceCols a { display: block; padding: 4px 22px; color: #bbbbbb; font-size: 13px; }
#icemegamenu .iceCols a:hover, #icemegamenu .iceCols a:focus { color: var(--white); background: var(--primary); }

.menu-toggle {
  display: none; margin-left: auto; padding: 8px 12px;
  background: none; border: 1px solid rgba(255,255,255,.4); color: var(--white);
  font-size: 20px; line-height: 1; cursor: pointer;
}

/* ---------- Slider ---------- */
#header .moduletable.slider, #header .module_container { position: relative; }
.camera_wrap {
  position: relative; overflow: hidden; background: var(--dark);
  height: clamp(380px, 62vw, 760px);
}
.camera-item {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
  display: flex; align-items: center; justify-content: center;
}
.camera-item:first-child, .camera-item.is-active { opacity: 1; }
.camera_wrap.js-ready .camera-item:first-child:not(.is-active) { opacity: 0; }
.camera-item::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.camera_caption { position: relative; text-align: center; color: var(--white); padding: 0 20px; }
.camera_caption .slide-title {
  color: var(--white); font-size: clamp(36px, 6vw, 72px); font-weight: 300; margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.camera_caption .slide-title .item_title_part_3,
.camera_caption .slide-title .item_title_part_4 { font-weight: 700; }
.camera_caption p { font-size: 18px; letter-spacing: 2px; margin: 0; }
.camera-nav { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.camera-nav button {
  width: 12px; height: 12px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--white); background: transparent;
}
.camera-nav button.is-active { background: var(--white); }

/* ---------- Contenu ---------- */
#content { padding: 70px 0 40px; }
#content-bottom { margin-top: 0; }
.page_header h1, .moduleTitle, .page-item > .item_header .item_title {
  text-align: center;
}
.page_header h1 { font-size: 40px; margin-bottom: 10px; }
.moduleTitle { font-size: 40px; margin-bottom: 40px; }
h3.moduleTitle { font-size: 34px; }
.page-category__home .page_header h1 { margin-bottom: 0; }
.moduletable { margin-bottom: 40px; }
.moduletable:last-child { margin-bottom: 0; }

/* Onglets */
.nav-tabs {
  list-style: none; margin: 0 0 30px; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 50px;
}
.nav-tabs > li > a {
  display: block; padding: 0 0 6px; cursor: pointer;
  font-family: var(--font-cond); font-weight: 700; font-size: 16px;
  letter-spacing: 4px; color: #999999; border-bottom: 2px solid transparent;
}
.nav-tabs > li > a:hover { color: var(--primary); }
.nav-tabs > li.active > a { color: var(--dark); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadein .4s; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* Boutons */
.btn, button.btn, input.btn {
  display: inline-block; padding: 8px 60px; border: 0; cursor: pointer;
  background: var(--primary); color: var(--white);
  font: 700 13px/24px var(--font); letter-spacing: 1px;
}
.btn:hover, .btn:focus { background: var(--secondary); color: var(--white); }
.mod-newsflash-adv_custom-link, .readmore { text-align: center; }
.mod-newsflash-adv_custom-link { margin-top: 30px; }
a.readmore { margin-top: 10px; }

/* Parallaxe */
.parallax {
  position: relative; padding: 90px 0; color: #e5e5e5;
  background-color: #444444; background-size: cover; background-position: center;
  background-attachment: fixed;
}
.parallax::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.parallax > * { position: relative; }
.parallax h1, .parallax h2, .parallax h3, .parallax h4, .parallax h5 { color: var(--white); }
.parallax h1 { text-align: center; font-size: 40px; margin-bottom: 40px; }
#mainbottom > .moduletable, #mainbottom-3 > .moduletable { margin: 0; }
#mainbottom > .moduletable > .module_container > header { padding-top: 70px; }
#mainbottom-2, #mainbottom-4 { padding: 70px 0; }
#mainbottom-2 .moduletable, #mainbottom-4 .moduletable { margin: 0; }

/* Témoignages / équipe */
.mod_caroufredsel ul, .list_carousel ul { list-style: none; margin: 0; padding: 0; }
.testimonials .item_content { text-align: center; max-width: 780px; margin: 0 auto; }
.testimonials .item_img img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; }
.testimonials .item_content > img { width: 160px; height: 110px; object-fit: cover; margin: 0 6px 20px; }
.testimonials p { font-size: 18px; font-style: italic; line-height: 32px; color: var(--white); }
.testimonials .item_title { color: var(--white); margin: 0; }
.caroufredsel_pagination:empty { display: none; }

/* Le salon (3 colonnes) */
.mod-newsflash-adv .item_content { text-align: center; }
.mod-newsflash-adv .item_img { margin-bottom: 20px; overflow: hidden; }
.mod-newsflash-adv .item_img img { width: 100%; transition: transform .5s; }
.mod-newsflash-adv .item:hover .item_img img { transform: scale(1.05); }
.mod-newsflash-adv__designers .item_img img { aspect-ratio: 1 / 1; object-fit: cover; }
.mod-newsflash-adv .item { margin-bottom: 30px; }

/* Galerie (carrousel) */
.gallery.mod_caroufredsel { position: relative; padding: 0 40px; }
.gallery .list_carousel { overflow: hidden; }
.gallery .list_carousel ul {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none;
}
.gallery .list_carousel ul::-webkit-scrollbar { display: none; }
.gallery .list_carousel li { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; }
.gallery .list_carousel img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.zoom { position: relative; display: block; overflow: hidden; }
.zoom::after {
  content: "\f00e"; font-family: FontAwesome; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--white); background: rgba(87,45,119,.6);
  opacity: 0; transition: opacity .3s;
}
.zoom:hover::after, .zoom:focus::after { opacity: 1; }
.caroufredsel_prev, .caroufredsel_next {
  position: absolute; top: 50%; transform: translateY(-50%); cursor: pointer;
  font-size: 40px; color: var(--white); width: 30px; text-align: center; user-select: none;
}
.caroufredsel_prev { left: 0; }
.caroufredsel_next { right: 0; }

/* Actu */
.news .item_content { max-width: 780px; margin: 0 auto; overflow: hidden; }
.img-intro__left { float: left; width: 40%; margin: 0 30px 15px 0; }
.news .item_title { margin-bottom: 10px; }
.item_published { display: block; color: #aaaaaa; font-size: 13px; }

/* ---------- Pages internes ---------- */
.page-item { max-width: 970px; margin: 0 auto; }
.page-item .item_header { margin-bottom: 20px; }
.page-item .item_header .item_title { font-size: 34px; font-weight: 300; }
.item_fulltext img, .item_introtext img { margin: 0 0 20px; }
.img-full { margin-bottom: 30px; }
.img-full__left { float: left; max-width: 45%; margin: 0 30px 20px 0; }
.item_info { font-size: 13px; color: #aaaaaa; margin-bottom: 15px; }
.item_info_dl, .item_info dd, .item_info dt { display: inline; margin: 0 12px 0 0; }
.muted { color: #aaaaaa; }
.tags { list-style: none; padding: 0; }
.tags li { display: inline-block; margin: 0 6px 6px 0; }
.label { display: inline-block; padding: 0 10px; background: var(--primary); color: var(--white); font-size: 12px; line-height: 24px; }
.category_desc { text-align: center; max-width: 800px; margin: 0 auto 40px; }
.items-row { margin-bottom: 30px; }
.page-category .item_header .item_title { font-size: 24px; }

/* Portfolio */
.sorting .nav-tabs { margin-bottom: 40px; }
.sorting .nav-tabs a.is-sorted { color: var(--dark); border-bottom-color: var(--primary); }
ul.gallery.items-row { list-style: none; padding: 0; }
ul.gallery.cols-3 > li.gallery-item { width: 33.333%; margin-bottom: 30px; }
.gallery-item__content { text-align: center; }
.gallery-item .item_img { overflow: hidden; margin-bottom: 15px; }
.gallery-item .item_img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.gallery-item:hover .item_img img { transform: scale(1.06); }
.gallery-item .item_title { font-size: 20px; margin: 0; }
.page-item__works .item_fulltext, .page-item__gallery .item_fulltext { text-align: center; }
.page-gallery_img { margin-bottom: 30px; }

/* Accordéon (FAQs) */
.pretext { text-align: center; max-width: 800px; margin: 0 auto 40px; }
.accordion-group { border-bottom: 1px solid var(--border); }
.accordion-toggle {
  display: block; padding: 18px 40px 18px 0; position: relative;
  font-family: var(--font-cond); font-weight: 700; font-size: 18px; color: var(--dark);
}
.accordion-toggle::after { content: "\f067"; font-family: FontAwesome; position: absolute; right: 5px; top: 18px; color: var(--primary); font-size: 14px; }
.accordion-toggle.selected { color: var(--primary); }
.accordion-toggle.selected::after { content: "\f068"; }
.collapse { display: none; }
.collapse.in { display: block; }
.accordion-inner { padding: 0 0 20px; }

/* Tarifs */
.responsive-table-line { overflow-x: auto; }
.table { width: 100%; margin-bottom: 30px; }
.table th, .table td { border: 1px solid var(--border); padding: 10px 15px; text-align: center; vertical-align: middle; }
.table thead th { background: var(--primary); color: var(--white); font-weight: 600; }
.table tbody tr:nth-child(even) td { background: var(--light); }
.counters .item_content, .features .item_content { text-align: center; }
.counters .fa, .features .fa, .info .fa {
  font-size: 40px; color: var(--primary); display: block; margin-bottom: 15px; line-height: 1;
}
.counters .item_title { font-size: 24px; margin-bottom: 5px; }

/* A propos */
.mod-article-single { text-align: center; max-width: 900px; margin: 0 auto; }
.mod-article-single .item-title { font-size: 28px; }
.mod-newsflash-adv__images .item_img img { aspect-ratio: 16 / 9; object-fit: cover; }

/* 404 */
.page-item__404 { text-align: center; }
.big-404 { font-family: var(--font-cond); font-weight: 700; font-size: 160px; line-height: 1; color: var(--primary); }

/* Contact */
#map .moduletable { margin: 0; }
#map header .moduleTitle { margin: 40px 0 30px; }
#map iframe.map { display: block; width: 100%; height: 460px; border: 0; filter: grayscale(1); }
.page-contact h5 { font-size: 18px; margin: 0 0 6px; }
.contact_details > div { margin-bottom: 20px; }
.icons-marker { color: var(--primary); width: 22px; }
.contact_misc { margin-bottom: 20px; }
.mod_tm_ajax_contact_form fieldset { border: 0; margin: 0; padding: 0; }
.mod_tm_ajax_contact_form .control-group { margin-bottom: 20px; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; padding: 8px 14px; border: 1px solid var(--border); background: var(--white);
  font: 14px/24px var(--font); color: var(--heading); border-radius: 0;
}
input:focus, textarea:focus { outline: none; border-color: var(--primary); }
textarea { height: 180px; resize: vertical; }
.control-group-button .controls { display: flex; gap: 15px; flex-wrap: wrap; }
.mod_tm_ajax_contact_form_message span { display: none; margin-bottom: 15px; padding: 10px 15px; background: var(--light); color: var(--primary); }
.mod_tm_ajax_contact_form_message.show-s .s,
.mod_tm_ajax_contact_form_message.show-e .e { display: block; }

/* ---------- Pied de page ---------- */
#bottom { padding: 70px 0 40px; background: var(--light); }
#bottom .moduletable { margin: 0; }
.info .item_title { font-size: 24px; font-weight: 300; margin-bottom: 10px; }
.info .item_introtext p { margin: 0; }

#footer { padding: 50px 0; background: var(--dark); text-align: center; }
#footer .moduletable { margin: 0; }
#footer .moduleTitle { color: var(--white); margin-bottom: 25px; }
.acymailing_form { margin: 0 auto; width: 100%; max-width: 560px; }
.acymailing_form td { padding: 0; }
.acymailing_form .acyfield_email { width: 100%; }
.acymailing_form .inputbox { border: 0; height: 40px; }
.acymailing_form .subbutton { height: 40px; padding: 0 30px; }
.newsletter-msg { color: #bbbbbb; margin: 15px 0 0; }

#copyright { padding: 25px 0; background: var(--darker); color: #888888; font-size: 13px; }
#copyright .row-fluid { align-items: center; justify-content: space-between; }
#copyright .moduletable { margin: 0; }
#copyright .copyright.span1 { width: auto; text-align: right; white-space: nowrap; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.social a {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; background: #222222; color: var(--white); font-size: 16px;
}
.social a:hover { background: var(--primary); color: var(--white); }
.footer_logo { display: inline-block; background: var(--white); padding: 2px; margin-right: 10px; line-height: 0; vertical-align: middle; }
.footer_logo img { width: 36px; }
.privacy_link { color: #bbbbbb; margin-left: 4px; }
.privacy_link:hover { color: var(--white); }

#back-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--white); font-size: 24px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
#back-top.is-visible { opacity: 1; visibility: visible; }
#back-top:hover { background: var(--secondary); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.88); padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; box-shadow: 0 0 30px rgba(0,0,0,.5); }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--white); cursor: pointer;
  font-size: 40px; line-height: 1; padding: 10px;
}
.lightbox .lb-close { top: 10px; right: 15px; font-size: 34px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 979px) {
  .menu-toggle { display: block; }
  #top .row-fluid { flex-wrap: wrap; padding: 10px 0; }
  #top nav.home_menu { flex-basis: 100%; display: none; }
  #top nav.home_menu.is-open { display: block; }
  #icemegamenu { flex-direction: column; padding: 10px 0; }
  #icemegamenu > li > a { padding: 8px 0; }
  #icemegamenu > li > a::after { display: none; }
  #icemegamenu .icesubMenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; width: auto !important; padding: 0 0 6px;
  }
  #icemegamenu li.open > .icesubMenu { display: block; }
  #icemegamenu .iceCols { width: auto !important; }
  .row-fluid > .span3 { width: 50%; }
  .gallery .list_carousel li { flex-basis: calc((100% - 40px) / 3); }
  ul.gallery.cols-3 > li.gallery-item { width: 50%; }
  .parallax { background-attachment: scroll; }
}
@media (max-width: 767px) {
  h1, .moduleTitle, .page_header h1, .parallax h1 { font-size: 32px; }
  .row-fluid > [class*="span"], ul.gallery.cols-3 > li.gallery-item { width: 100%; }
  #top .row-fluid > #logo { width: auto; }
  #content { padding: 40px 0 20px; }
  #mainbottom-2, #mainbottom-4, #bottom { padding: 40px 0; }
  .parallax { padding: 50px 0; }
  .gallery .list_carousel li { flex-basis: calc((100% - 20px) / 2); }
  .img-intro__left, .img-full__left { float: none; width: auto; max-width: 100%; margin: 0 0 20px; }
  .nav-tabs { gap: 10px 25px; }
  .nav-tabs > li > a { letter-spacing: 2px; }
  #copyright .row-fluid { flex-direction: column; gap: 15px; }
  #copyright .copyright.span1 { text-align: center; white-space: normal; }
  .big-404 { font-size: 100px; }
  .acymailing_form, .acymailing_form tbody, .acymailing_form tr, .acymailing_form td { display: block; width: 100%; }
  .acymailing_form .subbutton { width: 100%; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
