/* ============================================================
   IT MORVAN – style.css
   Charte graphique v2 : Bleu #0577B8 · Ardoise #1E2D3D · Teal #00C9A7
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --blue:       #0577B8;
  --ardoise:    #1E2D3D;
  --teal:       #00C9A7;
  --white:      #ffffff;
  --grey-light: #f8f9fa;
  --grey-mid:   #e1e4e8;
  --grey-text:  #555555;
  --font:       'DM Sans', Arial, Helvetica, sans-serif;
  --radius:     8px;
  --shadow:     0 4px 20px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--ardoise);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typographie ────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Utilitaires ─────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 80px 0; }
.section-alt { background-color: var(--grey-light); }
.section-dark { background-color: var(--ardoise); color: var(--white); }
.text-blue { color: var(--blue); }
.text-teal { color: var(--teal); }
.text-center { text-align: center; }
.section-title {
  margin-bottom: 2.5rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--teal);
  margin-top: 12px;
}
.section-title.centered::after { margin: 12px auto 0; }

/* ── Boutons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font);
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: opacity var(--transition), transform var(--transition);
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-secondary { background: var(--blue); color: var(--white); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--ardoise); opacity: 1; }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ardoise);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.header-top {
  background: rgba(0,0,0,0.2);
  padding: 6px 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  max-width: 1100px;
  margin: 0 auto;
}
.header-top a { color: rgba(255,255,255,0.6); }
.header-top a:hover { color: var(--teal); }
.header-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 70px;
}
.header-logo img { height: 44px; width: auto; }
.main-nav { flex: 1; }
.main-nav ul {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.main-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.main-nav a.active { color: var(--teal); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.btn-espace-client {
  background: var(--blue);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity var(--transition);
}
.btn-espace-client:hover { opacity: 0.85; }

/* ── Dropdown Assistance ─────────────────────────────────────── */
.assistance-dropdown { position: relative; }
.btn-assistance {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-family: var(--font);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--transition), color var(--transition);
}
.btn-assistance:hover,
.btn-assistance[aria-expanded="true"] {
  border-color: var(--teal);
  color: var(--teal);
}
.assistance-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 140px;
  overflow: hidden;
  border: 1px solid var(--grey-mid);
  z-index: 200;
}
.assistance-menu.open { display: block; }
.assistance-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--ardoise);
  transition: background var(--transition);
}
.assistance-menu a:hover { background: var(--grey-light); color: var(--blue); }

/* ── Nav toggle mobile ───────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: var(--ardoise);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--teal);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.hero-text .tagline {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal);
  margin-bottom: 1rem;
}
.hero-text h1 { margin-bottom: 1.25rem; }
.hero-text p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-logo img { height: 120px; opacity: 0.15; }

/* ── Cards services ──────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--blue);
}
.service-card .icon {
  width: 48px;
  height: 48px;
  background: #EEF6FB;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
.service-card h3 { margin-bottom: 0.5rem; color: var(--ardoise); }
.service-card p { font-size: 0.9rem; color: var(--grey-text); }
.service-card .card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
}
.service-card .card-link:hover { color: var(--teal); }

/* ── Arguments (3 colonnes) ──────────────────────────────────── */
.args-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.arg { text-align: center; }
.arg .arg-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.arg h3 { margin-bottom: 0.5rem; }
.arg p { font-size: 0.9rem; color: var(--grey-text); }

/* ── Packs IT ────────────────────────────────────────────────── */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.pack-card {
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.pack-card:hover { box-shadow: var(--shadow); }
.pack-card.featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px var(--teal);
}
.pack-header {
  background: var(--ardoise);
  color: var(--white);
  padding: 1.5rem;
  text-align: center;
}
.pack-card.featured .pack-header { background: var(--blue); }
.pack-header h3 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.pack-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  margin: 0.5rem 0 0.25rem;
}
.pack-price span { font-size: 0.9rem; font-weight: 400; color: rgba(255,255,255,0.6); }
.pack-body { padding: 1.5rem; }
.pack-body ul { display: flex; flex-direction: column; gap: 0.6rem; }
.pack-body li {
  font-size: 0.9rem;
  padding-left: 1.4rem;
  position: relative;
  color: var(--ardoise);
}
.pack-body li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.pack-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--grey-mid);
  text-align: center;
}
.pack-footer a { width: 100%; text-align: center; }

/* ── Bloc CTA ────────────────────────────────────────────────── */
.cta-block {
  background: var(--ardoise);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
  position: relative;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
}
.cta-block h2 { margin-bottom: 1rem; }
.cta-block p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Page intérieure ─────────────────────────────────────────── */
.page-hero {
  background: var(--ardoise);
  color: var(--white);
  padding: 60px 0;
  border-bottom: 3px solid var(--teal);
}
.page-hero .container { display: flex; flex-direction: column; gap: 0.5rem; }
.page-hero .breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.page-hero .breadcrumb a { color: var(--teal); }
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.page-hero p { color: rgba(255,255,255,0.7); margin: 0; font-size: 1.05rem; }

/* ── Contenu texte riche ─────────────────────────────────────── */
.content-block { max-width: 780px; }
.content-block h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-mid);
  color: var(--ardoise);
}
.content-block h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.content-block ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.content-block ul li {
  list-style: disc;
  color: var(--grey-text);
  margin-bottom: 0.4rem;
}

/* ── Formulaire contact ──────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 { color: var(--blue); margin-bottom: 1.5rem; }
.contact-info p { color: var(--grey-text); margin-bottom: 1rem; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.contact-detail a { color: var(--ardoise); }
.contact-detail a:hover { color: var(--blue); }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ardoise);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ardoise);
  background: var(--white);
  transition: border-color var(--transition);
}
.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(5, 119, 184, 0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-notice {
  font-size: 0.8rem;
  color: var(--grey-text);
  margin-top: 0.75rem;
}

/* ── Bloc info coloré ────────────────────────────────────────── */
.info-box {
  background: #EEF6FB;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box.accent { border-left-color: var(--teal); }
.info-box p { margin: 0; font-size: 0.95rem; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--ardoise);
  color: rgba(255,255,255,0.7);
  padding-top: 60px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 50px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}
.footer-brand img { height: 44px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }
.footer-social { display: flex; gap: 0.5rem; margin-top: 1rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--teal); color: var(--white); }
.footer-nav h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--teal); }
.footer-contact h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-contact p { font-size: 0.85rem; margin-bottom: 0.5rem; }
.footer-contact a { color: rgba(255,255,255,0.6); }
.footer-contact a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-logo { display: none; }
}
@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ardoise);
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 10px 0; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .header-actions { gap: 0.5rem; }
  .header-main { position: relative; flex-wrap: wrap; height: auto; padding: 12px 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .packs-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}
