/* ============================================================
   Rise Tech Informatique — Feuille de style principale
   Thème : clair, professionnel, responsive
   ============================================================ */

:root {
  --blue:        #1a4fa8;
  --blue-dark:   #103990;
  --blue-light:  #e8f0fc;
  --text:        #1a1a1a;
  --text-muted:  #666;
  --bg:          #ffffff;
  --bg-alt:      #f5f7fa;
  --border:      #e0e4ea;
  --shadow-sm:   0 2px 6px rgba(0,0,0,.07);
  --shadow-md:   0 4px 16px rgba(0,0,0,.1);
  --radius:      8px;
  --radius-lg:   14px;
  --max:         1100px;
  --header-h:    70px;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 16px; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul   { list-style: none; }
h1,h2,h3,h4 { line-height: 1.25; font-weight: 700; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-h);
}

/* Nav gauche */
.header-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.header-nav a {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.header-nav a:hover,
.header-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }

/* Logo centré */
.header-logo { justify-self: center; display: flex; align-items: center; }
.header-logo img { height: 48px; width: auto; }

/* Contact droite */
.header-contact {
  display: flex;
  gap: .6rem;
  align-items: center;
  justify-content: flex-end;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .35rem .85rem;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.contact-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); text-decoration: none; }
.contact-btn svg { flex-shrink: 0; }

/* Hamburger (mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  gap: .75rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-contact {
  display: flex;
  gap: .75rem;
  padding-top: .5rem;
  flex-wrap: wrap;
}
.mobile-contact a {
  border-bottom: none !important;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .35rem .9rem;
  font-size: .85rem;
}

/* ── Layout utilitaires ───────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}
.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .5rem;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Boutons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: .9rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary  { background: var(--blue); color: #fff; }
.btn-primary:hover  { background: var(--blue-dark); color: #fff; }
.btn-outline  { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover  { background: var(--blue); color: #fff; }
.btn-sm { padding: .45rem 1rem; font-size: .82rem; }

/* ── Hero (index) ────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--bg) 60%, var(--blue-light) 100%);
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin-bottom: 1rem;
  color: var(--text);
}
.hero h1 strong { color: var(--blue); }
.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 2rem;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Page hero (pages internes) ──────────────────────────── */
.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: .6rem;
}
.page-hero p { color: var(--text-muted); font-size: 1.05rem; }
.breadcrumb {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue); }

/* ── Cards services ───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
/* ── IDs de sections ─────────────────────────────────────── */
#informatique {
  background-image: url('/images/repairparallax.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
}
#informatique::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.88);
}
#informatique > * {
  position: relative;
  z-index: 1;
}

#web       {
  background-image: url('/images/webparallax.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
}
#web::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.88);
}
#web > * {
  position: relative;
  z-index: 1;
}

#artdigital       {
  background-image: url('/images/webparallax.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
}
#artdigital::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.88);
}
#artdigital > * {
  position: relative;
  z-index: 1;
}


#article       {
  background-image: url('/images/webparallax.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
}
#article::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.88);
}
#article > * {
  position: relative;
  z-index: 1;
}

.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--blue); }
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--blue);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.service-card p  { color: var(--text-muted); font-size: .9rem; flex: 1; }
.service-card .card-link {
  margin-top: 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.service-card .card-link:hover { text-decoration: underline; }

/* ── Articles grid ────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.article-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-alt);
}
.article-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-card-img-placeholder svg { width: 40px; height: 40px; color: var(--blue); opacity: .4; }
.article-card-body { padding: 1.25rem 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.article-card-date { font-size: .78rem; color: var(--text-muted); margin-bottom: .4rem; }
.article-card-body h3 { font-size: 1rem; margin-bottom: .4rem; }
.article-card-body .sub { font-size: .85rem; color: var(--blue); font-weight: 500; margin-bottom: .5rem; }
.article-card-body p  { font-size: .88rem; color: var(--text-muted); flex: 1; }
.article-card-body .btn { margin-top: 1rem; align-self: flex-start; }

/* ── Formulaire de contact ────────────────────────────────── */
.contact-section { padding: 4rem 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.contact-info p  { color: var(--text-muted); margin-bottom: 1.5rem; }
.info-list { display: flex; flex-direction: column; gap: .9rem; }
.info-item { display: flex; gap: .75rem; align-items: flex-start; }
.info-item svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; margin-top: .15rem; }
.info-item a { color: var(--text); }
.info-item a:hover { color: var(--blue); }
.hours-list { font-size: .9rem; color: var(--text-muted); margin-top: .25rem; }

.contact-form { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,79,168,.12);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-honeypot { display: none !important; visibility: hidden; position: absolute; }
.form-message {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  margin-top: 1rem;
  display: none;
}
.form-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; display: block; }
.form-message.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; display: block; }

/* ── Tarifs ───────────────────────────────────────────────── */
.tarifs-section { padding: 3rem 0; }
.tarifs-group { margin-bottom: 2rem; }
.tarifs-group h3 { font-size: 1.1rem; color: var(--blue); margin-bottom: .75rem; padding-bottom: .4rem; border-bottom: 2px solid var(--blue-light); }
.tarifs-list { display: flex; flex-direction: column; gap: .5rem; }
.tarif-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem 1rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-size: .92rem;
}
.tarif-item:nth-child(even) { background: var(--bg); border: 1px solid var(--border); }
.tarif-price { font-weight: 700; color: var(--blue); white-space: nowrap; }

/* ── Services box (informatique) ─────────────────────────── */
.service-box { display: flex; flex-direction: column; gap: 1.5rem; }
.service-box-item {
  background: var(--bg-alt);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
}
.service-box-item h3 { font-size: 1rem; margin-bottom: .5rem; color: var(--blue); }
.service-box-item p  { color: var(--text-muted); font-size: .93rem; }

/* ── Offres web ───────────────────────────────────────────── */
.offres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.offre-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.offre-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.offre-card-header { background: var(--blue); color: #fff; padding: 1.5rem; text-align: center; }
.offre-card-header h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.offre-price { font-size: 1.8rem; font-weight: 700; }
.offre-price-sub { font-size: .82rem; opacity: .85; }
.offre-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.offre-card-body p { color: var(--text-muted); font-size: .92rem; flex: 1; }
.offre-card-body .btn { margin-top: 1.25rem; }

/* ── Applications showcase ───────────────────────────────── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.app-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.app-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.app-card p  { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2.5rem; }
.pagination a, .pagination span {
  padding: .5rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--text);
  text-decoration: none;
  transition: background .2s;
}
.pagination a:hover  { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── Article content ─────────────────────────────────────── */
.article-content { max-width: 780px; margin: 0 auto; }
.article-content h2 { font-size: 1.35rem; margin: 2rem 0 .75rem; color: var(--blue); }
.article-content h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.article-content p  { margin-bottom: 1rem; color: #333; }
.article-content ul, .article-content ol { margin: 0 0 1rem 1.5rem; color: #333; }
.article-content li { margin-bottom: .35rem; }
.article-content img { border-radius: var(--radius); margin: 1.5rem 0; }

/* ── Maps embed ───────────────────────────────────────────── */
.map-container { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin-top: 1.5rem; }
.map-container iframe { width: 100%; height: 250px; border: none; display: block; }

/* ── Pages statiques (CGV / Mentions) ───────────────────── */
.legal-content { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; }
.legal-content h1 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.legal-content h2 { font-size: 1.15rem; margin: 1.75rem 0 .6rem; color: var(--blue); }
.legal-content p  { color: #444; margin-bottom: .9rem; line-height: 1.7; }
.legal-content a  { color: var(--blue); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: #1a1a2e;
  color: #c8cfe0;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 2.5rem;
}
.footer-col h3 { color: #fff; font-size: .95rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-col p   { font-size: .88rem; line-height: 1.7; margin-bottom: .75rem; }
.footer-col a   { color: #c8cfe0; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-partners { display: flex; flex-direction: column; gap: .6rem; font-size: .9rem; }
.footer-partners a { display: inline-flex; align-items: center; gap: .4rem; }
.footer-bottom {
  text-align: center;
  padding: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .82rem;
  color: #8892a4;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-contact { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-logo { justify-self: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  :root { --header-h: 60px; }
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 2.5rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .offres-grid { grid-template-columns: 1fr; }
  .tarif-item { flex-direction: column; align-items: flex-start; gap: .25rem; }
}

/* ── Accessibilité ────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
