.atlas-page-v1{max-width:1500px}.atlas-site-hero{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:18px;padding:26px 28px;border:1px solid var(--line);border-radius:26px;background:radial-gradient(circle at 90% 5%,rgba(105,31,54,.11),transparent 18rem),linear-gradient(135deg,#fffdf9,#f7eee6)}.atlas-site-hero h1{max-width:850px;margin:.35rem 0 .55rem;font-family:Georgia,serif;font-size:clamp(2.5rem,5vw,4.6rem);font-weight:500;line-height:1}.atlas-site-hero p{max-width:820px;color:var(--muted);line-height:1.65}.atlas-hero-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.atlas-bridge{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px}.atlas-bridge article{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;padding:15px;border:1px solid var(--line);border-radius:17px;background:#fff9}.atlas-bridge article>span{font-size:1.35rem}.atlas-bridge small{display:block;color:var(--wine);font-size:.52rem;font-weight:900;letter-spacing:.07em}.atlas-bridge strong{display:block;margin-top:2px;font-size:.8rem}.atlas-bridge p{margin:.15rem 0 0;color:var(--muted);font-size:.55rem}.atlas-bridge b{color:var(--wine);font-size:.68rem}.atlas-setup-warning{margin:0 0 15px;padding:12px 14px;border:1px solid #deb873;border-radius:14px;background:#fff8e8;color:#6f5422;font-size:.72rem;line-height:1.5}.atlas-setup-warning code{font-size:.67rem}
.atlas-v1{--atlas-bg:#0d1110;--atlas-panel:#131a18;--atlas-panel2:#18211e;--atlas-text:#f4f0e8;--atlas-muted:#9daaa4;--atlas-line:#2a3531;--atlas-accent:#d2aa63;--atlas-accent2:#7da78f;--atlas-danger:#df7a70;--atlas-ok:#88c29f;position:relative;overflow:hidden;border:1px solid #2a3531;border-radius:24px;background:var(--atlas-bg);color:var(--atlas-text);box-shadow:0 24px 70px rgba(33,24,23,.16)}.atlas-v1 button,.atlas-v1 input{font:inherit}.atlas-toolbar{min-height:72px;display:flex;align-items:center;gap:18px;padding:11px 16px;border-bottom:1px solid var(--atlas-line);background:#0d1110}.atlas-title{display:flex;align-items:center;gap:10px;min-width:220px}.atlas-title>span{display:grid;place-items:center;width:42px;height:42px;border:1px solid #425149;border-radius:13px;background:linear-gradient(145deg,#2d3d35,#171f1c);font-size:1.25rem}.atlas-title strong,.atlas-title small{display:block}.atlas-title strong{letter-spacing:.04em}.atlas-title small{margin-top:2px;color:var(--atlas-muted);font-size:.7rem}.atlas-modes{display:flex;gap:6px;padding:5px;border:1px solid var(--atlas-line);border-radius:14px;background:#0a0e0d}.atlas-mode{border:0;border-radius:10px;background:transparent;color:var(--atlas-muted);padding:9px 14px;font-weight:800;cursor:pointer}.atlas-mode.active{background:var(--atlas-panel2);color:var(--atlas-text)}.atlas-status{margin-left:auto;display:flex;align-items:center;gap:12px}.atlas-status>div{min-width:150px}.atlas-status small,.atlas-status strong{font-size:.67rem}.atlas-status small{color:var(--atlas-muted)}.atlas-status strong{float:right}.atlas-status i{display:block;clear:both;height:7px;margin-top:6px;border-radius:999px;background:#252e2b;overflow:hidden}.atlas-status i em{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--atlas-accent2),var(--atlas-accent));transition:width .3s}.atlas-status>span{padding:8px 11px;border:1px solid #4c4330;border-radius:999px;background:#241f15;color:#f2d89d;font-size:.68rem;font-weight:900}.atlas-main{display:grid;grid-template-columns:285px minmax(0,1fr) 350px;height:min(760px,calc(100vh - 175px));min-height:620px}.atlas-sidebar,.atlas-details{min-height:0;overflow:auto;background:var(--atlas-panel);scrollbar-width:thin;scrollbar-color:#3a4541 transparent}.atlas-sidebar{padding:15px;border-right:1px solid var(--atlas-line)}.atlas-details{padding:17px;border-left:1px solid var(--atlas-line)}.atlas-search{position:relative;display:block}.atlas-search span{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#78877f}.atlas-search input{width:100%;padding:11px 12px 11px 34px;border:1px solid var(--atlas-line);border-radius:12px;outline:0;background:#0d1210;color:var(--atlas-text)}.atlas-switches{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:11px 0 17px}.atlas-toggle{padding:9px;border:1px solid var(--atlas-line);border-radius:10px;background:#101613;color:var(--atlas-muted);cursor:pointer;font-size:.68rem;font-weight:800}.atlas-toggle.on{border-color:#5a5038;background:#201d15;color:#e7d2a3}.atlas-toggle.atlas-blind.on{border-color:#684544;background:#251716;color:#f0aaa1}.atlas-section-title{margin:5px 0 9px;color:#7e8d86;font-size:.58rem;font-weight:900;letter-spacing:.15em;text-transform:uppercase}.atlas-dop-list{display:grid;gap:7px}.atlas-dop-item{padding:11px;border:1px solid var(--atlas-line);border-radius:13px;background:#101613;cursor:pointer;transition:.18s}.atlas-dop-item:hover{transform:translateY(-1px);border-color:#45534d}.atlas-dop-item.selected{border-color:#75613f;background:#1c1a13}.atlas-dop-item .name{font-size:.77rem;font-weight:900}.atlas-dop-item .meta{display:flex;justify-content:space-between;gap:7px;margin-top:4px;color:var(--atlas-muted);font-size:.61rem}.atlas-dot{display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:99px}.atlas-done{color:var(--atlas-ok)!important}.atlas-course-link{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;margin-top:15px;padding:10px;border:1px solid var(--atlas-line);border-radius:12px;background:#0f1513;color:inherit;text-decoration:none}.atlas-course-link>span{font-size:1.15rem}.atlas-course-link strong,.atlas-course-link small{display:block}.atlas-course-link strong{font-size:.68rem}.atlas-course-link small{margin-top:2px;color:var(--atlas-muted);font-size:.56rem}.atlas-course-link b{color:var(--atlas-accent)}
.atlas-map-wrap{position:relative;min-width:0;overflow:hidden;background:#0a0e0d}.atlas-map{width:100%;height:100%;overflow:hidden;touch-action:none;background:#0b1210}.atlas-map svg{display:block;width:100%;height:100%;user-select:none}.atlas-map polygon,.atlas-map polyline{vector-effect:non-scaling-stroke}.atlas-zone{cursor:pointer;transition:fill-opacity .15s,stroke-width .15s}.atlas-zone:hover{fill-opacity:.55!important}.atlas-map-label{font-size:13px;font-weight:900;fill:#f4f0e8;paint-order:stroke;stroke:#0b100e;stroke-width:4px;stroke-linejoin:round;pointer-events:none}.atlas-sub-label{font-size:10px;font-weight:800;fill:#dce6e1;paint-order:stroke;stroke:#0b100e;stroke-width:3px;pointer-events:none}.atlas-river-label{font-size:9px;fill:#9fc4da;paint-order:stroke;stroke:#0b100e;stroke-width:3px;pointer-events:none}.atlas-map-controls{position:absolute;z-index:5;left:13px;top:13px;display:grid;gap:5px}.atlas-map-controls button{width:38px;height:38px;border:1px solid #34423c;border-radius:10px;background:#151d1a;color:#eee;font-size:1.1rem;font-weight:900;cursor:pointer;box-shadow:0 5px 18px rgba(0,0,0,.25)}.atlas-map-controls button:last-child{font-size:.58rem}.atlas-map-badge{position:absolute;z-index:5;left:15px;bottom:14px;max-width:min(620px,calc(100% - 30px));padding:8px 11px;border:1px solid var(--atlas-line);border-radius:11px;background:rgba(13,17,16,.92);color:#b1bdb7;font-size:.61rem;line-height:1.4}.atlas-map-badge strong{color:#e9c57e}.atlas-legend{position:absolute;z-index:5;right:13px;top:13px;padding:9px;border:1px solid var(--atlas-line);border-radius:11px;background:rgba(13,17,16,.92);color:#bbc6c1;font-size:.61rem}.atlas-legend div{margin:4px 0}.atlas-legend span{display:inline-block;width:9px;height:9px;margin-right:5px;border-radius:3px}.atlas-kicker{color:var(--atlas-accent);font-size:.58rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.atlas-details h2{margin:7px 0;font-family:Georgia,serif;font-size:1.65rem;font-weight:500;line-height:1.05}.atlas-lead{color:#c0cbc6;font-size:.73rem;line-height:1.6}.atlas-tags{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.atlas-tag{padding:5px 7px;border:1px solid var(--atlas-line);border-radius:999px;background:#0f1513;color:#bac5bf;font-size:.6rem}.atlas-facts{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:14px 0}.atlas-fact{padding:10px;border:1px solid var(--atlas-line);border-radius:11px;background:#101613}.atlas-fact b,.atlas-fact small{display:block}.atlas-fact b{font-size:.88rem}.atlas-fact small{margin-top:2px;color:var(--atlas-muted);font-size:.56rem}.atlas-subzones{display:grid;gap:6px}.atlas-subzone{padding:8px 9px;border:1px solid var(--atlas-line);border-radius:9px;background:#101613;font-size:.67rem}.atlas-subzone b{color:#e8d5aa}.atlas-notes{color:#b4c0ba;font-size:.66rem;line-height:1.55}.atlas-actions{display:flex;gap:7px;margin:13px 0}.atlas-action-primary,.atlas-action-secondary{padding:9px 11px;border-radius:10px;font-size:.67rem;font-weight:900;cursor:pointer}.atlas-action-primary{border:0;background:var(--atlas-accent);color:#1b170f}.atlas-action-secondary{border:1px solid #34423c;background:#202a26;color:#e9eee9}.atlas-action-primary:disabled{opacity:.48;cursor:not-allowed}.atlas-quiz-card{display:none}.atlas-quiz-card.active{display:block}.atlas-quiz-head{display:flex;justify-content:space-between;gap:10px}.atlas-quiz-counter{color:var(--atlas-muted);font-size:.65rem}.atlas-question{margin:15px 0;font-family:Georgia,serif;font-size:1.3rem;line-height:1.25}.atlas-answers{display:grid;gap:7px}.atlas-answer{padding:10px 11px;border:1px solid var(--atlas-line);border-radius:10px;background:#101613;color:#e9eeeb;text-align:left;cursor:pointer;font-size:.7rem}.atlas-answer.correct{border-color:#4e8065;background:#14231b}.atlas-answer.wrong{border-color:#7e4d49;background:#281917}.atlas-feedback{min-height:44px;padding-top:11px;color:#b9c5bf;font-size:.66rem;line-height:1.5}.atlas-big-score{font-family:Georgia,serif;font-size:3rem;color:#f0d292}.atlas-sourcebox{margin-top:17px;padding-top:13px;border-top:1px solid var(--atlas-line);color:#7f8d86;font-size:.56rem;line-height:1.5}.atlas-toast{position:absolute;z-index:20;left:50%;top:84px;transform:translate(-50%,-12px);opacity:0;pointer-events:none;padding:9px 13px;border:1px solid #3b4b44;border-radius:11px;background:#17211d;color:#eaf1ed;font-size:.67rem;box-shadow:0 18px 55px rgba(0,0,0,.34);transition:.2s}.atlas-toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1120px){.atlas-main{grid-template-columns:240px minmax(0,1fr) 310px}.atlas-title{min-width:auto}.atlas-title small{display:none}}@media(max-width:900px){.atlas-site-hero{display:grid}.atlas-hero-actions{justify-content:flex-start}.atlas-bridge{grid-template-columns:1fr}.atlas-toolbar{flex-wrap:wrap}.atlas-status{margin-left:0}.atlas-modes{order:3;width:100%}.atlas-mode{flex:1}.atlas-main{display:flex;height:auto;min-height:0;flex-direction:column}.atlas-sidebar{border-right:0;border-bottom:1px solid var(--atlas-line)}.atlas-dop-list{grid-template-columns:repeat(2,minmax(0,1fr))}.atlas-map-wrap{height:64vh;min-height:470px}.atlas-details{border-left:0;border-top:1px solid var(--atlas-line)}.atlas-legend{display:none}}@media(max-width:580px){.atlas-site-hero{padding:22px 19px}.atlas-site-hero h1{font-size:2.45rem}.atlas-dop-list{grid-template-columns:1fr}.atlas-toolbar{padding:10px}.atlas-status{width:100%;justify-content:space-between}.atlas-status>div{flex:1}.atlas-map-wrap{height:58vh;min-height:420px}.atlas-switches{grid-template-columns:repeat(2,1fr)}.atlas-facts{grid-template-columns:1fr 1fr}}

/* V4.5.2 — pont bidirectionnel Atlas ↔ parcours */
.atlas-actions{flex-wrap:wrap}.atlas-actions a.atlas-action-secondary{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.atlas-course-jump{flex:1 1 100%;border-color:#5b4d33!important;background:#211d15!important;color:#f0d49a!important}.atlas-course-jump:hover{border-color:#897048!important;background:#2a2418!important}.atlas-subzone{display:flex!important;align-items:center;justify-content:space-between;gap:8px;width:100%;color:inherit;text-align:left;cursor:pointer}.atlas-subzone span{color:var(--atlas-muted);font-size:.53rem}.atlas-subzone:hover{border-color:#4b5b54;background:#151d1a}.atlas-zone.atlas-subzone-active{stroke:#f1d18c!important;stroke-width:6!important;fill-opacity:.62!important}

/* V4.5.3 — contraste Atlas : neutralise les couleurs du thème clair dans le panneau sombre */
.ampeloria-v43 .atlas-v1 .atlas-details,
.ampeloria-v43 .atlas-v1 .atlas-details h2,
.ampeloria-v43 .atlas-v1 .atlas-details .atlas-question,
.ampeloria-v43 .atlas-v1 .atlas-details .atlas-fact b{
    color:var(--atlas-text)!important;
}
.ampeloria-v43 .atlas-v1 .atlas-details h2{
    text-shadow:0 1px 0 rgba(0,0,0,.24);
}
.ampeloria-v43 .atlas-v1 .atlas-kicker{
    color:var(--atlas-accent)!important;
}
.ampeloria-v43 .atlas-v1 .atlas-lead,
.ampeloria-v43 .atlas-v1 .atlas-notes,
.ampeloria-v43 .atlas-v1 .atlas-feedback{
    color:#c0cbc6!important;
}
.ampeloria-v43 .atlas-v1 .atlas-section-title{
    color:#85948d!important;
}
.ampeloria-v43 .atlas-v1 .atlas-tag{
    color:#c8d2cd!important;
}
.ampeloria-v43 .atlas-v1 .atlas-fact small{
    color:var(--atlas-muted)!important;
}
.ampeloria-v43 .atlas-v1 .atlas-subzone{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:12px;
    width:100%;
    min-height:44px;
    padding:9px 11px;
    color:var(--atlas-text)!important;
    text-align:left;
    line-height:1.25;
}
.ampeloria-v43 .atlas-v1 .atlas-subzone b{
    min-width:0;
    color:#f0d9a7!important;
    overflow-wrap:anywhere;
}
.ampeloria-v43 .atlas-v1 .atlas-subzone span{
    color:#94a29b!important;
    font-size:.53rem;
    font-weight:650;
    white-space:nowrap;
}
.ampeloria-v43 .atlas-v1 .atlas-subzone:hover span{
    color:#c4cec9!important;
}
.ampeloria-v43 .atlas-v1 .atlas-actions{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(92px,.72fr);
    gap:7px;
    align-items:stretch;
}
.ampeloria-v43 .atlas-v1 .atlas-action-primary,
.ampeloria-v43 .atlas-v1 .atlas-action-secondary{
    min-height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    line-height:1.25;
}
.ampeloria-v43 .atlas-v1 .atlas-action-primary{
    color:#1b170f!important;
}
.ampeloria-v43 .atlas-v1 .atlas-action-secondary{
    color:#eef3f0!important;
}
.ampeloria-v43 .atlas-v1 .atlas-course-jump{
    grid-column:1/-1;
    width:100%;
    color:#f0d49a!important;
    white-space:normal;
    overflow-wrap:anywhere;
}
.ampeloria-v43 .atlas-v1 .atlas-course-jump:hover{
    color:#ffe5ad!important;
}
@media(max-width:580px){
    .ampeloria-v43 .atlas-v1 .atlas-actions{grid-template-columns:1fr 1fr}
    .ampeloria-v43 .atlas-v1 .atlas-course-jump{grid-column:1/-1}
    .ampeloria-v43 .atlas-v1 .atlas-subzone{grid-template-columns:1fr}
    .ampeloria-v43 .atlas-v1 .atlas-subzone span{white-space:normal}
}


/* V4.6.0 — Atlas Galice V2 : multicouches + progression sous-zones */
.atlas-layer-hint{margin:-4px 0 11px;padding:8px 9px;border:1px solid #2b3934;border-radius:10px;background:#0d1311;color:#9eaca5;font-size:.57rem;line-height:1.4}
.atlas-theme-toggle{position:relative}.atlas-theme-toggle.on{border-color:#6f6242!important;background:#292319!important;color:#f1d69b!important;box-shadow:inset 0 0 0 1px rgba(241,214,155,.08)}
.atlas-repere-shape{stroke-linecap:round}.atlas-repere-label{fill:#b7c4bd!important;font-style:italic;font-size:9px!important}.atlas-blind-active .atlas-zone{fill-opacity:.06!important}.atlas-blind-active #atlasThemeG{display:none!important}
.atlas-legend{max-width:205px}.atlas-legend>b{display:block;margin-bottom:5px;color:#ead9af}.atlas-legend div{display:grid;grid-template-columns:10px 1fr;column-gap:6px;align-items:center}.atlas-legend div small{grid-column:2;display:block;color:#84928b;font-size:.49rem;line-height:1.25;margin-top:-2px;margin-bottom:2px}
.atlas-layer-cards{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:13px 0}.atlas-layer-cards button{min-width:0;padding:9px;border:1px solid var(--atlas-line);border-radius:11px;background:#0f1513;color:var(--atlas-text);text-align:left;cursor:pointer}.atlas-layer-cards button:hover{border-color:#5c5037;background:#19170f}.atlas-layer-cards span{float:right;font-size:.95rem}.atlas-layer-cards small,.atlas-layer-cards b{display:block}.atlas-layer-cards small{color:#829089;font-size:.49rem;font-weight:900;letter-spacing:.1em}.atlas-layer-cards b{margin-top:3px;color:#d7e0dc;font-size:.59rem;line-height:1.3;overflow-wrap:anywhere}
.atlas-subzone.selected{border-color:#8a7146!important;background:#211c13!important}.atlas-subdetail{margin:10px 0 4px;padding:12px;border:1px solid #4a4130;border-radius:13px;background:linear-gradient(145deg,#171812,#111613)}.atlas-subdetail h3{margin:3px 0 5px;color:#f1dfb7;font-family:Georgia,serif;font-size:1.12rem;font-weight:500}.atlas-subdetail p{margin:0;color:#aebbb5;font-size:.62rem;line-height:1.5}.atlas-subkind{color:#d1aa63;font-size:.49rem;font-weight:900;letter-spacing:.11em;text-transform:uppercase}.atlas-subdetail-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:10px 0}.atlas-subdetail-grid>div{padding:8px;border:1px solid #2e3b36;border-radius:9px;background:#101613}.atlas-subdetail-grid small,.atlas-subdetail-grid b{display:block}.atlas-subdetail-grid small{color:#83918a;font-size:.48rem}.atlas-subdetail-grid b{margin-top:3px;color:#d8e1dd;font-size:.58rem;line-height:1.35}.atlas-substudy{width:100%;min-height:40px!important}.atlas-answer-flash{stroke:#ffe3a3!important;stroke-width:7!important;fill-opacity:.72!important;filter:drop-shadow(0 0 6px rgba(255,222,150,.5))}.atlas-wrong-text{color:#efa099!important}
.atlas-dop-item .meta span:last-child{white-space:nowrap}.atlas-subzone .atlas-done{color:#8ed2aa!important}
@media(max-width:1120px){.atlas-switches{grid-template-columns:1fr 1fr}.atlas-layer-cards{grid-template-columns:1fr}.atlas-legend{max-width:180px}}
@media(max-width:900px){.atlas-layer-cards{grid-template-columns:repeat(2,1fr)}.atlas-legend{display:none}}
@media(max-width:580px){.atlas-layer-cards,.atlas-subdetail-grid{grid-template-columns:1fr}.atlas-switches{grid-template-columns:1fr 1fr}.atlas-layer-hint{font-size:.54rem}}

/* V4.7.0 — Atlas Espagne multi-régions */
.atlas-region-tabs{display:flex;gap:7px;align-items:center;overflow-x:auto;margin:0 0 14px;padding:6px;border:1px solid var(--line);border-radius:16px;background:#fffaf7;scrollbar-width:thin}
.atlas-region-tabs a{flex:0 0 auto;padding:9px 12px;border:1px solid transparent;border-radius:11px;color:#715a60;text-decoration:none;font-size:.67rem;font-weight:850;white-space:nowrap}
.atlas-region-tabs a:hover{background:#f4e8e5;color:var(--wine)}
.atlas-region-tabs a.active{border-color:rgba(104,31,54,.15);background:#6a233a;color:#fff;box-shadow:0 7px 18px rgba(79,30,45,.12)}
.atlas-spain-hero-v470{background:radial-gradient(circle at 88% 7%,rgba(233,181,94,.18),transparent 17rem),radial-gradient(circle at 72% 82%,rgba(105,31,54,.09),transparent 24rem),linear-gradient(135deg,#fffdf9,#f7eee6)}
.atlas-spain-overview{display:grid;grid-template-columns:minmax(360px,.9fr) minmax(0,1.4fr);gap:16px;align-items:start}
.atlas-spain-map-card{position:sticky;top:92px;padding:18px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(145deg,#111815,#0a0f0d);color:#f3efe6;box-shadow:0 20px 55px rgba(45,29,25,.12)}
.atlas-spain-map-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.atlas-spain-map-head small{display:block;color:#c3a76d;font-size:.55rem;font-weight:900;letter-spacing:.11em}.atlas-spain-map-head strong{display:block;margin-top:3px;font-family:Georgia,serif;font-size:1.25rem;font-weight:500}.atlas-spain-map-head>span{font-size:2rem}
.atlas-spain-map{display:block;width:100%;margin:10px 0 4px;overflow:visible}.atlas-spain-map .spain-outline{fill:#202a26;stroke:#66746d;stroke-width:3}.atlas-spain-map .spain-portugal{fill:#121a17;stroke:#46534d;stroke-width:2}.atlas-spain-map a{cursor:pointer}.atlas-spain-map .spain-active{stroke:#f5e6c2;stroke-width:2.5;transition:filter .16s,transform .16s,fill-opacity .16s;transform-box:fill-box;transform-origin:center;fill-opacity:.88}.atlas-spain-map a:hover .spain-active{filter:drop-shadow(0 0 8px rgba(240,208,139,.55));transform:scale(1.04);fill-opacity:1}.atlas-spain-map .galice{fill:#75bba7}.atlas-spain-map .rioja{fill:#bd7278}.atlas-spain-map .ribera{fill:#a183c2}.atlas-spain-map .catalogne{fill:#d58a58}.atlas-spain-map text{fill:#fff9eb;stroke:#111815;stroke-width:4;paint-order:stroke;font-size:16px;font-weight:900;pointer-events:none}.atlas-spain-map-note{margin:3px 4px 0;color:#9eaca5;font-size:.62rem;line-height:1.5}
.atlas-spain-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.atlas-spain-region-card{padding:17px;border:1px solid var(--line);border-radius:20px;background:#fffdfb;box-shadow:0 12px 32px rgba(67,43,34,.055)}.atlas-spain-region-card header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}.atlas-spain-region-card header>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#f5ebe7;font-size:1.25rem}.atlas-spain-region-card header small{display:block;color:var(--wine);font-size:.49rem;font-weight:900;letter-spacing:.11em}.atlas-spain-region-card h2{margin:2px 0 0!important;font-size:1.05rem!important}.atlas-spain-region-card header>b{display:grid;place-items:center;min-width:48px;height:34px;border-radius:999px;background:#f5e8e4;color:var(--wine);font-size:.68rem}.atlas-spain-region-card>p{min-height:3.1em;margin:12px 0;color:var(--muted);font-size:.67rem;line-height:1.55}.atlas-spain-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.atlas-spain-kpis>div{padding:9px;border:1px solid var(--line);border-radius:11px;background:#fbf7f3}.atlas-spain-kpis strong,.atlas-spain-kpis small{display:block}.atlas-spain-kpis strong{font-size:.72rem}.atlas-spain-kpis small{margin-top:2px;color:var(--muted);font-size:.49rem}.atlas-spain-progress{height:7px;margin:11px 0 7px;border-radius:999px;background:#eadfda;overflow:hidden}.atlas-spain-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7ea990,#c0935f)}.atlas-spain-card-meta{display:block;color:#806e72;font-size:.55rem;font-weight:750}.atlas-spain-card-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.atlas-spain-card-actions .button{font-size:.62rem}
.atlas-marker{cursor:pointer}.atlas-marker circle{transition:r .14s,filter .14s,stroke-width .14s}.atlas-marker:hover circle,.atlas-marker.selected circle{r:18;stroke-width:4;filter:drop-shadow(0 0 7px rgba(246,222,168,.7))}.atlas-marker.selected circle{stroke:#ffe3a3}
.atlas-sidebar .atlas-section-title{line-height:1.35}.atlas-switches .atlas-toggle{min-width:0;overflow-wrap:anywhere;line-height:1.2}
@media(max-width:1100px){.atlas-spain-overview{grid-template-columns:1fr}.atlas-spain-map-card{position:relative;top:auto}.atlas-spain-map{max-height:520px}.atlas-spain-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.atlas-region-tabs{margin-left:-2px;margin-right:-2px}.atlas-spain-cards{grid-template-columns:1fr}.atlas-spain-region-card>p{min-height:0}.atlas-spain-map text{font-size:14px}.atlas-spain-kpis{grid-template-columns:repeat(3,1fr)}}
@media(max-width:480px){.atlas-spain-map-card{padding:12px}.atlas-spain-map text{font-size:12px}.atlas-spain-kpis{grid-template-columns:1fr 1fr}.atlas-spain-kpis>div:last-child{grid-column:1/-1}.atlas-spain-card-actions{display:grid}.atlas-spain-card-actions .button{width:100%;justify-content:center}}


/* V4.7.1 — Rioja : lisibilité calée sur la Galice */
#ampeloriaAtlas[data-atlas-key="rioja"] .atlas-map-wrap{background:#07100e}
#ampeloriaAtlas[data-atlas-key="rioja"] .atlas-item-shape{stroke-linejoin:round;stroke-linecap:round;stroke-dasharray:3 5!important;filter:drop-shadow(0 3px 7px rgba(0,0,0,.12))}
#ampeloriaAtlas[data-atlas-key="rioja"] .atlas-repere-shape{fill-opacity:.08!important;stroke-width:1.15!important;stroke-dasharray:2 6!important}
#ampeloriaAtlas[data-atlas-key="rioja"] .atlas-map-label{font-size:17px;letter-spacing:-.02em;paint-order:stroke;stroke:#07100e;stroke-width:5px;stroke-linejoin:round}
#ampeloriaAtlas[data-atlas-key="rioja"] .atlas-sub-label{font-size:10px;paint-order:stroke;stroke:#07100e;stroke-width:4px}
#ampeloriaAtlas[data-atlas-key="rioja"] .atlas-river-label{font-size:12px;opacity:.82}
#ampeloriaAtlas[data-atlas-key="rioja"] .atlas-layer-hint{background:#0b1210}
#ampeloriaAtlas[data-atlas-key="rioja"] .atlas-legend{background:rgba(8,16,14,.92);backdrop-filter:blur(4px)}
@media(max-width:700px){#ampeloriaAtlas[data-atlas-key="rioja"] .atlas-map-label{font-size:14px}#ampeloriaAtlas[data-atlas-key="rioja"] .atlas-sub-label{font-size:9px}}


/* V4.7.2 — Ribera del Duero : silhouette organique et repères provinciaux discrets */
#ampeloriaAtlas[data-atlas-key="ribera-del-duero"] .atlas-map-wrap{background:#07100e}
#ampeloriaAtlas[data-atlas-key="ribera-del-duero"] .atlas-item-shape{stroke-linejoin:round;stroke-linecap:round;stroke-dasharray:3 5!important;filter:drop-shadow(0 3px 8px rgba(0,0,0,.14))}
#ampeloriaAtlas[data-atlas-key="ribera-del-duero"] .atlas-repere-shape{fill-opacity:.055!important;stroke-width:1!important;stroke-dasharray:2 7!important}
#ampeloriaAtlas[data-atlas-key="ribera-del-duero"] .atlas-repere-shape:hover{fill-opacity:.13!important}
#ampeloriaAtlas[data-atlas-key="ribera-del-duero"] .atlas-repere-shape.atlas-subzone-active{fill-opacity:.18!important;stroke-width:3!important;stroke-dasharray:4 4!important}
#ampeloriaAtlas[data-atlas-key="ribera-del-duero"] .atlas-map-label{font-size:18px;letter-spacing:-.025em;paint-order:stroke;stroke:#07100e;stroke-width:5px;stroke-linejoin:round}
#ampeloriaAtlas[data-atlas-key="ribera-del-duero"] .atlas-sub-label{font-size:11px;paint-order:stroke;stroke:#07100e;stroke-width:4px}
#ampeloriaAtlas[data-atlas-key="ribera-del-duero"] .atlas-river-label{font-size:12px;opacity:.86}
#ampeloriaAtlas[data-atlas-key="ribera-del-duero"] .atlas-layer-hint{background:#0b1210}
#ampeloriaAtlas[data-atlas-key="ribera-del-duero"] .atlas-legend{background:rgba(8,16,14,.92);backdrop-filter:blur(4px)}
@media(max-width:700px){#ampeloriaAtlas[data-atlas-key="ribera-del-duero"] .atlas-map-label{font-size:14px}#ampeloriaAtlas[data-atlas-key="ribera-del-duero"] .atlas-sub-label{font-size:9px}}

/* Atlas Catalogne / Priorat V4.7.3 — hiérarchie visuelle type Galice */
#ampeloriaAtlas[data-atlas-key="catalogne-priorat"] .atlas-map-label{font-size:13px;letter-spacing:-.02em;paint-order:stroke;stroke:#07100e;stroke-width:4px;stroke-linejoin:round;opacity:.90}
#ampeloriaAtlas[data-atlas-key="catalogne-priorat"] .atlas-map-label-selected{font-size:17px;fill:#fff6dc;stroke-width:5px;opacity:1}
#ampeloriaAtlas[data-atlas-key="catalogne-priorat"] .atlas-sub-label{font-size:11px;fill:#f4dfac;paint-order:stroke;stroke:#07100e;stroke-width:4px}
#ampeloriaAtlas[data-atlas-key="catalogne-priorat"] .atlas-river-label{font-size:9px;opacity:.68}
#ampeloriaAtlas[data-atlas-key="catalogne-priorat"] .atlas-legend{max-height:250px;overflow:auto;scrollbar-width:thin}
#ampeloriaAtlas[data-atlas-key="catalogne-priorat"] .atlas-item-shape:not(.atlas-answer-flash){stroke-dasharray:3 5}
@media(max-width:700px){#ampeloriaAtlas[data-atlas-key="catalogne-priorat"] .atlas-map-label{font-size:11px}#ampeloriaAtlas[data-atlas-key="catalogne-priorat"] .atlas-map-label-selected{font-size:14px}#ampeloriaAtlas[data-atlas-key="catalogne-priorat"] .atlas-sub-label{font-size:9px}}


/* ==========================================================
   ATLAS V4.7.5 — PANNEAUX GAUCHE / DROITE REPLIABLES
   ========================================================== */
.atlas-panel-controls{display:flex;align-items:center;gap:6px;margin-left:2px}
.atlas-panel-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:7px 10px;border:1px solid var(--atlas-line);border-radius:11px;background:#101613;color:#b7c2bd;cursor:pointer;font-size:.63rem;font-weight:900;transition:background .18s,border-color .18s,color .18s,transform .18s}
.atlas-panel-toggle:hover{border-color:#53625b;background:#17201d;color:#f4f0e8;transform:translateY(-1px)}
.atlas-panel-toggle span{font-size:.72rem;line-height:1;transition:transform .18s}
.atlas-panel-toggle b{font:inherit;letter-spacing:.02em}
.atlas-panel-toggle[aria-pressed="true"]{border-color:#66583c;background:#221d14;color:#efd79f}
.atlas-v1.atlas-left-collapsed .atlas-sidebar,.atlas-v1.atlas-right-collapsed .atlas-details{display:none}
.atlas-v1.atlas-left-collapsed .atlas-main{grid-template-columns:minmax(0,1fr) 350px}
.atlas-v1.atlas-right-collapsed .atlas-main{grid-template-columns:285px minmax(0,1fr)}
.atlas-v1.atlas-left-collapsed.atlas-right-collapsed .atlas-main{grid-template-columns:minmax(0,1fr)}
.atlas-v1.atlas-left-collapsed #atlasToggleLeft span{transform:rotate(180deg)}
.atlas-v1.atlas-right-collapsed #atlasToggleRight span{transform:rotate(180deg)}
.atlas-v1.atlas-left-collapsed #atlasToggleLeft b::after,.atlas-v1.atlas-right-collapsed #atlasToggleRight b::after{content:" · ouvrir";font-weight:800}
.atlas-v1.atlas-left-collapsed .atlas-map-wrap,.atlas-v1.atlas-right-collapsed .atlas-map-wrap{min-width:0}

/* Petit rappel discret en mode carte large */
.atlas-v1.atlas-left-collapsed.atlas-right-collapsed .atlas-map-badge{max-width:min(760px,calc(100% - 30px))}

@media(max-width:1120px){
  .atlas-v1.atlas-left-collapsed .atlas-main{grid-template-columns:minmax(0,1fr) 310px}
  .atlas-v1.atlas-right-collapsed .atlas-main{grid-template-columns:240px minmax(0,1fr)}
  .atlas-v1.atlas-left-collapsed.atlas-right-collapsed .atlas-main{grid-template-columns:minmax(0,1fr)}
  .atlas-panel-toggle b{display:none}
  .atlas-panel-toggle{width:38px;padding:7px}
}
@media(max-width:900px){
  .atlas-panel-controls{margin-left:auto}
  .atlas-panel-toggle{width:auto;padding:7px 10px}
  .atlas-panel-toggle b{display:inline}
  .atlas-v1.atlas-left-collapsed .atlas-main,.atlas-v1.atlas-right-collapsed .atlas-main,.atlas-v1.atlas-left-collapsed.atlas-right-collapsed .atlas-main{display:flex}
  .atlas-v1.atlas-left-collapsed .atlas-sidebar,.atlas-v1.atlas-right-collapsed .atlas-details{display:none}
}
@media(max-width:580px){
  .atlas-panel-controls{order:2;margin-left:auto}
  .atlas-panel-toggle b{font-size:.58rem}
  .atlas-panel-toggle{min-height:34px;padding:6px 8px}
}

/* =========================================================
   V5.4 — Atlas multi-pays + France
   ========================================================= */
.atlas-country-switch{display:flex;gap:8px;align-items:center;margin:0 0 10px;padding:4px;width:max-content;max-width:100%;border:1px solid var(--line);border-radius:999px;background:rgba(255,250,247,.86);box-shadow:0 8px 24px rgba(66,43,34,.04)}
.atlas-country-switch a{display:flex;align-items:center;gap:6px;padding:8px 13px;border-radius:999px;color:#725f60;text-decoration:none;font-size:.68rem;font-weight:900;white-space:nowrap}
.atlas-country-switch a:hover{background:#f5ebe7;color:var(--wine)}
.atlas-country-switch a.active{background:var(--wine);color:#fff;box-shadow:0 7px 18px rgba(104,31,54,.16)}
.atlas-country-hero-v540{background:radial-gradient(circle at 88% 5%,rgba(126,80,89,.13),transparent 18rem),radial-gradient(circle at 74% 84%,rgba(204,163,99,.12),transparent 24rem),linear-gradient(135deg,#fffdf9,#f5ece4)}
.atlas-country-overview{display:grid;grid-template-columns:minmax(340px,.78fr) minmax(0,1.45fr);gap:16px;align-items:start}
.atlas-country-map-card{position:sticky;top:92px;padding:18px;border:1px solid rgba(225,210,193,.2);border-radius:24px;background:linear-gradient(145deg,#111815,#08100d);color:#f3efe6;box-shadow:0 20px 55px rgba(45,29,25,.14)}
.atlas-country-map{display:block;width:100%;margin:10px 0 4px;overflow:visible}
.atlas-country-map .country-outline{fill:#202a26;stroke:#758079;stroke-width:3}
.atlas-country-map .country-muted{fill:#121a17;stroke:#46534d;stroke-width:2}
.atlas-country-map a{cursor:pointer;text-decoration:none}
.atlas-country-map .country-active{fill:var(--atlas-color,#a87865);stroke:#f5e6c2;stroke-width:2.5;fill-opacity:.9;transition:filter .16s,transform .16s,fill-opacity .16s;transform-box:fill-box;transform-origin:center}
.atlas-country-map a:hover .country-active{filter:drop-shadow(0 0 8px rgba(240,208,139,.55));transform:scale(1.04);fill-opacity:1}
.atlas-country-map text{fill:#fff9eb;stroke:#111815;stroke-width:4;paint-order:stroke;font-size:15px;font-weight:900;pointer-events:none}
.atlas-country-map .country-pin{fill:#d6b45d;stroke:#f2df9d;stroke-width:2}
.atlas-country-map .country-region-dot{fill:#8f5c67;stroke:#f4dfb8;stroke-width:2.2;fill-opacity:.92;transition:fill .16s,transform .16s,filter .16s;transform-box:fill-box;transform-origin:center}
.atlas-country-map a:nth-of-type(2n) .country-region-dot{fill:#b57a60}
.atlas-country-map a:nth-of-type(3n) .country-region-dot{fill:#6e9284}
.atlas-country-map a:nth-of-type(4n) .country-region-dot{fill:#7c799f}
.atlas-country-map a:hover .country-region-dot{transform:scale(1.13);filter:drop-shadow(0 0 8px rgba(240,208,139,.48));fill:#c48b65}
.atlas-country-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.atlas-country-region-card{min-width:0}
.atlas-country-region-card>p{min-height:3.4em}
.atlas-france-page-v540 .atlas-country-region-card header>span{background:linear-gradient(145deg,#f5ebe3,#eee0d7)}
.atlas-france-page-v540 .atlas-spain-progress i{background:linear-gradient(90deg,#7a8f79,#b48067,#7a3149)}

@media(max-width:1180px){
  .atlas-country-overview{grid-template-columns:1fr}
  .atlas-country-map-card{position:relative;top:auto}
  .atlas-country-map{max-height:560px}
}
@media(max-width:780px){
  .atlas-country-switch{width:100%;overflow-x:auto;border-radius:15px}
  .atlas-country-cards{grid-template-columns:1fr}
  .atlas-country-region-card>p{min-height:0}
  .atlas-country-map text{font-size:13px}
}
@media(max-width:520px){
  .atlas-country-map-card{padding:12px;border-radius:18px}
  .atlas-country-map text{font-size:11px;stroke-width:3}
  .atlas-france-map text{font-size:10px}
  .atlas-country-hero-v540 .atlas-hero-actions{display:grid;width:100%}
  .atlas-country-hero-v540 .atlas-hero-actions .button{width:100%;justify-content:center}
}

/* =========================================================
   V5.4.1 — FRANCE : carte nationale refaite + anti-cache
   La France nationale reste une carte de repérage : les 13
   régions sont des points d'entrée, pas de fausses frontières.
   ========================================================= */
body.ampeloria-carnet-v50 .atlas-france-page-v540 .atlas-country-map-card{
  position:sticky!important;
  top:92px!important;
  padding:20px!important;
  border:1px solid #d8c5aa!important;
  border-radius:6px 20px 6px 20px!important;
  background:
    radial-gradient(circle at 92% 7%,rgba(113,37,58,.055),transparent 12rem),
    linear-gradient(180deg,#fffaf1 0%,#f7ecdc 100%)!important;
  color:#49382f!important;
  box-shadow:0 16px 42px rgba(75,48,37,.08)!important;
  overflow:hidden;
}
body.ampeloria-carnet-v50 .atlas-france-page-v540 .atlas-country-map-card::before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.23;
  background-image:radial-gradient(circle at 1px 1px,rgba(104,72,48,.16) 1px,transparent 1px);
  background-size:18px 18px;
}
body.ampeloria-carnet-v50 .atlas-france-page-v540 .atlas-country-map-card>*{position:relative;z-index:1}
body.ampeloria-carnet-v50 .atlas-france-page-v540 .atlas-spain-map-head small{color:#8a3049!important}
body.ampeloria-carnet-v50 .atlas-france-page-v540 .atlas-spain-map-head strong{color:#49382f!important}
body.ampeloria-carnet-v50 .atlas-france-page-v540 .atlas-spain-map-head>span{color:#72263d!important}

body.ampeloria-carnet-v50 .atlas-france-map-v541{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-height:none!important;
  margin:8px 0 8px!important;
  padding:0!important;
  background:transparent!important;
  filter:none!important;
  overflow:visible!important;
}
body.ampeloria-carnet-v50 .atlas-france-map-v541 .france-outline{
  fill:url(#francePaperFill)!important;
  stroke:#6f263a!important;
  stroke-width:3.2!important;
  stroke-linejoin:round!important;
  vector-effect:non-scaling-stroke;
}
body.ampeloria-carnet-v50 .atlas-france-map-v541 .france-paper-dots{
  fill:url(#francePaperDots)!important;
  stroke:none!important;
}
body.ampeloria-carnet-v50 .atlas-france-map-v541 .france-corsica{stroke-width:2.7!important}
body.ampeloria-carnet-v50 .atlas-france-map-v541 .france-map-monogram{
  fill:#7b4c57!important;stroke:none!important;font:800 17px/1 Georgia,serif!important;letter-spacing:.12em;opacity:.62
}
body.ampeloria-carnet-v50 .atlas-france-map-v541 .france-map-caption{
  fill:#907769!important;stroke:none!important;font:italic 15px/1.2 Georgia,serif!important;font-weight:500!important
}
body.ampeloria-carnet-v50 .atlas-france-map-v541 .france-wine-pin{cursor:pointer;text-decoration:none!important}
body.ampeloria-carnet-v50 .atlas-france-map-v541 .france-pin-halo{
  fill:#7b2942!important;fill-opacity:.10!important;stroke:#7b2942!important;stroke-opacity:.16!important;stroke-width:1.5!important;
  transform-box:fill-box;transform-origin:center;transition:transform .16s ease,fill-opacity .16s ease
}
body.ampeloria-carnet-v50 .atlas-france-map-v541 .france-pin-core{
  fill:#7b2942!important;stroke:#fff8ed!important;stroke-width:2.5!important;vector-effect:non-scaling-stroke;
  filter:drop-shadow(0 3px 5px rgba(80,38,43,.18));transition:fill .16s ease,transform .16s ease;transform-box:fill-box;transform-origin:center
}
body.ampeloria-carnet-v50 .atlas-france-map-v541 .france-pin-number{
  fill:#fffaf1!important;stroke:none!important;font:900 8px/1 Arial,sans-serif!important;text-anchor:middle!important;dominant-baseline:middle!important;letter-spacing:-.02em;pointer-events:none!important
}
body.ampeloria-carnet-v50 .atlas-france-map-v541 .france-wine-pin:hover .france-pin-halo,
body.ampeloria-carnet-v50 .atlas-france-map-v541 .france-wine-pin:focus .france-pin-halo{transform:scale(1.28);fill-opacity:.18!important}
body.ampeloria-carnet-v50 .atlas-france-map-v541 .france-wine-pin:hover .france-pin-core,
body.ampeloria-carnet-v50 .atlas-france-map-v541 .france-wine-pin:focus .france-pin-core{fill:#a4475f!important;transform:scale(1.08)}

body.ampeloria-carnet-v50 .atlas-france-key{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px;margin:4px 0 12px;padding-top:12px;border-top:1px dashed #d6bea0
}
body.ampeloria-carnet-v50 .atlas-france-key a{
  display:flex;align-items:center;gap:8px;min-width:0;padding:7px 8px;border:1px solid rgba(138,101,75,.15);border-radius:4px 10px 4px 10px;background:rgba(255,252,245,.62);color:#554238;text-decoration:none!important;transition:background .16s,border-color .16s,transform .16s
}
body.ampeloria-carnet-v50 .atlas-france-key a:hover{background:#fffaf0;border-color:#c8a98a;transform:translateY(-1px)}
body.ampeloria-carnet-v50 .atlas-france-key b{
  flex:0 0 auto;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#74283f;color:#fff9ef;font-size:.58rem;letter-spacing:.02em
}
body.ampeloria-carnet-v50 .atlas-france-key span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.68rem;font-weight:850}
body.ampeloria-carnet-v50 .atlas-france-page-v540 .atlas-spain-map-note{color:#8a7465!important;line-height:1.55!important}

@media(max-width:1180px){
  body.ampeloria-carnet-v50 .atlas-france-page-v540 .atlas-country-map-card{position:relative!important;top:auto!important;max-width:760px;margin-inline:auto}
  body.ampeloria-carnet-v50 .atlas-france-key{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
  body.ampeloria-carnet-v50 .atlas-france-page-v540 .atlas-country-map-card{padding:14px!important;border-radius:5px 16px 5px 16px!important}
  body.ampeloria-carnet-v50 .atlas-france-key{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  body.ampeloria-carnet-v50 .atlas-france-key a{padding:6px}
  body.ampeloria-carnet-v50 .atlas-france-key b{width:23px;height:23px}
  body.ampeloria-carnet-v50 .atlas-france-key span{font-size:.64rem}
}
@media(max-width:420px){
  body.ampeloria-carnet-v50 .atlas-france-key{grid-template-columns:1fr 1fr}
  body.ampeloria-carnet-v50 .atlas-france-key span{font-size:.6rem}
}

/* ==========================================================
   V5.4.2 — ATLAS ESPAGNE : même langage cartographique que France
   ========================================================== */
body.ampeloria-carnet-v50 .atlas-espagne-page-v540 .atlas-country-map-card{
  position:sticky!important;
  top:92px!important;
  padding:20px!important;
  border:1px solid #d8c5aa!important;
  border-radius:6px 20px 6px 20px!important;
  background:
    radial-gradient(circle at 92% 7%,rgba(113,37,58,.055),transparent 12rem),
    linear-gradient(180deg,#fffaf1 0%,#f7ecdc 100%)!important;
  color:#49382f!important;
  box-shadow:0 16px 42px rgba(75,48,37,.08)!important;
  overflow:hidden;
}
body.ampeloria-carnet-v50 .atlas-espagne-page-v540 .atlas-country-map-card::before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.23;
  background-image:radial-gradient(circle at 1px 1px,rgba(104,72,48,.16) 1px,transparent 1px);
  background-size:18px 18px;
}
body.ampeloria-carnet-v50 .atlas-espagne-page-v540 .atlas-country-map-card>*{position:relative;z-index:1}
body.ampeloria-carnet-v50 .atlas-espagne-page-v540 .atlas-spain-map-head small{color:#8a3049!important}
body.ampeloria-carnet-v50 .atlas-espagne-page-v540 .atlas-spain-map-head strong{color:#49382f!important}
body.ampeloria-carnet-v50 .atlas-espagne-page-v540 .atlas-spain-map-head>span{color:#72263d!important}

body.ampeloria-carnet-v50 .atlas-spain-map-v542{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-height:none!important;
  margin:8px 0 8px!important;
  padding:0!important;
  background:transparent!important;
  filter:none!important;
  overflow:visible!important;
}
body.ampeloria-carnet-v50 .atlas-spain-map-v542 .spain-mainland-outline{
  fill:url(#spainPaperFill)!important;
  stroke:#6f263a!important;
  stroke-width:3.2!important;
  stroke-linejoin:round!important;
  vector-effect:non-scaling-stroke;
}
body.ampeloria-carnet-v50 .atlas-spain-map-v542 .spain-paper-dots{
  fill:url(#spainPaperDots)!important;
  stroke:none!important;
}
body.ampeloria-carnet-v50 .atlas-spain-map-v542 .spain-balearics path{
  fill:#ead8c0!important;
  stroke:#7c4455!important;
  stroke-width:2!important;
  vector-effect:non-scaling-stroke;
}
body.ampeloria-carnet-v50 .atlas-spain-map-v542 .spain-map-monogram{
  fill:#7b4c57!important;stroke:none!important;font:800 17px/1 Georgia,serif!important;letter-spacing:.12em;opacity:.62
}
body.ampeloria-carnet-v50 .atlas-spain-map-v542 .spain-map-caption{
  fill:#907769!important;stroke:none!important;font:italic 15px/1.2 Georgia,serif!important;font-weight:500!important
}
body.ampeloria-carnet-v50 .atlas-spain-map-v542 .spain-wine-pin{cursor:pointer;text-decoration:none!important}
body.ampeloria-carnet-v50 .atlas-spain-map-v542 .spain-pin-halo{
  fill:#7b2942!important;fill-opacity:.10!important;stroke:#7b2942!important;stroke-opacity:.16!important;stroke-width:1.5!important;
  transform-box:fill-box;transform-origin:center;transition:transform .16s ease,fill-opacity .16s ease
}
body.ampeloria-carnet-v50 .atlas-spain-map-v542 .spain-pin-core{
  fill:#7b2942!important;stroke:#fff8ed!important;stroke-width:2.5!important;vector-effect:non-scaling-stroke;
  filter:drop-shadow(0 3px 5px rgba(80,38,43,.18));transition:fill .16s ease,transform .16s ease;transform-box:fill-box;transform-origin:center
}
body.ampeloria-carnet-v50 .atlas-spain-map-v542 .spain-pin-number{
  fill:#fffaf1!important;stroke:none!important;font:900 8px/1 Arial,sans-serif!important;text-anchor:middle!important;dominant-baseline:middle!important;letter-spacing:-.02em;pointer-events:none!important
}
body.ampeloria-carnet-v50 .atlas-spain-map-v542 .spain-cava-satellite{
  fill:#b89155!important;stroke:#fff8ed!important;stroke-width:1.7!important;vector-effect:non-scaling-stroke;
  filter:drop-shadow(0 2px 3px rgba(76,48,38,.14))
}
body.ampeloria-carnet-v50 .atlas-spain-map-v542 .spain-wine-pin:hover .spain-pin-halo,
body.ampeloria-carnet-v50 .atlas-spain-map-v542 .spain-wine-pin:focus .spain-pin-halo{transform:scale(1.28);fill-opacity:.18!important}
body.ampeloria-carnet-v50 .atlas-spain-map-v542 .spain-wine-pin:hover .spain-pin-core,
body.ampeloria-carnet-v50 .atlas-spain-map-v542 .spain-wine-pin:focus .spain-pin-core{fill:#a4475f!important;transform:scale(1.08)}
body.ampeloria-carnet-v50 .atlas-spain-map-v542 .spain-wine-pin:hover .spain-cava-satellite,
body.ampeloria-carnet-v50 .atlas-spain-map-v542 .spain-wine-pin:focus .spain-cava-satellite{fill:#9f6d36!important}

body.ampeloria-carnet-v50 .atlas-spain-key{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px;margin:4px 0 12px;padding-top:12px;border-top:1px dashed #d6bea0
}
body.ampeloria-carnet-v50 .atlas-spain-key a{
  display:flex;align-items:center;gap:8px;min-width:0;padding:7px 8px;border:1px solid rgba(138,101,75,.15);border-radius:4px 10px 4px 10px;background:rgba(255,252,245,.62);color:#554238;text-decoration:none!important;transition:background .16s,border-color .16s,transform .16s
}
body.ampeloria-carnet-v50 .atlas-spain-key a:hover{background:#fffaf0;border-color:#c8a98a;transform:translateY(-1px)}
body.ampeloria-carnet-v50 .atlas-spain-key b{
  flex:0 0 auto;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#74283f;color:#fff9ef;font-size:.58rem;letter-spacing:.02em
}
body.ampeloria-carnet-v50 .atlas-spain-key span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.68rem;font-weight:850}
body.ampeloria-carnet-v50 .atlas-espagne-page-v540 .atlas-spain-map-note{color:#8a7465!important;line-height:1.55!important}

@media(max-width:1180px){
  body.ampeloria-carnet-v50 .atlas-espagne-page-v540 .atlas-country-map-card{position:relative!important;top:auto!important;max-width:760px;margin-inline:auto}
  body.ampeloria-carnet-v50 .atlas-spain-key{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
  body.ampeloria-carnet-v50 .atlas-espagne-page-v540 .atlas-country-map-card{padding:14px!important;border-radius:5px 16px 5px 16px!important}
  body.ampeloria-carnet-v50 .atlas-spain-map-v542{margin-top:2px!important}
  body.ampeloria-carnet-v50 .atlas-spain-key{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  body.ampeloria-carnet-v50 .atlas-spain-key a{padding:6px}
  body.ampeloria-carnet-v50 .atlas-spain-key b{width:23px;height:23px}
  body.ampeloria-carnet-v50 .atlas-spain-key span{font-size:.64rem}
}
@media(max-width:420px){
  body.ampeloria-carnet-v50 .atlas-spain-key{grid-template-columns:1fr 1fr}
  body.ampeloria-carnet-v50 .atlas-spain-key span{font-size:.6rem}
}

/* =========================================================
   V5.4.3 — ATLAS RÉGIONAL / CARNET CARTOGRAPHIQUE
   Refonte complète du moteur interne : carte claire, panneaux
   papier, contrôles compacts et meilleure hiérarchie.
   ========================================================= */
.atlas-v543{
  --atlas-bg:#f6efe4;
  --atlas-panel:#fffaf2;
  --atlas-panel2:#f3e7d9;
  --atlas-text:#392823;
  --atlas-muted:#806f67;
  --atlas-line:#ddcbb7;
  --atlas-accent:#7a3149;
  --atlas-accent2:#7f927e;
  --atlas-danger:#a44f4b;
  --atlas-ok:#557c63;
  overflow:hidden;
  border:1px solid #dac5ae;
  border-radius:26px;
  background:#f8f1e7;
  color:var(--atlas-text);
  box-shadow:0 22px 60px rgba(75,48,37,.12);
}
.atlas-v543 .atlas-toolbar{
  min-height:66px;
  gap:14px;
  padding:10px 14px;
  border-bottom:1px solid #dfcdbb;
  background:linear-gradient(180deg,#fffaf3,#f7ecdf);
  color:#3a2924;
}
.atlas-v543 .atlas-title{min-width:210px}
.atlas-v543 .atlas-title>span{
  width:40px;height:40px;
  border:1px solid #dbc3ad;
  border-radius:12px;
  background:#fff8ed;
  box-shadow:inset 0 0 0 4px rgba(122,49,73,.04);
}
.atlas-v543 .atlas-title strong{font-family:Georgia,serif;font-size:.95rem;letter-spacing:0;color:#3b2924}
.atlas-v543 .atlas-title small{color:#8c776c;font-size:.61rem}
.atlas-v543 .atlas-modes{
  gap:4px;padding:4px;
  border:1px solid #dfcdbb;
  border-radius:999px;
  background:#fffaf4;
}
.atlas-v543 .atlas-mode{
  padding:8px 13px;
  border-radius:999px;
  color:#806b64;
  font-size:.64rem;
  letter-spacing:.01em;
}
.atlas-v543 .atlas-mode.active{background:#7a3149;color:#fff;box-shadow:0 5px 14px rgba(122,49,73,.18)}
.atlas-v543 .atlas-panel-controls{gap:5px}
.atlas-v543 .atlas-panel-toggle{
  min-height:34px;padding:6px 9px;
  border-color:#dfcdbb;border-radius:999px;
  background:#fffaf4;color:#765f59;
  font-size:.59rem;
}
.atlas-v543 .atlas-panel-toggle:hover{border-color:#c9ad96;background:#fff6eb;color:#6a243b;transform:none}
.atlas-v543 .atlas-panel-toggle[aria-pressed="true"]{border-color:#b98b91;background:#f5e7e8;color:#6a243b}
.atlas-v543 .atlas-status{gap:9px}
.atlas-v543 .atlas-status>div{min-width:145px}
.atlas-v543 .atlas-status small,.atlas-v543 .atlas-status strong{font-size:.6rem;color:#765f59}
.atlas-v543 .atlas-status strong{color:#5e3b37}
.atlas-v543 .atlas-status i{height:6px;background:#e8d9cb}
.atlas-v543 .atlas-status i em{background:linear-gradient(90deg,#7d947f,#b58a67,#7a3149)}
.atlas-v543 .atlas-status>span{padding:7px 10px;border:1px solid #d9c3ac;background:#fff8e9;color:#7a3149;font-size:.61rem}

.atlas-v543 .atlas-main{
  grid-template-columns:248px minmax(0,1fr) 326px;
  height:min(730px,calc(100vh - 185px));
  min-height:610px;
  background:#f7efe4;
}
.atlas-v543 .atlas-sidebar,
.atlas-v543 .atlas-details{
  background:rgba(255,250,242,.95);
  color:#3b2a25;
  scrollbar-color:#cdb9a7 transparent;
}
.atlas-v543 .atlas-sidebar{padding:14px;border-right:1px solid #dfcdbb}
.atlas-v543 .atlas-details{padding:18px;border-left:1px solid #dfcdbb}
.atlas-v543 .atlas-search input{
  padding:10px 11px 10px 34px;
  border:1px solid #dcc8b5;
  border-radius:12px;
  background:#fffdf9;
  color:#3b2a25;
  box-shadow:0 3px 12px rgba(79,51,39,.035);
}
.atlas-v543 .atlas-search input::placeholder{color:#aa968a}
.atlas-v543 .atlas-search span{color:#8d7569}
.atlas-v543 .atlas-switches{gap:6px;margin:10px 0 13px}
.atlas-v543 .atlas-toggle{
  min-height:37px;padding:8px 7px;
  border:1px solid #decab7;
  border-radius:10px;
  background:#fffaf4;
  color:#765f58;
  font-size:.61rem;
  font-weight:850;
  box-shadow:none;
}
.atlas-v543 .atlas-toggle:hover{border-color:#c3a790;background:#fff5e8;color:#5f4038}
.atlas-v543 .atlas-toggle.on{border-color:#a87581;background:#f4e6e8;color:#6f263e}
.atlas-v543 .atlas-toggle.atlas-blind.on{border-color:#ad706d;background:#f7e5e2;color:#8e403d}
.atlas-v543 .atlas-layer-hint{
  margin:0 0 13px;padding:9px 10px;
  border:1px dashed #d8c2ac;
  border-radius:10px;
  background:#f7eee1!important;
  color:#8a7468;
  font-size:.56rem;line-height:1.45;
}
.atlas-v543 .atlas-section-title{
  margin:12px 0 8px;
  color:#8a394f;
  font-size:.52rem;
  letter-spacing:.13em;
}
.atlas-v543 .atlas-dop-list{gap:6px}
.atlas-v543 .atlas-dop-item{
  padding:10px;
  border:1px solid #dfcdbc;
  border-radius:12px;
  background:#fffdf9;
  color:#3b2924;
  box-shadow:0 3px 10px rgba(75,47,35,.025);
}
.atlas-v543 .atlas-dop-item:hover{transform:none;border-color:#c5a893;background:#fff8ef}
.atlas-v543 .atlas-dop-item.selected{border-color:#9c6372;background:#f7e9eb;box-shadow:inset 3px 0 0 #7a3149}
.atlas-v543 .atlas-dop-item .name{font-size:.71rem}
.atlas-v543 .atlas-dop-item .meta{color:#8e7a70;font-size:.55rem;line-height:1.35}
.atlas-v543 .atlas-course-link{
  margin-top:14px;padding:10px;
  border:1px solid #d6bfaa;
  border-radius:12px;
  background:#f7eee2;
  color:#4a332d;
}
.atlas-v543 .atlas-course-link strong{font-size:.64rem}
.atlas-v543 .atlas-course-link small{color:#887267;font-size:.53rem}
.atlas-v543 .atlas-course-link b{color:#7a3149}

.atlas-v543 .atlas-map-wrap,
#ampeloriaAtlas.atlas-v543[data-atlas-key="rioja"] .atlas-map-wrap,
#ampeloriaAtlas.atlas-v543[data-atlas-key="ribera-del-duero"] .atlas-map-wrap{
  background:#f2e6d6;
}
.atlas-v543 .atlas-map{background:linear-gradient(145deg,#fbf6ed,#eee0cd)}
.atlas-v543 .atlas-map svg{background:transparent}
.atlas-v543 .atlas-zone{transition:fill-opacity .15s,stroke-width .15s,filter .15s}
.atlas-v543 .atlas-zone:hover{fill-opacity:.40!important;filter:drop-shadow(0 2px 3px rgba(75,46,36,.10))}
.atlas-v543 .atlas-item-shape,
#ampeloriaAtlas.atlas-v543[data-atlas-key="rioja"] .atlas-item-shape,
#ampeloriaAtlas.atlas-v543[data-atlas-key="ribera-del-duero"] .atlas-item-shape{
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-dasharray:none!important;
  filter:drop-shadow(0 3px 5px rgba(79,50,39,.08));
}
.atlas-v543 .atlas-item-shape.is-selected{filter:drop-shadow(0 5px 8px rgba(87,48,46,.15))}
.atlas-v543 .atlas-repere-shape,
#ampeloriaAtlas.atlas-v543[data-atlas-key="rioja"] .atlas-repere-shape,
#ampeloriaAtlas.atlas-v543[data-atlas-key="ribera-del-duero"] .atlas-repere-shape{
  fill-opacity:.055!important;
  stroke-width:1.1!important;
  stroke-dasharray:3 6!important;
}
.atlas-v543 .atlas-repere-shape:hover{fill-opacity:.12!important}
.atlas-v543 .atlas-repere-shape.atlas-subzone-active,
#ampeloriaAtlas.atlas-v543[data-atlas-key="ribera-del-duero"] .atlas-repere-shape.atlas-subzone-active{
  fill-opacity:.16!important;
  stroke-width:3.4!important;
  stroke-dasharray:none!important;
}
.atlas-v543 .atlas-map-label,
#ampeloriaAtlas.atlas-v543[data-atlas-key="rioja"] .atlas-map-label,
#ampeloriaAtlas.atlas-v543[data-atlas-key="ribera-del-duero"] .atlas-map-label,
#ampeloriaAtlas.atlas-v543[data-atlas-key="catalogne-priorat"] .atlas-map-label{
  fill:#3c2b25;
  stroke:#fff8ec;
  stroke-width:5px;
  paint-order:stroke;
  font-size:15px;
  font-weight:900;
  letter-spacing:-.02em;
}
.atlas-v543 .atlas-map-label-selected,
#ampeloriaAtlas.atlas-v543[data-atlas-key="catalogne-priorat"] .atlas-map-label-selected{
  fill:#6f263e;
  stroke:#fff8ec;
  stroke-width:6px;
  font-size:17px;
}
.atlas-v543 .atlas-sub-label,
#ampeloriaAtlas.atlas-v543[data-atlas-key="rioja"] .atlas-sub-label,
#ampeloriaAtlas.atlas-v543[data-atlas-key="ribera-del-duero"] .atlas-sub-label,
#ampeloriaAtlas.atlas-v543[data-atlas-key="catalogne-priorat"] .atlas-sub-label{
  fill:#5a4640;
  stroke:#fff8ec;
  stroke-width:4px;
  font-size:9.5px;
  font-weight:800;
}
.atlas-v543 .atlas-river-label,
#ampeloriaAtlas.atlas-v543[data-atlas-key="rioja"] .atlas-river-label,
#ampeloriaAtlas.atlas-v543[data-atlas-key="ribera-del-duero"] .atlas-river-label{
  fill:#607f8d;
  stroke:#f7efe2;
  stroke-width:4px;
  font-size:10px;
  opacity:.92;
  font-style:italic;
}
.atlas-v543 .atlas-marker circle{transition:filter .14s,stroke-width .14s,opacity .14s}
.atlas-v543 .atlas-marker:hover circle,.atlas-v543 .atlas-marker.selected circle{filter:drop-shadow(0 3px 5px rgba(75,47,39,.16))}
.atlas-v543 .atlas-marker circle:first-child{opacity:.74}
.atlas-v543 .atlas-marker.selected circle:first-child{stroke-width:2.2;opacity:1}
.atlas-v543 .atlas-marker.selected circle:last-child{stroke:#fffaf1;stroke-width:3.5}
.atlas-v543 .atlas-map-controls{left:14px;top:14px;gap:5px}
.atlas-v543 .atlas-map-controls button{
  width:36px;height:36px;
  border:1px solid #d5bea8;
  border-radius:10px;
  background:rgba(255,250,242,.94);
  color:#60443b;
  box-shadow:0 5px 14px rgba(74,47,37,.08);
}
.atlas-v543 .atlas-map-controls button:hover{background:#fff;color:#7a3149;border-color:#b99083}
.atlas-v543 .atlas-map-badge{
  left:14px;bottom:14px;
  max-width:min(600px,calc(100% - 28px));
  padding:8px 10px;
  border:1px solid rgba(207,185,163,.9);
  border-radius:10px;
  background:rgba(255,250,242,.90);
  color:#7d6a61;
  font-size:.56rem;
  box-shadow:0 5px 18px rgba(79,50,39,.06);
  backdrop-filter:blur(5px);
}
.atlas-v543 .atlas-map-badge strong{color:#7a3149}
.atlas-v543 .atlas-legend,
#ampeloriaAtlas.atlas-v543[data-atlas-key="rioja"] .atlas-legend,
#ampeloriaAtlas.atlas-v543[data-atlas-key="ribera-del-duero"] .atlas-legend{
  right:14px;top:14px;
  max-width:210px;
  padding:9px 10px;
  border:1px solid #d7c0ab;
  border-radius:11px;
  background:rgba(255,250,242,.92);
  color:#69534a;
  box-shadow:0 6px 18px rgba(79,50,39,.07);
  backdrop-filter:blur(6px);
  font-size:.56rem;
}
.atlas-v543 .atlas-legend>b{display:block;margin-bottom:6px;color:#7a3149;font-size:.54rem;letter-spacing:.09em;text-transform:uppercase}
.atlas-v543 .atlas-legend div{display:flex;align-items:center;gap:4px;margin:4px 0}
.atlas-v543 .atlas-legend span{flex:0 0 8px;width:8px;height:8px;margin-right:2px}
.atlas-v543 .atlas-legend small{margin-left:auto;color:#9a8579;font-size:.5rem}

.atlas-v543 .atlas-detail-head{
  padding-bottom:14px;
  border-bottom:1px solid #eadbcd;
}
.atlas-v543 .atlas-kicker{color:#8a394f;font-size:.51rem;letter-spacing:.14em}
.atlas-v543 .atlas-details h2{
  margin:6px 0 7px;
  color:#3a2823;
  font-family:Georgia,serif;
  font-size:1.7rem;
  font-weight:500;
  line-height:1.05;
}
.atlas-v543 .atlas-lead{color:#7c6960;font-size:.68rem;line-height:1.6}
.atlas-v543 .atlas-layer-cards{gap:7px;margin:14px 0 10px}
.atlas-v543 .atlas-layer-cards button{
  min-height:67px;
  border:1px solid #dfcbbb;
  border-radius:12px;
  background:#fffdf8;
  color:#3d2c26;
  box-shadow:none;
}
.atlas-v543 .atlas-layer-cards button:hover{border-color:#bd9b89;background:#fff7ed;transform:none}
.atlas-v543 .atlas-layer-cards button span{opacity:.78}
.atlas-v543 .atlas-layer-cards button small{color:#8d394e;font-size:.47rem}
.atlas-v543 .atlas-layer-cards button b{font-size:.6rem;line-height:1.35}
.atlas-v543 .atlas-tags{gap:5px;margin:9px 0 14px}
.atlas-v543 .atlas-tag{padding:5px 7px;border:1px solid #e1d0c0;background:#f8efe5;color:#715e55;font-size:.54rem}
.atlas-v543 .atlas-detail-section{padding:12px 0;border-top:1px solid #eadbcd}
.atlas-v543 .atlas-detail-section:first-of-type{border-top:0}
.atlas-v543 .atlas-facts{gap:7px;margin:0}
.atlas-v543 .atlas-fact{
  padding:10px;
  border:1px solid #e1cfbe;
  border-radius:11px;
  background:#fbf5ec;
}
.atlas-v543 .atlas-fact b{color:#452f29;font-size:.82rem}
.atlas-v543 .atlas-fact small{color:#8b786e;font-size:.52rem}
.atlas-v543 .atlas-subzones{gap:6px}
.atlas-v543 .atlas-subzone{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  width:100%;
  padding:9px 10px;
  border:1px solid #dfccba;
  border-radius:10px;
  background:#fffdf9;
  color:#4a342d;
  text-align:left;
  font-size:.61rem;
}
.atlas-v543 .atlas-subzone:hover{border-color:#c2a18e;background:#fff6ec}
.atlas-v543 .atlas-subzone.selected{border-color:#9f6b78;background:#f5e6e8;box-shadow:inset 3px 0 0 #7a3149}
.atlas-v543 .atlas-subzone b{color:#55352f;font-size:.62rem}
.atlas-v543 .atlas-subzone span{color:#9a8579;font-size:.5rem;white-space:nowrap}
.atlas-v543 .atlas-subdetail{
  margin:12px 0;padding:12px;
  border:1px solid #d8c0aa;
  border-radius:14px;
  background:#f7eee2;
}
.atlas-v543 .atlas-subdetail h3{color:#3e2a25}
.atlas-v543 .atlas-subdetail p{color:#806b61}
.atlas-v543 .atlas-subdetail-grid>div{border-color:#dfcbbb;background:#fffaf3;color:#44302a}
.atlas-v543 .atlas-actions{display:grid;grid-template-columns:1fr auto;gap:7px;margin:14px 0}
.atlas-v543 .atlas-action-primary,.atlas-v543 .atlas-action-secondary{
  min-height:38px;padding:9px 10px;border-radius:10px;font-size:.59rem;font-weight:900;text-decoration:none
}
.atlas-v543 .atlas-action-primary{border:1px solid #7a3149;background:#7a3149;color:#fff;box-shadow:0 5px 14px rgba(122,49,73,.15)}
.atlas-v543 .atlas-action-secondary{border:1px solid #d6c0ad;background:#fffaf4;color:#634b43}
.atlas-v543 .atlas-course-jump{grid-column:1/-1;display:flex;align-items:center;justify-content:center}
.atlas-v543 .atlas-detail-notes{padding-bottom:0}
.atlas-v543 .atlas-notes{color:#7e6c63;font-size:.61rem;line-height:1.55}
.atlas-v543 .atlas-detail-notes details{margin-top:9px;padding-top:9px;border-top:1px dashed #ddc8b5}
.atlas-v543 .atlas-detail-notes summary{cursor:pointer;color:#795c53;font-size:.57rem;font-weight:850}
.atlas-v543 .atlas-detail-notes details .atlas-notes{margin-top:7px}
.atlas-v543 .atlas-sourcebox{margin-top:15px;padding-top:12px;border-top:1px solid #eadbcd;color:#9b887d;font-size:.5rem;line-height:1.45}
.atlas-v543 .atlas-question{color:#3d2925}
.atlas-v543 .atlas-answer{border-color:#dfccba;background:#fffdf8;color:#49342d}
.atlas-v543 .atlas-answer.correct{border-color:#83a28c;background:#edf5ef}
.atlas-v543 .atlas-answer.wrong{border-color:#bd8581;background:#f7e9e7}
.atlas-v543 .atlas-feedback{color:#7b6960}
.atlas-v543 .atlas-big-score{color:#7a3149}
.atlas-v543 .atlas-toast{border-color:#d7bfaa;background:#fff9ef;color:#4b342e;box-shadow:0 14px 35px rgba(81,48,40,.16)}

/* Le mode carte muette garde la structure, mais sans gros aplats sombres. */
.atlas-v543 .atlas-blind-active .atlas-item-shape{fill-opacity:.025!important;stroke:#a9988d!important;stroke-dasharray:4 6!important}
.atlas-v543 .atlas-blind-active .atlas-repere-shape{fill-opacity:0!important;stroke:#c0afa2!important}

@media(max-width:1180px){
  .atlas-v543 .atlas-main{grid-template-columns:220px minmax(0,1fr) 300px}
  .atlas-v543 .atlas-title{min-width:180px}
}
@media(max-width:900px){
  .atlas-v543 .atlas-toolbar{gap:8px}
  .atlas-v543 .atlas-main{display:flex;height:auto;min-height:0;flex-direction:column}
  .atlas-v543 .atlas-map-wrap{order:1;height:58vh;min-height:430px;border-bottom:1px solid #dfcdbb}
  .atlas-v543 .atlas-sidebar{order:2;border-right:0;border-bottom:1px solid #dfcdbb}
  .atlas-v543 .atlas-details{order:3;border-left:0;border-top:0}
  .atlas-v543 .atlas-switches{grid-template-columns:repeat(5,minmax(0,1fr))}
  .atlas-v543 .atlas-dop-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .atlas-v543 .atlas-legend{display:block;max-height:160px;overflow:auto}
  .atlas-v543.atlas-left-collapsed .atlas-main,.atlas-v543.atlas-right-collapsed .atlas-main,.atlas-v543.atlas-left-collapsed.atlas-right-collapsed .atlas-main{display:flex}
}
@media(max-width:620px){
  .atlas-v543{border-radius:18px}
  .atlas-v543 .atlas-toolbar{padding:9px;align-items:center}
  .atlas-v543 .atlas-title{min-width:0;flex:1}
  .atlas-v543 .atlas-title>span{width:36px;height:36px}
  .atlas-v543 .atlas-title small{display:none}
  .atlas-v543 .atlas-modes{order:4;width:100%}
  .atlas-v543 .atlas-mode{flex:1;padding:8px 6px}
  .atlas-v543 .atlas-panel-controls{order:2;margin-left:auto}
  .atlas-v543 .atlas-status{order:3;width:100%;display:grid;grid-template-columns:1fr auto}
  .atlas-v543 .atlas-status>div{min-width:0}
  .atlas-v543 .atlas-main{min-height:0}
  .atlas-v543 .atlas-map-wrap{height:52vh;min-height:360px}
  .atlas-v543 .atlas-map-controls{left:9px;top:9px}
  .atlas-v543 .atlas-map-controls button{width:33px;height:33px}
  .atlas-v543 .atlas-map-badge{left:9px;right:9px;bottom:9px;max-width:none;font-size:.51rem}
  .atlas-v543 .atlas-legend{right:9px;top:9px;max-width:155px;max-height:122px;font-size:.49rem}
  .atlas-v543 .atlas-switches{grid-template-columns:repeat(2,minmax(0,1fr))}
  .atlas-v543 .atlas-dop-list{grid-template-columns:1fr}
  .atlas-v543 .atlas-sidebar,.atlas-v543 .atlas-details{padding:13px}
  .atlas-v543 .atlas-details h2{font-size:1.5rem}
  .atlas-v543 .atlas-layer-cards{grid-template-columns:1fr 1fr}
  .atlas-v543 .atlas-facts{grid-template-columns:1fr 1fr}
  .atlas-v543 .atlas-actions{grid-template-columns:1fr 1fr}
  .atlas-v543 .atlas-action-primary{grid-column:1/-1}
  .atlas-v543 .atlas-map-label,
  #ampeloriaAtlas.atlas-v543[data-atlas-key="rioja"] .atlas-map-label,
  #ampeloriaAtlas.atlas-v543[data-atlas-key="ribera-del-duero"] .atlas-map-label{font-size:12px;stroke-width:4px}
  .atlas-v543 .atlas-sub-label{font-size:8px;stroke-width:3px}
}

/* =========================================================
   V5.4.4 — RIGHT PANEL COLOR PASS
   La colonne de lecture devient une vraie fiche de carnet :
   papier chaud, bordeaux profond, cuivre et encre brune.
   ========================================================= */
.atlas-v543 .atlas-details{
  background:
    linear-gradient(180deg,rgba(255,250,243,.98),rgba(247,235,222,.98)),
    repeating-linear-gradient(0deg,rgba(111,76,58,.018) 0,rgba(111,76,58,.018) 1px,transparent 1px,transparent 7px);
  color:#3b2925;
  border-left-color:#d7bda7;
  box-shadow:inset 12px 0 24px rgba(99,65,49,.025);
}
.atlas-v543 .atlas-details .atlas-detail-head{
  padding:2px 1px 15px;
  border-bottom:1px solid #e4cdbb;
}
.atlas-v543 .atlas-details .atlas-kicker,
.atlas-v543 .atlas-details .atlas-section-title{
  color:#88405a;
}
.atlas-v543 .atlas-details h2{
  color:#482a32;
}
.atlas-v543 .atlas-details .atlas-lead{
  color:#735d54;
}

/* Cartes thématiques : crème chaud, plus aucun effet gris froid. */
.atlas-v543 .atlas-details .atlas-layer-cards button{
  border-color:#dcc1ac;
  background:linear-gradient(145deg,#fffaf3,#f9ecdf);
  color:#45302a;
  box-shadow:0 4px 12px rgba(86,53,40,.035);
}
.atlas-v543 .atlas-details .atlas-layer-cards button:hover{
  border-color:#bd8f85;
  background:#fff4e8;
}
.atlas-v543 .atlas-details .atlas-layer-cards button small{
  color:#914a61;
}
.atlas-v543 .atlas-details .atlas-layer-cards button b{
  color:#49322c;
}
.atlas-v543 .atlas-details .atlas-tags{
  margin-top:10px;
}
.atlas-v543 .atlas-details .atlas-tag{
  border-color:#dfc6b2;
  background:#f7e8dc;
  color:#674d45;
}

/* Séparateurs et chiffres-clés. */
.atlas-v543 .atlas-details .atlas-detail-section{
  border-top-color:#e6cfbe;
}
.atlas-v543 .atlas-details .atlas-fact{
  border-color:#dec3ae;
  background:linear-gradient(145deg,#fff8ee,#f6e8dc);
}
.atlas-v543 .atlas-details .atlas-fact b{
  color:#4b2f2b;
}
.atlas-v543 .atlas-details .atlas-fact small{
  color:#846d63;
}

/* Appellations / repères : vraies fiches papier. */
.atlas-v543 .atlas-details .atlas-subzone{
  border-color:#ddc0a9;
  background:#fffaf3;
  color:#4a332d;
  box-shadow:0 2px 8px rgba(82,49,38,.025);
}
.atlas-v543 .atlas-details .atlas-subzone:hover{
  border-color:#bf9184;
  background:#fff1e5;
}
.atlas-v543 .atlas-details .atlas-subzone.selected{
  border-color:#9d6070;
  background:#f3dfe3;
  box-shadow:inset 3px 0 0 #7a3149;
}
.atlas-v543 .atlas-details .atlas-subzone b{
  color:#5d3434;
}
.atlas-v543 .atlas-details .atlas-subzone span{
  color:#8d7469;
}
.atlas-v543 .atlas-details .atlas-subzone.selected span{
  color:#7a3149;
}

/* Fiche d'un repère sélectionné. */
.atlas-v543 .atlas-details .atlas-subdetail{
  border-color:#d5b59e;
  background:linear-gradient(145deg,#f7e7db,#f2dfd1);
  box-shadow:inset 4px 0 0 rgba(122,49,73,.20);
}
.atlas-v543 .atlas-details .atlas-subkind{
  color:#8d4057;
}
.atlas-v543 .atlas-details .atlas-subdetail h3{
  color:#4b2c32;
}
.atlas-v543 .atlas-details .atlas-subdetail p{
  color:#765e55;
}
.atlas-v543 .atlas-details .atlas-subdetail-grid>div{
  border-color:#ddc0aa;
  background:#fff8ef;
  color:#49312b;
}
.atlas-v543 .atlas-details .atlas-subdetail-grid small{
  color:#8b6e62;
}
.atlas-v543 .atlas-details .atlas-subdetail-grid b{
  color:#51362f;
}

/* Actions : bordeaux / crème. Le noir disparaît complètement. */
.atlas-v543 .atlas-details .atlas-action-primary{
  border-color:#712941;
  background:linear-gradient(180deg,#81334f,#6f2943);
  color:#fff8ef;
  box-shadow:0 6px 15px rgba(111,41,67,.16);
}
.atlas-v543 .atlas-details .atlas-action-primary:hover:not(:disabled){
  border-color:#642239;
  background:linear-gradient(180deg,#743049,#612238);
}
.atlas-v543 .atlas-details .atlas-action-secondary{
  border-color:#d4b59d;
  background:#fff9f0;
  color:#65483f;
}
.atlas-v543 .atlas-details .atlas-action-secondary:hover{
  border-color:#b9897d;
  background:#f8eadf;
  color:#652c40;
}
.atlas-v543 .atlas-details .atlas-course-jump{
  border-color:#57303b;
  background:linear-gradient(180deg,#58313d,#482933);
  color:#fff6ea;
  box-shadow:0 5px 13px rgba(72,41,51,.12);
}
.atlas-v543 .atlas-details .atlas-course-jump:hover{
  border-color:#6b3948;
  background:linear-gradient(180deg,#673846,#53303a);
  color:#fffaf3;
}
.atlas-v543 .atlas-details .atlas-action-primary:disabled{
  border-color:#c9a6ad;
  background:#ead7da;
  color:#8e6a72;
  box-shadow:none;
}

/* Notes, source et détails cartographiques. */
.atlas-v543 .atlas-details .atlas-notes{
  color:#745e55;
}
.atlas-v543 .atlas-details .atlas-detail-notes details{
  border-top-color:#d9bda7;
}
.atlas-v543 .atlas-details .atlas-detail-notes summary{
  color:#6e4b42;
}
.atlas-v543 .atlas-details .atlas-sourcebox{
  margin-top:16px;
  padding:12px 11px;
  border:1px solid #dfc4ae;
  border-radius:10px;
  background:#f3e5d8;
  color:#8a7064;
}

/* Mode quiz dans le panneau droit : même palette carnet. */
.atlas-v543 .atlas-details .atlas-question{color:#4a2c32}
.atlas-v543 .atlas-details .atlas-quiz-counter{color:#8a6c61}
.atlas-v543 .atlas-details .atlas-answer{
  border-color:#dcc0aa;
  background:#fff9f1;
  color:#4b332d;
}
.atlas-v543 .atlas-details .atlas-answer:hover{
  border-color:#bd9183;
  background:#fff1e6;
}
.atlas-v543 .atlas-details .atlas-answer.correct{
  border-color:#83a08a;
  background:#edf4ec;
  color:#35543e;
}
.atlas-v543 .atlas-details .atlas-answer.wrong{
  border-color:#bd8581;
  background:#f5e3e1;
  color:#743b37;
}
.atlas-v543 .atlas-details .atlas-feedback{color:#755e55}
.atlas-v543 .atlas-details .atlas-big-score{color:#7a3149}

@media(max-width:900px){
  .atlas-v543 .atlas-details{
    border-left:0;
    border-top:1px solid #d7bda7;
    box-shadow:inset 0 10px 24px rgba(99,65,49,.025);
  }
}

/* =========================================================
   V5.12 — AUDIT FINAL ATLAS
   Normalisation de toutes les vues pays + responsive final.
   ========================================================= */
body.ampeloria-carnet-v50 .atlas-country-page-v540 .atlas-country-map-card{
  position:sticky!important;
  top:92px!important;
  padding:20px!important;
  border:1px solid #d8c5aa!important;
  border-radius:6px 20px 6px 20px!important;
  background:
    radial-gradient(circle at 92% 7%,rgba(113,37,58,.055),transparent 12rem),
    linear-gradient(180deg,#fffaf1 0%,#f7ecdc 100%)!important;
  color:#49382f!important;
  box-shadow:0 16px 42px rgba(75,48,37,.08)!important;
  overflow:hidden;
}
body.ampeloria-carnet-v50 .atlas-country-page-v540 .atlas-country-map-card::before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.23;
  background-image:radial-gradient(circle at 1px 1px,rgba(104,72,48,.16) 1px,transparent 1px);
  background-size:18px 18px;
}
body.ampeloria-carnet-v50 .atlas-country-page-v540 .atlas-country-map-card>*{position:relative;z-index:1}
body.ampeloria-carnet-v50 .atlas-country-page-v540 .atlas-spain-map-head small{color:#8a3049!important}
body.ampeloria-carnet-v50 .atlas-country-page-v540 .atlas-spain-map-head strong{color:#49382f!important}
body.ampeloria-carnet-v50 .atlas-country-page-v540 .atlas-spain-map-head>span{color:#72263d!important}
body.ampeloria-carnet-v50 .atlas-country-page-v540 .atlas-spain-map-note{color:#8a7465!important;line-height:1.55!important}

/* Une seule légende nationale pour les six pays : même densité et mêmes états. */
body.ampeloria-carnet-v50 .atlas-national-key{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px;
  margin:4px 0 12px;padding-top:12px;border-top:1px dashed #d6bea0
}
body.ampeloria-carnet-v50 .atlas-national-key a{
  display:flex;align-items:center;gap:8px;min-width:0;padding:7px 8px;
  border:1px solid rgba(138,101,75,.15);border-radius:4px 10px 4px 10px;
  background:rgba(255,252,245,.62);color:#554238;text-decoration:none!important;
  transition:background .16s,border-color .16s,transform .16s
}
body.ampeloria-carnet-v50 .atlas-national-key a:hover{background:#fffaf0;border-color:#c8a98a;transform:translateY(-1px)}
body.ampeloria-carnet-v50 .atlas-national-key b{
  flex:0 0 auto;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;
  background:#74283f;color:#fff9ef;font-size:.58rem;letter-spacing:.02em
}
body.ampeloria-carnet-v50 .atlas-national-key a>span{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;
  min-width:0;width:100%;overflow:hidden;font-size:.68rem;font-weight:850
}
body.ampeloria-carnet-v50 .atlas-national-key a>span>small{
  margin-left:0;color:#8c7868;font-size:.56rem;font-weight:900
}

/* Les petits pays n'ont pas besoin de devenir des cartes géantes sur desktop. */
.atlas-italie-page-v540 .atlas-country-map,
.atlas-allemagne-page-v540 .atlas-country-map,
.atlas-luxembourg-page-v540 .atlas-country-map{max-height:510px}

/* Le sélecteur pays reste utilisable au clavier et ne casse pas la largeur mobile. */
.atlas-country-switch{scroll-snap-type:x proximity;overscroll-behavior-inline:contain}
.atlas-country-switch a{scroll-snap-align:start}
.atlas-country-switch a:focus-visible,.atlas-region-tabs a:focus-visible,.atlas-national-key a:focus-visible{
  outline:3px solid rgba(122,49,73,.28);outline-offset:2px
}

@media(max-width:1180px){
  body.ampeloria-carnet-v50 .atlas-country-page-v540 .atlas-country-map-card{
    position:relative!important;top:auto!important;max-width:760px;margin-inline:auto
  }
  body.ampeloria-carnet-v50 .atlas-national-key{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
  body.ampeloria-carnet-v50 .atlas-country-page-v540 .atlas-country-map-card{
    padding:14px!important;border-radius:5px 16px 5px 16px!important
  }
  body.ampeloria-carnet-v50 .atlas-national-key{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  body.ampeloria-carnet-v50 .atlas-national-key a{padding:6px}
  body.ampeloria-carnet-v50 .atlas-national-key b{width:23px;height:23px}
  body.ampeloria-carnet-v50 .atlas-national-key a>span{font-size:.64rem}
  .atlas-country-switch{padding:3px;gap:4px}
  .atlas-country-switch a{padding:7px 10px;font-size:.63rem}
}
@media(max-width:420px){
  body.ampeloria-carnet-v50 .atlas-national-key{grid-template-columns:1fr 1fr}
  body.ampeloria-carnet-v50 .atlas-national-key a>span{font-size:.6rem;gap:4px}
}
