/* ============================================
   JCD — Johannes Conseil & Développement
   styles.css — Feuille de styles principale
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Variables ── */
:root {
  --green:      #1A5C2E;
  --green-mid:  #2E7D46;
  --green-pale: #EAF4EE;
  --gold:       #B8962E;
  --white:      #ffffff;
  --dark:       #0D1F14;
  --gray:       #6B7280;
  --border:     #E5E7EB;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--dark); overflow-x: hidden; }

/* ── Navbar ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 6%; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.nav.show { transform: translateY(0); }
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--dark); text-decoration: none; font-size: 13px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--green); }
.nav-cta { background: var(--green); color: var(--white); padding: 9px 22px; border-radius: 7px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background 0.2s; }
.nav-cta:hover { background: var(--green-mid); }

/* ── Hero ── */
.hero { height: 100vh; min-height: 600px; position: relative; overflow: hidden; display: flex; align-items: center; }
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover; background-position: center;
  animation: zoom 9s ease-out forwards;
}
@keyframes zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero-ov {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(13,31,20,0.87) 0%, rgba(26,92,46,0.58) 55%, rgba(13,31,20,0.35) 100%);
}
.hero-c { position: relative; z-index: 2; padding: 0 8%; max-width: 720px; }
.hbadge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(184,150,46,0.18); border: 1px solid rgba(184,150,46,0.42);
  border-radius: 40px; padding: 6px 16px; margin-bottom: 26px;
}
.hdot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hbadge span { font-size: 11px; font-weight: 500; color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase; }
.htitle { font-size: clamp(38px, 5.5vw, 60px); font-weight: 700; color: var(--white); line-height: 1.08; margin-bottom: 12px; }
.htitle em { color: var(--gold); font-style: normal; }
.hsub { font-size: 17px; color: rgba(255,255,255,0.72); font-weight: 300; line-height: 1.7; margin-bottom: 36px; max-width: 500px; }
.hbtns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-g { background: var(--green); color: var(--white); padding: 14px 28px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; display: inline-block; transition: background 0.2s; }
.btn-g:hover { background: var(--green-mid); }
.btn-o { background: transparent; color: var(--white); padding: 14px 28px; border-radius: 8px; font-size: 14px; font-weight: 500; text-decoration: none; border: 1.5px solid var(--gold); display: inline-block; transition: background 0.2s; }
.btn-o:hover { background: rgba(184,150,46,0.14); }
.hstats {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  background: rgba(13,31,20,0.9);
  display: flex; justify-content: space-around; padding: 18px 5%;
  border-top: 1px solid rgba(184,150,46,0.2);
}
.sv { font-size: 28px; font-weight: 700; color: var(--gold); text-align: center; }
.sl { font-size: 10px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; text-align: center; margin-top: 3px; }

/* ── Separators ── */
.sep { overflow: hidden; line-height: 0; display: block; }
.sep svg { display: block; width: 100%; }

/* ── Section base ── */
.sec { padding: 80px 8%; }
.slabel { font-size: 11px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 10px; }
.stitle { font-size: clamp(28px, 3.5vw, 42px); font-weight: 700; color: var(--dark); line-height: 1.15; margin-bottom: 14px; }
.stitle.w { color: var(--white); }
.ssub { font-size: 16px; color: var(--gray); line-height: 1.7; max-width: 560px; }
.ssub.w { color: rgba(255,255,255,0.65); }

/* ── About ── */
.ag { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; margin-top: 48px; }
.aphoto { position: relative; }
.aframe { border-radius: 20px; overflow: hidden; aspect-ratio: 3/4; box-shadow: 0 20px 60px rgba(13,31,20,0.16); }
.aframe img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.aacc { position: absolute; bottom: -18px; right: -18px; width: 110px; height: 110px; background: var(--gold); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(184,150,46,0.32); }
.an { font-size: 30px; font-weight: 800; color: var(--dark); line-height: 1; }
.al { font-size: 10px; font-weight: 600; color: rgba(13,31,20,0.6); text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; }
.asteps { margin: 28px 0; }
.astep { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--green-pale); }
.astep:last-child { border: none; }
.anum { width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.adomain { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 2px; }
.alesson { font-size: 13px; color: var(--gray); line-height: 1.5; }
.aquote { background: var(--green); border-radius: 14px; padding: 26px; margin-top: 24px; }
.qmark { font-size: 56px; color: rgba(184,150,46,0.25); font-family: Georgia, serif; line-height: 0.5; margin-bottom: 10px; display: block; }
.qtxt { font-size: 14px; font-style: italic; color: rgba(255,255,255,0.88); line-height: 1.7; }
.qauth { font-size: 12px; color: var(--gold); margin-top: 14px; font-weight: 500; }

/* ── Backgrounds ── */
.bg-g { background: var(--green); }
.bg-d { background: var(--dark); }

/* ── Piliers ── */
.pg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.pilier { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 28px; transition: background 0.2s; }
.pilier:hover { background: rgba(255,255,255,0.12); }
.picon { width: 72px; height: 72px; border-radius: 12px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; padding: 13px; }
.picon img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.pname { font-size: 17px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.pdesc { font-size: 13px; color: rgba(255,255,255,0.62); line-height: 1.6; }

/* ── Offres ── */
.tabs { display: flex; gap: 10px; margin: 32px 0 28px; }
.tab { padding: 10px 22px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; border: 1.5px solid var(--green); background: transparent; color: var(--green); font-family: 'Inter', sans-serif; transition: all 0.2s; }
.tab.on { background: var(--green); color: var(--white); }
.offres { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.offre { background: var(--white); border: 1px solid rgba(26,92,46,0.1); border-radius: 14px; overflow: hidden; transition: transform 0.2s; }
.offre:hover { transform: translateY(-4px); }
.otop { padding: 22px 20px 16px; }
.obadge { display: inline-block; font-size: 10px; font-weight: 700; color: var(--green); border: 1px solid rgba(26,92,46,0.3); border-radius: 4px; padding: 2px 8px; margin-bottom: 12px; letter-spacing: 0.5px; }
.otitle { font-size: 15px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.odesc { font-size: 13px; color: var(--gray); line-height: 1.5; margin-bottom: 12px; }
.opts { display: flex; flex-direction: column; gap: 5px; }
.opt { font-size: 12px; color: var(--gray); display: flex; gap: 7px; }
.opt::before { content: "→"; color: var(--green); font-weight: 600; flex-shrink: 0; }
.obot { background: var(--green); padding: 13px 20px; }
.oprice { font-size: 15px; font-weight: 700; color: var(--white); }
.ounit { font-size: 10px; color: rgba(255,255,255,0.55); margin-left: 4px; }
.libre-top { background: var(--green-pale); padding: 5px 12px; text-align: center; border-bottom: 2px solid var(--green); }
.libre-top span { font-size: 10px; font-weight: 700; color: var(--green); letter-spacing: 1px; text-transform: uppercase; }

/* ── LIBRE ── */
.li { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-top: 44px; }
.phases { display: flex; flex-direction: column; }
.phase { display: flex; }
.pside { display: flex; flex-direction: column; align-items: center; margin-right: 14px; }
.pdot { width: 36px; height: 36px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--white); flex-shrink: 0; }
.pline { width: 2px; background: rgba(26,92,46,0.35); flex: 1; min-height: 20px; }
.phase:last-child .pline { display: none; }
.pbody { padding: 2px 0 22px; }
.pname { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 3px; }
.pdur { font-size: 11px; color: var(--gold); margin-bottom: 6px; }
.pdesc-items { display: flex; flex-direction: column; gap: 3px; }
.pdesc-item { font-size: 12px; color: rgba(255,255,255,0.52); display: flex; gap: 6px; align-items: center; }
.pdesc-item::before { content: "·"; color: var(--gold); font-size: 14px; flex-shrink: 0; }
.lbox { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 26px; }
.lbtitle { font-size: 17px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.lbsub { font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 20px; }
.lbtargets { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.lbt { display: flex; align-items: center; gap: 9px; font-size: 13px; color: rgba(255,255,255,0.78); }
.lbt::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.lbprice { background: var(--green); border-radius: 10px; padding: 16px; text-align: center; margin-bottom: 18px; }
.lbpv { font-size: 26px; font-weight: 700; color: var(--white); }
.lbpl { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 3px; }
.btng { background: var(--gold); color: var(--dark); padding: 13px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; display: block; text-align: center; border: none; cursor: pointer; width: 100%; font-family: 'Inter', sans-serif; transition: opacity 0.2s; }
.btng:hover { opacity: 0.9; }
.modal-info { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.modal-label { font-size: 12px; font-weight: 600; color: var(--gold); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.modal-item { font-size: 12px; color: rgba(255,255,255,0.65); display: flex; gap: 6px; align-items: center; }
.modal-item span { color: var(--gold); }

/* ── Partenaires ── */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.partner { background: var(--white); border: 1px solid rgba(26,92,46,0.1); border-radius: 12px; padding: 22px; text-align: center; transition: border-color 0.2s; }
.partner:hover { border-color: var(--green); }
.plogo-img { height: 60px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.plogo-img img { max-height: 60px; max-width: 120px; width: auto; object-fit: contain; }
.plogo { width: 54px; height: 54px; border-radius: 12px; background: var(--green-pale); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-size: 14px; font-weight: 700; color: var(--green); }
.pname2 { font-size: 12px; font-weight: 600; color: var(--dark); margin-bottom: 3px; }
.ptype { font-size: 11px; color: var(--gray); }
.psoon { font-size: 10px; color: var(--gold); margin-top: 4px; font-style: italic; }

/* ── Contact ── */
.cg { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; margin-top: 44px; }
.citems { display: flex; flex-direction: column; gap: 18px; }
.citem { display: flex; gap: 14px; align-items: center; }
.cicon { width: 56px; height: 56px; border-radius: 10px; background: rgba(184,150,46,0.22); display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 12px; }
.cicon img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.clabel { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.45); margin-bottom: 3px; }
.cval { font-size: 13px; color: var(--white); font-weight: 500; }
.cform { background: rgba(255,255,255,0.06); border-radius: 14px; padding: 26px; }
.frow { margin-bottom: 14px; }
.frow label { display: block; font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.frow input, .frow select, .frow textarea {
  width: 100%; background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px; padding: 10px 13px; font-size: 13px; color: var(--white);
  outline: none; font-family: 'Inter', sans-serif; transition: border-color 0.2s;
}
.frow input::placeholder, .frow textarea::placeholder { color: rgba(255,255,255,0.3); }
.frow input:focus, .frow textarea:focus { border-color: var(--gold); }
.frow select option { color: var(--dark); background: var(--white); }
.frow textarea { resize: vertical; min-height: 90px; }
.frow2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-success { display: none; background: rgba(39,174,96,0.15); border: 1px solid rgba(39,174,96,0.4); border-radius: 8px; padding: 14px; text-align: center; color: #6EE7B7; font-size: 14px; margin-top: 14px; }
.form-success.show { display: block; }

/* ── Footer ── */
footer { background: var(--white); border-top: 1px solid var(--border); padding: 28px 8%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.fbrand { display: flex; align-items: center; gap: 12px; }
.fbrand img { height: 50px; width: auto; }
.fname { font-size: 13px; font-weight: 600; color: var(--dark); }
.fmeta { font-size: 11px; color: var(--gray); margin-top: 2px; }
.fbadge { font-size: 10px; background: var(--green-pale); color: var(--green); border: 1px solid rgba(26,92,46,0.2); border-radius: 20px; padding: 4px 12px; font-weight: 500; }

/* ── Animations ── */
.fi { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.si { opacity: 0; transform: translateX(-28px); transition: opacity 0.55s ease, transform 0.55s ease; }
.vi { opacity: 1 !important; transform: none !important; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .ag { grid-template-columns: 1fr; gap: 40px; }
  .aphoto { max-width: 320px; margin: 0 auto; }
  .pg { grid-template-columns: 1fr; }
  .li { grid-template-columns: 1fr; }
  .cg { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .frow2 { grid-template-columns: 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sec { padding: 60px 5%; }
  .hstats { flex-wrap: wrap; gap: 10px; }
  .hbtns { flex-direction: column; }
  .btn-g, .btn-o { text-align: center; }
  .partners { grid-template-columns: 1fr 1fr; }
}
