:root{
--navy:#0d3a5c;--navy2:#07314e;--blue:#1689cf;--gold:#d2a32b;--green:#89bf22;
--ink:#17364d;--muted:#667b8b;--soft:#f5f9fc;--line:#dbe7ee;--white:#fff
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,Arial,sans-serif;color:var(--ink);background:#fff;line-height:1.45}
.shell{width:min(1400px,calc(100% - 48px));margin:auto}
.public-header{background:#fff;border-bottom:1px solid #e6eef3;position:relative;z-index:10}
.public-header .shell{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:32px}
.public-header .brand img{width:205px;display:block}
.public-header nav{display:flex;align-items:center;gap:31px}
.public-header nav a{text-decoration:none;color:var(--navy);font-size:.92rem;font-weight:800;white-space:nowrap}
.public-header nav a[aria-current="page"]{color:var(--blue);position:relative}
.public-header nav a[aria-current="page"]:after{content:"";position:absolute;left:0;right:0;bottom:-12px;height:3px;background:var(--blue);border-radius:3px}
.public-header .header-estimate{background:linear-gradient(135deg,#167bb3,#0d3a5c);color:#fff!important;padding:14px 22px;border-radius:11px;box-shadow:0 10px 24px rgba(13,58,92,.14)}

.directory-hero{background:radial-gradient(circle at 84% 22%,#dff1fb 0,transparent 31%),linear-gradient(120deg,#f9fcfe 0,#fff 58%,#edf8fd 100%);border-bottom:1px solid #edf3f6}
.hero-layout{min-height:330px;display:grid;grid-template-columns:1fr 330px;align-items:center;gap:60px;padding-top:50px;padding-bottom:42px}
.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:.73rem;font-weight:900;color:var(--blue)}
.directory-hero h1{font-size:clamp(2.65rem,4.5vw,4.35rem);line-height:1.02;margin:12px 0 14px;color:var(--navy);letter-spacing:-.035em}
.directory-hero p{font-size:1.18rem;color:#46677e;max-width:760px;margin:0}
.hero-benefits{display:flex;gap:42px;margin-top:34px}
.benefit{display:flex;align-items:center;gap:13px;min-width:0}
.benefit-icon{width:43px;height:43px;flex:0 0 43px;color:var(--blue)}
.benefit-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.benefit strong,.benefit small{display:block}
.benefit strong{color:var(--navy);font-size:.92rem}
.benefit small{color:var(--muted);font-size:.78rem;margin-top:2px}
.france-mark{height:240px;position:relative;display:grid;place-items:center;color:var(--navy);text-align:center}
.france-shape{position:absolute;inset:10px 20px;background:#dceef8;clip-path:polygon(25% 8%,47% 0,56% 12%,76% 8%,85% 23%,98% 31%,87% 49%,91% 65%,75% 73%,67% 95%,46% 88%,30% 98%,22% 78%,7% 70%,14% 51%,2% 37%,18% 25%);color:transparent}
.france-mark strong{position:relative;font-size:1.45rem;font-style:italic;transform:rotate(-4deg)}

.directory-section{padding:32px 0 70px}
.directory-tools{display:flex;align-items:center;gap:18px;margin-bottom:24px}
.search-box{height:54px;flex:1;display:flex;align-items:center;gap:12px;border:1px solid #cddde7;border-radius:12px;padding:0 16px;background:#fff;box-shadow:0 5px 18px rgba(13,58,92,.035)}
.search-box svg{width:22px;height:22px;fill:none;stroke:var(--navy);stroke-width:2;stroke-linecap:round}
.search-box input{border:0;outline:0;width:100%;font:inherit;color:var(--ink);background:transparent}
.search-box input::placeholder{color:#8194a2}
.partner-count{color:var(--muted);white-space:nowrap;margin-left:auto}
.partner-count strong{color:var(--navy)}

.partner-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}
.partner-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden;box-shadow:0 10px 30px rgba(13,58,92,.07);transition:transform .18s ease,box-shadow .18s ease}
.partner-card:hover{transform:translateY(-3px);box-shadow:0 16px 36px rgba(13,58,92,.12)}
.partner-photo{position:relative;display:block;aspect-ratio:1/1;background:#eaf2f7;overflow:hidden;text-decoration:none}
.partner-photo img{width:100%;height:100%;display:block;object-fit:cover;object-position:center}
.photo-fallback{width:82px;height:82px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%;display:grid;place-items:center;background:var(--navy);color:#fff;font-size:2rem;font-weight:900}
.partner-badge{position:absolute;left:12px;bottom:10px;padding:5px 10px;border-radius:999px;background:linear-gradient(135deg,#0d7fae,#0d3a5c);color:#fff;font-size:.68rem;font-weight:900;letter-spacing:.02em;box-shadow:0 4px 12px rgba(13,58,92,.2)}
.partner-card-body{display:flex;flex:1;flex-direction:column;padding:15px 14px 13px}
.identity{min-height:61px}
.identity h2{font-size:1.03rem;line-height:1.15;margin:0 0 4px;color:var(--navy)}
.identity h2 a{color:inherit;text-decoration:none}
.identity h2 a:hover{color:var(--blue)}
.agency{margin:0;color:#496a80;font-size:.83rem;line-height:1.25}
.partner-details{display:grid;gap:7px;margin:10px 0 13px}
.detail-row{display:flex;align-items:center;gap:8px;margin:0;color:#496a80;text-decoration:none;font-size:.82rem;min-width:0}
.detail-row svg{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:var(--gold);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.detail-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.phone-row{color:var(--navy)}
.phone-row strong{font-size:.92rem;letter-spacing:.01em}
.phone-row:hover strong{text-decoration:underline}
.card-actions{display:grid;gap:8px;margin-top:auto}
.mini-site-btn,.contact-btn{min-height:40px;border-radius:8px;display:flex;align-items:center;justify-content:center;text-decoration:none;font-size:.82rem;font-weight:850}
.mini-site-btn{gap:8px;background:linear-gradient(135deg,#0d3a5c,#07527b);color:#fff;box-shadow:0 6px 14px rgba(13,58,92,.12)}
.mini-site-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mini-site-btn:hover{filter:brightness(1.08)}
.contact-btn{border:1px solid var(--blue);color:var(--navy);background:#fff}
.contact-btn:hover{background:#f0f8fd}

.network-strip{margin-top:48px;display:grid;grid-template-columns:repeat(4,1fr);background:linear-gradient(110deg,#eff9fe,#f8fbfd);border:1px solid #e1edf3;border-radius:16px;overflow:hidden}
.network-strip>div{padding:25px;text-align:center;display:flex;flex-direction:column;gap:2px;position:relative}
.network-strip>div+div:before{content:"";position:absolute;left:0;top:20%;bottom:20%;width:1px;background:#d8e7ef}
.network-strip strong{font-size:1.2rem;color:var(--navy)}
.network-strip span{font-weight:800;color:var(--navy)}
.network-strip small{color:var(--muted)}
.network-strip a{color:var(--blue);font-weight:850;text-decoration:none;font-size:.86rem}

footer{background:#071f31;color:#c8d9e4;padding:34px 0}
.footer-layout{display:flex;align-items:center;justify-content:space-between;gap:25px}
.footer-layout img{width:170px;filter:brightness(0) invert(1)}
.footer-layout nav{display:flex;gap:22px}
.footer-layout a{color:#fff;text-decoration:none;font-size:.85rem}
.footer-layout span{font-size:.8rem}

@media(max-width:1250px){
.partner-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.public-header nav{gap:20px}
.hero-benefits{gap:25px}
}
@media(max-width:980px){
.public-header nav a:not(.header-estimate){display:none}
.hero-layout{grid-template-columns:1fr}
.france-mark{display:none}
.hero-benefits{flex-wrap:wrap}
.partner-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.network-strip{grid-template-columns:1fr 1fr}
.network-strip>div:nth-child(3):before{display:none}
.footer-layout{flex-direction:column;text-align:center}
}
@media(max-width:720px){
.shell{width:min(100% - 28px,1400px)}
.public-header .shell{min-height:70px}
.public-header .brand img{width:175px}
.public-header .header-estimate{padding:11px 14px}
.hero-layout{min-height:auto;padding-top:38px;padding-bottom:34px}
.directory-hero h1{font-size:2.55rem}
.directory-hero p{font-size:1rem}
.hero-benefits{display:grid;gap:15px}
.directory-tools{align-items:stretch;flex-direction:column}
.partner-count{margin-left:0}
.partner-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
}
@media(max-width:500px){
.partner-grid{grid-template-columns:1fr}
.partner-photo{aspect-ratio:16/11}
.network-strip{grid-template-columns:1fr}
.network-strip>div+div:before{left:15%;right:15%;top:0;bottom:auto;width:auto;height:1px}
.public-header .header-estimate{display:none}
}


/* ===== MINI-SITE PARTENAIRE ===== */
.profile-hero{background:radial-gradient(circle at 84% 20%,#dff1fb 0,transparent 32%),linear-gradient(120deg,#f9fcfe 0,#fff 60%,#edf8fd 100%);border-bottom:1px solid #e9f1f5}
.profile-grid{min-height:455px;display:grid;grid-template-columns:340px 1fr;align-items:center;gap:62px;padding-top:52px;padding-bottom:52px}
.profile-photo{position:relative;aspect-ratio:1/1;border-radius:20px;overflow:hidden;background:#eaf2f7;border:1px solid #dbe7ee;box-shadow:0 18px 45px rgba(13,58,92,.12)}
.profile-photo img{width:100%;height:100%;display:block;object-fit:cover;object-position:center}
.profile-badge{position:absolute;left:18px;bottom:18px;padding:7px 12px;border-radius:999px;background:linear-gradient(135deg,#0d7fae,#0d3a5c);color:#fff;font-size:.72rem;font-weight:900;box-shadow:0 5px 16px rgba(13,58,92,.22)}
.profile-intro h1{font-size:clamp(2.5rem,5vw,4.6rem);line-height:1;margin:12px 0 10px;color:var(--navy);letter-spacing:-.04em}
.agency-name{font-size:1.35rem;color:#496a80;margin:0 0 17px;font-weight:700}
.profile-location{display:flex;align-items:center;gap:9px;color:#506e82;font-size:1rem;margin:0 0 25px}
.profile-location svg{width:21px;height:21px;fill:none;stroke:var(--gold);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.profile-actions{display:flex;flex-wrap:wrap;gap:12px}
.profile-actions a{min-height:49px;display:inline-flex;align-items:center;gap:9px;padding:0 18px;border:1px solid #1787c7;border-radius:10px;text-decoration:none;color:var(--navy);font-weight:850;background:#fff}
.profile-actions a.primary{color:#fff;border-color:transparent;background:linear-gradient(135deg,#0d3a5c,#07527b);box-shadow:0 8px 18px rgba(13,58,92,.15)}
.profile-actions svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.profile-content{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(330px,.7fr);gap:24px;padding-top:42px;padding-bottom:42px}
.content-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:28px;box-shadow:0 10px 30px rgba(13,58,92,.055)}
.content-card h2,.sectors-section h2,.profile-cta h2{color:var(--navy);margin:7px 0 16px;font-size:1.65rem}
.bio,.about-card>p{color:#496a80;font-size:1rem;line-height:1.72}
.external-links{display:flex;flex-wrap:wrap;gap:11px;margin-top:24px}
.external-links a{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border-radius:9px;background:#f3f9fc;color:var(--navy);text-decoration:none;font-weight:800}
.round-icon{width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:#fff;font-size:.76rem}
.contact-card{display:flex;flex-direction:column}
.contact-line{display:flex;align-items:flex-start;gap:12px;padding:14px 0;border-top:1px solid #e6eef3;color:var(--ink);text-decoration:none}
.contact-line svg{width:23px;height:23px;flex:0 0 23px;fill:none;stroke:var(--gold);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;margin-top:2px}
.contact-line span{min-width:0}
.contact-line small,.contact-line strong{display:block}
.contact-line small{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:#7890a0;font-weight:800;margin-bottom:2px}
.contact-line strong{color:var(--navy);overflow-wrap:anywhere}
a.contact-line:hover strong{color:var(--blue)}

.sectors-section{background:#f6fafc;border-top:1px solid #e6eff4;border-bottom:1px solid #e6eff4;padding:48px 0}
.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:24px}
.section-heading h2{margin-bottom:7px}
.section-heading p{margin:0;color:#647c8c}
.sector-count{white-space:nowrap;padding:8px 12px;border-radius:999px;background:#e6f4fb;color:var(--navy);font-weight:850;font-size:.82rem}
.sector-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.sector-grid a{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border:1px solid #d8e6ee;border-radius:11px;background:#fff;text-decoration:none;box-shadow:0 5px 14px rgba(13,58,92,.035);transition:.17s ease}
.sector-grid a:hover{transform:translateY(-2px);border-color:#a9d5eb;box-shadow:0 9px 20px rgba(13,58,92,.07)}
.sector-grid strong,.sector-grid small{display:block}
.sector-grid strong{color:var(--navy);font-size:.9rem;line-height:1.2}
.sector-grid small{color:#718898;margin-top:4px}
.sector-grid b{color:var(--blue);font-size:1.2rem}

.profile-cta{padding:50px 0;background:#fff}
.profile-cta .shell{display:flex;align-items:center;justify-content:space-between;gap:35px;padding:34px 38px;border-radius:18px;background:linear-gradient(120deg,#eaf7fd,#f8fbfd);border:1px solid #dbeaf2}
.profile-cta h2{font-size:1.8rem;margin-bottom:5px}
.profile-cta p{margin:0;color:#647c8c}
.profile-cta>a{flex:0 0 auto;display:flex;align-items:center;gap:13px;padding:15px 20px;border-radius:10px;background:linear-gradient(135deg,#0d3a5c,#07527b);color:#fff;text-decoration:none;font-weight:900;box-shadow:0 8px 18px rgba(13,58,92,.14)}

@media(max-width:980px){
.profile-grid{grid-template-columns:280px 1fr;gap:35px}
.profile-content{grid-template-columns:1fr}
.sector-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:720px){
.profile-grid{grid-template-columns:1fr;gap:26px;padding-top:30px;padding-bottom:34px}
.profile-photo{width:min(100%,380px);margin:auto}
.profile-intro{text-align:center}
.profile-location,.profile-actions{justify-content:center}
.profile-content{padding-top:28px;padding-bottom:28px}
.section-heading{align-items:flex-start;flex-direction:column}
.sector-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.profile-cta .shell{align-items:flex-start;flex-direction:column;padding:26px}
}
@media(max-width:500px){
.sector-grid{grid-template-columns:1fr}
.profile-actions{display:grid}
.profile-actions a{justify-content:center}
}


/* ===== MINI-SITE V2.2 — CORRECTIF DE COMPOSITION =====
   Ces règles sont volontairement limitées aux classes du mini-site.
   Elles ne modifient pas l'annuaire partenaires validé.
*/
@media (min-width: 861px){
  .profile-content{
    grid-template-columns:minmax(0,1.55fr) minmax(320px,.72fr)!important;
    align-items:stretch;
  }
  .contact-card{
    height:100%;
  }
}
@media (min-width: 721px) and (max-width: 860px){
  .profile-content{
    grid-template-columns:1fr;
  }
}


/* ===== MINI-SITE V2.3 — CTA ESTIMATION ===== */
.profile-cta .shell > a{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    min-height:52px;
    padding:0 24px;
    border:0;
    border-radius:11px;
    background:linear-gradient(135deg,#1689cf,#0d3a5c);
    color:#fff !important;
    text-decoration:none !important;
    font-weight:900;
    font-size:.95rem;
    box-shadow:0 9px 22px rgba(13,58,92,.18);
    transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
.profile-cta .shell > a:hover{
    transform:translateY(-2px);
    box-shadow:0 13px 27px rgba(13,58,92,.24);
    filter:brightness(1.05);
}
.profile-cta .shell > a span{
    color:#fff;
    font-size:1.15rem;
}
@media(max-width:720px){
    .profile-cta .shell > a{
        width:100%;
        text-align:center;
    }
}
