/*
Theme Name: Sanctuaire d'Harmonie
Author: Héloïse
Version: 1.0
Text Domain: sanctuaire-harmonie
*/

/* ==========================================
   1. POLICES
   ========================================== */
@font-face {
  font-family: 'Antonio';
  src: url('./Font/Antonio-Regular.woff2') format('woff2'),
    url('./Font/Antonio-Regular.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Advent Pro';
  src: url('./Font/AdventPro-Regular.woff2') format('woff2'),
    url('./Font/AdventPro-Regular.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Pompiere';
  src: url('./Font/Pompiere-Regular.woff2') format('woff2'),
    url('./Font/Pompiere-Regular.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Clicker Script';
  src: url('./Font/ClickerScript-Regular.woff2') format('woff2'),
    url('./Font/ClickerScript-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tempus Sans ITC';
  src: url('./Font/TRTempusSansITC.woff2') format('woff2'),
    url('./Font/TRTempusSansITC.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'VTCGoblinHand';
  src: url('./Font/VTCGoblinHandBold.woff2') format('woff2'),
    url('./Font/VTCGoblinHandBold.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

/* ==========================================
   2. STYLE MOBILE (PAR DÉFAUT)
   ========================================== */
body {
  margin: 0;
  overflow-x: hidden;
}

.header-logo {
  display: none;
}

.asso-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 600;
  overflow: visible;
}

.bouton_soutenir {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;

  top: 15%;
  left: 65%;

  width: 25vw;
  min-width: 110px;
  max-width: 300px;
  aspect-ratio: 1.5 / 1;

  text-decoration: none !important;
  transition: transform 0.3s ease;
}

.bouton_soutenir img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

.bouton_soutenir span {
  position: relative;
  z-index: 2;

  font-family: 'VTCGoblinHand';
  color: #7a441d;
  text-decoration: none !important;
  text-align: center;
  line-height: 1.1;
  pointer-events: none;

  font-size: clamp(0.8rem, 1.4vw, 1.5rem);
  margin-top: 5px;
}

.bouton_soutenir:visited,
.bouton_soutenir:hover,
.bouton_soutenir:active {
  text-decoration: none !important;
  color: #7a441d;
}

.bouton_soutenir:hover {
  transform: scale(1.1);
}

/* ============ H1 / Welcome ============ */

.welcome-section {
  width: 100%;
  font-synthesis: none;
  padding: 10px 16px;
  display: flex;
  justify-content: center;
  text-align: center;
  color: #7e4219;
}

.welcome-title {
  margin: 0;
  line-height: 0.95;
  font-weight: 900;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.welcome-title > span {
  display: block;
}

.welcome-asso {
  font-family: 'Tempus Sans ITC';
  font-size: clamp(2rem, 4.5vw, 2.2rem);
  font-weight: 750;
  letter-spacing: 0.02em;
  margin-bottom: 30px;
}

.welcome-sanctuaire {
  font-family: 'Tempus Sans ITC';
  font-size: clamp(2.4rem, 9vw, 5.2rem);
  margin-bottom: 10px;
}

.welcome-line {
  display: block;
}

.welcome-line .welcome-d,
.welcome-line .welcome-harmonie {
  display: inline-block;
  vertical-align: baseline;
}

.welcome-d {
  font-family: 'Tempus Sans ITC';
  font-size: clamp(2rem, 7vw, 4.2rem);
  font-weight: 700;
  margin-right: 0.15em;
}

.welcome-harmonie {
  font-family: 'VTCGoblinHand';
  font-size: clamp(2.4rem, 9vw, 5.2rem);
}

.welcome-title br {
  display: none;
}

.asso-intro {
  width: 100%;
  font-size: 1.5rem;
  padding: 60px 16px 40px;
  display: flex;
  justify-content: center;
  font-synthesis: none;
}

.asso-intro_inner {
  width: min(920px, 100%);
  text-align: center;
}

.asso-intro_title {
  font-family: 'pompiere';
  margin: 0 0 12px;
  color: #7a441d;
  line-height: 1.05;
  font-size: clamp(1.4rem, 5.5vw, 2.4rem);
}

.asso-intro_text {
  font-family: 'Advent Pro';
  margin: 0;
  font-size: clamp(1rem, 3.6vw, 1.2rem);
  line-height: 1.65;
  max-width: 60ch;
  margin-inline: auto;
  opacity: 0.92;
}

.asso-intro_text_2 {
  font-family: 'Advent Pro';
  margin: 0;
  font-size: clamp(1rem, 3.6vw, 1.2rem);
  line-height: 1.65;
  max-width: 60ch;
  margin-inline: auto;
  opacity: 0.92;
}

.asso-intro_text strong {
  font-weight: 700;
  color: #8a5a3c;
}

.asso-map {
  width: 100%;
  padding: 28px 16px 48px;
  text-align: center;
}

.asso-map_title {
  font-family: 'pompiere';
  font-synthesis: none;
  color: #7a441d;
  margin: 0 0 16px;
  font-weight: 900;
  font-size: clamp(1.4rem, 5.5vw, 2.2rem);
}

.asso-map_map {
  width: min(1100px, 100%);
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
}

.asso-map_iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

.asso-map_link {
  display: inline-block;
  margin-top: 14px;
  text-decoration: none;
  padding: 10px 14px;
  font-family: 'Pompiere';
  background-color: #fdf5f2;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1.3rem;
  color: #8d6e63;
  transition: 0.3s;
  cursor: pointer;
}

.missions {
  padding: 2.5rem 1rem;
}

.missions_title {
  font-family: 'pompiere';
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1.05;
  color: #7a441d;
  text-align: center;
  margin: 0 auto 1.5rem;
  max-width: 22ch;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.mission_title_2 {
  font-family: 'Pompiere', cursive;
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  line-height: 1.1;
  color: #7e4219;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mission_number {
  margin-right: 0.35rem;
}

.mission_name {
  display: inline;
}

.mission_intro,
.mission_text p {
  font-family: 'Advent Pro', sans-serif;
  font-weight: 400;
  font-size: clamp(1.05rem, 3.8vw, 1.25rem);
  line-height: 1.55;
  color: #3d332b;
  margin: 0 0 1rem;
}

.mission_bullets {
  font-family: 'Advent Pro', sans-serif;
  font-weight: 400;
  font-size: clamp(1.05rem, 3.8vw, 1.2rem);
  line-height: 1.55;
  color: #3d332b;
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

.mission_bullets li {
  color: #7e4219;
  margin: 0.5rem 0;
}

.missions_top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mission_bottom {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.missions_left {
  order: 1;
}

.mission_img--primary {
  order: 2;
  width: clamp(300px, 90vw, 420px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  transform: rotate(3deg);
}

.mission_text {
  order: 1;
}

.mission_img--secondary {
  order: 2;
  width: clamp(300px, 90vw, 420px);
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0 auto;
  transform: rotate(-3deg);
}

.mission_img {
  position: relative;
  flex-shrink: 0;
  display: block;
}

.mission_photo-wrap {
  position: absolute;
  inset: 26% 26% 26% 26%;
  overflow: hidden;
  border-radius: 2px;
}

.mission_photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.mission_frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}

.hommage {
  margin-top: 40px;
  padding: 20px;
  padding-bottom: 80px;
}

.hommage p {
  font-size: 1.2rem;
}

.hommage-images {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.hommage-stamp--square {
  transform: rotate(-4deg);
}

.hommage-stamp--rect {
  transform: rotate(3deg);
}

.hommage-frame {
  width: clamp(160px, 48vw, 260px);
}

.timbre {
  width: 360px;
}

.hommage-img {
  width: 100%;
}

.hommage-note {
  font-size: 1.2rem;
}

/* ==========================================
   3. TABLETTE (>= 768px)
   ========================================== */
@media (min-width: 768px) {
  .welcome-section {
    padding: 10px 28px;
  }

  .welcome-title {
    font-size: 3.2rem;
    max-width: 30ch;
  }

  .welcome-asso {
    font-size: 2.8rem;
    padding-bottom: 18px;
  }

  .asso-intro {
    margin-top: 40px;
    padding: 44px 24px 56px;
  }

  .asso-intro_title {
    margin-bottom: 16px;
  }

  .asso-map_iframe {
    height: 380px;
  }

  .missions {
    padding: 3rem 2rem;
  }

  .missions_title {
    text-align: left;
    margin: 0 0 1.25rem 0;
  }

  .missions_top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
  }

  .missions_left {
    flex: 1;
    order: 1;
    min-width: 0;
  }

  .mission_img--primary {
    order: 2;
    flex: 0 0 auto;
    width: clamp(320px, 38vw, 460px);
    margin-top: 100px;
    transform: rotate(3deg);
  }

  .mission_bottom {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2.25rem;
  }

  .mission_img--secondary {
    order: 1;
    flex: 0 0 auto;
    width: clamp(320px, 38vw, 460px);
    margin-top: -30px;
    transform: rotate(-3deg);
  }

  .mission_text {
    order: 2;
    flex: 1;
    min-width: 0;
  }

  .hommage-images {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  .hommage-frame {
    width: clamp(200px, 32vw, 320px);
  }

  .hommage-stamp--square {
    transform: rotate(-4deg);
  }

  .hommage-stamp--rect {
    transform: rotate(3deg);
  }

  .hommage p {
    font-size: 1.3rem;
  }

  .hommage-note {
    font-size: 1.3rem;
  }
}

/* ==========================================
   4. DESKTOP (>= 1024px)
   ========================================== */
@media (min-width: 1024px) {
  .bouton_soutenir {
    top: 15%;
    left: 72%;
    width: 18vw;
  }

  .header-logo {
    display: block;
    z-index: 20;
    pointer-events: auto;
  }

  .header-logo img {
    height: clamp(55px, 10vw, 80px);
    width: auto;
    display: block;
  }

  .welcome-section {
    justify-content: center;
    text-align: center;
    padding: 20px 40px;
  }

  .welcome-title {
    font-size: 4rem;
    max-width: 34ch;
  }

  .welcome-title br {
    display: none;
  }

  .welcome-asso {
    font-size: 2.8rem;
    padding-bottom: 15px;
  }

  .welcome-sanctuaire {
    font-family: 'Tempus Sans ITC';
    font-size: clamp(2.4rem, 9vw, 5.2rem);
    margin-bottom: 30px;
  }

  .asso-intro {
    margin-top: 64px;
    padding: 90px 32px 72px;
    font-size: 2rem;
  }

  .asso-map_iframe {
    height: 460px;
  }

  .missions {
    max-width: 1200px;
    margin: 0 auto;
  }

  .missions_title {
    text-align: left;
    margin: 0 0 1.25rem 0;
  }

  .missions_top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem;
  }

  .missions_left {
    flex: 1;
    order: 1;
    min-width: 0;
  }

  .mission_img--primary {
    order: 2;
    flex: 0 0 auto;
    width: clamp(320px, 38vw, 460px);
    max-width: none;
    margin: 0;
    transform: rotate(3deg);
  }

  .mission_bottom {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.25rem;
  }

  .mission_img--secondary {
    order: 1;
    flex: 0 0 auto;
    width: clamp(320px, 38vw, 460px);
    margin-top: -150px;
    transform: rotate(-3deg);
  }

  .mission_text {
    order: 2;
    flex: 1;
    min-width: 0;
  }
}
