/* ==========================================================================
   THÈME ROUILLE — Informatique38 (Grenoble)
   Template « bento & plein écran » : bandeau plein écran + grille asymétrique.
   ========================================================================== */

:root {
  --rouille:      #902808;   /* rouille principal */
  --rouille-fonce:#5a1800;   /* rouille foncé (titres) */
  --rouille-nuit: #2a0c00;   /* rouille nuit (pied de page) */
  --rouille-pale: #fdf5f0;   /* fond très clair */
  --rouille-sect: #faeae0;   /* fond de section */
  --gris-texte:   #584840;
  --gris-ligne:   #efe0d8;
  --blanc:        #ffffff;
  --radius:       14px;
  --ombre:        0 4px 18px rgba(90, 30, 0, .08);
  --ombre-hover:  0 14px 30px rgba(90, 30, 0, .16);
}

/* ---------- Global ---------- */
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--gris-texte);
  background: var(--rouille-pale);
}
a { color: var(--rouille); }
a:hover { color: var(--rouille-fonce); }
h2, h3, h4 { color: var(--rouille-fonce); font-family: 'Raleway', 'Roboto', sans-serif; }
h2 { font-size: 32px; line-height: 1.2; font-weight: 700; padding: 0 0 18px; }
h3 { font-size: 21px; line-height: 1.3; font-weight: 700; }
h4 { font-size: 17px; font-weight: 500; color: var(--gris-texte); }

/* ---------- Header ---------- */
#top1 { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 6px 18px rgba(90,30,0,.05); }
header { padding-bottom: 10px; }
header .logo_wrapper img { width: 235px; height: auto; }

/* ---------- Menu pilules ---------- */
.navbar_ .nav > li > a {
  background: #f2f2f2; color: #2a2a30; font-weight: 700; font-size: 16px;
  line-height: 46px; padding: 0 13px; margin: 17px 3px; border-radius: 18px;
  transition: color .2s ease, background .2s ease;
}
.navbar_ .nav > li > a:hover,
.navbar_ .nav > li > a:focus { color: var(--rouille); background: #e8ecf2; }
.navbar_ .nav > li.active > a,
.navbar_ .nav > li.active > a:hover,
.navbar_ .nav > li.active > a:focus { color: #fff; background: var(--rouille); box-shadow: 0 6px 14px rgba(0,0,0,.18); }

/* ---------- Bandeau plein écran ---------- */
.hero-plein {
  min-height: 82vh;
  background: linear-gradient(135deg, #5a1800 0%, #902808 60%, #c05028 100%);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 70px 0;
}
.hero-plein h1 {
  color: #fff; font-family: 'Raleway', sans-serif; font-size: 46px; line-height: 1.15;
  font-weight: 800; text-align: left; text-transform: none; padding: 0 0 16px; margin: 0;
}
.hero-plein .sous-titre { color: #fdeee6; font-size: 20px; line-height: 1.5; margin: 0 0 28px; max-width: 620px; }
.hero-plein .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-hero {
  display: inline-block; background: #fff; color: var(--rouille-fonce);
  font-weight: 700; font-size: 16px; padding: 14px 28px; border-radius: 8px;
  text-decoration: none; transition: transform .2s ease, background .2s ease;
}
.btn-hero:hover { background: #ffe9dc; color: var(--rouille-fonce); transform: translateY(-2px); }
.btn-hero-secondaire { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.55); }
.btn-hero-secondaire:hover { background: rgba(255,255,255,.28); color: #fff; }

/* ---------- Bandeau téléphone ---------- */
.home_bot { background: var(--blanc); border-top: 1px solid var(--gris-ligne); padding: 8px 0; }
.phone1 { color: var(--rouille-fonce); font-weight: 500; }
.phone1 i { color: var(--rouille); }

/* ---------- Sections ---------- */
.services1 { background: var(--rouille-pale); padding: 40px 0; }
.services3 { background: var(--rouille-sect); padding: 60px 0; }
.services6 { background: var(--rouille-nuit); padding: 70px 0 30px; }

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 16px;
}
.bento .b-card {
  background: #fff; border: 1px solid var(--gris-ligne); border-radius: var(--radius);
  padding: 18px; overflow: hidden; box-shadow: var(--ombre); text-decoration: none;
  display: flex; flex-direction: column; justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bento .b-card:hover { transform: translateY(-4px); box-shadow: var(--ombre-hover); }
.bento .b-card.grand { grid-column: span 2; grid-row: span 2; }
.bento .b-card img { max-height: 70px; max-width: 100%; width: auto; margin-bottom: 8px; }
.bento .b-card.grand img { max-height: 150px; }
.bento .b-card h3 { font-size: 18px; margin: 0 0 4px; color: var(--rouille-fonce); }
.bento .b-card p { margin: 0; font-size: 13px; color: var(--gris-texte); }

/* ---------- Boutons / formulaires ---------- */
.btn-default.btn2 { background: var(--rouille); color: #fff; border-radius: 6px; font-weight: 600; padding: 14px 26px; }
.btn-default.btn2:hover { background: var(--rouille-fonce); transform: translateY(-2px); }
button[name="Submit"] { background-color: var(--rouille) !important; border-radius: 6px !important; padding: 12px 28px !important; }
input.form-control, textarea.form-control { border: 1px solid var(--gris-ligne); border-radius: 6px; color: var(--gris-texte); }
input.form-control:focus, textarea.form-control:focus { border-color: var(--rouille); box-shadow: 0 0 0 3px rgba(144,40,8,.14); outline: none; }

/* ---------- Contact ---------- */
#contacts1 { background: var(--rouille-pale); border-top: 1px solid var(--gris-ligne); border-bottom: 1px solid var(--gris-ligne); padding-top: 60px; padding-bottom: 70px; }
#contacts2 { background: var(--rouille-sect); padding-top: 40px; padding-bottom: 60px; }
.time1 i { color: var(--rouille); }
.time1 span .txt1 { color: var(--rouille-fonce); }

/* ---------- Pied de page ---------- */
.services6 p, .services6 span, .services6 a, .services6 h5, .services6 li { color: #e8d0c8; }
.services6 a:hover { color: #fff; }
.services6 p[style*="font-size: 16pt"] { color: #fff; font-weight: 700; margin-bottom: 6px; }
.copy1 { color: #a88276; }
.copy2 { color: #a88276; }
.copy2 a { color: var(--rouille); }

/* ---------- Alignement LinkedIn ---------- */
.social li, .social > a { vertical-align: middle; }
.social > a { display: inline-block; margin: 0 10px; }
.social > a img { display: block; width: 32px; height: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .hero-plein { min-height: 60vh; }
  .hero-plein h1 { font-size: 30px; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .bento .b-card.grand { grid-column: span 2; grid-row: span 1; }
  h2 { font-size: 26px; }
  h3 { font-size: 19px; }
}

/* =====================================================
   SLIDESHOW MODERNE
   ===================================================== */
#modern-slider { position: relative; width: 100%; height: 560px; overflow: hidden; background: #17212b; font-family: Arial, Helvetica, sans-serif; }
.modern-slide { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; background-size: cover; background-position: center center; opacity: 0; visibility: hidden; transform: scale(1.04); transition: opacity .8s ease, transform 6s ease, visibility .8s ease; }
.modern-slide.active { z-index: 2; opacity: 1; visibility: visible; transform: scale(1); }
.modern-slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,24,39,.88) 0%, rgba(8,24,39,.68) 42%, rgba(8,24,39,.18) 100%); }
.modern-slide-content { position: relative; z-index: 3; width: 100%; max-width: 1200px; margin: 0 auto; padding: 40px 90px; color: #fff; }
.modern-slide-label { display: inline-block; margin-bottom: 18px; padding: 8px 15px; color: #fff; background: var(--rouille); border-radius: 30px; font-size: 13px; font-weight: bold; letter-spacing: .5px; text-transform: uppercase; }
.modern-slide-content h1 { margin: 0 0 20px; padding: 0 !important; color: #fff; font-size: 58px; font-weight: 700; line-height: 1.1; text-align: left !important; text-transform: none !important; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.modern-slide-content p { max-width: 600px; margin: 0 0 30px; color: #fff; font-size: 22px; line-height: 1.5; text-shadow: 0 2px 5px rgba(0,0,0,.5); }
.modern-slide-button { display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px; color: #fff !important; background: #f58220; border-radius: 4px; font-size: 16px; font-weight: bold; text-decoration: none !important; transition: all .3s ease; }
.modern-slide-button:hover { color: #fff !important; background: #d9670b; transform: translateY(-2px); box-shadow: 0 7px 18px rgba(0,0,0,.25); }
.modern-slider-arrow { position: absolute; top: 50%; z-index: 5; width: 48px; height: 48px; padding: 0; color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.45); border-radius: 50%; font-size: 18px; cursor: pointer; transform: translateY(-50%); transition: all .3s ease; }
.modern-slider-arrow:hover { background: var(--rouille); border-color: var(--rouille); }
.modern-slider-prev { left: 25px; } .modern-slider-next { right: 25px; }
.modern-slider-dots { position: absolute; bottom: 28px; left: 50%; z-index: 5; display: flex; gap: 9px; transform: translateX(-50%); }
.modern-dot { width: 11px; height: 11px; padding: 0; background: rgba(255,255,255,.5); border: 0; border-radius: 50%; cursor: pointer; transition: all .3s ease; }
.modern-dot.active { width: 30px; border-radius: 10px; background: #f58220; }
.modern-slider-phone { position: absolute; right: 35px; bottom: 25px; z-index: 5; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 15px; font-weight: bold; }
.modern-slider-phone i { color: #f58220; font-size: 18px; }
.modern-slide.active .modern-slide-content { animation: modernSlideContent .8s ease both; }
@keyframes modernSlideContent { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) { #modern-slider { height: 500px; } .modern-slide-content { padding: 35px 55px; } .modern-slide-content h1 { font-size: 42px; } .modern-slide-content p { font-size: 18px; } .modern-slider-phone { display: none; } .modern-slider-arrow { width: 40px; height: 40px; } .modern-slider-prev { left: 12px; } .modern-slider-next { right: 12px; } }
@media (max-width: 480px) { #modern-slider { height: 520px; } .modern-slide { background-position: 65% center; } .modern-slide-content { padding: 30px 35px; } .modern-slide-content h1 { font-size: 36px; } .modern-slide-content p { font-size: 17px; } .modern-slider-arrow { top: auto; bottom: 20px; transform: none; } .modern-slider-dots { bottom: 35px; } }
#contacts2 .thumb1 .thumbnail { background: transparent; }

/* =====================================================
   SLIDESHOW HORIZONTAL — Grenoble (rouille)
   ===================================================== */
.h1_wrapper { position: static; background: none; }
.h1_wrapper h1 { color: #902808; }
#horizontal-slider { position: relative; height: 560px; overflow: hidden; background: #2a0c00; }
.hs-track { display: flex; height: 100%; transition: transform .8s ease-in-out; }
.hs-slide { position: relative; min-width: 100%; height: 100%; background-position: center; background-size: cover; }
.hs-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(42,12,0,.92), rgba(42,12,0,.35)); }
.hs-content { position: relative; z-index: 2; max-width: 650px; padding: 150px 8%; color: #fff; }
.hs-content span { color: #e0a060; font-weight: bold; text-transform: uppercase; letter-spacing: 2px; }
.hs-content h1 { margin: 15px 0; color: #fff; font-size: 54px; }
.hs-content p { font-size: 20px; line-height: 1.5; }
.hs-content a { display: inline-block; margin-top: 20px; padding: 13px 22px; color: #fff !important; background: #902808; text-decoration: none; border-radius: 4px; }
.hs-arrow { position: absolute; top: 50%; z-index: 5; width: 45px; height: 45px; color: #fff; background: rgba(0,0,0,.45); border: 1px solid #fff; border-radius: 50%; cursor: pointer; transform: translateY(-50%); }
.hs-arrow:hover { background: #902808; }
.hs-prev { left: 25px; } .hs-next { right: 25px; }
.hs-dots { position: absolute; bottom: 25px; left: 50%; z-index: 5; display: flex; gap: 10px; transform: translateX(-50%); }
.hs-dots button { width: 12px; height: 12px; padding: 0; background: #fff; border: 0; border-radius: 50%; cursor: pointer; opacity: .5; }
.hs-dots button.active { background: #e0a060; opacity: 1; transform: scale(1.25); }
@media (max-width: 600px) { #horizontal-slider { height: 500px; } .hs-content { padding: 120px 35px; } .hs-content h1 { font-size: 36px; } .hs-content p { font-size: 17px; } }

