/* Page d'accueil : hero, bannière guide, grille des modules, contact, encart CCI. */

.home { max-width: 1120px; margin: 0 auto; padding: clamp(16px, 3vw, 34px) clamp(14px, 3.2vw, 40px) 96px; }

.home-hero {
  display: flex; align-items: center; gap: 18px; padding: clamp(18px, 2.4vw, 26px) clamp(20px, 2.6vw, 30px);
  border-radius: var(--r-lg); margin-bottom: 30px; color: #fdf7f0;
  background: var(--hero-grad); box-shadow: var(--shadow);
}
.home-hero .hero-logo { font-size: clamp(34px, 4vw, 44px); line-height: 1; flex: none; }
.home-hero .hero-text { min-width: 0; }
.home-hero h1 { font-family: var(--serif); font-size: clamp(24px, 3.2vw, 34px); margin: 0 0 4px; letter-spacing: -.01em; font-weight: 600; }
.home-hero p { font-size: clamp(13.5px, 1.4vw, 15.5px); color: rgba(255, 255, 255, .85); margin: 0; line-height: 1.5; }

.guide-banner {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; cursor: pointer; position: relative;
  overflow: hidden; margin-top: -6px; padding: 18px 22px; border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--card); box-shadow: var(--shadow-sm); color: var(--text); font: inherit;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.guide-banner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--hero-grad); }
.guide-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.guide-banner .gb-emoji { font-size: 30px; line-height: 1; flex: none; margin-left: 4px; }
.guide-banner .gb-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.guide-banner .gb-title { font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.guide-banner .gb-sub { font-size: 13px; color: var(--text-dim); margin-top: 3px; }
.guide-banner .gb-arrow { flex: none; font-size: 16px; color: var(--accent); transition: transform .2s var(--ease); }
.guide-banner:hover .gb-arrow { transform: translateX(4px); }

.home-section-title {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .11em; color: var(--text-dim); font-weight: 700;
  margin: 40px 0 16px; display: flex; align-items: center; gap: 12px;
}
.home-section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.module-card {
  position: relative; overflow: hidden; border-radius: var(--r-lg); cursor: pointer; border: 1px solid var(--border);
  padding: 0; text-align: left; color: #fff; min-height: 210px; background: var(--panel-2); box-shadow: var(--shadow-sm);
  font-family: inherit; display: block; transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.module-card:disabled { cursor: default; }
.module-card:disabled:hover { transform: none; box-shadow: var(--shadow-sm); }
.module-card .mc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.module-card:hover .mc-img { transform: scale(1.05); }
.module-card .mc-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 18, 15, .15) 0%, rgba(20, 18, 15, .48) 54%, rgba(20, 18, 15, .86) 100%); }
.module-card .mc-body { position: relative; padding: 20px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; min-height: 210px; }
.module-card .mc-emoji { font-size: 32px; line-height: 1; margin-bottom: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4)); }
.module-card .mc-title { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
.module-card .mc-meta { font-size: 12.5px; color: rgba(255, 255, 255, .88); margin-top: 7px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.module-card .mc-arrow {
  position: absolute; top: 16px; right: 16px; font-size: 15px; width: 32px; height: 32px; display: flex;
  align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .3); transition: transform .2s var(--ease);
}
.module-card:hover .mc-arrow { transform: translateX(3px); }
.mc-badge-soon { display: inline-block; background: rgba(255, 255, 255, .24); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }

.home-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: stretch; }
.home-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 28px 28px; box-shadow: var(--shadow-sm); }
.home-panel h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; font-weight: 700; }
.home-panel .panel-sub { color: var(--text-dim); font-size: 14px; margin: 0 0 18px; }
.panel-divider { height: 1px; background: var(--hairline); margin: 22px 0; }
.author-row { display: flex; align-items: center; gap: 15px; }
.author-avatar {
  flex: none; width: 58px; height: 58px; border-radius: 18px; overflow: hidden; background: var(--panel-2);
  color: var(--text-dim); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--border);
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author-name { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.author-role { color: var(--text-dim); font-size: 13.5px; line-height: 1.45; }

.contact-form { display: flex; flex-direction: column; gap: 11px; }
.contact-form label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; font-size: 14.5px;
  font-family: inherit; background: var(--panel-2); color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.contact-form textarea { min-height: 112px; }
.contact-form button { margin-top: 4px; }
.contact-note { font-size: 12px; color: var(--text-dim); margin: 8px 0 0; }

.cci-box { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--card); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.cci-logo-bar { background: linear-gradient(135deg, #3f3ce8, #2b28c9); padding: 26px 22px; display: flex; align-items: center; justify-content: center; }
.cci-logo-bar svg { height: 44px; width: auto; max-width: 100%; }
.cci-box .cci-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.cci-map { flex: 1 1 auto; min-height: 170px; width: 100%; border: 1px solid var(--border); border-radius: var(--r-sm); margin-top: 16px; display: block; }
:root[data-theme="dark"] .cci-map { filter: brightness(.85) contrast(1.05); }
.cci-box .cci-tag {
  display: inline-block; align-self: flex-start; background: var(--accent-soft); color: var(--accent); font-size: 11.5px;
  font-weight: 700; padding: 3px 11px; border-radius: 20px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 11px;
}
.cci-box h3 { margin: 0 0 6px; font-size: 17.5px; font-weight: 700; }
.cci-box p { margin: 0; font-size: 14px; color: var(--text-dim); line-height: 1.55; }
.cci-box .cci-link { margin-top: 16px; align-self: flex-start; color: var(--accent); text-decoration: none; font-weight: 600; }
.cci-box .cci-link:hover { text-decoration: underline; }
.cci-box .cci-addr { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.home-footer { text-align: center; color: var(--text-faint); font-size: 12.5px; margin-top: 42px; }
