/* ============================= */
/*        GRILLE PRINCIPALE      */
/* ============================= */

.grille-encart {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 20px;
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

/* --- ENCARDS --- */

.encart1 { grid-column: 1 / span 4; grid-row: 1 / span 2; } /* --- affiche debjam --- */
.encart2 { grid-column: 5 / span 4; grid-row: 1; } /* --- scene ouverte --- */
.encart3 { grid-column: 5 / span 4; grid-row: 2 / span 2; } /* --- participe a la debjam --- */
.encart4 { grid-column: 1 / span 4; grid-row: 3; } /* --- où quand --- */

/* --- STYLE GENERAL DES ENCARDS --- */
.encart {
  background-color: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.07);
  box-sizing: border-box;
}

.encart h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: #7dc8e5;
  text-align: left;
}

h3 {
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
}

.encart img {
  width: 100%;
  height: auto;
  display: block;
}

.jeu-concours-form {
    width: 100%;
    font-size: clamp(0.8rem, 1.5vw, 0.87rem);
}


/* ============================= */
/*      formulaire DebJam        */
/* ============================= */

/* ============================= */
/*        FORMULAIRE DEBJAM      */
/* ============================= */

.debjam-form {
    width: 100%;
    font-size: clamp(0.8rem, 1.5vw, 0.87rem);
}


/* ============================= */
/*      BLOCS LABEL + CHAMP      */
/* ============================= */

.debjam-form .form-bloc {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}


.debjam-form .form-bloc label {
    font-size: inherit;
    color: #002e58;
    font-weight: bold;
}


/* ============================= */
/*       CHAMPS TEXTE            */
/* ============================= */

.debjam-form input[type="text"],
.debjam-form input[type="email"],
.debjam-form input[type="url"] {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
}


.debjam-form input[type="text"]:focus,
.debjam-form input[type="email"]:focus,
.debjam-form input[type="url"]:focus {
    outline: none;
    border-color: #1487c6;
    box-shadow: 0 0 4px rgba(20, 135, 198, 0.3);
}


/* ============================= */
/*        MENU DEROULANT         */
/* ============================= */

.debjam-form select {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    cursor: pointer;
}


.debjam-form select:focus {
    outline: none;
    border-color: #1487c6;
    box-shadow: 0 0 4px rgba(20, 135, 198, 0.3);
}


/* ============================= */
/*            TEXTAREA           */
/* ============================= */

.debjam-form textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.5;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    resize: vertical;
    min-height: 150px;
}


.debjam-form textarea:focus {
    outline: none;
    border-color: #1487c6;
    box-shadow: 0 0 4px rgba(20, 135, 198, 0.3);
}


/* ============================= */
/*       TEXTE D'INFORMATION     */
/* ============================= */

.debjam-form .form-bloc small {
    font-size: 0.9em;
    line-height: 1.4;
    color: #666;
}


/* ============================= */
/*             BOUTON            */
/* ============================= */

.debjam-form button {
    width: 100%;
    font-size: inherit;
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background-color: #002e58;
    color: #fff;
    transition: 0.3s ease;
}


.debjam-form button:hover {
    background-color: #1487c6;
}


/* ============================= */
/*      MESSAGE CONFIRMATION     */
/* ============================= */

#confirmation-message {
    color: #000000;
    font-weight: normal;
    font-size: clamp(0.8rem, 1.5vw, 0.87rem);
    margin-bottom: 20px;
    text-align: center;
}



.ou-quand a {
    color: inherit;
    text-decoration: underline;
}

.ou-quand a:hover {
    color: inherit;
}

/* ============================= */
/*      TABLETTE ET MOBILE       */
/* ============================= */

@media (max-width: 992px) {
  .grille-encart {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 10px;
  }

  /* Ordre tablette */
  .encart1 { order: 1; }
  .encart2 { order: 2; }
  .encart3 { order: 3; }
  .encart4 { order: 4; }
}

@media (max-width: 600px) {
  .grille-encart {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 10px;
  }

  /* Ordre mobile identique à tablette */
  .encart1 { order: 1; }
  .encart2 { order: 2; }
  .encart3 { order: 3; }
  .encart4 { order: 4; }
}
