
/********** MENU **********/

.header {
    background-color: var(--sv-grey-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 50px;   /* l'espace autour du menu est gris, plus transparent */
    z-index: 9999;
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Le menu fixe ne prend plus de place dans le flux :
   on réserve sa hauteur (15px + 80px + 15px) en haut de la page */
body {
    padding-top: 110px;
}

.burger-btn {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;   /* centre les deux calques l'un sur l'autre */
}

.burger-btn svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Les deux enfants occupent la même cellule, donc ils se superposent */
.burger-btn > * {
    grid-area: 1 / 1;
}

.burger-home {
    width: 60px;
    height: 60px;
}

.burger-lines {
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.burger-line {
    display: block;
    width: 25px;
    height: 3px;
    border-radius: 999px;
    background: var(--sv-grey-medium);
}

.menu-logo {
    display: block;
    width: 120px;
}

.menu-logo img {
    display: block;
    width: 100%;
}

.menu-phone {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 100px;
    background-color: var(--sv-grey-medium);
}

.menu-phone-svg {
    width: 30px;
}

/*********** Section HERO ***********/

.hero {
    height: 450px;
    background-color: white;
    overflow: hidden; /* coupe ce qui dépasse des photos (évite le débordement horizontal) */
}

.hero-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-container-photos {
    display: grid;
    grid-template: 1fr / 1fr;
    width: 100%;
    height: 100%;
}

/* Les 3 pictures s'empilent dans la même cellule, découpées ensuite par clip-path */
.hero-photo {
    display: block;
    grid-area: 1 / 1;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
}

.hero-photo--3 {
    clip-path: polygon(81% 0% , 100% 0%, 100% 100%, 61% 100%);
}

.hero-photo--2 {
    clip-path: polygon(40% 0% , 80% 0%, 60% 100%, 20% 100%);
}

.hero-photo--1 {
    clip-path: polygon(0% 0% , 39% 0%, 19% 100%, 0% 100%);
}

.hero-photo-img {
    display: block;
    height: 100%;
    object-fit: cover;
}

.hero-photo--1 .hero-photo-img { 
    width: 39%; 
}

.hero-photo--2 .hero-photo-img { 
    height: 160%;
    margin-left: 20%;
    padding-bottom: 35%;
}

.hero-photo--3 .hero-photo-img { 
    width: 59%; 
    margin-left: 61%; 
}

.hero-container-logo {
    position: absolute;
    width: 80%;
    padding: 8px;
    background-color: #fff;
}

/********** Section ABOUTUS *********/

.aboutus {
    padding: 36px 24px 36px;
}

.aboutus-div {
    max-width: 90%;
    margin: 0 auto;
    padding: 18px;
    background-color: #fff;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
}

.aboutus-title {
    padding: 0 8% 0;
    text-align: center;
    font-family: 'Ezra';
    font-weight: 600;
    font-size: var(--fs-20);
}

.aboutus-text {
    font-family: 'Ballinger';
    font-weight: 300;
    font-size: var(--fs-18);
    line-height: 150%;
    padding-top: 12px;
}


/*********** Section SKILL ***********/

.skill-article {
    display: grid;
    grid-template: 1fr / 1fr;
    place-items: center;
    isolation: isolate;          /* limite la fusion à la carte */
}

.skill-article::after {
    content: '';
    grid-area: 1 / 1;
    place-self: stretch;
    background-color: var(--sv-grey-medium);   /* couleur pleine */
    mix-blend-mode: multiply;
}

.skill-article > * {
    grid-area: 1 / 1;
}

.skill-article-btn {
    display: grid;
    place-items: center;
    width: 225px;          /* seule valeur à changer pour la taille */
    aspect-ratio: 1;       /* viewBox du symbole #home : 150×150 */
    z-index: 1;   /* garde le bouton au-dessus du voile */
}

.skill-article-btn > * {
    grid-area: 1 / 1;      /* forme et titre empilés */
}

.skill-article-btn-shape {
    width: 100%;
    height: 100%;
    --epaisseur: 3px;
    --contour: white;
}

.skill-article:first-child .skill-article-btn-shape{
    --fond: var(--sv-green-medium);
}

.skill-article:nth-child(2) .skill-article-btn-shape{
    --fond: var(--sv-blue-light);
}

.skill-article:nth-child(3) .skill-article-btn-shape{
    --fond: var(--sv-orange-light);
}

.skill-article-btn-title {
    font-family: var(--txt-font);
    color: white;
    font-size: var(--fs-24);
    font-weight: 400;
    text-transform: uppercase;
    padding-top: 36px;
    padding-left: 24px;
    padding-right: 24px;
}

.skill-article-btn-more {
    font-family: var(--txt-font);
    place-self: end center;
    margin-bottom: 42px;
    padding: 6px;
    background-color: var(--sv-grey-dark);
    color: white;
    font-size: var(--fs-14);
}

/*********** WORKS ***********/

.works {
    padding-top: 36px;
    padding-bottom: 36px;
    position: relative;     /* repère pour le SVG en absolute */
    isolation: isolate;     /* le z-index -1 reste dans la section */
    overflow: hidden;       /* évite tout débordement horizontal */
}

.works-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;            /* derrière le titre et les cartes */
    pointer-events: none;
    opacity: .25;
}

.works-container {
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.works-title {
    text-align: center;
    font-family: 'Ezra';
    font-weight: 600;
    font-size: var(--fs-24);
    padding-bottom: 24px;
}

.work-card {
    display: grid;
    grid-template: 1fr / 1fr ;
}

.work-card > * {
    grid-area: 1 / 1;
}

.work-main-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.work-infos {
    position: relative;        /* repère pour le ::after */
    width: 100%;
    height: 30%;
    place-self: end;
    display: flex;
    justify-content: center;
}

.work-infos::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--sv-grey-dark);
    mix-blend-mode: multiply;
}

.work-title {
    position: relative;
    z-index: 2;
    align-self: center;
    color: white;
    font-family: 'Ballinger';
    font-weight: 400;
}

.work-description {
    display: none;
}

/************ SECTION STORY ************/

.family-story {
    margin: 0 auto;
    padding-top: 50px;
    padding-left: 10%;
    padding-right: 10%;
    background-color: var(--sv-green-light);
}

.family-story-title {
    font-family: 'Ezra';
    font-weight: 600;
    font-size: var(--fs-24);
    text-align: center;
    padding-bottom: 24px;
}

.family-container {
    margin: 0 auto;
}

.family-container-photos {
    width: 65%;
    display: flex;
    flex-direction: column;
    row-gap: 24px;
    margin: 0 auto;
}

.family-container-photo-cards {
    border-radius: 12px;
    overflow: hidden;
}

.family-story-photo-old  {
    margin-left: -12.5%;
    margin-right: -12.5%;
}

.family-story-photo-old-name, .family-container-photos-name {
    font-family: 'Ballinger';
    font-size: var(--fs-16);
    height: 32px;
    background-color: var(--sv-blue-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.family-story-photo-old-name {
    text-align: center;
    height: auto;
    padding-top: 4px;
    padding-bottom: 4px;
}

.family-story-text {
    padding-top: 32px;
    padding-bottom: 32px;
}
.family-story-text p {
    font-size: var(--fs-18);
    font-family: 'Ballinger';
    font-weight: 100;
    padding-bottom: 12px;
    text-align: justify;
    -webkit-hyphens: auto;
    hyphens: auto;
    /* Chrome / Edge */
    hyphenate-limit-chars: 5 2 2;
    /* Safari */
    -webkit-hyphenate-limit-before: 2;
    -webkit-hyphenate-limit-after: 2;
    -webkit-hyphenate-limit-lines: no-limit;
    overflow-wrap: break-word;
}


/*********** SECTION OTHER ************/

.other {
    width: 80%;
    margin: 0 auto;
    margin-top: 36px;
    margin-bottom: 36px;
}

.other-container {
    display: flex;
    justify-content: center;
}

.other-article-btn {
    width: 200px;
    height: 200px;
    display: grid;
    place-items: center;
}

.other-article-btn > * {
    grid-area: 1 / 1;
}

.other-article-btn-shape {
    width: 100%;          /* la taille voulue : px, rem, %, clamp()… */
    height: 100%;
    aspect-ratio: 1;       /* le viewBox est carré (150×150) */
    display: block;
}

.other-article:first-child svg {
    --fond: var(--sv-green-medium);
    --contour: transparent;
}

.other-article:nth-child(2) svg {
    --fond: var(--sv-blue-light);
    --contour: transparent;
    --epaisseur: 0;
}

.other-article-btn-title {
    font-family: var(--txt-font);
    font-size: var(--fs-20);
    color: white;
    --epaisseur: 0;
}

.other-article-btn-more {
    display: block;
    width: 100px;
    height: auto;
    padding: 4px;
    background-color: var(--sv-grey-dark);
    font-family: var(--txt-font);
    font-size: var(--fs-14);
    color: white;
    text-align: center;
    align-self: end;
    margin-bottom: 30px;
}

/*********** SECTION CONTACT FORM **********/

.contact-form {
    display: flex;
    justify-content: center;
    padding-bottom: 50px;
}

.contact-form-container {
    width: 70%;
    height: 350px;
    padding: 20px;
    margin: 0 auto;
    background-color: white;
    font-family: var(--ttl-font);
    font-size: var(--fs-20);
    font-weight: 400;
    text-align: center;
}

/*********** FOOTER  ************/

.footer {
    width: 90%;
    padding: 20px;
    background-color: var(--sv-grey-dark);
    border-radius: 20px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: start;
    column-gap: 12px;
}

.footer * {
    color: white;
    font-family: var(--txt-font);
    font-size: var(--fs-16);
    font-weight: 400;
}


.footer-menu-logo {
    display: block;
    width: 165px;
}

.footer-contact-location, .footer-contact-phone {
    padding-top: 8px;
    display: flex;
    align-items: center;
}

.footer-contact-location {
    display: flex;
}

.footer-contact-location-icon{
    width: 30px;
    height: 30px;
    padding-right: 12px;
}

.footer-contact-location-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    --contour-goutte: white;
    --epaisseur-goutte: 4px;
    --contour-cercle: white;
    --epaisseur-cercle: 4px;
}


.footer-contact-phone {
    display: flex;
}

.footer-contact-phone-icon {
    width: 35px;
    height: 35px;
    padding-right: 12px;
    --contour: white;
    --epaisseur: 10px;
}

.footer-contact-phone-icon svg {
    width: 100%;
    height: 100%;
}


.footer-nav-menu ul {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.footer-nav-menu ul li a {
    font-family: var(--ttl-font);
    font-size: var(--fs-16);
    font-weight: 600;
    color: var(--sv-grey-light);
}

.footer-nav-menu ul li a::before {
    content: '> ';
}

.credits {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 16px;
    padding-top: 16px;
    font-family: var(--txt-font);
    font-size: var(--fs-16);
}