/*
 * Design system partagé OIF — équivalent du bloc de styles générique ".m3" des
 * maquettes (nav, hero, cartes ".pcard", bandeau ".proof", newsletter, footer).
 * Chargé sur TOUTES les pages. Les styles propres à une page (home.css,
 * about.css, ...) se chargent en plus de celui-ci, jamais à sa place.
 */

:root{
  --bg:#FFFDF9;
  --paper:#F5EFE2;
  --cream:#EDE2C8;
  --ink:#2C1E0F;
  --ink-2:#4a3a25;
  --sage:#7D9B76;
  --sage-d:#5C7A55;
  --terracotta:#C17A5A;
  --terracotta-d:#A26142;
}

.oif-site,.oif-site *,.oif-site *::before,.oif-site *::after{box-sizing:border-box}

.oif-site{
  background:var(--bg);color:var(--ink);
  font-family:'Source Serif 4',Georgia,serif;
  position:relative;
  margin:0;
}
.oif-site::before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:0;
  background-image:
    radial-gradient(circle at 20% 30%,rgba(193,122,90,.04) 0,transparent 40%),
    radial-gradient(circle at 80% 70%,rgba(125,155,118,.05) 0,transparent 40%);
}
.oif-site > *{position:relative;z-index:1}

/* ───── Nav ───── */
.oif-site .nav{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
  padding:24px 48px;
}
.oif-site .nav .logo{
  display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);
}
.oif-site .nav .logo b{font-family:'Fraunces',serif;font-weight:600;font-size:20px;letter-spacing:-.01em}
.oif-site .nav .logo .sub{font-family:'Caveat',cursive;font-size:14px;color:var(--terracotta);display:block;line-height:.9;margin-top:2px}
.oif-site .nav ul{list-style:none;display:flex;gap:32px;margin:0;padding:0;font-family:Inter,sans-serif;font-size:14px}
.oif-site .nav ul a{color:var(--ink);text-decoration:none;position:relative;padding:4px 2px}
.oif-site .nav ul a:hover{color:var(--terracotta)}
.oif-site .nav ul a:hover::after{content:"";position:absolute;left:-4px;right:-4px;bottom:-2px;height:6px;background:rgba(193,122,90,.25);border-radius:3px;z-index:-1}
.oif-site .nav .nl{
  font-family:Inter,sans-serif;font-size:13px;font-weight:500;
  background:var(--ink);color:var(--bg);text-decoration:none;
  padding:10px 18px;border-radius:999px;display:inline-flex;align-items:center;gap:8px;
  transition:.2s;
}
.oif-site .nav .nl:hover{background:var(--terracotta)}
.oif-site .nav-burger{display:none}
.oif-site .nav-toggle{position:absolute;opacity:0;pointer-events:none}

/* ───── Hero (générique — accueil et à propos en héritent) ───── */
.oif-site .hero{
  padding:48px 48px 64px;
  display:grid;grid-template-columns:1.2fr .85fr;gap:56px;align-items:center;
  position:relative;
}
.oif-site .hero .salut{
  font-family:'Caveat',cursive;font-size:30px;color:var(--terracotta);
  transform:rotate(-2deg);display:inline-block;margin-bottom:16px;
}
.oif-site .hero .salut::before{content:"✿ ";opacity:.6}
.oif-site .hero h1{
  font-family:'Fraunces',serif;font-weight:500;
  font-size:64px;line-height:.98;letter-spacing:-.02em;
  margin:0 0 28px;color:var(--ink);
}
.oif-site .hero h1 .underline{
  background-image:linear-gradient(transparent 70%,rgba(125,155,118,.55) 70%);
  background-repeat:no-repeat;padding:0 6px;
}
.oif-site .hero h1 em{font-family:'Fraunces',serif;font-style:italic;font-weight:400;color:var(--terracotta)}
.oif-site .hero p{font-size:18px;line-height:1.65;color:var(--ink-2);max-width:520px;margin:0 0 32px}
.oif-site .hero .ctas{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.oif-site .hero .ctas a{
  font-family:Inter,sans-serif;font-size:14px;font-weight:500;text-decoration:none;
  padding:14px 22px;border-radius:999px;transition:.2s;
}
.oif-site .hero .ctas .primary{background:var(--ink);color:var(--bg)}
.oif-site .hero .ctas .primary:hover{background:var(--terracotta)}
.oif-site .hero .ctas .ghost{color:var(--ink);border:1.5px solid var(--ink)}
.oif-site .hero .ctas .ghost:hover{background:var(--ink);color:var(--bg)}
.oif-site .hero .annot{
  font-family:'Caveat',cursive;font-size:20px;color:var(--ink-2);
  display:flex;align-items:center;gap:8px;margin-left:8px;
}

.oif-site .hero .portrait{position:relative}
.oif-site .hero .portrait .frame-img{
  aspect-ratio:4/5;width:100%;
  border:1px solid var(--ink);border-radius:8px;
  box-shadow:8px 10px 0 var(--cream);
  transform:rotate(2deg);
  position:relative;overflow:hidden;
}
.oif-site .hero .portrait .photo-placeholder{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  text-align:center;padding:24px;background:var(--paper);color:var(--ink-2);
  font-family:'Caveat',cursive;font-size:20px;
}
.oif-site .hero .portrait .frame-img img{width:100%;height:100%;object-fit:cover;display:block}
.oif-site .hero .portrait .tape{
  position:absolute;width:80px;height:22px;background:rgba(125,155,118,.4);
  border:1px solid rgba(92,122,85,.3);
  top:-8px;left:30%;transform:rotate(-6deg);
}

/* ───── Cartes à ombre décalée (".pcard") — piliers accueil, étapes à propos... ───── */
.oif-site .pcard{
  background:var(--bg);border:1px solid var(--ink);border-radius:14px;
  padding:24px;position:relative;transition:.25s;
  box-shadow:4px 4px 0 var(--ink);
  text-decoration:none;color:inherit;display:block;
}
.oif-site .pcard:hover{transform:translate(-2px,-2px);box-shadow:6px 6px 0 var(--ink)}
.oif-site .pcard:nth-child(1){background:#F5EFE2}
.oif-site .pcard:nth-child(2){background:#E5EDE3}
.oif-site .pcard:nth-child(3){background:#F2E0D5}
.oif-site .pcard:nth-child(4){background:#EDE2C8}
.oif-site .pcard .num{
  position:absolute;top:-14px;right:18px;
  width:36px;height:36px;border-radius:50%;background:var(--ink);color:var(--bg);
  display:grid;place-items:center;font-family:'Fraunces',serif;font-weight:700;font-size:18px;
}
.oif-site .pcard h3{
  font-family:'Fraunces',serif;font-weight:500;font-size:22px;line-height:1.2;
  margin:0 0 12px;letter-spacing:-.01em;color:var(--ink);
}
.oif-site .pcard p{font-size:14px;line-height:1.55;color:var(--ink-2);margin:0 0 18px}

/* ───── Proof (bandeau sombre chiffres) ───── */
.oif-site .proof{
  margin:0 48px;padding:48px 40px;
  background:var(--ink);color:var(--bg);border-radius:24px;
  display:grid;gap:48px;align-items:center;
  position:relative;overflow:hidden;
}
.oif-site .proof::after{
  content:"";position:absolute;top:-30px;right:-30px;width:160px;height:160px;
  border-radius:50%;background:var(--terracotta);opacity:.3;
}
.oif-site .proof h3{
  font-family:'Fraunces',serif;font-weight:500;font-size:32px;
  letter-spacing:-.02em;margin:0;line-height:1.1;position:relative;z-index:1;
  color:var(--bg);
}
.oif-site .proof h3 em{font-family:'Caveat',cursive;font-style:normal;color:#F4C5A6;font-weight:700;font-size:38px}
.oif-site .proof .stat{position:relative;z-index:1}
.oif-site .proof .stat .big{
  font-family:'Fraunces',serif;font-weight:500;font-size:64px;line-height:1;
  letter-spacing:-.03em;color:#F4C5A6;
}
.oif-site .proof .stat .lbl{font-size:14px;color:#cdb89c;margin-top:8px;line-height:1.4;max-width:240px}
.oif-site .proof .stat:nth-child(3) .big{color:#B8CFB1}

/* ───── Newsletter ───── */
.oif-site .news{
  margin:32px 48px 56px;padding:48px;
  background:var(--paper);border:1.5px dashed var(--ink);border-radius:24px;
  display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;
  position:relative;
}
.oif-site .news .stamp{
  position:absolute;top:-22px;left:48px;
  background:var(--terracotta);color:#fff;
  font-family:'Caveat',cursive;font-size:20px;font-weight:700;
  padding:6px 18px;border-radius:999px;transform:rotate(-3deg);
  box-shadow:2px 2px 0 var(--ink);
}
.oif-site .news h3{font-family:'Fraunces',serif;font-weight:500;font-size:38px;line-height:1.1;letter-spacing:-.02em;margin:0 0 14px;color:var(--ink)}
.oif-site .news h3 em{font-family:'Caveat',cursive;font-style:normal;color:var(--terracotta);font-weight:700;font-size:44px}
.oif-site .news p{font-size:15px;line-height:1.6;color:var(--ink-2);margin:0;max-width:440px}
.oif-site .news form{display:flex;flex-direction:column;gap:12px}
.oif-site .news .field{
  background:var(--bg);border:1.5px solid var(--ink);border-radius:14px;
  padding:6px;display:flex;
}
.oif-site .news input{flex:1;background:transparent;border:0;outline:0;padding:14px 16px;font:inherit;font-size:15px;color:var(--ink)}
.oif-site .news button{
  background:var(--ink);color:var(--bg);border:0;border-radius:10px;
  padding:0 22px;font-family:Inter,sans-serif;font-weight:600;font-size:13px;cursor:pointer;
  transition:.2s;
}
.oif-site .news button:hover{background:var(--terracotta)}
.oif-site .news .small{font-family:'Caveat',cursive;font-size:18px;color:var(--terracotta);transform:rotate(-1deg);align-self:flex-start;margin-left:8px}

/* ───── Footer ───── */
.oif-site .ft{padding:48px;border-top:1.5px dashed var(--ink-2);font-family:Inter,sans-serif;font-size:14px;color:var(--ink-2)}
.oif-site .ft .cols{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:48px;margin-bottom:36px}
.oif-site .ft .brand{font-family:'Fraunces',serif;font-weight:600;font-size:24px;color:var(--ink);margin-bottom:8px}
.oif-site .ft .brand em{font-family:'Caveat',cursive;color:var(--terracotta);font-style:normal;font-size:22px}
.oif-site .ft .blurb{font-size:13px;line-height:1.6;max-width:280px}
.oif-site .ft h5{font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--ink);margin:0 0 14px}
.oif-site .ft ul{list-style:none;margin:0;padding:0;font-size:13px;line-height:2}
.oif-site .ft a{color:var(--ink-2);text-decoration:none}
.oif-site .ft a:hover{color:var(--terracotta)}
.oif-site .ft .legal{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;font-size:12px;padding-top:24px;border-top:1px solid #d8c8aa}

/* ───── Responsive (nav, hero, cartes, proof, newsletter, footer) ───── */
@media (max-width:1000px){
  .oif-site .nav{padding:20px 24px}
  .oif-site .nav-burger{
    display:inline-flex;align-items:center;justify-content:center;
    width:40px;height:40px;border:1.5px solid var(--ink);border-radius:10px;
    font-size:20px;cursor:pointer;order:2;background:var(--bg);
  }
  .oif-site .nav .nl{order:3}
  .oif-site .nav ul{
    display:none;order:4;width:100%;
    flex-direction:column;gap:4px;
    background:var(--bg);border:1px solid var(--ink);border-radius:14px;
    padding:12px;margin-top:16px;
  }
  .oif-site .nav-toggle:checked ~ ul{display:flex}
  .oif-site .nav ul a{padding:10px 12px;display:block}

  .oif-site .hero{grid-template-columns:1fr;padding:32px 24px 40px;gap:32px}
  .oif-site .hero .portrait{order:-1;max-width:340px;margin:0 auto}
  .oif-site .hero h1{font-size:44px}

  .oif-site .proof{margin:0 24px;gap:28px;text-align:left}
  .oif-site .news{margin:24px;padding:32px;grid-template-columns:1fr;gap:24px}
  .oif-site .ft{padding:32px 24px}
  .oif-site .ft .cols{grid-template-columns:1fr 1fr;gap:28px}
}
@media (max-width:640px){
  .oif-site .hero h1{font-size:34px}
  .oif-site .ft .cols{grid-template-columns:1fr}
}
