.general-container {
          display: flex;
    height: 34rem;
    max-width: 90%;
    width: 80%;
    flex-direction: row;
    margin: 0 auto;
    }

.radio {
  display: none;
}

.radio:checked + .content {
        flex:2;
}

.subtitle{
    padding: 0 20px;
    font-size: 1.4rem;
    padding-bottom: 20px;
}

.marg-bott {
    font-size: 4rem;
    font-variant: all-petite-caps;
    letter-spacing: 0.03em;
    font-weight: bold;
padding: 20px 20px 0;
}

.content {
background: transparent;
    background-image: url(/template/fermeture-habitat2.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    flex: 1;
    margin-right: 0.8rem;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.05, 0.60, 0.39, 0.94);

}

.content::before {
  background: inherit;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.content > * {
  position: relative;
  z-index: 1;
}

.content:hover {
  box-shadow: 0.7rem 0.7rem 0.5rem rgba(0, 0, 0, 0.3);
}

.content:nth-of-type(2) {
  background: transparent;
  background-image: url("/template/fermeture-industrielle2.webp");
  background-size: cover; 
  background-repeat: no-repeat;
  background-position: center;
}



.card-title {
  bottom: 1.2rem;
  color: black;
  display: flex;
  flex-direction: column;
  font-size: 1.2rem;
  left: 1.5rem;
  opacity: 0;
  position: absolute;
  transform: translateX(2rem);
  transition: 290ms cubic-bezier(0.05, 0.62, 0.40, 0.95) 300ms;
  transition-property: opacity, transform;
  user-select: none;
  white-space: nowrap;
    background-color: #1f1d2c;
}

.title-card{
color: #ffffff;
  display: flex;
  flex-direction: column;
    font-size: 2rem;
width: 100%;
  line-height: 1.1;
  position: absolute;
  transform: translateX(30rem);
  transition: 290ms cubic-bezier(0.05, 0.60, 0.42, 0.94) 300ms;
  transition-property: opacity, transform;
  user-select: none;
  white-space: nowrap;
    background: #1f1d2c;

}


.subsubtitle{
  font-size: 0.85rem;
}

.paddT{
  padding-left: 3rem;
  padding-right: 3rem;
}


.radio:checked + .content > .card-title {
  opacity: 1;
  transform: translateX(0);
}

.radio:checked + .content > .title-card{
  opacity: 1;
  transform: translateX(0);
}

.radio:checked + .content {

    box-shadow:0.3rem 0.3rem 0.4rem rgba(0, 0, 0, 0.3);
flex:2;
}

.content:nth-of-type(2) .title-card {
    background-color: #47c0a3;
}

.content:nth-of-type(2) .marg-bott {
    color: #1f1d2c;
}
.content:nth-of-type(2) .subtitle{
    color: #1f1d2c;
    
}

.subsubtitle {
    font-size: 1.3rem;
    background: #47c0a3;
    padding: 20px;
    font-variant: all-petite-caps;
  
}


.content:nth-of-type(2) .subsubtitle {
    font-size: 1.3rem;
  background-color: #1f1d2c !important;
    padding: 20px;
    font-variant: all-petite-caps;
  
}
a.bouton{
color:#1f1d2c !important;

}
.content:nth-of-type(2) a.bouton{
    color: white !important;
    background-color: #1f1d2c !important;
}



@media screen and (max-width: 470px) {
    .general-container{
     display:flex;
    height:36rem;
    margin-left:0em;
    max-width:100%;
    width:100vw;
    flex-direction:column;
    }
.marg-bott {
    font-size: 1rem;
    font-variant: all-petite-caps;
    letter-spacing: 0.03em;
    font-weight: bold;
    padding: 20px 7px 0;
}
.subtitle {
    padding: 0px 6px;
    font-size: 0.9rem;
    padding-bottom: 20px;
}
.subsubtitle {
    font-size: 1rem;
    background: #47c0a3;
    padding: 12px;
    font-variant: all-petite-caps;
}
.title-card {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    font-size: 2rem;
    width: 100%;
    line-height: 1.1;
    position: absolute;
    transform: translateX(0rem);
    transition: 290ms cubic-bezier(0.05, 0.60, 0.42, 0.94) 300ms;
    transition-property: opacity, transform;
    user-select: none;
    white-space: nowrap;
    background: #1f1d2c;
}
.content {
background: transparent;
    background-image: url(/template/fermeture-habitat2.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    flex: 1;
    margin-top: 0.8rem;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.05, 0.60, 0.39, 0.94);

}
.radio:checked + .content {
    flex:1;
}
  }

@media screen and (min-width:470px) and (max-width:980px) {
    .general-container {
    display:flex;
    height:36rem;
    margin-left:0em;
    max-width:100%;
    width:100vw;
    flex-direction:column;
}
.marg-bott {
    font-size: 1rem;
    font-variant: all-petite-caps;
    letter-spacing: 0.03em;
    font-weight: bold;
    padding: 20px 7px 0;
}
.subtitle {
    padding: 0px 6px;
    font-size: 0.9rem;
    padding-bottom: 20px;
}
.subsubtitle {
    font-size: 1rem;
    background: #47c0a3;
    padding: 12px;
    font-variant: all-petite-caps;
}
.title-card {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    font-size: 2rem;
    width: 100%;
    line-height: 1.1;
    position: absolute;
    transform: translateX(0rem);
    transition: 290ms cubic-bezier(0.05, 0.60, 0.42, 0.94) 300ms;
    transition-property: opacity, transform;
    user-select: none;
    white-space: nowrap;
    background: #1f1d2c;
}
.content {
background: transparent;
    background-image: url(/template/fermeture-habitat2.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    flex: 1;
    margin-top: 0.8rem;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.05, 0.60, 0.39, 0.94);

}
.radio:checked + .content {
    flex:1;
}
}

@media screen and (min-width: 980px) {
    .general-container{
    display:flex;
    height:34rem;
    margin-left:2em;
    max-width:87vw;
    width:84vw;
    flex-direction:column;
} 
.marg-bott {
    font-size: 1rem;
    font-variant: all-petite-caps;
    letter-spacing: 0.03em;
    font-weight: bold;
    padding: 20px 7px 0;
}
.subtitle {
    padding: 0px 6px;
    font-size: 0.9rem;
    padding-bottom: 20px;
}
.subsubtitle {
    font-size: 1rem;
    background: #47c0a3;
    padding: 12px;
    font-variant: all-petite-caps;
}
.title-card {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    font-size: 2rem;
    width: 100%;
    line-height: 1.1;
    position: absolute;
    transform: translateX(0rem);
    transition: 290ms cubic-bezier(0.05, 0.60, 0.42, 0.94) 300ms;
    transition-property: opacity, transform;
    user-select: none;
    white-space: nowrap;
    background: #1f1d2c;
}
.content {
background: transparent;
    background-image: url(/template/fermeture-habitat2.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    flex: 1;
    margin-top: 0.8rem;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.05, 0.60, 0.39, 0.94);

}
.radio:checked + .content {
    flex:1;
}
}

@media screen and (min-width: 1200px) {
    .general-container{
    display:flex;
    height:34rem;
    margin-left:2em;
    max-width:87vw;
    width:94vw;
    flex-direction:row;
}
.radio:checked + .content {
    flex:2;
}
.subtitle{
    padding: 0 20px;
    font-size: 1.4rem;
    padding-bottom: 20px;
}

.marg-bott {
    font-size: 4rem;
    font-variant: all-petite-caps;
    letter-spacing: 0.03em;
    font-weight: bold;
padding: 20px 20px 0;
}
.subsubtitle {
    font-size: 1.3rem;
    background: #47c0a3;
    padding: 20px;
    font-variant: all-petite-caps;
  
}
.title-card{
color: #ffffff;
  display: flex;
  flex-direction: column;
    font-size: 2rem;
width: 100%;
  line-height: 1.1;
  position: absolute;
  transform: translateX(30rem);
  transition: 290ms cubic-bezier(0.05, 0.60, 0.42, 0.94) 300ms;
  transition-property: opacity, transform;
  user-select: none;
  white-space: nowrap;
    background: #1f1d2c;

}
.content {
background: transparent;
    background-image: url(/template/fermeture-habitat2.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    flex: 1;
    margin-right: 0.8rem;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.05, 0.60, 0.39, 0.94);

}
.content:nth-of-type(2):after {
    content: url(/template/mainturquoise.gif);
    position: absolute;
    top: 0em;
    right: 0;
z-index:1;
}
.content:nth-of-type(1):after {
    content: url(/template/mainfonce.gif);
    position: absolute;
    top: 2em;
    right: 0;
z-index:1;
}
}


@media screen and (min-width: 1600px) {

    .general-container {
        display:flex;
        height:34rem;
        margin-left:10em;
        max-width:77vw;
        width:75vw;
        flex-direction:row;
    }
    .radio:checked + .content {
        flex:2;
    }
.content:nth-of-type(2):after {
    content: url(/template/mainturquoise.gif);
    position: absolute;
    top: 0em;
    right: 0;
z-index:1;
}
.content:nth-of-type(1):after {
    content: url(/template/mainfonce.gif);
    position: absolute;
    top: 2em;
    right: 0;
z-index:1;
}
  }

@media screen and (min-width: 1920px) {
    .general-container {
        display:flex;
        height:34rem;
        margin: 0 auto;
        max-width:77vw;
        width:75vw;
        flex-direction:row;
    }
    .radio:checked + .content {
        flex:2;
    }
.content:nth-of-type(2):after {
    content: url(/template/mainturquoise.gif);
    position: absolute;
    top: 0em;
    right: 0;
z-index:1;
}
.content:nth-of-type(1):after {
    content: url(/template/mainfonce.gif);
    position: absolute;
    top: 2em;
    right: 0;
z-index:1;
}
  }
