/* ==========================================================================
   IMS Victoire — pages praticiens (Test/equipe/dr-*.html)
   À charger après commun.css. Une seule feuille pour les 13 pages.
   Agencement : bandeau (portrait + nom) · présentation avec photo
   · expérience avec portrait · partenaires · questions fréquentes.
   ========================================================================== */

/* ── Bandeau d'en-tête ── */
.doc-hero{position:relative;display:flex;align-items:flex-end;gap:clamp(20px,4vw,56px);min-height:clamp(300px,38vh,400px);padding:var(--nav-h) var(--pad) 0 0;overflow:hidden;
  background:radial-gradient(ellipse 80% 120% at 70% 0%,rgba(42,42,58,.9),transparent 70%),linear-gradient(180deg,var(--night),var(--ink));}
.doc-hero::after{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(to right,transparent,rgba(184,169,138,.4),transparent);}
.doc-hero-photo{position:relative;flex:none;align-self:flex-end;width:clamp(130px,17vw,240px);height:clamp(200px,28vh,300px);}
.doc-hero-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:bottom left;}
.doc-hero-body{align-self:center;padding:clamp(24px,4vh,40px) 0;}
.doc-hero h1{font-family:var(--serif);font-size:clamp(2.4rem,5.4vw,5rem);font-weight:300;line-height:.95;letter-spacing:-.02em;}
.doc-hero h1 b{font-weight:600}
.doc-hero-role{margin-top:.35em;font-family:var(--serif);font-style:italic;font-size:clamp(1.3rem,2.4vw,2rem);font-weight:300;color:var(--gold);}
.doc-tags{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin-top:clamp(14px,2vh,20px);}
.doc-tags li{font-size:.68rem;letter-spacing:.06em;padding:.3rem .7rem;border:1px solid rgba(184,169,138,.3);border-radius:2px;color:rgba(240,237,230,.7);}

.crumbs{display:flex;flex-wrap:wrap;gap:.45rem;list-style:none;margin-bottom:clamp(10px,1.6vh,16px);font-size:.66rem;font-weight:300;letter-spacing:.08em;color:rgba(240,237,230,.35);}
.crumbs li+li::before{content:'›';margin-right:.45rem;color:rgba(184,169,138,.45);}
.crumbs a{transition:color .3s}
.crumbs a:hover{color:var(--gold)}
.crumbs [aria-current]{color:rgba(240,237,230,.5)}

/* Sans portrait détouré : le nom reprend la marge normale */
.doc-hero:not(:has(.doc-hero-photo)){padding-left:var(--pad);}
@media(max-width:600px){.doc-hero:not(:has(.doc-hero-photo)) .doc-hero-body{padding-left:0}}

/* ── Titres de section ── */
.doc-title{font-family:var(--serif);font-size:clamp(2rem,4vw,3.4rem);font-weight:300;line-height:1.05;margin-bottom:clamp(24px,4vh,40px);}
.doc-title em{display:block;font-style:italic;color:rgba(5,5,8,.45)}
.doc-dark .doc-title em{color:rgba(240,237,230,.45)}

/* ── Présentation : texte + photo à droite, puis texte pleine largeur ── */
.doc-about{background:var(--ivory);color:var(--ink);padding:clamp(70px,10vh,120px) var(--pad);}
.doc-about-inner{max-width:1200px;}
.doc-about-inner::after{content:'';display:block;clear:both;}
.doc-about-photo{float:right;width:min(46%,560px);margin:0 0 clamp(20px,3vh,32px) clamp(28px,4vw,56px);border-radius:2px;overflow:hidden;background:rgba(5,5,8,.06);}
.doc-about-photo img{display:block;width:100%;height:auto;}
.doc-about p{font-size:.92rem;font-weight:300;line-height:1.85;color:rgba(5,5,8,.72);margin-bottom:1.1rem;}
.doc-about p.lead{font-family:var(--serif);font-size:clamp(1.25rem,1.9vw,1.55rem);line-height:1.45;color:var(--ink);}
.doc-about em{color:rgba(5,5,8,.55)}
.doc-about-inner>ul:not(.doc-keys):not(.legal-list){list-style:none;margin:-.4rem 0 1.1rem;display:flex;flex-direction:column;gap:.35rem;}
.doc-about-inner>ul:not(.doc-keys):not(.legal-list) li{display:flex;gap:12px;align-items:baseline;font-size:.92rem;font-weight:300;line-height:1.7;color:rgba(5,5,8,.72);}
.doc-about-inner>ul:not(.doc-keys):not(.legal-list) li::before{content:'';flex:none;width:5px;height:5px;border-radius:50%;background:var(--gold);transform:translateY(-2px);}

/* Repères clés en tête de présentation (titres, fonctions) */
.doc-keys{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:clamp(12px,2vw,24px);margin-bottom:clamp(32px,5vh,48px);}
.doc-keys li{padding-top:14px;border-top:2px solid var(--gold);display:flex;flex-direction:column;gap:.3rem;}
.doc-keys strong{font-family:var(--serif);font-size:clamp(1.2rem,1.8vw,1.5rem);font-weight:600;line-height:1.15;color:var(--ink);}
.doc-keys span{font-size:.8rem;font-weight:300;line-height:1.5;color:rgba(5,5,8,.6);}
.doc-about a{color:#8f7f5f;border-bottom:1px solid rgba(143,127,95,.4);transition:border-color .3s}
.doc-about a:hover{border-color:#8f7f5f}

/* Encadré « En bref » sous la présentation */
.doc-bref{clear:both;margin-top:clamp(36px,6vh,56px);padding-top:clamp(28px,4vh,40px);border-top:1px solid rgba(5,5,8,.1);}
.doc-bref-title{font-family:var(--serif);font-size:clamp(1.4rem,2.2vw,1.8rem);font-weight:400;margin-bottom:clamp(18px,3vh,28px);}
.doc-bref-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(24px,4vw,56px);}
.aside-block h4{font-size:.72rem;font-weight:500;letter-spacing:.1em;color:rgba(5,5,8,.45);margin-bottom:.8rem;}
.aside-block ul{list-style:none;display:flex;flex-direction:column;}
.aside-block li{display:flex;gap:12px;align-items:baseline;font-size:.84rem;font-weight:300;line-height:1.5;color:rgba(5,5,8,.75);padding:.6rem 0;border-bottom:1px solid rgba(5,5,8,.08);}
.aside-block li::before{content:'';flex:none;width:5px;height:5px;border-radius:50%;background:var(--gold);transform:translateY(-2px);}

/* ── Expérience : liste à gauche, portrait à droite ── */
.doc-exp{position:relative;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:clamp(24px,4vw,64px);padding:clamp(70px,10vh,120px) 0 0 var(--pad);overflow:hidden;
  background:linear-gradient(120deg,var(--mid) 0%,#18181f 55%,var(--ink) 100%);}
.doc-exp-list{list-style:none;padding-bottom:clamp(70px,10vh,120px);}
.doc-exp-list li{display:flex;gap:14px;align-items:baseline;padding:.8rem 0;border-bottom:1px solid rgba(240,237,230,.07);font-size:.9rem;font-weight:300;line-height:1.5;color:rgba(240,237,230,.85);}
.doc-exp-list li::before{content:'';flex:none;width:5px;height:5px;border-radius:50%;background:var(--gold);transform:translateY(-2px);}
.doc-exp-list em{font-style:italic;color:var(--gold);margin-left:.3em;}
.doc-exp-photo{position:relative;align-self:end;min-height:clamp(320px,50vh,560px);}
/* Sans portrait : la liste occupe toute la largeur */
.doc-exp:not(:has(.doc-exp-photo)){grid-template-columns:1fr;padding-right:var(--pad);}
.doc-exp-photo img{position:absolute;right:0;bottom:0;width:100%;height:100%;object-fit:contain;object-position:bottom right;}

/* ── Partenaires : logos en grille, sans cadre ── */
.doc-partners{background:#fff;color:var(--ink);padding:clamp(70px,10vh,120px) var(--pad);}
.partners-plain{display:grid;grid-template-columns:repeat(6,1fr);gap:clamp(16px,2.4vw,36px) clamp(12px,2vw,28px);max-width:1200px;}
.partners-plain .partner-tile{border:none;background:transparent;aspect-ratio:4/3;padding:0;}
.partners-plain .partner-logo{width:100%;height:100%;opacity:.85;transition:opacity .3s,transform .3s var(--ease-out);}
.partners-plain .partner-tile:hover .partner-logo{opacity:1;transform:scale(1.06);}

/* ── Questions fréquentes : toutes visibles ── */
.doc-faq{padding:clamp(70px,10vh,120px) var(--pad);background:linear-gradient(180deg,var(--night),var(--ink));}
.doc-faq-list{max-width:1200px;display:flex;flex-direction:column;}
.doc-faq-item{padding:clamp(22px,3vh,32px) 0;border-top:1px solid rgba(240,237,230,.08);}
.doc-faq-item h3{font-family:var(--serif);font-size:clamp(1.2rem,1.9vw,1.5rem);font-weight:400;line-height:1.3;color:var(--ivory);margin-bottom:.8rem;}
.doc-faq-item p{font-size:.9rem;font-weight:300;line-height:1.8;color:rgba(240,237,230,.68);max-width:80ch;}
.doc-faq-item p+p{margin-top:.6rem}
.doc-faq-item strong{font-weight:500;color:var(--ivory)}
.doc-faq-item a{color:var(--gold);border-bottom:1px solid rgba(184,169,138,.35)}

/* ── Liens de retour vers l'équipe ── */
.doc-back{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;padding:clamp(28px,4vh,40px) var(--pad);background:var(--ink);border-top:1px solid rgba(240,237,230,.06);}
.doc-back a{display:inline-flex;align-items:center;gap:12px;font-size:.78rem;letter-spacing:.08em;color:rgba(240,237,230,.7);transition:color .3s,gap .3s var(--ease-out);}
.doc-back a:hover{color:var(--gold);gap:16px}

/* ── Responsive ── */
@media(max-width:900px){
  .doc-exp{grid-template-columns:1fr;padding-right:var(--pad)}
  .doc-exp-list{padding-bottom:0}
  .doc-exp-photo{min-height:clamp(280px,60vw,440px);margin-right:calc(-1 * var(--pad))}
  .partners-plain{grid-template-columns:repeat(4,1fr)}
  .doc-bref-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
  /* Bandeau : le texte garde sa marge, la photo est collée au bord gauche comme sur ordinateur */
  .doc-hero{flex-direction:column;align-items:flex-start;gap:0;padding:calc(var(--nav-h) + 24px) 0 0;}
  .doc-hero-body{order:-1;align-self:stretch;padding:0 var(--pad) 12px}
  .doc-hero-photo{width:150px;height:190px;align-self:flex-start;margin-left:0}
  .doc-hero-photo img{object-position:bottom left}
  .doc-about-photo{float:none;width:100%;margin:0 0 24px}
  .partners-plain{grid-template-columns:repeat(3,1fr)}
  .doc-bref-grid{grid-template-columns:1fr}
}
