





















*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --at-encre:   #0f172a;
  --at-texte:   #334155;
  --at-doux:    #586880;    
  --at-accent:  #30c39e;
  --at-bord:    #e2e8f0;
  --at-barre-h: 56px;
}

 

html { background: #e4e8f2; -webkit-text-size-adjust: 100%; }
body.at-body {
   
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #eef0f4 0%, #d8dce4 100%);
  background-attachment: fixed;
  color: var(--at-texte);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.at-topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 14px;
  height: var(--at-barre-h); padding: 0 22px;
  background: linear-gradient(180deg, #1e293b 0%, #16233a 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 2px 14px rgba(15,23,42,0.18);
}
.at-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.at-brand img { display: block; width: 34px; height: 34px; }
.at-brand-nom { color: #fff; font-size: 1.05em; font-weight: 800; letter-spacing: -0.2px; }
.at-topbar-sep { width: 1px; height: 22px; background: rgba(255,255,255,0.14); }
.at-topbar-titre { color: #cbd5e1; font-size: 0.9em; font-weight: 600; }
.at-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }


.at-btn-ghost {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 8px 18px; font-size: 0.82em; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  color: #cbd5e1; border: 1px solid rgba(255,255,255,0.16);
  transition: color .2s ease, border-color .2s ease;
}
.at-btn-ghost:hover { color: #fff; border-color: rgba(48,195,158,0.55); }
.at-main {
  flex: 1;
  width: 100%; max-width: 1280px;
  margin: 0 auto; padding: 12px 26px 40px;
}





.at-titre-lecteur {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}





.at-foot {
  border-top: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.55);
  padding: 16px 26px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.at-foot-note {
  flex-basis: 100%; order: -1;
  color: var(--at-doux); font-size: 0.78em; line-height: 1.55;
  padding-bottom: 12px; border-bottom: 1px solid rgba(15,23,42,0.06);
}
.at-foot .footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.at-foot .footer-links a { color: var(--at-doux); text-decoration: none; font-size: 0.83em; transition: color .2s; }
.at-foot .footer-links a:hover { color: var(--at-accent); }
.at-foot .footer-social { display: flex; align-items: center; gap: 10px; }
.at-foot .footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid rgba(15,23,42,0.10);
  color: var(--at-doux); text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
}
.at-foot .footer-social a:hover { color: var(--at-accent); border-color: var(--at-accent); background: rgba(48,195,158,0.07); }
.at-foot .footer-copy { color: #94a3b8; font-size: 0.8em; }

 



.at-main .content-section { display: block; }
[data-section="tools"] a { color: #1d4ed8; }

 










@media (max-width: 768px) {
  [data-section="tools"] .calc-main-content { padding: 0; }
}

 







.at-hub { display: none; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }
.at-hub[hidden] { display: none; }
@media (max-width: 768px) { .at-hub:not([hidden]) { display: grid; } }



.at-hub-carte {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px;
  padding: 16px 14px 14px; min-height: 92px;
  background: linear-gradient(135deg, #fff 0%, rgba(var(--section-rgb, 100, 116, 139), 0.185) 100%);
  border: 1px solid rgba(var(--section-rgb, 100, 116, 139), 0.28);
  border-left: 4px solid rgb(var(--section-rgb, 100, 116, 139));
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.05);
  text-align: left; cursor: pointer; font: inherit; color: inherit;
  transition: transform .12s ease;
}
.at-hub-carte:active { transform: scale(0.97); }
.at-hub-watermark {
  position: absolute; right: -16px; top: 50%; transform: translateY(-50%);
  width: 88px; height: 88px; display: flex; align-items: center; justify-content: center;
  opacity: 0.23; pointer-events: none;
  color: rgb(var(--section-rgb, 100, 116, 139));
}
.at-hub-watermark .oi { font-size: 68px; }
.at-hub-watermark .oi svg { stroke-width: 1.4; }
.at-pback { font-size: 18px; }
.at-hub-nom { font-size: 16px; font-weight: 800; color: #334155; line-height: 1.2; letter-spacing: -0.2px; white-space: pre-line; position: relative; z-index: 1; }
.at-hub-desc { display: none; }

 
.at-pbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1200;
  display: flex; align-items: center; gap: 12px;
  height: calc(52px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 14px 0;
  background: #fff; border-bottom: 1px solid var(--at-bord);
  box-shadow: 0 2px 10px rgba(15,23,42,0.06);
}
.at-pbar[hidden] { display: none; }
.at-pback {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: none; background: #f1f5f9; color: #334155; font-size: 15px; cursor: pointer;
}
.at-pback:active { background: #e2e8f0; }
.at-pbar-titre { font-size: 16px; font-weight: 800; color: var(--at-encre); }

@media (max-width: 768px) {
  .at-main { padding: 16px 14px 28px; }

   
  [data-section="tools"] .calc-tabs { display: none !important; }

   
  [data-section="tools"] .tab-panel,
  [data-section="tools"] .tab-panel.active { display: none; }

   
  body.at-outil-ouvert { overflow: hidden; }
  body.at-outil-ouvert [data-section="tools"] .tab-panel.active {
    display: block;
    position: fixed; inset: 0; z-index: 1100;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: linear-gradient(135deg, #eef0f4 0%, #d8dce4 100%);
    padding: calc(52px + env(safe-area-inset-top, 0px)) 14px calc(24px + env(safe-area-inset-bottom, 0px));
    animation: none;
  }

  



  body.at-outil-ouvert [data-section="tools"] .tab-panel.active .calc-container > .calc-card:first-child > .calc-card-header { display: none; }

  



  body.at-outil-ouvert [data-section="tools"] .tab-panel.active:focus { outline: none; }
  body.at-outil-ouvert [data-section="tools"] .tab-panel.active:focus-visible {
    outline: 2px solid var(--at-accent); outline-offset: -2px;
  }

   
  [data-section="tools"] .calc-card { border-radius: 16px; }
  [data-section="tools"] .calc-card-body { padding: 18px 15px; }
  

  [data-section="tools"] .circuit-type-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  [data-section="tools"] .circuit-type-btn { padding: 10px 4px; min-height: 58px; }
  [data-section="tools"] .circuit-type-btn i { font-size: 18px; margin-bottom: 4px; }
  [data-section="tools"] .circuit-type-btn span { font-size: 10.5px; line-height: 1.2; display: block; }
  [data-section="tools"] .calc-btn { padding: 15px 20px; font-size: 15px; }
  


  [data-section="tools"] .form-group input,
  [data-section="tools"] .form-group select,
  [data-section="tools"] .input-with-unit input { font-size: 16px !important; }

  

  .at-topbar { padding: 0 14px; gap: 10px; }
  .at-topbar-sep, .at-topbar-titre { display: none; }
  .at-brand-nom { font-size: 0.98em; }

  

  .at-foot { padding: 16px 14px; gap: 10px; }
  .at-foot .footer-links { gap: 10px 14px; justify-content: center; flex: 1 1 100%; }
  .at-foot .footer-links a { font-size: 0.78em; }
  .at-foot .footer-social { gap: 14px; margin: 0 auto; }
  .at-foot .footer-social a { width: auto; height: auto; border: none; }
  .at-foot .footer-copy { width: 100%; text-align: center; order: 3; }
}

@media (max-width: 400px) {
  .at-topbar-libre { display: none; }
  .at-hub-carte { min-height: 108px; padding: 14px 12px; }
  [data-section="tools"] .circuit-type-btn span { font-size: 10px; }
}



@media (min-width: 769px) and (max-width: 1100px) {
  .at-main { padding: 20px 18px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-section="tools"] .tab-panel { animation: none !important; }
  .at-btn:hover { transform: none; }
}

 













@media (max-width: 768px) {
   
  .at-pback { width: 44px; height: 44px; }

   
  body.at-outil-ouvert [data-section="tools"] .tab-panel.active {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
  body.at-outil-ouvert [data-section="tools"] .tab-panel.active .calc-btn {
    position: fixed; z-index: 1150;
    left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: auto !important; margin: 0 !important; min-height: 50px;
    box-shadow: 0 10px 28px rgba(15,23,42,0.24) !important;
  }
   
  body.at-outil-ouvert.at-resultat [data-section="tools"] .tab-panel.active .calc-btn { right: 148px; }

  .at-chip {
    display: none; position: fixed; z-index: 1150;
    right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: 124px; min-height: 50px; padding: 0 12px 0 12px;
    align-items: center; gap: 9px; text-align: left;
    border: 0; border-radius: 12px; background: #0f172a; color: #fff;
    font: inherit; cursor: pointer;
    box-shadow: 0 10px 28px rgba(15,23,42,0.24);
  }
  body.at-outil-ouvert.at-resultat .at-chip { display: inline-flex; }
  .at-chip:active { background: #1e293b; }
  .at-chip-dot {
    flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%;
    background: #94a3b8; box-shadow: 0 0 0 3px rgba(255,255,255,0.10);
  }
  .at-chip[data-etat="success"] .at-chip-dot { background: #34d399; }
  .at-chip[data-etat="warning"] .at-chip-dot { background: #fbbf24; }
  .at-chip[data-etat="error"]   .at-chip-dot { background: #f87171; }
  .at-chip-col { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
  .at-chip-cap { font-size: 9.5px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: #94a3b8; }
  .at-chip-txt { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  





  body.at-outil-ouvert [data-section="tools"] .tab-panel.active::after {
    content: ""; position: fixed; inset: 0; z-index: 1250;
    background: rgba(15,23,42,0.45);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s ease, visibility 0s linear .25s;
  }
  body.at-outil-ouvert.at-feuille [data-section="tools"] .tab-panel.active::after {
    opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .25s ease;
  }
  body.at-outil-ouvert.at-feuille [data-section="tools"] .tab-panel.active { z-index: 1400; overflow: hidden; }

   
  body.at-outil-ouvert [data-section="tools"] .tab-panel.active .results-panel {
    position: fixed; z-index: 1300; left: 0; right: 0; bottom: 0;
    max-height: 86vh; max-height: 86dvh;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -8px 30px rgba(15,23,42,0.18);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateY(105%); visibility: hidden;
    transition: transform .32s cubic-bezier(.2,.7,.2,1), visibility 0s linear .32s;
  }
  body.at-outil-ouvert.at-feuille [data-section="tools"] .tab-panel.active .results-panel {
    transform: none; visibility: visible;
    transition: transform .32s cubic-bezier(.2,.7,.2,1);
  }
   
  body.at-outil-ouvert [data-section="tools"] .tab-panel.active .results-header {
    position: sticky; top: 0; z-index: 2;
    padding: 22px 16px 14px;
    gap: 8px; flex-wrap: wrap;
  }
  body.at-outil-ouvert [data-section="tools"] .tab-panel.active .results-header::before {
    content: ""; position: absolute; top: 8px; left: 50%;
    width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: #cbd5e1;
  }
  body.at-outil-ouvert [data-section="tools"] .tab-panel.active .results-header h3 { margin-right: auto; }
  body.at-outil-ouvert [data-section="tools"] .tab-panel.active .results-body { padding: 16px 16px 20px; }

   
  .at-feuille-fermer { display: none; }
  body.at-outil-ouvert [data-section="tools"] .tab-panel.active .at-feuille-fermer {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    border: 1px solid var(--at-bord); background: #fff; color: #334155; cursor: pointer;
    font-size: 16px;
  }
  .at-feuille-fermer:active { background: #f1f5f9; }
}
 
@media (min-width: 769px) {
  .at-chip, .at-feuille-fermer { display: none !important; }
  [data-section="tools"] .tab-panel::after { content: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  [data-section="tools"] .tab-panel::after, [data-section="tools"] .results-panel { transition: none !important; }
}








:root[data-theme="dark"] {
  --at-encre: #eef2f8;
  --at-texte: #c3cbdb;
  --at-doux:  #94a1b8;
  --at-bord:  #2c3b5c;
}
:root[data-theme="dark"] html, :root[data-theme="dark"] { background: #0b1220; }
:root[data-theme="dark"] body.at-body { background: linear-gradient(135deg, #111a2e 0%, #0b1220 100%); }
:root[data-theme="dark"] .at-topbar { background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%); border-bottom-color: rgba(255,255,255,0.08); }
:root[data-theme="dark"] [data-section="tools"] a { color: #8ab4ff; }
:root[data-theme="dark"] .at-hub-carte {
  background: linear-gradient(135deg, #172238 0%, rgba(var(--section-rgb, 100, 116, 139), 0.23) 100%);
  border-color: rgba(var(--section-rgb, 100, 116, 139), 0.32);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
:root[data-theme="dark"] .at-hub-watermark { opacity: 0.22; }
:root[data-theme="dark"] .at-hub-nom { color: #dfe6f2; }
:root[data-theme="dark"] .at-pbar { background: #172238; border-bottom-color: #2c3b5c; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
:root[data-theme="dark"] .at-pback { background: #223150; color: #dde4ef; }
:root[data-theme="dark"] .at-pback:active { background: #2c3b5c; }
:root[data-theme="dark"] .at-chip { background: #e8edf5; color: #0f172a; box-shadow: 0 10px 28px rgba(0,0,0,0.45); }
:root[data-theme="dark"] .at-chip:active { background: #d5dce8; }
:root[data-theme="dark"] .at-chip-cap { color: #64748b; }
:root[data-theme="dark"] .at-chip-dot { box-shadow: 0 0 0 3px rgba(15,23,42,0.08); }
 
:root[data-theme="dark"] body.at-outil-ouvert [data-section="tools"] .tab-panel.active .at-feuille-fermer { background: #1d2a44; border-color: #2c3b5c; color: #dde4ef; }
:root[data-theme="dark"] body.at-outil-ouvert [data-section="tools"] .tab-panel.active .at-feuille-fermer:active { background: #223150; }
:root[data-theme="dark"] .at-foot { background: rgba(15,23,42,0.55); border-top-color: rgba(255,255,255,0.08); }
:root[data-theme="dark"] .at-foot-note { border-bottom-color: rgba(255,255,255,0.06); }
:root[data-theme="dark"] .at-foot .footer-links a { color: #94a1b8; }
:root[data-theme="dark"] .at-foot .footer-social a { color: #94a1b8; border-color: rgba(255,255,255,0.12); }
:root[data-theme="dark"] .at-foot .footer-copy { color: #64748b; }
@media (max-width: 768px) {
  :root[data-theme="dark"] body.at-outil-ouvert [data-section="tools"] .tab-panel.active { background: linear-gradient(135deg, #111a2e 0%, #0b1220 100%); }
  :root[data-theme="dark"] body.at-outil-ouvert [data-section="tools"] .tab-panel.active .results-panel { box-shadow: 0 -8px 30px rgba(0,0,0,0.45); }
  :root[data-theme="dark"] body.at-outil-ouvert [data-section="tools"] .tab-panel.active .results-header::before { background: #3b4b6a; }
  :root[data-theme="dark"] body.at-outil-ouvert [data-section="tools"] .tab-panel.active::after { background: rgba(2,6,23,0.6); }
}

 
.at-install { display: none; }
@media (max-width: 768px) {
  .at-install:not([hidden]) {
    display: flex; align-items: center; gap: 12px;
    margin: 14px 0 4px; padding: 12px 12px 12px 14px;
    background: #fff; border: 1px solid var(--at-bord); border-radius: 14px;
    box-shadow: 0 2px 10px rgba(15,23,42,0.05);
  }
  body.at-outil-ouvert .at-install { display: none; }
  .at-install-ico { width: 36px; height: 36px; border-radius: 10px; background: #0f172a; color: #fff; font-size: 18px; flex-shrink: 0; }
  .at-install-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
  .at-install-txt b { font-size: 13.5px; color: var(--at-encre); }
  .at-install-txt span { font-size: 12px; color: var(--at-doux); line-height: 1.35; }
  .at-install-btn { padding: 9px 14px; border-radius: 10px; border: 0; background: #0f172a; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
  .at-install-btn[hidden] { display: none; }
  .at-install-x { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--at-doux); font-size: 20px; line-height: 1; cursor: pointer; flex-shrink: 0; }
  :root[data-theme="dark"] .at-install:not([hidden]) { background: #172238; border-color: #2c3b5c; }
  :root[data-theme="dark"] .at-install-ico, :root[data-theme="dark"] .at-install-btn { background: #e8edf5; color: #0f172a; }
}
