/* ==========================================================================
   Facili'Cube — feuille de style statique (remplace le thème WordPress TownHall)
   Palette : corail #E56558 / gris clair #f3f3f3 / blanc / texte #333
   Polices : Lato (titres) + Open Sans (corps)
   ========================================================================== */

:root {
  --accent: #E56558;
  --accent-dark: #d8503f;
  --light: #f3f3f3;
  --gray: #C1C1C1;
  --text: #333;
  --dark: #2b2b2b;
  --white: #fff;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Lato", Arial, sans-serif;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 .6em;
}

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; transition: all .3s; }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; border: 0; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section { padding: 90px 0; }
.section--light { background: var(--light); }

.section-head {
  text-align: center;
  font-size: 30px;
  margin-bottom: 10px;
}
.section-sub {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
  color: #666;
}

.btn {
  display: inline-block;
  font-family: "Lato", sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 34px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--white) !important;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: all .3s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--outline {
  background: transparent;
  color: var(--accent) !important;
}
.btn--outline:hover { background: var(--accent); color: var(--white) !important; }

/* ============================ Navigation ============================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
  z-index: 1000;
  transition: all .3s;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}
.navbar .brand {
  font-family: "Lato", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
}
.navbar .brand span { color: var(--accent); }
.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0; padding: 0;
}
.nav-links a {
  font-family: "Lato", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--dark);
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--accent); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--dark);
  cursor: pointer;
}

/* ============================ Header / Hero ============================ */
.hero {
  margin-top: 70px;
  min-height: 70vh;
  background: #222 center/cover no-repeat;
  background-image: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url("../assets/img/header_facilicube.jpg");
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 80px 20px;
}
.hero h1 {
  color: var(--white);
  font-size: 48px;
  margin-bottom: 14px;
}
.hero p { font-size: 20px; max-width: 640px; margin: 0 auto 28px; }

/* ============================ Features ============================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.feature .icon {
  flex: 0 0 60px;
  width: 60px;
}
.feature .icon img { width: 100%; }
.feature h3 { font-size: 20px; margin-bottom: 6px; }
.feature p { margin: 0; color: #666; }

/* ============================ Call to action ============================ */
.cta {
  background: var(--light);
  border-radius: 10px;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 50px 0;
  flex-wrap: wrap;
}
.cta-icon { flex: 0 0 100px; }
.cta-icon img { width: 100%; }
.cta > div:not(.cta-icon) { flex: 1 1 320px; }
.cta h2 { margin: 0; font-size: 26px; color: var(--accent); }
.cta p { margin: 8px 0 0; color: #666; }
.cta .btn { flex: 0 0 auto; }

/* ============================ Innovation / split ============================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.split h2 { font-size: 28px; }

/* ============================ Video ============================ */
.video-wrap {
  position: relative;
  max-width: 800px;
  margin: 30px auto 0;
  padding-bottom: 45%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ============================ Highlights (4 cols) ============================ */
.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  text-align: center;
}
.highlight .icon { width: 70px; margin: 0 auto 16px; }
.highlight h3 { font-size: 18px; }
.highlight p { color: #666; font-size: 14px; }

/* ============================ Portfolio / photos ============================ */
.filters {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 0 36px;
}
.filters button {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 8px 20px;
  border: 1px solid var(--gray);
  background: var(--white);
  color: var(--dark);
  border-radius: 4px;
  cursor: pointer;
  transition: all .3s;
}
.filters button.active,
.filters button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
/* Galerie pleine largeur (bord à bord) */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  margin-top: 10px;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(229,101,88,.88);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .3s;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay .pf-plus {
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 14px;
}
.portfolio-overlay h4 { color: var(--white); margin: 0 0 4px; font-size: 20px; }
.portfolio-overlay .pf-cat { font-size: 13px; opacity: .9; }

/* Modal / lightbox galerie */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-box {
  background: var(--white);
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  border-radius: 4px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.modal-img { background: var(--light); }
.modal-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.modal-body { padding: 44px 40px; }
.modal-body h3 { font-size: 24px; text-transform: uppercase; margin-bottom: 16px; }
.modal-body p { color: #666; margin-bottom: 26px; }
.modal-close {
  position: absolute;
  top: 10px; right: 16px;
  background: none;
  border: 0;
  font-size: 30px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  z-index: 3;
}
.modal-close:hover { color: var(--accent); }
@media (max-width: 700px) {
  .modal-box { grid-template-columns: 1fr; overflow-y: auto; }
  .modal-img { max-height: 40vh; }
}

/* ============================ Actualités / blog cards ============================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.post-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,.1); transform: translateY(-4px); }
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--light); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-card .date {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.post-card h3 { font-size: 18px; margin: 8px 0 10px; }
.post-card h3 a { color: var(--dark); }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { color: #666; font-size: 14px; }
.post-card .more { margin-top: auto; font-weight: 700; font-size: 14px; }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ============================ Testimonial ============================ */
.testimonial {
  background: var(--light);
  text-align: center;
}
.testimonial .quote {
  font-size: 22px;
  font-style: italic;
  max-width: 760px;
  margin: 0 auto 24px;
  color: var(--dark);
}
.testimonial .author {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.testimonial .author img {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial .author strong { display: block; }
.testimonial .author span { color: #666; font-size: 14px; }

/* ============================ Contact ============================ */
.contact-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 60px;
}
.contact-row .item {
  display: flex;
  gap: 16px;
  align-items: center;
}
.contact-row .item img { width: 56px; }
.contact-row .item h5 { margin: 0; font-size: 18px; }
.contact-row .item h5 a { color: inherit; }
.contact-row .item h5 a:hover { color: var(--accent); }
.contact-row .item p { margin: 0; color: #666; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: start;
}
.contact-info .item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.contact-info .item img { width: 42px; }
.contact-info h5 { margin: 0; font-size: 16px; }
.contact-info p { margin: 0; color: #666; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 18px;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); }

/* ============================ Footer ============================ */
.footer {
  background: var(--dark);
  color: #bbb;
  padding: 60px 0 0;
}
.footer h6 {
  color: var(--white);
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  margin-bottom: 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer a { color: #bbb; }
.footer a:hover { color: var(--accent); }
.footer .social { list-style: none; padding: 0; display: flex; gap: 14px; margin-top: 14px; }
.footer .newsletter input {
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: 4px 4px 0 0;
  margin-bottom: 8px;
}
.footer-bottom {
  margin-top: 50px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: 13px;
}
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px; height: 44px;
  background: var(--accent);
  color: var(--white);
  border-radius: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 999;
}
.back-top.show { display: flex; }

/* ============================ Page header (sous-pages) ============================ */
.page-header {
  margin-top: 70px;
  background: var(--accent);
  color: var(--white);
  text-align: center;
  padding: 70px 20px;
}
.page-header h1 { color: var(--white); font-size: 38px; margin: 0; }
.page-header p { margin: 10px 0 0; opacity: .9; }

/* ============================ FAQ ============================ */
.faq-item {
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 0;
  padding: 20px 24px;
  font-family: "Lato", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q:hover { color: var(--accent); }
.faq-q::after { content: "+"; font-size: 24px; color: var(--accent); }
.faq-item.open .faq-q::after { content: "\2013"; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 24px;
}
.faq-item.open .faq-a { max-height: 600px; padding: 0 24px 22px; }
.faq-a ul { margin: 0; padding-left: 20px; }

/* ============================ Article (single post) ============================ */
.blog-single {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 50px;
  align-items: start;
}
.blog-main { min-width: 0; }
.post-date {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 9px 16px;
  line-height: 1.05;
  margin-bottom: 16px;
}
.post-date strong { font-size: 26px; }
.post-date span { font-size: 12px; text-transform: uppercase; }
.post-title { font-size: 28px; margin-bottom: 6px; }
.post-cat { color: #999; font-size: 14px; margin-bottom: 24px; }
.post-cat a { color: var(--accent); }
.blog-main .cover {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 26px;
  max-height: 480px;
  object-fit: cover;
}
.blog-main h2.kicker { font-size: 24px; margin-bottom: 4px; }
.blog-main h3 { font-size: 19px; margin: 22px 0 10px; color: #444; font-weight: 600; }
.blog-main p { font-size: 16px; }
.blog-main .video-wrap { margin: 0 0 24px; }
.post-source { color: #999; font-style: italic; font-size: 14px; }
.post-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 18px 0;
  margin: 34px 0 20px;
}
.post-author img { width: 54px; height: 54px; border-radius: 50%; }
.post-author strong { display: block; }
.post-author small { color: #999; }
.post-tags { font-size: 14px; color: #666; margin-bottom: 22px; }
.post-tags a { color: var(--accent); margin: 0 4px; }
.post-share { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; }
.post-share a {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff !important; font-family: "Lato", sans-serif; font-weight: 700; font-size: 13px;
}
.sh-fb { background: #3b5998; } .sh-tw { background: #1da1f2; }
.sh-pin { background: #bd081c; } .sh-in { background: #0077b5; }
.back { display: inline-block; margin-top: 30px; font-weight: 700; }

/* Sidebar */
.blog-sidebar .widget { margin-bottom: 34px; }
.blog-sidebar h4 {
  font-size: 15px; text-transform: uppercase; letter-spacing: .5px;
  padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--accent);
}
.blog-sidebar ul { list-style: none; padding: 0; margin: 0; }
.blog-sidebar li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.blog-sidebar a { color: var(--text); font-size: 14px; }
.blog-sidebar a:hover { color: var(--accent); }
.search-box { display: flex; }
.search-box input { flex: 1; min-width: 0; padding: 10px; border: 1px solid #ddd; border-radius: 4px 0 0 4px; }
.search-box button { background: var(--accent); color: #fff; border: 0; padding: 0 16px; border-radius: 0 4px 4px 0; cursor: pointer; }
@media (max-width: 880px) {
  .blog-single { grid-template-columns: 1fr; }
}

/* ============================ Responsive ============================ */
@media (max-width: 900px) {
  .features-grid, .highlights, .posts-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .split .img-side { order: -1; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    box-shadow: 0 6px 12px rgba(0,0,0,.1);
    padding: 14px 20px;
    gap: 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
  .hero h1 { font-size: 34px; }
  .section { padding: 60px 0; }
  .cta { flex-direction: column; text-align: center; }
}
@media (max-width: 540px) {
  .features-grid, .highlights, .posts-grid, .portfolio-grid { grid-template-columns: 1fr; }
}
