/* Atelier Gabriel – Philosophie 1.0.1 : pleine largeur, grandes images et texte enveloppant */
.agp-page {
  --agp-ink:#292a27; --agp-muted:#77736d; --agp-paper:#f7f6f2;
  --agp-linen:#eee9e0; --agp-bronze:#a87946; --agp-sage:#68715d;
  color:var(--agp-ink); font-family:inherit;
  width:100vw !important; max-width:100vw !important;
  position:relative; left:50%; margin-left:-50vw !important;
  overflow:hidden;
}
.agp-page, .agp-page * {box-sizing:border-box}
.agp-intro {width:100%;max-width:1500px;margin:0 auto;padding:clamp(42px,5vw,76px) 5vw 62px;text-align:center}
.agp-kicker {font-size:11px;letter-spacing:.23em;font-weight:700;color:var(--agp-bronze);text-transform:uppercase;line-height:1.6}
.agp-intro h1 {font-family:Georgia,serif;font-weight:400;font-size:clamp(54px,7vw,100px);line-height:.98;letter-spacing:-.045em;margin:28px 0 24px;color:var(--agp-ink)}
.agp-rule {display:block;width:58px;height:2px;background:var(--agp-bronze);margin:0 auto 24px}
.agp-lead {font-family:Georgia,serif;font-size:clamp(20px,2vw,27px);line-height:1.5;max-width:850px;margin:0 auto;color:#625c53}
.agp-flow-section {display:block;width:100%;max-width:1680px;margin:0 auto;padding:35px clamp(30px,6vw,110px) 125px;}
.agp-story-copy,.agp-chapter-copy {display:block;width:100%;max-width:none;font-size:17px;line-height:1.9;color:var(--agp-muted);}
.agp-story-image,.agp-chapter-visual {width:min(46vw,650px);float:left;shape-outside:circle(50%);shape-margin:34px;margin:0 5.5vw 30px 0;text-align:center;}
.agp-round-photo {display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:50%;border:1px solid rgba(168,121,70,.48);box-shadow:0 22px 70px rgba(41,42,39,.12)}
.agp-image-index {display:block;margin-top:18px;font-size:10px;letter-spacing:.18em;color:var(--agp-bronze);font-weight:700}
.agp-image-index i {font-style:normal;color:#b9afa1;margin:0 7px}
.agp-story-copy .agp-kicker {margin:12px 0 17px}
.agp-story-copy h2,.agp-chapter-copy h2,.agp-closing h2 {font-family:Georgia,serif;font-weight:400;font-size:clamp(38px,3.6vw,58px);line-height:1.06;letter-spacing:-.035em;margin:0 0 27px;color:var(--agp-ink);max-width:none;width:100%;text-wrap:pretty}
.agp-story-copy p,.agp-chapter-copy p,.agp-closing p {font-size:clamp(16px,1.15vw,19px);line-height:1.9;color:var(--agp-muted);margin:0 0 22px;max-width:none}
.agp-story-copy:after,.agp-chapter-copy:after {content:"";display:block;clear:both}
.agp-chapters {background:var(--agp-paper);padding:90px 0 105px}
.agp-chapter {display:block;max-width:1680px;margin:0 auto 70px;padding-top:35px;padding-bottom:35px;min-height:0}
.agp-chapter:last-child {margin-bottom:0}
.agp-chapter .agp-chapter-visual {width:min(43vw,590px);margin:8px 5vw 30px 0}
.agp-reverse .agp-chapter-visual {float:right;margin:0 0 30px 5.5vw;shape-outside:circle(50%)}
.agp-chapter-copy {padding:0}\n.agp-chapter-copy h2 {max-width:1200px}
.agp-chapter-copy h2 {font-size:clamp(35px,3.8vw,56px)}
.agp-rule-left {margin:0 0 27px}
.agp-chapter-copy p {font-size:clamp(16px,1.2vw,19px)}
.agp-quote {position:relative;background:var(--agp-ink);color:#f7f4ee;text-align:center;padding:clamp(85px,11vw,155px) 24px;overflow:hidden;clear:both}
.agp-quote:before,.agp-quote:after {content:"";position:absolute;width:260px;height:260px;border:1px solid rgba(168,121,70,.25);border-radius:50%;top:50%;transform:translateY(-50%)}
.agp-quote:before {left:-130px}.agp-quote:after {right:-130px}
.agp-quote-mark {display:block;font-family:Georgia,serif;font-size:90px;line-height:.6;color:var(--agp-bronze)}
.agp-quote blockquote {font-family:Georgia,serif;font-size:clamp(32px,4.5vw,62px);line-height:1.15;max-width:1100px;margin:26px auto 30px;font-weight:400;letter-spacing:-.025em;color:#f7f4ee}
.agp-quote .agp-kicker {color:#c6a47e}
.agp-closing {display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(40px,7vw,100px);max-width:1500px;margin:0 auto;padding:115px clamp(30px,6vw,110px)}
.agp-closing-image img {width:min(100%,560px);aspect-ratio:1/1;height:auto;object-fit:cover;display:block;border-radius:50%;border:1px solid rgba(168,121,70,.48);box-shadow:0 22px 70px rgba(41,42,39,.12);margin:auto}
.agp-closing-copy h2 {margin-top:18px}
.agp-button {display:inline-flex;gap:28px;align-items:center;background:var(--agp-ink);color:#fff!important;text-decoration:none!important;padding:19px 28px;margin-top:20px;font-size:12px;font-weight:700;letter-spacing:.14em;transition:background .2s ease,color .2s ease}
.agp-button:hover {background:var(--agp-bronze);color:#fff!important}
.agp-button span {font-size:17px}
@media(max-width:900px) {
 .agp-flow-section {padding:25px 5vw 85px}
 .agp-story-image,.agp-chapter .agp-chapter-visual {width:min(48vw,440px);shape-outside:circle(50%);shape-margin:22px;margin-right:4vw}
 .agp-reverse .agp-chapter-visual {margin:0 0 25px 4vw}
 .agp-closing {padding-top:75px;padding-bottom:75px}
}
@media(max-width:640px) {
 .agp-page {left:0;margin-left:0 !important;width:100% !important;max-width:100% !important}
 .agp-intro {padding:62px 22px 45px}
 .agp-intro h1 {font-size:48px}
 .agp-flow-section {padding:20px 23px 65px}
 .agp-story-image,.agp-chapter .agp-chapter-visual,.agp-reverse .agp-chapter-visual {float:none;width:min(82vw,390px);margin:0 auto 34px;shape-outside:none}
 .agp-story-copy h2,.agp-chapter-copy h2,.agp-closing h2 {font-size:36px}
 .agp-story-copy p,.agp-chapter-copy p,.agp-closing p {font-size:15px;line-height:1.8}
 .agp-chapters {padding:55px 0}
 .agp-chapter {margin-bottom:35px}
 .agp-chapter-copy .agp-kicker,.agp-chapter-copy h2,.agp-chapter-copy p {text-align:left}
 .agp-quote {padding:75px 25px}
 .agp-quote:before,.agp-quote:after {display:none}
 .agp-quote blockquote {font-size:32px}
 .agp-closing {grid-template-columns:1fr;padding:65px 24px;gap:32px}
 .agp-closing-image img {width:min(82vw,390px);height:auto}
}


/* Correctif 1.0.3 : véritable habillage éditorial autour de la photographie */
.agp-page .agp-story-copy,
.agp-page .agp-chapter-copy {
  text-align: left !important;
}
.agp-page .agp-story-copy > p,
.agp-page .agp-chapter-copy > p {
  text-align: left !important;
  text-indent: 0;
}
.agp-page .agp-story-image {
  float: left !important;
  width: min(40vw, 590px) !important;
  height: auto;
  aspect-ratio: 1 / 1;
  shape-outside: circle(49% at 50% 50%) !important;
  -webkit-shape-outside: circle(49% at 50% 50%) !important;
  shape-margin: 30px !important;
  margin: 0 clamp(34px, 5vw, 78px) 28px 0 !important;
}
.agp-page .agp-story-image .agp-round-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}
.agp-page .agp-story-copy > p {
  max-width: none !important;
  width: auto !important;
  line-height: 1.85;
  margin-bottom: 20px;
}
.agp-page .agp-story-copy:after {
  content: "";
  display: block;
  clear: both;
}
@media (max-width: 900px) {
  .agp-page .agp-story-image {
    width: min(43vw, 440px) !important;
    shape-outside: circle(49% at 50% 50%) !important;
    shape-margin: 22px !important;
    margin-right: 28px !important;
  }
}
@media (max-width: 640px) {
  .agp-page .agp-story-image {
    float: none !important;
    width: min(82vw, 390px) !important;
    aspect-ratio: 1 / 1;
    shape-outside: none !important;
    margin: 0 auto 34px !important;
  }
  .agp-page .agp-story-copy > p {
    text-align: left !important;
  }
}


/* 1.0.5 — image source is original; true circular editorial text wrap */
.agp-page .agp-story-copy,
.agp-page .agp-chapter-copy {
  display: flow-root;
  text-align: left !important;
  overflow: visible !important;
}
.agp-page .agp-story-image,
.agp-page .agp-chapter-visual {
  position: relative !important;
  display: block !important;
  float: left !important;
  width: min(41vw, 610px) !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  shape-outside: circle(50% at 50% 50%) !important;
  -webkit-shape-outside: circle(50% at 50% 50%) !important;
  shape-margin: 34px !important;
  margin: 0 clamp(34px, 5vw, 76px) 26px 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  text-align: center !important;
}
.agp-page .agp-story-image .agp-round-photo,
.agp-page .agp-chapter-visual .agp-round-photo {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}
.agp-page .agp-story-image .agp-image-index,
.agp-page .agp-chapter-visual .agp-image-index {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: -29px !important;
  margin: 0 !important;
  white-space: nowrap;
}
.agp-page .agp-story-copy > p,
.agp-page .agp-chapter-copy > p {
  display: block;
  width: auto !important;
  max-width: none !important;
  text-align: left !important;
  line-height: 1.9;
  margin: 0 0 20px !important;
}
.agp-page .agp-story-copy > .agp-kicker,
.agp-page .agp-story-copy > h2,
.agp-page .agp-chapter-copy > h2,
.agp-page .agp-chapter-copy > .agp-rule {
  text-align: left !important;
  max-width: none !important;
}
.agp-page .agp-story-copy:after,
.agp-page .agp-chapter-copy:after { content: ""; display: table; clear: both; }
.agp-page .agp-reverse .agp-chapter-visual {
  float: right !important;
  margin: 0 0 26px clamp(34px, 5vw, 76px) !important;
}
@media (max-width: 900px) {
  .agp-page .agp-story-image,
  .agp-page .agp-chapter-visual {
    width: min(43vw, 460px) !important;
    shape-margin: 24px !important;
    margin-right: 30px !important;
  }
  .agp-page .agp-reverse .agp-chapter-visual {
    margin: 0 0 24px 30px !important;
  }
}
@media (max-width: 640px) {
  .agp-page .agp-story-image,
  .agp-page .agp-chapter-visual,
  .agp-page .agp-reverse .agp-chapter-visual {
    float: none !important;
    width: min(82vw, 390px) !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    shape-outside: none !important;
    margin: 0 auto 48px !important;
  }
  .agp-page .agp-story-image .agp-image-index,
  .agp-page .agp-chapter-visual .agp-image-index { bottom: -29px !important; }
}

/* 1.0.6 — force true circular float geometry and left-aligned text flow */
.agp-page .agp-story-copy {
  display: block !important;
  overflow: visible !important;
  text-align: left !important;
}
.agp-page .agp-story-image {
  float: left !important;
  display: block !important;
  position: relative !important;
  box-sizing: border-box !important;
  width: min(41vw, 610px) !important;
  height: min(41vw, 610px) !important;
  aspect-ratio: 1 / 1 !important;
  shape-outside: circle(50%) !important;
  -webkit-shape-outside: circle(50%) !important;
  shape-margin: 28px !important;
  margin: 0 clamp(34px, 5vw, 76px) 28px 0 !important;
}
.agp-page .agp-story-image > img.agp-round-photo {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}
.agp-page .agp-story-copy > p {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  text-align: left !important;
  text-align-last: left !important;
  margin: 0 0 20px !important;
  line-height: 1.9 !important;
}
.agp-page .agp-story-copy:after { content: ""; display: block; clear: both; }
@media (max-width: 900px) {
  .agp-page .agp-story-image {
    width: min(43vw, 460px) !important;
    height: min(43vw, 460px) !important;
    shape-margin: 22px !important;
    margin-right: 28px !important;
  }
}
@media (max-width: 640px) {
  .agp-page .agp-story-image {
    float: none !important;
    width: min(82vw, 390px) !important;
    height: min(82vw, 390px) !important;
    shape-outside: none !important;
    margin: 0 auto 48px !important;
  }
  .agp-page .agp-story-copy > p { text-align: left !important; text-align-last: left !important; }
}


/* 1.0.8 — titres mobiles : lignes naturelles, sans césure ni mots coupés */
@media (max-width: 640px) {
  .agp-page .agp-intro {
    width: 100% !important;
    max-width: none !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
  .agp-page .agp-intro h1 {
    display: block !important;
    width: 100% !important;
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: clamp(37px, 9vw, 44px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    text-wrap: balance !important;
  }
  .agp-page .agp-story-copy h2,
  .agp-page .agp-chapter-copy h2,
  .agp-page .agp-closing h2 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(29px, 7.2vw, 34px) !important;
    line-height: 1.13 !important;
    letter-spacing: -0.025em !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    text-wrap: balance !important;
  }
  .agp-page .agp-chapter-copy h2 {
    margin-bottom: 20px !important;
  }
  .agp-page .agp-quote blockquote {
    font-size: clamp(27px, 7vw, 32px) !important;
    line-height: 1.2 !important;
    text-wrap: balance !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }
}

/* V1.1.0 — contour circulaire centré, identique au portrait de Qui suis-je */
.agp-page .agp-round-photo,
.agp-page .agp-closing-image img {
  border-radius: 50% !important;
  border: 0 !important;
  box-shadow: 0 0 0 1px #b69a70 !important;
  padding: 5px !important;
  background: #fff !important;
  box-sizing: border-box !important;
}


/* 1.1.1 — centrage mobile robuste des visuels, malgré les anciennes règles du thème */
@media (max-width: 767px) {
  html body .agp-page .agp-story-image,
  html body .agp-page .agp-chapter-visual,
  html body .agp-page .agp-reverse .agp-chapter-visual {
    float: none !important;
    position: relative !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    display: block !important;
    width: min(82vw, 390px) !important;
    max-width: calc(100vw - 46px) !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 0 48px 0 !important;
    shape-outside: none !important;
    box-sizing: border-box !important;
  }

  html body .agp-page .agp-story-image > img.agp-round-photo,
  html body .agp-page .agp-chapter-visual > img.agp-round-photo {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    margin: 0 !important;
  }

  html body .agp-page .agp-closing-image {
    justify-self: center !important;
    width: min(82vw, 390px) !important;
    max-width: calc(100vw - 46px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html body .agp-page .agp-closing-image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto !important;
  }
}


/* 1.1.2 — centrage mobile réel : suppression du décalage left/translate */
@media (max-width: 767px) {
  html body .agp-page .agp-story-image,
  html body .agp-page .agp-chapter-visual,
  html body .agp-page .agp-reverse .agp-chapter-visual {
    position: static !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    display: block !important;
    width: min(82vw, 390px) !important;
    max-width: calc(100vw - 46px) !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    margin-top: 0 !important;
    margin-bottom: 48px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    shape-outside: none !important;
    box-sizing: border-box !important;
  }

  html body .agp-page .agp-story-image > img.agp-round-photo,
  html body .agp-page .agp-chapter-visual > img.agp-round-photo {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    margin: 0 !important;
  }

  html body .agp-page .agp-closing-image {
    justify-self: center !important;
    width: min(82vw, 390px) !important;
    max-width: calc(100vw - 46px) !important;
    margin: 0 auto !important;
  }
}


/* 1.1.3 — centrage mobile par la structure du conteneur, pas par translation */
@media (max-width: 767px) {
  html body .agp-page .agp-story-copy,
  html body .agp-page .agp-chapter-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  html body .agp-page .agp-story-copy > .agp-story-image,
  html body .agp-page .agp-chapter-copy > .agp-chapter-visual {
    float: none !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    align-self: center !important;
    display: block !important;
    flex: 0 0 auto !important;
    width: min(82vw, 390px) !important;
    max-width: calc(100vw - 46px) !important;
    height: min(82vw, 390px) !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto 48px !important;
    shape-outside: none !important;
    box-sizing: border-box !important;
  }

  html body .agp-page .agp-story-copy > .agp-story-image > img.agp-round-photo,
  html body .agp-page .agp-chapter-copy > .agp-chapter-visual > img.agp-round-photo {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    object-fit: cover !important;
  }

  html body .agp-page .agp-closing-image {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
}


/* 1.1.4 — introduction plus compacte, titre plus mesuré */
.agp-page .agp-intro {
  padding-top: clamp(34px, 3.2vw, 50px) !important;
  padding-bottom: 34px !important;
}
.agp-page .agp-intro h1 {
  font-size: clamp(48px, 5.9vw, 86px) !important;
  margin-top: 18px !important;
  margin-bottom: 18px !important;
  line-height: 1.02 !important;
}
.agp-page .agp-intro .agp-rule {
  margin-bottom: 18px !important;
}
.agp-page .agp-intro .agp-lead {
  line-height: 1.42 !important;
}
.agp-page > .agp-story.agp-flow-section {
  padding-top: 18px !important;
}
@media (max-width: 640px) {
  .agp-page .agp-intro {
    padding-top: 34px !important;
    padding-bottom: 28px !important;
  }
  .agp-page .agp-intro h1 {
    font-size: 42px !important;
    margin-top: 16px !important;
    margin-bottom: 16px !important;
  }
  .agp-page > .agp-story.agp-flow-section {
    padding-top: 12px !important;
  }
}
