/* ===================== BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Arial, Helvetica, sans-serif; font-size: 15px; color: #333; line-height: 1.6; background: #fff; }
a { color: #0073aa; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===================== IMAGE PLACEHOLDERS ===================== */
.img-ph {
  background: linear-gradient(135deg, #c0c0c0, #d8d8d8, #b8b8b8);
  display: flex; align-items: center; justify-content: center;
  color: #777; font-size: 12px; text-align: center; padding: 10px;
  min-height: 180px; position: relative; overflow: hidden;
}
.img-ph span { position: relative; z-index: 1; }

/* ===================== NAVBAR ===================== */
.site-header { position: sticky; top: 0; z-index: 900; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1100px; margin: 0 auto; padding: 8px 20px; }
.nav-brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.nav-brand:hover { text-decoration: none; }
.logo-icon { width: 48px; height: 48px; flex-shrink: 0; }
.nav-brand-text strong { display: block; font-size: 15px; font-weight: 700; color: #222; line-height: 1.2; }
.nav-brand-text span { font-size: 11px; color: #888; font-style: italic; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 22px; }
.nav-links > li > a { font-size: 13px; color: #444; display: flex; align-items: center; gap: 3px; }
.nav-links > li > a:hover { color: #0073aa; text-decoration: none; }
.caret { font-size: 10px; }
.has-dropdown { position: relative; }
.submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 180px; background: #fff; border: 1px solid #ddd; border-top: 2px solid #0073aa; list-style: none; box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 1000; }
.has-dropdown:hover .submenu { display: block; }
.submenu li a { display: block; padding: 9px 16px; font-size: 13px; color: #444; border-bottom: 1px solid #f0f0f0; }
.submenu li a:hover { background: #f7f7f7; color: #0073aa; text-decoration: none; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: #333; transition: .3s; }

/* ===================== HERO ===================== */
.hero { position: relative; min-height: 380px; display: flex; align-items: center; justify-content: center; background: #151e2d; overflow: hidden; text-align: center; }
.hero-bg { position: absolute; inset: 0; background: url('../images/m1.jpg') center/cover no-repeat; opacity: 0.35; }
.hero-text { position: relative; z-index: 1; color: #fff; padding: 50px 20px; }
.hero-text .line1 { font-size: 46px; font-weight: 300; letter-spacing: 6px; display: block; }
.hero-text .line2 { font-size: 34px; font-weight: 300; letter-spacing: 4px; display: block; margin-top: 6px; }
.hero-text .line3 { font-size: 22px; font-weight: 300; letter-spacing: 3px; display: block; margin-top: 4px; }
.hero-text .line4 { font-size: 34px; font-weight: 300; letter-spacing: 4px; display: block; margin-top: 4px; }
.hero-text .line5 { font-size: 26px; font-weight: 300; letter-spacing: 3px; display: block; margin-top: 4px; }

/* ===================== PRODUCTION ===================== */
.production { padding: 40px 0; }
.production-intro { text-align: center; font-size: 14px; color: #17b0d4; font-style: italic; margin-bottom: 28px; padding: 0 20px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; overflow: hidden; }
.row-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-top: 10px; overflow: hidden; }
.img-stack { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.img-ph.tall { min-height: 260px; }
.img-ph.short { min-height: 118px; flex: 1; }
.silicone-text { font-size: 12px; color: #555; font-style: italic; text-align: right; margin-top: 6px; }

/* ===================== APPLICATIONS ===================== */
.applications { background: #4a5568; padding: 28px 20px; margin-top: 30px; }
.applications p { max-width: 900px; margin: 0 auto; color: #fff; font-size: 14px; text-align: center; line-height: 1.9; }
.applications a { color: #cfe8ff; text-decoration: underline; }

/* ===================== SCHÉMA SERVICES ===================== */
.wheel-section { background: #d0e9f5; padding: 30px 20px; }
.wheel-schema { width: 100%; max-width: 960px; height: auto; display: block; margin: 0 auto; border-radius: 6px; }

/* ===================== EXPEDITION ===================== */
.expedition { padding: 50px 20px; text-align: center; }
.expedition-inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.expedition-box { width: 160px; }
.expedition-box .img-ph { min-height: 140px; border-radius: 4px; }
.expedition-text h2 { font-size: 26px; font-weight: 700; color: #333; line-height: 1.3; }
.expedition-text h2 .blue { color: #0073aa; display: block; }

/* ===================== PROS HEADER ===================== */
.pros-header { background: #2c3e50; padding: 22px 20px; text-align: center; }
.pros-header h2 { color: #fff; font-size: 20px; font-weight: 400; letter-spacing: 1px; }

/* ===================== PROS CONTENT ===================== */
.pros-content { padding: 40px 0; }
.pros-content h3 { font-size: 20px; font-weight: 700; margin-bottom: 22px; line-height: 1.4; color: #222; }
.pros-content h3 .blue { color: #0073aa; }
.service-item { margin-bottom: 14px; font-size: 14px; line-height: 1.7; color: #555; }
.service-item strong { color: #222; }
.pros-images { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; overflow: hidden; }

/* ===================== ACCOMPAGNEMENT ===================== */
.accompagnement { padding: 40px 0; border-top: 1px solid #eee; }
.accompagnement h3 { font-size: 19px; font-weight: 700; color: #17b0d4; margin-bottom: 16px; }
.accompagnement-text { font-size: 13px; color: #8b4513; line-height: 1.8; margin-bottom: 18px; }
.accompagnement-list { list-style: disc; padding-left: 24px; margin-bottom: 30px; }
.accompagnement-list li { margin-bottom: 8px; font-size: 14px; }
.accompagnement-list li a { color: #0073aa; text-decoration: underline; }
.cmi-logo-box { text-align: center; padding: 20px 0 10px; }
.cmi-house-svg { width: 220px; height: 190px; margin: 0 auto; }

/* ===================== CONCEPTION CAO ===================== */
.conception { padding: 50px 0 30px; border-top: 2px solid #eee; }
.conception h2 { font-size: 26px; font-weight: 700; color: #1a2a4a; margin-bottom: 4px; }
.conception .subtitle { font-size: 14px; color: #555; margin-bottom: 18px; font-weight: 400; }
.conception-text { font-size: 14px; color: #555; margin-bottom: 24px; line-height: 1.8; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; overflow: hidden; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; overflow: hidden; }
.caption-text { font-size: 13px; color: #666; font-style: italic; margin-bottom: 20px; text-align: center; }
.yt-embed { position: relative; padding-bottom: 56.25%; background: #111; border: 1px solid #ddd; margin-bottom: 8px; }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ===================== FORMATIONS ===================== */
.formations-header { background: #5a6a7a; padding: 16px 20px; text-align: center; margin-top: 40px; }
.formations-header h2 { color: #fff; font-size: 20px; font-weight: 400; letter-spacing: 2px; }
.formations-content { padding: 35px 0 50px; }
.formations-content > h3 { font-size: 19px; font-weight: 700; color: #222; margin-bottom: 24px; line-height: 1.4; }
.formation-item { margin-bottom: 18px; }
.formation-item h4 { font-size: 14px; font-weight: 700; color: #0073aa; margin-bottom: 4px; }
.formation-item p { font-size: 13px; color: #666; line-height: 1.6; }

/* ===================== FOOTER ===================== */
footer { background: #f4f4f4; border-top: 1px solid #ddd; padding: 16px 20px 12px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: #555; }
.footer-links a:hover { color: #0073aa; }
.footer-social { display: flex; align-items: center; gap: 10px; }
.soc-icon { width: 30px; height: 30px; border-radius: 5px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.soc-fb { background: #1877f2; }
.soc-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.soc-wa { background: #25d366; }
.footer-credit { text-align: right; width: 100%; }
.footer-logo { height: 28px; width: auto; display: inline-block; opacity: 0.75; transition: opacity .2s; }
.footer-logo:hover { opacity: 1; }

/* ===================== CONTACT PAGE ===================== */
.contact-logo-center { padding: 30px 0 0; text-align: center; }
.contact-logo-center .img-ph { width: 280px; height: 200px; margin: 0 auto; border-radius: 4px; }
.devis-banner { background: #e5e5e5; padding: 18px; text-align: center; margin: 24px 0 32px; }
.devis-banner h2 { font-size: 22px; color: #222; font-weight: 700; }
.devis-banner h2 em { color: #0073aa; font-style: normal; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; color: #444; margin-bottom: 5px; }
.form-group label .req { color: #e74c3c; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea { width: 100%; padding: 8px 10px; border: 1px solid #ccc; font-size: 14px; font-family: inherit; color: #333; outline: none; transition: border-color .2s; border-radius: 2px; }
.form-group input:focus, .form-group textarea:focus { border-color: #0073aa; }
.form-group textarea { min-height: 150px; resize: vertical; }
.file-group { margin-bottom: 20px; }
.file-label-text { font-size: 12px; color: #555; margin-bottom: 7px; display: block; }
.file-row { display: flex; align-items: center; gap: 12px; }
.file-row input[type="file"] { display: none; }
.file-btn { padding: 6px 12px; background: #f0f0f0; border: 1px solid #ccc; font-size: 12px; cursor: pointer; border-radius: 2px; white-space: nowrap; }
.file-name-display { font-size: 12px; color: #999; font-style: italic; }
.btn-send { background: #0073aa; color: #fff; border: none; padding: 12px 30px; font-size: 15px; font-weight: 700; cursor: pointer; border-radius: 3px; }
.btn-send:hover { background: #005d8c; }
.required-note { font-size: 12px; color: #888; margin-top: 10px; font-style: italic; }
.attention-box { padding: 30px 0 20px; border-top: 1px solid #eee; margin-top: 20px; }
.attention-box h2 { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 14px; }
.attention-intro { font-size: 14px; margin-bottom: 14px; line-height: 1.7; }
.hl-red { color: #e74c3c; }
.vocab-list { list-style: disc; padding-left: 24px; margin-bottom: 20px; }
.vocab-list li { margin-bottom: 8px; font-size: 14px; line-height: 1.6; }
.vocab-list li strong { color: #1a2a5a; }
.contact-info-block { text-align: center; padding: 28px 20px 20px; border-top: 1px solid #eee; }
.contact-cta { font-size: 15px; color: #555; margin-bottom: 12px; }
.contact-cta em { color: #17b0d4; font-style: normal; font-weight: 700; }
.contact-hours { font-size: 18px; font-weight: 700; color: #333; margin-bottom: 14px; }
.contact-phone { font-size: 38px; font-weight: 700; color: #0073aa; letter-spacing: 2px; }
.contact-rgpd { font-size: 12px; color: #666; text-align: center; padding: 14px 20px 20px; border-top: 1px solid #eee; max-width: 700px; margin: 0 auto; line-height: 1.6; }
.contact-rgpd a { color: #0073aa; text-decoration: underline; }

/* ===================== IMAGES RÉELLES ===================== */
.gi { width: 100%; object-fit: cover; display: block; min-width: 0; }
/* Hauteurs cohérentes par section */
.gi-sm      { height: 220px; }   /* row-3 : 3 images égales */
.gi-tall    { height: 300px; }   /* row-2-1 : image haute gauche */
.gi-half    { height: 146px; }   /* row-2-1 : pile droite (146×2+8=300) */
.gi-pros    { height: 280px; }   /* pros : 2 images égales */
.gi-cao     { height: 220px; }   /* conception grid-3 : 3 images égales */
.gi-montage { height: 360px; }   /* conception grid-2 : 2 images égales */
.contact-logo-img { max-width: 460px; width: 100%; height: auto; margin: 0 auto; display: block; border-radius: 4px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid #eee; padding: 10px 0; gap: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 10px 20px; border-bottom: 1px solid #f5f5f5; width: 100%; }
  .submenu { position: static; border: none; border-top: 1px solid #f0f0f0; box-shadow: none; padding-left: 20px; }
  .has-dropdown:hover .submenu { display: none; }
  .has-dropdown.open .submenu { display: block; }
  .hamburger { display: flex; }
  .row-3, .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .row-2-1 { grid-template-columns: 1fr; }
  .pros-images { grid-template-columns: 1fr; }
  /* Tablette : hauteurs proportionnelles, paire tall/half conservée */
  .gi-sm      { height: 200px; }
  .gi-tall    { height: 280px; }
  .gi-half    { height: 136px; } /* 136×2+8=280 */
  .gi-pros    { height: 260px; }
  .gi-cao     { height: 200px; }
  .gi-montage { height: 300px; }
  .hero-text .line1 { font-size: 30px; }
  .hero-text .line2 { font-size: 22px; }
  .hero-text .line4 { font-size: 22px; }
  .expedition-text h2 { font-size: 22px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-credit { text-align: center; }
}
@media (max-width: 480px) {
  .row-3, .grid-3 { grid-template-columns: 1fr; }
  /* Mobile : tout en 1 colonne, hauteurs en vw pour rester proportionnelles */
  .gi-sm, .gi-cao, .gi-pros { height: 56vw; }
  .gi-tall    { height: 56vw; }
  .gi-half    { height: 40vw; }
  .gi-montage { height: 65vw; }
}
