/* ================================================================
   BLOG v2 — Template article de presse + page accueil blog
   Fond grille light (#f3f3f3). Nav/footer dark.
   ================================================================ */

/* ===== ARTICLE CONTAINER ===== */
.article { color: #1a1a1a; padding: 0; }

/* ===== ARTICLE HEADER (titre, cats, meta) ===== */
.article-header {
  padding: 110px 0 32px;
  background: #f3f3f3;
}
.article-header .container { max-width: 1000px; }

/* Catégories & Tags — différenciation visuelle */
.article-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; align-items: center; }

/* CATÉGORIES : fond plein, arrondi pill, uppercase — liens vers blog filtre */
.cat-pill {
  font-family: 'Ubuntu', sans-serif; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 5px 14px; border-radius: 20px;
  transition: transform 0.4s, box-shadow 0.4s;
  text-decoration: none; cursor: pointer;
}
.cat-pill:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.cat-cas-client { background: var(--orange); color: var(--black); }
.cat-brevet { background: rgba(255,128,62,0.15); color: var(--orange); border: 1px solid rgba(255,128,62,0.3); }
.cat-prototypage { background: rgba(21,168,254,0.15); color: var(--blue); border: 1px solid rgba(21,168,254,0.3); }
.cat-industrie { background: rgba(104,232,141,0.15); color: #2a8a4a; border: 1px solid rgba(104,232,141,0.3); }
.cat-actualite { background: rgba(252,31,162,0.12); color: var(--rose); border: 1px solid rgba(252,31,162,0.25); }

/* TAGS : bordure pointillée, préfixe #, style plus discret */
.tag-pill {
  font-size: 12px; padding: 4px 12px; border-radius: 20px;
  border: 1px dashed #bbb; color: #888; background: transparent;
  transition: border-color 0.4s, color 0.4s;
}
.tag-pill::before { content: '# '; font-weight: 600; opacity: 0.5; }
.tag-pill:hover { border-color: var(--orange); color: var(--orange); }

/* Titre */
.article-header h1 {
  font-family: 'Ubuntu', sans-serif;
  font-size: clamp(32px, 4vw, 48px); font-weight: 700;
  line-height: 1.15; color: #111; margin-bottom: 12px;
}
.article-subtitle {
  font-size: 18px; color: #555; max-width: 700px; line-height: 1.6; margin-bottom: 28px;
}

/* Meta auteur */
.article-meta {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 0 0; border-top: 1px solid #ddd;
  font-size: 16px; color: #888;
}
.article-meta-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Caveat', cursive; font-weight: 700; font-size: 18px;
  color: #fff; flex-shrink: 0;
}
.article-meta-info strong { color: #1a1a1a; }
.article-meta-info span { color: #999; font-size: 15px; }
.article-meta-social { margin-left: auto; display: flex; gap: 8px; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid #ddd; display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #888; text-decoration: none;
  transition: all 0.4s;
}
.social-link:hover { border-color: var(--orange); color: var(--orange); background: rgba(255,128,62,0.06); cursor: pointer; }
.social-link-copied { border-color: var(--green, #68E88D) !important; color: var(--green, #68E88D) !important; background: rgba(104,232,141,0.10) !important; }

/* ===== PHOTO PRINCIPALE ===== */
.article-hero-img { padding: 32px 0 0; }
.article-hero-img .container { max-width: 1000px; }
.article-hero-img img {
  width: 100%; border-radius: 12px; display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}
.article-hero-caption {
  font-family: 'Caveat', cursive; font-size: 17px; color: #999;
  text-align: center; margin-top: 10px;
}

/* ===== LAYOUT 2 COLONNES ===== */
.article-layout { padding: 48px 0 0; }
.article-layout .container { max-width: 1000px; }
.article-grid {
  display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start;
}

/* ===== ARTICLE BODY ===== */
.article-body h2 {
  font-family: 'Ubuntu', sans-serif;
  font-size: 24px; font-weight: 700; color: #111;
  margin: 44px 0 16px; padding-top: 20px;
  border-top: 2px solid #e8e8e8;
}
.article-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.article-body p {
  font-size: 17px; line-height: 1.8; color: #444; margin-bottom: 18px;
}
.article-body strong { color: #1a1a1a; }

/* Blockquote */
.article-body blockquote {
  border-left: 3px solid var(--orange); padding: 14px 20px; margin: 28px 0;
  background: #fff; border-radius: 0 8px 8px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.article-body blockquote p {
  font-family: 'Caveat', cursive; font-size: 20px; color: #333;
  margin-bottom: 0; line-height: 1.5;
}

/* Bullet list */
.blog-list {
  list-style: none; padding: 0; margin: 20px 0 28px;
}
.blog-list li {
  font-size: 17px; line-height: 1.8; color: #444;
  padding: 8px 0 8px 24px; position: relative;
  border-bottom: 1px solid #eee;
}
.blog-list li:last-child { border-bottom: none; }
.blog-list li::before {
  content: '→'; position: absolute; left: 0; top: 8px;
  color: var(--orange); font-weight: 700;
}
.blog-list li strong { color: #1a1a1a; }

/* Phases */
.blog-phases { margin: 32px 0; display: flex; flex-direction: column; gap: 10px; }
.blog-phase {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 18px; background: #fff; border-radius: 10px;
  border-left: 3px solid #ddd; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: transform 0.4s;
}
.blog-phase:hover { transform: translateX(4px); }
.blog-phase:nth-child(1) { border-color: var(--orange); }
.blog-phase:nth-child(2) { border-color: var(--blue); }
.blog-phase:nth-child(3) { border-color: var(--blue); }
.blog-phase:nth-child(4) { border-color: var(--green); }
.blog-phase-num { font-family: 'Caveat', cursive; font-size: 24px; font-weight: 700; flex-shrink: 0; width: 32px; }
.blog-phase h4 { font-size: 16px; font-weight: 700; color: #111; margin-bottom: 2px; }
.blog-phase p { font-size: 15px; color: #666; margin-bottom: 0; line-height: 1.6; }
.blog-phase-badge { font-size: 12px; font-weight: 600; color: #999; margin-left: auto; white-space: nowrap; flex-shrink: 0; }

/* Images */
.blog-img-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.blog-img-grid img { width: 100%; height: 240px; object-fit: cover; border-radius: 8px; display: block; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.blog-img-caption { font-family: 'Caveat', cursive; font-size: 16px; color: #999; text-align: center; margin-top: 8px; }
.blog-img-full { margin: 32px 0; border-radius: 8px; overflow: hidden; }
.blog-img-full img { width: 100%; display: block; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

/* Stats block */
.blog-stats {
  background: var(--black); color: var(--white);
  border-radius: 16px; padding: 36px; margin: 40px 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center;
}
.blog-stat-value { font-family: 'Caveat', cursive; font-size: 36px; font-weight: 700; color: var(--orange); line-height: 1; }
.blog-stat-label { font-size: 12px; color: var(--gray); margin-top: 4px; }

/* Tags bas d'article */
.article-tags {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 28px 0; border-top: 1px solid #e5e5e5; margin-top: 40px;
}
.article-tag {
  font-size: 12px; padding: 5px 12px; border-radius: 20px;
  background: #eee; color: #666; transition: background 0.4s, color 0.4s;
}
.article-tag:hover { background: var(--orange); color: var(--black); }

/* ===== SIDEBAR ===== */
.article-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-box {
  background: #fff; border-radius: 12px; padding: 24px;
  border: 2px solid #e5e5e5; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sidebar-box h4 {
  font-family: 'Ubuntu', sans-serif; font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; color: #999; margin-bottom: 16px;
}

/* Sommaire */
.sidebar-toc ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sidebar-toc a {
  font-size: 16px; color: #555; text-decoration: none;
  padding: 6px 12px; border-radius: 6px; display: block;
  border-left: 2px solid transparent; transition: all 0.3s;
}
.sidebar-toc a:hover { color: var(--orange); border-left-color: var(--orange); background: rgba(255,128,62,0.04); }

/* À retenir */
.takeaway { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.takeaway:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.takeaway-label {
  font-family: 'Caveat', cursive; font-size: 16px; font-weight: 700; color: var(--orange); margin-bottom: 4px;
}
.takeaway p { font-size: 15px; color: #555; line-height: 1.6; margin: 0; }

/* Service associé */
.sidebar-service { background: var(--black); color: var(--white); border-color: var(--black); }
.sidebar-service .sidebar-service-label {
  font-family: 'Caveat', cursive; font-size: 16px; color: var(--orange); margin-bottom: 4px;
}
.sidebar-service h4 { color: var(--white); text-transform: none; letter-spacing: 0; font-size: 16px; }
.sidebar-service p { font-size: 15px; color: var(--gray); margin: 8px 0 16px; }
.sidebar-service-link {
  font-size: 15px; font-weight: 600; color: var(--orange);
  text-decoration: none; transition: opacity 0.4s;
}
.sidebar-service-link:hover { opacity: 0.7; }

/* ===== GALERIE PHOTOS (style album Équipe — caption au hover) ===== */
.article-gallery {
  padding: 48px 0; border-top: 1px solid #e5e5e5;
}
.article-gallery .container { max-width: 1000px; }
.article-gallery h3 {
  font-size: 20px; font-weight: 700; color: #111; margin-bottom: 20px;
}
.gallery-scroll {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-item {
  flex-shrink: 0; width: 300px; height: 220px; scroll-snap-align: start;
  border-radius: 10px; overflow: hidden; position: relative;
  border: 2px solid #e0e0e0;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s, border-color 0.4s, filter 0.4s;
  cursor: pointer;
}
.gallery-item:hover {
  transform: scale(1.03); z-index: 2;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  border-color: rgba(255,128,62,0.4);
  filter: brightness(1.06);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s;
}
.gallery-item:hover img { transform: scale(1.03); }
/* Caption slide-up on hover (like album Équipe) */
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  font-family: 'Caveat', cursive; font-size: 17px; color: #fff;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* Gallery arrows */
.gallery-arr {
  position: absolute; top: 50%; z-index: 10;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15); background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px); color: #333; font-size: 20px; cursor: pointer;
  transition: all 0.4s; display: flex; align-items: center; justify-content: center;
  transform: translateY(-50%);
}
.gallery-arr:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.gallery-arr-left { left: 8px; }
.gallery-arr-right { right: 8px; }
.gallery-wrap { position: relative; }

/* ===== CTA + MINI FORMULAIRE ===== */
.article-cta-form {
  padding: 48px 0 60px;
}
.article-cta-form .container { max-width: 1000px; }
/* CTA form blog : image dégradée texturée, logique light inversée */
.cta-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: url('../assets/images/shared/cta-gradient.jpg') center/140% no-repeat, #fff;
  background-clip: padding-box;
  border-radius: 20px; padding: 48px;
  border: 2px solid #d8d8d8;
  position: relative; overflow: hidden; color: #1a1a1a;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
/* Overlay blanc qui s'efface au hover → couleurs apparaissent */
.cta-form-grid::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,1);
  opacity: 0.88; transition: opacity 0.5s ease;
  z-index: 0; pointer-events: none; border-radius: inherit;
}
.cta-form-grid:hover::before { opacity: 0.28; }
.cta-form-grid:hover {
  border-color: rgba(255,128,62,0.5);
  box-shadow: 0 0 40px rgba(255,128,62,0.15), 0 8px 30px rgba(0,0,0,0.08);
}
.cta-form-grid > * { position: relative; z-index: 1; }
/* Texte noir au repos, noir profond au hover */
.cta-form-left h3 {
  font-size: 24px; font-weight: 700; color: #111; margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(255,255,255,0.5);
  transition: text-shadow 0.5s ease;
}
.cta-form-grid:hover .cta-form-left h3 {
  color: #000; text-shadow: 0 1px 6px rgba(255,255,255,0.85), 0 0 8px rgba(255,255,255,0.6);
}
.cta-form-hand {
  font-family: 'Caveat', cursive; font-size: 18px; color: var(--orange);
  margin-bottom: 16px; transform: rotate(-0.5deg); display: inline-block;
  transition: color 0.5s ease, text-shadow 0.5s ease;
}
.cta-form-grid:hover .cta-form-hand {
  color: #000; text-shadow: 0 1px 6px rgba(255,255,255,0.85);
}
.cta-form-left p {
  font-size: 16px; color: #555; line-height: 1.7; margin-bottom: 20px;
  transition: color 0.5s ease, text-shadow 0.5s ease;
}
.cta-form-grid:hover .cta-form-left p {
  color: #000; text-shadow: 0 1px 6px rgba(255,255,255,0.85);
}
/* Bouton outline : noir au hover du bloc */
.cta-form-left .btn-outline {
  border-color: #ccc; color: #333;
  transition: border-color 0.5s, color 0.5s, background 0.4s, transform 0.4s, box-shadow 0.4s;
}
.cta-form-grid:hover .btn-outline { border-color: rgba(0,0,0,0.85); color: #000; }
.cta-form-grid:hover .btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* Inputs : fond clair avec bordure, lisible sur le dégradé */
.mini-contact-form { display: flex; flex-direction: column; gap: 12px; }
.mini-contact-form input,
.mini-contact-form textarea {
  background: rgba(255,255,255,0.85); border: 2px solid #d0d0d0; border-radius: 8px;
  padding: 12px 14px; font-size: 16px; color: #1a1a1a;
  font-family: 'Outfit', sans-serif;
  transition: border-color 0.4s, box-shadow 0.4s, background 0.4s; outline: none;
}
.mini-contact-form input::placeholder,
.mini-contact-form textarea::placeholder { color: #999; }
.mini-contact-form input:focus,
.mini-contact-form textarea:focus {
  border-color: var(--orange); background: #fff;
  box-shadow: 0 0 0 3px rgba(255,128,62,0.12);
}
/* Au hover du bloc : inputs restent lisibles */
.cta-form-grid:hover .mini-contact-form input,
.cta-form-grid:hover .mini-contact-form textarea {
  background: rgba(255,255,255,0.92); border-color: rgba(0,0,0,0.3);
}
.mini-contact-form textarea { resize: vertical; min-height: 80px; }
.mini-contact-form .form-submit {
  background: var(--orange); color: var(--black);
  font-family: 'Ubuntu', sans-serif; font-weight: 600; font-size: 16px;
  padding: 14px; border: none; border-radius: 8px; cursor: pointer;
  transition: all 0.4s; position: relative; overflow: hidden;
}
.mini-contact-form .form-submit:hover {
  transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,128,62,0.35);
}

/* ===== BLOG HOME PAGE (blog.html) ===== */
.blog-main { color: #1a1a1a; padding: 110px 0 60px; }
.blog-main .container { max-width: 1100px; }

/* Featured article */
.blog-featured {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center;
  background: #fff; border-radius: 16px; padding: 32px;
  border: 2px solid #e0e0e0; box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  margin-bottom: 48px; transition: border-color 0.4s, box-shadow 0.4s;
}
.blog-featured:hover {
  transform: translateY(-6px);
  border-color: rgba(255,128,62,0.4);
  box-shadow: 0 8px 40px rgba(255,128,62,0.14);
  filter: brightness(1.05);
}
.blog-featured-img { border-radius: 10px; overflow: hidden; }
.blog-featured-img img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; transition: transform 0.6s, filter 0.4s; }
.blog-featured:hover .blog-featured-img img { transform: scale(1.03); filter: brightness(1.08); }
/* Tags & cats s'allument au hover du featured */
.blog-featured:hover .cat-pill { box-shadow: 0 0 12px rgba(255,128,62,0.2); }
.blog-featured:hover .tag-pill { border-color: var(--orange); color: var(--orange); }
.blog-featured-body { display: flex; flex-direction: column; gap: 12px; }
.blog-featured-body .article-cats { margin-bottom: 0; }
.blog-featured-body h2 { font-size: 28px; font-weight: 700; color: #111; line-height: 1.25; margin: 0; }
.blog-featured-body .blog-excerpt { font-size: 17px; color: #555; line-height: 1.7; }
.blog-featured-body .blog-read-more {
  font-weight: 600; font-size: 16px; color: var(--orange); text-decoration: none;
  transition: opacity 0.4s;
}
.blog-featured-body .blog-read-more:hover { opacity: 0.7; }

/* Blog section header */
.blog-section-header { margin-bottom: 32px; }
.blog-section-header h2 { font-size: 28px; font-weight: 700; color: #111; margin-bottom: 8px; }
.blog-section-header p { font-size: 17px; color: #666; line-height: 1.7; }

/* Category filter bar */
.blog-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.blog-filter-pill {
  font-size: 15px; font-weight: 600; padding: 8px 18px; border-radius: 24px;
  border: 2px solid #ddd; background: #fff; color: #666;
  cursor: pointer; transition: all 0.4s; text-decoration: none;
}
.blog-filter-pill:hover, .blog-filter-pill.active {
  border-color: var(--orange); color: var(--orange); background: rgba(255,128,62,0.05);
}

/* Blog cards grid */
.blog-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.blog-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 2px solid #e5e5e5; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.4s, box-shadow 0.4s;
  text-decoration: none; color: inherit; display: block;
}
.blog-card:hover { transform: translateY(-6px); border-color: rgba(255,128,62,0.35); box-shadow: 0 12px 40px rgba(255,128,62,0.1); }
.blog-card-img { height: 180px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.blog-card:hover .blog-card-img img { transform: scale(1.03); }
.blog-card-body { padding: 20px; }
.blog-card-body .article-cats { margin-bottom: 10px; }
.blog-card-body .cat-pill { font-size: 10px; padding: 3px 10px; }
.blog-card-body .tag-pill { font-size: 10px; padding: 3px 8px; }
.blog-card-body h3 { font-size: 16px; font-weight: 700; color: #111; line-height: 1.35; margin-bottom: 8px; }
.blog-card-excerpt { font-size: 15px; color: #666; line-height: 1.6; }
.blog-card-meta { font-size: 12px; color: #999; margin-top: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .article-header { padding: 90px 0 24px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar-box { flex: 1; min-width: 250px; }
  .blog-img-grid { grid-template-columns: 1fr; }
  .blog-stats { grid-template-columns: 1fr; }
  .cta-form-grid { grid-template-columns: 1fr; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .article-header h1 { font-size: 28px; }
  .article-meta { flex-wrap: wrap; }
  .article-meta-social { margin-left: 0; margin-top: 8px; }
  .blog-phase { flex-direction: column; gap: 6px; }
  .blog-phase-badge { margin-left: 0; }
  .blog-stats { padding: 24px; }
  .cta-form-grid { padding: 28px 20px; }
  .blog-cards-grid { grid-template-columns: 1fr; }
  .carousel-item { width: 240px; }
}
