/* ============================================================
   FRACTAL international — Feuille de style 2026
   Design : professionnel, finance/patrimoine, responsive
   ============================================================ */

/* --- Variables ------------------------------------------------ */
:root {
  --clr-primary:    #0f2d55;   /* bleu marine profond */
  --clr-accent:     #1a6fc4;   /* bleu ciel actif     */
  --clr-accent-lt:  #e8f1fb;   /* fond clair accent   */
  --clr-gold:       #c9a84c;   /* or discret          */
  --clr-text:       #1c1c2e;
  --clr-muted:      #5a6070;
  --clr-bg:         #f4f6f9;
  --clr-white:      #ffffff;
  --clr-border:     #dde3ee;
  --radius:         8px;
  --shadow-sm:      0 2px 8px rgba(15,45,85,.08);
  --shadow-md:      0 6px 24px rgba(15,45,85,.14);
  --nav-h:          68px;
  --font-sans:      'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

/* --- Reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { color: var(--clr-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* --- Typographie ---------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--clr-primary);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);   margin-bottom: .6rem; }
h3 { font-size: 1.15rem; margin-bottom: .4rem; }
p  { margin-bottom: .9rem; }

/* --- HEADER / NAVBAR ------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clr-primary);
  box-shadow: var(--shadow-md);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.nav-brand img {
  height: 46px;
  width: auto;
}
.nav-brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-white);
  letter-spacing: .02em;
}
.nav-brand-tagline {
  font-size: .7rem;
  color: var(--clr-gold);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Navigation links */
.nav-links {
  display: flex;
  gap: .25rem;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,.82);
  font-size: .9rem;
  font-weight: 500;
  padding: .45rem .85rem;
  border-radius: var(--radius);
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.13);
  color: var(--clr-white);
  text-decoration: none;
}
.nav-links .btn-nav {
  background: var(--clr-accent);
  color: var(--clr-white) !important;
  padding: .45rem 1rem;
}
.nav-links .btn-nav:hover {
  background: #155db0;
}

/* Hamburger mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: transform .25s;
}

/* --- HERO ----------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #1a4080 60%, #1a6fc4 100%);
  color: var(--clr-white);
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}
.hero h1 {
  color: var(--clr-white);
  margin-bottom: 1rem;
}
.hero .subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- BOUTONS -------------------------------------------------- */
.btn {
  display: inline-block;
  padding: .75rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: all .2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--clr-accent);
  color: var(--clr-white);
}
.btn-primary:hover { background: #155db0; text-decoration: none; color: #fff; }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.5);
  color: var(--clr-white);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  text-decoration: none;
  color: #fff;
}

/* --- LAYOUT GÉNÉRAL ------------------------------------------ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 4.5rem 1.5rem;
}
.section-alt {
  background: var(--clr-white);
}
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title p {
  color: var(--clr-muted);
  max-width: 600px;
  margin: .5rem auto 0;
}
.label-accent {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: .5rem;
}

/* --- CARDS ---------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--clr-accent-lt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  font-size: 1.5rem;
}
.card h3 { margin-bottom: .5rem; }
.card p  { color: var(--clr-muted); font-size: .95rem; margin-bottom: 0; }
.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--clr-accent);
}

/* --- FEATURE ROW (texte + aside) ------------------------------ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}
.feature-row.reverse { grid-template-columns: 340px 1fr; }
.feature-row.reverse .feature-aside { order: -1; }

.feature-aside {
  background: linear-gradient(135deg, var(--clr-accent-lt), #d6e8fa);
  border-left: 4px solid var(--clr-accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-style: italic;
  color: var(--clr-primary);
  font-size: .95rem;
}

/* --- STATS BAND ----------------------------------------------- */
.stats-band {
  background: var(--clr-primary);
  color: var(--clr-white);
  padding: 3.5rem 1.5rem;
}
.stats-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--clr-gold);
  line-height: 1;
}
.stat-label {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  margin-top: .4rem;
}

/* --- SERVICES LIST -------------------------------------------- */
.services-list {
  display: grid;
  gap: 1.25rem;
}
.service-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.25rem;
  align-items: start;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.service-badge {
  background: var(--clr-primary);
  color: var(--clr-white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: .5rem .4rem;
  text-align: center;
  line-height: 1.3;
}

/* --- MODULE TABLE (produits) ---------------------------------- */
.module-list {
  display: grid;
  gap: 1rem;
}
.module-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.25rem;
  border-left: 3px solid var(--clr-accent);
  padding: 1.1rem 1.25rem;
  background: var(--clr-white);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
  align-items: start;
}
.module-label {
  font-weight: 700;
  color: var(--clr-primary);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding-top: .1rem;
}
.module-text { color: var(--clr-text); font-size: .95rem; }

/* --- BREADCRUMB ---------------------------------------------- */
.breadcrumb {
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  padding: .75rem 1.5rem;
  font-size: .85rem;
  color: var(--clr-muted);
}
.breadcrumb a { color: var(--clr-accent); }
.breadcrumb span { margin: 0 .4rem; }

/* --- SUB-NAV (onglets produits) ------------------------------- */
.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--clr-border);
}
.sub-nav a {
  padding: .45rem 1rem;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  color: var(--clr-muted);
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  transition: all .15s;
}
.sub-nav a:hover,
.sub-nav a.active {
  background: var(--clr-accent);
  color: var(--clr-white);
  border-color: var(--clr-accent);
  text-decoration: none;
}

/* --- FORMULAIRE ----------------------------------------------- */
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--clr-primary);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .65rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font-sans);
  background: var(--clr-white);
  color: var(--clr-text);
  transition: border-color .18s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(26,111,196,.15);
}
.form-box {
  max-width: 460px;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: calc(var(--radius)*2);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

/* --- CONTACT CARD -------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-info h3 { margin-bottom: 1rem; }
.contact-detail {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: .95rem;
  color: var(--clr-muted);
}
.contact-detail strong { color: var(--clr-text); }
.contact-icon {
  font-size: 1.2rem;
  margin-top: .1rem;
  flex-shrink: 0;
}

/* --- FOOTER --------------------------------------------------- */
.site-footer {
  background: var(--clr-primary);
  color: rgba(255,255,255,.7);
  padding: 3rem 1.5rem 2rem;
  margin-top: 0;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand p { font-size: .88rem; margin-top: .75rem; line-height: 1.6; }
.footer-brand img {
  height: 40px;
  width: auto;
  opacity: .9;
}
.footer-col h4 {
  color: var(--clr-white);
  font-size: .85rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.footer-col ul { display: grid; gap: .4rem; }
.footer-col li a {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  transition: color .15s;
}
.footer-col li a:hover { color: var(--clr-white); text-decoration: none; }
.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: #fff; text-decoration: none; }

/* --- PAGE HEADER (intérieur) ---------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #1a4080 100%);
  color: var(--clr-white);
  padding: 3.5rem 1.5rem 3rem;
}
.page-hero h1 { color: var(--clr-white); margin-bottom: .5rem; }
.page-hero p  { color: rgba(255,255,255,.78); max-width: 640px; }

/* --- CLIENTS LOGIN -------------------------------------------- */
.login-wrapper {
  max-width: 440px;
  margin: 4rem auto;
  padding: 0 1rem;
}
.login-box {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: calc(var(--radius)*2);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
}
.login-box h2 { margin-bottom: 1.5rem; text-align: center; }

/* --- Responsive ----------------------------------------------- */
@media (max-width: 900px) {
  .feature-row,
  .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-aside { order: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .module-item { grid-template-columns: 1fr; }
  .module-label { border-left: none; padding-left: 0; }
}
@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--clr-primary); padding: 1rem; gap: .25rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 3rem 1rem; }
  .hero { padding: 4rem 1rem 3.5rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .service-item { grid-template-columns: 1fr; }
}

/* --- Utilitaires ---------------------------------------------- */
.text-center { text-align: center; }
.text-muted  { color: var(--clr-muted); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0 !important; }

/* ============================================================
   THEMES COULEUR PAR MODULE
   ============================================================ */

/* --- P@TAUDIT — Vert ----------------------------------------- */
.theme-green .page-hero {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 60%, #43a047 100%);
}
.theme-green .label-accent { color: #2e7d32; }
.theme-green .module-item  { border-left-color: #2e7d32; }
.theme-green .card-icon    { background: #e8f5e9; }
.theme-green .feature-aside {
  border-left-color: #2e7d32;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  color: #1b5e20;
}
.theme-green .sub-nav a.active,
.theme-green .sub-nav a:hover {
  background: #2e7d32; border-color: #2e7d32; color: #fff; text-decoration: none;
}
.theme-green .btn-primary        { background: #2e7d32; }
.theme-green .btn-primary:hover  { background: #1b5e20; color: #fff; text-decoration: none; }
.theme-green .stats-band         { background: #1b5e20; }
.theme-green .module-item:hover  { border-left-color: #43a047; }

/* Badge vert */
.badge-green {
  display: inline-block; padding: .3rem .9rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: #e8f5e9; color: #2e7d32; margin-bottom: .75rem;
}

/* --- REL@TIEL — Jaune/Ambre ---------------------------------- */
.theme-yellow .page-hero {
  background: linear-gradient(135deg, #7c4a00 0%, #e65100 50%, #f57c00 100%);
}
.theme-yellow .label-accent { color: #b45309; }
.theme-yellow .module-item  { border-left-color: #f59e0b; }
.theme-yellow .card-icon    { background: #fffde7; }
.theme-yellow .feature-aside {
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, #fffde7, #fff9c4);
  color: #7c4a00;
}
.theme-yellow .sub-nav a.active,
.theme-yellow .sub-nav a:hover {
  background: #f59e0b; border-color: #f59e0b; color: #1c1c2e; text-decoration: none;
}
.theme-yellow .btn-primary        { background: #f59e0b; color: #1c1c2e; }
.theme-yellow .btn-primary:hover  { background: #d97706; color: #1c1c2e; text-decoration: none; }
.theme-yellow .stats-band         { background: #7c4a00; }
.theme-yellow .module-item:hover  { border-left-color: #fbbf24; }

/* Badge jaune */
.badge-yellow {
  display: inline-block; padding: .3rem .9rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: #fffde7; color: #b45309; margin-bottom: .75rem;
}

/* Badge bleu (P@TINVEST) */
.badge-blue {
  display: inline-block; padding: .3rem .9rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--clr-accent-lt); color: var(--clr-accent); margin-bottom: .75rem;
}

/* --- BLOC P@TIMPORT ------------------------------------------ */
.import-box {
  background: var(--clr-primary);
  color: var(--clr-white);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
}
.import-box h3 { color: var(--clr-gold); margin-bottom: 1rem; font-size: 1.3rem; }
.import-box p  { color: rgba(255,255,255,.85); margin-bottom: .6rem; font-size: .95rem; }
.import-box ul {
  list-style: disc; padding-left: 1.4rem;
  color: rgba(255,255,255,.75);
  display: grid; gap: .4rem; margin-top: .5rem;
}
.import-stats-row {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem;
}
.import-stat {
  display: flex; align-items: center; gap: .75rem;
  background: rgba(255,255,255,.09);
  border-radius: var(--radius);
  padding: .8rem 1.1rem;
  flex: 1; min-width: 160px;
}
.import-stat .num { font-size: 2rem; font-weight: 800; color: var(--clr-gold); line-height: 1; }
.import-stat .lbl { font-size: .85rem; color: rgba(255,255,255,.72); }
