@font-face {
    font-family: "PlayfairDisplay";
    src: url("../fonts/PlayfairDisplay-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "PlayfairDisplay-italic";
    src: url("../fonts/PlayfairDisplay-BoldItalic.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

:root {
  --vert: #0c5245;
  --vert-fonce: #0d4239;
  --vert-clair: #195A4F;
  --vert-pastel: #BACAC8;
  --terre: #81340b;
  --terre-clair: #BB8970;
  --fond: #F3F3F5;
  --blanc: #FFFFFF;
  --gris: #65665D;
  --gris-clair: #EAEAEB;
  --rad: 12px;
  --shadow: 0 4px 14px rgba(19, 87, 75, 0.12);
  --dark-blue: #0a2946;
  --light-blue: #3194a2;
}

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

body {
    width: 100vw;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: black;
    overflow-x: hidden;
    line-height: unset;
}

a {
    text-decoration: none;
    color: var(--blanc);
}
li {
    list-style: none;
}

#entete {
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* #region navigation */
#navigation_wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
}

#navigation {
    width: max-content;
    background-color: var(--vert);
    padding: 8px 128px 8px 64px;
    border-radius: 50px 0px 0px 50px;
    font-size: 24px;
    box-shadow: var(--terre) 81px 20px;
}

#navigation #primary-menu {
    display: flex;
    align-items: center;
    gap: 64px;
    text-wrap: nowrap;
}

#navigation #primary-menu li:last-child > a {
    padding: 4px 16px;
    border: solid 3px var(--terre);
    border-radius: 50px;
}

/* #endregion */

/* #region button */
.btn_outline, .btn_fill {
    padding: 6px 16px;
    border-radius: 100px;
    border: solid var(--terre);
}
.btn_fill {
    border: none;
    background-color: var(--terre);
    padding: 12px 48px;
}
.btn_fill.bg_green {
    background-color: var(--vert);
}
/* #endregion */

/* #region hero */
/* #hero_wrapper {
    margin-top: 40px;
} */
#hero {
    width: 100vw;
    height: 600px;
    background-color: var(--gris);
    padding: 0 max(30px, calc(40vw - 500px));
    display: flex;
    color: var(--blanc);
}

#hero > .left {
    width: 70%;
    font-family: PlayfairDisplay;
    font-size: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: start;
}

#hero > .left span:first-of-type {
    font-family: PlayfairDisplay-italic;
    font-size: 81px;
}
#hero > .left span:last-of-type {
    margin-left: 20px;
}
#hero a {
    background-color: var(--terre);
    padding: 12px 32px 12px 32px;
    border-radius: 50px;
    font-family: sans-serif;
    margin-left: 16px;
}
.hero_ruban {
    width: 100vw;
    height: 16px;
    background-color: var(--vert);
    box-shadow: var(--terre) 0px 16px;
}

#hero > .right {
    width: max-content;
    padding: 20px;
    background-color: #ffffff96;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#hero > .right img {
    margin-bottom: 60px;
}
/* #endregion */

.with_bg1 {
    background-image: url(../img/webp/bg.webp);
    background-repeat: no-repeat;
    background-size: cover;
}
.label {
    z-index: 10000;
    position: absolute;
    top: 16px;
    left: 0;
    background-color: var(--vert);
    padding: 8px 48px 8px 24px;
    border-radius: 0 50px 50px 0;
    font-size: 32px;
    font-weight: bold;
    color: var(--blanc);
}
.about_wrapper {
    margin-top: 16px;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: stretch;
}

#about .left_wrapper {
    flex: 0 1 55%;
    min-width: 0;
}
#about .left {
    position: relative;
    height: 100%;
    background-color: var(--terre);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(40px, 6vw, 96px) clamp(32px, 8vw, 128px);
    /* border: solid var(--terre); */
    clip-path: ellipse(73% 70% at 25% 60%);
    z-index: 1;
}

#about .left img {
    max-width: 80%;
}

#about .left::after {
    content: "";
    position: absolute;
    inset: 0px;              /* expand by border width */
    clip-path: ellipse(75% 71% at 22% 60%);  /* radii + border width */
    background: var(--blanc);     /* border color */
    z-index: -1;
}


#about .left > div {
    display: flex;
    flex-direction: column;
    align-items: start;
}
#about .left p {
    margin-bottom: 24px;
    font-size: 24px;
    color: var(--vert);
}
#about .left a {
    font-size: 24px;
}

/* #region right */
#about .right_wrapper {
    flex: 0 1 55%;
    min-width: 0;
}
#about .right {
    color: black;
    padding: 64px;
    padding-right: max(96px, calc(40vw - 600px));
    padding-left: 0px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}
#about .right .quote-wrapper {
    display: flex;
    gap: 24px;
    align-items: start;
}
#about .right .quote-wrapper#pca {
    align-self: flex-end;

}
#about .quote-container {
    width: clamp(280px, 34vw, 500px);
    display: flex;
    flex-direction: column;
    justify-content: start;
}
#about .right img {
    width: clamp(120px, 12vw, 200px);
    /* height: 250px; */
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: var(--vert) 5px solid;
}
#about .right p:first-of-type {
    /* border-left: solid var(--vert) 1px; */
    padding-left: 8px;
    font-size: 18px;
    max-width: 500px;
}

#about .right #pca img {
    border: var(--terre) 5px solid;
} 
#about .right #pca p:first-of-type {
    border-left: solid var(--terre) 1px;
}
#pca .q-mark {
    fill: var(--terre);
}
#about .right .who {
    /* width: max-content; */
    margin-top: 30px;
    margin-left: clamp(24px, 10vw, 150px);
    display: flex;
    flex-direction: column;
}
/* #endregion */

/* #region product */

#product_wrapper {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 96px;
    padding: 80px;
}
#product_wrapper img {
    width: 50px;
}
#product_wrapper > div > img {
    width: 300px;
    height: 300px;
    object-fit: contain;
    margin-top: 10px;
}
#product_wrapper > div.tafita > img {
    width: 300px;
    margin: unset;
}
#product_wrapper > div {
    width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    gap: 40px;
    border: solid var(--vert) 5px;
    padding: 30px 64px;
    border-radius: 50px;
    font-size: 20px;
}
#product_wrapper ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
#product_wrapper li {
    display: flex;
    align-items: start;
    gap: 10px;
}
#product_wrapper .title {
    font-weight: bold;
    color: var(--vert);
}
#product_wrapper .tsiry .title {
    color: var(--terre);
}
#product_wrapper .desc {
    font-size: 18px;
    color: black !important;
}
#product_wrapper > div.tsiry {
    border-color: var(--terre);
}


/* #endregion */

/* #region actus */
.actus_wrapper {
    padding: 128px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}
.actu {
    max-width: 1000px;
    display: flex;
    align-items: center;
    gap: 30px;
}
.actu .desc_container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 20px;
}
.actu img {
    width: 450px;
}
/* #endregion */

/* #region stat */
.stat_container {
    display: flex;
    justify-content: center;
    gap: 100px;
    padding: 64px;
}
.stat_container > div {
    display: flex;
    align-items: center;
    gap: 8px;
}
#stat img {
    width: 80px;
}
/* #endregion */

/* #region footer */
.footer_wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 90px;
    color: var(--blanc);
}

#colophon .logo_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background-color: var(--blanc);
}
#colophon .logo_container ~ div {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 70px;
}
#colophon .right {
    display: flex;
    gap: 100px;
}
#colophon .links > span,
#colophon .contact > span,
#colophon .address > span {
    color: var(--light-blue);
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 12px;
}
#colophon .links,
#colophon .contact,
#colophon .address {
    display: flex;
    flex-direction: column;
    font-size: 20px;
}
#colophon .links > div,
#colophon .contact > div,
#colophon .address > div {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.socials_net {
    display: flex;
    gap: 20px;
}
.socials_net img {
    width: 30px;
}
/* #colophon .contact > a {
    margin-top: 25px;
} */
/* #endregion */

/* #region page-sehatra */
#domain .domain_wrapper {
    padding: 128px;
}

#domain .left {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

#domain .secteur-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-radius: 0;
    box-sizing: border-box;
}

#domain .secteur-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

#domain .secteur-item span {
    font-size: 24px;
    font-weight: bold;
    color: var(--vert);
    white-space: nowrap;
}

/* Pattern de couleurs selon l'index (0-based) */
/* Index pair (0, 2, 4...) = transparent (défaut) */
/* 4n+1 (1, 5, 9...) = vert */
/* 4n+3 (3, 7, 11...) = terre */
#domain .left > .secteur-item:nth-child(4n+3) {  /* index 1, 5, 9... */
    background-color: var(--vert);
}
#domain .left > .secteur-item:nth-child(4n+3) span {
    color: var(--blanc);
}
#domain .left > .secteur-item:nth-child(4n+2) {  /* index 3, 7, 11... */
    background-color: var(--terre);
}
#domain .left > .secteur-item:nth-child(4n+2) span {
    color: var(--blanc);
}

/* Responsive sehatra */
@media (max-width: 767px) {
    #domain .domain_wrapper {
        padding: 32px 24px;
    }
    #domain .secteur-item {
        min-width: 100%;
        max-width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #domain .domain_wrapper {
        padding: 48px 48px;
    }
    #domain .secteur-item {
        min-width: calc(47% - 0px);
        max-width: calc(50% - 0px);
    }
}

@media (min-width: 1024px) {
    #domain .domain_wrapper {
        padding: 128px;
    }
    #domain .secteur-item {
        min-width: calc(47% - 0px);
        max-width: calc(50% - 0px);
    }
}
/* #endregion */

.font-bold {
    font-weight: bold;
}
.relative {
    position: relative;
}
.bg_terre {
    background-color: var(--terre);
}
.bg_green {
    background-color: var(--vert);
}
.text-green {
    color: var(--vert);
}
.text-terre {
    color: var(--terre);
}
.text-blue {
    color: var(--dark-blue);
}
.q-mark {
    width:26px;height:20px;fill:var(--vert);margin-bottom:8px;
}
.font-18 {
    font-size: 18px;
}
.font-32 {
    font-size: 32px;
}
.font-64 {
    font-size: 64px;
}
.font-81 {
    font-size: 81px;
}
.self-end {
    align-self: flex-end;
}
.italic {
    font-style: italic;
}
.flex {
    display: flex;
}
.flex-col {
    flex-direction: column;
}
.align-center {
    align-items: center;
}
.justify-center {
    justify-content: center;
}
