/* Start custom CSS *//* ==============================================================
   SDDF | SECTION 11 — CSS PERSONNALISÉ CONSOLIDÉ
   Basé sur le CSS fourni et validé visuellement.
   Styles regroupés par bloc, sans changement volontaire de rendu.
   Section 11 uniquement ; images 1 et 2 traitées séparément.
   À utiliser en remplacement intégral du CSS de page précédent.
   =============================================================== */

/* 01 — Une largeur normale pour CHAQUE flexbox racine */
.sddf11-root {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 1020px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  color: #29475a;
  font-family: Montserrat, Arial, sans-serif;
}
.sddf11-root, .sddf11-root * {box-sizing: border-box !important;}
.sddf11-root :is(h1,h2,h3,h4,p) {
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  text-align: left;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}
.sddf11-root a {color: #176583 !important; text-underline-offset: 3px;}
.sddf11-root a:hover {color: #2a8068 !important;}
.sddf11-root [id^="sddf-11-"] {scroll-margin-top: 110px;}

/* 02 — En-tête : version validée */

#sddf11-root-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1020px !important;
    min-width: 0 !important;
    margin: 0 auto 22px !important;
    padding: 0 !important;
    gap: 16px !important;
}

#sddf11-root-hero > .sddf11-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 36px 38px !important;
    gap: 15px !important;
    background: linear-gradient(
        115deg, #E5F0F7, #F7FBFC 65%, #E8F3ED
    ) !important;
    border: 1px solid #CFDFE8 !important;
    border-left: 5px solid #28789F !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 25px rgba(25,59,86,.07) !important;
}

#sddf11-root-hero .sddf11-title {
    font-size: clamp(27px, 3vw, 35px) !important;
    line-height: 1.3 !important;
    color: #193B56 !important;
    width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
}

#sddf11-root-hero .sddf11-lead {
    font-size: 17px !important;
    line-height: 1.7 !important;
    color: #345368 !important;
    width: 100% !important;
}

#sddf11-root-hero .sddf11-actions a {
    display: inline-block !important;
    padding: 9px 15px !important;
    margin: 4px 8px 4px 0 !important;
    background: #FFFFFF !important;
    color: #176281 !important;
    border: 1px solid #CBDDE6 !important;
    border-radius: 9px !important;
    text-decoration: none !important;
    font-weight: 650 !important;
}

/* 03 — Quatre indicateurs : version validée */

#sddf11-root-metrics {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 1020px !important;
    min-width: 0 !important;
    margin: 0 auto 24px !important;
    padding: 0 !important;
}

#sddf11-root-metrics > div {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

#sddf11-root-metrics .sddf11-metric {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 130px !important;
    padding: 20px 12px !important;
    gap: 8px !important;
    background: #FFFFFF !important;
    border: 1px solid #D7E5E9 !important;
    border-top: 4px solid #28789F !important;
    border-radius: 14px !important;
    box-shadow: 0 5px 16px rgba(25,59,86,.055) !important;
    text-align: center !important;
}

#sddf11-root-metrics .sddf11-metric:nth-child(even) {
    border-top-color: #2E7D6B !important;
}

#sddf11-root-metrics .sddf11-metric h3 {
    font-size: 28px !important;
    line-height: 1.2 !important;
    color: #216F8A !important;
    margin: 0 !important;
}

#sddf11-root-metrics .sddf11-metric p {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    text-align: center !important;
}

/* Détails typographiques de l'en-tête conservés */
.sddf11-root-hero .sddf11-eyebrow {font-size: 12px !important; font-weight: 700 !important; letter-spacing: 1px; color: #27778c !important;}
.sddf11-root-hero .sddf11-title {font-weight: 750 !important;}
.sddf11-root-hero .sddf11-actions {font-size: 14px !important; line-height: 1.65 !important;}

/* 04 — Introduction et sommaire */
.sddf11-root-position .sddf11-position-card,
.sddf11-root-toc .sddf11-toc-card {
  width: 100% !important;
  max-width: 100% !important;
  padding: 25px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
  border-radius: 15px !important;
}
.sddf11-root-position .sddf11-position-card {border: 1px solid #dceae6 !important; border-left: 5px solid #388675 !important; background: #eff8f5 !important;}
.sddf11-root-toc .sddf11-toc-card {border: 1px solid #deeaef !important; background: #f5f9fb !important;}
.sddf11-root-position h2, .sddf11-root-toc h2 {font-size: 24px !important; line-height: 1.35 !important; color: #173b54 !important;}
.sddf11-root-position p {font-size: 15px !important; line-height: 1.68 !important;}
.sddf11-root-toc .sddf11-toc-columns {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 15px !important;
  width: 100% !important;
  align-items: start !important;
}
.sddf11-root-toc .sddf11-toc-columns > div {width: 100% !important; min-width: 0 !important; max-width: 100% !important; display: flex !important; flex-direction: column !important; gap: 7px !important;}
.sddf11-root-toc .sddf11-toc-columns p {padding: 9px 11px !important; border: 1px solid #e1e9ee; border-radius: 7px; background: #fff; font-size: 14px !important; line-height: 1.5 !important;}
.sddf11-root-toc .sddf11-toc-columns a {text-decoration: none !important;}

/* 05 — Les 14 chapitres, sans largeurs contradictoires */
.sddf11-root .sddf11-chapter {
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: 90px minmax(0,1fr) !important;
  gap: 19px !important;
  align-items: start !important;
  padding: 24px !important;
  border: 1px solid #dce7ec !important;
  border-left: 4px solid #327c9b !important;
  border-radius: 15px !important;
  background: #fff !important;
}
.sddf11-root .sddf11-chapter-alt {border-left-color: #37836e !important; background: #f4faf7 !important;}
.sddf11-root .sddf11-index {
  width: 90px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 14px 7px !important;
  border-radius: 9px !important;
  background: #e5f1f6 !important;
}
.sddf11-root .sddf11-chapter-alt .sddf11-index {background: #e0f0e8 !important;}
.sddf11-root .sddf11-index h3 {font-size: 27px !important; line-height: 1.1 !important; color: #28789f !important; text-align: center !important;}
.sddf11-root .sddf11-index h2 {font-size: 10px !important; line-height: 1.35 !important; color: #547181 !important; text-align: center !important;}
.sddf11-root .sddf11-chapter-body {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 11px !important;
  background: transparent !important;
}
.sddf11-root .sddf11-chapter-body > h2 {font-size: clamp(19px, 2.2vw, 24px) !important; line-height: 1.34 !important; color: #193b56 !important;}
.sddf11-root .sddf11-chapter-body p {font-size: 15px !important; line-height: 1.68 !important; color: #304a5b !important;}
.sddf11-root .sddf11-chapter-body a[href="#sddf-11-sommaire"] {font-size: 13px; font-weight: 650;}

/* 06 — Deux panneaux pour insertion de photographies.
   Les textes de substitution restent visibles jusqu'à leur remplacement. */
.sddf11-photo-panel {
  display: grid !important;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr) !important;
  align-items: stretch !important;
  gap: 0 !important;
  overflow: hidden !important;
  border: 1px solid #dce7ec !important;
  border-radius: 15px !important;
  background: #fff !important;
}
.sddf11-photo-panel.sddf11-photo-reverse {grid-template-columns: minmax(0, 58fr) minmax(0, 42fr) !important;}
.sddf11-photo-reverse .sddf11-image-frame {order: 2;}
.sddf11-photo-reverse .sddf11-image-caption {order: 1;}
.sddf11-photo-panel .sddf11-image-frame,
.sddf11-photo-panel .sddf11-image-caption {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 25px !important;
}
.sddf11-photo-panel .sddf11-image-frame {min-height: 220px; background: #e6f1f4 !important;}
.sddf11-photo-reverse .sddf11-image-frame {background: #e8f4ed !important;}
.sddf11-photo-panel .sddf11-image-frame img {display: block !important; width: 100% !important; max-width: 100% !important; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px;}
.sddf11-photo-panel .sddf11-image-kicker,.sddf11-photo-panel .sddf11-photo-eyebrow {font-size: 11px !important; font-weight: 750 !important; letter-spacing: .7px; color: #287b80 !important;}
.sddf11-photo-panel .sddf11-image-label,.sddf11-photo-panel .sddf11-photo-heading {font-size: 22px !important; line-height: 1.3 !important; color: #173b54 !important;}
.sddf11-photo-panel .sddf11-image-note,.sddf11-photo-panel .sddf11-photo-description {font-size: 14px !important; line-height: 1.68 !important;}

/* 07 — Image 2 : texte au-dessus, visuel panoramique sans recadrage */
#sddf11-photo-2 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 1020px !important;
    margin: 20px auto !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
    border: 1px solid #DCE7EC !important;
    border-radius: 16px !important;
    background: #FFFFFF !important;
}

/* Ancien texte de gauche : rétabli au-dessus */
#sddf11-photo-2 .sddf11-image-caption {
    display: flex !important;
    flex-direction: column !important;
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 25px 30px !important;
    gap: 12px !important;
    background: #F0F8F5 !important;
    border-bottom: 3px solid #69AC83 !important;
}

/* Image en dessous */
#sddf11-photo-2 .sddf11-image-frame {
    display: flex !important;
    flex-direction: column !important;
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #FFFFFF !important;
}

/* Image intégralement visible */
#sddf11-photo-2 .sddf11-image-frame img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    border-radius: 0 !important;
}

/* 08 — Trois encadrés éditoriaux */
.sddf11-editorial-note > .sddf11-editorial-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  padding: 22px 25px !important;
  border: 1px solid #d9e8ec !important;
  border-left: 5px solid #2b80a0 !important;
  border-radius: 13px !important;
  background: #eff7fa !important;
}
#sddf11-note-financement > .sddf11-editorial-inner {background: #eef8f2 !important; border-left-color: #38836b !important;}
#sddf11-note-evaluation > .sddf11-editorial-inner {background: #f2f5fb !important; border-left-color: #627fa4 !important;}
.sddf11-editorial-note .sddf11-note-eyebrow {font-size: 11px !important; font-weight: 750 !important; color: #287b80 !important; letter-spacing: .8px;}
.sddf11-editorial-note .sddf11-note-title {font-size: 21px !important; line-height: 1.3 !important; color: #173b54 !important;}
.sddf11-editorial-note .sddf11-note-body {font-size: 15px !important; line-height: 1.7 !important;}

/* 09 — Sources / navigation */
.sddf11-root-references .sddf11-references-card,
.sddf11-root-navigation .sddf11-footer {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 13px !important;
  padding: 24px !important;
  border: 1px solid #dce7ec !important;
  border-radius: 14px !important;
  background: #f5f9fb !important;
}
.sddf11-root-references h2 {font-size: 23px !important; line-height: 1.35 !important; color: #193b56 !important;}
.sddf11-root-references .sddf11-ref-grid {display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 10px !important; width: 100% !important;}
.sddf11-root-references .sddf11-ref-grid > * {width: 100% !important; min-width: 0 !important; max-width: 100% !important; padding: 11px 13px !important; border: 1px solid #dfebee !important; border-radius: 8px; background: #fff !important;}
.sddf11-root-navigation .sddf11-footer {background: #eef7f3 !important;}
.sddf11-root-navigation a {font-weight: 650;}

/* 10 — Tablette / téléphone */
@media(max-width: 820px) {
  .sddf11-root .sddf11-chapter {grid-template-columns: 76px minmax(0,1fr) !important; padding: 20px !important; gap: 14px !important;}
  .sddf11-root .sddf11-index {width: 76px !important;}
}
@media(max-width: 620px) {
  .sddf11-root {margin-bottom: 13px !important;}
  .sddf11-root-hero > .sddf11-hero {padding: 22px 18px !important;}
  .sddf11-root-position .sddf11-position-card,.sddf11-root-toc .sddf11-toc-card {padding: 19px !important;}
  .sddf11-root-toc .sddf11-toc-columns {grid-template-columns: minmax(0,1fr) !important;}
  .sddf11-root .sddf11-chapter {grid-template-columns: minmax(0,1fr) !important; padding: 17px !important; gap: 12px !important;}
  .sddf11-root .sddf11-index {width: 100% !important; display: flex !important; flex-direction: row !important; justify-content: flex-start !important; padding: 10px 14px !important;}
  .sddf11-root .sddf11-index h3 {font-size: 23px !important;}
  .sddf11-root .sddf11-chapter-body > h2 {font-size: 20px !important;}
  .sddf11-photo-panel,.sddf11-photo-panel.sddf11-photo-reverse {grid-template-columns: minmax(0,1fr) !important;}
  .sddf11-photo-reverse .sddf11-image-frame,.sddf11-photo-reverse .sddf11-image-caption {order: initial;}
  .sddf11-photo-panel .sddf11-image-frame,.sddf11-photo-panel .sddf11-image-caption {padding: 19px !important;}
  .sddf11-photo-panel .sddf11-image-frame {min-height: 140px;}
  .sddf11-editorial-note > .sddf11-editorial-inner {padding: 19px !important;}
  .sddf11-root-references .sddf11-ref-grid {grid-template-columns: minmax(0,1fr) !important;}
  .sddf11-root-references .sddf11-references-card,.sddf11-root-navigation .sddf11-footer {padding: 18px !important;}
}

/* Ajustements responsives spécifiques HERO + METRICS (validés) */
/* TABLETTE */

@media (max-width: 900px) {
    #sddf11-root-metrics > div {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    #sddf11-root-hero > .sddf11-hero {
        padding: 24px 18px !important;
    }

    #sddf11-root-metrics > div {
        gap: 10px !important;
    }

    #sddf11-root-metrics .sddf11-metric {
        min-height: 115px !important;
        padding: 15px 10px !important;
    }
}

/* Image 2 sur mobile : maintenir la légende au-dessus. */
@media (max-width: 620px) {
    #sddf11-photo-2 .sddf11-image-caption {
        padding: 20px 18px !important;
    }
}/* End custom CSS */