/*
 * Single CSS
 * Styles pour les pages de détail individuelles (articles, actualités).
 */

.ant-news-featured { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 14px; margin-bottom: 24px; }
.ant-news-body { font-size: 1rem; line-height: 1.8; }
.ant-news-gallery { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--ant-line); }
.ant-news-gallery h2 { font-family: Georgia, 'Times New Roman', serif; color: var(--ant-blue); font-size: 1.7rem; margin: 0 0 18px; }
.ant-news-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ant-news-gallery-grid a { display: block; overflow: hidden; border-radius: 10px; background: #e7ebf2; aspect-ratio: 4/3; }
.ant-news-gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.ant-news-gallery-grid a:hover img { transform: scale(1.025); }

@media (max-width: 900px) {
  .ant-news-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .ant-news-gallery-grid { grid-template-columns: 1fr; }
  .ant-news-featured { max-height: none; }
}

/* Présentation & historique */
.ant-history-hero{background-size:cover;background-position:center;color:#fff;padding:68px 0 64px;border-bottom:3px solid #fecb00}
.ant-history-hero .ant-breadcrumb,.ant-history-hero .ant-breadcrumb a{color:rgba(255,255,255,.82)}
.ant-history-kicker{display:inline-block;margin:18px 0 8px;color:#f6d470;font-weight:800;letter-spacing:.12em;text-transform:uppercase;font-size:.78rem}
.ant-history-hero h1{max-width:900px;margin:0;font-family:Georgia,'Times New Roman',serif;font-size:clamp(2rem,4vw,3.2rem);line-height:1.1;color:#fff}
.ant-history-hero p{margin:14px 0 0;font-family:Georgia,'Times New Roman',serif;font-style:italic;font-size:1.1rem;color:rgba(255,255,255,.9)}
.ant-history-section{padding:52px 0 70px;background:#f7f9fc}
.ant-history-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:42px;align-items:start}
.ant-history-aside{position:sticky;top:74px;background:#fff;border:1px solid #e1e7ef;border-top:4px solid #fecb00;border-radius:10px;padding:20px;box-shadow:0 8px 26px rgba(0,38,100,.05)}
.ant-history-aside strong{display:block;color:#002664;font-family:Georgia,'Times New Roman',serif;margin-bottom:12px}
.ant-history-aside a{display:block;padding:8px 0;border-bottom:1px solid #edf1f6;color:#334155;font-size:.9rem}
.ant-history-content{background:#fff;border:1px solid #e1e7ef;border-radius:12px;padding:36px 42px;box-shadow:0 10px 32px rgba(0,38,100,.05)}
.ant-history-lead{font-size:1.12rem;line-height:1.8;color:#334155;border-left:4px solid #fecb00;padding-left:18px;margin-top:0}
.ant-history-content h2{scroll-margin-top:90px;margin:38px 0 14px;color:#002664;font-family:Georgia,'Times New Roman',serif;font-size:1.7rem}
.ant-history-content p{font-size:1rem;line-height:1.85;color:#334155}
.ant-history-timeline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}
.ant-history-year{display:grid;grid-template-columns:72px 1fr;gap:14px;align-items:start;padding:16px;border:1px solid #e5eaf1;border-radius:9px;background:#fbfcfe}
.ant-history-year strong{font-family:Georgia,'Times New Roman',serif;font-size:1.25rem;color:#b77800}
.ant-history-year span{color:#475569;line-height:1.55;font-size:.92rem}
@media(max-width:850px){.ant-history-layout{grid-template-columns:1fr}.ant-history-aside{position:static}.ant-history-timeline{grid-template-columns:1fr}}
@media(max-width:560px){.ant-history-hero{padding:44px 0}.ant-history-content{padding:24px 20px}.ant-history-year{grid-template-columns:60px 1fr}}

.ant-history-hero .ant-breadcrumb ol{display:flex;align-items:center;gap:8px;flex-wrap:wrap;list-style:none;margin:0;padding:0}
.ant-history-hero .ant-breadcrumb li{display:inline-flex;align-items:center;margin:0;padding:0;color:rgba(255,255,255,.82);font-size:.85rem}
.ant-history-hero .ant-breadcrumb .separator{opacity:.55}

/* Finition page Présentation : titre sur 2 lignes + bannière intégrale */
.ant-history-hero{background-size:100% auto!important;background-repeat:no-repeat;background-position:center top!important;background-color:#001944;min-height:clamp(410px,30.5vw,590px);display:flex;align-items:center}
.ant-history-hero>.ant-container{width:min(1240px,calc(100% - 32px));text-align:center}
.ant-history-hero .ant-breadcrumb{margin-bottom:24px;text-align:left}
.ant-history-title{max-width:1180px!important;margin:0 auto!important;text-align:center}
.ant-history-title span{display:block}
.ant-history-hero p{text-align:center}
@media(max-width:900px){.ant-history-hero{background-size:cover!important;background-position:center!important;min-height:430px}.ant-history-title{font-size:clamp(2rem,6vw,3rem)!important}}
@media(max-width:560px){.ant-history-hero{min-height:390px}.ant-history-title span{display:inline}.ant-history-title span+span::before{content:" "}.ant-history-hero .ant-breadcrumb{margin-bottom:18px}}

/* Titre historique : exactement deux lignes sur desktop */
@media(min-width:901px){
.ant-history-title{max-width:1560px!important;font-size:clamp(2.35rem,3.05vw,3.35rem)!important;line-height:1.08!important}
.ant-history-title span{white-space:nowrap}
}

@media(min-width:901px){
.ant-history-hero>.ant-container{width:min(1600px,calc(100% - 64px))}
.ant-history-hero .ant-breadcrumb{max-width:1240px;margin-left:auto;margin-right:auto}
}
