/**
 * CSS pour le bloc Entreprise Levrard
 */

/* Variables couleurs */
:root {
  --levrard-red: #E73331;
  --levrard-dark-red: #E73331;
  --levrard-white: #ffffff;
  --levrard-gray: #f5f5f5;
  --levrard-light-gray: #f8f8f8;
  --levrard-dark-gray: #333333;
  --levrard-text: #363636;
  --levrard-border: #e0e0e0;
}

/**
 * Structure principale
 */
.levrard-entreprise-section {
  padding: 120px 0;
  background-color: var(--levrard-white);
  margin-top: -50px;
  z-index: 1;
  border-radius: 50px;
  position: relative;
}

.levrard-entreprise-container {
  max-width: 1600px;
  margin: 0 auto;
}
/* ---------------------------- */
@media (max-width:110em){ .levrard-entreprise-container {margin:0 50px 0 100px} }
@media (max-width:75em){ .levrard-entreprise-container {margin:0 20px 0 40px} }
@media (max-width:50em){ .levrard-entreprise-container {margin:0 0 0 20px} }
@media (max-width:40em){ .levrard-entreprise-container {margin:0} }
/* ---------------------------- */

.levrard-entreprise-content {
  display: grid;
  grid-template-columns: 35% 1fr;
  gap: 100px;
  align-items: start;
}

/**
 * Partie gauche
 */
.levrard-entreprise-left {
  padding-right: 20px;
}
/* ---------------------------- */
@media (max-width:60em){.levrard-entreprise-left{padding-right:0}}
/* ---------------------------- */

.levrard-entreprise-main-title {
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 60px;
  color: var(--levrard-red);
}

.levrard-entreprise-main-title .title-line1 {
  display: block;
}

.levrard-entreprise-main-title .title-line2 {
  display: block;
  color: var(--levrard-dark-gray);
  font-weight: 500;
}

.levrard-entreprise-subtitle,
.levrard-entreprise-left-title {
  font-weight: 300;
  line-height: 1.3;
  color: var(--levrard-text);
  margin-bottom: 30px;
  font-family:var(--font-alternate);
  transform:translateX(-50px);
}

.levrard-entreprise-subtitle strong,
.levrard-entreprise-left-title strong {
  font-weight: 700;
  font-style: italic;
  color: var(--levrard-red);
}

.levrard-entreprise-text, .levrard-entreprise-left-text {
  line-height: 1.6;
  color: var(--levrard-text);
  margin-bottom: 40px;
}

.levrard-entreprise-left-image {
  width:130%;
  transform:rotate(1.8deg) translateX(-25%);
  margin:80px 0;
}
/* ---------------------------- */
@media (max-width:75em){
  .levrard-entreprise-left-image{margin:50px 0; }
}
@media (max-width:60em){
  .levrard-entreprise-left-image{margin:40px 0; }
  .levrard-entreprise-text, .levrard-entreprise-left-text{margin-bottom:30px}
}
@media (max-width:45em){
  .levrard-entreprise-left-image{margin:30px 0; }
  .levrard-entreprise-text, .levrard-entreprise-left-text{margin-bottom:20px}
}
/* ---------------------------- */

.levrard-entreprise-left-image img {
  display:block;
  width: 100%;
  height: auto;
  border-radius: 30px;
}

/**
 * Partie droite
 */
.levrard-entreprise-right {
  position: relative;
}

.levrard-entreprise-right-image {
  transform: rotate(1.8deg) translateX(15%);
  position:relative;
  z-index: 1;
  margin:-200px 0 0 0;
  width:120%;
}

.levrard-entreprise-right-image img {
  width: 100%;
  height: auto;
  border-radius: 30px;
}

.levrard-entreprise-right-title__container{
  display:flex;justify-content:flex-end;transform:translateX(50px);position: relative;z-index: 2;margin:-120px 0 -40px;
}

/* ---------------------------- */
@media (max-width:60em){
  .levrard-entreprise-right-image{transform: rotate(1.8deg) translateX(10%);}
}
@media (max-width:45em){
  .levrard-entreprise-right-image{transform: rotate(1.8deg) translateX(5%);}
  .levrard-entreprise-right-title__container{transform:translateX(25px)}
}
/* ---------------------------- */

.levrard-entreprise-right-title {
  padding: 50px 80px;
  font-family:var(--font-alternate);font-style:italic;font-weight: 300;line-height: 1.3;
  background: #ffffff;color: var(--levrard-text);
  border-radius: 30px 0 30px 30px;box-shadow: 0px 0px 20px 10px rgba(99, 21, 21, 0.05);
}

.levrard-entreprise-right-title strong {
  font-weight: 700;
  color: var(--levrard-red);
}

/**
 * Box rouge avec checklist
 */
.levrard-entreprise-checklist-box {
  padding: 80px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
  margin-top: -20px;
}
/* ---------------------------- */
@media (max-width:1050em){
  .levrard-entreprise-checklist-box{padding:80px 60px 60px}
}
@media (max-width:90em){
  .levrard-entreprise-checklist-box{padding:80px 40px 45px}
}
@media (max-width:75em){
  .levrard-entreprise-checklist-box{padding:80px 60px 30px}
}
@media (max-width:60em){
  .levrard-entreprise-checklist-box{padding:70px 50px 50px}
}
/* ---------------------------- */

.levrard-entreprise-checklist-box::before{
  content:"";display:block;width:100%;height:100%;background-color: var(--levrard-red);transform: rotate(-2deg);position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;border-radius:30px 0 30px 30px;
}

.levrard-entreprise-checklist-box::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 43.333%;
    background: url(https://www.levrard-debouchage.fr/wp-content/uploads/2025/05/pourquoi.svg) no-repeat bottom center;
    background-size: cover;
    z-index: 1;
    pointer-events: none;
}

.checklist-title {
  font-weight: 700;
  font-family:var(--font-alternate);
  color: var(--levrard-white);
  margin-bottom: 80px;
  text-align: left;
  font-style: italic;
}
/* ---------------------------- */
@media (max-width:75em){
  .checklist-title{margin-bottom:60px}
}
@media (max-width:60em){
  .checklist-title{margin-bottom:40px}
}
@media (max-width:40em){
  .checklist-title{margin-bottom:30px}
}
/* ---------------------------- */

.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  position:relative;
  z-index:5;
}

.checklist-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.checklist-item:nth-child(even){transform:translateY(-20px);}
/* ---------------------------- */
@media (max-width:75em){.checklist-item:nth-child(even){transform:translateY(0);}}
/* ---------------------------- */

.checklist-check {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background-color: var(--levrard-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checklist-check:has(svg){
  width:40px;height:39px;background:transparent;border-radius:none;
}

.checklist-check i {
  color: var(--levrard-red);
  font-size: 16px;
}

.checklist-check img {
  width: 20px;
  height: 20px;
}

.checklist-content {
  flex: 1;
}

.checklist-item-title {
  font-weight: 700;
  color: var(--levrard-white);
  margin-bottom: 15px;
  line-height: 1.2;
}

.checklist-item-text {
  line-height: 1.5;
  color: var(--levrard-dark-gray);
  margin: 0;
  opacity: 0.9;
}

/**
 * Bottom section
 */
.levrard-entreprise-bottom {
  display: flex;
  align-items: center;
  gap: 30px;
  margin:100px 0 0 100px;
}
/* ---------------------------- */
@media (max-width:75em){
  .levrard-entreprise-bottom {margin:70px 0 0 0;display:flex;justify-content:center}
}
@media (max-width:60em){
  .levrard-entreprise-bottom {margin:50px 0 0 0;}
}
@media (max-width:45em){
  .levrard-entreprise-bottom {margin:40px 0 0 0;}
}
/* ---------------------------- */

.bottom-icon {
  flex-shrink: 0;
}

.bottom-icon img {
  width: 74px;
  height: auto;
}

.bottom-text {
  line-height: 1.5;
  color: var(--levrard-text);
  margin: 0;
}

.bottom-text strong {
  font-weight: 700;font-size:28px;font-family:var(--font-alternate);font-style:italic;
}
/* ---------------------------- */
@media (max-width:135em){
  .bottom-text strong{font-size:26px}
}
@media (max-width:120em){
  .bottom-text strong{font-size:24px}
}
@media (max-width:90em){
  .bottom-text strong{font-size:20px}
}
@media (max-width:60em){
  .bottom-text strong{font-size:18px}
}


/**
 * Preview dans l'éditeur
 */
.levrard-entreprise-preview {
  background: #f5f5f5;
  border: 2px dashed #ddd;
  padding: 40px;
  text-align: center;
  border-radius: 10px;
}

.levrard-entreprise-preview h3 {
  margin-bottom: 10px;
  color: var(--levrard-text);
}

.levrard-entreprise-preview p {
  color: #666;
  margin: 0;
}

/**
 * Responsive
 */
@media screen and (max-width: 75em) {
  .levrard-entreprise-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .levrard-entreprise-right-image {
    position: relative;
    top: 0;
    right: 0;
    margin-bottom: 30px;margin-top:0;
  }
  .levrard-entreprise-right-title {
    margin-top: 0;
  }
  .levrard-entreprise-subtitle, .levrard-entreprise-left-title{transform:none;}
  .levrard-entreprise-main-title{margin-bottom:40px;}
}

@media screen and (max-width: 992px) {
  .levrard-entreprise-section {
    padding: 60px 0;
  }

  .checklist-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 60em) {
  .levrard-entreprise-text {
    width: 95%;
  }
  .levrard-entreprise-left-text {
    width: 95%;
  }
  .levrard-entreprise-section {
    padding: 40px 30px;
  }

}

@media screen and (max-width: 576px) {
  .levrard-entreprise-content {
    gap: 30px;
  }

  .levrard-entreprise-subtitle {
    margin-bottom: 20px;
  }

  .levrard-entreprise-left-image img {
    max-width: 100%;
  }

  .levrard-entreprise-right-image img {
    max-width: 100%;
  }

  .checklist-item {
    gap: 10px;
  }

  .checklist-check {
    width: 25px;
    height: 25px;
  }

  .bottom-icon img {
    width: 50px;
  }
}

/**
 * STYLES SPÉCIFIQUES À L'ÉDITEUR GUTENBERG
 */

/* Améliorer la sélectabilité dans l'éditeur */
.block-editor-block-list__block .levrard-entreprise-section {
  position: relative;
  z-index: 1;
}

.block-editor-block-list__block .levrard-entreprise-section * {
  position: relative;
}

/* Forcer certains styles si Gutenberg les écrase */
.block-editor-block-list__block .levrard-entreprise-main-title {
  font-size: 64px !important;
  font-weight: 700 !important;
  color: var(--levrard-red) !important;
}

/* Bordure pour identifier le bloc dans l'éditeur */
.block-editor-block-list__block .levrard-entreprise-section {
  border: 2px dashed rgba(233, 57, 52, 0.3);
}
